query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method 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() { buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); buttonGroup6 = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); jButton10 = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); txt_nom = new javax.swing.JTextField(); jPanel4 = new javax.swing.JPanel(); mr = new javax.swing.JRadioButton(); mlle = new javax.swing.JRadioButton(); mme = new javax.swing.JRadioButton(); jPanel5 = new javax.swing.JPanel(); nationale = new javax.swing.JRadioButton(); internationale = new javax.swing.JRadioButton(); CMI = new javax.swing.JRadioButton(); Visa = new javax.swing.JRadioButton(); MasterCard = new javax.swing.JRadioButton(); jPanel6 = new javax.swing.JPanel(); standard = new javax.swing.JRadioButton(); homme = new javax.swing.JRadioButton(); femme = new javax.swing.JRadioButton(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jPanel7 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jLabel7 = new javax.swing.JLabel(); jButton5 = new javax.swing.JButton(); txt_numcompte = new javax.swing.JFormattedTextField(); jButton6 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jButton7 = new javax.swing.JButton(); jButton11 = new javax.swing.JButton(); datecreation = new com.toedter.calendar.JDateChooser(); jButton3 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setMaximizedBounds(new java.awt.Rectangle(0, 0, 845, 571)); setMaximumSize(new java.awt.Dimension(1176, 599)); setMinimumSize(new java.awt.Dimension(1176, 599)); setPreferredSize(new java.awt.Dimension(1368, 635)); getContentPane().setLayout(null); jPanel1.setBackground(new java.awt.Color(0, 0, 0)); jPanel1.setLayout(null); jPanel2.setLayout(null); jPanel1.add(jPanel2); jPanel2.setBounds(0, 0, 0, 0); jButton2.setBackground(new java.awt.Color(0, 102, 204)); jButton2.setFont(new java.awt.Font("Myanmar Text", 1, 18)); // NOI18N jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-ajouter-une-propriété-26.png"))); // NOI18N jButton2.setText(" Ajouter"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jPanel1.add(jButton2); jButton2.setBounds(80, 10, 180, 30); jButton4.setBackground(new java.awt.Color(0, 102, 204)); jButton4.setFont(new java.awt.Font("Myanmar Text", 1, 18)); // NOI18N jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-supprimer-la-propriété-26.png"))); // NOI18N jButton4.setText(" Supprimer"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jPanel1.add(jButton4); jButton4.setBounds(350, 10, 200, 30); jButton8.setBackground(new java.awt.Color(0, 102, 204)); jButton8.setFont(new java.awt.Font("Myanmar Text", 1, 18)); // NOI18N jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-modifier-la-propriété-26.png"))); // NOI18N jButton8.setText(" Modifier"); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); jPanel1.add(jButton8); jButton8.setBounds(630, 10, 180, 30); jButton9.setBackground(new java.awt.Color(0, 102, 204)); jButton9.setFont(new java.awt.Font("Myanmar Text", 1, 18)); // NOI18N jButton9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-machine-virtuelle-26.png"))); // NOI18N jButton9.setText(" Trier"); jButton9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton9ActionPerformed(evt); } }); jPanel1.add(jButton9); jButton9.setBounds(890, 10, 190, 30); jButton10.setBackground(new java.awt.Color(255, 0, 0)); jButton10.setFont(new java.awt.Font("Myanmar Text", 1, 18)); // NOI18N jButton10.setText("Quitter"); jButton10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ActionPerformed(evt); } }); jPanel1.add(jButton10); jButton10.setBounds(1130, 10, 170, 30); getContentPane().add(jPanel1); jPanel1.setBounds(0, 550, 1360, 50); jPanel3.setBackground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("SansSerif", 1, 48)); // NOI18N jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("Gestion De La Carte Bancaire"); jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); jLabel2.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel2.setText("Nom Du Client : "); jLabel3.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel3.setText("Civilité :"); jLabel4.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel4.setText("Date D'Éxpiration : "); jLabel5.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel5.setText("Type :"); jLabel6.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel6.setText("Style :"); txt_nom.setFont(new java.awt.Font("Trebuchet MS", 1, 13)); // NOI18N txt_nom.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); jPanel4.setBackground(new java.awt.Color(255, 255, 255)); jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); mr.setBackground(new java.awt.Color(255, 255, 255)); mr.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N mr.setText("Mr"); mlle.setBackground(new java.awt.Color(255, 255, 255)); mlle.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N mlle.setText("Mlle"); mme.setBackground(new java.awt.Color(255, 255, 255)); mme.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N mme.setText("Mme"); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(mr) .addGap(18, 18, 18) .addComponent(mlle) .addGap(18, 18, 18) .addComponent(mme, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, 0)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(mr, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(mlle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(mme, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); jPanel5.setBackground(new java.awt.Color(255, 255, 255)); jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); nationale.setBackground(new java.awt.Color(255, 255, 255)); nationale.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N nationale.setText("Nationale"); nationale.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nationaleActionPerformed(evt); } }); internationale.setBackground(new java.awt.Color(255, 255, 255)); internationale.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N internationale.setText("Internationale"); internationale.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { internationaleActionPerformed(evt); } }); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addComponent(nationale) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 112, Short.MAX_VALUE) .addComponent(internationale, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(nationale, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(internationale, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); CMI.setBackground(new java.awt.Color(255, 255, 255)); CMI.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N CMI.setText("CMI"); CMI.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CMIActionPerformed(evt); } }); Visa.setBackground(new java.awt.Color(255, 255, 255)); Visa.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N Visa.setText("Visa"); Visa.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VisaActionPerformed(evt); } }); MasterCard.setBackground(new java.awt.Color(255, 255, 255)); MasterCard.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N MasterCard.setText("MasterCard"); jPanel6.setBackground(new java.awt.Color(255, 255, 255)); jPanel6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); standard.setBackground(new java.awt.Color(255, 255, 255)); standard.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N standard.setText("Standard"); homme.setBackground(new java.awt.Color(255, 255, 255)); homme.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N homme.setText("Homme"); femme.setBackground(new java.awt.Color(255, 255, 255)); femme.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N femme.setText("Femme"); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addComponent(standard) .addGap(47, 47, 47) .addComponent(homme) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE) .addComponent(femme) .addContainerGap()) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(standard) .addComponent(homme) .addComponent(femme)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/pngtree-men-s-luxury-watch-black-banner-image_182858.jpg"))); // NOI18N jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/CoxFNk.jpg"))); // NOI18N jPanel7.setBackground(new java.awt.Color(153, 153, 153)); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 92, Short.MAX_VALUE) ); jButton1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N jButton1.setText("Aperçu"); jButton1.setBorder(null); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jLabel7.setFont(new java.awt.Font("Myanmar Text", 0, 14)); // NOI18N jLabel7.setText("Numéro De Compte :"); jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-souvenirs-32.png"))); // NOI18N jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton5ActionPerformed(evt); } }); try { txt_numcompte.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("#### #### #### ####"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-reset-24.png"))); // NOI18N jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Civilité", "Nom Complet ", "Date D'expiration", "Numéro De Compte", "Type Carte", "Style" } )); jScrollPane1.setViewportView(jTable1); jButton7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestionbancaires/icons8-accueil-30.png"))); // NOI18N jButton7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton7ActionPerformed(evt); } }); jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/gestion_CarteBancaire/icons8-chercher-16.png"))); // NOI18N jButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton11ActionPerformed(evt); } }); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(183, 183, 183) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(CMI) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(Visa) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(MasterCard) .addGap(33, 33, 33)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 785, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(61, 61, 61)) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE)) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(txt_nom, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(51, 51, 51) .addComponent(jButton6)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(23, 23, 23) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(datecreation, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(txt_numcompte, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 1324, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE) .addComponent(txt_nom)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 46, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 36, Short.MAX_VALUE) .addComponent(datecreation, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE) .addComponent(txt_numcompte) .addComponent(jButton5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(7, 7, 7) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE) .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Visa) .addComponent(MasterCard) .addComponent(CMI)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6)) .addGap(11, 11, 11) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(37, Short.MAX_VALUE)) ); getContentPane().add(jPanel3); jPanel3.setBounds(0, 0, 1370, 550); jButton3.setText("jButton3"); getContentPane().add(jButton3); jButton3.setBounds(800, 250, 84, 22); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
FibonacciSequence fibonacciSequence = new FibonacciSequence(50); System.out.println(fibonacciSequence.BottomUpApproach());
public static void main(String[] args) { LongestIncreasingSubsequence lis = new LongestIncreasingSubsequence(new int[]{4, 2, -1, 3, 5, 5}); lis.findLIS(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Fibonacci(int upper) {\n this.upper = upper; \n }", "@Override\r\n\tpublic int fib(int x) {\n\t\treturn 0;\r\n\t}", "@Test\n\tvoid FibonacciTest() \n\t{\tassertEquals(0, utilities.Fibonacci(0));\n\t\tassertEquals(1, utilities.Fibonacci(1));\n\t\tassertEquals(1, utilities.Fibonacci(2));\n\t\tassertEquals(2, utilities.Fibonacci(3));\n\t\tassertEquals(3, utilities.Fibonacci(4));\n\t\tassertEquals(89, utilities.Fibonacci(11));\n\n\t}", "public BigDecimal getFibonacci(Integer number) throws Exception;", "public BigInteger nextFibonacci() {\n if (this.data.size() == 0) {\n // Base case: zero.\n this.data.add(new BigInteger(\"0\"));\n } else if (this.data.size() == 1) {\n // Base case: one.\n this.data.add(new BigInteger(\"1\"));\n } else {\n this.data.add( this.data.get(this.data.size()-1).add(this.data.get(this.data.size()-2)) );\n }\n return this.data.get(this.data.size()-1);\n }", "@Test\n public void findFibonacci() {\n\n assertEquals(0, Computation.fibFinder(1));\n assertEquals(1, Computation.fibFinder(2));\n assertEquals(1, Computation.fibFinder(3));\n assertEquals(2, Computation.fibFinder(4));\n assertEquals(3, Computation.fibFinder(5));\n assertEquals(5, Computation.fibFinder(6));\n }", "private int calculateFibonacciUsingTopDownMemorization(int n) {\n int[] memory = new int[n+1];\n if (n < 2) {\n return n;\n }\n if(memory[n] != 0){\n return memory[n];\n }\n memory[n] = calculateFibonacciUsingTopDownMemorization(memory, n - 1) + calculateFibonacciUsingTopDownMemorization(memory, n - 2);\n return memory[n];\n\n }", "@Test\r\n\tpublic void test02_fib() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, +rm.fib(1));\r\n\t\tassertEquals(1, +rm.fib(2));\r\n\t\tassertEquals(2, +rm.fib(3));\r\n\t\tassertEquals(3, +rm.fib(4));\r\n\t\tassertEquals(5, +rm.fib(5));\r\n\t\tassertEquals(8, +rm.fib(6));\r\n\t}", "public Fibonacci() {\n this.data = new ArrayList<BigInteger>();\n }", "private long fibonacci(long n) {\n if (n <= 1) {\n return n;\n } else {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public FibonacciHeap() {}", "public int fibBottomUp(int n) {\n int[] fib = new int[n + 1];\n for (int i = 0; i <= n; i++) {\n int f;\n if (i == 0 || i == 1) f = 1;\n else f = fib[i - 1] + fib[i - 2];\n fib[i] = f;\n }\n return fib[n];\n }", "private static int fibonacci(int num) {\n if (num <= 1) {\n return num;\n }\n int number1 = fibonacci(num - 1);\n int number2 = fibonacci(num - 2);\n return number1 + number2;\n }", "public static void fibonacci(int fibo) {\n }", "@Test\n\t\tpublic void testFibonacci20() {\n\t\t\tBigInteger expected = BigInteger.valueOf(6765);\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(20));\n\t\t}", "private int fibonacci(int x) {\n int a = 0;\n int b = 1;\n\n for (int i = 0; i < x; i++) {\n int c = a + b;\n a = b;\n b = c;\n }\n\n return a;\n }", "int main()\n{\n int n;\n cin>>n;\n printf(\"The term %d in the fibonacci series is %d\",n,fib(n-1));\n}", "int main()\n{\n int n;\n cin>>n;\n fibo(n);\n return 0;\n}", "private static int fibonacci(int n) {\n if (n == 1 || n == 2)\n return 1;\n else\n return fibonacci(n - 1) + fibonacci(n - 2);\n }", "public long fibonacci(long number) {\n\t\tif (number == 0 || number == 1)\n\t\t\treturn number;\n\t\telse\n\t\t\treturn fibonacci(number - 1) + fibonacci(number - 2);\n\t}", "@Test\n\tpublic void isFibonacciTest() {\n\t\tAssert.assertTrue(ifn.isFibonacci(21));\n\t\tAssert.assertTrue(ifn.isFibonacci(144));\n\t\tAssert.assertTrue(!ifn.isFibonacci(150));\n\t\tAssert.assertTrue(!ifn.isFibonacci(56));\n\t}", "private int fib(int n) {\n int retVal = 0;\n if (n == 1) {\n retVal = 1;\n } else if (n == 2) {\n retVal = 1;\n } else {\n \n int nextfib = fib(n-2) + fib(n-1);\n retVal = nextfib;\n }\n \n return retVal;\n }", "public static ScannableTable fibonacciTable() {\n return fibonacciTableWithLimit( -1L );\n }", "public static int fibonacci(int number){\n\t\tif(number <= NumberUtils.INTEGER_ONE){ \n\t\t\treturn number; \n\t\t} \n\t\t//recursive call\n\t\treturn fibonacci(number - NumberUtils.INTEGER_ONE) + fibonacci(number - INTEGER_TWO); \n\t}", "public int fibonacci(int num) {\r\n\r\n if (num == 0) {\r\n return 0;\r\n }\r\n else if(num == 1)\r\n {\r\n return 1;\r\n }\r\n \r\n return fibonacci(num-1) + fibonacci(num-2);\r\n }", "public static long fib(long index) {\n if (index == 0) // Base case\n return 0;\n else if (index == 1) //base case)\n return 1;\n else //reducting and recursive calls\n return fib(index - 1) + fib(index - 2); \n }", "public long fibonacci(int n){\n global_count++;\n if(n<=1){\n return n;\n }else {\n return fibonacci(n-1) + fibonacci(n-2);\n }\n }", "@Test\n\t\tpublic void testFibonacci100() {\n\t\t\tBigInteger expected = new BigInteger(\"354224848179261915075\");\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(100));\n\t\t}", "static public Integer fib (Integer num){\n\t\tif (num == 0) {\n\t\t\treturn 0;\n\t\t} else if (num == 1) {\n\n\t\t\treturn 1;\n\n\t\t} else {\n\n\t\t return fib(num -1) + fib(num -2);\n\n }\n\t}", "public static int fib(int index){\n int num1 = 0;\n int num2 = 1;\n int temp;\n\n for(int i = 0; i < index-1; i++){\n temp = num2;\n num2 += num1;\n num1 = temp;\n }\n\n return num2;\n }", "public static int fibonacci(int n){\n if (n==0 || n==1)\n return n;\n else {\n return fibonacci(n-1)+fibonacci(n-2);\n }\n }", "private FibonacciNumber(long value) {\n\t\t\tthis.value = BigInteger.valueOf(value);\n\t\t}", "public static void main(String[] args) {\n fibonacci(7);\n }", "public static long fibonacci(int n) {\r\n if (n <= 1){\r\n return n;\r\n }\r\n else return fibonacci(n-1) + fibonacci(n-2);\r\n }", "public static BigInteger fibonacci(int n) {\n\t\t// Use best algorithm to compute\t\t\n\t\treturn ABFind.fibonacciLoop(n);\n\t}", "@Test\n\t\tpublic void testFibonacci40() {\n\t\t\tBigInteger expected = new BigInteger(\"102334155\");\n\t\t\tassertEquals(expected, FibonacciGenerator.fibonacciNumber(40));\n\t\t}", "private int fibonacciHelper (int fibCurrent, int fibPrevious, int n) {\n\t\tcounter ++;\n\t\tif (n==1) \n\t\t\treturn fibCurrent;\n\t\t\telse \n\t\t\t\treturn fibonacciHelper ( fibCurrent+ fibPrevious, fibCurrent, n-1);\n\t}", "public static int fibonacci(int n) throws Exception\n {\n if (n < 0)\n {\n throw new Exception(\n \"Fibonacci Series for \" + n + \" not possible for negative numbers\" );\n }\n\n if (n == 0 || n == 1)\n {\n return n;\n }\n else\n {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }", "public long findNthFibonacci(int number)\n {\n // Your Code Here\n \n long dp[] = new long[number+1];\n \n dp[0]=0L;\n dp[1]=1L;\n \n for(int i=2;i<=number;i++){\n dp[i]=dp[i-1]+dp[i-2];\n }\n return dp[number];\n }", "public static int fibonacci(int n) {\n\t\tif(n == 0) \n\t\t\treturn 0;\n\t\tif(n == 1) \n\t\t\treturn 1;\n\t\t\n\t\treturn fibonacci(n - 1) + fibonacci(n - 2);\n\t}", "static int fib(int n, int a, int b)\n {\n if (n == 0) {\n return 0;}\n// elseif(n==1){\n// \treturn 1;}\n else{\n for (int i = 2; i <= n; i++) \n { \n int \ttemp = a + b; \n a = b; \n temp = b;\n } \n return b; \n }\n }", "public static int fibGenerator(int x, int y){\n\n if (iterator == 10){\n System.out.println(\"The sequence has ended!\");\n return 0;\n }\n\n if (iterator == 0) {\n x = 0;\n y = 1;\n int z = x + y;\n iterator++;\n System.out.println(x+\" \"+y+\" \");\n return fibGenerator(y,z);\n }\n\n int z = x + y;\n iterator++;\n System.out.println(y+\" \");\n return fibGenerator(y,z);\n }", "int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }", "public static double fibonacci(int number) throws IOException {\n\t\tif (number == 0 || number == 1) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn fibonacci(number - 2) + fibonacci(number - 1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(fibonacci(50));\n\t}", "public static int fibonacci(int n) {\n\n\t\tif (n == 0 || n == 1) {\n\t\t\treturn n;\n\t\t}\n\n\t\tint fnm1 = fibonacci(n - 1);\n\t\tint fnm2 = fibonacci(n - 2);\n\n\t\tint fn = fnm1 + fnm2;\n\n\t\treturn fn;\n\n\t}", "private void fibonacciIterative(int noOfTerms) {\n int currentFibonacci = 1;\n int previousFibonacci = 1;\n for (int i = 1; i <= noOfTerms; i++) {\n if (i ==1) {\n //System.out.print(previousFibonacci + \" \");\n } else if (i == 2) {\n //System.out.print(currentFibonacci + \" \");\n } else {\n int newFib = currentFibonacci + previousFibonacci;\n if (i == noOfTerms) \n System.out.print(noOfTerms + \"th fibonacci is \" + newFib + \" \");\n previousFibonacci = currentFibonacci;\n currentFibonacci = newFib;\n }\n }\n System.out.println();\n }", "public static int nextF(int fib[])\n { \n int tmp = fib[0];\n fib[0] = fib[1];\n fib[1] += tmp;\n return fib[0];\n }", "public static void main(String[] args) {\n int x = fib(6);\n System.out.println(x);\n }", "public static void fibonacci(int count) {\r\n\t\tBigInteger number1 = BigInteger.valueOf(0);\r\n\t\tBigInteger number2 = BigInteger.valueOf(1);\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tif (i < 1)\r\n\t\t\t\tSystem.out.println(number2);\r\n\t\t\telse {\r\n\t\t\t\tBigInteger sum = BigInteger.valueOf(0);\r\n\t\t\t\tsum = number1.add(number2);\r\n\t\t\t\tSystem.out.println(sum);\r\n\t\t\t\tnumber1 = number2;\r\n\t\t\t\tnumber2 = sum;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int fib(int n) {\n if (n == 0) {\n return 0;\n } else if (n == 1) {\n return 1;\n } else {\n return fib(n-1) + fib(n-2);\n }\n }", "public int fibo1(int n){\r\n if(n == 1 || n == 2){\r\n return 1;\r\n }\r\n return fibo1(n-1)+fibo1(n-2);\r\n }", "public FibonacciSequence generateSequence() {\n\n\t\t// Check whether all the items have already created\n\t\tif (hasAlreadyGenerated()) {\n\t\t\treturn this;\n\t\t}\n\n\t\tif (sequenceSize < 1) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// The first two numbers in fibonacci sequence is 0 and 1\n\t\tfibonacciNumberArray.add(FIB_SEQ_FIRST_ELEMENT);\n\t\tif (sequenceSize >= 2) {\n\t\t\tfibonacciNumberArray.add(FIB_SEQ_SECOND_ELEMENT);\n\t\t}\n\n\t\t// Generate the fibonacci number one by one, access the pre-computed\n\t\t// number in the array to get rid of re-computation\n\t\tfor (int numPos = 2; numPos < sequenceSize; numPos++) {\n\t\t\tBigInteger fibNum = fibonacciNumberArray.get(numPos - 1).add(\n\t\t\t\t\tfibonacciNumberArray.get(numPos - 2));\n\t\t\tfibonacciNumberArray.add(fibNum);\n\t\t}\n\n\t\t// generate and return readable string\n\t\tStringBuffer fibSeqSB = new StringBuffer();\n\t\tfor (BigInteger fibNumber : fibonacciNumberArray) {\n\t\t\tfibSeqSB.append(fibNumber).append(\" \");\n\t\t}\n\t\tfibSeqSB.deleteCharAt(fibSeqSB.length() - 1);\n\n\t\treturn this;\n\t}", "public void fibonacci()\n {\n int x = 1;\n int y = 2;\n\n final int LASTNUM = 4000000;\n int totalEven = 0;\n\n while(x < LASTNUM)\n {\n if(x % 2==0)\n {\n totalEven += x;\n }\n\n int z = x + y;\n x = y;\n y = z;\n }\n System.out.println(totalEven);\n }", "public static int fibonaci(int number) {\n if(number <= 0) return 0;\n if (number == 1 || number == 2) {\n return 1;\n }\n\n return fibonaci(number - 1) + fibonaci(number - 2);\n }", "public static int fib(int index) {\r\n\t\t// default values for fibonacci and f0, f1\r\n\t\tint fibonacci = 0;\r\n\t\tint f0 = 0;\r\n\t\tint f1 = 1;\r\n\r\n\t\t// if index is not 0 or 1 calculate fibonacci\r\n\t\tif (index != 0 && index != 1) {\r\n\r\n\t\t\t// loop starts from 2 (fib on index 2 is 1)\r\n\t\t\tfor (int i = 2; i <= index; i++) {\r\n\t\t\t\tfibonacci = f0 + f1;\r\n\t\t\t\tf0 = f1;\r\n\t\t\t\tf1 = fibonacci;\r\n\t\t\t}\r\n\t\t\t// else fibonacci is index\r\n\t\t} else {\r\n\t\t\tfibonacci = index;\r\n\t\t}\r\n\t\treturn fibonacci;\r\n\t}", "private static int getFibonacci(int n) {\n\t\tdouble f1 = Math.pow(((1 + Math.sqrt(5)) / 2.0), n);\n\t\tdouble f2 = Math.pow(((1 - Math.sqrt(5)) / 2.0), n);\n\t\treturn (int)(Math.floor((f1 - f2) / Math.sqrt(5)));\n\t}", "public static int fib(int n) {\n\t\tif (n <= 1)\n\t\t\treturn n;\n\t\treturn fib(n - 1) + fib(n - 2);\n\t}", "public static int fib(int n) {\n\t\tif (n <= 1) {\n\t\t\treturn n;\n\t\t} else {\n\t\t\treturn fib(n - 1) + fib(n - 2);\n\t\t}\n\t}", "public static void main(String[] args) {\n fibonacciSequenceMethod();\n }", "public static void main(String[] args) {\n\n Fibonacci f = new Fibonacci();\n f.test();\n }", "public static int fibboDP(int n){\n int[] mem = new int[n+1];\n if(n==0 || n==1){\n return mem[n]=n;\n }\n if(mem[n]!=0){\n return mem[n];\n }\n int fib1 = fibboDP(n-1);\n int fib2 = fibboDP(n-2);\n return mem[n] = fib1+fib2;\n }", "FibonacciPair next() {\n return new FibonacciPair(getSecond(), sum());\n }", "private static int naiveFib(int n) {\n if (n == 0) return 0;\n if (n == 1) return 1;\n\n return naiveFib(n-1) + naiveFib(n-2);\n }", "public static void main(String[] args) {\n\t\tint res=new Fibanacci().fibonacci(8);\n\t\tSystem.out.println(res);\n\n\t}", "public static void main(String[] args) {\n int a=1;\n int b=1;\n int c;\n System.out.print(a+\" \");\n System.out.print(b+\" \");\n for(int i=0; i<8; i++){\n c=a+b;\n a=b;\n b=c;\n System.out.print(c+\" \");\n }\n System.out.println();\n //2. way with array\n int[] fib=new int[10];\n fib[0]=1;\n fib[1]=1;\n for(int i=0; i<8; i++){\n fib[i+2]=fib[i+1]+fib[i];\n //System.out.print(fib[i]+\" \");\n }\n for(int i=0; i<10; i++){\n System.out.print(fib[i]+\" \");\n }\n }", "public static int calculateFibonacciNumber(int i)\n {\n if(i==1||i==2)return 1;\n else\n {\n return calculateFibonacciNumber(i-1)+calculateFibonacciNumber(i-2);\n }\n }", "public int fibonacci(int n){\n int f[] = new int[n+2]; // 1 extra to handle case, n = 0\n int i;\n\n /* 0th and 1st number of the series are 0 and 1*/\n f[0] = 0;\n System.out.print(f[0]+\" \");\n f[1] = 1;\n System.out.print(f[1]+\" \");\n\n for (i = 2; i <= n; i++)\n {\n /* Add the previous 2 numbers in the series\n and store it */\n f[i] = f[i-1] + f[i-2];\n System.out.print(f[i]+\" \");\n }\n\n return f[n];\n }", "public void printRangeFibonacci() {\n BigInteger before = BigInteger.valueOf(0);\n BigInteger current = BigInteger.valueOf(1);\n BigInteger next = BigInteger.valueOf(1);\n for (int i = 2; i <= finish; i++) {\n next = current.add(before);\n before = current;\n current = next;\n\n if (i >= start && i <= finish) {\n String delimiter = i == finish ? \"\" : \", \";\n out.print(before + delimiter);\n }\n }\n }", "public int badFibonacci(int n){\n if (n <= 1){\n return (n);\n }\n return (badFibonacci(n-2) + badFibonacci(n-1));\n }", "public static void main(String[] args){\n for(int i=5; i>=1; i--) {\n //System.out.println(i);\n }\n //Print number from 5 to 1 using WHILE loop\n int j=0;\n while(j<=8){\n j+=2;\n //System.out.println(j);\n }\n // Create a loop to print first 30 fibonacci numbers Also print the 10th Even Fib number\n int a=0;\n int b=1;\n int count =0;\n System.out.println(a);\n System.out.println(b);\n while(count <= 30){\n int c=a+b;\n a=b;\n b=c;\n System.out.println(c);\n count++;\n if(count==8 && c%2==0){\n System.out.println(\"10th Even Fibonacci number is\" + c);\n }\n }\n\n // Create a square number series\n for(int i=0; i<10; i++){\n System.out.println((int)Math.pow(i,2));\n }\n\n }", "private static int fib(int a, int b, int n) {\n\t\tint arr[] = new int[n + 1];\n\t\tarr[0] = a;\n\t\tarr[1] = b;\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tarr[i] = arr[i - 1] + arr[i - 2];\n\t\t}\n\t\treturn arr[n - 1];\n\t}", "public int fib(int n) {\n if (n < 2) {\n return n;\n }\n\n int n1 = 1;\n int n2 = 0;\n\n for (int i = 2; i < n; i++) {\n int current = n1 + n2;\n n2 = n1;\n n1 = current;\n }\n return n1 + n2;\n }", "public static void main(String[] args) {\n System.out.println(new MultiplesOfThreeAndFive().calculate(1000));\n\n System.out.println(EvenFibonacci.calculateSumOfEvenFibonacciNumbersBelowValue(4000000));\n }", "public int fibNaive(int n) {\n int f;\n if (n == 0 || n == 1) f = 1;\n else f = fibNaive(n - 1) + fibNaive(n - 2);\n return f;\n }", "public int fibNum(int n) {\n\n //base case\n if ((n == 0) || (n == 1)) {\n logger.info(\"Fibonacci number successfully computed\");\n return n;\n } else if (n > 1) { //recursive case\n logger.info(\"Fibonacci number successfully computed\");\n return fibNum(n - 1) + fibNum(n - 2);\n } else {\n throw new IllegalArgumentException(\"Invalid argument, input is less than 0\");\n }\n }", "private int fibonacci(int n, int acc1, int acc2) {\n\t\tif (n < 2) {\n\t\t\treturn n == 0 ? 0 : acc1;\n\t\t}\n\t\treturn fibonacci(n - 1, acc2, acc1 + acc2);// time complexity: O(n)\n\t}", "public static int fibonacciBUSE(int n) {\n\n\t\tint[] strg = new int[2];\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int slide = 1; slide <= n - 1; slide++) {\n\n\t\t\tint sum = strg[0] + strg[1];\n\t\t\tstrg[0] = strg[1];\n\t\t\tstrg[1] = sum;\n\n\t\t}\n\n\t\treturn strg[1];\n\n\t}", "public static void main(String[] args) {\n System.out.println(fib(6));\n }", "public static int fibonacciBU(int n) {\n\n\t\tint[] strg = new int[n + 1];\n\n\t\tstrg[0] = 0;\n\t\tstrg[1] = 1;\n\n\t\tfor (int i = 2; i < strg.length; i++) {\n\t\t\tstrg[i] = strg[i - 1] + strg[i - 2];\n\t\t}\n\n\t\treturn strg[n];\n\n\t}", "public static int dynamicFibonacci(int n) {\n\t\t// calculate each fibonacci number as the sum of the previous two\n\t\treturn n == 0 ? 0 : Stream.iterate(new int[]{0, 1}, i -> new int[]{i[1], i[0]+i[1]}).limit(n).reduce((a, b) -> b).orElse(null)[1];\n\t}", "public static void printFibonacci(int number) {\n\t\tint number1 = 1, number2=2;\n\t\t//and print the numbers since they are part of fib series\n\t\tSystem.out.print(number1+\" \"+number2+\" \");\n\t\t//to find the fib numbers up to a number, use for loop\n\t\tfor(int i=0; i<=number; i++) {\n\t\t\tint fibNumber = number1+number2;\n\t\t\tnumber1 = number2;//after each loop number1 should increase to number2\n\t\t\tnumber2 = fibNumber;//and number2 should be the total which is fibNumber\n\t\t\t//if fibNumber is equal to or bigger then given number break the loop\n\t\t\tif(fibNumber==number || fibNumber>number) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//print the fibnumbers\n\t\t\tSystem.out.print(fibNumber+\" \");\n\t\t}\n\t}", "private static int fibByMemoization(int n, int[] questionBank){\n //Base Case\n if(n == 0 || n == 1){\n return n;\n }\n\n if(questionBank[n] != 0){\n return questionBank[n];\n }\n\n //faith\n int ans1 = fibByMemoization(n - 1, questionBank);\n int ans2 = fibByMemoization(n - 2, questionBank);\n int answer = ans1 + ans2;\n //faith * expectation\n questionBank[n] = answer;\n return answer;\n }", "private int fibCache(int n) {\n if (n == 1) {\n //System.out.print (1 + \" \");\n return 1;\n } else if (n == 2) {\n //System.out.print (1 + \" \");\n return 1;\n } else {\n \n Integer fibn2 = fibCache.get(n-2);\n if (fibn2 == null) {\n fibCache.put(n-2, fib(n-2));\n fibn2 = fibCache.get(n-2);\n }\n\n Integer fibn1 = fibCache.get(n-1);\n if (fibn1 == null) {\n fibCache.put(n-1, fib(n-1));\n fibn1 = fibCache.get(n-1);\n } \n \n //System.out.print(nextfib + \" \");\n \n int nextfib = fibn2 + fibn1;\n return nextfib;\n }\n }", "public static int fib(int N) {\n if (N == 1)\n return 1;\n if (N == 0)\n return 0;\n return fib(N-1) + fib(N-2);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(findAthFibonacci(10));\n\t}", "public int fibonacci(int n, int i, int a, int b) {\n if (i == n) return a;\n return fibonacci(n, i + 1, a + b, a);\n }", "public static void main(String[] args) {\r\n\r\n //the user will be requested to enter a sentence\r\n Scanner sentence = new Scanner(System.in);\r\n\r\n System.out.println(\"Please enter a senetnce :\");\r\n\r\n String input = sentence.nextLine();\r\n\r\n recursion object = new recursion();\r\n\r\n //the reverse method will be called to print out the user's input reverse\r\n object.reverse(input);\r\n\r\n //the user will be requested to enter the max number of the fibonacci series they would like to see\r\n Scanner number = new Scanner(System.in);\r\n\r\n System.out.println(\"Please enter the max number of the fiboncci numbers you would like to see :\");\r\n\r\n int inp = Integer.parseInt(number.nextLine());\r\n\r\n System.out.print(\"Fibonacci Series of \" + inp + \" numbers: \");\r\n\r\n //the for loop will be used to print out out the each number in the fibonacci series when the method is called\r\n for (int i = 0; i < inp; i++) {\r\n System.out.print(fibonacciRecursion(i) + \" \");\r\n }\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter last term of fibonacci = \");\r\n\t\tint n = sc.nextInt();\r\n\t\tSystem.out.println(\"\\nFib = \"+fibonacci(n));\r\n\t\tsc.close();\r\n\r\n\t}", "public static long fibonacci(int n) {\n return fibonacciMemoization(n, new HashMap<>());\n }", "public int solution(int[] A) {\n ArrayList<Integer> fibonacci = new ArrayList<>();\n\n fibonacci.add(0); // note: f(0) = 0 (as in the quesion)\n fibonacci.add(1);\n // note: using \"while\" is better than \"for\" (avoid errors)\n\n while (true) {\n int temp1 = fibonacci.get(fibonacci.size() - 1);\n int temp2 = fibonacci.get(fibonacci.size() - 2);\n\n fibonacci.add(temp1 + temp2);\n\n // if already bigger than length, then break;\n if (temp1 + temp2 > A.length) {\n break;\n }\n }\n\n // reverse \"List\": from big to small\n Collections.reverse(fibonacci);\n\n // use \"queue\" with \"point\"\n // point(x,y) = point(\"position\", \"number of steps\")\n ArrayList<Point> queue = new ArrayList<>();\n\n queue.add(new Point(-1, 0)); // position:-1, steps:0\n\n // index: the current index for queue element\n int index = 0;\n while (true) {\n // cannot take element from queue anymore\n if (index == queue.size()) {\n return -1;\n }\n\n // take element from queue\n Point current = queue.get(index);\n\n // from big to small\n for (Integer n : fibonacci) {\n int nextPosition = current.x + n;\n\n // case 1: \"reach the other side\"\n if (nextPosition == A.length) {\n // return the number of steps\n return current.y + 1;\n }\n\n // case 2: \"cannot jump\"\n // note: nextPosition < 0 (overflow, be careful)\n else if ((nextPosition > A.length) || (nextPosition < 0) || (A[nextPosition] == 0)) {\n // note: do nothing\n }\n\n // case 3: \"can jump\" (othe cases)\n else {\n // jump to next position, and step+1\n Point temp = new Point(nextPosition, current.y + 1);\n // add to queue\n queue.add(temp);\n\n A[nextPosition] = 0; // key point: for high performance~!!\n }\n }\n\n index++; // take \"next element\" from queue\n }\n }", "public static int fibonacci(int n) {\n if (n == 1){\n map.put(1,0);\n }\n if (n == 2)\n map.put(2,1);\n if (map.containsKey(n))\n return map.get(n);\n map.put(n,fibonacci(n-1)+fibonacci(n-2));\n return map.get(n);\n\n }", "public HEC_FibonacciSphere() {\n\t\tsuper();\n\t\tR = 1.0;\n\t\tN = 100;\n\t}", "public BigInteger fib(long i) {\n Map<Long, BigInteger> cache = new HashMap<>();\n if (i == 0) return BigInteger.ZERO;\n if (i == 1) return BigInteger.ONE;\n\n //The complete signature for the computIfAbsent method is:\n //V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction)\n //This method is particularly useful when creating a cache of the results of method calls.\n return cache.computeIfAbsent(i, n -> fib(n - 2).add(fib(n - 1)));\n }", "public static long getFibonacciNumberAt(int n) {\n\n try {\n\n if (n < 1) {\n\n throw new IllegalArgumentException(\"no fibonacci numbers at n < 1\");\n\n } else if (n == 1 || n == 2) {\n\n return 1;\n\n }\n\n } catch (IllegalArgumentException iae) {\n\n System.out.println(iae.getMessage());\n\n }\n\n return getFibonacciNumberAt(n - 1) + getFibonacciNumberAt(n - 2);\n\n }", "public static void main(String[] args) {\n\t\tint n=10;\n\t\tSystem.out.println(\"THE \"+n+ \"th fibonacci number is \" +Fibo(n));\n\t\t\n\n\t}", "public static void main(String[] args) {\n System.out.println(fibo(6));\n }", "public void Fibonacciseries()\r\n\t{\r\n\t\tint firstNo=0,secondNo=1,sum;\r\n\t\tint count;\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the Number\");\r\n\t\tcount = sc.nextInt();//Read the number to calculate fibonacci\r\n\t\t\r\n\t\tSystem.out.println(firstNo);\r\n\t\tSystem.out.println(secondNo);\r\n\t\t\r\n\t\tfor(int i=2;i<count;i++) //loop start from 2nd value \r\n\t\t{\r\n\t\t\tsum=firstNo+secondNo;\r\n\t\t\tSystem.out.println(+sum);\r\n\t\t\tfirstNo=secondNo;\r\n\t\t\tsecondNo=sum;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n// System.out.print(\"Enter the upper limit: \");\n// int upperLimit = scanner.nextInt();\n\n int firstNumber = 1;\n int secondNumber = 1;\n int currentNumber = 0;\n \n// for (int i = 2; i < upperLimit; i++) {\n// currentNumber = firstNumber + secondNumber; // get the value of the current number\n// firstNumber = secondNumber; //\n// secondNumber = currentNumber;\n// }\n\n// System.out.println(\"The number of the fibonacci sequence at position \" + upperLimit + \" is \" + currentNumber);\n\n // [4, 2, 8, 3, 9]\n // Arrays.sort()\n\n\n // Bubble sort\n\n int[] numbers = {4, 2, 8, 5, 3, 9};\n\n// for (int i = 0; i < numbers.length; i++) {\n// for (int j = 0; j < numbers.length - 1 - i; j++) {\n// if (numbers[j] > numbers[j + 1]) {\n// // Create a temporary variable to hold the current value\n// // at index j\n// int temp = numbers[j];\n//\n// // swap the numbers together\n// numbers[j] = numbers[j + 1];\n// numbers[j + 1] = temp;\n// }\n// }\n// }\n\n// System.out.println(Arrays.toString(numbers));\n\n\n // Insertion sort\n // This algorithm sort by comparing the values at the indexes with the previous elements to sort the elements.\n // We place the value at the index where there are no lesser values to the elements.\n\n// for (int i = 1; i < numbers.length; i++) {\n// int valueToSort = numbers[i];\n// int j;\n// for (j = i; j > 0 && numbers[j - 1] > valueToSort; j--) {\n// numbers[j] = numbers[j - 1];\n// }\n//\n// numbers[j] = valueToSort;\n//\n// }\n\n// System.out.println(Arrays.toString(numbers));\n\n\n // Selection Sort\n // Find the minimum element in the array\n // Swap that minimum element with the current element\n // Repeat the whole process until the array is fully sorted.\n\n// for (int i = 0; i < numbers.length - 1; i++) {\n// int index = i; // current index of the number\n// for (int j = i + 1; j < numbers.length; j++) {\n// if (numbers[j] < numbers[index]) {\n// index = j; // swap if number at position j less than number at position index\n// }\n// }\n// int smallerNumber = numbers[index];\n// numbers[index] = numbers[i];\n// numbers[i] = smallerNumber;\n// }\n// System.out.println(Arrays.toString(numbers));\n\n\n// mergeSort(0, numbers.length - 1, numbers);\n// System.out.println(Arrays.toString(numbers));\n\n int[] values = {3, 8, 3, 5, 9};\n mergeSort(0, values.length - 1, values); // Call the mergeSort method to sort the array\n System.out.println(Arrays.toString(values)); // Output the sorted array to the console\n\n }", "public int fibonacciNum (int index){\n int firsnum = 0;\n int secnum = 1;\n int allSum = 0;\n\n for (int i = 0; i < index ; i ++){\n allSum = firsnum + secnum;\n firsnum = secnum;\n secnum = allSum;\n\n\n }\n\n\n return allSum;\n }", "public static int efficient_fibonacci(int num) {\n\t\tDouble temp=(Math.sqrt(5)+1)/2.0;\n\t\tDouble result=Math.pow(temp,num)/Math.sqrt(5);\n\t\treturn (int)Math.round(result);\n\t}" ]
[ "0.74921924", "0.69689715", "0.696673", "0.6920204", "0.69118726", "0.68497974", "0.682261", "0.6578777", "0.65773606", "0.6574158", "0.6573438", "0.6558822", "0.6548048", "0.65456027", "0.6511973", "0.6447265", "0.643619", "0.6429546", "0.6425521", "0.64134", "0.6405019", "0.6400291", "0.63991094", "0.63879234", "0.63716394", "0.6345517", "0.63445383", "0.62966913", "0.6293836", "0.6273364", "0.6242247", "0.61980045", "0.6194079", "0.6190135", "0.6184254", "0.6173223", "0.61711884", "0.616652", "0.61617583", "0.6160965", "0.6124301", "0.6118867", "0.6110453", "0.6108852", "0.6076458", "0.6067917", "0.6059183", "0.6045131", "0.6037635", "0.60332376", "0.60219496", "0.60055786", "0.5991644", "0.59906113", "0.59780765", "0.59750026", "0.5965938", "0.59340477", "0.59340173", "0.59267354", "0.59228444", "0.5920696", "0.5918656", "0.5916274", "0.59143335", "0.59099907", "0.5906763", "0.58949375", "0.58923614", "0.58909434", "0.5882233", "0.58780736", "0.58699995", "0.58579355", "0.58578014", "0.5849933", "0.5846699", "0.5845807", "0.5831141", "0.5825672", "0.5816979", "0.5816212", "0.5804951", "0.57800734", "0.5767281", "0.5757283", "0.57338405", "0.5731542", "0.5730477", "0.5726544", "0.57238096", "0.5721297", "0.57181865", "0.57181025", "0.57174945", "0.5711777", "0.57064074", "0.56993735", "0.5697635", "0.569648", "0.5685092" ]
0.0
-1
This file is part of project flowDesign. Authors: julian (20161221)
public interface ReferenceHolder { /** * Sets the text. * * @param text the new text */ void setText(String text); /** * Gets the current text. * * @return Returns the text. */ String getText(); /** * Gets the current {@link Diagram}. * * @return Returns the diagram. */ Diagram getDiagram(); /** * Sets the reference {@link Diagram}. * * @param reference the new reference */ void setReference(Diagram reference); /** * Gets the reference {@link Diagram}. * * @return Returns the reference. */ Diagram getReference(); /** * Adds a {@link PropertyChangeListener}. * * @param listener the listener to add */ void addPropertyChangeListener(PropertyChangeListener listener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Flow createFlow();", "public interface Flow {\n\n\t/**\n\t * Create a Cascading FlowDef for the specified parameters\n\t * \n\t * @param inPath\n\t * A path to be used as input for the flow\n\t * @param outPath\n\t * A path to be used as output for the floe\n\t * @param errorPath\n\t * A path where failed documents will be stored\n\t * @return A Flowdefinition\n\t * @throws Exception On any error during setup of the flow.\n\t */\n\tpublic abstract FlowDef getFlowDefinition(String inPath, String outPath, String errorPath) throws Exception;\n}", "Flows createFlows();", "private CoreFlowsAll() {\n }", "DataFlow createDataFlow();", "public void buildFlow(FlowDO flow) {\n\t}", "EDataType getCurrentFlow();", "MakeflowFactory getMakeflowFactory();", "FlowSequence createFlowSequence();", "public interface FlowManager extends FlowProgrammer {\n\n void saveFlowToSwitch(Flow flow);\n\n void sendPacket(RawPacket rawPacket, Ethernet packet, Flow flow);\n\n Map<String, Integer> getFlowPerConnectorFromSolution();\n\n Map<String, Integer> getFlowPerConnector();\n\n Map<String, Integer> getFlowPerTunnelConnector();\n\n Map<String, Integer> getFlowPerGatewayConnector();\n\n\n}", "@Override\n public FlowBuilder getFlowBuilder() {\n return this.flowBuilder;\n }", "public interface FlowRule extends PiTranslatable {\n\n IndexTableId DEFAULT_TABLE = IndexTableId.of(0);\n int MAX_TIMEOUT = 60;\n int MIN_PRIORITY = 0;\n int MAX_PRIORITY = 65535;\n\n /**\n * Reason for flow parameter received from switches.\n * Used to check reason parameter in flows.\n */\n enum FlowRemoveReason {\n IDLE_TIMEOUT,\n HARD_TIMEOUT,\n DELETE,\n GROUP_DELETE,\n METER_DELETE,\n EVICTION,\n NO_REASON;\n\n /**\n * Covert short to enum.\n * @return reason in enum\n * @param reason remove reason in integer\n */\n public static FlowRemoveReason parseShort(short reason) {\n switch (reason) {\n case -1 :\n return NO_REASON;\n case 0:\n return IDLE_TIMEOUT;\n case 1:\n return HARD_TIMEOUT;\n case 2 :\n return DELETE;\n case 3:\n return GROUP_DELETE;\n case 4:\n return METER_DELETE;\n case 5:\n return EVICTION;\n default :\n return NO_REASON;\n }\n }\n }\n\n /**\n * Returns the ID of this flow.\n *\n * @return the flow ID\n */\n FlowId id();\n\n /**\n * Returns the application id of this flow.\n *\n * @return an applicationId\n */\n short appId();\n\n /**\n * Returns the group id of this flow.\n *\n * @return an groupId\n */\n GroupId groupId();\n\n /**\n * Returns the flow rule priority given in natural order; higher numbers\n * mean higher priorities.\n *\n * @return flow rule priority\n */\n int priority();\n\n /**\n * Returns the identity of the device where this rule applies.\n *\n * @return device identifier\n */\n DeviceId deviceId();\n\n /**\n * Returns the traffic selector that identifies what traffic this rule\n * should apply to.\n *\n * @return traffic selector\n */\n TrafficSelector selector();\n\n /**\n * Returns the traffic treatment that applies to selected traffic.\n *\n * @return traffic treatment\n */\n TrafficTreatment treatment();\n\n /**\n * Returns the timeout for this flow requested by an application.\n *\n * @return integer value of the timeout\n */\n int timeout();\n\n /**\n * Returns the hard timeout for this flow requested by an application.\n * This parameter configure switch's flow hard timeout.\n * In case of controller-switch connection lost, this variable can be useful.\n * @return integer value of the hard Timeout\n */\n int hardTimeout();\n\n /**\n * Returns the reason for the flow received from switches.\n *\n * @return FlowRemoveReason value of reason\n */\n FlowRemoveReason reason();\n\n /**\n * Returns whether the flow is permanent i.e. does not time out.\n *\n * @return true if the flow is permanent, otherwise false\n */\n boolean isPermanent();\n\n /**\n * Returns the table id for this rule.\n *\n * @return an integer.\n * @deprecated in Loon release (version 1.11.0). Use {@link #table()} instead.\n */\n @Deprecated\n int tableId();\n\n /**\n * Returns the table identifier for this rule.\n *\n * @return a table identifier.\n */\n TableId table();\n\n /**\n * {@inheritDoc}\n *\n * Equality for flow rules only considers 'match equality'. This means that\n * two flow rules with the same match conditions will be equal, regardless\n * of the treatment or other characteristics of the flow.\n *\n * @param obj the reference object with which to compare.\n * @return {@code true} if this object is the same as the obj\n * argument; {@code false} otherwise.\n */\n boolean equals(Object obj);\n\n /**\n * Returns whether this flow rule is an exact match to the flow rule given\n * in the argument.\n * <p>\n * Exact match means that deviceId, priority, selector,\n * tableId, flowId and treatment are equal. Note that this differs from\n * the notion of object equality for flow rules, which does not consider the\n * flowId or treatment when testing equality.\n * </p>\n *\n * @param rule other rule to match against\n * @return true if the rules are an exact match, otherwise false\n */\n boolean exactMatch(FlowRule rule);\n\n /**\n * A flowrule builder.\n */\n interface Builder {\n\n /**\n * Assigns a cookie value to this flowrule. Mutually exclusive with the\n * fromApp method. This method is intended to take a cookie value from\n * the dataplane and not from the application.\n *\n * @param cookie a long value\n * @return this\n */\n Builder withCookie(long cookie);\n\n /**\n * Assigns the application that built this flow rule to this object.\n * The short value of the appId will be used as a basis for the\n * cookie value computation. It is expected that application use this\n * call to set their application id.\n *\n * @param appId an application id\n * @return this\n */\n Builder fromApp(ApplicationId appId);\n\n /**\n * Sets the priority for this flow rule.\n *\n * @param priority an integer\n * @return this\n */\n Builder withPriority(int priority);\n\n /**\n * Sets the deviceId for this flow rule.\n *\n * @param deviceId a device id\n * @return this\n */\n Builder forDevice(DeviceId deviceId);\n\n /**\n * Sets the table id for this flow rule, when the identifier is of type {@link TableId.Type#INDEX}. Default\n * value is 0.\n * <p>\n * <em>Important:</em> This method is left here for backward compatibility with applications that specifies\n * table identifiers using integers, e.g. as in OpenFlow. Currently there is no plan to deprecate this method,\n * however, new applications should favor using {@link #forTable(TableId)}.\n *\n * @param tableId an integer\n * @return this\n */\n Builder forTable(int tableId);\n\n /**\n * Sets the table identifier for this flow rule.\n * Default identifier is of type {@link TableId.Type#INDEX} and value 0.\n *\n * @param tableId table identifier\n * @return this\n */\n Builder forTable(TableId tableId);\n\n /**\n * Sets the selector (or match field) for this flow rule.\n *\n * @param selector a traffic selector\n * @return this\n */\n Builder withSelector(TrafficSelector selector);\n\n /**\n * Sets the traffic treatment for this flow rule.\n *\n * @param treatment a traffic treatment\n * @return this\n */\n Builder withTreatment(TrafficTreatment treatment);\n\n /**\n * Makes this rule permanent on the dataplane.\n *\n * @return this\n */\n Builder makePermanent();\n\n /**\n * Makes this rule temporary and timeout after the specified amount\n * of time.\n *\n * @param timeout an integer\n * @return this\n */\n Builder makeTemporary(int timeout);\n\n /**\n * Sets the idle timeout parameter in flow table.\n *\n * Will automatically make it permanent or temporary if the timeout is 0 or not, respectively.\n * @param timeout an integer\n * @return this\n */\n default Builder withIdleTimeout(int timeout) {\n if (timeout == 0) {\n return makePermanent();\n } else {\n return makeTemporary(timeout);\n }\n }\n\n /**\n * Sets hard timeout parameter in flow table.\n * @param timeout an integer\n * @return this\n */\n Builder withHardTimeout(int timeout);\n\n /**\n * Sets reason parameter received from switches .\n * @param reason a short\n * @return this\n */\n Builder withReason(FlowRemoveReason reason);\n\n /**\n * Builds a flow rule object.\n *\n * @return a flow rule.\n */\n FlowRule build();\n\n }\n}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "String getFlowdirct();", "SequenceFlow createSequenceFlow();", "public void setFlow(int flow) {\r\n\r\n this.flow = flow;\r\n }", "FlowDesignerFactory getFlowDesignerFactory();", "@Override\n public void feedingHerb() {\n\n }", "public interface FlowDesignerPackage extends EPackage {\n /**\n * The package name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNAME = \"FlowDesigner\";\n\n /**\n * The package namespace URI.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_URI = \"http://piece-framework.com/piece-ide/flowdesigner/1.0\";\n\n /**\n * The package namespace name.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n String eNS_PREFIX = \"FlowDesigner\";\n\n /**\n * The singleton instance of the package.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n FlowDesignerPackage eINSTANCE = FlowDesigner.impl.FlowDesignerPackageImpl.init();\n\n /**\n * The meta object id for the '{@link FlowDesigner.Source <em>Source</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.Source\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getSource()\n * @generated\n */\n int SOURCE = 5;\n\n /**\n * The feature id for the '<em><b>Events</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SOURCE__EVENTS = 0;\n\n /**\n * The number of structural features of the '<em>Source</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int SOURCE_FEATURE_COUNT = 1;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.InitialStateImpl <em>Initial State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.InitialStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getInitialState()\n * @generated\n */\n int INITIAL_STATE = 0;\n\n /**\n * The feature id for the '<em><b>Events</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int INITIAL_STATE__EVENTS = SOURCE__EVENTS;\n\n /**\n * The feature id for the '<em><b>Initialize</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int INITIAL_STATE__INITIALIZE = SOURCE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Initial State</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int INITIAL_STATE_FEATURE_COUNT = SOURCE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link FlowDesigner.Target <em>Target</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.Target\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getTarget()\n * @generated\n */\n int TARGET = 6;\n\n /**\n * The number of structural features of the '<em>Target</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int TARGET_FEATURE_COUNT = 0;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.FinalStateImpl <em>Final State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.FinalStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getFinalState()\n * @generated\n */\n int FINAL_STATE = 1;\n\n /**\n * The feature id for the '<em><b>Finalize</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FINAL_STATE__FINALIZE = TARGET_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>Final State</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FINAL_STATE_FEATURE_COUNT = TARGET_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.NamedStateImpl <em>Named State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.NamedStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getNamedState()\n * @generated\n */\n int NAMED_STATE = 7;\n\n /**\n * The feature id for the '<em><b>Events</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE__EVENTS = SOURCE__EVENTS;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE__NAME = SOURCE_FEATURE_COUNT + 0;\n\n /**\n * The feature id for the '<em><b>Activity</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE__ACTIVITY = SOURCE_FEATURE_COUNT + 1;\n\n /**\n * The feature id for the '<em><b>Exit</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE__EXIT = SOURCE_FEATURE_COUNT + 2;\n\n /**\n * The feature id for the '<em><b>Entry</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE__ENTRY = SOURCE_FEATURE_COUNT + 3;\n\n /**\n * The number of structural features of the '<em>Named State</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int NAMED_STATE_FEATURE_COUNT = SOURCE_FEATURE_COUNT + 4;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.ActionStateImpl <em>Action State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.ActionStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getActionState()\n * @generated\n */\n int ACTION_STATE = 2;\n\n /**\n * The feature id for the '<em><b>Events</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE__EVENTS = NAMED_STATE__EVENTS;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE__NAME = NAMED_STATE__NAME;\n\n /**\n * The feature id for the '<em><b>Activity</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE__ACTIVITY = NAMED_STATE__ACTIVITY;\n\n /**\n * The feature id for the '<em><b>Exit</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE__EXIT = NAMED_STATE__EXIT;\n\n /**\n * The feature id for the '<em><b>Entry</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE__ENTRY = NAMED_STATE__ENTRY;\n\n /**\n * The number of structural features of the '<em>Action State</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int ACTION_STATE_FEATURE_COUNT = NAMED_STATE_FEATURE_COUNT + 0;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.ViewStateImpl <em>View State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.ViewStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getViewState()\n * @generated\n */\n int VIEW_STATE = 3;\n\n /**\n * The feature id for the '<em><b>Events</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__EVENTS = NAMED_STATE__EVENTS;\n\n /**\n * The feature id for the '<em><b>Name</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__NAME = NAMED_STATE__NAME;\n\n /**\n * The feature id for the '<em><b>Activity</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__ACTIVITY = NAMED_STATE__ACTIVITY;\n\n /**\n * The feature id for the '<em><b>Exit</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__EXIT = NAMED_STATE__EXIT;\n\n /**\n * The feature id for the '<em><b>Entry</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__ENTRY = NAMED_STATE__ENTRY;\n\n /**\n * The feature id for the '<em><b>View</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE__VIEW = NAMED_STATE_FEATURE_COUNT + 0;\n\n /**\n * The number of structural features of the '<em>View State</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int VIEW_STATE_FEATURE_COUNT = NAMED_STATE_FEATURE_COUNT + 1;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.EventImpl <em>Event</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.EventImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getEvent()\n * @generated\n */\n int EVENT = 4;\n\n /**\n * The feature id for the '<em><b>Event</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EVENT__EVENT = 0;\n\n /**\n * The feature id for the '<em><b>Next State</b></em>' reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EVENT__NEXT_STATE = 1;\n\n /**\n * The feature id for the '<em><b>Action</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EVENT__ACTION = 2;\n\n /**\n * The feature id for the '<em><b>Guard</b></em>' attribute.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EVENT__GUARD = 3;\n\n /**\n * The number of structural features of the '<em>Event</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int EVENT_FEATURE_COUNT = 4;\n\n /**\n * The meta object id for the '{@link FlowDesigner.impl.FlowImpl <em>Flow</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.FlowImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getFlow()\n * @generated\n */\n int FLOW = 8;\n\n /**\n * The feature id for the '<em><b>Initial State</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FLOW__INITIAL_STATE = 0;\n\n /**\n * The feature id for the '<em><b>States</b></em>' containment reference list.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FLOW__STATES = 1;\n\n /**\n * The feature id for the '<em><b>Final State</b></em>' containment reference.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FLOW__FINAL_STATE = 2;\n\n /**\n * The number of structural features of the '<em>Flow</em>' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n * @ordered\n */\n int FLOW_FEATURE_COUNT = 3;\n\n /**\n * The meta object id for the '<em>Action</em>' data type.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see java.lang.String\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getAction()\n * @generated\n */\n int ACTION = 9;\n\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.InitialState <em>Initial State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Initial State</em>'.\n * @see FlowDesigner.InitialState\n * @generated\n */\n EClass getInitialState();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.InitialState#getInitialize <em>Initialize</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Initialize</em>'.\n * @see FlowDesigner.InitialState#getInitialize()\n * @see #getInitialState()\n * @generated\n */\n EAttribute getInitialState_Initialize();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.FinalState <em>Final State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Final State</em>'.\n * @see FlowDesigner.FinalState\n * @generated\n */\n EClass getFinalState();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.FinalState#getFinalize <em>Finalize</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Finalize</em>'.\n * @see FlowDesigner.FinalState#getFinalize()\n * @see #getFinalState()\n * @generated\n */\n EAttribute getFinalState_Finalize();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.ActionState <em>Action State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Action State</em>'.\n * @see FlowDesigner.ActionState\n * @generated\n */\n EClass getActionState();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.ViewState <em>View State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>View State</em>'.\n * @see FlowDesigner.ViewState\n * @generated\n */\n EClass getViewState();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.ViewState#getView <em>View</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>View</em>'.\n * @see FlowDesigner.ViewState#getView()\n * @see #getViewState()\n * @generated\n */\n EAttribute getViewState_View();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.Event <em>Event</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Event</em>'.\n * @see FlowDesigner.Event\n * @generated\n */\n EClass getEvent();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.Event#getEvent <em>Event</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Event</em>'.\n * @see FlowDesigner.Event#getEvent()\n * @see #getEvent()\n * @generated\n */\n EAttribute getEvent_Event();\n\n /**\n * Returns the meta object for the reference '{@link FlowDesigner.Event#getNextState <em>Next State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the reference '<em>Next State</em>'.\n * @see FlowDesigner.Event#getNextState()\n * @see #getEvent()\n * @generated\n */\n EReference getEvent_NextState();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.Event#getAction <em>Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Action</em>'.\n * @see FlowDesigner.Event#getAction()\n * @see #getEvent()\n * @generated\n */\n EAttribute getEvent_Action();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.Event#getGuard <em>Guard</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Guard</em>'.\n * @see FlowDesigner.Event#getGuard()\n * @see #getEvent()\n * @generated\n */\n EAttribute getEvent_Guard();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.Source <em>Source</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Source</em>'.\n * @see FlowDesigner.Source\n * @generated\n */\n EClass getSource();\n\n /**\n * Returns the meta object for the containment reference list '{@link FlowDesigner.Source#getEvents <em>Events</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>Events</em>'.\n * @see FlowDesigner.Source#getEvents()\n * @see #getSource()\n * @generated\n */\n EReference getSource_Events();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.Target <em>Target</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Target</em>'.\n * @see FlowDesigner.Target\n * @generated\n */\n EClass getTarget();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.NamedState <em>Named State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Named State</em>'.\n * @see FlowDesigner.NamedState\n * @generated\n */\n EClass getNamedState();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.NamedState#getName <em>Name</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Name</em>'.\n * @see FlowDesigner.NamedState#getName()\n * @see #getNamedState()\n * @generated\n */\n EAttribute getNamedState_Name();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.NamedState#getActivity <em>Activity</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Activity</em>'.\n * @see FlowDesigner.NamedState#getActivity()\n * @see #getNamedState()\n * @generated\n */\n EAttribute getNamedState_Activity();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.NamedState#getExit <em>Exit</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Exit</em>'.\n * @see FlowDesigner.NamedState#getExit()\n * @see #getNamedState()\n * @generated\n */\n EAttribute getNamedState_Exit();\n\n /**\n * Returns the meta object for the attribute '{@link FlowDesigner.NamedState#getEntry <em>Entry</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the attribute '<em>Entry</em>'.\n * @see FlowDesigner.NamedState#getEntry()\n * @see #getNamedState()\n * @generated\n */\n EAttribute getNamedState_Entry();\n\n /**\n * Returns the meta object for class '{@link FlowDesigner.Flow <em>Flow</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for class '<em>Flow</em>'.\n * @see FlowDesigner.Flow\n * @generated\n */\n EClass getFlow();\n\n /**\n * Returns the meta object for the containment reference '{@link FlowDesigner.Flow#getInitialState <em>Initial State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Initial State</em>'.\n * @see FlowDesigner.Flow#getInitialState()\n * @see #getFlow()\n * @generated\n */\n EReference getFlow_InitialState();\n\n /**\n * Returns the meta object for the containment reference list '{@link FlowDesigner.Flow#getStates <em>States</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference list '<em>States</em>'.\n * @see FlowDesigner.Flow#getStates()\n * @see #getFlow()\n * @generated\n */\n EReference getFlow_States();\n\n /**\n * Returns the meta object for the containment reference '{@link FlowDesigner.Flow#getFinalState <em>Final State</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for the containment reference '<em>Final State</em>'.\n * @see FlowDesigner.Flow#getFinalState()\n * @see #getFlow()\n * @generated\n */\n EReference getFlow_FinalState();\n\n /**\n * Returns the meta object for data type '{@link java.lang.String <em>Action</em>}'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the meta object for data type '<em>Action</em>'.\n * @see java.lang.String\n * @model instanceClass=\"java.lang.String\"\n * @generated\n */\n EDataType getAction();\n\n /**\n * Returns the factory that creates the instances of the model.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the factory that creates the instances of the model.\n * @generated\n */\n FlowDesignerFactory getFlowDesignerFactory();\n\n /**\n * <!-- begin-user-doc -->\n * Defines literals for the meta objects that represent\n * <ul>\n * <li>each class,</li>\n * <li>each feature of each class,</li>\n * <li>each enum,</li>\n * <li>and each data type</li>\n * </ul>\n * <!-- end-user-doc -->\n * @generated\n */\n interface Literals {\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.InitialStateImpl <em>Initial State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.InitialStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getInitialState()\n * @generated\n */\n EClass INITIAL_STATE = eINSTANCE.getInitialState();\n\n /**\n * The meta object literal for the '<em><b>Initialize</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute INITIAL_STATE__INITIALIZE = eINSTANCE.getInitialState_Initialize();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.FinalStateImpl <em>Final State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.FinalStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getFinalState()\n * @generated\n */\n EClass FINAL_STATE = eINSTANCE.getFinalState();\n\n /**\n * The meta object literal for the '<em><b>Finalize</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute FINAL_STATE__FINALIZE = eINSTANCE.getFinalState_Finalize();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.ActionStateImpl <em>Action State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.ActionStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getActionState()\n * @generated\n */\n EClass ACTION_STATE = eINSTANCE.getActionState();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.ViewStateImpl <em>View State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.ViewStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getViewState()\n * @generated\n */\n EClass VIEW_STATE = eINSTANCE.getViewState();\n\n /**\n * The meta object literal for the '<em><b>View</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute VIEW_STATE__VIEW = eINSTANCE.getViewState_View();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.EventImpl <em>Event</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.EventImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getEvent()\n * @generated\n */\n EClass EVENT = eINSTANCE.getEvent();\n\n /**\n * The meta object literal for the '<em><b>Event</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute EVENT__EVENT = eINSTANCE.getEvent_Event();\n\n /**\n * The meta object literal for the '<em><b>Next State</b></em>' reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference EVENT__NEXT_STATE = eINSTANCE.getEvent_NextState();\n\n /**\n * The meta object literal for the '<em><b>Action</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute EVENT__ACTION = eINSTANCE.getEvent_Action();\n\n /**\n * The meta object literal for the '<em><b>Guard</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute EVENT__GUARD = eINSTANCE.getEvent_Guard();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.Source <em>Source</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.Source\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getSource()\n * @generated\n */\n EClass SOURCE = eINSTANCE.getSource();\n\n /**\n * The meta object literal for the '<em><b>Events</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference SOURCE__EVENTS = eINSTANCE.getSource_Events();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.Target <em>Target</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.Target\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getTarget()\n * @generated\n */\n EClass TARGET = eINSTANCE.getTarget();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.NamedStateImpl <em>Named State</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.NamedStateImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getNamedState()\n * @generated\n */\n EClass NAMED_STATE = eINSTANCE.getNamedState();\n\n /**\n * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NAMED_STATE__NAME = eINSTANCE.getNamedState_Name();\n\n /**\n * The meta object literal for the '<em><b>Activity</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NAMED_STATE__ACTIVITY = eINSTANCE.getNamedState_Activity();\n\n /**\n * The meta object literal for the '<em><b>Exit</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NAMED_STATE__EXIT = eINSTANCE.getNamedState_Exit();\n\n /**\n * The meta object literal for the '<em><b>Entry</b></em>' attribute feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EAttribute NAMED_STATE__ENTRY = eINSTANCE.getNamedState_Entry();\n\n /**\n * The meta object literal for the '{@link FlowDesigner.impl.FlowImpl <em>Flow</em>}' class.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see FlowDesigner.impl.FlowImpl\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getFlow()\n * @generated\n */\n EClass FLOW = eINSTANCE.getFlow();\n\n /**\n * The meta object literal for the '<em><b>Initial State</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FLOW__INITIAL_STATE = eINSTANCE.getFlow_InitialState();\n\n /**\n * The meta object literal for the '<em><b>States</b></em>' containment reference list feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FLOW__STATES = eINSTANCE.getFlow_States();\n\n /**\n * The meta object literal for the '<em><b>Final State</b></em>' containment reference feature.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n EReference FLOW__FINAL_STATE = eINSTANCE.getFlow_FinalState();\n\n /**\n * The meta object literal for the '<em>Action</em>' data type.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @see java.lang.String\n * @see FlowDesigner.impl.FlowDesignerPackageImpl#getAction()\n * @generated\n */\n EDataType ACTION = eINSTANCE.getAction();\n\n }\n\n}", "public interface MakeflowPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"makeflow\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http:///de/thiema/easyflow/execution/makeflow/1.0.0\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"easyflow\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tMakeflowPackage eINSTANCE = easyflow.execution.makeflow.impl.MakeflowPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link easyflow.execution.makeflow.impl.MakeflowImpl <em>Makeflow</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see easyflow.execution.makeflow.impl.MakeflowImpl\n\t * @see easyflow.execution.makeflow.impl.MakeflowPackageImpl#getMakeflow()\n\t * @generated\n\t */\n\tint MAKEFLOW = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Logger</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW__LOGGER = ExecutionPackage.IEXECUTION_SYSTEM__LOGGER;\n\n\t/**\n\t * The feature id for the '<em><b>Writer</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW__WRITER = ExecutionPackage.IEXECUTION_SYSTEM__WRITER;\n\n\t/**\n\t * The feature id for the '<em><b>Unix</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW__UNIX = ExecutionPackage.IEXECUTION_SYSTEM_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Makeflow</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW_FEATURE_COUNT = ExecutionPackage.IEXECUTION_SYSTEM_FEATURE_COUNT + 1;\n\n\n\t/**\n\t * The operation id for the '<em>Get Jgraphx Visitor</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW___GET_JGRAPHX_VISITOR = ExecutionPackage.IEXECUTION_SYSTEM___GET_JGRAPHX_VISITOR;\n\n\t/**\n\t * The operation id for the '<em>Generate Execution String</em>' operation.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW___GENERATE_EXECUTION_STRING__RULE = ExecutionPackage.IEXECUTION_SYSTEM___GENERATE_EXECUTION_STRING__RULE;\n\n\t/**\n\t * The number of operations of the '<em>Makeflow</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKEFLOW_OPERATION_COUNT = ExecutionPackage.IEXECUTION_SYSTEM_OPERATION_COUNT + 0;\n\n\n\t/**\n\t * Returns the meta object for class '{@link easyflow.execution.makeflow.Makeflow <em>Makeflow</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Makeflow</em>'.\n\t * @see easyflow.execution.makeflow.Makeflow\n\t * @generated\n\t */\n\tEClass getMakeflow();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tMakeflowFactory getMakeflowFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link easyflow.execution.makeflow.impl.MakeflowImpl <em>Makeflow</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see easyflow.execution.makeflow.impl.MakeflowImpl\n\t\t * @see easyflow.execution.makeflow.impl.MakeflowPackageImpl#getMakeflow()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKEFLOW = eINSTANCE.getMakeflow();\n\n\t}\n\n}", "void test() {\n @Source(CAMERA) @Sink(INTERNET) byte @Source(CAMERA) @Sink(INTERNET) [] invariant = notCompleted;\n\n // This line used to issue an error but was fixed when transitioning to better type variables\n // check version history for more information if this line is failing\n flowCompleted = notCompleted;\n\n @Source(CAMERA) @Sink({FILESYSTEM, INTERNET}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] a = null;\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] b = a;\n\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] aCorrect = null;\n @Source(CAMERA) @Sink({INTERNET, FILESYSTEM}) byte @Source(CAMERA) @Sink({FILESYSTEM, INTERNET})[] bCorrect = aCorrect;\n }", "public Flow(UseCase useCase) {\r\n\t\tthis.useCase = useCase;\r\n\t}", "public interface FlowInformation {\n /**\n * Returns TRUE is current app setup is master details flow\n */\n public boolean isMasterDetailFlow();\n }", "FlowType createFlowType();", "public interface FlowExtendClient{\n CloseableHttpClient getHttpClient() throws Exception ;\n\n void releaseHttpClient(CloseableHttpClient httpClient);\n\n void setWorkFlowServerUrl(String workFlowServerUrl) ;\n\n void updateFlowInstance(FlowInstance flowInstance);\n\n JSONObject getPorcInfoByNodeInstId(String nodeInstId);\n}", "public interface Simpleflowmodel4pcmFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tSimpleflowmodel4pcmFactory eINSTANCE = edu.kit.kastel.scbs.simpleflowmodel4pcm.impl.Simpleflowmodel4pcmFactoryImpl\r\n\t\t\t.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Flows</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Flows</em>'.\r\n\t * @generated\r\n\t */\r\n\tFlows createFlows();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Flow</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Flow</em>'.\r\n\t * @generated\r\n\t */\r\n\tFlow createFlow();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Signature Source</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Signature Source</em>'.\r\n\t * @generated\r\n\t */\r\n\tSignatureSource createSignatureSource();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Source</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Source</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterSource createParameterSource();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Signature Identification</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Signature Identification</em>'.\r\n\t * @generated\r\n\t */\r\n\tSignatureIdentification createSignatureIdentification();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Identification</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Identification</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterIdentification createParameterIdentification();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Generic Sink</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Generic Sink</em>'.\r\n\t * @generated\r\n\t */\r\n\tGenericSink createGenericSink();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Signature Sink</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Signature Sink</em>'.\r\n\t * @generated\r\n\t */\r\n\tSignatureSink createSignatureSink();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Parameter Sink</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Parameter Sink</em>'.\r\n\t * @generated\r\n\t */\r\n\tParameterSink createParameterSink();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tSimpleflowmodel4pcmPackage getSimpleflowmodel4pcmPackage();\r\n\r\n}", "public Flow getFlow() {\n return flow;\n }", "public abstract FlowDef getFlowDefinition(String inPath, String outPath, String errorPath) throws Exception;", "FlowRule build();", "interface DefinitionStages {\n /** The first stage of the EventChannel definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the EventChannel definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }\n /**\n * The stage of the EventChannel definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithSource,\n DefinitionStages.WithDestination,\n DefinitionStages.WithExpirationTimeIfNotActivatedUtc,\n DefinitionStages.WithFilter,\n DefinitionStages.WithPartnerTopicFriendlyDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n EventChannel create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n EventChannel create(Context context);\n }\n /** The stage of the EventChannel definition allowing to specify source. */\n interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }\n /** The stage of the EventChannel definition allowing to specify destination. */\n interface WithDestination {\n /**\n * Specifies the destination property: Represents the destination of an event channel..\n *\n * @param destination Represents the destination of an event channel.\n * @return the next definition stage.\n */\n WithCreate withDestination(EventChannelDestination destination);\n }\n /** The stage of the EventChannel definition allowing to specify expirationTimeIfNotActivatedUtc. */\n interface WithExpirationTimeIfNotActivatedUtc {\n /**\n * Specifies the expirationTimeIfNotActivatedUtc property: Expiration time of the event channel. If this\n * timer expires while the corresponding partner topic is never activated, the event channel and\n * corresponding partner topic are deleted..\n *\n * @param expirationTimeIfNotActivatedUtc Expiration time of the event channel. If this timer expires while\n * the corresponding partner topic is never activated, the event channel and corresponding partner topic\n * are deleted.\n * @return the next definition stage.\n */\n WithCreate withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc);\n }\n /** The stage of the EventChannel definition allowing to specify filter. */\n interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }\n /** The stage of the EventChannel definition allowing to specify partnerTopicFriendlyDescription. */\n interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }\n }", "@Override\n\tprotected void logic() {\n\n\t}", "interface DefinitionStages {\n /** The first stage of the SourceControl definition. */\n interface Blank extends WithParentResource {\n }\n /** The stage of the SourceControl definition allowing to specify parent resource. */\n interface WithParentResource {\n /**\n * Specifies resourceGroupName, automationAccountName.\n *\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @return the next definition stage.\n */\n WithCreate withExistingAutomationAccount(String resourceGroupName, String automationAccountName);\n }\n /**\n * The stage of the SourceControl definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithRepoUrl,\n DefinitionStages.WithBranch,\n DefinitionStages.WithFolderPath,\n DefinitionStages.WithAutoSync,\n DefinitionStages.WithPublishRunbook,\n DefinitionStages.WithSourceType,\n DefinitionStages.WithSecurityToken,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SourceControl create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SourceControl create(Context context);\n }\n /** The stage of the SourceControl definition allowing to specify repoUrl. */\n interface WithRepoUrl {\n /**\n * Specifies the repoUrl property: The repo url of the source control..\n *\n * @param repoUrl The repo url of the source control.\n * @return the next definition stage.\n */\n WithCreate withRepoUrl(String repoUrl);\n }\n /** The stage of the SourceControl definition allowing to specify branch. */\n interface WithBranch {\n /**\n * Specifies the branch property: The repo branch of the source control. Include branch as empty string for\n * VsoTfvc..\n *\n * @param branch The repo branch of the source control. Include branch as empty string for VsoTfvc.\n * @return the next definition stage.\n */\n WithCreate withBranch(String branch);\n }\n /** The stage of the SourceControl definition allowing to specify folderPath. */\n interface WithFolderPath {\n /**\n * Specifies the folderPath property: The folder path of the source control. Path must be relative..\n *\n * @param folderPath The folder path of the source control. Path must be relative.\n * @return the next definition stage.\n */\n WithCreate withFolderPath(String folderPath);\n }\n /** The stage of the SourceControl definition allowing to specify autoSync. */\n interface WithAutoSync {\n /**\n * Specifies the autoSync property: The auto async of the source control. Default is false..\n *\n * @param autoSync The auto async of the source control. Default is false.\n * @return the next definition stage.\n */\n WithCreate withAutoSync(Boolean autoSync);\n }\n /** The stage of the SourceControl definition allowing to specify publishRunbook. */\n interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }\n /** The stage of the SourceControl definition allowing to specify sourceType. */\n interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }\n /** The stage of the SourceControl definition allowing to specify securityToken. */\n interface WithSecurityToken {\n /**\n * Specifies the securityToken property: The authorization token for the repo of the source control..\n *\n * @param securityToken The authorization token for the repo of the source control.\n * @return the next definition stage.\n */\n WithCreate withSecurityToken(SourceControlSecurityTokenProperties securityToken);\n }\n /** The stage of the SourceControl definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The user description of the source control..\n *\n * @param description The user description of the source control.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }", "@Override\n public void perish() {\n \n }", "@Override\n protected void setup() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "NamedElement getFlow();", "private void showFlow(VFlow flow, Stage stage, String title) {\n ScalableContentPane canvas = new ScalableContentPane();\r\n\r\n // define it as background (css class)\r\n canvas.getStyleClass().setAll(\"vflow-background\");\r\n\r\n // create skin factory for flow visualization\r\n FXValueSkinFactory fXSkinFactory = new FXValueSkinFactory(canvas.getContentPane());\r\n\r\n // register visualizations for Integer, String and Image\r\n fXSkinFactory.addSkinClassForValueType(Integer.class, IntegerFlowNodeSkin.class);\r\n fXSkinFactory.addSkinClassForValueType(String.class, StringFlowNodeSkin.class);\r\n fXSkinFactory.addSkinClassForValueType(Image.class, ImageFlowNodeSkin.class);\r\n\r\n // generate the ui for the flow\r\n flow.addSkinFactories(fXSkinFactory);\r\n\r\n // the usual application setup\r\n Scene scene = new Scene(canvas, 1024, 600);\r\n\r\n // add css style\r\n scene.getStylesheets().setAll(\r\n \"/eu/mihosoft/vrl/workflow/tutorial05/resources/default.css\");\r\n\r\n stage.setTitle(title);\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void analyzing(DependencyFrame rFrame) {\n\t\t\n\t}", "public FlowRule() {\r\n }", "interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCluster, DefinitionStages.WithNodeCount, DefinitionStages.WithStdOutErrPathPrefix, DefinitionStages.WithCreate {\n }", "@Override\n public void setup() {\n\n }", "public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}", "@Override\n public void setup() {\n }", "@Override\n public void setup() {\n }", "public int getFlow() {\r\n\r\n return flow;\r\n }", "@Override\n\tprotected void flowThrough(Object in, Object d, Object out) {\n\t\t\n\t}", "interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }", "public int flow() {\n\t\treturn this.flow;\n\t}", "public interface ISystem extends INonFlowObject {\n\n}", "@Override\n public void onPourSyrupRaised() {\n }", "public Flow getFlow() {\r\n\t\treturn flow;\r\n\t}", "@Bean\n\tpublic Flow myFlow() {\n\t\tFlowBuilder<Flow> flowBuilder = new FlowBuilder<>(\"myFlow\");\n\t\t\n\t\tflowBuilder.start(flowFoo1())\n\t\t\t.next(flowFoo2())\n\t\t\t.end();\n\t\t\n\t\treturn flowBuilder.build();\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic FlowMessageFactory getFlowMessageFactory() {\n\t\treturn null;\n\t}", "public void setup() {\r\n\r\n\t}", "public interface HideSelectedEdgesTaskFactory extends NetworkViewTaskFactory{\n\n}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "public void setup() {\n }", "private FlowWorkspaces()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public static void steamWorksExample() {\n\t\tFalconLinePlot fig3 = new FalconLinePlot(new double[][]{{0.0,0.0}});\n\t\tfig3.yGridOn();\n\t\tfig3.xGridOn();\n\t\tfig3.setYLabel(\"Y (feet)\");\n\t\tfig3.setXLabel(\"X (feet)\");\n\t\tfig3.setTitle(\"Top Down View of FRC Field (50ft, 4in x 27ft) \\n Shows global position of robot path, along with\" +\n\t\t\t\t\t\" left and right wheel trajectories.\\n Includes field elements.\");\n\n\n\t\t//Display Field Dimensions\n\t\tdouble fieldLength = 50.333;\n\t\tdouble fieldHeight = 27;\n\t\tfig3.setXTic(0, fieldLength, 1);//Field Length\n\t\tfig3.setYTic(0, fieldHeight, 1);//Field Height\n\n\n\t\t//Lets add field markers to help us visualize it\n\t\t//https://firstfrc.blob.core.windows.net/frc2017/Manual/2017FRCGameSeasonManual.pdf\n\t\t\n\t\t//Field Border\n\t\tdouble[][] FieldBorder1 = new double[][] {\n\t\t\t//Right Alliance Station Wall\n\t\t\t{fieldLength, 0},\n\t\t\t{fieldLength, fieldHeight},\n\t\t};\n\t\t\n\t\t//Red Alliance Boiler Line\n\t\tdouble[][] FieldBorder2 = new double[][] {\n\t\t\t{0, 8.5},\n\t\t\t{8.5, 0}\n\t\t};\n\t\t\n\t\t\n\t\t\n\t\t// plz upload me on github.meme -Roshan\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Blue Alliance Loading Station Line\n\t\tdouble[][] FieldBorder3 = new double[][] {\n\t\t\t{0, fieldHeight - 8.5},\n\t\t\t{10.929, fieldHeight}\n\t\t};\n\t\t//Blue Alliance Boiler Line\n\t\tdouble[][] FieldBorder4 = new double[][] {\n\t\t\t{fieldLength - 8.5, 0},\n\t\t\t{fieldLength, 8.5}\n\t\t};\n\t\t//Red Alliance Loading Station Line\n\t\tdouble[][] FieldBorder5 = new double[][] {\n\t\t\t{fieldLength, 18.5},\n\t\t\t{fieldLength - 10.929, fieldHeight}\n\t\t};\n\t\t//Top border line of the field\n\t\tdouble[][] FieldBorder6 = new double[][] {\n\t\t\t{0, fieldHeight},\n\t\t\t{fieldLength, fieldHeight}\n\t\t};\n\t\t\n\t\t\n\n\t\t//Key Line\n\t\tdouble[][] KeyLine = new double[][]{\n\t\t\t//Red Alliance Key\n\t\t\t//Blue Alliance Key\n\t\t\t\t\n\t\t};\n\t\t//Retrieval Zone\n\t\tdouble[][] RetrievalZone = new double[][]{\n\t\t\t//Red Alliance Retrieval Zone\n\t\t\t//Blue Alliance Retrieval Zone\n\t\t\t\n\t\t};\n\t\n\t\t\n\t\t//Baseline \n\t\tdouble BaseLineDelta = 7.5 ;\n\t\tdouble[][] BaseLine1 = new double[][]{\n\t\t\t{BaseLineDelta, 0},\n\t\t\t{BaseLineDelta, fieldHeight},\n\t\t\t\t\t\t\n\t\t};\n\t\tdouble[][] BaseLine2 = new double[][]{\n\t\t\t{fieldLength - BaseLineDelta, 0},\n\t\t\t{fieldLength - BaseLineDelta, fieldHeight}\n\t\t\t\n\t\t};\n\t\t\n\t\t//Plastic Barriers\n\t\t//The order of the (x,y) coordinate pair is farthest away from airship first\n\t\t//Red Alliance Station\n\t\tdouble[][] PlasticBarrier1 = new double[][]{\n\t\t\t//Left Most Top Barrier\n\t\t\t{BaseLineDelta, fieldHeight/2 + 3.001},\n\t\t\t{9.53, 15.1}\n\t\t\t\n\t\t};\n\t\tdouble[][] PlasticBarrier2 = new double[][]{\n\t\t\t//Left Most Bottom Barrier\n\t\t\t{7.5, 10.5},\n\t\t\t{9.5, 11.9}\n\t\t\t\n\t\t};\n\t\t/*double[][] PlasticBarrier3 = new double[][]{\n\t\t\t//Top Center Barrier\n\t\t\t{BaseLineDelta + 6.181, fieldHeight/2 + 4.985},\n\t\t\t{13.1, fieldHeight/2 + 4.221}\n\t\t};\n\t\tdouble[][] PlasticBarrier4 = new double[][]{\n\t\t\t//Top Right Barrier\n\t\t\t{BaseLineDelta + 12.363, fieldHeight/2 + 3.001},\n\t\t\t{16.7, fieldHeight/2 + 2.804}\n\t\t};\n\t\tdouble[][] PlasticBarrier5 = new double[][]{\n\t\t\t//Bottom Center Barrier\n\t\t\t{BaseLineDelta + 6.181, fieldHeight/2 - 4.985},\n\t\t\t{13.1, fieldHeight/2 - 4.221}\n\t\t};\n\t\tdouble[][] PlasticBarrier6 = new double[][]{\n\t\t\t//Bottom Right Barrier\n\t\t\t{BaseLineDelta + 12.363, fieldHeight/2 - 3.001},\n\t\t\t{16.7, fieldHeight/2 - 2.804}\n\t\t};*/\n\t\t//Blue Alliance Station\n\t\tdouble[][] PlasticBarrier7 = new double[][]{\n\t\t\t//Right Most Top Barrier\n\t\t\t{50-BaseLineDelta, fieldHeight/2 + 3.001},\n\t\t\t{50-9.53, 15.1}\n\t\t};\n\t\tdouble[][] PlasticBarrier8 = new double[][]{\n\t\t\t//Right Most Bottom Barrier\n\t\t\t{50-7.5, 10.5},\n\t\t\t{50-9.5, 11.9}\n\t\t\t\n\t\t};\n\t\t/*double[][] PlasticBarrier9 = new double[][]{\n\t\t\t//Top Center Barrier\n\t\t\t{fieldLength - BaseLineDelta - 6.181, fieldHeight/2 + 4.985},\n\t\t\t{37, fieldHeight/2 + 4.221}\n\t\t};\n\t\tdouble[][] PlasticBarrier10 = new double[][]{\n\t\t\t//Top Left Barrier\n\t\t\t{fieldLength - BaseLineDelta - 12.363, fieldHeight/2 + 3.001},\n\t\t\t{33.74, fieldHeight/2 + 2.804}\n\t\t};\n\t\tdouble[][] PlasticBarrier11 = new double[][]{\n\t\t\t//Bottom Center Barrier\n\t\t\t{fieldLength - BaseLineDelta - 6.181, fieldHeight/2 - 4.985},\n\t\t\t{37, fieldHeight/2 - 4.221}\n\t\t};\n\t\tdouble[][] PlasticBarrier12 = new double[][]{\n\t\t\t//Bottom Left Barrier\n\t\t\t{fieldLength - BaseLineDelta - 12.363, fieldHeight/2 - 3.001},\n\t\t\t{33.74, fieldHeight/2 - 2.804}\n\t\t};*/\n\t\t\n\t\t//AirShips(Red Alliance)\n\t\tdouble[][] AirShip1 = new double[][]{\n\t\t\t//{BaseLineDelta + 11.598, fieldHeight/2 + 0.917},15.17\n\t\t\t//{16.7, fieldHeight/2 + 1.833}, \n\t\t\t{15, 15.17},\n\t\t\t{12.5, 16.92},\n\t\t\t/*{BaseLineDelta + 1.765, fieldHeight/2 + 2.804},*/\n\t\t\t{9+6.5/12, 15.17},\n\t\t\t/*{BaseLineDelta + 1.765, fieldHeight/2 - 2.804},*/\n\t\t\t{9+6.5/12, 11.83},\n\t\t\t{12.5, 10.08},\n\t\t\t{15, 11.83},\n\t\t\t//{16.7, fieldHeight/2 - 1.833},\n\t\t\t//{BaseLineDelta + 11.598, fieldHeight/2 - 0.917}\n\t\t\t\n\t\t\t\n\t\t};\n\t\t\n\t\t//Airships(Blue Alliance)\n\t\tdouble[][] AirShip2 = new double[][]{\n\t\t\t//{50-15, 15.7},\n\t\t\t{50-15, 15.17},\n\t\t\t{50-12.5, 16.92},\n\t\t\t/*{fieldLength - BaseLineDelta - 1.9,*/\n\t\t\t{40.46,15.17},\n\t\t\t/*{fieldLength - BaseLineDelta - 1.9,*/\n\t\t\t{40.46, 11.83},\n\t\t\t{50-12.5, 10.08},\n\t\t\t{35, 11.83},\n\t\t\t//{33.74, fieldHeight/2 - 1.833}\n\t\t\t//{fieldLength - BaseLineDelta - 12.363, fieldHeight/2 - 0.917},\n\t\t\t\n\t\t};\n\t\t\n\t\t//Neutral Zone Border Lines\n\t\tdouble NuetralZoneDelta = BaseLineDelta + 7.652;\n\t\tdouble[][] NuetralZone1 = new double[][]{\n\t\t\t\t{NuetralZoneDelta, 0},\n\t\t\t\t{NuetralZoneDelta, fieldHeight},\n\t\t\t\t\t\t\t\t\n\t\t};\n\t\tdouble[][] NuetralZone2 = new double[][]{\n\t\t\t{fieldLength - NuetralZoneDelta, 0},\n\t\t\t{fieldLength - NuetralZoneDelta, fieldHeight}\n\t\t\t\n\t\t};\n\t\t\n\t\tdouble[][] Boundary1 = new double[][]{\n\t\t\t//left boiler\n\t\t\t{3,0},\n\t\t\t{0,3},\n\t\t\t\n\t\t};\n\n\t\tdouble[][] Boundary2 = new double[][]{\n\t\t\t//right boiler\n\t\t\t{50,3},\n\t\t\t{47,0},\n\t\t\t\n\t\t};\n\t\t\n\t\tdouble[][] Boundary3 = new double[][]{\n\t\t\t//right loading station\n\t\t\t{50,27-3.13},\n\t\t\t{50-6.08,27}\n\t\t};\n\t\tdouble[][] Boundary4 = new double[][]{\n\t\t\t//left loading station\n\t\t\t{0+6.08,27},\n\t\t\t{0,27-3.13}\n\t\t};\n\t\t\n\t\tfig3.addData(FieldBorder1, Color.black);\n\t\tfig3.addData(FieldBorder2, Color.red);\n\t\tfig3.addData(FieldBorder3, Color.blue);\n\t\tfig3.addData(FieldBorder4, Color.blue);\n\t\tfig3.addData(FieldBorder5, Color.red);/*\n\t\tfig3.addData(KeyLine, Color.black);\n\t\tfig3.addData(RetrievalZone, Color.black);*/\n\t\tfig3.addData(BaseLine1, Color.red);\n\t\tfig3.addData(BaseLine2, Color.blue);\n\t\tfig3.addData(PlasticBarrier1, Color.red);\n\t\tfig3.addData(PlasticBarrier2, Color.red);\n\t\t//fig3.addData(PlasticBarrier3, Color.red);\n\t\t//fig3.addData(PlasticBarrier4, Color.red);\n\t\t//fig3.addData(PlasticBarrier5, Color.red);\n\t\t//fig3.addData(PlasticBarrier6, Color.red);\n\t\tfig3.addData(PlasticBarrier7, Color.blue);\n\t\tfig3.addData(PlasticBarrier8, Color.blue);\n\t\t//fig3.addData(PlasticBarrier9, Color.blue);\n\t\t//fig3.addData(PlasticBarrier10, Color.blue);\n\t\t//fig3.addData(PlasticBarrier11, Color.blue);\n\t\tfig3.addData(FieldBorder6, Color.black);\n\t\tfig3.addData(AirShip1, Color.red);\n\t\tfig3.addData(AirShip2, Color.blue);\n\t\tfig3.addData(NuetralZone1, Color.red);\n\t\tfig3.addData(NuetralZone2, Color.blue);\n\t\tfig3.addData(Boundary1, Color.black);\n\t\tfig3.addData(Boundary2, Color.black);\n\t\tfig3.addData(Boundary3, Color.black);\n\t\tfig3.addData(Boundary4, Color.black);\n\t\t\n\t\t//This is where you put in the coordinates of where you want the robot to move.\n\t\t//It is from this that the program will derive the optimum trajectory.\n\t\t/*double[][] MyPath = new double[][]{//Trajectory points you want the robot to go-to {x,y}\n\t\t\t{39/12,27-4.5}, //top left to gear\n\t\t\t{7,27-4.5},\n\t\t\t{(9.5+12.4)/2,(16.9+15.2)/2+.25},\n\t\t};*/\n\t\t\n\t\tdouble[][] MyPath = new double[][]{//Trajectory points you want the robot to go-to {x,y}\n\t\t{39/12,4.5},//left to gear\n\t\t{7,4.5},\n\t\t{(12.3+9.5)/2,(10.08+11.7)/2-.25}, \n\t}; \n\t\n\t\t/*double[][] MyPath = new double[][]{//Trajectory points you want the robot to go-to {x,y}\n\t\t\t{39/12,13.5},//middle to gear\n\t\t\t{9.5-.25,(10.7+16.3)/2}\n\t\t}; */\n\t\n\t\t\n\t\tlong start = System.currentTimeMillis();\n\n\t\tdouble totalTime = 3.5; //seconds\n\t\tdouble timeStep = 0.1; //period of control loop on Rio, seconds\n\t\tdouble robotTrackWidth = 2.1875; //distance between left and right wheels, feet\n\n\t\tfinal FalconPathPlanner path = new FalconPathPlanner(MyPath);\n\t\tpath.calculate(totalTime, timeStep, robotTrackWidth);\n\t\t\n\t\tSystem.out.println(\"Time in ms: \" + (System.currentTimeMillis()-start));\n\n\t\t//Way point path\n\t\tfig3.addData(path.nodeOnlyPath,Color.blue,Color.green);\n\n\t\t//Add all other paths\n\t\tfig3.addData(path.smoothPath, Color.red, Color.blue);\n\t\tfig3.addData(path.leftPath, Color.magenta);\n\t\tfig3.addData(path.rightPath, Color.magenta);\n\n\n\t\t//Velocity\n\t\tFalconLinePlot fig4 = new FalconLinePlot(path.smoothCenterVelocity,null,Color.blue);\n\t\tfig4.yGridOn();\n\t\tfig4.xGridOn();\n\t\tfig4.setYLabel(\"Velocity (ft/sec)\");\n\t\tfig4.setXLabel(\"time (seconds)\");\n\t\tfig4.setTitle(\"Velocity Profile for Left and Right Wheels \\n Left = Cyan, Right = Magenta\");\n\t\tfig4.addData(path.smoothRightVelocity, Color.magenta);\n\t\tfig4.addData(path.smoothLeftVelocity, Color.cyan);\n\n\t\t//Path heading accumulated in degrees\n\t\tFalconPathPlanner.print(path.heading);\n\t\tFalconPathPlanner.print(path.smoothLeftVelocity);\n\t\tFalconPathPlanner.print(path.smoothRightVelocity);\n\t\tFalconPathPlanner.printPosition(path.leftPath, MyPath);//Corrected from field oriented to absolute\n\t\tFalconPathPlanner.printPosition(path.rightPath, MyPath);//Corrected from field oriented to absolute\n\t\t\n\t}", "private SequenceFlow createSequenceFlow(FlowNode source, FlowNode target, ICreateConnectionContext context) {\r\n SequenceFlow sequenceFlow = new SequenceFlow();\r\n\r\n sequenceFlow.setId(getNextId());\r\n sequenceFlow.setSourceRef(source.getId());\r\n sequenceFlow.setTargetRef(target.getId());\r\n\r\n if (PreferencesUtil.getBooleanPreference(Preferences.EDITOR_ADD_LABELS_TO_NEW_SEQUENCEFLOWS)) {\r\n sequenceFlow.setName(String.format(\"to %s\", target.getName()));\r\n } else {\r\n sequenceFlow.setName(\"\");\r\n }\r\n\r\n ContainerShape targetContainer = null;\r\n if (source instanceof BoundaryEvent) {\r\n BoundaryEvent boundaryEvent = (BoundaryEvent) source;\r\n if (boundaryEvent.getAttachedToRef() != null) {\r\n Activity attachedActivity = boundaryEvent.getAttachedToRef();\r\n targetContainer = (ContainerShape) getFeatureProvider().getPictogramElementForBusinessObject(attachedActivity);\r\n }\r\n } else {\r\n targetContainer = (ContainerShape) context.getSourcePictogramElement();\r\n }\r\n \r\n ContainerShape parentContainer = targetContainer.getContainer();\r\n if (parentContainer instanceof Diagram) {\r\n ModelHandler.getModel(EcoreUtil.getURI(getDiagram())).getBpmnModel().getMainProcess().addFlowElement(sequenceFlow);\r\n\r\n } else {\r\n Object parentObject = getBusinessObjectForPictogramElement(parentContainer);\r\n if (parentObject instanceof SubProcess) {\r\n ((SubProcess) parentObject).addFlowElement(sequenceFlow);\r\n\r\n } else if (parentObject instanceof Lane) {\r\n Lane lane = (Lane) parentObject;\r\n lane.getParentProcess().addFlowElement(sequenceFlow);\r\n }\r\n }\r\n \r\n source.getOutgoingFlows().add(sequenceFlow);\r\n target.getIncomingFlows().add(sequenceFlow);\r\n return sequenceFlow;\r\n }", "public void setFileFlow(String fileFlow) {\r\n\t\tthis.fileFlow = fileFlow;\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "interface Definition extends DefinitionStages.Blank, DefinitionStages.WithJobAgent, DefinitionStages.WithMembers, DefinitionStages.WithCreate {\n }", "public void setProjFlow(String projFlow) {\r\n\t\tthis.projFlow = projFlow;\r\n\t}", "@Override\n public void bfs() {\n\n }", "@Override\n\tpublic void step2() {\n\t\t\n\t}", "public void setup()\n {\n }", "public static void main(String[] args) {\n\t\tString configfileLocation = System.getProperty(\"user.dir\") + File.separator + \"WebContent\" +File.separator + \"config.json\";\n\t\tlong size = new File(configfileLocation).length()/(1024*1024);\n\t\t\n\t\tSystem.out.println(size);\n\t\tString content = null;\n\t\tStringBuilder contentBuilder = new StringBuilder();\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(configfileLocation)))\n\t {\n\t \n\t String sCurrentLine;\n\t while ((sCurrentLine = br.readLine()) != null)\n\t {\n\t \tcontentBuilder.append(sCurrentLine).append(\"\\n\");\n\t }\n\t }\n\t catch (IOException e)\n\t {\n\t e.printStackTrace();\n\t }\n\t\tcontent = contentBuilder.toString();\n\t\tJSONParser jsonParser = new JSONParser(content);\n\t\tJSONObject obj = jsonParser.parseJSONObject();\n\t\t\n\t\t\n\t\t\n\t\t// step 1: create a workflow\n\t\tWorkflowVisualization frame = new WorkflowVisualization();\t\n\t\tDiagnosis w = new Diagnosis();\n\t\t\n\t\t// step 2: Design a workflow\n\t\tw.design();\n\t\tframe.drawWorkflowGraph(w);\n\t\t\n\t\t/*\n\t\tString workflowplanner = obj.get(\"WorkflowPlanner\").toString();\n\t\tString workflowexecutor = obj.get(\"WorkflowExecutor\").toString();\n\t\t\n\t\tSystem.out.println(workflowplanner);\n\t\t\n\t\t\n\t\tWorkflowPlanner wp = null;\n\t\ttry {\n\t\t\tClass<?> clazz = Class.forName(\"dataview.planners.WorkflowPlanner\");\n\t\t\t\n\t\t\tConstructor<?> constructor= clazz.getDeclaredConstructor(dataview.models.Workflow.class);\n\t\t\twp = (WorkflowPlanner) constructor.newInstance(w);\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tGlobalSchedule gsch = wp.plan();\n\t\t\n//\t\tSystem.out.println()\n\t\t\n\t\tSystem.out.println(gsch.getSpecification());\n\t\t*/\n\n\t\t// step 3: choose a workflow planner\n\t\tWorkflowPlanner wp = new WorkflowPlanner_T_Cluster(w);\n\t\tGlobalSchedule gsch = wp.plan();\n\t\ttry {\n\t\t// step 4: choose a workflow executor\t\n\t\t\tWorkflowExecutor we = new WorkflowExecutor_Beta(obj, gsch);\n\t\t\twe.execute();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "InteractionFlowModel createInteractionFlowModel();", "interface Definition extends DefinitionStages.Blank, DefinitionStages.WithVault, DefinitionStages.WithProperties, DefinitionStages.WithCreate {\n }", "interface WithSourceType {\n /**\n * Specifies the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case\n * sensitive..\n *\n * @param sourceType The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.\n * @return the next definition stage.\n */\n WithCreate withSourceType(SourceType sourceType);\n }", "@Override\n public void describeTo(Description arg0) {\n \n }", "@Override\n public void onCompleted(Flow flow) {}", "public interface FlowCallback {\n\n /**\n * Method called whenever some sub-set of the flow is complete.\n */\n public void progressMade();\n\n /**\n * Method called when the entire flow has completed and does not have anything else running.\n *\n * @param status the status that the flow ended with.\n */\n public void completed(final Status status);\n}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "interface DefinitionStages {\n /** The first stage of the Lab definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Lab definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Lab definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Lab definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }\n /** The stage of the Lab definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Lab definition allowing to specify networkProfile. */\n interface WithNetworkProfile {\n /**\n * Specifies the networkProfile property: The network profile for the lab, typically applied via a lab plan.\n * This profile cannot be modified once a lab has been created..\n *\n * @param networkProfile The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n * @return the next definition stage.\n */\n WithCreate withNetworkProfile(LabNetworkProfile networkProfile);\n }\n /** The stage of the Lab definition allowing to specify autoShutdownProfile. */\n interface WithAutoShutdownProfile {\n /**\n * Specifies the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This\n * controls whether actions are taken on resources that are sitting idle..\n *\n * @param autoShutdownProfile The resource auto shutdown configuration for the lab. This controls whether\n * actions are taken on resources that are sitting idle.\n * @return the next definition stage.\n */\n WithCreate withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);\n }\n /** The stage of the Lab definition allowing to specify connectionProfile. */\n interface WithConnectionProfile {\n /**\n * Specifies the connectionProfile property: The connection profile for the lab. This controls settings such\n * as web access to lab resources or whether RDP or SSH ports are open..\n *\n * @param connectionProfile The connection profile for the lab. This controls settings such as web access to\n * lab resources or whether RDP or SSH ports are open.\n * @return the next definition stage.\n */\n WithCreate withConnectionProfile(ConnectionProfile connectionProfile);\n }\n /** The stage of the Lab definition allowing to specify virtualMachineProfile. */\n interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }\n /** The stage of the Lab definition allowing to specify securityProfile. */\n interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }\n /** The stage of the Lab definition allowing to specify rosterProfile. */\n interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }\n /** The stage of the Lab definition allowing to specify labPlanId. */\n interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n WithCreate withLabPlanId(String labPlanId);\n }\n /** The stage of the Lab definition allowing to specify title. */\n interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }\n /** The stage of the Lab definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }", "public Workflow() {\n\t\tsuper();\n\t}", "public void setFlowType(String flowType);", "private Solution() {\n /**.\n * { constructor }\n */\n }", "interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "public void smell() {\n\t\t\n\t}", "public String getFileFlow() {\r\n\t\treturn fileFlow;\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public interface FlowLogicCommonMethods {\n Party firstNotary(@NotNull ServiceHub $receiver);\n StateAndRef loadState(@NotNull ServiceHub $receiver, @NotNull UniqueIdentifier linearId, @NotNull Class clazz);\n Party resolveIdentity(@NotNull ServiceHub $receiver, @NotNull AbstractParty abstractParty);\n\n\n public static final class DefaultImpls {\n @NotNull\n public static Party firstNotary(@NotNull ServiceHub receiver) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Party var10000 = (Party)CollectionsKt.firstOrNull(receiver.getNetworkMapCache().getNotaryIdentities());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new NotaryNotFoundException(\"No available notary.\"));\n }\n }\n\n @NotNull\n public static StateAndRef loadState(@NotNull ServiceHub receiver,\n @NotNull UniqueIdentifier linearId,\n @NotNull Class cls) {\n Intrinsics.checkParameterIsNotNull(receiver, \"receiver\");\n Intrinsics.checkParameterIsNotNull(linearId, \"linearId\");\n Intrinsics.checkParameterIsNotNull(cls, \"cls\");\n LinearStateQueryCriteria queryCriteria = new LinearStateQueryCriteria((List)null, CollectionsKt.listOf(linearId), StateStatus.UNCONSUMED, (Set)null);\n StateAndRef var10000 = (StateAndRef)CollectionsKt.singleOrNull(receiver.getVaultService().queryBy(cls, (QueryCriteria)queryCriteria).getStates());\n if (var10000 != null) {\n return var10000;\n } else {\n throw (new StateNotFoundOnVaultException(\"State with id \" + linearId + \" not found.\"));\n }\n }\n\n @NotNull\n public static Party resolveIdentity(@NotNull ServiceHub receiver, @NotNull AbstractParty abstractParty) {\n Intrinsics.checkParameterIsNotNull(receiver, \"$receiver\");\n Intrinsics.checkParameterIsNotNull(abstractParty, \"abstractParty\");\n return receiver.getIdentityService().requireWellKnownPartyFromAnonymous(abstractParty);\n }\n }\n}", "interface WithSource {\n /**\n * Specifies the source property: Source of the event channel. This represents a unique resource in the\n * partner's resource model..\n *\n * @param source Source of the event channel. This represents a unique resource in the partner's resource\n * model.\n * @return the next definition stage.\n */\n WithCreate withSource(EventChannelSource source);\n }", "@PostConstruct\n public void init() throws FlowException, VetoException {\n Flow klineFlow = new Flow(KlineController.class);\n Flow volFlow = new Flow(VOLLineController.class);\n Flow maFlow = new Flow(MALineController.class);\n\n\n KLineHandler = klineFlow.createHandler(context);\n VOLHandler = volFlow.createHandler(context);\n MaHandler = maFlow.createHandler(context);\n\n\n context.register(\"KLineHandler\", KLineHandler);\n context.register(\"VOLHandler\", VOLHandler);\n context.register(\"MaHandler\", MaHandler);\n //\n //drawer.setContent(LineHandler.start(new AnimatedFlowContainer(Duration.millis(320), ContainerAnimations.SWIPE_LEFT)));\n maPane = MaHandler.start();\n volPane = VOLHandler.start();\n klinePane = KLineHandler.start();\n gridPane.addRow(1,klinePane);\n\n\n\n\n System.out.println(\"form 1231212: \"+ from.getValue());\n\n\n //为每个toggle button添加监听方法\n KLinetoggle.setOnAction(event -> {\n try {\n handleKLinetoggle();\n } catch (FlowException e) {\n e.printStackTrace();\n }\n });\n MAtoggle.setOnAction(event -> {\n try {\n handleMAtoggle();\n } catch (FlowException e) {\n e.printStackTrace();\n } catch (VetoException e) {\n e.printStackTrace();\n }\n });\n VOLToggle.setOnAction(event -> {\n try {\n handleVOLtoggle();\n } catch (FlowException e) {\n e.printStackTrace();\n }\n });\n KDJToggle.setOnAction(event -> {\n try {\n handleKDJtoggle();\n } catch (FlowException e) {\n e.printStackTrace();\n }\n });\n\n //初始化界面用到的各种控件\n from.setDialogParent(root);\n to.setDialogParent(root);\n //为日期选择器加上可选范围的控制\n DatePickerUtil.initDatePicker(from,to);\n\n from.setValue(LocalDate.of(2014, 3, 1));\n to.setValue(LocalDate.of(2014, 3, 10));\n\n /**\n * 为起始时间增加监听器\n */\n from.setOnAction(event -> {\n handleTime();\n });\n\n /**\n * 为结束时间增加监听器\n */\n to.setOnAction(event -> {\n handleTime();\n });\n }", "public interface Message extends ZUML2TCUMLTransformer<Link>, ModelElement {\n /**\n * <p>\n * Set the messageSort property of message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @param messageSort the messageSort property to set\n * @throws IllegalArgumentException if the messageSort is null or not \"asynchCall\" and not \"synchCall\"\n */\n public void setMessageSort(String messageSort);\n\n /**\n * <p>\n * Get the messageSort property of this message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @return the messageSort property\n */\n public String getMessageSort();\n\n /**\n * <p>\n * Set the receiveEvent property of the message. receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @param receiveEvent the receiveEvent property to set\n */\n public void setReceiveEvent(EventOccurrence receiveEvent);\n\n /**\n * <p>\n * Get the receiveEvent property of the message, receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @return the receiveEvent property of the message\n */\n public EventOccurrence getReceiveEvent();\n\n /**\n * <p>\n * Set the sendEvent property of the message. sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @param sendEvent the sendEvent property to set\n */\n public void setSendEvent(EventOccurrence sendEvent);\n\n /**\n * <p>\n * Get the sendEvent property of the message, sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @return the sendEvent property of message\n */\n public EventOccurrence getSendEvent();\n\n /**\n * <p>\n * Transform this message to TCUML Stimulus instance.The returned Stimulus instance must\n * be same for every call of this method. For example:\n * </p>\n * <p>Stimulus stimulus1 = this.toTCUMLStimulus();</p>\n * <p>Stimulus stimulus2 = this.toTCUMLStimulus();</p>\n * <p>stimulus1 == stimulus2 is true.</p>\n *\n * @return the transformed Stimulus instance\n */\n public Stimulus toTCUMLStimulus();\n}", "@Override\n public ArrayList<String> run(LogicGraph logicGraph, Entity runConfig) {\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Started\");\n ArrayList<String> status=new ArrayList<>();\n boolean anchor;\n ArrayList<GraphNode> flow=logicGraph.getNodes();\n int phaseStart=0, phaseEnd=0;\n for (int i=0;i<flow.size();i++){\n flow.get(i).getComponent().init();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" \" +flow.get(i).getComponent().getClass().getName()+\" is initialized.\");\n }\n do {\n while(phaseEnd!=flow.size() && !flow.get(phaseEnd).getCategory().equals(\"Phase\")){\n phaseEnd++;\n }\n int count=0;\n do {\n count++;\n anchor=false;\n int i=phaseStart;\n Entity io=null;\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" phase \"+ phaseEnd+ \" in execution.\");\n try{\n io = flow.get(phaseStart).getComponent().process(io);\n for (i +=1; i < phaseEnd; i++) {\n if(io!=null){\n anchor=true;\n }\n io = flow.get(i).getComponent().process(io);\n }\n }catch (Exception e){\n status.add(\"Problem faced during execution of \"+flow.get(phaseEnd).getName());\n status.add(\"Problem at: \"+flow.get(i).getName());\n status.add(\"Cause: \"+e.getMessage());\n e.printStackTrace();\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Error in Execution\" + status);\n return status;\n }\n } while (anchor);\n phaseStart=phaseEnd+1;\n phaseEnd++;\n System.out.println(\"phase over count:\"+count+\"\\nphasestart:\"+phaseStart+\"\\nphaseend:\"+phaseEnd);\n }while (phaseEnd<flow.size());\n status.add(\"success\");\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date()) + \" Execution Completed \"+ status);\n\n return status;\n }", "static void feladat5() {\n\t}", "public interface FlowKey {\n\n public String value();\n}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.66760683", "0.6263282", "0.61483634", "0.6114188", "0.6006338", "0.5994569", "0.58748156", "0.58431286", "0.58305603", "0.582404", "0.58030933", "0.58023727", "0.5778098", "0.5777687", "0.57290965", "0.57240635", "0.56623226", "0.56621027", "0.5637547", "0.5630682", "0.5626986", "0.5586273", "0.55341804", "0.55322516", "0.5518528", "0.5497497", "0.547764", "0.54376274", "0.5427293", "0.54258615", "0.53779703", "0.53739935", "0.53734386", "0.53666043", "0.5331938", "0.5328144", "0.53272927", "0.5321683", "0.5319481", "0.5308754", "0.52940905", "0.5292432", "0.5288118", "0.528714", "0.5282657", "0.5282657", "0.5281189", "0.52567846", "0.5239491", "0.5232708", "0.5230589", "0.5228333", "0.5226597", "0.52214605", "0.5212882", "0.5200977", "0.52005655", "0.5192158", "0.5181281", "0.5181281", "0.51744074", "0.5169447", "0.5168408", "0.51557136", "0.515544", "0.5148631", "0.51463336", "0.51453096", "0.51417536", "0.51397055", "0.51328206", "0.5127703", "0.5124937", "0.5124464", "0.5121261", "0.5118462", "0.51111376", "0.51107734", "0.510915", "0.5098032", "0.5096471", "0.5088003", "0.5087794", "0.5084293", "0.5073301", "0.50727683", "0.50724816", "0.5063441", "0.5060045", "0.5060032", "0.5057193", "0.50543845", "0.50429237", "0.50416195", "0.5039638", "0.50364035", "0.50339055", "0.50339055", "0.50339055", "0.50339055", "0.50339055" ]
0.0
-1
Gets the current text.
String getText();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\t\treturn text.get();\n\t\t}", "public String getText() {\n return text.getText();\n }", "public final String getText() {\n\t\treturn text;\n\t}", "protected Text getText() {\n \t\treturn text;\n \t}", "public java.lang.String getText() {\n \t\treturn text;\n \t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText()\n\t{\n\t\treturn text;\n\t}", "public String getText()\n {\n return (this.text);\n }", "public final String getText() {\n return text;\n }", "public java.lang.String getText() {\n return text_;\n }", "public String getText() {\r\n\t\treturn text;\r\n\t}", "public String getText() {\r\n\t\treturn text;\r\n\t}", "protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\treturn text;\n\t}", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "public String getText() {\r\n return text;\r\n }", "public String getText() {\r\n return text;\r\n }", "public String getText()\r\n {\r\n return this.text;\r\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\r\n return text;\r\n }", "public String getText(){\r\n\t\treturn text;\r\n\t}", "public String getText() {\n\t\treturn this.text;\n\t}", "public String getText() {\n\t\treturn this.text;\n\t}", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return text;\n }", "public String getText() {\n return myText;\n }", "public String getText() {\n getLock().getReadLock();\n try {\n return getTextBuffer().toString();\n } finally {\n getLock().relinquishReadLock();\n }\n }", "public String getText() {\n if (text == null) {\n return \"NO TEXT IN MEMORY.\";\n }\n return text.getTextPart();\n }", "public String text() { return text; }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\n return this.text;\n }", "public String getText() {\r\n return this.text;\r\n }", "public String getText() {\n if (!this.a_text.isEnabled())\n return null;\n\n return this.a_text.getText();\n }", "public String getText() {\n return mText;\n }", "public java.lang.String getText() {\n return this.text;\n }", "public String text() {\n\t\treturn text;\n\t}", "public String getText() {\n return mTextContainer.getText();\n }", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "public String text() {\r\n return mText;\r\n }", "public CharSequence getText() {\r\n return text;\r\n }", "public java.lang.String getText() {\n return instance.getText();\n }", "public String getText(){\r\n return text;\r\n }", "public String text() // left text\n\t{\n\t\treturn this._data.get(\"text\");\n\t}", "public String getText() {\n checkWidget();\n int length = OS.GetWindowTextLength(handle);\n if (length == 0)\n return \"\";\n TCHAR buffer = new TCHAR(getCodePage(), length + 1);\n OS.GetWindowText(handle, buffer, length + 1);\n return buffer.toString(0, length);\n }", "public String getText () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.text);\r\n\t}", "public String getText() {\n\t\treturn new XWPFWordExtractor(document).getText();\n\t}", "public String getText() {\n if (Language.isEnglish()) {\n return textEn;\n } else {\n return textFr;\n }\n }", "@objid (\"d03ac21a-47cb-44d2-820d-6136f84aa408\")\r\n public String getText() {\r\n return this.text.getText();\r\n }", "public String getTextAsString () {\n\t\tString val = null;\n\t\tif(text!=null) {\n\t\t\tText t = text.getText();\n\t\t\tTextLine[] lines = t.getLines();\n\t\t\t\n\t\t\tif(lines.length >0) {\n\t\t\t\tint endline = lines.length - 1;\n\t\t\t\tTextLine lastline = lines[endline];\n\t\t\t\tif(lastline!= null) {\n\t\t\t\t\tint endOffset = lastline.getLength();\n\t\t\t\t\tTextRange tr = new TextRange(new TextLocation(0,0), new TextLocation(endline,endOffset));\n\t\t\t\t\tval = t.getText(tr);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\treturn val;\n\t}", "public StringBuffer text() {\r\n\t\treturn text;\r\n\t}", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "public String getText() {\n return str;\n }", "@Nullable\n final public String getText() {\n return mText;\n }", "public String getText();", "public String getText();", "public String getText();", "public String getText();", "public String getTextContent() {\n\t\treturn ((TextTypeImpl)_text).getStringValue();\n\t}", "public String getText() {\n StringBuffer textBuffer = new StringBuffer();\n Object obj;\n int segment;\n for (segment = 0; segment < this.TOTALSEGMENTS; segment++) {\n obj = null;\n Method getter = this.getTextGetter(segment);\n try {\n obj = getter.invoke(this, new Object[] {});\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"That segment doesn't exist.\");\n } catch (InvocationTargetException e) { \n throw new RuntimeException(\"Unable to invoke that method..\");\n }\n \n if (obj != null ) {\n String stringToAppend = (String) obj;\n textBuffer.append (stringToAppend);\n // logger.debug (\"Appending a string of length \" + stringToAppend.length());\n }\n }\n // logger.debug(\"getText returned \" + textBuffer.length() + \"chars.\" );\n return textBuffer.toString();\n }", "public String getContent() {\r\n \r\n return text;\r\n }", "public P getText() {\n return this.slp.getProduction(text);\n }" ]
[ "0.83181316", "0.8243184", "0.81988895", "0.8172234", "0.81641525", "0.8157373", "0.81246305", "0.81246305", "0.81246305", "0.810726", "0.81031895", "0.8053375", "0.8049757", "0.8049757", "0.80433494", "0.8041993", "0.8041993", "0.8041993", "0.8041993", "0.8041993", "0.8041993", "0.80379516", "0.80311364", "0.80311364", "0.8006113", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.79991424", "0.7996355", "0.79831505", "0.79730713", "0.79730713", "0.79601145", "0.79601145", "0.79601145", "0.79601145", "0.79601145", "0.7924556", "0.79200554", "0.79083586", "0.7906908", "0.7897235", "0.7897235", "0.7897235", "0.7897235", "0.7897235", "0.7897235", "0.78893054", "0.7874431", "0.7856434", "0.78223366", "0.7820323", "0.78095114", "0.7762512", "0.7756808", "0.77315277", "0.76980036", "0.76700586", "0.7643562", "0.7611502", "0.75567555", "0.75462925", "0.753692", "0.7515363", "0.75017405", "0.74609745", "0.7457855", "0.7457855", "0.7457855", "0.7457855", "0.7457855", "0.7457855", "0.7457855", "0.7457855", "0.7444109", "0.73875815", "0.73432827", "0.73432827", "0.73432827", "0.73432827", "0.7337772", "0.73206", "0.73144597", "0.7290785" ]
0.738253
91
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_simplelistview_test, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
TODO Autogenerated method stub
public int getH() { return this.height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public int getW() { return this.width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
public int getA() { return this.height*this.width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void setH(int i) { this.height=i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public void setW(int i) { this.width=i; }
{ "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 onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { myCalendar.set(Calendar.YEAR, year); myCalendar.set(Calendar.MONTH, monthOfYear); myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth); updateBdateValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
LocalDonor ldonor = realm.createObject(LocalDonor.class,donor);
private void saveUnsyncedDonor() { LocalDonor ldonor = LocalDonor.convert(donor,realm); realm.beginTransaction(); realm.copyToRealmOrUpdate(ldonor); realm.commitTransaction(); Toast.makeText(this, "Donor record save.", Toast.LENGTH_LONG).show(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void execute(Realm realm) {\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }", "RentalObject createRentalObject();", "public LocalResidenciaColaborador() {\n //ORM\n }", "Rental createRental();", "@Override\n public void onSuccess() {\n Toast.makeText(context, \"Created\", Toast.LENGTH_SHORT).show();\n //realm.close();\n }", "Authorizor createAuthorizor();", "private void initDatabaseWithDefaultInfo(Realm realm) {\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n realm.delete(Person.class);\n }\n });\n\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n Gift birthdayGift = realm.createObject(Gift.class);\n birthdayGift.setName(\"Amazon Gift Card\");\n birthdayGift.setCost(25.0f);\n birthdayGift.setGiftedToMe(true);\n birthdayGift.setOccasion(\"Birthday\");\n\n Person person = realm.createObject(Person.class);\n person.setName(\"Damon Graham\");\n person.setAge(43);\n person.setBithday(new LocalDate(1972, 2, 8).toDate());\n person.getGifts().add(birthdayGift);\n\n Person person2 = realm.createObject(Person.class);\n person2.setName(\"Aubry Hawkins\");\n person2.setAge(36);\n person2.setBithday(new LocalDate(1980, 10, 22).toDate());\n person2.getGifts().add(birthdayGift);\n }\n });\n }", "public GenericDao<Payment> getPaymentDao();", "private void objectInitialization(View view) {\n mbt_realizar_comentario_propietario = (Button) view.findViewById(R.id.bt_guardar_comentario_asesor);\n mbt_no_realizar_comentario = (Button) view.findViewById(R.id.bt_dialogo_cancelar_comentario_del_asesor);\n met_Comentario_del_Asesor = (EditText) view.findViewById(R.id.et_comentario_del_asesor);\n realmConfiguration = new RealmConfiguration.Builder(getActivity()).build();\n realm = Realm.getInstance(realmConfiguration);\n allEncuestas = realm.where(Encuesta.class).findAll();\n\n\n }", "public void onAddClickButton(View view) {\n\n CharSequence charSequence = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n String title = editTextTitle.getText().toString();\n String author = editTextAuthor.getText().toString();\n\n if (title.startsWith(\" \")||author.startsWith(\" \")){\n Toast.makeText(getBaseContext(),\"Please Fill In The Blank\",Toast.LENGTH_SHORT).show();\n }\n else {\n\n\n try {\n //working with database\n bookDatabase.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n\n String bookID = UUID.randomUUID().toString();\n Book book = realm.createObject(Book.class,bookID);\n book.setTitle(editTextTitle.getText().toString());\n book.setAuthor(editTextAuthor.getText().toString());\n\n }\n });\n //success message\n Toast.makeText(getApplicationContext(),\"Succesfully Add!\",Toast.LENGTH_SHORT).show();\n Intent intentAddResult = new Intent(getBaseContext(),MainActivity.class);\n intentAddResult.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivityForResult(intentAddResult,MainActivity.ADD_BOOK);\n\n }catch (Exception e){\n\n Log.i(\"Realm Add\",e.getMessage(),e.getCause());\n Toast.makeText(getApplicationContext(),\"Fail to Add The Data!\",Toast.LENGTH_SHORT).show();\n }\n\n finish();\n\n }\n\n }", "public ReceiverEntity crearReceiver(ReceiverEntity receiverCrear){\r\n persistence.create(receiverCrear);\r\n return receiverCrear;\r\n }", "@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}", "public GenericDao<Account> getAccountDao();", "public PacienteDAO(){ \n }", "Customers createCustomers();", "@Dao\npublic interface MentorDAO {\n @Insert\n void insertMentor(Mentor mentor);\n\n @Update\n void updateMentor(Mentor mentor);\n\n @Delete\n void deleteMentor(Mentor mentor);\n\n @Query(\"SELECT * FROM Mentors\")\n LiveData<List<Mentor>> getAllMentors();\n\n\n @Query(\"SELECT * FROM Mentors WHERE MentorId = :mentorId\")\n Mentor getMentorById(int mentorId);\n\n @Query(\"SELECT * FROM Mentors WHERE CourseId = :courseId\")\n LiveData<List<Mentor>> getMentorsByCourseId(int courseId);\n}", "AuthorDao getAuthorDao();", "@Override\n public void execute(Realm realm) {\n }", "@Override\n\tpublic DAOProveedor crearDAOProveedor() {\n\t\treturn new DAOProveedor();\n\t}", "public GenericDao<CreditCard> getCreditCardDao();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "OperacionColeccion createOperacionColeccion();", "@Override\r\n\tpublic boolean create(Moteur obj, Connection conn) throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic DAOProducto crearDAOProductoAlmacen() {\n\t\treturn new DAOProducto();\n\t}", "public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }", "IRealm getRealm();", "RentalAgency createRentalAgency();", "public empresaDAO(){\r\n \r\n }", "BookReservationDao getBookReservationDao();", "public OnibusDAO() {}", "@Override\n public boolean create(Revue objet) {\n return false;\n }", "@Test\n public void testCrear() {\n System.out.println(\"crear\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Hugo\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n Persona p = (Persona) repo.buscar(persona.getId());\n assertEquals(p, persona);\n }", "@Override\n public void realmTransaction(MainModelImp res) {\n realm.executeTransaction(realmT -> {\n RealmResults<MainModelImp> current = getRealmResults(res.getLocation().getLatitude(), res.getLocation().getLongitude());\n current.deleteAllFromRealm();\n MainModelImp cache = realmT.createObject(MainModelImp.class);\n cache.setLat(res.getLocation().getLatitude());\n cache.setLon(res.getLocation().getLongitude());\n for (Nearby_restaurant nearby : res.getNearby_restaurants()) {\n cache.getNearby_restaurants().add(nearby);\n }\n });\n\n }", "public interface OrderDao {\n\n void createOrder(Order order);\n\n}", "int insert(FundManagerDo record);", "public ReconTrDaoImpl() {\n\t\tsuper(ReconTr.class);\n\t}", "BookBorrowedDao getBookBorrowedDao();", "@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"ndzmviridiana@hotmail.com\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }", "public List<Donor> getAllDonors() {\n List<Donor> donorList = new ArrayList<Donor>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\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 Donor donor = new Donor();\n donor.setName(cursor.getString(0));\n donor.setContuctNumber(cursor.getString(1));\n donor.setCity(cursor.getString(2));\n donor.setBloodGroup(cursor.getString(3));\n donor.setLat(cursor.getString(4));\n donor.setLan(cursor.getString(5));\n // Adding contact to list\n donorList.add(donor);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return donorList;\n }", "@Override\n public void onSuccess() {\n try {\n Food food = commentAndRating.getFood();\n RealmResults<CommentAndRating> commentAndRatings = realm.where(CommentAndRating.class).equalTo(\"food.name\", food.getName()).findAll();\n realm.beginTransaction();\n food.setRating(String.valueOf(commentAndRatings.average(\"rating\")));\n //realm.insertOrUpdate(food);\n realm.commitTransaction();\n Toast.makeText(context, \"Successfully added comment and rating\", Toast.LENGTH_SHORT).show();\n } catch (Exception ex) {\n Toast.makeText(context, ex.toString(), Toast.LENGTH_SHORT).show();\n }\n\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearRecibosTest() {\r\n\r\n\t\tpd.crearRecibos();\r\n\t\tpd.pm.deletePersistent(pd.r1);\r\n\r\n\t}", "public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }", "public CrontabEntryDAO getContrabEntryDAO();", "BookDao getBookDao();", "void addContact(Donor donor) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, donor.getName());\n values.put(KEY_PH_NO, donor.getContuctNumber());\n values.put(KEY_CITY, donor.getCity());\n values.put(KEY_BL_GRP, donor.getBloodGroup());\n values.put(KEY_LAT, donor.getLat());\n values.put(KEY_LAN, donor.getLan());\n\n // Inserting Row\n db.insert(TABLE_CONTACTS, null, values);\n //2nd argument is String containing nullColumnHack\n db.close(); // Closing database connection\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.product_details);\n act = this;\n\n TextView name = (TextView) findViewById(R.id.name);\n TextView description = (TextView) findViewById(R.id.description);\n TextView category = (TextView) findViewById(R.id.category);\n TextView unity = (TextView) findViewById(R.id.unity);\n TextView mark = (TextView) findViewById(R.id.mark);\n ListView price_list = (ListView) findViewById(R.id.price_list);\n ListView stock_list = (ListView) findViewById(R.id.stock_list);\n\n\n Bundle extras = getIntent().getExtras();\n Realm realm = Realm.getDefaultInstance();\n\n RealmQuery<Product> realmQuery = realm.where(Product.class).equalTo(\"id\", extras.getLong(\"id\"));\n RealmResults<Product> realmResults = realmQuery.findAll();\n\n name.setText (realmResults.get(0).getName());\n description.setText (realmResults.get(0).getDescription());\n category.setText (realmResults.get(0).getCategory());\n unity.setText (realmResults.get(0).getUnity());\n mark.setText (realmResults.get(0).getMark());\n\n\n RealmQuery<ProductPrice> productPriceRealmQuery = realm.where(ProductPrice.class).equalTo(\"product.id\", realmResults.get(0).getId());\n RealmResults<ProductPrice> productPriceRealmResults = productPriceRealmQuery.findAll();\n\n ProductAdapterPriceDetails adapter_price = new ProductAdapterPriceDetails(productPriceRealmResults, act);\n price_list.setAdapter(adapter_price);\n\n RealmQuery<ProductStock> productStockRealmQuery = realm.where(ProductStock.class).equalTo(\"product.id\", realmResults.get(0).getId());\n RealmResults<ProductStock> productStockRealmResults = productStockRealmQuery.findAll();\n\n ProductAdapterStockDetails adapter_stock = new ProductAdapterStockDetails(productStockRealmResults, act);\n stock_list.setAdapter(adapter_stock);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n final String newBookName = bookEditText.getText().toString();\n final String newAuthorName = authorEditText.getText().toString();\n\n if(!newBookName.isEmpty()) {\n //start realm write transaction\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n //create a realm object\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }\n });\n }\n }", "@SuppressWarnings({ \"unchecked\" })\n \t/** Clones a reservation and sets new ids for all appointments and the reservation itsel\n \t */\n \tprivate Reservation cloneReservation(Entity<Reservation> obj)\n \t\t\tthrows RaplaException {\n \t\tReservation clone = ((Mementable<Reservation>) obj).deepClone();\n \t\tHashMap<Allocatable, Appointment[]> restrictions = new HashMap<Allocatable, Appointment[]>();\n \t\tAllocatable[] allocatables = clone.getAllocatables();\n \n \t\tfor (Allocatable allocatable:allocatables) {\n \t\t\trestrictions.put(allocatable, clone.getRestriction(allocatable));\n \t\t}\n \n \t\t// then we set new ids for all appointments\n \t\tAppointment[] clonedAppointments = clone.getAppointments();\n \t\tsetNew(Arrays.asList(clonedAppointments),Appointment.TYPE, this.workingUser);\n \t\t\n \t\tfor (Appointment clonedAppointment:clonedAppointments) {\n \t\t\tclone.removeAppointment(clonedAppointment);\n \t\t}\n \n \t\t// and now a new id for the reservation\n \t\tsetNew((RefEntity<Reservation>) clone, this.workingUser);\n \t\tfor (Appointment clonedAppointment:clonedAppointments) {\n \t\t\tclone.addAppointment(clonedAppointment);\n \t\t}\n \n \t\tfor (Allocatable allocatable:allocatables) {\n \t\t\tclone.addAllocatable( allocatable);\n \t\t\tAppointment[] appointments = restrictions.get(allocatable);\n \t\t\tif (appointments != null) {\n \t\t\t\tclone.setRestriction(allocatable, appointments);\n \t\t\t}\n \t\t}\n \n \t\treturn clone;\n \t}", "public Long createRecord(Record object);", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "Account create();", "public AutorDao criarAutorDao(){\n\t\treturn new AutorDaoImpl();\n\t}", "public interface LugarDAO {\n\n /**\n * Obtiene un lugar dado el id\n * @param lugarId\n * @return Lugar {@link Lugar}\n */\n public Lugar findLugarByID(int lugarId);\n}", "public Reimbursement(){}", "public GenericDao<Autorization> getAutorizationDao();", "ProjetoRN createProjetoRN();", "public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}", "@Override\r\n public void onCreate() {\r\n super.onCreate();\r\n Realm.init(getApplicationContext());\r\n\r\n// createNotificationChannel();\r\n\r\n }", "public Owner() {\n }", "public Door()\n {\n // initialize instance variables\n this.id = 0;\n this.room = new Room();\n this.isLocked = false;\n }", "Relation createRelation();", "@Test\n public void createComentarioTest() {\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity nuevaEntity = factory.manufacturePojo(ComentarioEntity.class);\n ComentarioEntity resultado = comentarioPersistence.create(nuevaEntity);\n\n Assert.assertNotNull(resultado);\n\n ComentarioEntity entity = em.find(ComentarioEntity.class, resultado.getId());\n\n Assert.assertEquals(nuevaEntity.getNombreUsuario(), entity.getNombreUsuario());\n \n }", "public static void main(String[] args){\n\tEntityManagerFactory fabrica = \n\t\t\tPersistence.createEntityManagerFactory(\"CLIENTE_ORACLE\");\n\tEntityManager em = fabrica.createEntityManager();\n\t\t\t//Obter uma instancia entitymanager\n\t\n\t//Instanciar uma cerveja/refrigerante.\n\tCerveja cerv = new Cerveja(0, \"Krill\", 0.05f, 1, Calendar.getInstance(),\n\tnew GregorianCalendar(2020, Calendar.JANUARY,1), TipoCerveja.PILSEN, null, false);\n\t\n\t// Intanciar um refri\n\tRefrigerante refri = new Refrigerante(0, \"Tubaina\", SaborRefrigerante.COLA, Calendar.getInstance(), 0.05f, null);\n\t\n\t//Cadastrar a cerveja e o refri\n\tem.persist(cerv);\n\tem.persist(refri);\n\t\n\t//Transaçao\n\t//Inicializa uma transação\n\tem.getTransaction().begin();\n\tem.getTransaction().commit();\n\tem.close();\n\t\n\tSystem.out.println(\"Cerveja e refrigerante registrado\");\n\tSystem.exit(0);;\n\n}", "NeeqCompanyAccountingFirmOnline selectByPrimaryKey(Integer id);", "public SufficientFundsDaoOjb() {\n }", "public Room createRoom(Room room);", "public static Realm buildRealm(Context context) {\n RealmConfiguration config = DatabaseUtilities.buildRealmConfig(context);\n Realm realm = Realm.getInstance(config);\n return realm;\n }", "public RentEntry(String carID, String model,String clientID, String clientName) {\n\n\n this.carID= new SimpleStringProperty(carID);\n this.model= new SimpleStringProperty(model);\n this.clientID= new SimpleStringProperty(clientID);\n this.clientName= new SimpleStringProperty(clientName);\n // this.approval= new SimpleStringProperty(approval);\n\n }", "Person createPerson();", "public interface RaceParticipationDao extends Dao<RaceParticipation> {\n}", "@Override\n\tpublic DAOProducto_Lab crearDAOProducto() {\n\t\treturn null;\n\t}", "D getDao();", "public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}", "public Ticket() {\n\n }", "Lancamento persistir(Lancamento lancamento);", "public Pojo1110110(){\r\n\t}", "public void extractObjectDB() {\n\n\t\ttry {\n\t\t\t\n\t\t\tstatement = c.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM User WHERE id NOT IN (SELECT id FROM OrderManager)\");\n\t\t\tResultSet results = statement.executeQuery(\"select FirstName , LastName, Password,Phonenumber,AFM,User.id, Company,Regular,Season from User INNER JOIN OrderManager on User.id=OrderManager.Id\"); \n\t\t \n\n\t\t\twhile (rs.next()) {\n\t\t\t\n\t\t\t\tUser us = new User();\n\t\t\t\tus.setFirstName(rs.getString(\"FirstName\"));\n\t\t\t\tus.setSurName(rs.getString(\"LastName\"));\n\t\t\t\tus.setPassword(rs.getString(\"Password\"));\n\t\t\t\tus.setTelephone(rs.getString(\"Phonenumber\"));\n\t\t\t\tus.setAFM(rs.getString(\"AFM\"));\n\t\t\t\tus.setId(rs.getString(\"id\"));\n\t\t\t\tus.setCompany(rs.getString(\"Company\"));\n\t\t\t\tusers.add(us);\n\t\t\t\t\n\t\t\t}\n\t\t\tfor(User u: users)\n\t\t\t{\n\t\t\t\tint index = users.indexOf(u);\n\t\t\t\tif (u instanceof Stockkeeper) {\n\t\t\t\t\tStockkeeper st = (Stockkeeper) u;\n\t\t\t\t\tusers.set(index,st);\n\t\t\t\t}\n\t\t\t\telse if(u instanceof Seller){\n\t\t\t\t\tSeller se = (Seller) u;\n\t\t\t\t\tusers.set(index, se);\n\t\t\t}\n\t\t\t}\n\t\t\twhile (results.next()) {\n\t\t\t\t\n\t\t\t\tOrderManager om = new OrderManager(\"\",\"\",\"\",\"\",\"\",\"\",true,\"\");\n\t\t\t\tom.setFirstName(results.getString(\"FirstName\"));\n\t\t\t\tom.setSurName(results.getString(\"LastName\"));\n\t\t\t\tom.setPassword(results.getString(\"Password\"));\n\t\t\t\tom.setTelephone(results.getString(\"Phonenumber\"));\n\t\t\t\tom.setAFM(results.getString(\"AFM\"));\n\t\t\t\tom.setId(results.getString(\"id\"));\n\t\t\t\tom.setCompany(results.getString(\"Company\"));\n\t\t\t\tif (results.getInt(\"Regular\")== 0) \n\t\t\t\t\tom.setRegular(true);\n\t\t\t\telse \n\t\t\t\t\tom.setRegular(false);\n\t\t\t\tom.setSeason(results.getString(\"Season\"));\n\t\t\t\tusers.add(om);\n\t\t\t\t\n\t\t\t}\n\t\t\tc.close();\n\t\t}catch(SQLException | ClassNotFoundException e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t}", "public T create(T object) throws SQLException;", "public DescritoresDAO() {\n\t\t\n\t}", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "Donor getContact(String name) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_CONTACTS, new String[] { KEY_NAME,\n KEY_PH_NO , KEY_CITY ,KEY_BL_GRP ,KEY_LAT ,KEY_LAN }, KEY_NAME + \"=?\",\n new String[] { name }, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Donor donor = new Donor(cursor.getString(0),cursor.getString(1), cursor.getString(2),cursor.getString(3),cursor.getString(4),cursor.getString(5));\n // return contact\n return donor;\n }", "private PurchaseDAO(){\n }", "public Account() {\n\n }", "Obligacion createObligacion();", "@Dao\npublic interface ReservationDao {\n\n @Query(\"SELECT * FROM reservation\")\n Single<List<Reservation>> getAllReservations();\n\n @Query(\"SELECT * FROM reservation where customer_id = :id LIMIT 1\")\n Single<Reservation> findByCustomerId(long id);\n\n @Query(\"SELECT * FROM reservation where table_no = :tableNo LIMIT 1\")\n Single<Reservation> findByTableNo(int tableNo);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insertReservation(Reservation reservation);\n\n @Insert\n long[] insertAll(List<Reservation> reservations);\n\n @Update\n void update(Reservation reservation);\n\n @Delete\n int delete(Reservation reservation);\n\n @Query(\"DELETE FROM reservation\")\n int deleteAll();\n}", "teledon.network.protobuffprotocol.TeledonProtobufs.Donator getDonator();", "teledon.network.protobuffprotocol.TeledonProtobufs.Donator getDonator();", "@Override\n public void onClick(View view) {\n LinearLayout layout = new LinearLayout(BookListActivity.this);\n layout.setOrientation(LinearLayout.VERTICAL);\n\n //create edit texts and add to layout\n final EditText bookEditText = new EditText(BookListActivity.this);\n bookEditText.setHint(\"Book name\");\n layout.addView(bookEditText);\n final EditText authorEditText = new EditText(BookListActivity.this);\n authorEditText.setHint(\"Author name\");\n layout.addView(authorEditText);\n\n //create alert dialog\n AlertDialog.Builder dialog = new AlertDialog.Builder(BookListActivity.this);\n dialog.setTitle(\"Add Book\");\n dialog.setView(layout);\n dialog.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //get book name entered\n final String newBookName = bookEditText.getText().toString();\n final String newAuthorName = authorEditText.getText().toString();\n\n if(!newBookName.isEmpty()) {\n //start realm write transaction\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n //create a realm object\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAuthor_name(newAuthorName);\n }\n });\n }\n }\n });\n dialog.setNegativeButton(\"Cancel\", null);\n dialog.show();\n }", "@Override\n\tpublic int create(Rol r) {\n\t\treturn rolDao.create(r);\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Transactional\r\n public Person createNewBorrower(BorrowerDTO borrowerDTO){\n \tcom.croamora.examenCROA.entity.User appUser = new com.croamora.examenCROA.entity.User();\r\n \tappUser.setUsername(borrowerDTO.getEmail());\r\n \tappUser.setEnabled(true);\r\n \tappUser.setPassword(Utils.Passgenerator(borrowerDTO.getPassword()));\r\n \tAuthority Authority = authorityRepository.findByAuthority(\"borrower\");\r\n \tSet<Authority> authorities = new HashSet<Authority>();\r\n \tauthorities.add(Authority);\r\n \tappUser.setAuthority(authorities);\r\n \tuserRepository.save(appUser);\r\n \t\r\n \t//create new Person, add persist User and save to DB\r\n \tPerson person = new Person();\r\n \tperson.setFirstName(borrowerDTO.getFirstName());\r\n \tperson.setLastName(borrowerDTO.getLastName());\r\n \tperson.setUser(appUser);\r\n \tperson.setPersonType(personTypeRepository.findByShortDescLabel(\"borrower\"));\r\n \tpersonRepository.save(person);\r\n \t\r\n \t//create new Loan and save to DB\r\n \tLoan loan = new Loan();\r\n \tloan.setPerson(person);\r\n \tloan.setReason(borrowerDTO.getNeed());\r\n \tloan.setDescription(borrowerDTO.getDescription());\r\n \tloan.setAmount(borrowerDTO.getMoney());\r\n \tloanRepository.save(loan);\r\n \t\r\n \treturn person;\r\n \t\r\n }", "public static boolean testDaoCreateOffrir(Echantillon unEchantillon){\n boolean ok = true;\n try {\n daoOffrir.create(unEchantillon);\n } catch (Exception ex) {\n Logger.getLogger(TestDao.class.getName()).log(Level.SEVERE, null, ex);\n ok = false;\n }\n \n System.out.println(\"l'échantillon créé:\");\n System.out.println(unEchantillon);\n \n return ok; \n }", "public BankRekening() {\n setSaldo(0);\n }", "private UserAccountDAO(){\n }", "O obtener(PK id) throws DAOException;", "public abstract ToDoDao toDoDao();" ]
[ "0.6729353", "0.6087451", "0.59310436", "0.58829135", "0.55748487", "0.5566175", "0.5420663", "0.54011786", "0.53927684", "0.53726965", "0.53699106", "0.534676", "0.534156", "0.5338816", "0.53261685", "0.53241706", "0.5311293", "0.53005004", "0.52709705", "0.5226524", "0.52246934", "0.52246934", "0.52246934", "0.52246934", "0.5214904", "0.52132416", "0.5211168", "0.5189379", "0.51882416", "0.51738507", "0.51533926", "0.514912", "0.5145905", "0.51429725", "0.5138576", "0.51368505", "0.5069402", "0.50683147", "0.5063042", "0.50552255", "0.5045329", "0.50439095", "0.50340956", "0.5031615", "0.50289184", "0.50248504", "0.5022906", "0.5013276", "0.5007061", "0.50066763", "0.5006357", "0.5000163", "0.49972323", "0.49947897", "0.49873906", "0.49626577", "0.4961904", "0.49534103", "0.49510425", "0.49441382", "0.4941202", "0.49409023", "0.4927268", "0.49245873", "0.4924272", "0.49238086", "0.49161077", "0.49146667", "0.4909804", "0.48983452", "0.48962072", "0.48930448", "0.48904902", "0.4890279", "0.48848927", "0.4883541", "0.48826706", "0.4882646", "0.4875323", "0.48738667", "0.48703942", "0.4869805", "0.4869595", "0.48649088", "0.4858788", "0.48570204", "0.48554283", "0.48477694", "0.4844376", "0.48401922", "0.48401922", "0.48392433", "0.48387814", "0.4837773", "0.48377427", "0.48347804", "0.48316625", "0.4830932", "0.48301017", "0.48254517" ]
0.6626367
1
Set / Get cinema id
public String getCinemaId() { return sharedPreferences.getString(CINEMA_ID, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCinemaID() {\n return cinemaID;\n }", "public int getCuisineID() {\n return cuisineID;\n }", "String getCampoId();", "public int getCineplexID() {\n return cineplexID;\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}", "public int get_crimeid() {\r\n return _crimeid;\r\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@Id\n @GeneratedValue(strategy = GenerationType.AUTO)\n public Integer getCid() {\n return cid;\n }", "long getEncounterId();", "long getBusinessCircleId();", "public void setIdCanal(String idCanal);", "@Ignore\n public Crime(UUID id) {\n mId = id;\n mDate = new Date();\n }", "protected void setId(long id) {\n\t\tgraphicFrame.getNvGraphicFramePr().getCNvPr().setId(id);\n\t}", "public abstract java.lang.Long getAcma_id();", "public void setIdMarca(Long idMarca) {\n this.idMarca = idMarca;\n }", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public Integer getcId() {\n return cId;\n }", "public Integer getCid() {\n return cid;\n }", "public Integer getCid() {\n return cid;\n }", "public void cacheId(final String id, IConstruct c) {\r\n\t\tif (ids == null) {\r\n\t\t\tids = new TreeBidiMap();\r\n\t\t}\r\n\t\tids.put(id, c);\r\n\t}", "public void setID(long id);", "void setId(int val);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public Cinema getCinema() {\n return this.cinema;\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "void setIdNumber(String idNumber);", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public String getCid() {\n return cid;\n }", "void setId(Long id);", "public void setIdAuthority(String theString) {\n\t \r\n }", "java.lang.String getAoisId();", "Identifier getId();", "public void setIdLocacion(Integer idLocacion);", "public int getMarcaId(String denumire) {\n c = db.rawQuery(\"select id from marci where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "Short getId();", "public static void setIccid(Object iccid) {\n\t\t\n\t}", "public String getCateId() {\n return cateId;\n }", "public void setID(String idIn) {this.id = idIn;}" ]
[ "0.76314676", "0.65251774", "0.61602527", "0.58919793", "0.58302534", "0.5803182", "0.5710299", "0.56873256", "0.5683725", "0.5669419", "0.56347454", "0.5631737", "0.5597499", "0.5594434", "0.5591478", "0.5561528", "0.55461395", "0.5542265", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5541088", "0.5523597", "0.5523597", "0.5523597", "0.5523597", "0.5523597", "0.5523597", "0.5523597", "0.5520223", "0.5489684", "0.5489684", "0.54847145", "0.5472624", "0.5463822", "0.5456854", "0.5456854", "0.5456854", "0.5456854", "0.54514056", "0.54501426", "0.54501426", "0.5427198", "0.54161733", "0.54161733", "0.54161733", "0.54161733", "0.54161733", "0.54161733", "0.54161733", "0.54124177", "0.54089236", "0.54042715", "0.54039687", "0.53916955", "0.5374583", "0.5368576", "0.5362755", "0.53593", "0.5353692", "0.5351692" ]
0.76838535
0
Set / Get Prefix Code
public String getPrefixCode() { return sharedPreferences.getString(PREFIX_CODE, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPrefix(String prefix);", "String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "public abstract String getPrefix();", "public String getPrefixString() {\n/* 105 */ return this.prefix;\n/* */ }", "public String getPrefix();", "public String getPrefix();", "public void setIdentificationPrefix(String prefix);", "public String getCode() {\n String code = getPrefixCode();\r\n code += format(5, this.getNumber());\r\n return code;\r\n }", "public String getPrefix() {\n \t\t\treturn prefix;\n \t\t}", "public String getPrefix() {\n return getAsString(\"prefix\");\n }", "public void setPropertyPrefix(String prefix);", "boolean setPrefix(String prefix);", "public String getPrefix() {\n return Prefix;\n }", "public String getPrefix() {\n\t\treturn this.getNr().substring(0, Anacom.prefixLength);\n\t}", "public String getPrefix()\n {\n return this.prefix;\n }", "public String getPrefix()\n\t{\n\t\treturn prefix;\n\t}", "public String getPrefix() {\n return this.getNr().substring(AnacomData.PREFIX_POS, AnacomData.PREFIX_LENGTH);\n }", "@Updatable\n public String getPrefix() {\n return prefix;\n }", "public java.lang.String getPrefix () {\n\t\treturn prefix;\n\t}", "public String getPrefix() {\n return prefix;\n }", "public String getPrefix() {\n return this.prefix;\n }", "public java.lang.String getPrefix() {\r\n return prefix;\r\n }", "Set getPrefixes();", "public String getIdentificationPrefix();", "public String getPrefix() {\n\t\treturn prefix;\n\t}", "public String prefix() {\n return this.prefix;\n }", "public java.lang.String getPrefix() {\n return prefix;\n }", "public String getPrefix() {\n return m_prefix;\n }", "public abstract String getIdPrefix();", "public void setPrefix(java.lang.String prefix) {\r\n this.prefix = prefix;\r\n }", "public void prefix(String prf) {\n\tprefixes.append(prf);\n }", "public void setPrefix(String inPrefix)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the prefix to the inPrefix.\n\t\tprefix = inPrefix;\n\n\t}", "public String getPrefix(int index) {\n return libsbmlJNI.XMLNamespaces_getPrefix__SWIG_0(swigCPtr, this, index);\n }", "public String getPrefix()\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the prefix of the name.\n\t\treturn prefix;\n\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public void setPrefix(String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "private String getPrefixesString() {\n\t\t//TODO: Include dynamic way of including this\n\t\treturn \"@prefix core: <http://vivoweb.org/ontology/core#> .\";\n\t}", "public void setPrefix(java.lang.String prefix) {\n this.prefix = prefix;\n }", "public void setPrefix (java.lang.String prefix) {\n\t\tthis.prefix = prefix;\n\t}", "public ImplementPrefix() {\n root = new TrieNode('$');\n }", "public void prefix( String base ) {\r\n\t\tthis.prefix = base;\r\n\t\ts.prefix( base );\r\n\t}", "@Override\n\tpublic String getPrefix() {\n\t\treturn getClass().getSimpleName()+\":\"+prefix;\n\t}", "SimpleString getPrefix(SimpleString address);", "public YANG_Prefix getPrefix() {\n\t\treturn prefix;\n\t}", "protected abstract String getPropertyPrefix();", "private long getPrefixValue(int preIndex){\n long result = 0;\n for(int index = 0; index<=preIndex;index++){\n result = result^array[index];\n }\n return result;\n }", "public String getPropertyPrefix();", "GetPrefix internalContent();", "GetPrefix fileContent();", "void setCode(String code);", "public final String getPrefix() {\n return properties.get(PREFIX_PROPERTY);\n }", "public static String getPrefix() {\n return getConfiguration().getPath(\"General.Prefix\").getString();\n }", "private void setNamespacePrefix(int index, String prefix) {\n if (index < m_prefixes.length) {\n m_prefixes[index] = prefix;\n } else if (m_extensionUris != null) {\n index -= m_prefixes.length;\n for (int i = 0; i < m_extensionUris.length; i++) {\n int length = m_extensionUris[i].length;\n if (index < length) {\n m_extensionPrefixes[i][index] = prefix;\n break;\n } else {\n index -= length;\n }\n }\n }\n }", "public void setEventPrefix(String value) {\n JsoHelper.setAttribute(getJsObj(), \"eventPrefix\", value);\n }", "public String getXnPrefix() {\n return xnPrefix;\n }", "@Override\r\n\t\tpublic String getPrefix()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public int set_code(String b);", "public String getPrefix(Player player) {\n \t\treturn getValue(player, \"prefix\");\n \t}", "public String getIdPrefix() {\n \t\treturn idPrefix;\n \t}", "public void setXnPrefix(String xnPrefix) {\n this.xnPrefix = xnPrefix;\n }", "public void addPOSPrefix(String prefix) {\n if(prefix==null)\n return;\n if(POSPrefix==null){\n POSPrefix=prefix;\n return;\n }\n if(prefix.startsWith(POSPrefix))\n return;\n if(POSPrefix.startsWith(prefix)){\n POSPrefix=prefix;\n } else { //We need to find the longest common prefix of the two prefix strings\n int len=0;\n for(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n if(prefix.charAt(len)!=POSPrefix.charAt(len))\n break;\n }\n POSPrefix=prefix.substring(0,len);\n }\n }", "public String getStrainPrefix(Db db)\n\t{\n\t\tString prefix = dbHelper.getDbValue(\"exec spMet_getStrainPrefix '\" \n\t\t\t\t+ getStrainType() + \"'\", db);\n\t\tString suffix = dbHelper.getDbValue(\"exec spMet_getIDSuffix\", db);\n\t\tif(WtUtils.isNullOrBlank(suffix))\n\t\t\tsuffix = \"\";\n\t\telse\n\t\t\tsuffix = suffix + \"-\";\n\t\treturn prefix + \"-\" + suffix;\n\t}", "public String getOutputPrefix();", "GetPrefix localContent();", "java.util.Optional<String> getPrefix();", "public String toIdent(Path prefix) {\n if (prefix != null && prefix.length() < length() && startsWith(prefix)) {\n return toIdent(prefix.length());\n } else {\n return toIdent(0);\n }\n }", "public String getPrefix() {\n return ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(this.getConfig().getString(\"config.messages.prefix\")));\n }", "public void addPOSPrefix(String prefix) {\n\t\tif(prefix==null)\n\t\t\treturn;\n\t\tif(POSPrefix==null){\n\t\t\tPOSPrefix=prefix;\n\t\t\treturn;\n\t\t}\n\t\tif(prefix.startsWith(POSPrefix))\n\t\t\treturn;\n\t\tif(POSPrefix.startsWith(prefix)){\n\t\t\tPOSPrefix=prefix;\n\t\t} else { //We need to find the longest common prefix of the two prefix strings\n\t\t\tint len=0;\n\t\t\tfor(int max=Math.min(prefix.length(),POSPrefix.length());len<max;++len){\n\t\t\t\tif(prefix.charAt(len)!=POSPrefix.charAt(len))\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tPOSPrefix=prefix.substring(0,len);\n\t\t}\n\t}", "private void initPhoneWithPrefix() {\n if (!TextUtils.isEmpty(mCurrentPhonePrefix)) {\n mPhoneNumberInput.setText(mCurrentPhonePrefix);\n mPhoneNumberInput.setSelection(mPhoneNumberInput.getText().length());\n }\n }", "Rule StPrefixScopeAndId() {\n return Sequence(\n \"smalltalk.prefix\",\n Identifier(),\n actions.pushStPrefixNamespaceNode());\n }", "public void setPrefix(boolean prefix) {\n this.prefix = prefix;\n }", "public String getAlternativeOrderNumberPrefix();", "private static String incrementStringByOne(String prefix) {\n StringBuilder end = new StringBuilder(prefix);\n\n int lastPos = end.length() - 1;\n // This is basically end[lastPos] += 1\n end.setCharAt(lastPos, Chars.checkedCast(end.charAt(lastPos) + 1));\n\n return end.toString();\n }", "final void randomizePrefix() {\n byte[] cb = new byte[preLen];\n\n // Use SecureRandom for prefix only\n SRAND.nextBytes(cb);\n\n for (int i = 0; i < preLen; i++) {\n pre[i] = digits[(cb[i] & 0xFF) % base];\n }\n }", "@Override\n protected String getIDPrefix() {\n return \"bc\";\n }", "public List<String> getPrefixes() {\n return facultyModuleCodePrefixes;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "String getVersionNamePrefix();", "private int prefixQuery(String prefix) {\n if (curr == null)\n curr = track(dict, prefix);\n else\n curr = track(curr.mid, prefix);\n\n if (curr == null) return 0;\n if (curr.isString) {\n if (curr.mid == null) return 1;\n else return 3;\n } else {\n if (curr.mid == null) return 0;\n return 2;\n }\n }", "public String prefix() {\n return string.substring(0, string.length() - 1);\n }", "@Override\r\n\t\tpublic void setPrefix(String prefix) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "private static java.lang.String generatePrefix(java.lang.String namespace) {\r\n if(namespace.equals(\"http://www.huawei.com.cn/schema/common/v2_1\")){\r\n return \"ns1\";\r\n }\r\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\r\n }", "public void setPositivePrefix(String newValue) {\n positivePrefix = newValue;\n posPrefixPattern = null;\n positivePrefixFieldPositions = null;\n }", "IPayerEntry setCode(CD value);", "private String getPrefixForObject(Context context, DSpaceObject dso)\n {\n String prefix = getConfigProperty(context,\n CFG_PREFIX, dso);\n return prefix;\n }", "public String prefix()\n\t {\n\t \t// create an empty string builder // \n\t \tStringBuilder sb = new StringBuilder();\n\t \t\n\t \t// fill the string builder//\n\t \tprefix(root, sb);\n\t \t\n\t \treturn sb.toString().trim();\n\t }", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "java.lang.String getCode();", "java.lang.String getCode();", "public String getPrefix(String player, String world) {\n \t\treturn getValue(player, world, \"prefix\");\n \t}", "public void addPrefix(HunspellAffix prefix) {\n prefixes.add(0, prefix);\n }" ]
[ "0.71467525", "0.71363884", "0.71363884", "0.71363884", "0.71363884", "0.7066845", "0.6957128", "0.695584", "0.695584", "0.66676384", "0.6624732", "0.6578067", "0.654972", "0.6541727", "0.65348065", "0.6526966", "0.6520358", "0.6500311", "0.6487505", "0.64589036", "0.6433008", "0.64316094", "0.6424696", "0.6423406", "0.64051557", "0.6393066", "0.63865256", "0.63648313", "0.6359213", "0.63128245", "0.6282032", "0.62667876", "0.6239596", "0.62394994", "0.6221538", "0.6213976", "0.6210058", "0.61868525", "0.61868525", "0.61743873", "0.61585134", "0.6156341", "0.6108205", "0.6095592", "0.6092703", "0.6090839", "0.60864127", "0.6045142", "0.6033819", "0.602997", "0.6028362", "0.5997234", "0.59603214", "0.5912978", "0.59115213", "0.5898247", "0.58812344", "0.58733046", "0.58644444", "0.58586866", "0.5817695", "0.5797735", "0.5775533", "0.5769175", "0.57524675", "0.57202405", "0.5710929", "0.5710038", "0.5697769", "0.56929505", "0.5687824", "0.56673723", "0.5667222", "0.5666519", "0.5657165", "0.56521976", "0.56307393", "0.56245464", "0.56150913", "0.55888456", "0.55888456", "0.55888456", "0.55888456", "0.55888456", "0.55794114", "0.5570352", "0.5570348", "0.5557193", "0.5555305", "0.55092514", "0.5507454", "0.5504111", "0.55016565", "0.5495823", "0.5491652", "0.5487714", "0.5476662", "0.5476662", "0.54679096", "0.54652655" ]
0.750838
0
Returns the singleton IExtensionUserService instance.
public static IPayService getInstance(ApplicationContext context) { return (IPayService) context.getBean(SERVICE_BEAN_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized UserService getInstance() {\n /*\n * Creates the Singleton instance, if needed.\n *\n */\n if (instance == null) {\n instance = new UserService();\n }\n return instance;\n }", "public static UserInterface instance() {\r\n\t\tif (userInterface == null) {\r\n\t\t\treturn userInterface = new UserInterface();\r\n\t\t} else {\r\n\t\t\treturn userInterface;\r\n\t\t}\r\n\t}", "public static UserManagerImpl getInstance()\r\n\t{\r\n\t\treturn singleton;\r\n\t}", "public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }", "public static SignUpService getInstance() {\n\t\treturn singleton;\n\t}", "public static UserManager getInstance() {\r\n\t\treturn instance; // way to create a singleton, other ways is in Headfirst Design Patterns book\r\n\t}", "public static OpUserService getService() {\r\n return (OpUserService) XServiceManager.getService(OpUserServiceImpl.SERVICE_NAME);\r\n }", "public UserService getUserService() {\n return userService;\n }", "public com.liferay.portal.service.UserService getUserService() {\n return userService;\n }", "public com.liferay.portal.service.UserService getUserService() {\n return userService;\n }", "public com.liferay.portal.service.UserService getUserService() {\n return userService;\n }", "public com.liferay.portal.kernel.service.UserService getUserService() {\n\t\treturn userService;\n\t}", "public static IUserPreferencesDao getInstance()\n {\n if (service != null) return service;\n try\n {\n service = new DefaultUserPreferencesDao();\n return service;\n }\n catch (SecurityException exception)\n {\n // that happens when we run under Web Start\n }\n try\n {\n // we load this lazily so that the JAR can load without WebStart\n service = (IUserPreferencesDao) Class.forName(\"com.horstmann.violet.framework.JNLPPreferencesService\").newInstance();\n return service;\n }\n catch (Throwable exception)\n {\n // that happens when we are an applet\n }\n\n return new AppletUserPreferencesDao();\n }", "private User getUser() {\r\n\t\tUserService userService = UserServiceFactory.getUserService();\r\n\t\treturn userService.getCurrentUser();\r\n\t}", "public AuthenticationUserService getAuthenticationUserService() {\n return authenticationUserService;\n }", "public static EnduserApi getSharedInstance() {\n if (EnduserApi.sharedInstance == null) {\n throw new NullPointerException(\"Instance is null. Please use getSharedInstance(apikey, context) \" +\n \"or setSharedInstance\");\n }\n return EnduserApi.sharedInstance;\n }", "public static UserDao getInstance() {\n\t\tif (userDao == null) {\n\t\t\tsynchronized (UserDao.class) {\n\t\t\t\tif (userDao == null) {\n\t\t\t\t\tuserDao = new UserDao();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn userDao;\n\t}", "public static UserPrefernce getInstance(){\r\n\t\tif(mInstance == null){\r\n\t\t\tmInstance = new UserPrefernce();\r\n\t\t}\r\n\t\treturn mInstance;\r\n\t}", "public User getUser() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n return mUser;\n }", "public UserFacade getUserFacade() {\n return userFacade;\n }", "public static UtilisateurManager getInstance() {\n\t\tif (instance == null) instance = new UtilisateurManager();\n\t\treturn instance;\n\t}", "public synchronized static User getUser() {\n return null;\n }", "public static UserController getInstance(){\n if(INSTANCE == null){\n synchronized(UserController.class){\n if(INSTANCE==null){\n INSTANCE = new UserController();\n }\n }\n }\n else\n {\n return INSTANCE; \n }\n return INSTANCE;\n }", "public UserLocalService getUserLocalService() {\n return userLocalService;\n }", "public static ElasticSearchUserController getInstance() {\n return instance;\n }", "private static ExtensionAuthentication getAuthenticationExtension() {\n if (extensionAuth == null) {\n extensionAuth =\n Control.getSingleton()\n .getExtensionLoader()\n .getExtension(ExtensionAuthentication.class);\n }\n return extensionAuth;\n }", "public com.liferay.portal.service.UserLocalService getUserLocalService() {\n return userLocalService;\n }", "public com.liferay.portal.service.UserLocalService getUserLocalService() {\n return userLocalService;\n }", "public com.liferay.portal.service.UserLocalService getUserLocalService() {\n return userLocalService;\n }", "ApplicationUser getUser();", "public static UserBO getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new UserBO();\n\t\t\tinstance.userDAO = UserDAOImpl.getInstance();\n\t\t\tinstance.userTO = new UserTO();\n\t\t}\n\t\treturn instance;\n\t}", "public static User getCurrentUser() {\n return sInstance == null ? null : sInstance.mCurrentUser;\n }", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "public UserLoginLocalService getService() {\n\t\tServiceTracker<UserLoginLocalService, UserLoginLocalService> userLoginLocalServiceTracker = _registry\n\t\t\t\t.trackServices(UserLoginLocalService.class);\n\t\t\n\t\tuserLoginLocalServiceTracker.open();\n\n\t\tUserLoginLocalService userLoginLocalService = userLoginLocalServiceTracker.getService();\n\t\t\n\t\tuserLoginLocalServiceTracker.close();\n\t\t\n\t\treturn userLoginLocalService;\n\t}", "public UserFileSystemService getUserFileSystemService() {\r\n\t\treturn userFileSystemService;\r\n\t}", "public static UserModel getInstance(){\n \tif (instance==null){\n \t\tinstance = new UserModel();\n \t}\n \treturn instance;\n }", "public static UserInteraction getInstance() {\n\t\tif (sharedInstance == null) {\n\t\t\tsharedInstance = new UserInteraction();\n\t\t}\n\t\treturn sharedInstance;\n\t}", "public static JWTLoginModuleDataHolder getInstance() {\n return instance;\n }", "public UserManagerService getUserManager() {\n if (this.mUserManager == null) {\n this.mUserManager = IUserManager.Stub.asInterface(ServiceManager.getService(\"user\"));\n }\n return this.mUserManager;\n }", "public static MySqlUserDao getInstance() {\n\t\treturn Holder.INSTANCE;\n\t}", "public static ServiceUtils getInstance(){\r\n\t\tif(serviceUtil == null)\r\n\t\t\tserviceUtil = new ServiceUtils();\r\n\t\t\r\n\t\treturn serviceUtil;\r\n\t}", "public User MainUser() {\n if (mainuser == null) {\n mainuser = new User();\n }\n return mainuser;\n }", "public UserStorage getUserStorage() {\n return UserStorage.getInstance();\n }", "public static UserManager getUserManager() {\n return getSecuritySupport().getUserManager();\n }", "public static UserAccountDAO getInstance(){\n if (instance == null){\n instance = new UserAccountDAO();\n }\n return instance;\n }", "public static User getCurrentUser() {\n\t\treturn ApplicationContext.getInstance().getCurrentUser();\n\t}", "@Override\n public DocumentUser getUser() {\n UserService userService = UserServiceFactory.getUserService();\n User user = userService.getCurrentUser();\n if (user != null){\n String email = user.getEmail();\n AuthenticationToken at = AuthenticationToken.getUserToken(email);\n if (at != null) {\n DocumentUser docUser = new DocumentUser();\n docUser.setToken(at.getPublicToken());\n docUser.setName(user.getNickname());\n docUser.setEmail(user.getEmail());\n docUser.setId(user.getUserId());\n return docUser;\n }\n }\n return null;\n }", "public UsuarioService getService() {\n\n\t\treturn this.service;\n\t}", "@NotNull\n public static UsageTracker getInstance() {\n return ServiceManager.getService(UsageTracker.class);\n }", "public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n return new User(\n sharedPreferences.getInt(AppConfig.ID, -1),\n sharedPreferences.getString(AppConfig.NAME, null),\n sharedPreferences.getString(AppConfig.EMAIL, null),\n sharedPreferences.getString(AppConfig.AGE, null),\n sharedPreferences.getString(AppConfig.GENDER, null),\n sharedPreferences.getString(AppConfig.ADDRESS, null)\n\n\n );\n }", "public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\n\t}", "public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\n\t}", "public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\n\t}", "public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {\n\t\treturn userLocalService;\n\t}", "public T getUserManager() {\n\t\treturn userManager;\n\t}", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "public IUser getUser() {\n \t\treturn null;\n \t}", "@Override\n public UserServer getUserServer() {\n if (userServer == null) {\n synchronized (lock) {\n if (userServer == null) {\n userServer = new UserServerHandler(serverModelFactory.getUserServerModel());\n }\n }\n }\n return userServer;\n }", "public static RepositoryService getInstance() {\n return instance;\n }", "public ViewObjectImpl getUsersVOInstance() {\n return (ViewObjectImpl)findViewObject(\"UsersVOInstance\");\n }", "public UserServiceImpl() {\n\t\trepository = new UserRepositoryImpl();\n\t}", "public static synchronized SubscriptionHelper getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SubscriptionHelper();\n\t\t}\n\t\treturn instance;\n\t}", "public static synchronized DatabaseUserHelper getInstance(Context context) {\n if (sInstance == null) {\n mContext = context.getApplicationContext();\n sInstance = new DatabaseUserHelper(mContext);\n }\n return sInstance;\n }", "public SimpleUser getUser() {\n return user;\n }", "public static ConversionUtils getInstance() {\n ConversionUtils instance = (instanceStorage == null ? null : instanceStorage.get());\n if (instance == null) {\n instance = ConversionUtils.setInstance(null);\n }\n return instance;\n }", "public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}", "@Factory(scope = ScopeType.CONVERSATION)\r\n\tpublic User getUser() {\r\n\t\tQuery userQuery = entityManager\r\n\t\t\t\t.createQuery(\"SELECT u FROM User AS u WHERE \"\r\n\t\t\t\t\t\t+ \"u.username=#{identity.username}\");\r\n\t\treturn (User) userQuery.getSingleResult();\r\n\t}", "@Override\n\tpublic IServiceCodigoUsuario getCodigoUsuarioService() {\n\t\tif (codUserService == null) {\n\t\t\tcodUserService = (IServiceCodigoUsuario) BeanUtil.getBeanName(\"codigoUsuarioBean\");\n\t\t}\n\t\treturn codUserService;\n\t}", "public IUser getCurrentUser() {\n return currentUser;\n }", "protected OpUserServiceImpl createServiceImpl() {\r\n return new OpUserServiceImpl();\r\n }", "public AppService appService() {\n\t\treturn appService;\n\t}", "public LoginService getLoginService()\n {\n return loginService;\n }", "public static UI getInstance() {\r\n if (singleton == null) {\r\n singleton = new UI();\r\n }\r\n return singleton;\r\n }", "public User getUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n return userRepository.findByEmail(auth.getName()).get();\n }", "public User getUser(){\n\t\treturn currentUser;\n\t}", "public UserManagerInternal getUserManagerInternal() {\n if (this.mUserManagerInternal == null) {\n this.mUserManagerInternal = (UserManagerInternal) LocalServices.getService(UserManagerInternal.class);\n }\n return this.mUserManagerInternal;\n }", "public static ProfileManager getInstance() {\n if (instance == null) {\n instance = new ProfileManager();\n }\n return instance;\n }", "public BaseUser getUser() {\r\n\t\treturn user;\r\n\t}", "public static UserClient getUserClient() {\n if (USER_CLIENT == null) {\n USER_CLIENT =\n new NetworkUserClient(NetworkProvider.SERVER_URL, new DefaultNetworkProvider());\n }\n return USER_CLIENT;\n }", "public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }", "public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }", "public User getUser() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n String userJson = sharedPreferences.getString(KEY_USER, null);\n User user = new Gson().fromJson(userJson, new TypeToken<User>(){}.getType());\n return user;\n }", "public User getUser() {\n\n if (user == null) {\n user = new User(new VOUserDetails());\n FacesContext fc = FacesContext.getCurrentInstance();\n Locale locale = fc.getViewRoot().getLocale();\n user.setLocale(locale.toString());\n }\n return user;\n }", "public UserContext getUserContext();", "public User()\n\t{\n\t\tif(UA.singleInstance())\n\t\t{\n\t\t\tua = UA.getInstance();\n\t\t}\n\t}", "public static AppClient getInstance() {\n return instance;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static AuthenticationService getAuthenticationServiceImpl() {\n\t\treturn new AuthenticationServiceImpl();\n\t}", "public static ProfileStore getInstance() {\n if (instance == null) {\n instance = new ProfileStore(PersistentStorageAgent.getInstance());\n }\n return instance;\n }", "public static PermissionUtil getInstance() {\n return LazyHolder.permissionUtil;\n }", "public MyUser getMyUser() {\n checkIfAlive();\n\n IMXStore store = getStore();\n\n // MyUser is initialized as late as possible to have a better chance at having the info in storage,\n // which should be the case if this is called after the initial sync\n if (mMyUser == null) {\n mMyUser = new MyUser(store.getUser(mCredentials.userId));\n mMyUser.setDataHandler(this);\n\n // assume the profile is not yet initialized\n if (null == store.displayName()) {\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else {\n // use the latest user information\n // The user could have updated his profile in offline mode and kill the application.\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n\n // Handle the case where the user is null by loading the user information from the server\n mMyUser.user_id = mCredentials.userId;\n } else if (null != store) {\n // assume the profile is not yet initialized\n if ((null == store.displayName()) && (null != mMyUser.displayname)) {\n // setAvatarURL && setDisplayName perform a commit if it is required.\n store.setAvatarURL(mMyUser.getAvatarUrl(), System.currentTimeMillis());\n store.setDisplayName(mMyUser.displayname, System.currentTimeMillis());\n } else if (!TextUtils.equals(mMyUser.displayname, store.displayName())) {\n mMyUser.displayname = store.displayName();\n mMyUser.setAvatarUrl(store.avatarURL());\n }\n }\n\n // check if there is anything to refresh\n mMyUser.refreshUserInfos(null);\n\n return mMyUser;\n }", "public static GeneralServices getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }", "public User get() {\n\t\treturn null;\n\t}", "public UserManager getUserManager() {\n return userManager;\n }", "public static WebDriverSingleton getInstance() {\n return driver;\n }", "synchronized public static InstitutionManager getInstance()\n {\n return singleton;\n }", "public static User get() {\n User currentUser = (User) getCurrentRequest().getWrappedSession()\n .getAttribute(CURRENT_USER_DETAILS_ATTRIBUTE_KEY);\n if (currentUser == null) {\n return null;\n } else {\n return currentUser;\n }\n }", "public final EnhancedUserDetailsService getUserDetailsService() {\n return userDetailsService;\n }" ]
[ "0.73231196", "0.70081496", "0.69151336", "0.68074733", "0.67427063", "0.67352223", "0.66759706", "0.6620884", "0.65985477", "0.65985477", "0.65985477", "0.6466155", "0.63666224", "0.6213211", "0.6195137", "0.60635597", "0.59356904", "0.5928104", "0.5923126", "0.5922871", "0.59022856", "0.5857827", "0.58498544", "0.5839709", "0.5819617", "0.5819226", "0.5794782", "0.5794782", "0.5794782", "0.5785898", "0.578324", "0.57656074", "0.5745117", "0.57427585", "0.57386", "0.57376623", "0.5729449", "0.5729437", "0.5701979", "0.5674774", "0.5625687", "0.5621693", "0.5606369", "0.56007016", "0.5579447", "0.5572637", "0.556886", "0.5532547", "0.5527683", "0.55238265", "0.55211866", "0.55211866", "0.55211866", "0.55211866", "0.5503331", "0.5477918", "0.5465156", "0.5455009", "0.5449119", "0.5447403", "0.5434242", "0.54279256", "0.54244006", "0.53950566", "0.53853136", "0.53763765", "0.5374009", "0.5365625", "0.5352711", "0.5323713", "0.5322169", "0.53214043", "0.53206325", "0.53197616", "0.5309568", "0.53000844", "0.5298943", "0.5298074", "0.52979964", "0.5295144", "0.5295144", "0.5292382", "0.5282835", "0.52740663", "0.52704865", "0.52590096", "0.5252584", "0.5242277", "0.52381086", "0.52356464", "0.52333623", "0.52224743", "0.52207583", "0.5219925", "0.5216063", "0.5212725", "0.5209973", "0.51835495", "0.51775706", "0.5175728", "0.5173369" ]
0.0
-1
Called by Spring using the injection rules specified in the Spring beans file "applicationContext.xml".
public void setDao(IPayDao dao) { super.setDao(dao); this.dao = dao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\n protected void injectDependencies(Context context) {\n }", "protected abstract void injectDependencies(ApplicationComponent applicationComponent);", "protected Spring() {}", "public void injectContext(ComponentContext context);", "@Pointcut(\"within(@org.springframework.web.bind.annotation.RestController *)\")\n public void springBeanPointcut() {\n // Method is empty as this is just a Pointcut, the implementations are in the advices.\n }", "public static void main(String[] args) {\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(ANNOTATE_XML);\n\n // ask container for the Bean that is ready to use\n Car car = appContext.getBean(\"dmc12autowire\", Car.class);\n car.go();\n\n System.out.println(car.getClass().getName());\n\n appContext.close();\n }", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "protected void init() { \n ServletContext servletContext = getServletContext();\n applicationContext = WebApplicationContextUtils.getWebApplicationContext(servletContext);\n\n String names[] = applicationContext.getBeanDefinitionNames();\n\n for (String name : names) {\n System.out.println(\"name:\" + name);\n }\n }", "void inject(MyMoneyApplication myMoneyApplication);", "private void inject() {\n }", "void inject(BaseApplication application);", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"spring-dispatcher.xml\");\n\n\t\t/*Retrieve the bean using context*/\n\t\tInjectionThroughConstructor injectionThroughConstructor = context.getBean(\"injection\", InjectionThroughConstructor.class);\n\t\t/* invoking the respective method for above beans*/\n\t\tinjectionThroughConstructor.display();\n\t\t/* This peace of code through error as there is no default constructor available for \"InjectionThroughConstructor\"\n\t\tInjectionThroughConstructor injectionThroughConstructor1 = context.getBean(\"injection1\", InjectionThroughConstructor.class);\n\t\tinjectionThroughConstructor1.display();\n\t\t*/\n\t}", "public void initApplicationContext()\r\n/* 32: */ throws BeansException\r\n/* 33: */ {\r\n/* 34:103 */ super.initApplicationContext();\r\n/* 35:104 */ registerHandlers(this.urlMap);\r\n/* 36: */ }", "private static void assertContextInjected() {\n if (applicationContext == null) {\n throw new IllegalStateException(\"applicaitonContext attribute is not injected, please enter applicationContext\" +\n \"Define SpringContextHolder in .xml or register SpringContextHolder in SpringBoot startup class.\");\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"spring aop\");\n\t\t\n\t\tApplicationContext ac = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\t\n\t\tAppService app = (AppService) ac.getBean(\"appService\");\n\t\t\n\t\tapp.playComedyShow();\n\t\tapp.playConcert();\n\t\tapp.runAmusementPark();\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext context = new FileSystemXmlApplicationContext(\"beans.xml\");\n\n\t\tPerson p1 = (Person) context.getBean(\"p1\");\n\t\tPerson p2 = (Person) context.getBean(\"p2\");\n\t\tPerson p3 = (Person) context.getBean(\"p3\");\n\t\tPerson p4 = (Person) context.getBean(\"p4\");\n\t\t\n\t\tAddress add1 = (Address) context.getBean(\"add1\");\n\t\tSystem.out.println(add1);\n\n\t\tList<Person> personList = new ArrayList<Person>();\n\t\tpersonList.add(p1);\n\t\tpersonList.add(p2);\n\t\tpersonList.add(p3);\n\t\tpersonList.add(p4);\n\n\t\tfor (Person person : personList) {\n\t\t\tSystem.out.println(person);\n\t\t}\n\n\t\t\t\tAddress johnAddress = new Address(1234, \"Heavenly Lane\", \"Warren\", \"MI\", 48092);\n\n\t\t\t\t// Dependecy injection of johnAddress\n\t\t\t\tPerson john = new Person(\"John Doe\", 22, \"blue\", 5.5, johnAddress);\n\n\t\t\t\tSystem.out.println(john);\n\t\t\t}", "@Override\n protected void configure() {\n bind(ApplicationContext.class).toInstance(ctxt);\n }", "public static void main(String[] args) {\n ApplicationContext ctx=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n HelloWord h=(HelloWord) ctx.getBean(\"helloWord\");\n h.sayHello();\n Car car=(Car) ctx.getBean(\"car\");\n System.out.println(car);\n Person person=(Person) ctx.getBean(\"person\");\n System.out.println(person);\n\t}", "public interface BeanAutowired {\n}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tcontext = (WebApplicationContext) applicationContext;\r\n\t}", "private SpringApplicationContextProvider() {\r\n\t}", "public static void main(String[] args) {\n \n ApplicationContext context =\n new ClassPathXmlApplicationContext(\"spring-beans.xml\");\n \n \n Dependant dependant = context.getBean(\"dependant\", Dependant.class);\n \n }", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\r\n\t}", "void inject(FeelingApp application);", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\n\t}", "private SpringApplicationContext() {}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"进入方法。。。\"+applicationContext);\r\n\t\tApplicationContextHolder.app=applicationContext;\r\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext context =\n\t\t\t new ClassPathXmlApplicationContext(new String[] {\"services.xml\"});\n\t\t\tHelloBean xmlBean = (HelloBean)context.getBean(\"xmlHelloID\");\n\t\t\tSystem.out.println(xmlBean.getMsg() + \" called \" + xmlBean.getCount() + \" times.\");\n\t\t\t\n\t\t//\tAnnotation example\n\t\t\tApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);\n\t\t\t HelloBean annotationBean = ctx.getBean(HelloBean.class);\n\t\t\t System.out.println(annotationBean.getMsg() + \" called \" + annotationBean.getCount() + \" times.\");\n\t}", "public interface MyApplicationContextAware {\n /**\n * 20:18 2020/11/15\n * @param \n * @return\n */\n void setAapplicationContext(MyApplicationContext application);\n}", "@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }", "void inject(StychApplication stychApplication);", "@Singleton\n@Component(modules = {ApplicationModule.class})\npublic interface ApplicationComponent {\n\n void inject(GoToDream goToDream);\n\n @Named(\"application\")\n Context getContext();\n}", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);\n }", "public interface DynamicBeanService extends BeanDefinitionRegistryPostProcessor, ApplicationContextAware, ApplicationListener<ApplicationEvent> {\n void refresh();\n}", "public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"bean.xml\");\n SingletonComponent singletonComponent = applicationContext.getBean(SingletonComponent.class);\n singletonComponent.setComponentProperty(\"Hello\");\n System.out.println(singletonComponent.getComponentProperty());\n\n SingletonComponent singletonComponent2 = applicationContext.getBean(SingletonComponent.class);\n System.out.println(singletonComponent2.getComponentProperty());\n\n\n PrototypeComponent prototypeComponent = applicationContext.getBean(PrototypeComponent.class);\n prototypeComponent.setComponentProperty(\"Hello\");\n System.out.println(prototypeComponent.getComponentProperty());\n\n PrototypeComponent prototypeComponent2 = applicationContext.getBean(PrototypeComponent.class);\n prototypeComponent2.setComponentProperty(\"Hello2\");\n System.out.println(prototypeComponent2.getComponentProperty());\n\n\n ComplexComponent bean = applicationContext.getBean(ComplexComponent.class);\n System.out.println(applicationContext.getBean(AutowiredComponent.class));\n bean.printAutoWiredComponent();\n\n\n System.out.println(applicationContext.getBean(AutowiredPrototypeComponent.class));\n bean.printAutoWiredPrototypeComponent();\n\n\n }", "public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\n\t\t \r\n\t\tIMensaje mensaje = context.getBean(\"miBean\", Mensaje.class);\r\n\t\t\r\n\t\tmensaje.printHelloWorld(\"prueba Spring\");\r\n\t\t\r\n\t\t((AnnotationConfigApplicationContext) context).close();\r\n\t}", "public AuthenticationBean(@Autowired SecurityServiceImpl securityService)\r\n {\r\n this.securityService = securityService;\r\n }", "public static void main(String[] args) {\n\t\tApplicationContext container = new ClassPathXmlApplicationContext(\"context.xml\");\n\t\tSystem.out.println(\"container created\");\n\n\t\t//Animal dog = container.getBean(\"animal\", Animal.class);\n\t\t//System.out.println(dog);\n\n\t}", "@Override\n public void onStartup(ServletContext container) {\n AnnotationConfigWebApplicationContext rootContext =\n new AnnotationConfigWebApplicationContext();\n rootContext.register(ApplicationConfig.class);\n rootContext.setConfigLocation(\"example.spring\");\n\n // Manage the lifecycle of the root application context\n container.addListener(new ContextLoaderListener(rootContext));\n container.addListener(new RequestContextListener());\n\n // The following line is required to avoid having jersey-spring3 registering it's own Spring root context.\n container.setInitParameter(\"contextConfigLocation\", \"\");\n\n }", "public void init() {\n\t\tregisterBeanDefinitionParser(\"component-scan\", new AutoComponentScanBeanDefinitionParser());\n\t}", "private final void inject() {\n }", "public interface ServletContextAware {\r\n\t/**\r\n\t * Set the ServletContext that this object runs in.\r\n\t * <p>Invoked after population of normal bean properties but before an init\r\n\t * callback like InitializingBean's <code>afterPropertiesSet</code> or a\r\n\t * custom init-method. Invoked after ApplicationContextAware's\r\n\t * <code>setApplicationContext</code>.\r\n\t * @param servletContext ServletContext object to be used by this object\r\n\t * @see InitializingBean#afterPropertiesSet\r\n\t * @see ApplicationContextAware#setApplicationContext\r\n\t */\r\n\tvoid setServletContext(ServletContext servletContext);\r\n\r\n}", "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tSystem.out.println(\"context loaded\");\n\t\t// Sim sim = (Sim) context.getBean(\"sim\");\n\t\t/**\n\t\t * Avoid above type casting\n\t\t */\n\t\tSim sim = context.getBean(\"sim\", Sim.class);\n\t\tsim.calling();\n\t\tsim.data();\n\t}", "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\n//\n// SpeakerService service = context.getBean(\"speakerService\", SpeakerService.class);\n//\n// System.out.println(service);\n//\n// System.out.println(service.findAll().get(0).getFirstName());\n//\n /*\n * In case of Singleton\n * This will not instantiate new object of SpeakerService because it is singleton\n * Same reference will be returned\n * */\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n\n // XML Configuration\n// ApplicationContext context = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n// SpeakerService service2 = context.getBean(\"speakerService\", SpeakerService.class);\n// System.out.println(service2);\n }", "@Test\n public void testOrders(){\n ClassPathXmlApplicationContext context=\n new ClassPathXmlApplicationContext(\"bean4.xml\");\n Orders orders = context.getBean(\"orders\", Orders.class);\n System.out.println(\"第四步 得到bean实例\");\n System.out.println(orders);\n// orders.initMethod();\n context.close();\n }", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.applicationContext = applicationContext;\r\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\t\n\t\tApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\tmservice= (MemberService) applicationContext.getBean(\"memberservice\");\n\t\tbservice=(BookService) applicationContext.getBean(\"bookservice\");\n\t\toservice=(OrderService) applicationContext.getBean(\"orderservice\");\n\t\t\n\t}", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n System.out.println(\"## setApplicationContext(appcontext) Application context has been set!\");\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}", "@Before\n\tpublic void onBefore() {\n\t\tcontext = new ClassPathXmlApplicationContext(\n\t\t \"classpath:test-spring-post-processor-with-annotation-config.xml\");\n\n\t\tcontext.registerShutdownHook();\n\n\t}", "@Test\n @DisplayName(\"Spring Container and songleton\")\n void springContainer(){\n\n ApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);\n\n //1. access: create object when gets called\n MemberService memberService1 = ac.getBean(\"memberService\", MemberService.class);\n\n //2 access: create object whenever gets called\n MemberService memberService2 = ac.getBean(\"memberService\", MemberService.class);\n\n //check the references\n System.out.println(\"memberService1 = \" + memberService1);\n System.out.println(\"memberService2 = \" + memberService2);\n\n //memberService1 !== memberService2\n Assertions.assertThat(memberService1).isSameAs(memberService2);\n\n //as you could see all the objects are created everytime we request for it when calling allConfig.memberService()\n }", "public static void main(String[] args) {\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"META-INF/dependency-injection-context.xml\");\n\n // 依赖来源一:自定义的bean\n UserRepository userRepository = applicationContext.getBean(UserRepository.class);\n// System.out.println(userRepository.getUsers());\n // 依赖来源二:内建依赖依 赖注入的方式获取BeanFactory\n System.out.println(userRepository.getBeanFactory());\n // 依赖查找的方式获取BeanFactory(报错)\n// System.out.println(beanFactory.getBean(BeanFactory.class));\n // 结果说明依赖注入可以注入容器内建的依赖,且依赖注入和依赖查找两者Bean的来源不一致\n\n System.out.println(userRepository.getObjectFactory().getObject());\n System.out.println(userRepository.getObjectFactory().getObject() == applicationContext);\n\n // 依赖来源三:容器内建Bean(spring内部初始化的bean)\n Environment environment = applicationContext.getBean(Environment.class);\n System.out.println(environment);\n }", "public static void main(String[] args) throws Exception\n\t\t{\n\t\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\t\t\n\t\t\t//HelloBean helloBean = (HelloBean) bean.getBean(\"myBean\");\n\t\t\tHelloBean helloBean = (HelloBean) context.getBean(\"myBean\");\n\t\t\thelloBean.getMessage();\n\t\t\t//System.out.println(helloBean.getAdd());\n\t\t\t\n\t\t\t\n//\t\t\tExpression expression = expressionParser.parseExpression(\"'Hello SpEL'\");\n//\t\t\tString strVal = (String) expression.getValue();\n//\t System.out.println(\"STR VALUE: \" + strVal);\n\t\t}", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"springconfig.xml\");\n\t\t\n\t\t//2.Retrive Bean object from Bean Factory\n\t\tPhysicsTeacher teacherService = applicationContext.getBean(\"teacherService\", PhysicsTeacher.class);\n\t\t\n\t\t//3.1 Call the methods of bean to check dependency injection using setter injection\n\t\tteacherService.getHomeWork();\n\t\tteacherService.getQuotes();\n\t\t\n\t\t//3.2 Call the getters of literal values which are set through config file\n\t\tSystem.out.println(\"Name is: \"+teacherService.getName());\n\t\tSystem.out.println(\"Age is: \"+teacherService.getAge());\n\t\tSystem.out.println(\"City : \"+teacherService.getCity());\n\n\t\t\n\t\t//4 Close the Context\n\t\tapplicationContext.close();\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Sample Spring Application!!\");\n\t\t\n\t\t//EmployeeService employeeService = new EmployeeServiceImpl();\n ApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\t\n\t\t\n\t\tEmployeeService employeeService = applicationContext.getBean(\"employeeService\", EmployeeService.class);\n\t\tSystem.out.println(employeeService.getAllEmployee().get(0).getName());\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext ctx) throws BeansException {\n\t\tthis.ctx=ctx;\n\t}", "public static void main(String[] args) {\r\n\tApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);\r\nBankAccountController bankAccountController = context.getBean(\"bankAccountController\", BankAccountController.class);\r\nSystem.out.println(bankAccountController.getBalance(2223));\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "public void before()\n {\n adapter = context.getBean(HandlerAdapter.class);\n }", "public void setApplicationContext(ApplicationContext applicationContext)\n/* */ throws BeansException\n/* */ {\n/* 106 */ applicationContext = applicationContext;\n/* */ }", "public static void main(String args[]) {\n\r\n\t\r\n\tApplicationContext ac = new ClassPathXmlApplicationContext(\"com/springcore/annotations/anootationconfig.xml\");\r\n\t \r\n Employee emp = ac.getBean(\"myemployee\", Employee.class);\r\n System.out.println(emp.toString());\r\n\t}", "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExampleBean.xml\");\n\t\t//ApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExample.xml\");\n\t\tMyMathImpl mi=(MyMathImpl)ctx.getBean(\"myMathImpl\");\n\t\tmi.add(7,9);\n\t\tmi.sub(5, 2);\n\t\tmi.div(6, 0);\n\t}", "public static void main(String[] args) {\n BeanFactory beanFactory = new ClassPathXmlApplicationContext(\"/com/bridgelabz/Spring/bean.xml\"); \n /* beans are loaded as soon as bean factory instance is created but \n * the beans are created only when getBean() method is called.\n * getBean: Return an instance, which may be shared*/\n GreetingMessage obj = (GreetingMessage) beanFactory.getBean(\"greetingMessage\"); \n String message = obj.getMessage();\n System.out.println(message);\n }", "public interface BeanProcessor {\n\n\n void process(Object bean, Class<?> clazz) throws Exception;\n\n //before all beans loaded.\n void beforeInit(Object bean, Class<?> clazz) throws Exception;\n\n //after all beans loaded.\n void afterInit(Object bean, Class<?> clazz) throws Exception;\n}", "public static void main(String[] args) {\n Greet visitor = getClassContext().getBean(\"visitorGreet\" , Greet.class);\n\n System.out.println(visitor.getGreeting());\n System.out.println(visitor.getGoodSpecialGreeting());\n System.out.println(visitor.getBadSpecialGreeting());\n System.out.println(\"Name: \" + visitor.getName());\n System.out.println(\"Email: \" + visitor.getEmail());\n\n //beans in config class\n AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DanceConfig.class);\n Dancer dancer = context.getBean(\"dancer\" , Dancer.class);\n System.out.println(dancer.getStyle());\n }", "public void injectConfiguration(ComponentConfiguration conf);", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\t\n\t\tthis.context = context;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tResource resource = new ClassPathResource(\"config/p51.xml\");\n\t\tBeanFactory factory = new XmlBeanFactory(resource);\n\t\t\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"config/p51.xml\");\n\t\t//context.getBean()....\n\t\t\n\t\t\n\t\tGreetingService greetingService =(GreetingService)factory.getBean(\"greeting\");\n\t\tSystem.out.println(greetingService.sayHello(\"아무거나 \"));\n\t\tGreetingService greetingService2 =(GreetingService)factory.getBean(\"greeting2\");\n\t\tSystem.out.println(greetingService2.sayHello(\"아무거나 \"));\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(JavaConfig.class);\n\nStudent s1 = context.getBean(\"s1\", Student.class);\n\nSystem.out.println(s1);\n\n\n\t}", "public static void main(String[] args){\n\t\tAnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);\n\t\t//applicationContext.addApplicationListener(new MyApplicationStartListener());\n\t\tapplicationContext.setParent(new ClassPathXmlApplicationContext(\"WEB-INF/application-context.xml\"));\n\t\tapplicationContext.start();\n\t\t\n\t\tHelloWorld helloWorld = (HelloWorld) applicationContext.getBean(\"helloWorld\");\n\t\thelloWorld.sayHello();\n\t\t\n\t\t/*BookJdbcTemplate bookJdbcTemplate = new BookJdbcTemplate();\n\t\tJdbcTemplate jdbcTemplate = (JdbcTemplate) applicationContext.getBean(\"jdbcTemplate\");\n\t\tbookJdbcTemplate.setJdbcTemplate(jdbcTemplate);\n\t\tSystem.out.println(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));\n\t\tlogger.debug(\"Total pages are: \" + bookJdbcTemplate.getTotalPages((long)11));*/\n\t}", "private void processPropertyPlaceHolders() {\n\t\tMap<String, PropertyResourceConfigurer> prcs = applicationContext.getBeansOfType(PropertyResourceConfigurer.class);\n\n\t\tif (!prcs.isEmpty() && applicationContext instanceof GenericApplicationContext) {\n\t\t\tBeanDefinition mapperScannerBean = ((GenericApplicationContext) applicationContext)\n\t\t\t\t\t.getBeanFactory().getBeanDefinition(beanName);\n\n\t\t\t// PropertyResourceConfigurer does not expose any methods to explicitly perform\n\t\t\t// property placeholder substitution. Instead, create a BeanFactory that just\n\t\t\t// contains this mapper scanner and post process the factory.\n\t\t\tDefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n\t\t\tfactory.registerBeanDefinition(beanName, mapperScannerBean);\n\n\t\t\tfor (PropertyResourceConfigurer prc : prcs.values()) {\n\t\t\t\tprc.postProcessBeanFactory(factory);\n\t\t\t}\n\n\t\t\tPropertyValues values = mapperScannerBean.getPropertyValues();\n\n\t\t\tthis.basePackage = updatePropertyValue(\"basePackage\", values);\n\t\t\tthis.sqlSessionFactoryBeanName = updatePropertyValue(\"sqlSessionFactoryBeanName\", values);\n\t\t\tthis.sqlSessionTemplateBeanName = updatePropertyValue(\"sqlSessionTemplateBeanName\", values);\n\t\t}\n\t}", "@Component(modules = ApplicationModule.class)\npublic interface ApplicationComponent {\n\n Context getApplication();\n}", "public static void main(String[] args) {\r\nApplicationContext context=new ClassPathXmlApplicationContext(\"/beans.xml\");\t\t\r\n\tServlet s=(Servlet)context.getBean(\"servletRef\");\r\n\ts.serviceMethod();\r\n\t}", "@Autowired\n public void setGreetingService(GreetingsServiceUsingSpring greetingsServiceUsingSpring) {\n this.greetingsServiceImplUsingSpring = greetingsServiceUsingSpring;\n }", "@Singleton\n@Component(modules = {AndroidInjectionModule.class, ApplicationModule.class, ActivitiesModule.class, NetworkModule.class, DatabaseModule.class})\npublic interface ApplicationComponent {\n\n void inject(SchoolsApplication schoolsApplication);\n}", "public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"com/Kamal/SpringCoreAdvanced/InterfaceInjection/config.xml\");\n\t\tOrderBo impl=(OrderBo)ctx.getBean(\"bo\");\n\t\timpl.placeOrder();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tGenericXmlApplicationContext ctx = new GenericXmlApplicationContext(\"Echo.xml\");\r\n\t\t\r\n\t\tEchobean bean = ctx.getBean(\"aaa\", Echobean.class);\r\n\t\t \r\n\t\tOneService one = bean.getOne();\r\n\t\tTwoService two = bean.getTwo(); \r\n\t\t \r\n\t\tone.one();\r\n\t\ttwo.two();\r\n\t}", "public void configureContextInitializationComponents(AppConfiguration appConfig,\n\t SpringBeansXMLBuilder builder);", "public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.context=context;\r\n\t}", "public static void main(String[] args){\n\n \tApplicationContext appContext = new AnnotationConfigApplicationContext(AppConfig.class);\n AnimalStoreService aService = appContext.getBean(\"animalStoreService\", AnimalStoreService.class);\n aService.execute();\n\n\n }", "public static void main(String[] args) {\n\t\tApplicationContext context = new AnnotationConfigApplicationContext(SpringIn5StepsCDIApplication.class);\n\t\t\n\t\t\n\t\tSomeCDIDAO someCDIDAO = context.getBean(SomeCDIDAO.class);\n\t\tSomeCDI someCDI = context.getBean(SomeCDI.class);\n\n\t\tLOGGER.info(\"{}, SomeCDI dependency was injected: {}\", someCDI, someCDI.getSomeCDIDAO());\n\t\tLOGGER.info(\"{}\", someCDIDAO);\n\t}", "public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}", "public static void main( String[] args )\n {\n \tApplicationContext context=new FileSystemXmlApplicationContext(\"beans.xml\");\n \tTraveller traveller=(Traveller)context.getBean(\"traveller\"); //SPRING CONTAINER\n \tSystem.out.println(traveller.getTravelDetails());\n\n }", "public static void main(String[] args) \r\n\t{\n\t\tString s = \"resources/spring.xml\";\r\nApplicationContext ac = new ClassPathXmlApplicationContext(s);\r\nCar c=(Car)ac.getBean(\"c\");\r\nc.printCarDetails();\r\n\t}", "@Component(modules = { ApplicationModule.class, SettingsDataModule.class, UserDataModule.class, RecipeDataModule.class })\n@ApplicationScope\npublic interface ApplicationComponent {\n\n void inject(HoppyApplication application);\n\n @ApplicationContext\n Context applicationContext();\n Navigator navigator();\n\n UserRepository userRepository();\n RecipeRepository recipeRepository();\n SettingsRepository settingsRepository();\n GetCurrentUserInteractor getCurrentUserInteractor();\n}", "public static void main(String[] args) {\n\n IOCBeanLoadByXML iocBeanLoadByXML = (IOCBeanLoadByXML) BeanFactory.getBean(\"beanLoadByXML\");\n iocBeanLoadByXML.say();\n// IIOCBean iocBeanWithField = (IIOCBean) BeanFactory.getBean(\"testautowired\");\n// iocBeanWithField.say(\"param1\");\n }", "@Before\n public void setup() {\n // appContext = new AnnotationConfigApplicationContext(LibraryConfig.class);\n // subject = appContext.getBean(RemoveBookServiceValidator.class);\n // database = appContext.getBean(BookRepository.class);\n getBooks();\n }", "public static void main(String[] args) {\n ApplicationContext ctx = new ClassPathXmlApplicationContext(\"beans-cp.xml\");\n \n SpringJdbc springJdbc=ctx.getBean(SpringJdbc.class);\n springJdbc.actionMethod();\n \n //Lectura de Bean \n //OrganizationDao organizationDao = (OrganizationDao) ctx.getBean(\"organizationDao\");\n \n ((ClassPathXmlApplicationContext) ctx).close();\n }", "@ForApplication\n@Component(modules = {AppModule.class, NetworkModule.class})\npublic interface AppComponent {\n Context appContext();\n Resources resources();\n PreferencesHelper preferencesHelper();\n void inject(NewsPresenter newsPresenter);\n void inject(FeedStorage feedStorage);\n}", "public interface SpringTestService {\n void test1(String name);\n}", "public static void main(String[] args) {\n ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"beans.xml\");\n Person person = context.getBean(\"person\", Person.class);\n System.out.println(person.getName());\n System.out.println(person.getMessage());\n System.out.println(\"Shutting down...\");\n context.close();\n }", "@BeforeClass\n\tpublic static void init() {\n\t\tcontext = new AnnotationConfigApplicationContext();\n\t\tcontext.scan(\"com.shuler.shoppingbackend\");\n\t\tcontext.refresh();\n\t\tcategoryDAO = (CategoryDAO) context.getBean(\"categoryDAO\");\n\t}", "public interface ContextBeansListener {\n /**\n * Notification that a new instance of a bean was added to the bean holder.\n * \n * @param bean The bean for which the action took place\n * @param context The creational context that was used\n * @param instance The instance added\n */\n public void instanceAdded(Contextual<?> bean, CreationalContext<?> context, Object instance);\n /**\n * Notification that a bean was removed from the bean holder.\n * \n * @param bean The bean\n * @param context The creational context\n * @param instance The instance\n */\n public void instanceRemoved(Contextual<?> bean, CreationalContext<?> context, Object instance);\n}", "public static void main(String[] args) {\n\n ApplicationContext context = new ClassPathXmlApplicationContext(\"applicationContext_work.xml\");\n SqlSessionFactory c = context.getBean(\"C\", SqlSessionFactory.class);\n System.out.println(c);\n\n\n }", "public static void main(String[] args) {\n AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AopConfig.class);\n TaskService bean = applicationContext.getBean(TaskService.class);\n for (int i = 0; i <10 ; i++) {\n bean.task1(i);\n bean.task2(i);\n }\n\n }", "public static void main(String[] args) {\n\t\tClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(\"com/example/lifecycle/appCxt.xml\");\n\t\t\n\t\t\tHelloWorld world = (HelloWorld) context.getBean(\"hello\");\n\t\t\tworld.sayHello();\n\t\t\t\n\t\t\tAccountService accountService = context.getBean(\"accountService\",AccountService.class);\n\t\t\taccountService.openAccount();\n\t\t\taccountService.deposit();\n\t\t\t\n\t\t\tLibraryService libraryService = context.getBean(\"libraryService\",LibraryService.class);\n\t\t\tlibraryService.listBooks();\n\t\t\tlibraryService.issueBook();\n\t\t\t\n\t\t//IOC Container is stopped\n\t\tcontext.destroy();\n\t\tcontext.close();\n\t\t\n\t\t\n\t}", "public static void main(String[] args) \n\t{\n\t\t\n\t\tApplicationContext context=new ClassPathXmlApplicationContext\n\t\t\t\t(\"com/bridgelabz/DependencyInjection/injectingobject/beans.xml\");\n\t\t//student\n\t\tStudent stu=context.getBean(\"stud\",Student.class);\n\t\tstu.cheating();\n\t\t//New student\n\t\tNewStudent newstu=context.getBean(\"newstud\",NewStudent.class);\n\t\tnewstu.startcheating();\n\t\t\n\t\t \n\t}", "public static void main(String[] args) {\n ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(\"config.xml\");\n // ctx.start();\n Database d =ctx.getBean(\"mysql\",Database.class);\n System.out.println(\"name --->\" + d.getName() + \" port-->\" + d.getPort());\n d.connect();\n // d.getInteger();\n // d.throwException();\n // d.checkdata(\"richa\");\n // d.getIntdata(200);\n // Dummy dummy = ctx.getBean(\"dummy\", Dummy.class);\n // dummy.display();\n // ctx.stop();\n /* Dummytest dummytest=ctx.getBean(\"dummyTest\",Dummytest.class);\nSystem.out.print(dummytest);\n PersonalisedService personalisedService=ctx.getBean(\"personalisedService\",PersonalisedService.class);\n System.out.println(personalisedService);\n System.out.println(personalisedService.employee.getCity());\n*/\n\n }", "public void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException\n\t{\n\t\trootApplicationContext = applicationContext;\n\t}" ]
[ "0.628862", "0.6249147", "0.61360157", "0.60814226", "0.6057157", "0.6039369", "0.6001783", "0.5994424", "0.597226", "0.5971237", "0.59532076", "0.59285563", "0.59145945", "0.59129524", "0.58603734", "0.58274126", "0.580378", "0.5800122", "0.5793246", "0.5788346", "0.57604504", "0.575317", "0.57525676", "0.57472426", "0.5745437", "0.5738494", "0.57334447", "0.56989676", "0.56900865", "0.5688576", "0.56789297", "0.5673657", "0.56655777", "0.56173587", "0.5610365", "0.56024015", "0.5584297", "0.5578362", "0.55715257", "0.55685645", "0.55568355", "0.55443954", "0.55324507", "0.5520782", "0.5516571", "0.55052245", "0.54656315", "0.5465444", "0.5465042", "0.5462758", "0.5462631", "0.54544353", "0.5436194", "0.543138", "0.5428424", "0.54079664", "0.53934187", "0.53884286", "0.53875756", "0.5386746", "0.537983", "0.5373604", "0.53639454", "0.53619766", "0.53553945", "0.53494257", "0.53443503", "0.5344323", "0.5342807", "0.5335143", "0.53258693", "0.53257495", "0.5323547", "0.5320266", "0.5320226", "0.53189903", "0.5314102", "0.53139", "0.5305841", "0.5304932", "0.52897817", "0.52886397", "0.5279191", "0.5270414", "0.5267786", "0.52644926", "0.5253424", "0.5239892", "0.5230903", "0.5219897", "0.5216472", "0.52102405", "0.5207684", "0.52044994", "0.51972365", "0.5196749", "0.51940656", "0.51845056", "0.51776314", "0.5176112", "0.5174255" ]
0.0
-1
Cria os pares em uma matriz.
public static void main(String[] args) { Object[][] pares = new String[][] { { "Sun", "IBM", "FSF", "Berkley", "Microsoft", "Apple" }, { "Solaris", "OS/2", "GNU/Linux", "BSD", "Windows", "MacOS" } }; // Cria um novo mapa com a matriz. @SuppressWarnings("rawtypes") Map mapa = new Mapa(pares); // Imprime os valores. for (@SuppressWarnings("rawtypes") Iterator iter = mapa.entrySet().iterator(); iter.hasNext();) { @SuppressWarnings("rawtypes") Map.Entry entry = (Map.Entry) iter.next(); System.out.println(entry.getKey() + " => " + entry.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void creation(){\n\t for(int i=0; i<N;i++) {\r\n\t\t for(int j=0; j<N;j++) {\r\n\t\t\t tab[i][j]=0;\r\n\t\t }\r\n\t }\r\n\t resDiagonale(); \r\n \r\n\t //On remplit le reste \r\n\t conclusionRes(0, nCarre); \r\n \t\t\r\n\t \r\n\t isDone=true;\r\n }", "public Matriz( int lin, int col )\n {\n if(lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Quantidade invalida. \" );\n } //end\n else\n {\n table = new Object[lin][col];\n } //end se\n }", "public int[][] MatrizPesos(){\n return this.mat;\n }", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "public Matriz(int[][] matriz) {\n\t\tthis.matriz = matriz;\n\t}", "private void inicializarConexoesDaPrimeiraCamada() {\n conexoesPrimeiraCamada = new double[numeroNeuroniosPrimeiraCamada][numeroNeuroniosEntrada];\n for (int i = 0; i < conexoesPrimeiraCamada.length; i++) {\n for (int j = 0; j < conexoesPrimeiraCamada[i].length; j++) {\n conexoesPrimeiraCamada[i][j] = Math.random();\n //conexoesPrimeiraCamada[i][j] = 1.0;\n }\n }\n }", "public Matriz(int fila, int columna) {\n\t\tmatriz = new int[fila][columna];\n\t}", "public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}", "private void inicializarTablero() {\n for (int i = 0; i < casillas.length; i++) {\n for (int j = 0; j < casillas[i].length; j++) {\n casillas[i][j] = new Casilla();\n }\n }\n }", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "public Matriz(Complejo[][] numeros){\n\t\tthis.numeros = numeros;\n\t}", "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "public static Casilla[][] crearCasillaInicial(int cantidadCasillasX, int cantidadCasillasY){\n Casilla tableroAux;\n Casilla[][] tablero = new Casilla[cantidadCasillasX][cantidadCasillasY];\n for (int i = 0; i < cantidadCasillasX; i++) {\n for (int j = 0; j < cantidadCasillasY; j++) {\n int random = (int)(Math.random()*100);\n \n if(random>=50 && random<=60){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.RETROCESO));\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n \n }\n else if(random>60 && random<=70){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.ADELANTO));\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n \n }\n else if(random>70 && random<=80){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.ESCALERA));\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n }\n else if(random>80 && random<=90){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.SERPIENTE));\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n }\n else if(random>=0 && random<50){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.VACIA));\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n }\n else if(random>90 && random<=100){\n SuperficieJLabel jlabel = new SuperficieJLabel(i+1, j+1,String.valueOf(TipoDeCasilla.PIERDE_TURNO)+\" \");\n Image img= new ImageIcon(\"imagenes/cuadrado.png\").getImage();\n ImageIcon img2=new ImageIcon(img.getScaledInstance(20, 40, Image.SCALE_SMOOTH));\n jlabel.setIcon(img2);\n tableroAux = new Casilla(TipoDeCasilla.VACIA, jlabel,false);\n tablero[i][j] = tableroAux;\n }\n \n }\n \n }\n return tablero;\n }", "public void Matriz()\n {\n int dim;\n dim = Principal.dimension;\n \n matrix = new JLabel [dim][dim];\n\n for(int i=0; i< dim; i++){\n\n\t\t\t\tfor(int j=0; j< dim; j++){\n\n\t\t\t\t\t\n\n matrix[i][j] = new JLabel();\n\n matrix[i][j].setVisible(true);\n\n matrix[i][j].setBorder(javax.swing.BorderFactory.createLineBorder(Color.black, 1));\n\n matrix[i][j].setBounds(5 +(i*43), 5 +(j*43), 40, 40);\n\n matrix[i][j].setBackground(Color.green);\n\n matrix[i][j].setText(\"\");\n Pan_Tablero.add(matrix[i][j]);\n\n //this.getContentPane().add(matrix[i][j]);\n\n } \n\n} \n }", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "public static void makeMatrix()\n {\n\n n = Graph.getN();\n m = Graph.getM();\n e = Graph.getE();\n\n connectMatrix = new int[n][n];\n\n // sets the row of value u and the column of value v to 1 (this means they are connected) and vice versa\n // vertices are not considered to be connected to themselves.\n for(int i = 0; i < m;i++)\n {\n connectMatrix[e[i].u-1][e[i].v-1] = 1;\n connectMatrix[e[i].v-1][e[i].u-1] = 1;\n }\n }", "public Map(){\n this.matrix = new int[10][10];\n }", "public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }", "public Matrix(){\r\n\t\t\r\n\t\t//dim = dimension; for now, only 3-dim. matrices are being handled\r\n\t\tmat = new int[dim][dim];\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\t\tmat[rowi][coli]=0;\r\n\t}", "public Regras()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1100, 457, 1); \n prepare();\n if(MenuPrincipal.mundo == 1) //se o mundo anterior tiver sido MenuPrincipal\n som1 = MenuPrincipal.som2; //a música ficar com a mesma opção do mundo Menu Principal (a tocar ou sem som)}\n else if(MenuPrincipal.mundo == 3) //se o mundo anterior tiver sido MundoJogo\n som1 = MundoJogo.som3; //a música ficar com a mesma opção do mundo MundoJogo (a tocar ou sem som)\n imgsom2 = MenuPrincipal.imgsom1; //atualiza a imagem da coluna para ser igual à do mundo MenuPrincipal (mute/unmute)\n MenuPrincipal.mundo = 2; //atualizar 'mundo' para indicar que o mundo atual é o mundo Regras\n }", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "public void createPointers() {\n int matrixByteSize = rows * cols * Sizeof.DOUBLE;\n\n deviceMPtr = new CUdeviceptr();\n cuMemAlloc(deviceMPtr, matrixByteSize);\n cuMemcpyHtoD(deviceMPtr, Pointer.to(matrix), matrixByteSize);\n\n matrixPointer = Pointer.to(deviceMPtr);\n rowPointer = Pointer.to(new int[]{rows});\n columnPointer = Pointer.to(new int[]{cols});\n sizePointer = Pointer.to(new int[]{rows * cols});\n }", "private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void makeMatrixList()\r\n\t{\r\n\t\t// get the fully connected matrix as the first one:\r\n\t\t//matrixList.add(fullConnectedArcMatrix);\r\n // the maximum number of arcs:\r\n\t\tint maximumNumOfArc = varNum * (varNum - 1) / 2;\r\n\t\t// the minimum number of arcs should be varNum - 1, or there will be vertices that are not connected: \r\n\t\tint minimumNumOfArc = varNum - 1;\r\n\t //log.debug(\"minimum number of arcs for \" + varNum + \"variables: \" + minimumNumOfArc + \"/n\");\r\n\t\t// the maximum number of 0 in the upper triangle should be no more than n(n-1)/2 - (n-1)\r\n\t\tint maxZeroNum = varNum*(varNum - 1)/2 - varNum + 1;\r\n\t\t//log.debug(\"maximum number of 0 in matrix for \" + varNum + \"variables: \" + maxZeroNum + \"/n\");\r\n\t\t\r\n\t\t//GenerateAllDAGs ga = new GenerateAllDAGs();\r\n\t\t//getAllDAGs(int maxZeroNum, int maximumNumOfArc, int varNum)\r\n\t\tmatrixList = GenerateAllDAGs.getAllDAGs(maxZeroNum, maximumNumOfArc, varNum);\r\n\t\t\r\n\t}", "public static int[][] init() {\n int[][] arr={\n {0,1,0,1,0,0,0},\n {0,0,1,0,0,1,0},\n {1,0,0,1,0,1,0},\n {0,0,1,0,0,1,0},\n {0,0,1,1,0,1,0},\n {1,0,0,0,0,0,0}\n };\n return arr;\n }", "private void initGameMatrix() {\n double matrixTileHeight = this.fieldPane.getMaxHeight() / 11;\n double matrixTileWidth = this.fieldPane.getMaxWidth() / 11;\n\n for (int i = 0; i < this.fieldPane.getMaxWidth(); i += matrixTileWidth) {\n for (int j = 0; j < this.fieldPane.getMaxHeight(); j += matrixTileHeight) {\n Rectangle2D r = new Rectangle2D(j, i, matrixTileWidth, matrixTileHeight);\n gameMatrix.add(r);\n }\n }\n }", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "Matrix(int rows, int columns) {\n try {\n if (rows < 1 || columns < 1) {\n throw zeroSize;\n }\n this.rows = rows;\n this.columns = columns;\n matrix = new int[rows][columns];\n\n for (int rw = 0; rw < rows; rw++) {\n for (int col = 0; col < columns; col++) {\n matrix[rw][col] = (int) Math.floor(Math.random() * 100);\n }\n }\n }\n catch (Throwable zeroSize) {\n zeroSize.printStackTrace();\n }\n\n }", "private void criaJTable() {\n tabela = new JTable(modelo);\n modelo.addColumn(\"Codigo:\");\n modelo.addColumn(\"Data inicio:\");\n modelo.addColumn(\"Data Fim:\");\n modelo.addColumn(\"Valor produto:\");\n modelo.addColumn(\"Quantidade:\");\n\n preencherJTable();\n }", "public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }", "Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }", "public Tablero(int n, int m) {\n taxis = new HashMap<>();\n casillas = new Casilla[n][m];\n sigueEnOptimo = new HashMap<>();\n for(int i=0; i<n; i++) {\n for(int j=0; j<m; j++) {\n casillas[i][j] = new Casilla(Estado.LIBRE, 0, i, j);\n }\n }\n numFilas = n;\n numColumnas = m;\n }", "public Matriz(int filas, int columnas,double[][] numeros) throws CalculadoraException{\n\t\tif(numeros.length < filas*columnas) {\n\t\t\tthrow new CalculadoraException(CalculadoraException.FALTAN_NUMEROS);\n\t\t}\n\t\tthis.numeros = new Complejo[filas][columnas];\n\t\taddNumeros(crearComplejos(numeros));\n\t}", "public Matrix(int[][] array){\n this.matriz = array;\n }", "public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }", "public Matrice(int nr, int nc){\n\t\tthis.nr=nr;\n\t\tthis.nc=nc;\n\t\tmat = new int[nr][nc];\n\t}", "public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}", "public frmPrincipal2() {\n initComponents();\n dib = new Dibujo2(jpLienzo.getWidth(), jpLienzo.getHeight());\n mat = new int[8][12];\n for (int i=0;i<8;i++){\n for (int j=0;j<12;j++){\n mat[i][j] = 0;\n }\n }\n \n mat[2][6] = 1;\n //mat[2][3] = 1;\n //mat[2][4] = 1;\n \n /*\n mat[5][2] = 2;\n mat[5][3] = 2;\n mat[5][4] = 2;\n mat[6][4] = 2;\n */\n this.jpLienzo.add(dib);\n \n dib.setMat(mat);\n dib.repaint();\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public ParallelMatrix(int me,int n,int p,int m1[][] ,int m2[][],int res[][]) {\r\n B = n/p;\r\n this.me = me ;\r\n matrix1 = m1;\r\n matrix2 = m2;\r\n N = n;\r\n matrix = res;//new int[N][N];\r\n }", "public int[][] initMatrix(int n)\n {\n\t// create an empty 2d array and return it! Simple stuff here.\n\t int[][] retMatrix = new int[n][n];\n\t return retMatrix;\n }", "public void llenarMatriz(){\n Scanner in = new Scanner(System.in);\n setMatriz(new float[3][3]);\n //int matriz1[][] ={{2,3,1},{1,-1,2},{0,1,0}};\n //int matriz1[][] ={{5,-2,3},{1,2,2},{-4,-1,3}};\n //float matriz1[][] ={{1,-2,5},{3,3,-1},{0,4,-2}};\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n System.out.println(\"Ingresa valor la posición [\"+i+\"][\"+j+\"]\");\n getMatriz()[i][j]= in.nextInt();\n }\n }\n mostrarMatriz(getMatriz(),\"Matriz inicial\");\n }", "public void printMatriz( )\n {\n //definir dados\n int lin;\n int col;\n int i;\n int j;\n\n //verificar se matriz e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n //obter dimensoes da matriz\n lin = lines();\n col = columns();\n IO.println(\"Matriz com \"+lin+\"x\"+col+\" posicoes.\");\n //pecorrer e mostrar posicoes da matriz\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n IO.print(\"\\t\"+table[ i ][ j ]);\n } //end repetir\n IO.println( );\n } //end repetir\n } //end se\n }", "private void createPieces() {\n\t\t// Create and fill up the array, iterating by piece row and piece column.\n\t\tpieces = new ArrayList<CvMat>();\n\t\tfor (int pi = 0; pi < prows; pi++) {\n\t\t\tfor (int pj = 0; pj < pcols; pj++) {\n\t\t\t\tCvMat piece = CvMat.create(pieceHeight, pieceWidth, image.type());\n\t\t\t\tpieces.add(piece);\n\t\t\t\t// Copy pixels from image to piece (as usual, do it by hand rather than OpenCV).\n\t\t\t\tfor (int i = 0; i < pieceHeight; i++) {\n\t\t\t\t\tfor (int j = 0; j < pieceWidth; j++) {\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++) {\n\t\t\t\t\t\t\tpiece.put(i, j, c, image.get(i + pi * pieceHeight, j + pj * pieceWidth, c));\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}", "protected ArrayList<double[]> newMatrix(int _rows, int _cols) {\n ArrayList<double[]> matrix = new ArrayList<double[]>();\n for (int i=0; i<_rows; i++) {\n matrix.add(new double[_cols]);\n }\n return matrix;\n }", "public int[][] createMaze(int level){\n\t\t\n\t\tint[][] matriz = null;\n\t\t\n\t\tswitch (level) {\n\t\tcase 1:\n\t\t\tint[][] m1= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,6,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,2,0,2,0,3,0,3,0,2,0,2,0},\n\t\t\t\t\t{3,0,3,3,0,2,17,2,0,3,3,0,3},{7,0,2,2,0,3,0,3,0,2,2,0,7},{0,3,0,3,0,1,1,1,0,3,0,3,0},\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m1;\t\t\t\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tint[][] m2= {\n\t\t\t\t\t{0,0,0,6,0,0,0,6,0,0,0,0,0},{0,1,0,6,0,0,0,1,0,1,0,1,0},{0,1,0,0,0,0,1,1,0,1,6,1,0},\n\t\t\t\t\t{0,0,0,1,0,17,0,0,0,6,0,0,0},{11,0,0,1,0,0,6,0,0,1,11,1,6},{11,11,0,0,0,1,0,0,6,0,11,0,0},\n\t\t\t\t\t{0,1,1,1,11,11,11,6,0,0,11,1,0},{0,0,0,6,11,1,0,1,0,1,0,1,0},{6,1,0,6,0,1,0,1,0,0,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,1,1,0,1,6,1,0},{0,1,0,1,0,1,1,1,0,0,0,0,0},{0,1,0,0,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m2;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tint[][] m3= {\n\t\t\t\t\t{0,17,0,0,1,0,0,0,1,0,0,0,0},{0,11,11,11,1,0,0,0,0,0,8,8,8},{1,11,11,11,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{11,11,11,11,0,0,0,1,0,1,1,1,4},{11,11,11,11,1,1,1,2,0,1,0,5,0},{11,11,11,11,0,0,1,0,0,0,0,5,0},\n\t\t\t\t\t{0,11,0,0,0,0,6,6,6,0,0,11,0},{0,3,0,3,0,0,0,0,0,11,11,11,11},{1,4,5,1,4,5,2,2,2,11,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,1,0,3,3,11,11,11,11},{1,0,0,9,0,0,0,2,2,11,11,11,0},{1,1,0,9,0,0,0,0,0,11,11,11,0},\n\t\t\t\t\t{6,1,1,0,0,0,13,0,0,1,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m3;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tint[][] m4= {\n\t\t\t\t\t{0,11,11,0,0,0,17,0,0,0,0,11,0},{11,11,0,0,3,1,1,3,3,0,0,0,11},{11,0,0,5,1,1,1,1,1,1,3,0,7},\n\t\t\t\t\t{7,0,0,1,1,1,1,1,1,1,1,4,0},{0,0,5,2,0,0,0,2,1,1,0,4,0},{12,0,5,0,9,0,9,0,1,4,0,0,0},\n\t\t\t\t\t{0,0,1,0,3,3,0,0,1,4,0,12,12},{0,0,1,1,1,1,1,1,1,1,0,0,0},{0,5,1,1,1,1,1,1,1,1,4,0,0},\n\t\t\t\t\t{0,2,2,1,1,1,1,1,1,2,2,0,0},{0,1,1,3,2,1,1,2,3,1,1,0,11},{11,0,2,2,0,0,0,0,2,2,0,11,11},\n\t\t\t\t\t{6,11,0,0,0,0,13,0,0,0,11,11,6},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m4;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tint[][] m5= {\n\t\t\t\t\t{0,0,0,0,1,1,0,0,0,0,0,0,0},{8,0,3,0,1,0,0,0,7,7,6,0,0},{6,0,1,0,0,0,1,0,0,0,17,0,0},\n\t\t\t\t\t{1,0,1,1,1,0,1,1,0,12,12,0,12},{2,0,0,0,2,0,0,0,0,12,0,0,0},{0,0,3,0,12,12,0,12,12,12,0,1,1},\n\t\t\t\t\t{1,1,0,0,12,1,0,1,4,0,0,0,0},{0,0,0,0,12,0,0,0,0,0,10,9,0},{12,12,12,0,12,0,6,0,1,0,10,0,0},\n\t\t\t\t\t{0,0,0,3,3,0,0,0,0,0,10,1,1},{0,0,0,0,1,2,2,2,1,3,0,0,0},{1,1,2,0,0,0,0,0,0,2,1,0,0},\n\t\t\t\t\t{2,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m5;\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tint[][] m6= {\n\t\t\t\t\t{0,0,17,0,0,5,0,4,11,11,0,0,0},{0,4,10,0,4,0,0,0,5,11,4,5,11},{0,4,10,0,4,0,1,0,5,11,4,5,11},\n\t\t\t\t\t{0,1,0,0,1,0,6,0,1,11,0,1,11},{0,0,0,5,7,0,1,0,2,9,0,11,11},{1,1,4,0,0,11,1,11,0,0,5,1,1},\n\t\t\t\t\t{0,0,0,0,5,11,11,11,4,0,0,0,0},{6,1,1,0,2,11,11,11,2,5,1,1,6},{7,7,7,0,3,0,11,0,3,0,7,7,7},\n\t\t\t\t\t{0,1,0,0,1,0,0,0,1,0,0,0,0},{0,1,4,0,0,2,0,2,0,0,5,1,11},{0,0,2,0,0,0,0,0,0,0,11,11,11},\n\t\t\t\t\t{0,0,3,0,0,0,13,0,0,0,3,11,11},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m6;\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tint[][] m7= {\n\t\t\t\t\t{0,0,0,17,0,0,0,7,7,0,0,0,0},{0,0,6,7,7,7,0,0,0,0,6,0,0},{0,0,6,0,0,0,11,0,7,6,6,0,0},\n\t\t\t\t\t{0,6,0,0,0,11,6,0,0,0,6,0,0},{0,0,0,0,11,6,6,0,0,0,7,6,0},{0,6,0,11,6,6,6,0,6,0,0,0,0},\n\t\t\t\t\t{0,10,0,6,6,0,0,0,6,6,0,0,0},{9,0,0,0,6,0,6,6,6,0,0,10,0},{0,10,6,0,0,0,6,6,11,0,0,6,0},\n\t\t\t\t\t{0,6,0,0,0,0,6,11,0,0,6,6,0},{0,7,7,6,0,0,11,0,0,6,0,0,0},{0,0,0,0,0,0,0,0,0,7,0,8,6},\n\t\t\t\t\t{8,8,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m7;\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tint[][] m8= {\n\t\t\t\t\t{0,0,1,0,0,1,0,3,0,1,0,0,0},{11,1,1,1,0,1,0,8,0,1,4,0,0},{11,11,11,0,0,2,0,1,0,2,0,5,4},\n\t\t\t\t\t{11,12,12,12,12,12,12,12,12,12,12,0,12},{0,1,0,0,0,0,3,3,0,0,17,0,0},{0,0,1,0,0,5,1,1,2,1,2,7,7},\n\t\t\t\t\t{1,1,0,1,0,5,1,1,11,1,8,8,1},{0,0,0,6,0,8,0,11,11,11,11,0,0},{12,12,0,12,12,12,12,12,0,12,12,12,12},\n\t\t\t\t\t{11,11,0,5,0,0,3,3,0,0,0,0,0},{11,11,1,0,4,0,0,5,0,8,3,1,0},{11,8,1,0,4,0,0,0,0,2,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,3,0,2,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m8;\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tint[][] m9= {\n\t\t\t\t\t{0,0,0,1,0,0,0,0,0,8,11,0,0},{1,0,0,17,0,0,8,11,10,6,9,0,1},{0,0,0,8,11,10,6,9,0,7,11,0,0},\n\t\t\t\t\t{0,0,10,6,9,0,7,11,0,0,0,0,0},{0,0,0,7,11,0,0,0,0,0,0,0,0},{0,0,0,11,8,11,0,11,8,11,0,0,0},\n\t\t\t\t\t{6,1,0,10,6,9,0,10,6,9,0,1,6},{0,0,0,11,7,11,0,11,7,11,0,0,0},{0,0,0,0,8,0,0,0,8,0,0,0,0},\n\t\t\t\t\t{1,0,0,10,6,9,0,10,6,9,0,0,1},{1,0,0,11,7,11,0,11,7,11,0,0,1},{0,0,3,0,0,0,0,0,0,0,3,0,0},\n\t\t\t\t\t{0,0,1,1,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m9;\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tint[][] m10= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,5,2,1,0,0,0,0,0,0,1,2,4},{5,2,0,0,1,0,11,11,0,1,0,0,5},\n\t\t\t\t\t{1,0,0,0,1,11,11,11,11,1,0,0,5},{1,0,0,5,1,11,6,6,11,1,4,0,1},{5,3,3,1,12,12,12,12,12,12,1,1,1},\n\t\t\t\t\t{0,1,1,1,6,6,1,6,6,1,1,1,4},{0,0,1,1,6,0,1,0,6,1,1,4,0},{0,0,1,1,1,1,1,1,1,1,1,4,0},\n\t\t\t\t\t{1,11,2,2,2,6,6,2,2,2,2,11,1},{1,11,11,11,11,11,11,11,11,11,11,11,1},{0,0,11,11,11,0,0,0,11,11,11,11,0},\n\t\t\t\t\t{0,0,0,4,0,0,13,0,0,0,4,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m10;\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tint[][] m11= {\n\t\t\t\t\t{0,0,17,0,0,6,0,1,0,1,1,0,0},{0,5,1,1,1,1,0,1,0,0,0,0,0},{0,0,0,4,0,1,0,1,1,0,11,11,11},\n\t\t\t\t\t{0,5,0,0,0,0,0,6,0,11,11,11,11},{0,5,0,1,1,1,6,1,1,11,11,2,6},{0,2,2,2,6,0,0,1,0,11,11,0,5},\n\t\t\t\t\t{5,1,1,1,0,6,11,11,11,11,11,0,0},{0,0,0,6,0,0,11,11,11,11,11,1,0},{6,1,0,11,11,11,11,6,11,11,11,1,0},\n\t\t\t\t\t{5,1,11,11,11,11,11,0,0,0,0,1,4},{0,1,11,11,0,0,0,0,7,1,1,1,0},{0,0,11,11,0,0,0,0,0,1,0,5,0},\n\t\t\t\t\t{0,3,11,11,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m11;\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tint[][] m12= {\n\t\t\t\t\t{0,0,0,17,0,0,0,1,1,1,0,0,0},{0,1,1,1,3,0,3,0,0,1,0,0,0},{0,0,0,0,1,0,2,0,0,0,0,1,1},\n\t\t\t\t\t{0,12,12,12,12,12,0,1,4,0,0,1,7},{0,0,8,8,8,12,0,1,0,6,9,1,0},{1,0,1,1,1,12,12,12,0,12,1,1,0},\n\t\t\t\t\t{0,0,0,0,6,12,0,0,0,12,7,0,0},{12,12,12,0,12,12,1,1,0,12,0,0,0},{0,0,0,0,0,1,7,7,0,12,12,12,0},\n\t\t\t\t\t{1,1,1,0,0,0,0,0,0,0,0,0,0},{0,0,1,0,7,7,0,0,0,1,1,0,5},{1,0,0,0,0,0,0,0,0,1,0,0,1},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m12;\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tint[][] m13= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,3,0,0,0,0},{0,1,1,1,1,0,0,0,1,1,1,1,0},{0,1,0,0,0,0,1,0,0,0,0,6,0},\n\t\t\t\t\t{0,6,0,1,2,0,0,0,2,1,0,1,1},{0,1,0,4,11,8,6,8,11,5,0,6,1},{0,2,0,0,11,11,11,11,11,0,0,7,1},\n\t\t\t\t\t{1,8,0,0,11,11,11,11,11,0,0,3,1},{1,6,0,4,11,7,6,7,11,5,0,1,0},{1,1,0,1,3,0,0,0,3,1,0,6,0},\n\t\t\t\t\t{1,6,0,0,0,0,1,0,0,0,0,1,0},{1,1,1,1,1,0,0,0,1,1,1,6,6},{1,1,0,0,2,0,0,0,2,0,0,1,0},\n\t\t\t\t\t{1,1,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m13;\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tint[][] m14= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{11,11,0,0,3,1,1,1,3,0,0,11,11},{11,0,0,5,1,1,1,1,1,4,0,0,11},\n\t\t\t\t\t{0,0,0,1,1,11,1,11,1,1,0,0,0},{0,0,0,1,11,11,1,11,11,1,0,0,0},{11,0,0,1,1,1,1,1,1,1,0,0,11},\n\t\t\t\t\t{11,11,0,0,1,11,1,11,1,0,0,11,11},{12,12,12,0,1,1,1,1,1,0,12,12,12},{0,0,0,0,5,5,5,5,5,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,4,4,4,4,4,0,0,0,0},{10,10,10,0,0,0,0,0,0,0,9,9,9},{4,4,4,0,0,0,0,0,0,0,5,5,5},\n\t\t\t\t\t{9,9,9,10,0,0,13,0,0,9,10,10,10},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m14;\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tint[][] m15= {\n\t\t\t\t\t{0,0,17,0,1,1,0,0,1,0,0,0,0},{0,11,11,1,1,0,0,0,1,0,0,0,0},{11,11,11,11,11,11,11,11,1,1,0,0,0},\n\t\t\t\t\t{11,7,1,11,1,1,1,11,11,11,11,1,6},{11,11,1,11,11,11,7,11,11,1,9,1,0},{0,11,11,1,8,11,11,11,11,1,0,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,11,11,1,1,4,11,11},{10,7,1,1,0,0,0,1,2,0,0,0,11},{0,1,0,1,0,7,3,2,11,11,1,4,11},\n\t\t\t\t\t{0,1,0,0,5,1,2,11,11,1,0,0,11},{0,1,1,4,5,2,11,11,3,11,1,11,11},{0,0,1,0,11,0,0,0,1,11,2,11,0},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,11,11,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m15;\n\t\t\tbreak;\n\t\tcase 16:\n\t\t\tint[][] m16= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,6,11,6,0,0,0,0,0,0,0,0},{0,0,0,11,0,11,8,0,0,0,0,0,0},\n\t\t\t\t\t{0,11,0,0,0,0,11,3,0,0,0,0,0},{0,11,11,0,0,11,0,11,8,0,0,0,0},{0,11,0,11,0,11,0,0,11,3,0,0,0},\n\t\t\t\t\t{0,11,0,0,11,0,0,0,11,11,8,0,0},{0,0,11,0,0,0,0,11,11,11,11,3,0},{0,0,0,11,0,0,11,0,11,11,11,11,0},\n\t\t\t\t\t{1,0,0,0,0,0,11,0,0,11,11,11,6},{1,1,0,0,0,0,0,11,0,11,11,11,11},{6,1,1,0,0,0,0,0,11,0,11,11,11},\n\t\t\t\t\t{6,6,1,1,0,0,13,0,11,0,0,11,11},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m16;\n\t\t\tbreak;\n\t\tcase 17:\n\t\t\tint[][] m17= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,0,0,3,0,0},{0,1,0,1,1,17,0,14,14,14,1,1,0},{0,1,0,0,1,0,6,14,14,14,14,14,0},\n\t\t\t\t\t{14,14,14,9,1,0,0,1,14,14,14,14,0},{14,14,14,14,14,14,1,1,5,4,0,0,0},{0,0,10,14,14,14,14,1,5,4,0,7,7},\n\t\t\t\t\t{1,1,1,1,14,14,14,14,14,14,14,1,1},{0,0,0,1,1,14,14,14,14,9,0,0,0},{0,1,1,1,0,14,14,14,1,1,0,1,0},\n\t\t\t\t\t{14,14,14,1,14,0,0,0,0,1,0,1,0},{14,14,14,14,14,7,0,7,0,0,3,1,0},{1,14,14,14,14,0,0,0,0,1,0,0,0},\n\t\t\t\t\t{1,1,9,0,0,0,13,0,0,1,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m17;\n\t\t\tbreak;\n\t\tcase 18:\n\t\t\tint[][] m18= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,6,6,6,11,0},{0,1,0,17,0,0,0,0,6,0,0,6,0},{1,11,1,0,0,0,1,1,1,1,0,6,0},\n\t\t\t\t\t{0,1,11,1,0,0,1,0,11,1,6,6,0},{0,0,1,0,11,6,1,11,0,1,0,0,0},{0,0,0,0,6,0,1,6,1,1,0,0,0},\n\t\t\t\t\t{0,0,1,1,6,1,0,6,0,0,0,0,0},{0,0,1,0,11,1,6,11,0,0,0,0,0},{6,6,6,11,0,1,0,0,1,1,0,0,0},\n\t\t\t\t\t{6,0,1,1,1,1,0,0,1,6,6,0,0},{6,0,0,6,0,0,0,0,0,6,1,1,0},{11,6,6,6,0,0,0,0,0,0,1,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,6,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m18;\n\t\t\tbreak;\n\t\tcase 19:\n\t\t\tint[][] m19= {\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,17,1,0,1,0,1,0,1,0,1,0},{0,7,0,7,0,7,0,7,0,7,0,7,0},\n\t\t\t\t\t{3,0,3,0,1,0,0,0,1,0,3,0,3},{1,0,1,2,1,0,1,0,1,2,1,0,1},{7,0,7,0,6,0,7,0,6,0,7,0,7},\n\t\t\t\t\t{11,11,0,0,1,0,11,0,1,0,0,11,11},{11,11,11,11,1,2,11,2,1,11,11,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{3,0,3,0,1,11,11,11,1,0,3,0,3},{0,1,0,1,0,0,11,0,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,2,0,2,0,0,13,0,0,2,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m19;\n\t\t\tbreak;\n\t\tcase 20:\n\t\t\tint[][] m20= {\n\t\t\t\t\t{0,0,0,12,0,1,0,0,1,0,1,0,0},{0,0,0,17,0,0,0,0,1,0,6,0,0},{0,0,0,12,0,3,6,0,1,0,1,0,0},\n\t\t\t\t\t{7,0,1,12,0,6,0,3,2,0,1,0,0},{0,0,1,12,0,0,0,1,0,0,0,0,0},{1,0,1,12,12,0,12,12,12,12,0,0,1},\n\t\t\t\t\t{0,0,0,3,0,0,0,11,0,12,0,7,7},{1,1,5,1,0,6,11,11,11,12,0,3,3},{2,0,5,0,0,1,11,11,11,12,0,1,0},\n\t\t\t\t\t{0,8,0,0,0,1,0,11,0,12,0,11,0},{0,1,0,8,0,2,2,2,0,0,11,11,11},{0,1,0,1,0,0,0,0,0,12,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,12,0,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m20;\n\t\t\tbreak;\n\t\tcase 21:\n\t\t\tint[][] m21= {\n\t\t\t\t\t{0,0,0,3,3,3,0,0,3,0,0,0,0},{0,3,1,1,1,1,1,1,1,1,0,17,0},{0,11,11,11,11,11,11,11,11,1,1,0,0},\n\t\t\t\t\t{11,11,0,0,0,0,0,0,11,11,1,1,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},\n\t\t\t\t\t{11,0,0,11,0,0,0,0,11,11,1,1,4},{11,11,11,11,11,11,11,11,11,1,1,1,4},{1,11,11,1,1,11,11,11,1,1,1,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,1,1,1,1,1,0,6},{6,0,1,6,1,1,1,1,1,1,4,0,6},{0,6,1,2,6,0,0,0,1,1,6,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m21;\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tint[][] m22= {\n\t\t\t\t\t{0,0,0,0,0,11,0,0,0,0,0,0,0},{0,0,0,0,11,6,11,0,0,0,17,0,0},{0,0,11,0,0,11,0,0,11,11,0,0,0},\n\t\t\t\t\t{0,11,1,11,0,0,0,11,1,1,11,0,0},{0,0,11,1,11,0,0,0,11,11,0,0,11},{11,0,0,11,0,0,11,0,0,0,0,11,6},\n\t\t\t\t\t{1,11,0,0,0,11,6,11,0,0,11,0,11},{6,1,11,0,0,0,11,0,0,11,6,11,0},{1,11,0,0,11,0,0,0,11,0,11,0,0},\n\t\t\t\t\t{11,0,0,11,1,11,0,11,1,11,0,0,0},{0,0,0,11,1,11,0,0,11,0,0,11,0},{0,11,0,0,11,0,0,0,0,0,11,6,11},\n\t\t\t\t\t{11,6,11,0,0,0,13,0,0,11,1,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m22;\n\t\t\tbreak;\n\t\tcase 23:\n\t\t\tint[][] m23= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,6,6,0,0,17,0,0,0},{0,0,0,0,0,0,6,0,0,0,0,0,0},\n\t\t\t\t\t{0,6,6,11,11,1,6,1,11,11,6,6,0},{0,0,0,6,11,11,6,11,11,6,0,0,0},{11,0,0,0,6,11,11,11,6,0,0,0,11},\n\t\t\t\t\t{6,11,0,0,0,11,11,11,0,0,0,11,6},{11,0,0,0,8,7,11,7,8,0,0,0,11},{0,0,0,0,6,0,8,0,6,0,0,0,0},\n\t\t\t\t\t{0,0,0,6,0,0,6,0,0,6,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,6,0,0,0,13,0,0,0,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m23;\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tint[][] m24= {\n\t\t\t\t\t{0,0,6,0,1,7,0,0,0,0,5,0,0},{0,17,1,0,1,11,0,2,1,1,1,0,0},{0,11,11,0,1,11,5,4,0,0,0,6,6},\n\t\t\t\t\t{11,11,11,11,11,11,1,1,1,0,5,1,0},{0,0,11,11,3,3,7,1,0,5,1,2,5},{1,7,0,3,2,2,0,0,0,1,2,0,5},\n\t\t\t\t\t{5,0,3,1,14,14,14,14,14,14,14,14,14},{5,0,2,0,14,14,14,14,14,14,14,14,14},{0,0,6,0,14,14,14,14,14,14,14,14,14},\n\t\t\t\t\t{1,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,0,0,0,0,14,14,14,14,14},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,14,14,14,14},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m24;\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tint[][] m25= {\n\t\t\t\t\t{0,0,0,6,0,1,0,1,0,1,0,6,0},{0,1,0,1,0,0,0,0,0,6,0,0,0},{0,1,0,1,0,0,6,0,0,6,0,6,6},\n\t\t\t\t\t{0,1,17,0,0,1,0,6,1,0,0,0,6},{0,0,0,0,1,1,0,1,1,0,6,0,0},{0,0,6,0,1,0,0,1,1,0,1,1,0},\n\t\t\t\t\t{6,0,6,0,0,1,0,6,0,0,6,1,0},{0,0,1,1,0,1,0,0,0,1,6,0,0},{0,6,1,1,0,1,1,0,1,1,0,0,1},\n\t\t\t\t\t{0,1,0,0,0,1,6,0,0,0,0,1,1},{0,0,0,1,0,1,1,6,0,6,0,0,1},{1,0,1,1,0,0,0,0,0,1,6,0,0},\n\t\t\t\t\t{1,0,1,0,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m25;\n\t\t\tbreak;\n\t\tcase 26:\n\t\t\tint[][] m26= {\n\t\t\t\t\t{0,0,12,12,0,0,0,0,0,0,0,0,0},{8,0,0,12,11,0,4,0,0,17,0,0,0},{11,8,0,0,0,0,9,0,4,0,12,12,0},\n\t\t\t\t\t{11,11,0,7,3,5,0,0,9,11,12,0,0},{11,11,11,0,0,6,3,5,0,0,0,0,8},{11,11,7,8,0,5,0,6,3,0,0,8,11},\n\t\t\t\t\t{11,7,0,0,2,6,0,5,0,7,0,11,11},{0,0,0,0,0,4,2,6,0,0,11,11,11},{0,0,12,11,10,0,0,4,2,8,7,11,11},\n\t\t\t\t\t{0,12,12,0,5,0,10,0,0,0,0,0,11},{0,0,0,0,0,0,5,0,11,12,0,0,7},{6,0,0,0,0,0,0,0,0,12,12,0,0},\n\t\t\t\t\t{6,6,0,0,0,0,13,0,0,0,0,0,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m26;\n\t\t\tbreak;\n\t\tcase 27:\n\t\t\tint[][] m27= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,0,0,0,0},{6,6,0,0,6,0,17,6,6,0,0,0,0},{0,6,0,0,6,0,0,0,6,0,6,6,11},\n\t\t\t\t\t{0,6,0,0,6,6,6,0,11,0,6,0,0},{0,1,0,0,0,0,6,0,6,6,6,0,0},{11,6,6,0,6,1,6,1,1,0,0,0,0},\n\t\t\t\t\t{0,0,6,11,6,11,0,0,1,0,0,6,6},{0,0,6,0,0,11,0,0,6,0,0,6,0},{0,0,1,0,0,6,0,0,6,6,1,6,0},\n\t\t\t\t\t{11,6,6,6,11,11,1,6,6,0,1,6,0},{0,0,0,1,0,0,0,0,11,11,0,1,0},{0,0,0,6,0,0,0,0,0,11,0,1,0},\n\t\t\t\t\t{0,0,0,6,0,0,13,0,0,6,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m27;\n\t\t\tbreak;\n\t\tcase 28:\n\t\t\tint[][] m28= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,10,9,0},{0,0,0,0,0,0,8,0,0,17,6,0,0},{0,0,0,0,0,3,11,3,0,1,4,0,0},\n\t\t\t\t\t{0,0,0,0,8,11,11,11,8,1,4,0,0},{0,0,0,3,11,11,14,11,11,1,4,0,0},{0,0,8,11,11,14,14,14,11,11,4,0,0},\n\t\t\t\t\t{0,3,11,11,14,14,14,14,14,11,11,3,0},{8,11,11,14,14,14,14,14,14,14,11,11,8},{11,11,14,14,14,14,14,14,14,14,14,11,11},\n\t\t\t\t\t{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,0,0,0,14,14,14,11,0},\n\t\t\t\t\t{0,11,14,14,0,0,13,0,0,14,14,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m28;\n\t\t\tbreak;\n\t\tcase 29:\n\t\t\tint[][] m29= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,1,0,0},{0,1,12,12,0,6,0,1,0,0,17,0,0},{0,0,12,12,1,11,11,11,12,12,0,6,0},\n\t\t\t\t\t{0,0,0,0,0,11,11,11,12,12,1,0,0},{0,6,0,0,12,12,0,11,0,0,0,0,0},{11,11,1,0,12,12,6,0,0,0,0,1,0},\n\t\t\t\t\t{11,11,11,0,0,0,0,0,0,6,0,0,6},{0,1,12,12,0,1,0,0,0,0,0,0,0},{6,0,12,12,11,11,12,12,11,11,0,1,0},\n\t\t\t\t\t{0,0,0,0,11,0,12,12,11,11,12,12,0},{0,0,0,6,11,0,0,0,11,11,12,12,0},{0,0,1,0,1,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{1,0,0,0,0,0,13,0,0,1,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m29;\n\t\t\tbreak;\n\t\tcase 30:\n\t\t\tint[][] m30= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,3,3,0,0,0,8,0,0},{0,8,8,0,3,11,11,8,0,3,11,3,0},\n\t\t\t\t\t{3,11,11,3,11,11,11,11,3,11,11,11,3},{11,11,11,11,11,11,11,11,11,11,11,11,11},{6,11,12,11,11,11,11,11,12,11,11,11,11},\n\t\t\t\t\t{11,11,12,12,12,11,11,11,12,12,12,11,6},{11,11,11,11,12,11,6,11,11,11,12,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{11,11,11,11,11,2,2,11,11,11,11,11,7},{7,11,11,11,2,0,0,2,11,11,11,7,0},{0,7,2,2,0,0,0,0,2,2,2,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m30;\n\t\t\tbreak;\n\t\tcase 31:\n\t\t\tint[][] m31= {\n\t\t\t\t\t{0,0,0,12,0,0,0,0,12,0,0,0,0},{12,12,0,12,0,12,12,12,12,0,12,12,12},{11,11,1,0,0,1,0,0,12,0,12,11,12},\n\t\t\t\t\t{11,12,12,12,12,0,6,0,0,1,11,11,11},{11,11,0,12,0,0,12,0,12,12,12,12,11},{12,12,17,12,0,12,12,0,0,12,0,0,0},\n\t\t\t\t\t{0,0,1,11,1,0,1,11,0,12,0,0,12},{0,12,12,11,12,12,12,12,0,11,1,0,12},{1,0,0,1,0,0,0,0,11,11,12,0,12},\n\t\t\t\t\t{12,12,0,12,12,0,12,1,12,12,12,0,0},{0,0,1,0,11,11,0,0,11,12,0,0,12},{0,12,12,12,11,0,0,0,0,12,0,12,12},\n\t\t\t\t\t{0,12,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m31;\n\t\t\tbreak;\n\t\tcase 32:\n\t\t\tint[][] m32= {\n\t\t\t\t\t{14,14,14,14,14,14,0,14,14,14,14,14,14},{14,14,14,14,14,14,14,14,14,14,14,14,14},{14,14,14,1,14,14,14,14,14,1,14,14,14},\n\t\t\t\t\t{14,1,0,1,0,1,14,1,0,1,0,1,14},{14,2,2,1,0,17,0,0,0,1,2,2,14},{14,14,14,1,3,1,6,1,3,1,14,14,14},\n\t\t\t\t\t{6,14,14,14,0,7,0,7,0,14,14,14,6},{14,14,14,14,0,3,0,3,0,14,14,14,14},{14,14,14,14,0,1,0,1,0,14,14,14,14},\n\t\t\t\t\t{14,14,14,1,0,0,3,0,0,1,14,14,14},{14,1,14,1,0,7,7,7,0,1,14,1,14},{0,1,3,1,0,0,0,0,0,1,3,1,0},\n\t\t\t\t\t{0,2,0,0,0,0,13,0,0,0,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m32;\n\t\t\tbreak;\n\t\tcase 33:\n\t\t\tint[][] m33= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,6,0,0,0},{0,6,0,0,0,6,0,0,6,11,11,0,0},{0,0,6,0,0,0,0,6,11,8,9,0,0},\n\t\t\t\t\t{0,0,0,6,0,11,11,11,11,11,0,10,0},{0,9,0,0,6,11,11,6,0,0,0,6,0},{0,7,9,11,0,6,0,0,6,0,0,10,0},\n\t\t\t\t\t{0,0,11,11,11,11,11,0,0,6,0,0,0},{0,8,9,11,0,6,11,0,0,0,6,0,0},{0,11,11,11,6,0,6,0,8,0,0,6,0},\n\t\t\t\t\t{11,11,11,6,0,0,0,0,10,0,0,0,0},{0,0,6,0,0,0,0,0,0,0,0,10,6},{0,0,0,0,0,0,0,0,0,8,9,0,0},\n\t\t\t\t\t{9,0,8,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m33;\n\t\t\tbreak;\n\t\tcase 34:\n\t\t\tint[][] m34= {\n\t\t\t\t\t{0,0,0,0,4,5,0,0,0,0,0,0,0},{4,4,4,5,0,4,0,0,4,4,0,0,0},{4,4,4,1,1,0,0,17,4,1,4,0,0},\n\t\t\t\t\t{5,5,0,1,4,0,0,5,4,1,1,0,0},{0,4,0,1,5,4,0,4,1,1,1,0,0},{0,4,5,0,0,1,4,1,5,5,1,0,0},\n\t\t\t\t\t{0,4,0,0,5,1,1,4,0,4,1,0,0},{0,5,0,0,4,1,1,4,0,4,1,0,0},{0,5,2,2,0,1,1,1,0,4,4,2,1},\n\t\t\t\t\t{0,5,0,0,5,4,1,5,4,4,4,5,5},{0,0,4,0,1,5,4,1,1,0,0,5,0},{0,0,4,5,4,0,0,0,1,4,0,4,0},\n\t\t\t\t\t{0,0,4,5,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m34;\n\t\t\tbreak;\n\t\tcase 35:\n\t\t\tint[][] m35= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,1,0,1,0,0,0,0,0,0},{11,0,0,11,1,11,1,11,0,0,11,0,0},\n\t\t\t\t\t{1,11,11,1,1,1,1,1,11,11,1,11,0},{1,1,1,1,6,1,6,1,1,1,1,11,0},{12,12,12,1,1,1,1,1,12,12,12,11,0},\n\t\t\t\t\t{12,1,1,1,1,1,1,1,1,1,12,12,11},{1,1,1,12,1,1,1,12,1,1,1,11,11},{1,1,12,12,12,1,12,12,12,1,1,12,12},\n\t\t\t\t\t{11,12,12,11,11,11,11,11,12,12,11,12,11},{0,11,11,0,0,0,0,0,11,11,0,11,0},{0,0,0,0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m35;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn matriz;\n\t}", "public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }", "public Matriz(int filas, int columnas,Complejo[] numeros) throws CalculadoraException{\n\t\tif(numeros.length < filas*columnas) {\n\t\t\tthrow new CalculadoraException(CalculadoraException.FALTAN_NUMEROS);\n\t\t}\n\t\tthis.numeros = new Complejo[filas][columnas];\n\t\taddNumeros(numeros);\n\t}", "private void init() {\n visitado = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++) visitado[x][0] = visitado[x][N+1] = true;\n for (int y = 0; y < N+2; y++) visitado[0][y] = visitado[N+1][y] = true;\n\n\n // todas las paredes levantadas\n norte = new boolean[N+2][N+2];\n este = new boolean[N+2][N+2];\n sur = new boolean[N+2][N+2];\n oeste = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++)\n for (int y = 0; y < N+2; y++)\n norte[x][y] = este[x][y] = sur[x][y] = oeste[x][y] = true;\n }", "public Matrix P0 ();", "void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }", "private void criaBotoes(){\n \tfor(int i=0; i<botao.length; i++){\n \tfor(int j=0;j<botao[i].length; j++){ \n \t\tbotao[i][j] = new JButton();\n \tpainel.add(botao[i][j]);\n \t}\n \n \t}\n\t}", "private void pasar_a_matriz_adyacencia() {\n table_panel1.eliminar_All();//elimino todo los elemento de la matrices\n Grafo g = panel.getGrafo();//saco el grafo del panel\n data_fila[] dato = new data_fila[g.size_vertice()];//hago de una arreglo de vectores \n for (int i = 0; i < g.size_vertice(); i++) {//estructuras de datos\n dato[i] = new data_fila();\n }\n\n for (int i = 0; i < g.size_vertice(); i++) {\n Vertices A = g.get_vertices(i);\n dato[i].setNombre(A.getNombre());\n for (int j = 0; j < g.size_vertice(); j++) {\n if (j != i) {\n Vertices B = g.get_vertices(j);\n int peso =A.adyacencia(B);\n if (peso != Integer.MIN_VALUE) {\n dato[i].setArry(j, peso);\n }\n\n }\n }\n table_panel1.add(dato[i]);\n }\n }", "@Before\n public void setUp() throws Exception {\n myM = new Matrix();\n /** matrix1 = new int[4][4];\n for (int i = 0; i < matrix1.length; i++) {\n for (int j = 0; j < matrix1[0].length; j++) {\n if( i == j) {\n matrix1[i][j] = 1;\n }\n }\n }\n matrix2 = new int[6][6];\n for (int i = 0; i < matrix2.length; i++) {\n for (int j = 0; j < matrix2[0].length; j++) {\n matrix2[i][j] = i;\n }\n }\n matrix3 = new int[3][4];\n for (int i = 0; i < matrix3.length; i++) {\n for (int j = 0; j < matrix3[0].length; j++) {\n if( i == j) {\n matrix3[i][j] = 1;\n }\n\n }\n } **/\n }", "private List<List<Node>> initializeMaze(int rows, int cols, List<List<Node>> maze) {\n\t\t \n\t\tint count = 0;\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tList<Node> row = new ArrayList<>();\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\trow.add(new Node(count++, true, true)); //Stores current index as value of the node\n\t\t\t}\n\t\t\tmaze.add(row);\n\t\t}\n\t\t \n\t\treturn maze;\n\t}", "public void mostrarGrafo() {\n\t\tmatriz.mostrarMatriz();\n\t}", "private void inicializaQuadricula(EstadoAmbiente estado) {\n\t\tfor(int i = 0 ; i < this.quadricula.length ; i++) {\n\t\t\tfor (int j = 0 ; j < this.quadricula[0].length ; j++) {\n\t\t\t\tthis.quadricula[i][j] = estado;\n\t\t\t}\n\t\t}\t\t\n\t}", "public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}", "void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\n }", "public Matrix33() {\r\n // empty\r\n }", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }", "private void resetPieza() {\n for (int i = 0; i < altoTablero * anchoTablero; ++i) {\r\n piezas[i] = PiezasTetris.NoPieza;\r\n }\r\n }", "public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }", "pcols createpcols();", "public Plateau(int largeur, int hauteur) {\r\n\t\tplateau = new Cellule[hauteur][largeur];\r\n\t\tint equipe = 1;\r\n\t\tfor (int i=0; i<hauteur; i++) {\r\n\t\t\tfor (int j=0; j<largeur; j++) {\r\n\t\t\t\tif ((i == 0 && j == 0) || (i == hauteur-1 && j == largeur -1))\r\n\t\t\t\t\tplateau[i][j] = new Base(j,i,equipe++);\r\n\t\t\t\telse\r\n\t\t\t\t\tplateau[i][j] = new Case(j,i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.hauteur = hauteur;\r\n\t\tthis.largeur = largeur;\r\n\t}", "public TranspositionTable() {\n\t\tmap = new HashMap<Long, Transposition>(1000000);\n\t\t//purgatory = new HashSet<Long>();\n\t}", "protected SimpleMatrix() {}", "public Matrix(int n) {\n\t\tsize = n;\n\t\tm = new int[size][size];\n\t}", "private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }", "@Test\n public void testMatrixCreation() throws Exception {\n\n testUtilities_3.createAndTestMatrix(false);\n\n }", "void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }", "protected abstract T createMatrix( int numRows, int numCols, MatrixType type );", "public Maze(int m, int p) {\n\t\tmaze = new int[m + 2][p + 2];\n\t\tmark = new int[m + 2][p + 2];\n\t\tfor(int i = 0; i < m + 2; i++)\n\t\t\tfor(int j = 0; j < p + 2; j++) {\n\t\t\t\tmaze[i][j] = 1;\n\t\t\t\tmark[i][j] = 0;\n\t\t\t}\n\t}", "public Echiquier()\n\t{\n\t\ttableau = new Piece[8][8];\n\t}", "public Igra2048() {\r\n\t\ttabela = new int[4][4];\r\n\t\tbroj_slobodnih = 16;\r\n\t\trnd = new Random();\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\t\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "private void llenarCuadrosTablero() {\n tmp = new JLabel();\n tmp.setBounds(-100, -100, 56, 56);\n add(tmp);\n tablero = new CuadroPieza[8][8];\n setLayout(null);\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y] = new CuadroPieza(x, y);\n add(tablero[x][y]);// para agregar los elementos\n }\n }\n rePintarTablero();\n }", "public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }", "public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }", "Pivots createPivots();", "public PantallaPaginas() {\r\n initComponents();\r\n framePaginas=new DefaultTableModel();\r\n framePaginas.addColumn(\"Num Pagina\");\r\n framePaginas.addColumn(\"Bit Residencia\");\r\n framePaginas.addColumn(\"Info Relevante\"); \r\n framePaginas.addRow(new Object []{null, null, null});\r\n tablaPaginas.setModel(framePaginas);\r\n Window[] w=PantallaProcesos.getWindows();\r\n w[1].setLocation(w[0].getWidth()+5, w[0].getY());\r\n\r\n TableColumn tcol;\r\n //va recrriendo las columnas\r\n for(int i=0;i<3;i++)\r\n {\r\n tcol= tablaPaginas.getColumnModel().getColumn(i);\r\n tcol.setCellRenderer(new CustomTableCellRenderer());\r\n }\r\n }", "public static int [][][] buildMat3d() {\n //defines array to be 3 X 7X 9 dimensioned\n int mat3d [][][]= new int [3][7][9];\n //for loop which runs 3 times\n for(int s=0; s<3; s++) {\n //for loop which runs a different amount of times\n for(int j=0; j<(3+2*s); j++) {\n //for loop which does the same\n for(int c=0; c<(s+j+1); c++) {\n //defines values based on raondom generation\n mat3d[s][j][c]= (int)(Math.random()*99);\n \n }\n }\n }\n //returns the resulting array\n return mat3d;\n }", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "@Override\n\tprotected void createInitialPermutations()\n\t{\n mOrientations[0] = new Permutation( this, null );\n\n // first, define the 7-fold rotation\n int[] map = new int[]{ 1, 2, 3, 4, 5, 6, 0, 8, 9, 10, 11, 12, 13, 7 };\n mOrientations[1] = new Permutation( this, map );\n\n // then, then 2-fold rotation\n map = new int[]{ 7, 13, 12, 11, 10, 9, 8, 0, 6, 5, 4, 3, 2, 1 };\n mOrientations[7] = new Permutation( this, map );\n }", "public TransformationMatrix() {\n\t\ta11 = 1; a12 = 0; a13 = 0; a14 = 0;\n\t\ta21 = 0; a22 = 1; a23 = 0; a24 = 0;\n\t\ta31 = 0; a32 = 0; a33 = 1; a34 = 0;\n\t}", "private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n int[] miMatriz = new int[5];\n\n //Primera forma de agregar elementos a una matriz (agregar cada elemento en el indice indicado)\n miMatriz[0] = 1;\n miMatriz[1] = 2;\n miMatriz[2] = 3;\n miMatriz[3] = 4;\n miMatriz[4] = 5;\n\n /* Segunda forma de declarar una matriz\n Esta lo que hace es declarar la matriz e introducir los elementos \n en una sola línea\n */\n int[] miMatriz2 = {1, 2, 3, 4, 5};\n\n // Recorrer las matrices con un for normal\n for (int i = 0; i < miMatriz.length; i++) {\n System.out.println(\"Posicion matriz 1: \" + i + \" con un valor de \" + miMatriz[i]);\n }\n System.out.println();\n for (int i = 0; i < miMatriz2.length; i++) {\n System.out.println(\"Posicion matriz 2: \" + i + \" con un valor de \" + miMatriz2[i]);\n }\n }", "public Matrix[] palu() {\n\t\tHashMap<Integer, Integer> permutations = new HashMap<Integer,Integer>();\n\t\tMatrix m = copy();\n\t\tint pivotRow = 0;\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tif (pivotRow < m.M) {\n\t\t\t\tint switchTo = m.M - 1;\n\t\t\t\twhile (pivotRow != switchTo && \n\t\t\t\t\t\tm.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\tm = m.rowSwitch(pivotRow, switchTo);\n\t\t\t\t\tpermutations.put(pivotRow, switchTo);\n\t\t\t\t\tswitchTo--;\n\t\t\t\t}\n\t\t\t\tif (!m.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < m.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = m.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tm = m.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tMatrix p = identity(m.M);\n\t\tfor (Integer rowI : permutations.keySet()) {\n\t\t\tp.rowSwitch(rowI, permutations.get(rowI));\n\t\t}\n\t\tMatrix l = identity(m.M);\n\t\tMatrix u = p.multiply(copy());\n\t\t\n\t\tpivotRow = 0;\n\t\tfor (int col = 0; col < u.N; col++) {\n\t\t\tif (pivotRow < u.M) {\n\t\t\t\t// Should not have to do any permutations\n\t\t\t\tif (!u.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < u.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = u.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = u.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tu = u.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t\tl = l.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tl = l.inverse();\n\t\tMatrix[] palu = {p, this, l, u};\n\t\treturn palu;\n\t}", "public void generateMatrix() {\n\n flow = new int[MATRIX_TAM][MATRIX_TAM];\n loc = new int[MATRIX_TAM][MATRIX_TAM];\n\n for (int i = 0; i < MATRIX_TAM; i++) {\n for (int j = 0; j < MATRIX_TAM; j++) {\n\n //fill the distances matrix\n if (i != j) {\n loc[i][j] = rn.nextInt(MAX_DISTANCE - MIN_DISTANCE + 1) + MIN_DISTANCE;\n } else {\n loc[i][j] = 0;\n }\n\n //fill the flow matrix\n if (i != j) {\n flow[i][j] = rn.nextInt(MAX_FLOW - MIN_FLOW + 1) + MIN_FLOW;\n } else {\n flow[i][j] = 0;\n }\n\n }\n }\n\n }", "private void inicializarSolucion() {\n this.sol.numVerticesEmparejados = 0;\n this.sol.pesoEmparejamiento = 0;\n int size = this.G.numVertices();\n this.sol.emparejamientos = new int[size][size];\n for(int i = 0; i < size; ++i) {\n for(int j = 0; j < size; ++j) {\n if(i != j) this.sol.emparejamientos[i][j] = 0;\n else {\n this.sol.emparejamientos[i][j] = Integer.MAX_VALUE;\n }\n }\n }\n }", "public int[][] iniciarAtomataCelular(int parCelulas,int parRegla,int parEvoluciones,ArrayList parValoresIniciales){\n clsAutomataCelular objAutomataCelular = new clsAutomataCelular(parCelulas,parRegla,parEvoluciones,parValoresIniciales); \n return objAutomataCelular.ObtenerMatriz();\n }", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public PgMatviews() {\n this(\"pg_matviews\", null);\n }", "public void copiaMatriz(int [][] matrizCopia){\n for(int i = 0; i < 9; i++){\n System.arraycopy(matrizCopia[i], 0, this.matriz[i], 0, 9);\n }\n }", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "public void initialisationGrille(){\n for(int i = 0; i < this.grille.length ; i++)\n {\n for(int j = 0 ; j < this.grille[i].length;j++)\n {\n this.grille[i][j] = \"0\";\n this.grilleObjectif[i][j] = \"0\";\n }\n }\n }", "private void preencherTabela(List<br.cefet.renatathiago.trabalhoBim2.Entidade.Produto> lista) {\n if (lista != null){\n String[] vetor = new String[6];\n vetor [0]= \"Cod\";\n vetor [1]= \"Nome\";\n vetor [2]= \"Marca\";\n vetor [3] = \"Preço Compra\";\n vetor [4] = \"Preço Venda\";\n vetor [5] = \"Qtd em Estoque\";\n String [][] matriz = new String[lista.size()][6];\n \n for (int i = 0; i<lista.size(); i++){\n matriz [i][0]=lista.get(i).getCod()+\"\";\n matriz [i][1]=lista.get(i).getNome();\n matriz [i][2]=lista.get(i).getMarca();\n matriz [i][3]=lista.get(i).getPrecoCompra()+\"\";\n matriz [i][4]=lista.get(i).getPrecoVenda()+\"\";\n matriz [i][5]=lista.get(i).getQtdEstoque()+\"\";\n }\n \n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n matriz, vetor));\n }\n }", "public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }" ]
[ "0.6547817", "0.6345743", "0.62964684", "0.62648535", "0.617221", "0.61447746", "0.6133792", "0.606244", "0.60118693", "0.6009667", "0.58953094", "0.5884164", "0.5881728", "0.5830723", "0.5827572", "0.57753825", "0.5700187", "0.5665584", "0.5658375", "0.56579524", "0.56300443", "0.56185657", "0.5612243", "0.5607903", "0.5598295", "0.5572089", "0.5562829", "0.55413294", "0.5525132", "0.5506481", "0.5496111", "0.54910135", "0.5487198", "0.5483828", "0.54723626", "0.5467031", "0.54612815", "0.5456401", "0.54552263", "0.5454668", "0.54528373", "0.5448845", "0.54322153", "0.5420328", "0.5415075", "0.540948", "0.54063684", "0.5396904", "0.53913355", "0.53820324", "0.5380502", "0.5377135", "0.5371735", "0.536572", "0.5360768", "0.5353945", "0.53524256", "0.53514415", "0.534185", "0.53380215", "0.533552", "0.53313625", "0.53277344", "0.532461", "0.52979404", "0.52955663", "0.5295086", "0.52837044", "0.52797705", "0.5278804", "0.5273641", "0.52681416", "0.5267714", "0.5265582", "0.52642286", "0.5252728", "0.52260816", "0.52142745", "0.51993275", "0.5194244", "0.51940656", "0.5189181", "0.5188549", "0.5188102", "0.51838", "0.5183212", "0.5180126", "0.51748544", "0.5174452", "0.5172085", "0.5168271", "0.51661557", "0.51625144", "0.5160767", "0.5160413", "0.5159441", "0.51585424", "0.5157464", "0.51561093", "0.51548606", "0.51455235" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if( id == android.R.id.home ) // Back button of the actionbar { finish(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653", "0.73422706", "0.7331221", "0.7329421", "0.7326524", "0.73197514", "0.73175013", "0.7314632", "0.7305193", "0.7305193", "0.73030055", "0.72992206", "0.7294402", "0.7287853", "0.7284157", "0.72821075", "0.72797185", "0.7260893", "0.7260893", "0.7260893", "0.7260798", "0.72604334", "0.7250995", "0.72243106", "0.72205526", "0.7217967", "0.72052115", "0.72008896", "0.7200226", "0.71938485", "0.7186533", "0.7178549", "0.71698415", "0.7168567", "0.7154602", "0.7154338", "0.71365875", "0.71357495", "0.71357495", "0.71302795", "0.7125107", "0.7124433", "0.71243066", "0.7122874", "0.7118138", "0.71181303", "0.71180034", "0.71180034", "0.71180034", "0.71180034", "0.7117241", "0.71159554", "0.7113099", "0.7110779", "0.71097904", "0.71062744", "0.710078", "0.7099281", "0.70957214", "0.7094494", "0.7094494", "0.7087356", "0.70834076", "0.7081747", "0.70809853", "0.70746684", "0.70691484", "0.70627403", "0.70616937", "0.7060999", "0.7052165", "0.70382303", "0.70382303", "0.7036847", "0.7036218", "0.7036218", "0.70333946", "0.7031289", "0.7030542", "0.70198953" ]
0.7129606
60
build the list of synsets
private void getSynsets(HashSet<WordProvider.Word> words) { HashMap<String, String> synsets_map = new HashMap<>(); for (WordProvider.Word word: words) { ArrayList<String> synsetList = new ArrayList<>(Arrays.asList(word.getSynsets().trim().split(" "))); for (String synset_tag: synsetList) synsets_map.put(synset_tag, word.getPos()); } // for each synset load the meanings in the background final Object[] params= {synsets_map}; new FetchRows().execute(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWord(chw, POS.NOUN);\n\t\tList<IWordID> sensesID = indexWord.getWordIDs();\n\t\tList<ISynsetID> relaWordID = new ArrayList<ISynsetID>();\n\t\tList<IWord> words;\n\t\t\n\t\tfor(IWordID set : sensesID) {\n\t\t\tIWord word = dictionary.getWord(set);\n\t\t\t\n\t\t\t//Add Synonym\n\t\t\trelaWordID.add(word.getSynset().getID());\n\n\t\t\t//Add Antonym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.ANTONYM));\n\t\t\t\n\t\t\t//Add Meronym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_MEMBER));\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_PART));\n\t\t\t\n\t\t\t//Add Hypernym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPERNYM));\n\t\t\t\n\t\t\t//Add Hyponym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPONYM));\n\t\t}\n\t\t\n\t\tfor(ISynsetID sid : relaWordID) {\n\t\t\twords = dictionary.getSynset(sid).getWords();\n\t\t\tfor(Iterator<IWord> i = words.iterator(); i.hasNext();) {\n\t\t\t\tsynsets.add(i.next().getLemma());\n\t\t\t}\n\t\t}\n\t}", "public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "public List<Synset> getSynsets() {\n try {\n return Dictionary.getDefaultResourceInstance()\n .lookupIndexWord(WSDHelper.getPOS(this.getTargetTag()),\n this.getTargetWord())\n .getSenses();\n } catch (JWNLException e) {\n e.printStackTrace();\n }\n return null;\n }", "private void populateStations() throws Exception{\t\n\t\t\n\t\tTreeSet<String> set = new TreeSet<String>();\n\t\tif(quotList != null){\t\t\t\n\t\t\tfor(int i = 0; i < quotList.length; i++){\t\t\t\t\n\t\t\t\tset.add(quotList[i].getStationCode());\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tIterator<String> itr = set.iterator();\n\t\t\twhile(itr.hasNext()){\n\t\t\t\tcbStation.add(itr.next());\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t}", "public WordNet(String synsets, String hypernyms) {\n\n\t\tString[] vw;\n\t\tInteger synset = 0;\n\n\t\t// step1: build noun TreeSet\n\t\tIn br = new In(synsets);\n\t\tif (!br.hasNextLine())\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tdo {\n\t\t\tString line = br.readLine();\n\t\t\tsize++;\n\t\t\tvw = line.split(\",\");\n\t\t\tsynset = new Integer(vw[0]);\n\t\t\t// save the set\n\t\t\tsets.put(Integer.parseInt(vw[0]), vw[1]);\n\t\t\t// save the nouns\n\t\t\tvw = vw[1].split(\" \");\n\t\t\n\t\t\tfor (String noun: vw) {\n\t\t\t\tif (nouns.containsKey(noun))\n\t\t\t\t\tnouns.get(noun).add(synset);\n\t\t\t\telse {\n\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\n\t\t\t\t\tal.add(synset);\n\t\t\t\t\tnouns.put(noun, al);\n\t\t\t\t}\n\t\t\t}\n\t\t} while (br.hasNextLine());\n\t\tbr.close();\n\n\t\t// step2: build graph\n\t\tbr = new In(hypernyms);\n\t\tDigraph dg = new Digraph(size);\n\t\tdo {\n\t\t\tString line = br.readLine();\n\t\t\tvw = line.split(\",\");\n\t\t\tfor (int i = 1; i < vw.length; i++)\n\t\t\t\tdg.addEdge(Integer.parseInt(vw[0].trim()),\n\t\t\t\t\t\tInteger.parseInt(vw[i].trim()));\n\n\t\t}while (br.hasNextLine());\n\t\t\t\n\t\tbr.close();\n\t\tDirectedCycle dc = new DirectedCycle(dg);\n\t\tif (dc.hasCycle())\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tcheck(dg);\n\t\tsap = new SAP(dg);\n\n\t}", "public WordNet(String synsets, String hypernyms) {\n if (synsets == null || hypernyms == null) {\n throw new IllegalArgumentException(\"synsets and hypernyms can't be empty\");\n }\n int lineCount = 0;\n In inputFile = new In(synsets);\n while (inputFile.hasNextLine()) {\n String aLine = inputFile.readLine();\n String[] splitArr = aLine.split(\",\");\n int synID = Integer.parseInt(splitArr[0]);\n String[] nounSyn = splitArr[1].split(\" \");\n nouns.put(synID, nounSyn);\n for (String word : nounSyn) {\n LinkedList<Integer> nounList = synsetList.get(word);\n if (nounList == null) {\n nounList = new LinkedList<Integer>();\n }\n nounList.add(synID);\n synsetList.put(word, nounList);\n\n }\n lineCount += 1;\n\n }\n inputFile.close();\n aDigraph = new Digraph(lineCount);\n In hyperInput = new In(hypernyms);\n while (hyperInput.hasNextLine()) {\n String aLine = hyperInput.readLine();\n String[] splitArr = aLine.split(\",\");\n int synID = Integer.parseInt(splitArr[0]);\n for (int i = 1; i < splitArr.length; i++) {\n aDigraph.addEdge(synID, Integer.parseInt(splitArr[i]));\n }\n }\n hyperInput.close();\n shortestCA = new ShortestCommonAncestor(aDigraph);\n\n\n }", "private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}", "public static List<Synset> getAllHyponymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(wordSynset,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "public WordNet(String synsets, String hypernyms) {\n synsetStream = new In(synsets);\n hypernymStream = new In(hypernyms);\n\n // go through all synsets\n while (synsetStream != null && synsetStream.hasNextLine()) {\n synsetString = synsetStream.readLine();\n String[] synsetStrLine = synsetString.split(\",\");\n Integer id = Integer.parseInt(synsetStrLine[0]);\n String[] synsetsArray = synsetStrLine[1].split(\"\\\\s+\");\n sFile.put(id, synsetsArray);\n }\n for (String[] nounSet : sFile.values()) {\n for (String str : nounSet) {\n sNounSet.add(str);\n }\n }\n while (hypernymStream != null && hypernymStream.hasNextLine()) {\n hypernymString = hypernymStream.readLine();\n String[] hyponymArray = hypernymString.split(\",\");\n Integer synsetID = Integer.parseInt(hyponymArray[0]);\n TreeSet hyponymSet = new TreeSet();\n for (int i = 1; i < hyponymArray.length; i++) {\n Integer hyponymID = Integer.parseInt(hyponymArray[i]);\n if (hFile.containsKey(synsetID)) {\n hFile.get(synsetID).add(hyponymID);\n } else {\n hyponymSet.add(hyponymID);\n hFile.put(synsetID, hyponymSet);\n }\n }\n\n }\n theDigraph = new Digraph(sFile.size());\n for (Integer key : hFile.keySet()) {\n for (Object curr : hFile.get(key)) {\n theDigraph.addEdge(key, (int) curr);\n }\n }\n }", "private List<Query> generateSynonymQueries(Analyzer synonymAnalyzer, SolrParams solrParams) {\n\n\tString origQuery = getQueryStringFromParser();\n\tint queryLen = origQuery.length();\n\t\n // TODO: make the token stream reusable?\n TokenStream tokenStream = synonymAnalyzer.tokenStream(Const.IMPOSSIBLE_FIELD_NAME,\n new StringReader(origQuery));\n \n SortedSetMultimap<Integer, TextInQuery> startPosToTextsInQuery = TreeMultimap.create();\n \n \n boolean constructPhraseQueries = solrParams.getBool(Params.SYNONYMS_CONSTRUCT_PHRASES, false);\n \n boolean bag = solrParams.getBool(Params.SYNONYMS_BAG, false);\n List<String> synonymBag = new ArrayList<>();\n \n try {\n tokenStream.reset();\n while (tokenStream.incrementToken()) {\n CharTermAttribute term = tokenStream.getAttribute(CharTermAttribute.class);\n OffsetAttribute offsetAttribute = tokenStream.getAttribute(OffsetAttribute.class);\n TypeAttribute typeAttribute = tokenStream.getAttribute(TypeAttribute.class);\n \n if (!typeAttribute.type().equals(\"shingle\")) {\n // ignore shingles; we only care about synonyms and the original text\n // TODO: filter other types as well\n \n String termToAdd = term.toString();\n \n if (typeAttribute.type().equals(\"SYNONYM\")) {\n synonymBag.add(termToAdd); \t\n }\n \n //Don't quote sibgle term term synonyms\n\t\t if (constructPhraseQueries && typeAttribute.type().equals(\"SYNONYM\") &&\n\t\t\ttermToAdd.contains(\" \")) \n\t\t {\n\t\t \t//Don't Quote when original is already surrounded by quotes\n\t\t \tif( offsetAttribute.startOffset()==0 || \n\t\t \t offsetAttribute.endOffset() == queryLen ||\n\t\t \t origQuery.charAt(offsetAttribute.startOffset()-1)!='\"' || \n\t\t \t origQuery.charAt(offsetAttribute.endOffset())!='\"')\n\t\t \t{\n\t\t \t // make a phrase out of the synonym\n\t\t \t termToAdd = new StringBuilder(termToAdd).insert(0,'\"').append('\"').toString();\n\t\t \t}\n\t\t }\n if (!bag) {\n // create a graph of all possible synonym combinations,\n // e.g. dog bite, hound bite, dog nibble, hound nibble, etc.\n\t TextInQuery textInQuery = new TextInQuery(termToAdd, \n\t offsetAttribute.startOffset(), \n\t offsetAttribute.endOffset());\n\t \n\t startPosToTextsInQuery.put(offsetAttribute.startOffset(), textInQuery);\n }\n }\n }\n tokenStream.end();\n } catch (IOException e) {\n throw new RuntimeException(\"uncaught exception in synonym processing\", e);\n } finally {\n try {\n tokenStream.close();\n } catch (IOException e) {\n throw new RuntimeException(\"uncaught exception in synonym processing\", e);\n }\n }\n \n List<String> alternateQueries = synonymBag;\n \n if (!bag) {\n // use a graph rather than a bag\n\t List<List<TextInQuery>> sortedTextsInQuery = new ArrayList<>(\n startPosToTextsInQuery.values().size());\n sortedTextsInQuery.addAll(startPosToTextsInQuery.asMap().values().stream().map(ArrayList::new).collect(Collectors.toList()));\n\t \n\t // have to use the start positions and end positions to figure out all possible combinations\n\t alternateQueries = buildUpAlternateQueries(solrParams, sortedTextsInQuery);\n }\n \n // save for debugging purposes\n expandedSynonyms = alternateQueries;\n \n return createSynonymQueries(solrParams, alternateQueries);\n }", "private SortedSet<NodeStation> generateNodeStations() throws GenerationException {\n // create Set of NodeStations\n SortedSet<NodeStation> nodeStations = new TreeSet<>();\n for (ReferenceStation referenceStation : referenceStations) {\n nodeStationGenerator.referenceStation(referenceStation).generate()\n .ifPresent(nodeStations::add);\n }\n return nodeStations;\n }", "private static void buildList() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (connection == null || connection.isClosed()) \r\n\t\t\t\tconnection = DataSourceManager.getConnection();\r\n\t\t\t\r\n\t\t\tstatement = connection.prepareStatement(LOAD_ALL);\r\n\t \tresultset = statement.executeQuery();\r\n\t \t\r\n\t \tgroups = getCollectionFromResultSet(resultset);\r\n\t \tresultset.close();\r\n\t statement.close();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException | SQLException e) {\r\n\t\t\tlog.fatal(e.toString());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "private void createItemsetsOfSize1() {\n itemsets = new ArrayList<>();\n for (int i = 0; i < numItems; i++) {\n String[] cand = {words.get(i)};\n itemsets.add(cand);\n }\n }", "public WordNet(String synsets, String hypernyms)\n {\n In text = new In(synsets);\n synsetList = new ArrayList<String>();\n synsetHash = new HashMap<String, ArrayList<Integer>>();\n // parse words into array synsetList\n synsetNum = 0;\n while (!text.isEmpty())\n {\n String temp = text.readLine().split(\",\")[1];\n synsetList.add(temp);\n synsetNum++;\n }\n //initialize synsetHash with word:list of integers\n for (int i = 0; i < synsetNum; i++)\n {\n String[] stringArray = synsetList.get(i).split(\" \");\n for (String s : stringArray)\n {\n if (synsetHash.containsKey(s))\n {\n ArrayList<Integer> temp = synsetHash.get(s);\n temp.add(i);\n }\n else\n {\n ArrayList<Integer> temp = new ArrayList<Integer>();\n temp.add(i);\n synsetHash.put(s, temp);\n }\n }\n }\n\n wordGraph = new Digraph(synsetNum);\n text = new In(hypernyms);\n while (!text.isEmpty())\n {\n String[] edges = text.readLine().split(\",\");\n int mainEdge = Integer.parseInt(edges[0]);\n for (int i = 1; i < edges.length; i++)\n {\n wordGraph.addEdge(mainEdge, Integer.parseInt(edges[i]));\n }\n }\n // check if input is a rooted DAG\n int count = 0;\n for (int v = 0; v < synsetNum; v++)\n {\n if (wordGraph.outdegree(v) == 0) count++;\n if (count > 1) throw new IllegalArgumentException();\n }\n // may be redundant check, but wanna make sure\n if (count != 1) throw new IllegalArgumentException();\n\n DirectedCycle cycle = new DirectedCycle(wordGraph);\n if (cycle.hasCycle()) throw new IllegalArgumentException();\n\n shortestPath = new SAP(wordGraph);\n \n }", "private void traverseSets() {\n\t\tArrayList<PayloadBuilderSet> sets = new ArrayList<PayloadBuilderSet>();\n\t\tArrayList<PayloadBuilder> builders = new ArrayList<PayloadBuilder>();\n\n\t\tfor (PayloadSetConfiguration payloadSetConfiguration : workloadConfiguration.getPayloadSetConfigurations()) {\n\t\t\tConcurrentLinkedQueue<PayloadSetConfiguration> queue = new ConcurrentLinkedQueue<PayloadSetConfiguration>();\n\t\t\tqueue.offer(payloadSetConfiguration);\n\n\t\t\twhile (!queue.isEmpty()) {\n\t\t\t\tPayloadSetConfiguration setConfiguration = queue.poll();\n\n\t\t\t\t// If the configuration has payloads, create a new set and add it.\n\t\t\t\tif (setConfiguration.getNumPayloads() > 0) {\n\t\t\t\t\tPayloadBuilderSet set = new PayloadBuilderSet(setConfiguration, this);\n\n\t\t\t\t\tsets.add(set);\n\n\t\t\t\t\tfor (PayloadBuilder builder : set.getBuilders())\n\t\t\t\t\t\tbuilders.add(builder);\n\t\t\t\t}\n\n\t\t\t\t// Enqueue child sets for traversal\n\t\t\t\tfor (PayloadSetConfiguration childSetConfiguration : setConfiguration\n\t\t\t\t\t\t.getChildPayloadSetConfigurations()) {\n\t\t\t\t\tqueue.offer(childSetConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.sets = sets.toArray(new PayloadBuilderSet[0]);\n\t\tthis.builders = builders.toArray(new PayloadBuilder[0]);\n\n\t}", "private void synsetParse(String line) {\n String[] tokens = line.split(\",\");\n Integer key = Integer.parseInt(tokens[0]);\n ArrayList<String> al = new ArrayList<String>();\n String[] words = tokens[1].split(\" \");\n for (String w : words) {\n al.add(w);\n nounSet.add(w); // build nounSet at the same time\n }\n synsetMap.put(key, al);\n }", "public WordNet(String synsets, String hypernyms) {\n if (synsets == null || hypernyms == null) throw new IllegalArgumentException();\n In synsetsFile = new In(synsets);\n synsetsNumToStr = new HashMap<>();\n synsetsStrToNum = new HashMap<>();\n while (!synsetsFile.isEmpty()) {\n String read = synsetsFile.readLine();\n String[] item = read.split(\",\");\n int id = Integer.parseInt(item[0]);\n String[] str = item[1].split(\" \");\n Queue<String> strStack = new Queue<>();\n for (String ss : str) {\n strStack.enqueue(ss);\n Queue<Integer> si;\n if (!synsetsStrToNum.containsKey(ss)) {\n si = new Queue<>();\n si.enqueue(id);\n synsetsStrToNum.put(ss, si);\n }\n else synsetsStrToNum.get(ss).enqueue(id);\n }\n synsetsNumToStr.put(id, strStack);\n }\n In hypernymsFile = new In(hypernyms);\n Digraph wnDigraph = new Digraph(synsetsNumToStr.size());\n while (!hypernymsFile.isEmpty()) {\n String[] hypID = hypernymsFile.readLine().split(\",\");\n int rootID = Integer.parseInt(hypID[0]);\n for (int i = 1; i < hypID.length; i++)\n wnDigraph.addEdge(rootID, Integer.parseInt(hypID[i]));\n }\n Stack<Integer> root = new Stack<>();\n for (int v = 0; v < wnDigraph.V(); v++)\n if (wnDigraph.outdegree(v) == 0) {\n root.push(v);\n }\n if (root.size() > 1) throw new IllegalArgumentException(\"More than 1 roots in DAG\");\n DirectedCycle dcGraph = new DirectedCycle(wnDigraph);\n if (dcGraph.hasCycle()) throw new IllegalArgumentException(\"Cycles detected in the graph\");\n wnSAP = new SAP(wnDigraph);\n }", "public ListSet() {\n lists = new TernarySearchTree<>();\n }", "public WordNet(String synsetFilename, String hyponymFilename) {\n\n synset = new HashMap<Integer, ArrayList<String>>();\n synsetRev = new HashMap<ArrayList<String>, Integer>();\n hyponym = new ArrayList<ArrayList<Integer>>();\n // hyponym = new HashMap<Integer,ArrayList<Integer>>();\n\n In syn = new In(synsetFilename);\n In hypo = new In(hyponymFilename);\n\n while (!syn.isEmpty()) {\n String line = syn.readLine();\n String[] split1 = line.split(\",\");\n int stempkey = Integer.parseInt(split1[0]);\n String syns = split1[1];\n String[] temps = syns.split(\" \");\n ArrayList<String> stempval = new ArrayList<String>();\n for (String s : temps) {\n stempval.add(s);\n }\n synset.put(stempkey, stempval);\n synsetRev.put(stempval, stempkey);\n }\n\n while (!hypo.isEmpty()) {\n String line = hypo.readLine();\n String[] arrayOfStrings = line.split(\",\");\n ArrayList<Integer> integersAL = new ArrayList<Integer>();\n for (int i = 0; i < arrayOfStrings.length; i++) {\n integersAL.add(Integer.parseInt(arrayOfStrings[i]));\n }\n hyponym.add(integersAL);\n\n // ArrayList<Integer> valuesAL = new ArrayList<Integer>();\n // for (Integer i : integersAL) {\n // valuesAL.add(i);\n // }\n // int comma1 = line.indexOf(\",\");\n // int htempkey = Integer.parseInt(line.substring(0,comma1));\n // String sub = line.substring(comma1 + 1);\n // String[] arrayOfStrings = sub.split(\",\");\n // hyponym.put(htempkey, integersAL);\n }\n }", "public WordNet(String synsets, String hypernyms) {\n if (synsets == null || hypernyms == null) {\n throw new IllegalArgumentException();\n }\n\n In in = new In(synsets);\n int vcnt = 0;\n while (in.hasNextLine()) {\n vcnt++;\n String line = in.readLine();\n String[] splited = line.split(\",\");\n int num = Integer.parseInt(splited[0]);\n String synset = splited[1];\n synMap.put(num, synset);\n String[] nouns = synset.split(\" \");\n for (String noun : nouns) {\n nounMap.computeIfAbsent(noun, k -> new Bag<>()).add(num);\n }\n }\n in.close();\n\n in = new In(hypernyms);\n Digraph digraph = new Digraph(vcnt);\n while (in.hasNextLine()) {\n String line = in.readLine();\n String[] splited = line.split(\",\");\n int child = Integer.parseInt(splited[0]);\n for (int i = 1; i < splited.length; i++) {\n digraph.addEdge(child, Integer.parseInt(splited[i]));\n }\n }\n in.close();\n\n DirectedCycle cycle = new DirectedCycle(digraph);\n if (cycle.hasCycle()) {\n throw new IllegalArgumentException();\n }\n DepthFirstOrder dfo = new DepthFirstOrder(digraph);\n int root = dfo.post().iterator().next();\n if (digraph.outdegree(root) != 0) {\n throw new IllegalArgumentException();\n }\n\n Digraph reversed = digraph.reverse();\n DepthFirstDirectedPaths dfs = new DepthFirstDirectedPaths(reversed, root);\n for (int i = 0; i < reversed.V(); i++) {\n if (!dfs.hasPathTo(i)) {\n throw new IllegalArgumentException();\n }\n }\n\n this.sap = new SAP(digraph);\n }", "public WordNet(String synsets, String hypernyms) {\n\t\tif (synsets == null || hypernyms == null)\n\t\t\tthrow new IllegalArgumentException();\n\t\t\n\t\tidToNouns = new HashMap<Integer, String>();\n\t\tnounToId = new HashMap<String, ArrayList<Integer>>();\n\n\t\tIn in1 = new In(synsets);\n\t\tIn in2 = new In(hypernyms);\n\n\t\twhile (in1.hasNextLine()) {\n\t\t\tString line = in1.readLine();\n\t\t\tString[] parts = line.split(\",\");\n\t\t\tint id = Integer.parseInt(parts[0]);\n\t\t\tidToNouns.put(id, parts[1]);\n\n\t\t\tString[] nouns = parts[1].split(\" \");\n\t\t\tfor (String s : nouns) {\n\t\t\t\tif (nounToId.containsKey(s))\n\t\t\t\t\tnounToId.get(s).add(id);\n\t\t\t\telse {\n\t\t\t\t\tnounToId.put(s, new ArrayList<Integer>());\n\t\t\t\t\tnounToId.get(s).add(id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tgraph = new Digraph(idToNouns.size());\n\n\t\twhile (in2.hasNextLine()) {\n\t\t\tString line = in2.readLine();\n\t\t\tString[] parts = line.split(\",\");\n\t\t\tfor (int i = 1; i < parts.length; i++) {\n\t\t\t\tgraph.addEdge(Integer.parseInt(parts[0]), Integer.parseInt(parts[i]));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!isRootedDAG(graph))\n\t\t\tthrow new IllegalArgumentException(); \n\t\t\n\t\tsap = new SAP(graph);\n\t}", "public WordNet(String synsetFilename, String hyponymFilename) {\n synsets = new TreeMap<Integer, TreeSet<String>>();\n numVertices = 0;\n In syns = new In(synsetFilename);\n while (syns.hasNextLine()) {\n numVertices++;\n String line = syns.readLine();\n String[] split1 = line.split(\",\");\n String[] split2 = split1[1].split(\" \");\n TreeSet<String> hs = new TreeSet<String>();\n for (String s: split2) {\n hs.add(s);\n }\n synsets.put(Integer.parseInt(split1[0]), hs);\n }\n dg = new Digraph(numVertices);\n In hyms = new In(hyponymFilename);\n while (hyms.hasNextLine()) {\n String line = hyms.readLine();\n String[] split = line.split(\"[, ]+\");\n int v = Integer.parseInt(split[0]);\n for (int i = 1; i < split.length; i++) {\n dg.addEdge(v, Integer.parseInt(split[i]));\n }\n }\n }", "public WordNet(String synsets, String hypernyms) throws IOException {\n\n this.synsetsMap = new HashMap<Integer, ArrayList<String>>();\n this.nounsMap = new HashMap<String, ArrayList<Integer>>();\n this.edgesMap = new HashMap<Integer, ArrayList<Integer>>();\n int graphNodes = 0; \n \n // Process synsets.txt\n BufferedReader br = new BufferedReader(new FileReader(synsets));\n String line;\n while ((line = br.readLine()) != null) {\n String[] items = line.split(\",\");\n int synsetID = Integer.parseInt(items[0]);\n String[] nouns = items[1].split(\" \");\n \n for (String noun : nouns) {\n if (!nounsMap.containsKey(noun)) {\n nounsMap.put(noun, new ArrayList<Integer>());\n }\n nounsMap.get(noun).add(synsetID);\n }\n \n if (!synsetsMap.containsKey(synsetID)) {\n synsetsMap.put(synsetID, new ArrayList<String>());\n }\n \n for (String noun : nouns) {\n synsetsMap.get(synsetID).add(noun);\n }\n graphNodes++; \n }\n br.close();\n\n // Process hypernyms.txt\n br = new BufferedReader(new FileReader(hypernyms));\n while ((line = br.readLine()) != null) {\n String[] items = line.split(\",\");\n int hypernymID = Integer.parseInt(items[0]);\n \n if (!edgesMap.containsKey(hypernymID)) {\n edgesMap.put(hypernymID, new ArrayList<Integer>());\n }\n \n for (int i = 1; i < items.length; i++) {\n edgesMap.get(hypernymID).add(Integer.parseInt(items[i]));\n }\n }\n br.close();\n \n // Construct Graph\n this.G = new Digraph(graphNodes);\n for (Map.Entry<Integer, ArrayList<Integer>> entry : edgesMap.entrySet()) {\n for (int edge : entry.getValue()) {\n this.G.addEdge(entry.getKey(), edge);\n }\n }\n \n // Check if there's a cycle\n DirectedCycle cycle = new DirectedCycle(this.G);\n if (cycle.hasCycle()) {\n throw new java.lang.IllegalArgumentException();\n }\n \n // Construct SAP \n this.sap = new SAP(this.G);\n }", "public SetSet(Vector<IntSet> initials){\n\t\tfor(int i=0;i<initials.size();i++){\n\t\t\tcontents.addElement(initials.get(i));\n\t\t}\n\t}", "public Set<String> nouns() {\n HashSet<String> set = new HashSet<String>();\n for (TreeSet<String> hs: synsets.values()) {\n for (String s: hs) {\n set.add(s);\n }\n }\n return set;\n }", "public void createManufacturerSynonyms() {\n\t\t\n\t\tfor (String m : productsByManufacturer.keySet() ) {\n\t\t\t\n\t\t\tString mWords[] = m.split(\"\\\\s+\");\n\t\t\t\n\t\t\tif (mWords.length > 1) {\n\t\t\t\tSet<Product> products = productsByManufacturer.get(m);\n\t\t\t\tfor (String mw: mWords) {\n\t\t\t\t manufacturerSynonyms.put(mw, products);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Set<String> getNSDsSetFromConfig()\n {\n DMLogger.methodStarted();\n\n String jsonTxt = \"\";\n try\n {\n jsonTxt = ssh.runCommand( \"less /etc/ddn/directmon/system-config.json\" );\n }\n catch( Exception e )\n {\n String errorText = \" Error with 'ssh.runCommand( \\\"less /etc/ddn/directmon/system-config.json\\\" );' , e\";\n DMLogger.errorInMethod( errorText );\n throw new RuntimeException( errorText );\n }\n\n JSONObject json = ( JSONObject ) JSONSerializer.toJSON( jsonTxt );\n Set<String> s = json.keySet();\n\n List<String> solutionsWithNSD = new ArrayList<String>();\n\n List<String> solutionTypes = new ArrayList<String>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n Set<String> keySet = json.getJSONObject( value.toString() ).keySet();\n solutionsWithNSD.addAll( keySet );\n solutionTypes.add( value.toString() );\n }\n\n }\n\n List<Collection> nsdAndStorageList = new ArrayList<Collection>();\n for( Object value : s )\n {\n\n if( !value.toString().contains( \":sfa\" ) )\n {\n for( String nsdSolution : solutionsWithNSD )\n {\n nsdAndStorageList.add( json.getJSONObject( value.toString() ).getJSONObject( nsdSolution ).values() );\n }\n }\n }\n\n List<String> nsdList = new ArrayList<String>();\n for( Collection aNsdAndStorageList : nsdAndStorageList )\n {\n int currentNdsCount = aNsdAndStorageList.toArray()[0].toString().split( \"],\" ).length;\n\n for( int j = 0; j < currentNdsCount; j++ )\n {\n // [[\"qa-nsd1\"\n String tmp = aNsdAndStorageList.toArray()[0].toString().split( \"],\" )[j].split( \",\\\"nsd\\\",\" )[0];\n tmp = tmp.substring( tmp.indexOf( \"\\\"\" ) + 1, tmp.length() - 1 );\n nsdList.add( tmp );\n }\n }\n\n Set<String> result = new TreeSet<String>( nsdList );\n\n DMLogger.methodFinished( result );\n return result;\n }", "private void generateFileList() {\r\n \r\n for (FileSet fileSet : cmtFileSetList) {\r\n DirectoryScanner dirScanner = fileSet.getDirectoryScanner();\r\n dirScanner.scan();\r\n String[] filelist = dirScanner.getIncludedFiles();\r\n String lineSeparator = System.getProperty(\"line.separator\");\r\n String fileSeparator = System.getProperty(\"file.separator\");\r\n \r\n BufferedWriter outputFile = null;\r\n try {\r\n outputFile = new BufferedWriter(new FileWriter(input));\r\n for (String file : filelist) {\r\n outputFile.write(dirScanner.getBasedir().toString() + fileSeparator + file\r\n + lineSeparator);\r\n }\r\n } catch (IOException e) {\r\n throw new BuildException(\"Not able to generate file list for 'cmt'. \", e);\r\n } finally {\r\n try {\r\n if (outputFile != null) {\r\n outputFile.close();\r\n }\r\n } catch (IOException ex) {\r\n // ignore exception\r\n ex = null;\r\n }\r\n }\r\n }\r\n }", "private Collection<LR1ItemSet> createItemSets( Grammar grammar)\n {\n Map<LR1ItemSet, LR1ItemSet> itemSets = new LinkedHashMap<LR1ItemSet, LR1ItemSet>();\n \n LR1ItemSet itemSet = new LR1ItemSet();\n itemSet.kernel.add( new LR1Item( grammar.rules().get( 0), Grammar.terminus));\n itemSet.closure( grammar);\n itemSets.put( itemSet, itemSet);\n \n List<LR1ItemSet> stack = new ArrayList<LR1ItemSet>();\n stack.add( itemSet);\n while( stack.size() > 0)\n {\n itemSet = stack.remove( 0);\n\n //\n // Compute the kernel of the successors of the LR1ItemSet, but only incur the cost\n // of closure if the LR1ItemSet has not already been created. LR1ItemSets are unique\n // by kernel.\n //\n itemSet.successors( grammar);\n for( LR1ItemSet successor: itemSet.successors.values())\n {\n LR1ItemSet existing = itemSets.get( successor);\n if ( existing != null)\n {\n LR1Item firstItem = existing.kernel.iterator().next();\n String leadSymbol = firstItem.rule.rhs().get( firstItem.dot - 1);\n itemSet.successors.put( leadSymbol, existing);\n }\n else\n {\n successor.closure( grammar);\n itemSets.put( successor, successor);\n stack.add( successor);\n }\n }\n }\n \n return itemSets.values();\n }", "private List<String> build() {\n List<String> ags = new ArrayList<>();\n ags.add(\"European Union Chromosome 3 Arabidopsis Sequencing Consortium\");\n ags.add(\"Institute for Genomic Research\");\n ags.add(\"Kazusa DNA Research Institute\");\n return ags;\n }", "public WordNet(String synsetFilename, String hyponymFilename) {\n In synsets = new In(synsetFilename);\n In hyponyms = new In(hyponymFilename);\n int count = 0;\n while (synsets.hasNextLine()) {\n String line = synsets.readLine();\n String[] linesplit = line.split(\",\");\n String[] wordsplit = linesplit[1].split(\" \");\n Set<String> synset = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n for (int i = 0; i < wordsplit.length; i += 1) {\n synset.add(wordsplit[i]);\n if (wnetsi.containsKey(wordsplit[i])) {\n wordIndexes = wnetsi.get(wordsplit[i]);\n wordIndexes.add(Integer.parseInt(linesplit[0]));\n wnetsi.put(wordsplit[i], wordIndexes);\n } else {\n wordIndexes.add(Integer.parseInt(linesplit[0]));\n wnetsi.put(wordsplit[i], wordIndexes);\n }\n }\n wnetis.put(Integer.parseInt(linesplit[0]), synset);\n count += 1;\n }\n \n \n \n String[] allVerts = hyponyms.readAllLines();\n g = new Digraph(count);\n for (int i = 0; i < allVerts.length; i += 1) {\n String[] linesplit = allVerts[i].split(\",\");\n for (int j = 0; j < linesplit.length; j += 1) {\n g.addEdge(Integer.parseInt(linesplit[0]), Integer.parseInt(linesplit[j]));\n }\n }\n \n }", "private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}", "private boolean SetRootOfSynset() {\t\t\r\n\t\tthis.roots = new ArrayList<ISynsetID>();\r\n\t\tISynset\tsynset = null;\r\n\t\tIterator<ISynset> iterator = null;\r\n\t\tList<ISynsetID> hypernyms =\tnull;\r\n\t\tList<ISynsetID>\thypernym_instances = null;\r\n\t\titerator = dict.getSynsetIterator(POS.NOUN);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\titerator = this.dict.getSynsetIterator(POS.VERB);\r\n\t\twhile(iterator.hasNext())\r\n\t\t{\r\n\t\t\tsynset = iterator.next();\r\n \t\t\thypernyms =\tsynset.getRelatedSynsets(Pointer.HYPERNYM);\t\t\t\t\t// !!! if any of these point back (up) to synset then we have an inf. loop !!!\r\n \t\t\thypernym_instances = synset.getRelatedSynsets(Pointer.HYPERNYM_INSTANCE);\r\n \t\t\tif(hypernyms.isEmpty() && hypernym_instances.isEmpty())\r\n \t\t\t{\r\n\t\t\t\tthis.roots.add(synset.getID());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ( this.roots.size() > 0 );\r\n\t}", "public StationPartition build() {\n for (int i = 0; i < stationSet.length; ++i) {\n stationSet[i] = representative(i);\n }\n\n return new StationPartition(stationSet);\n }", "Neuron setSynapses(List<Neuron> synapses);", "public RelevanceSet() {\r\n \tinitComponents();\r\n //updateData();\r\n }", "public WordNet(String synsets, String hypernyms)\n {\n if (synsets==null || hypernyms==null) throw new IllegalArgumentException();\n h=new TreeMap<>();\n In i1=new In(synsets);\n int i=0;\n h2=new ArrayList<>();\n while(!i1.isEmpty())\n {\n String[] temp=i1.readLine().split(\",\");\n String[] temp2=temp[1].trim().split(\"\\\\s+\");\n String t=\"\";\n for (String s:temp2)\n {\n if (h.containsKey(s))\n {\n h.get(s).add(i);\n }\n else\n {\n ArrayList<Integer> a=new ArrayList<>();\n a.add(i);\n h.put(s,a);\n }\n\n t=t+s+\" \";\n }\n h2.add(t);\n i++;\n }\n\n g=new Digraph(i);\n In i2=new In(hypernyms);\n while (!i2.isEmpty())\n {\n String[] temp=i2.readLine().split(\",\");\n int j=Integer.parseInt(temp[0].trim());\n for (int k=1;k<temp.length;k++)\n g.addEdge(j, Integer.parseInt(temp[k].trim()));\n }\n\n sap=new SAP(g);\n\n //All the below lines check for Illegal Arguments\n DirectedCycle obj=new DirectedCycle(g);\n boolean b=obj.hasCycle();\n if (b) throw new IllegalArgumentException();\n\n int numberOfRoots=0;\n for (int j=0;j<g.V() && numberOfRoots < 2;j++)\n if (g.outdegree(j)==0) numberOfRoots++;\n\n //System.out.println(\"The number of roots is \"+numberOfRoots);\n if (numberOfRoots!=1) throw new IllegalArgumentException();\n }", "public WordNet(String synsets, String hypernyms) {\n boolean RootedDAG = false;\n String[] sets = synsets.split(\"\\n\");\n SynSets= new String[sets.length][2];\n Wordnet = new Digraph(sets.length);\n for (int i =0; i< sets.length; i++){\n String[] Delimiter = sets[i].split(\",\");\n SynSets[i][0] = Delimiter[1];\n SynSets[i][1] = Delimiter[2];\n }\n sets = hypernyms.split(\"\\n\");\n for(int i = 0; i < sets.length; i++){\n String[] Delimiter = sets[i].split(\",\");\n int Above = Integer.parseInt(Delimiter[0]);\n if(Delimiter.length==1) {\n if(!RootedDAG) RootedDAG = true;\n else throw new IllegalArgumentException();\n }\n for(int j = 1; j< Delimiter.length; j++){\n Wordnet.addEdge(Above, Integer.parseInt(Delimiter[j]));\n }\n }\n //if(!RootedDAG) throw new IllegalArgumentException();\n }", "public Iterable<String> nouns(){\n List<String> ReturnType = new ArrayList<String>();\n for(int i =0; i< SynSets.length; i++)\n ReturnType.add(SynSets[i][0]);\n return ReturnType;\n }", "private void createNewItemsetsFromPreviousOnes() {\n // by construction, all existing itemsets have the same size\n int currentSizeOfItemsets = itemsets.get(0).length;\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Creating itemsets of size {0} based on {1} itemsets of size {2}\", new Object[]{currentSizeOfItemsets + 1, itemsets.size(), currentSizeOfItemsets});\n\n HashMap<String, String[]> tempCandidates = new HashMap<>(); //temporary candidates\n\n // compare each pair of itemsets of size n-1\n for (int i = 0; i < itemsets.size(); i++) {\n for (int j = i + 1; j < itemsets.size(); j++) {\n String[] X = itemsets.get(i);\n String[] Y = itemsets.get(j);\n\n assert (X.length == Y.length);\n\n //make a string of the first n-2 tokens of the strings\n String[] newCand = new String[currentSizeOfItemsets + 1];\n for (int s = 0; s < newCand.length - 1; s++) {\n newCand[s] = X[s];\n }\n\n int ndifferent = 0;\n // then we find the missing value\n for (int s1 = 0; s1 < Y.length; s1++) {\n boolean found = false;\n // is Y[s1] in X?\n for (int s2 = 0; s2 < X.length; s2++) {\n if (X[s2].equals(Y[s1])) {\n found = true;\n break;\n }\n }\n if (!found) { // Y[s1] is not in X\n ndifferent++;\n // we put the missing value at the end of newCand\n newCand[newCand.length - 1] = Y[s1];\n }\n\n }\n\n // we have to find at least 1 different, otherwise it means that we have two times the same set in the existing candidates\n assert (ndifferent > 0);\n\n /*if (ndifferent==1) {\n \tArrays.sort(newCand);*/\n tempCandidates.put(Arrays.toString(newCand), newCand);\n //}\n }\n }\n\n //set the new itemsets\n itemsets = new ArrayList<>(tempCandidates.values());\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Created {0} unique itemsets of size {1}\", new Object[]{itemsets.size(), currentSizeOfItemsets + 1});\n\n }", "public void build() throws ClusException, IOException {\n m_List = getRun().getDataSet(ClusRun.TRAINSET).getData(); // m_Data;\n }", "public ArrayList<ISynsetID> getSynsetRoots() {\r\n\t\treturn this.roots;\r\n\t}", "Map<String, OperationalSets> getSets();", "public SectionSets (Collection<Collection<Section>> sets)\r\n {\r\n this.sets = sets;\r\n }", "List<Neuron> getSynapses();", "public void genLists() {\n\t}", "@SuppressWarnings(\"serial\")\r\n\tprivate void sVbuild() {\n\t\tArrayList<String> ckeys = new ArrayList<String>();\r\n\t\tMap<String, ArrayList<String>> map = new TreeMap<>(cliques);\r\n\t\tckeys.addAll(map.keySet());\r\n\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\tfor (int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif (map.get(ckeys.get(j)).contains(keys.get(i))) {\r\n\t\t\t\t\tif (sharedV.containsKey(keys.get(i))) {\r\n\t\t\t\t\t\tsharedV.get(keys.get(i)).add(ckeys.get(j));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString s = ckeys.get(j);\r\n\t\t\t\t\t\tsharedV.put(keys.get(i), new ArrayList<String>() {\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tadd(s);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static List<List<String>> getSubsets(List<String> list){\r\n List<List<String>> collections = new LinkedList<List<String>>();\r\n if(list.isEmpty()){\r\n return collections;\r\n } else {\r\n String first = list.get(0);\r\n List<String> firstList = new LinkedList<String>();\r\n firstList.add(first);\r\n for(List<String> sublist: getSubsets(list.subList(1, list.size()))) {\r\n List<String> sublistWithFirst = new LinkedList<String>();\r\n sublistWithFirst.add(first);\r\n sublistWithFirst.addAll(sublist);\r\n collections.add(sublist);\r\n collections.add(sublistWithFirst);\r\n }\r\n collections.add(firstList);\r\n }\r\n return collections;\r\n }", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "private void initialize() {\n\n\t\tint totalSets, iSet;\n\t\tInformationSet infoSet = null;\n\t\tTreeNode treeNode = null;\n\n\t\tArrayList informationSetList = efg.getInformationSets(iPlayer);\n\n\t\ttotalSets = informationSetList.size();\n\n\t\tmovesLists = new ArrayList[totalSets];\n\t\tprobsLists = new ArrayList[totalSets];\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tmovesLists[iSet] = new ArrayList();\n\t\t\tprobsLists[iSet] = new ArrayList();\n\t\t}\n\n\t\tfor (iSet = 0; iSet < totalSets; iSet++) {\n\t\t\tinfoSet = (InformationSet) informationSetList.get(iSet);\n\t\t\ttreeNode = infoSet.getTreeNode(0);\n\t\t\tmovesLists[iSet] = treeNode.getMovesList();\n\t\t}\n\t}", "public SetsList listSets(ResumptionToken resumptionToken) throws OAIException {\n try {\n \tString query = builder.buildListSetsQuery(resumptionToken);\n \tDocument document = reader.read(query);\n return new SetsList(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n } \n }", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "public SecurityMetadataUniversalSet build() {\n return new SecurityMetadataUniversalSet(this);\n }", "public SemanticVersionSet<V> build() {\n Collections.sort(instance.versions);\n return instance;\n }", "abstract CharArraySet build();", "public Iterable<String> nouns() {\n Stack<String> iter = new Stack<>();\n for (String ss : synsetsStrToNum.keySet())\n iter.push(ss);\n return iter;\n }", "private static Map<String, List<List<String>>>[] splitYagoDataIntoDocumentSets(File yagoInputFile) {\r\n\t\tMap<String, List<List<String>>> trainData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testaData = new HashMap<String, List<List<String>>>();\r\n\t\tMap<String, List<List<String>>> testbData = new HashMap<String, List<List<String>>>();\r\n\t\t\r\n\t\tBufferedReader reader = FileUtil.getFileReader(yagoInputFile.getAbsolutePath());\r\n\t\ttry {\r\n\t\t\tString documentName = null;\r\n\t\t\tString documentSet = null;\r\n\t\t\tList<List<String>> documentLines = null;\r\n\t\t\tList<String> sentenceLines = null;\r\n\t\t\tString line = null;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\tif (line.startsWith(\"-DOCSTART-\")) {\r\n\t\t\t\t\tif (documentSet != null) {\r\n\t\t\t\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\t\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString docId = line.substring(\"-DOCSTART- (\".length(), line.length() - 1);\r\n\t\t\t\t\tString[] docIdParts = docId.split(\" \");\r\n\t\t\t\t\tdocumentName = docIdParts[0] + \"_\" + docIdParts[1];\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (docIdParts[0].endsWith(\"testa\"))\r\n\t\t\t\t\t\tdocumentSet = \"testa\";\r\n\t\t\t\t\telse if (docIdParts[0].endsWith(\"testb\"))\r\n\t\t\t\t\t\tdocumentSet = \"testb\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdocumentSet = \"train\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tdocumentLines = new ArrayList<List<String>>();\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else if (line.trim().length() == 0) {\r\n\t\t\t\t\tdocumentLines.add(sentenceLines);\r\n\t\t\t\t\tsentenceLines = new ArrayList<String>();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsentenceLines.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (documentSet.equals(\"train\"))\r\n\t\t\t\ttrainData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testa\"))\r\n\t\t\t\ttestaData.put(documentName, documentLines);\r\n\t\t\telse if (documentSet.equals(\"testb\"))\r\n\t\t\t\ttestbData.put(documentName, documentLines);\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tMap<String, List<List<String>>>[] returnData = new HashMap[3];\r\n\t\treturnData[0] = trainData;\r\n\t\treturnData[1] = testaData;\r\n\t\treturnData[2] = testbData;\r\n\t\t\r\n\t\treturn returnData;\r\n\t}", "public SyncedTreeSet() {\n _treeSet = new TreeSet<T>();\n }", "public Iterable<String> nouns() {\n return synsetList.keySet();\n }", "public WordNet(String synsetFilename, String hyponymFilename) {\n In synsetScanner = new In(synsetFilename);\n\n synsetNouns = new HashMap<Integer, ArrayList<String>>();\n nouns = new HashSet<String>();\n\n while (synsetScanner.hasNextLine()) {\n ArrayList<String> synsetArrayList = new ArrayList<String>();\n String row = synsetScanner.readLine();\n String[] tokens = row.split(\",\");\n String[] synset = tokens[1].split(\" \");\n for (int i = 0; i < synset.length; i++) {\n synsetArrayList.add(synset[i]);\n nouns.add(synset[i]);\n }\n synsetNouns.put(Integer.parseInt(tokens[0]), synsetArrayList);\n }\n\n In hyponymScanner = new In(hyponymFilename);\n hyponym = new Digraph(synsetNouns.size());\n while (hyponymScanner.hasNextLine()) {\n String row = hyponymScanner.readLine();\n String[] tokens = row.split(\",\");\n for (int i = 1; i < tokens.length; i++) {\n hyponym.addEdge(Integer.parseInt(tokens[0]), Integer.parseInt(tokens[i]));\n }\n }\n }", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "public DynamicModelPart buildUsingSeeds() {\n return this.rotateModelPart(this.rotation).addCuboidsUsingSeeds();\n }", "public static WordSet generateSet(int tipo)\n\t{\n\t if (tipo == 1)\n\t\t return new SimpleSet();\n\telse\n {\n if (tipo == 2 )\n {\n return new RedBlackTreeSet();\n }\n if (tipo == 3)\n {\n return new SplayTreeSet(); \n }\n if (tipo == 4)\n {\n return new HashMapSet ();\n }\n \n if (tipo ==5)\n {\n return new TreeMapSet();\n }\n \n }\t\t\n return null;\t\t\n\t}", "public void buildAllPossibleTrain() {\n while (depotOnThisLine.checkOnPossibilityCreatingTrain()) {\n try {\n trains.add(Factory.buildNewTrain(depotOnThisLine));\n } catch (DepotNotExistException e) {\n e.printStackTrace();\n }\n }\n }", "public WordNet(String synsetFilename, String hyponymFilename) {\n\n File hyponymPath = new File(hyponymFilename);\n Scanner s;\n try {\n s = new Scanner(hyponymPath);\n while (s.hasNextLine()) {\n String currLine = s.nextLine();\n hyponymParse(currLine);\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Could not find \" + hyponymFilename);\n } \n File synsetPath = new File(synsetFilename);\n try {\n s = new Scanner(synsetPath);\n while (s.hasNextLine()) {\n String currLine = s.nextLine();\n synsetParse(currLine);\n numberOfSynsets += 1;\n }\n } catch (FileNotFoundException ex) {\n System.out.println(\"Could not find \" + synsetFilename);\n } \n g = new Digraph(numberOfSynsets);\n Set<Integer> keys = hyponymMap.keySet();\n for (Integer k : keys) {\n ArrayList<Integer> al = hyponymMap.get(k);\n for (Integer i : al) {\n g.addEdge(k, i);\n }\n }\n }", "GeneralizationSet createGeneralizationSet();", "private Set<Integer> getSynsetKeys(String word) {\n HashSet<Integer> kset = new HashSet<Integer>();\n\n for (ArrayList<String> o : synsetRev.keySet()) {\n for (String p : o) {\n if (p.equals(word)) {\n kset.add(synsetRev.get(o));\n }\n }\n }\n return kset;\n }", "public List<String> build()\n {\n return filters;\n }", "public SetsList listSets() throws OAIException {\n try {\n \tString query = builder.buildListSetsQuery();\n \tDocument document = reader.read(query);\n return new SetsList(document);\n } catch (ErrorResponseException e) {\n \tthrow e;\n } catch (Exception e) {\n throw new OAIException(e);\n } \n }", "private List<Set<String>> getSubSets(Set<String> set) {\n\t\tString[] setArray = set.toArray(new String[0]);\n\t\tList<Set<String>> result = new ArrayList<Set<String>>();\n\t\tfor(int i = 0; i < setArray.length; i++){\n\t\t\tSet<String> subSet = new HashSet<String>();\n\t\t\tfor(int j = 0; j < setArray.length; j++){\n\t\t\t\tif(j != i) subSet.add(setArray[j]);\n\t\t\t}\n\t\t\tresult.add(subSet);\n\t\t}\n\t\treturn result;\n\t}", "public void setSynonyms(java.util.Collection<String> synonyms) {\n if (synonyms == null) {\n this.synonyms = null;\n return;\n }\n\n this.synonyms = new java.util.ArrayList<String>(synonyms);\n }", "public void buildSignatureModel(LinkedList<SignatureContainer> sigs)\r\n {\r\n \r\n for (SignatureContainer s:sigs) {\r\n \r\n }\r\n \r\n }", "public List<String> go() throws Exception {\n //start timer\n// long start = System.currentTimeMillis();\n\n // first we generate the candidates of size 1\n createItemsetsOfSize1();\n int itemsetNumber = 1; //the current itemset being looked at\n// int nbFrequentSets = 0;\n\n // the variable numberOfRound represent the max length of the association rules. \n // e.g 3 stay for max 3 words for each rules\n //int numberOfRound = 3;\n int numberOfRound = 3;\n\n //for(int i=0;i<numberOfRound;i++){\n int i = 0;\n while (itemsets.size() > 0 && i < numberOfRound) {\n calculateFrequentItemsets();\n\n if (!itemsets.isEmpty() && i + 1 < numberOfRound) {\n// nbFrequentSets += itemsets.size();\n\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Found {0} frequent itemsets of size {1} (with support {2}%)\", new Object[]{itemsets.size(), itemsetNumber, minSup * 100});;\n createNewItemsetsFromPreviousOnes();\n }\n i++;\n itemsetNumber++;\n }\n\n return listOfItemsets;\n }", "private void appendSetsToStringBuilder(StringBuilder stringBuilder) {\n\t\tfor (PayloadBuilderSet set : sets) {\n\t\t\tstringBuilder.append(\"\\n\");\n\t\t\tset.appendToStringBuilder(stringBuilder);\n\t\t}\n\t}", "public Iterable<String> nouns()\n {\n return synsetHash.keySet();\n }", "public Builder(int stationCount) {\n Preconditions.checkArgument(stationCount >= 0);\n this.stationSet = new int[stationCount];\n for (int i = 0; i < stationCount; ++i) {\n stationSet[i] = i;\n }\n\n }", "public List<String> getSynonyms() {\n return synonyms;\n }", "private void makeArrays()\n\t{\n\t\tfor (String key : sub.keySet())\n\t\t\tsub.put(key, ((List<String>) sub.get(key)).toArray(s0));\n\t\tfor (String key : attrs.keySet())\n\t\t\tattrs.put(key, ((List<String>) attrs.get(key)).toArray(s0));\n\t\tfor (String key : defs.keySet())\n\t\t\tdefs.put(key, ((List<String>) defs.get(key)).toArray(s0));\n\t\tfor (String key : smodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) smodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tsmodes.put(key, array);\n\t\t}\n\t\tfor (String key : amodes.keySet())\n\t\t{\n\t\t\tList<Integer> list = (List<Integer>) amodes.get(key);\n\t\t\tint[] array = new int[list.size()];\n\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\tarray[i] = list.get(i);\n\t\t\tamodes.put(key, array);\n\t\t}\n\t}", "public List<ACL> build() {\n List<ACL> result = new ArrayList<>();\n if (world != null) {\n result.add(world);\n }\n if (auth != null) {\n result.add(auth);\n }\n for (Map<String, ACL> m : asList(digests, hosts, ips)) {\n if (m != null) {\n result.addAll(m.values());\n }\n }\n return result;\n }", "private void findConceptsForInstances() {\n\t\tSet<String> temp = new HashSet<String>();\n\n\t\tfor (String s : taskInput)\n\t\t\ttemp.add(taxonomyMap.get(s).parents.get(0).value);\n\t\ttaskInput.clear();\n\t\ttaskInput.addAll(temp);\n\n\t\ttemp.clear();\n\t\tfor (String s : taskOutput)\n\t\t\ttemp.add(taxonomyMap.get(s).parents.get(0).value);\n\t\ttaskOutput.clear();\n\t\ttaskOutput.addAll(temp);\n\n\t\tfor (Node s : serviceMap.values()) {\n\t\t\ttemp.clear();\n\t\t\tSet<String> inputs = s.getInputs();\n\t\t\tfor (String i : inputs)\n\t\t\t\ttemp.add(taxonomyMap.get(i).parents.get(0).value);\n\t\t\tinputs.clear();\n\t\t\tinputs.addAll(temp);\n\n\t\t\ttemp.clear();\n\t\t\tSet<String> outputs = s.getOutputs();\n\t\t\tfor (String o : outputs)\n\t\t\t\ttemp.add(taxonomyMap.get(o).parents.get(0).value);\n\t\t\toutputs.clear();\n\t\t\toutputs.addAll(temp);\n\t\t}\n\t}", "public Set<String> hyponyms(String word) {\n HashSet<String> allhyponyms = new HashSet<String>();\n int maxV = synset.size();\n // int maxV = 0;\n // for (Integer i : synset.keySet()) {\n // if (maxV < i) {\n // maxV = i;\n // }\n // }\n // maxV += 1;\n Digraph digraph = new Digraph(maxV);\n\n // ArrayList<Integer> hypoKeys = new ArrayList<Integer>();\n // for (int i = 0; i < hyponym.size(); i++) {\n // hypoKeys.add(hyponym.get(0).get(i));\n // }\n \n for (ArrayList<Integer> a : hyponym) {\n int key = a.get(0);\n for (int j = 1; j < a.size(); j++) {\n digraph.addEdge(key, a.get(j));\n }\n }\n\n // get synonyms (in same synset), ex. given \"jump\", will get \"parachuting\" as well as \"leap\"\n ArrayList<String> strArray = new ArrayList<String>();\n for (Integer k : getSynsetKeys(word)) {\n strArray.addAll(synset.get(k));\n }\n for (String str : strArray) {\n allhyponyms.add(str);\n }\n\n // for each int from set<int> with all synset IDS\n for (Integer s : GraphHelper.descendants(digraph, getSynsetKeys(word))) {\n for (String t : synset.get(s)) {\n allhyponyms.add(t);\n }\n }\n return allhyponyms;\n }", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}", "private Set func_177575_g() {\n/* 450 */ HashSet var1 = Sets.newHashSet();\n/* 451 */ ArrayList<?> var2 = Lists.newArrayList(this.variants.keySet());\n/* 452 */ Collections.sort(var2, new Comparator()\n/* */ {\n/* */ private static final String __OBFID = \"CL_00002390\";\n/* */ \n/* */ public int func_177505_a(ModelResourceLocation p_177505_1_, ModelResourceLocation p_177505_2_) {\n/* 457 */ return p_177505_1_.toString().compareTo(p_177505_2_.toString());\n/* */ }\n/* */ \n/* */ public int compare(Object p_compare_1_, Object p_compare_2_) {\n/* 461 */ return func_177505_a((ModelResourceLocation)p_compare_1_, (ModelResourceLocation)p_compare_2_);\n/* */ }\n/* */ });\n/* 464 */ Iterator<?> var3 = var2.iterator();\n/* */ \n/* 466 */ while (var3.hasNext()) {\n/* */ \n/* 468 */ ModelResourceLocation var4 = (ModelResourceLocation)var3.next();\n/* 469 */ ModelBlockDefinition.Variants var5 = (ModelBlockDefinition.Variants)this.variants.get(var4);\n/* 470 */ Iterator<ModelBlockDefinition.Variant> var6 = var5.getVariants().iterator();\n/* */ \n/* 472 */ while (var6.hasNext()) {\n/* */ \n/* 474 */ ModelBlockDefinition.Variant var7 = var6.next();\n/* 475 */ ModelBlock var8 = (ModelBlock)this.models.get(var7.getModelLocation());\n/* */ \n/* 477 */ if (var8 == null) {\n/* */ \n/* 479 */ LOGGER.warn(\"Missing model for: \" + var4);\n/* */ \n/* */ continue;\n/* */ } \n/* 483 */ var1.addAll(func_177585_a(var8));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 488 */ var1.addAll(field_177602_b);\n/* 489 */ return var1;\n/* */ }", "private NamedStationTable setStations() {\n NamedStationTable stationTable;\n if (stationTableName == null) {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n \"NEXRAD Sites\");\n } else {\n stationTable =\n getControlContext().getResourceManager().findLocations(\n stationTableName);\n }\n\n if (stationTable == null) {\n stationList = new ArrayList();\n } else {\n stationList = new ArrayList(\n Misc.sort(new ArrayList(stationTable.values())));\n }\n if (stationCbx != null) {\n setStations(stationList, stationCbx);\n stationCbx.setSelectedIndex(stationIdx);\n }\n return stationTable;\n }", "public static void main(String[] args) {\n\t\t\n\t\t\tint[] nums={1,2,3};\n\t\t\n\t\t\tList <List<Integer>>mainList = new ArrayList<List<Integer>>();\n\t\t \n\t List<Integer> list = new ArrayList<Integer>();\n\t \n\t \n\t HashSet<List<Integer>> set = new HashSet<List<Integer>>();\n\t \n\t \n\t for(int j=0;j<nums.length;j++)\n\t list.add(nums[j]);\n\t \n\t int k=0;\n\t mainList.add(list);\n\t set.add(list);\n\t subSetList(mainList,list,set,k);\n\t\t System.out.println(\"mainList\"+ mainList);\n\t\t System.out.println(\"set\"+ set);\n\n\t}", "private ArrayList<ModelSymptom> getAllSymptoms(){\n ArrayList<ModelSymptom> arrayListToReturn = new ArrayList<>();\n arrayListToReturn.addAll(databaseHelper.getAllSymptoms());\n return arrayListToReturn;\n }", "private ArrayList<Command> fillRoot() {\n var rootList = new ArrayList<Command>();\n while(!commands.isEmpty()) {\n rootList.add(getCommandTree());\n }\n return rootList;\n }", "synchronized public DREM_DataSet buildset(String szorganismsourceval,\n\t\t\tString szxrefsourceval, String szxrefval, String szexp1val,\n\t\t\tString szgoval, String szgocategoryval, int nmaxmissing,\n\t\t\tdouble dexpressedval, double dmincorrelation, int nsamplespval,\n\t\t\tint nmingo, int nmingolevel, String szextraval, boolean balltime,\n\t\t\tVector repeatnames, boolean btakelog, boolean bspotincluded,\n\t\t\tboolean badd0, String szcategoryIDval, String szevidenceval,\n\t\t\tString sztaxonval, boolean bpontoval, boolean bcontoval,\n\t\t\tboolean bfontoval, boolean brandomgoval, boolean bmaxminval)\n\t\t\tthrows Exception {\n\t\tDREM_DataSet theDataSetsMerged = null;\n\t\tif (balltime) {\n\t\t\tDREM_DataSet theDataSet1 = new DREM_DataSet(szexp1val, nmaxmissing,\n\t\t\t\t\tdexpressedval, dmincorrelation, btakelog, bspotincluded,\n\t\t\t\t\tfalse, badd0, bmaxminval, balltime);\n\n\t\t\tif (theDataSet1.numcols <= 1) {\n\t\t\t\ttheDataSet1 = new DREM_DataSet(theDataSet1.filterDuplicates(),\n\t\t\t\t\t\tnew DREM_GoAnnotations(szorganismsourceval,\n\t\t\t\t\t\t\t\tszxrefsourceval, szxrefval, szgoval,\n\t\t\t\t\t\t\t\tszgocategoryval, theDataSet1.genenames,\n\t\t\t\t\t\t\t\ttheDataSet1.probenames, nsamplespval, nmingo,\n\t\t\t\t\t\t\t\tnmingolevel, szextraval, szcategoryIDval,\n\t\t\t\t\t\t\t\tbspotincluded, szevidenceval, sztaxonval,\n\t\t\t\t\t\t\t\tbpontoval, bcontoval, bfontoval, brandomgoval));\n\n\t\t\t\tDREM_DataSet theDataSet1fm;\n\t\t\t\tif (theDataSet1.numcols == 1) {\n\t\t\t\t\ttheDataSet1fm = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1.filterMissing1point(), theDataSet1.tga);\n\t\t\t\t\ttheDataSet1fm = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1fm.filtergenesthreshold1point(),\n\t\t\t\t\t\t\ttheDataSet1fm.tga);\n\t\t\t\t} else {\n\t\t\t\t\ttheDataSet1fm = theDataSet1;\n\t\t\t\t}\n\t\t\t\treturn theDataSet1fm;\n\t\t\t} else {\n\t\t\t\tString[] origgenes = theDataSet1.genenames;\n\t\t\t\ttheDataSet1 = new DREM_DataSet(theDataSet1.logratio2(),\n\t\t\t\t\t\ttheDataSet1.tga);\n\t\t\t\ttheDataSet1 = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSet1.averageAndFilterDuplicates(),\n\t\t\t\t\t\ttheDataSet1.tga);\n\n\t\t\t\t// genevalues in log ratio before averaging stored\n\t\t\t\t// need for each gene duplicated\n\t\t\t\t// a mutlidimensional array of time series for each occurence\n\n\t\t\t\tint numrepeats = repeatnames.size();\n\n\t\t\t\tif (numrepeats > 0) {\n\t\t\t\t\tDREM_DataSet[] repeatSets = new DREM_DataSet[numrepeats];\n\t\t\t\t\tfor (int nset = 0; nset < numrepeats; nset++) {\n\t\t\t\t\t\tString szfile = (String) repeatnames.get(nset);\n\n\t\t\t\t\t\tDREM_DataSet theOtherSet = new DREM_DataSet(szfile,\n\t\t\t\t\t\t\t\tnmaxmissing, dexpressedval, dmincorrelation,\n\t\t\t\t\t\t\t\tbtakelog, bspotincluded, true, badd0,\n\t\t\t\t\t\t\t\tbmaxminval, balltime);\n\t\t\t\t\t\terrorcheck(origgenes, theOtherSet.genenames,\n\t\t\t\t\t\t\t\ttheDataSet1.numcols, theOtherSet.numcols);\n\t\t\t\t\t\t// compute log ratio of each time series first then\n\t\t\t\t\t\t// merge\n\t\t\t\t\t\t// normalize the data\n\t\t\t\t\t\ttheOtherSet = new DREM_DataSet(theOtherSet.logratio2(),\n\t\t\t\t\t\t\t\ttheOtherSet.tga);\n\t\t\t\t\t\ttheOtherSet = new DREM_DataSet(\n\t\t\t\t\t\t\t\ttheOtherSet.averageAndFilterDuplicates(),\n\t\t\t\t\t\t\t\ttheOtherSet.tga);\n\t\t\t\t\t\t// gene values in log ratio before averaging stored\n\n\t\t\t\t\t\trepeatSets[nset] = theOtherSet;\n\t\t\t\t\t}\n\t\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1.mergeDataSets(repeatSets),\n\t\t\t\t\t\t\ttheDataSet1.tga);\n\t\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSetsMerged.filterdistprofiles(theDataSet1,\n\t\t\t\t\t\t\t\t\trepeatSets), theDataSetsMerged.tga);\n\t\t\t\t} else {\n\t\t\t\t\ttheDataSetsMerged = theDataSet1;\n\t\t\t\t}\n\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.filterMissing(),\n\t\t\t\t\t\ttheDataSetsMerged.tga);\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.filtergenesthreshold2(),\n\t\t\t\t\t\ttheDataSetsMerged.tga);\n\n\t\t\t\ttheDataSetsMerged.tga = new DREM_GoAnnotations(\n\t\t\t\t\t\tszorganismsourceval, szxrefsourceval, szxrefval,\n\t\t\t\t\t\tszgoval, szgocategoryval, theDataSet1.genenames,\n\t\t\t\t\t\ttheDataSet1.probenames, nsamplespval, nmingo,\n\t\t\t\t\t\tnmingolevel, szextraval, szcategoryIDval,\n\t\t\t\t\t\tbspotincluded, szevidenceval, sztaxonval, bpontoval,\n\t\t\t\t\t\tbcontoval, bfontoval, brandomgoval);\n\n\t\t\t\ttheDataSetsMerged.addExtraToFilter(theDataSetsMerged.tga);\n\t\t\t\treturn theDataSetsMerged;\n\t\t\t}\n\t\t} else {\n\t\t\tDREM_DataSet theDataSet1 = new DREM_DataSet(szexp1val, nmaxmissing,\n\t\t\t\t\tdexpressedval, dmincorrelation, btakelog, bspotincluded,\n\t\t\t\t\tfalse, badd0, bmaxminval, balltime);\n\t\t\tif (theDataSet1.numcols <= 1) {\n\t\t\t\ttheDataSet1 = new DREM_DataSet(theDataSet1.filterDuplicates(),\n\t\t\t\t\t\tnew DREM_GoAnnotations(szorganismsourceval,\n\t\t\t\t\t\t\t\tszxrefsourceval, szxrefval, szgoval,\n\t\t\t\t\t\t\t\tszgocategoryval, theDataSet1.genenames,\n\t\t\t\t\t\t\t\ttheDataSet1.probenames, nsamplespval, nmingo,\n\t\t\t\t\t\t\t\tnmingolevel, szextraval, szcategoryIDval,\n\t\t\t\t\t\t\t\tbspotincluded, szevidenceval, sztaxonval,\n\t\t\t\t\t\t\t\tbpontoval, bcontoval, bfontoval, brandomgoval));\n\t\t\t\tDREM_DataSet theDataSet1fm;\n\t\t\t\tif (theDataSet1.numcols == 1) {\n\t\t\t\t\ttheDataSet1fm = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1.filterMissing1point(), theDataSet1.tga);\n\t\t\t\t\ttheDataSet1fm = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1fm.filtergenesthreshold1point(),\n\t\t\t\t\t\t\ttheDataSet1fm.tga);\n\t\t\t\t} else {\n\t\t\t\t\ttheDataSet1fm = theDataSet1;\n\t\t\t\t}\n\t\t\t\treturn theDataSet1fm;\n\t\t\t} else {\n\t\t\t\tint numrepeats = repeatnames.size();\n\n\t\t\t\tif (numrepeats > 0) {\n\t\t\t\t\tDREM_DataSet[] repeatSets = new DREM_DataSet[numrepeats];\n\t\t\t\t\tfor (int nset = 0; nset < numrepeats; nset++) {\n\t\t\t\t\t\tString szfile = (String) repeatnames.get(nset);\n\n\t\t\t\t\t\tDREM_DataSet theOtherSet = new DREM_DataSet(szfile,\n\t\t\t\t\t\t\t\tnmaxmissing, dexpressedval, dmincorrelation,\n\t\t\t\t\t\t\t\tbtakelog, bspotincluded, true, badd0,\n\t\t\t\t\t\t\t\tbmaxminval, balltime);\n\n\t\t\t\t\t\terrorcheck(theDataSet1, theOtherSet);\n\n\t\t\t\t\t\trepeatSets[nset] = theOtherSet;\n\t\t\t\t\t}\n\t\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\t\ttheDataSet1.mergeDataSets(repeatSets),\n\t\t\t\t\t\t\ttheDataSet1.tga);\n\t\t\t\t} else {\n\t\t\t\t\ttheDataSetsMerged = theDataSet1;\n\t\t\t\t}\n\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.logratio2(), theDataSetsMerged.tga);\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.averageAndFilterDuplicates(),\n\t\t\t\t\t\ttheDataSetsMerged.tga);\n\t\t\t\t// gene values before averaging stored\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.filterMissing(),\n\t\t\t\t\t\ttheDataSetsMerged.tga);\n\t\t\t\ttheDataSetsMerged = new DREM_DataSet(\n\t\t\t\t\t\ttheDataSetsMerged.filtergenesthreshold2(),\n\t\t\t\t\t\ttheDataSetsMerged.tga);\n\n\t\t\t\ttheDataSetsMerged.tga = new DREM_GoAnnotations(\n\t\t\t\t\t\tszorganismsourceval, szxrefsourceval, szxrefval,\n\t\t\t\t\t\tszgoval, szgocategoryval, theDataSet1.genenames,\n\t\t\t\t\t\ttheDataSet1.probenames, nsamplespval, nmingo,\n\t\t\t\t\t\tnmingolevel, szextraval, szcategoryIDval,\n\t\t\t\t\t\tbspotincluded, szevidenceval, sztaxonval, bpontoval,\n\t\t\t\t\t\tbcontoval, bfontoval, brandomgoval);\n\t\t\t}\n\t\t\ttheDataSetsMerged.addExtraToFilter(theDataSetsMerged.tga);\n\n\t\t\treturn theDataSetsMerged;\n\t\t}\n\t}", "public ArrayList<InstanceList> getSets(int i) {\n InstanceList learningSet = new InstanceList(classInstances, numInstances - TEST_SET_1 + 1);\n InstanceList validationSet = new InstanceList(classInstances, TEST_SET_1);\n for (int divideIndex = 0; divideIndex < numInstances; divideIndex++) {\n\n if (log.isInfoEnabled()) {\n log.info(\"index \" + divideIndex + \" fold_size\" + TEST_SET_1 + \" = from \" + TEST_SET_0 + \" to \" + TEST_SET_1 + \" num_instances \" + numInstances + \"\\n\");\n }\n if (divideIndex >= TEST_SET_0 && divideIndex <= TEST_SET_1) { // validation\n // validation [fold_size*i, fold_size*(i+1))\n if (log.isInfoEnabled()) {\n log.info(\"validation one \" + divideIndex + \"\\n\");\n }\n validationSet.addAsInstance(classInstances.getInstance(crossedSet[divideIndex]));\n } else { // learninf part \n learningSet.addAsInstance(classInstances.getInstance(crossedSet[divideIndex]));\n }\n }\n\n ArrayList<InstanceList> lists = new ArrayList<InstanceList>(2);\n lists.add(learningSet);\n lists.add(validationSet);\n return lists;\n }", "private SectionSets ()\r\n {\r\n }", "indexSet createindexSet();", "@SuppressWarnings(\"unused\")\r\n private void beforeMarshal (Marshaller m)\r\n {\r\n // Convert sections -> ids\r\n if (sets != null) {\r\n descSets = new ArrayList<>();\r\n\r\n for (Collection<Section> set : sets) {\r\n SectionDescSet descSet = new SectionDescSet();\r\n\r\n for (Section section : set) {\r\n descSet.sections.add(\r\n new SectionDesc(\r\n section.getId(),\r\n section.getOrientation()));\r\n }\r\n\r\n descSets.add(descSet);\r\n }\r\n }\r\n }", "Set createSet();", "public Worklist(Analysis analysis, String type) {\n this.type = type;\n this.analysisType = analysis;\n this.w = new ArrayList<>();\n for(Integer label : this.analysisType.getAnalysisSet().keySet()) {\n this.w.add(label);\n }\n }", "public Set<String> hyponyms(String word) {\n HashSet<String> set = new HashSet<String>();\n for (Integer id: synsets.keySet()) {\n TreeSet<String> hs = synsets.get(id);\n if (hs.contains(word)) {\n for (String s: hs) {\n set.add(s);\n }\n TreeSet<Integer> ids = new TreeSet<Integer>();\n ids.add(id);\n Set<Integer> desc = GraphHelper.descendants(dg, ids);\n for (Integer i: desc) {\n for (String s: synsets.get(i)) {\n set.add(s);\n }\n }\n }\n }\n return set;\n }", "default List<String> assignedConcepts(List<Source> sources){\n return assignedConcepts(10, sources);\n }", "public ArrayList<Sets> getSets() {\n return this.sets;\n }", "public void initializeListings() {\n\t listings = new ArrayList<Listing>();\n\t Listings listingsToStore = Listings.getInstance();\n\t Iterator<Saveable> listingIterator = listingsToStore.iterator();\n\t\n\t int counter = 0;\n\t while (listingIterator.hasNext()) {\n\t\t Listing currentListing = listingsToStore.getListing(counter);\n\t\t for (int i = 0; i < listingIds.size(); i++) {\n\t\t\t \n\t\t\t if (currentListing.getInternalId() == listingIds.get(i)) {\n\t\t\t\t \n\t\t\t\t listings.add(currentListing);\n\t\t\t }\n\t\t }\n\t\t counter++;\n\t\t listingIterator.next();\n\t }\n\t \n }", "private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}" ]
[ "0.66108346", "0.5921938", "0.58923", "0.57641083", "0.56823725", "0.56634134", "0.56509286", "0.55621725", "0.5552991", "0.55513537", "0.5517021", "0.5490899", "0.54891133", "0.54851735", "0.54464257", "0.54108155", "0.5409489", "0.5368793", "0.5285331", "0.5278496", "0.5271492", "0.52650535", "0.52642727", "0.52149904", "0.5208521", "0.519528", "0.5182484", "0.517358", "0.5169578", "0.51686543", "0.5147649", "0.5139003", "0.5133862", "0.510449", "0.50993323", "0.50883085", "0.50696516", "0.5060705", "0.5056114", "0.5041924", "0.5031824", "0.5024304", "0.50062525", "0.49987477", "0.49944618", "0.49893728", "0.4978764", "0.49579713", "0.49400556", "0.4927409", "0.49245226", "0.49218595", "0.49202883", "0.49172834", "0.49160555", "0.48991013", "0.48906177", "0.48887196", "0.48850676", "0.48788235", "0.48729482", "0.48554972", "0.484612", "0.48455966", "0.48392203", "0.48330158", "0.48271418", "0.48257306", "0.48129702", "0.48099905", "0.48014373", "0.47967964", "0.47958875", "0.47932455", "0.47928998", "0.47851133", "0.47821754", "0.47778544", "0.4774786", "0.47741625", "0.476078", "0.4757261", "0.47562602", "0.47516748", "0.47514403", "0.4739727", "0.47364235", "0.47315767", "0.47315308", "0.47236532", "0.47073537", "0.47051263", "0.4704226", "0.4702627", "0.46969992", "0.46912515", "0.46885145", "0.46876127", "0.46774545", "0.46706894" ]
0.6523444
1
build the string values of word data
private String[] getSynsetColumns(SynsetProvider.Synset synset, String pos) { String pos_description = UtilsDB.getPosDescription(pos); String words = synset.getWords().trim(); words = words.replace(" ", ", "); words = words.replace("_", " "); words = "<b><font color='#880000'>" + words + "</font></b>"; String gloss = synset.getGloss().trim(); for (String query: queries) gloss = gloss.replaceAll(query, "<b><font color='#880000'>" + query + "</font></b>"); gloss = "<i>" + gloss + "</i>"; return new String[] {pos_description, words, gloss, synset.getSynset()}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}", "public String toString(){\n\t\treturn (word + \" \" + wordCount);\n\t}", "public String buildingString() {\r\n\t\twhichBuild = 1 - whichBuild;\r\n\t\tif (whichBuild == 1) {\r\n\r\n\t\t}\r\n\t\treturn \"420 400;10 10 140 60 60 60 10;140 10 240 60 180 60 10;240 10 400 60 320 60 20 ;10 90 120 180 40 90 15;120 90 280 180 160 90 10;280 90 400 180 340 90 10\";\r\n\t}", "public String toString(){\n String r = \"\";\n for(String cs : words){\n r += cs + \" \"; \n }\n r = r.substring(0, r.length()-1);\n return r;\n }", "private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }", "private String createStandardGZFieldTexts()\n\t{\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (result.length() != 0)\n\t\t\t{\n\t\t\t\tresult.append(\", \");\n\t\t\t}\n\t\t\tresult.append(entry.getKey());\n\t\t\tresult.append(\" TEXT IS '\");\n\t\t\tString[] strings = entry.getValue();\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t{\n\t\t\t\tresult.append(strings[index]);\n\t\t\t\tif (index < strings.length)\n\t\t\t\t{\n\t\t\t\t\tresult.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.append(\"'\");\n\t\t}\n\t\treturn result.toString();\n\t}", "public String writeWordlists(Instances data) {\n\t\tString result = \"\";\n\t\tString[] wordLists = new String[4];\n\t\tfor (int j = 0; j < wordLists.length; j++) {\n\t\t\twordLists[j] = \"\";\n\t\t}\n\n\t\t// Loop over all tokens (attributes)\n\t\tfor (int i = 1; i < data.numAttributes(); i++) {\n\t\t\tdouble[] scores = data.attributeToDoubleArray(i);\n\t\t\tdouble[] aspectScores = new double[4];\n\t\t\tString token = data.attribute(i).name();\n//\t\t\tSystem.out.println(\"Token: \" + token);\n\n\t\t\t// Calculate aspect score by summing top and low scores\n\t\t\taspectScores[0] = scores[0] + scores[1]; // Aroma\n\t\t\taspectScores[1] = scores[2] + scores[3]; // Palate\n\t\t\taspectScores[2] = scores[4] + scores[5]; // Taste\n\t\t\taspectScores[3] = scores[6] + scores[7]; // Appearance\n\n\t\t\tint maxIndex = 0;\n\t\t\tdouble maxScore = 0;\n\t\t\tfor (int j = 0; j < aspectScores.length; j++) {\n\t\t\t\tif (aspectScores[j] > maxScore) {\n\t\t\t\t\tmaxScore = aspectScores[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t\t// TODO Implement min threshold to include\n\t\t\t\t}\n\t\t\t}\n//\t\t\tSystem.out.println(\"Max value and aspect: \" + maxIndex + \"/\" + maxScore);\n\n\t\t\tDouble ratio = scores[maxIndex * 2] / scores[maxIndex * 2 + 1];\n//\t\t\tSystem.out.println(\"Score ratio: \" + ratio);\n\n\t\t\t// Word is positive wrt aspect\n\t\t\tif (ratio > 1) // TODO: Configurable threshold\n\t\t\t\twordLists[maxIndex] += token + \" \" + (scores[maxIndex * 2]-scores[maxIndex * 2 + 1]) + \"\\n\";\n\t\t\t// Word is negative wrt aspect\n\t\t\telse if (ratio < 1)\n\t\t\t\twordLists[maxIndex] += token + \" \" + -1 * (scores[maxIndex * 2 + 1]-scores[maxIndex * 2]) + \"\\n\";\n\n//\t\t\tfor (int j = 0; j < scores.length; j++) {\n//\t\t\t\tSystem.out.print(scores[j] + \",\");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n\n\t\t}// End loop over attributes\n\n\t\t// Write lists to file\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tfor (int j = 0; j < wordLists.length; j++) {\n\n\t\t\t\tString path = this.outputDir;\n\t\t\t\tif (j == 0)\n\t\t\t\t\tpath += Aspect.AROMA.name();\n\t\t\t\tif (j == 1)\n\t\t\t\t\tpath += Aspect.PALATE.name();\n\t\t\t\tif (j == 2)\n\t\t\t\t\tpath += Aspect.TASTE.name();\n\t\t\t\tif (j == 3)\n\t\t\t\t\tpath += Aspect.APPEARANCE.name();\n\t\t\t\tpath += \".txt\";\n\t\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n\t\t\t\tout.write(wordLists[j]);\n\t\t\t\tout.close();\n\t\t\t\tSystem.out.println(\"Wordlist written to: \" + path + \" (\" + wordLists[j].split(\"\\n\").length + \")\");\n\t\t\t\tresult += path+\";\";\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "String toStringStartValues();", "public String buildingString2() {\r\n\t\twhichBuild = 1 - whichBuild;\r\n\t\tif (whichBuild == 1) {\r\n\r\n\t\t}\r\n\t\treturn \"400 400;10 10 90 140 70 140 20;90 10 320 70 220 70 10;10 180 100 380 60 180 15;100 180 320 380 200 180 20;320 10 400 380 320 110 25\";\r\n\t}", "@NonNull\n @Override\n public String toString() {\n return word;\n }", "public String toString() {\n\t\tString temp;\n\t\tint i;\n\n\t\ttemp = new String(\"\");\n\n\t\t//Seperate each word by a space (leave off \"_start_node_\" and \"_end_node_\")\n\t\tfor (i = 1; i < wc.size() - 1; i++) {\n\t\t\ttemp = temp.concat(((String) wc.elementAt(i)));\n\t\t\tif (i < wc.size() - 2) {\n\t\t\t\ttemp = temp.concat(\" \");\n\t\t\t}\n\t\t}\n\t\tif (temp.length() <= 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn temp;\n\t}", "public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "public String toString() {\n return String.join(\" \", words);\n }", "private void buildLanguageModel() {\n int total = 0;\n Map<Integer, Integer> wordCount = new HashMap<>();\n for (List<Integer> story : corpus.getStories()) {\n for (Integer word : story) {\n total++;\n if (wordCount.get(word) == null) wordCount.put(word, 0);\n wordCount.put(word, wordCount.get(word) + 1);\n }\n }\n wordValues = new HashMap<>();\n for (Map.Entry<Integer, Integer> entry : wordCount.entrySet()) {\n wordValues.put(entry.getKey(), total * 1.0 / entry.getValue());\n }\n }", "public String toString()\n\t{\n\t\treturn word;\n\t}", "@Override\n public String toString() {\n \treturn title + \":\" + word ;\n }", "public String get_all_words_and_definitions(){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\t\tfound_words += child.get_all_words_and_definitions();\n\t\t}\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\" + found_words ;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word +\" & \" + definition + \"\\n\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n\t\t\tfor (char c : col) {\n\t\t\t\tout.append(c);\n\t\t\t}\n\t\t\tout.append(\"\\n\");\n\t\t}\n\n\t\treturn out.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\t// create the String to return\n\t\tString str = new String();\n\t\t// get the mask\n\t\tboolean[] mask = this.getMask();\n\t\t// the new char of the string\n\t\tchar oneChar;\n\t\t// for each character in the word\n\t\tfor (int i = 0; i < this.getLength(); i++) {\n\t\t\t// if it is masked, set the new char as \"_\"\n\t\t\tif (mask[i] == true) {\n\t\t\t\toneChar = '_';\n\t\t\t\t// if it is unmasked, set the new char as the true character\n\t\t\t}else {\n\t\t\t\toneChar = this.theWord[i];\n\t\t\t}\n\t\t\t// add the new char to the string\n\t\t\tstr += \" \" + oneChar;\n\t\t}\n\t\t// return the string\n\t\treturn str;\n\t}", "public String get_all_words(){\n\t\tString found_words = \"\";\n\t\t//We try to find the word within our childs\n\t\tfor(LexiNode child: childs){\n\t\t\t\tfound_words += child.get_all_words();\n\t\t}\n\t\tif(current_word != null && !found_words.equals(\"\"))\n\t\t\treturn current_word + \"#\" + found_words;\n\t\telse if(current_word != null && found_words.equals(\"\"))\n\t\t\treturn current_word+ \"#\";\n\t\telse //current_word == null && found_words != null\n\t\t\treturn found_words;\n\t}", "public String toTweetNormString() {\n String tweetNormString = getId();\n\n if (getOOVWords() != null && getOOVWords().size() > 0) {\n for (OOV oov : getOOVWords()) {\n tweetNormString += \"\\n\\t\" + oov.getToken();\n\n if (oov.getAnnotation() == Annotation.Variation) {\n tweetNormString += \" 0 \" + oov.getCorrection().replace(\" \", \"_\");\n } else {\n tweetNormString += \" \" + oov.getAnnotation().value + \" -\";\n }\n }\n }\n\n return tweetNormString;\n }", "private String pairsToWord(List<Pair> pairs){\n String result=\"\";\n for(Pair pair : pairs){\n result=result+pair.getLetter();\n }\n return result;\n }", "private String convertDataToString(List<DataFormat> trainData) {\n return trainData\n .stream()\n .map(d -> convertBooleanToInteger(d.getValue()) + \" \" +\n convertPredicateListToString(d.getPredicateList()) + System.lineSeparator())\n .collect(Collectors.joining());\n }", "@Override\n public String toString() {\n StringJoiner sj = new StringJoiner(\", \", \"{\", \"}\\n\");\n wordMap.forEach((k, v) -> sj.add(String.format(\"%s -> %s\", k, v)));\n return sj.toString();\n }", "public String generateSentence() {\n // If our map is empty return the empty string\n if (model.size() == 0) {\n return \"\";\n }\n\n ArrayList<String> startWords = model.get(\"_begin\");\n ArrayList<String> endWords = model.get(\"_end\");\n\n // Retrieve a starting word to begin our sentence\n int rand = ThreadLocalRandom.current().nextInt(0, startWords.size());\n\n String currentWord = startWords.get(rand);\n StringBuilder sb = new StringBuilder();\n\n while (!endWords.contains(currentWord)) {\n sb.append(currentWord + \" \");\n ArrayList<String> nextStates = model.get(currentWord);\n\n if (nextStates == null) return sb.toString().trim() + \".\\n\";\n\n rand = ThreadLocalRandom.current().nextInt(0, nextStates.size());\n currentWord = nextStates.get(rand);\n }\n\n sb.append(currentWord);\n\n return sb.toString() + \"\\n\";\n\n\n }", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "public String toString(){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\t\r\n\t\tsb.append(String.format(\" initial pairs: %8d\\n\",num[0]));\r\n\t\t\r\n\t\tsb.append(\" time(day) samples Dxx(km) Dyy(km) Dis(km) Kxx(10^7cm^2/s) Kyy(10^7cm^2/s)\\n\");\r\n\t\t\r\n\t\tfor(int l=0,L=num.length;l<L;l++)\r\n\t\tsb.append(String.format(\r\n\t\t\t\" %5.1f %6d %7.3f %7.3f %7.3f %7.3f %7.3f\\n\",\r\n\t\t\tl*dt/86400f,num[l],Dxx[l]/1e6,Dyy[l]/1e6,Dis[l]/1e6,Kxx[l],Kyy[l]\r\n\t\t));\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}", "public static void show() {\r\n\t\t int[] forword=new int[6];\r\n\t\t int[] temp;\r\n\t\t for(int i=1;i<7;i++){\r\n\t\t\t temp=Arrays.copyOf(forword, 6);\r\n\t\t\t for(int j=0;j<i;j++){\r\n\t\t\t\t if(j==0){\r\n\t\t\t\t\t forword[0]=i;\r\n\t\t\t\t\t System.out.print(forword[0]+\" \");\r\n\t\t\t\t }else{\r\n\t\t\t\t\t forword[j]=forword[j-1]+temp[j-1];\r\n\t\t\t\t\t System.out.print(forword[j]+\" \");\t\t \r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println();\r\n\t\t }\r\n\t\t //0-9:48-57 ; A-Z:65-90 ; a-z:97-122 \r\n\t\t\r\n\t}", "public String toString(){\n\t\tIterator<Integer> iter = getLines().iterator();\n\t\tString word = getWord() + \"(\" + getLines().size() + \"): \";\n\t\twhile (iter.hasNext()){\n\t\t\tword += iter.next() + \", \";\n\t\t} \n\t\tword = word.substring(0, word.length() - 2);\n\t\treturn word;\n\t}", "private void generate()\n {\n for (int i = 0; i < this.syllables; i++) {\n Word word = getNextWord();\n this.text += word.getWord();\n if (i < this.syllables - 1) {\n this.text += \" \";\n }\n }\n }", "private static String generateWord(final int value) {\n final int lengthOfChars = CHARACTERS.length;\n StringBuilder builder = new StringBuilder();\n long lvalue = Math.abs((long)value);\n while (lvalue > 0) {\n builder.append(CHARACTERS[(int)(lvalue % lengthOfChars)]);\n lvalue /= lengthOfChars;\n }\n return builder.toString();\n }", "public static String string() {\n\t\t\tString s = \"\";\n\t\t\ts += \"Locaux :\\n\";\n\t\t\tfor(String key : locaux.keySet()) {\n\t\t\t\tIdent i = locaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\t\t\ts += \"Globaux :\\n\";\n\t\t\tfor(String key : globaux.keySet()) {\n\t\t\t\tIdent i = globaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}", "public String generateString() {\n List<Trip<String, String, String>> sequence = super.generateSequence(startTrip, endTrip);\n sequence = sequence.subList(1, sequence.size()-1);\n String generated = \"\";\n for (int i = 0; i<sequence.size()-2; i++) generated += sequence.get(i).getThird() + \" \";\n return generated.substring(0, generated.length()-1);\n }", "String init() {\n StringBuilder output = new StringBuilder();\n output.setLength(0);\n for (String word: wordList) {\n boolean hasMultipleMatches = false;\n boolean hasAmbiguousMatch = false;\n String bestMatch = null;\n List<String> matches = findExactMatches(word);\n if (matches.size()==1) {\n bestMatch = matches.get(0);\n } else if (matches.size()>1) { // One or more exact matches were found.\n // Multiple matches found. Check to see if there is one which is shorted than the others\n List<String> multipleSameLengthMatches = findLongestMatch(matches);\n bestMatch = multipleSameLengthMatches.get(0);\n if (multipleSameLengthMatches.size()>1) {\n hasMultipleMatches = true;\n }\n } else { // No exact match was found, find longest matching substring\n bestMatch = findBestMatch(word);\n hasAmbiguousMatch = true;\n }\n output.append(bestMatch);\n output.append(hasMultipleMatches?\"!\":\"\");\n output.append(hasAmbiguousMatch?\"?\":\"\");\n output.append(\"\\n\");\n }\n return output.toString();\n }", "public String generateFeaturesResult()\n\t{\n\t\tthis.removeDuplicateAffixes();\n\t\tArrayList<Affix> gPrefix = reverseAffixOrder(this.prefixes);\n\t\tArrayList<Affix> gInfix = reverseAffixOrder(this.infixes);\n\t\tArrayList<Affix> gSuffix = reverseAffixOrder(this.suffixes);\n\t\tAffixBreakdown ab \t\t = new AffixBreakdown();\n\t\tString rootWithInfix;\n\t\tString result\t \t\t = \"\";\n\n\n\n\t\tif( gInfix.size() > 0 || gInfix != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\trootWithInfix = this.infixedRootWord(word.getOriginalWord(),word.getRootWord(), gInfix.get(0).getAffix());\n\t\t\t} catch (Exception e) {\n\t\t\t\trootWithInfix = word.getRootWord();\n\t\t\t}\n\t\t} else {\n\t\t\trootWithInfix = word.getRootWord();\n\t\t}\n\n\n\t\tif( longestCanonicalPrefixLength() > 4 )\n\t\t{\n\t\t\tAffix longPrefix = longestCanonicalPrefix();\n\n\t\t\tresult = result + ab.convertPrefix( longPrefix.getAffix().toString() );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// cycle through all the prefixes first\n\t\t\tfor( int i = 0; i < this.prefixes.size(); i++)\n\t\t\t{\n\t\t\t\tresult = result + \"~\" + gPrefix.get(i).getAffix();\n\t\t\t}\n\t\t}\n\n\t\t// cycle through all the suffixes as the last\n\t\tfor( int i = 0; i < gSuffix.size(); i++)\n\t\t{\n\t\t\tresult = result + \"+\" + gSuffix.get(i).getAffix();\n\t\t}\n\t\treturn result;\n\t}", "private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}", "public void buildDict(String[] dict) {\n for (String word : dict) {\n for (int i = 0; i < word.length(); i++) {\n String key = word.substring(0, i) + word.substring(i+1);\n int[] indexAndChar = new int[2];\n indexAndChar[0] = i;\n indexAndChar[1] = word.charAt(i) - 'a';\n List<int[]> indexAndCharList = dictonary.getOrDefault(key, new ArrayList<>());\n indexAndCharList.add(indexAndChar);\n\n dictonary.put(key, indexAndCharList);\n }\n }\n }", "private List<String> build() {\n List<String> ags = new ArrayList<>();\n ags.add(\"European Union Chromosome 3 Arabidopsis Sequencing Consortium\");\n ags.add(\"Institute for Genomic Research\");\n ags.add(\"Kazusa DNA Research Institute\");\n return ags;\n }", "String toStringEndValues();", "public String getVals(){\n return (\"a: \" + a + \"\\nr: \" + r + \"\\nb: \" + b + \"\\ng: \" + g);\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "@Override\n public String toString() {\n String r = \"\" + value[0];\n for (int i = 1; i < DIM; i++) {\n r += DELIMITER + value[i];\n }\n \n r += DELIMITER + count;\n\n return r;\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "private StringBuilder generateRowStringValue(PuzzlePiece col1, PuzzlePiece col2, PuzzlePiece col3, PuzzlePiece col4) {\n StringBuilder builder = new StringBuilder();\n int[][] arrayPuzzle1 = col1 != null ? col1.getArrayPuzzle() : null;\n int[][] arrayPuzzle2 = col2 != null ? col2.getArrayPuzzle() : null;\n int[][] arrayPuzzle3 = col3 != null ? col3.getArrayPuzzle() : null;\n int[][] arrayPuzzle4 = col4 != null ? col4.getArrayPuzzle() : null;\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 20; j++) {\n if (j < 5) {\n if (col1 != null) {\n builder.append(arrayPuzzle1[i][j] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else if (j < 10) {\n int jj = j - 5;\n if (col2 != null) {\n builder.append(arrayPuzzle2[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else if (j < 15) {\n int jj = j - 10;\n if (col3 != null) {\n builder.append(arrayPuzzle3[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else {\n int jj = j - 15;\n if (col4 != null) {\n builder.append(arrayPuzzle4[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n }\n }\n builder.append(\"\\n\");\n }\n return builder;\n }", "public String[ ] toStrings() {\n\t\tString[ ] theStrings = new String[1 + 3 * motifhitinfo.length];\n\t\tString[ ] mStrings;\n\t\ttheStrings[0] = PAD1 + SUBGENENAME + PAD2 + SUBGENEGENUS + PAD3 + HITSCORE + PAD4 + THETRANSLATOR.externalize(HITHOTSPOT);\n\t\tfor (int m=0; m<motifhitinfo.length; m++) {\n\t\t\tmStrings = motifhitinfo[m].toStrings();\n\t\t\ttheStrings[3 * m + 1] = mStrings[0];\n\t\t\ttheStrings[3 * m + 2] = mStrings[1];\n\t\t\ttheStrings[3 * m + 3] = mStrings[2];\n\t\t}\n\t\treturn theStrings;\n\t}", "public String wordListToSimpleString(List<Word> words) {\n StringBuilder stringBuilder = new StringBuilder();\n for (Word w : words) {\n //do not include things that the tokenizer eats anyway\n if (!tokenisationDelimiters.contains(w.getWord()) && !tokenisationDelimitersPOSTags.contains(w.getPosTag())) {\n stringBuilder.append(w.getWord().replaceAll(\" \", \"_\").replaceAll(tokenisationDelimitersRegex, \"\"));\n stringBuilder.append(\"_\");\n stringBuilder.append(w.getPosTag());\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tif(hidden) {\t\t\t\t\t//if hidden, only show the next character\n\t\t\tif(chars<=words.get(0).toString().length()) {\n\t\t\t\ts += (words.get(0).toString()+\" \").substring(0,chars+1);\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\n\t\t\tfor(Word w: words) {\n\t\t\t\ts += w.toString() + \" \";\n\t\t\t}\t\n\t\t}\n\t\treturn s;\n\t}", "public String toString()\n {\n String str = (continuation ? \"+ \" : \"- \") ;\n for(int i = 0 ; i < values.length ; i++)\n str += values[i] + \" \";\n str += classification;\n return str ;\n }", "@Override\n public String toString() {\n\n return \"\\n[ lexiconId:\" + lexiconId + \"| Kejom word:\"+kejomWord+ \"]\";\n }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }", "private static HashMap<String, Integer> generateWordIndex()\n\t{\n\t\tHashMap<String, Integer> wordIndex = new HashMap<String, Integer>();\n\t\tint currIndex = 0;\n\t\tStringBuffer combinedHeaders;\n\t\tfor (MP mp : Capone.getInstance().getParliament().getMPList())\n\t\t{\n\t\t\tfor (Speech sp : mp.returnSpeeches())\n\t\t\t{\n\t\t\t\tcombinedHeaders = new StringBuffer();\n\t\t\t\tcombinedHeaders.append(sp.getHeader1());\n\t\t\t\tcombinedHeaders.append(sp.getHeader2());\n\t\t\t\tfor (String str : combinedHeaders.toString().split(\" \"))\n\t\t\t\t{\n\t\t\t\t\tif (!wordIndex.containsKey(str))\n\t\t\t\t\t{\n\t\t\t\t\t\twordIndex.put(str, currIndex);\n\t\t\t\t\t\tcurrIndex++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn wordIndex;\n\t}", "private static String generateStringFromEntry(Entry<String, Long> entry) {\n\n\t\treturn entry.getKey() + WORD_FREQUENCY_DELIMITER + entry.getValue();\n\t}", "public String toString() \n {\n String words = \"\";\n boolean empty = true;\n for (int i = 0; i < scores.length; i++)\n {\n if(scores[i] == null)\n {\n empty = false;\n words = this.name + \" ID Number: \" + this.idNum + \" Home Course: \" + this.homeCourse + \" \\n \" + \"Score\" +\n \" \\t \" + \"Date\" + \" \\t \" + \"Course\" + \" \\t \" + \"Course Rating\" + \" \\t \" + \"Course Slope\" + \" \\n \";\n break;\n }\n else \n {\n words = this.name + \" ID Number: \" + this.idNum + \" Home Course: \" + this.homeCourse + \" \\n \" + \"Score\" +\n \" \\t \" + \"Date\" + \" \\t \" + \"Course\" + \" \\t \" + \"Course Rating\" + \" \\t \" + \"Course Slope\" + \" \\n \" + \n Arrays.asList(scores).toString().replaceFirst(\"]\", \"\").replace(\", \", \"\").replace(\"[\",\"\");\n }\n } \n return words;\n }", "public String build();", "public String build();", "public String getAfinnFrenchLibrary(){\n String output = \"\";\n for (String key : afinnFrenchLibrary.keySet())\n {\n String value = afinnFrenchLibrary.get(key).toString();\n output += (\"\\n\" +key+\": \"+value);\n }\n output += (\"\\nWords: \"+ afinnFrenchLibrary.size());\n return output; \n }", "public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }", "public String toString() {\n return \"\" + data;\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}", "private static String createDataString(\n \t\tCollection<ProductAmountTO> requiredProductAmounts,\n \t\tHashtable<Store, Collection<StockItem>> storeStockItems,\n \t\tHashtable<Store, Integer> storeDistances) {\n \t\n \tStringBuffer output = new StringBuffer();\n\n \tappendStoreDistances(storeDistances, output); \t\n \t\n \tappendRequiredProductAmounts(requiredProductAmounts, output);\n \t\n \tappendOfferingStoresProductsAmountsMatrix(storeStockItems, requiredProductAmounts, output);\n \t\n \treturn output.toString();\n \t \n\n }", "public String possibleValues(){\n int nbElement = 9-this.possibilities.size();\n String result = \"\";\n result = result+\"\"+this.value+\" (\";\n for(int i : this.possibilities){\n result = result+i;\n }\n for(int i = 0; i< nbElement ;i++){\n result = result+\".\";\n }\n result = result+\")\";\n return result;\n\n }", "private String getValues()\n\t{\n\t\tString values = \"(\";\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tvalues += \"'\" + fieldList.get(spot).getText() + \"'\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tvalues += \");\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalues += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn values;\n\t}", "private void encodeEmbeddedStringArrays(XMLStreamReader reader, Map<String, Integer> mapping, ByteArrayOutputStream baos) throws XMLStreamException {\n Map<String, List<String>> valuesByFeature = new HashMap<>();\n while (reader.hasNext()) {\n if (reader.getEventType() == XMLStreamConstants.START_ELEMENT) {\n String feature = reader.getName().getLocalPart();\n // Forward to the element text which is the feature value string\n reader.next();\n String value = reader.getText();\n valuesByFeature.compute(feature, (k, v) -> v != null ? v : new ArrayList<>()).add(value);\n }\n reader.next();\n }\n\n // Now write the values in a compact way: Write the encoded feature name once and how many values to expect, then write those values.\n // Write the numbers of string array features that have values\n writeInt(valuesByFeature.keySet().size(), baos);\n for (String feature : valuesByFeature.keySet()) {\n final Collection<String> values = valuesByFeature.get(feature);\n writeInt(mapping.get(feature), baos);\n writeInt(values.size(), baos);\n for (String value : values) {\n writeString(value, baos);\n }\n }\n }", "public String toString() {\n\treturn createString(data);\n }", "public void makeWord(String inputText,String pageId,createIndex createindex,String contentType)\n {\n int length,i;\n char c;\n boolean linkFound=false;\n int count1,count2,count3,count4,count5,count6,count7,count8,count9;\n\n\n\n StringBuilder word=new StringBuilder();\n // String finalWord=null,stemmedWord=null;\n docId=Integer.parseInt(pageId.trim());\n\n ci=createindex;\n // Stemmer st=new Stemmer();\n //createIndex createindex=new createIndex();\n\n length=inputText.length();\n\n for(i=0;i<length;i++)\n {\n c=inputText.charAt(i);\n if(c<123 && c>96)\n {\n word.append(c);\n }\n\n else if(c=='{')\n {\n if ( i+9 < length && inputText.substring(i+1,i+9).equals(\"{infobox\") )\n {\n\n StringBuilder infoboxString = new StringBuilder();\n\n count1 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n infoboxString.append(c);\n if ( c == '{') {\n count1++;\n }\n else if ( c == '}') {\n count1--;\n }\n if ( count1 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {infoboxString.deleteCharAt(infoboxString.length()-1);}\n break;\n }\n }\n\n processInfobox(infoboxString);\n\n }\n\n else if ( i+8 < length && inputText.substring(i+1,i+8).equals(\"{geobox\") )\n {\n\n StringBuilder geoboxString = new StringBuilder();\n\n count2 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n geoboxString.append(c);\n if ( c == '{') {\n count2++;\n }\n else if ( c == '}') {\n count2--;\n }\n if ( count2 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {geoboxString.deleteCharAt(geoboxString.length()-1);}\n break;\n }\n }\n\n // processGeobox(geoboxString);\n }\n\n else if ( i+6 < length && inputText.substring(i+1,i+6).equals(\"{cite\") )\n {\n\n /*\n * Citations are to be removed.\n */\n\n count3 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count3++;\n }\n else if ( c == '}') {\n count3--;\n }\n if ( count3 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n else if ( i+4 < length && inputText.substring(i+1,i+4).equals(\"{gr\") )\n {\n\n /*\n * {{GR .. to be removed\n */\n\n count4 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '{') {\n count4++;\n }\n else if ( c == '}') {\n count4--;\n }\n if ( count4 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equals(\"{coord\") )\n {\n\n /**\n * Coords to be removed\n */\n\n count5 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '{') {\n count5++;\n }\n else if ( c == '}') {\n count5--;\n }\n if ( count5 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n //System.out.println(\"process infobox\");\n }\n else if(c=='[')\n {\n // System.out.println(\"process square brace\");\n\n if ( i+11 < length && inputText.substring(i+1,i+11).equalsIgnoreCase(\"[category:\"))\n {\n\n StringBuilder categoryString = new StringBuilder();\n\n count6 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n categoryString.append(c);\n if ( c == '[') {\n count6++;\n }\n else if ( c == ']') {\n count6--;\n }\n if ( count6 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n if ( c == '=' ) {categoryString.deleteCharAt(categoryString.length()-1);}\n break;\n }\n }\n\n // System.out.println(\"category string=\"+categoryString.toString());\n processCategories(categoryString);\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"[image:\") ) {\n\n /**\n * Images to be removed\n */\n\n count7 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n if ( c == '[') {\n count7++;\n }\n else if ( c == ']') {\n count7--;\n }\n if ( count7 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n else if ( i+7 < length && inputText.substring(i+1,i+7).equalsIgnoreCase(\"[file:\") ) {\n\n /**\n * File to be removed\n */\n\n count8 = 0;\n for ( ; i < length ; i++ ) {\n\n c = inputText.charAt(i);\n\n if ( c == '[') {\n count8++;\n }\n else if ( c == ']') {\n count8--;\n }\n if ( count8 == 0 || (c == '=' && i+1 < length && inputText.charAt(i+1) == '=')) {\n break;\n }\n }\n\n }\n\n }\n else if(c=='<')\n {\n //System.out.println(\"Process < >\");\n\n if ( i+4 < length && inputText.substring(i+1,i+4).equalsIgnoreCase(\"!--\") ) {\n\n /**\n * Comments to be removed\n */\n\n int locationClose = inputText.indexOf(\"-->\" , i+1);\n if ( locationClose == -1 || locationClose+2 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+2;\n }\n\n }\n else if ( i+5 < length && inputText.substring(i+1,i+5).equalsIgnoreCase(\"ref>\") ) {\n\n /**\n * References to be removed\n */\n int locationClose = inputText.indexOf(\"</ref>\" , i+1);\n if ( locationClose == -1 || locationClose+5 > length ) {\n i = length-1;\n }\n else {\n i = locationClose+5;\n }\n\n }\n else if ( i+8 < length && inputText.substring(i+1,i+8).equalsIgnoreCase(\"gallery\") ) {\n\n /**\n * Gallery to be removed\n */\n int locationClose = inputText.indexOf(\"</gallery>\" , i+1);\n if ( locationClose == -1 || locationClose+9 > length) {\n i = length-1;\n }\n else {\n i = locationClose+9;\n }\n }\n\n }\n else if ( c == '=' && i+1 < length && inputText.charAt(i+1) == '=')\n {\n\n linkFound = false;\n i+=2;\n while ( i < length && ((c = inputText.charAt(i)) == ' ' || (c = inputText.charAt(i)) == '\\t') )\n {\n i++;\n }\n\n if ( i+14 < length && inputText.substring(i , i+14 ).equals(\"external links\") )\n {\n //System.out.println(\"External link found\");\n linkFound = true;\n i+= 14;\n }\n\n }\n else if ( c == '*' && linkFound == true )\n {\n\n //System.out.println(\"Link found\");\n count9 = 0;\n boolean spaceParsed = false;\n StringBuilder link = new StringBuilder();\n while ( count9 != 2 && i < length )\n {\n c = inputText.charAt(i);\n if ( c == '[' || c == ']' )\n {\n count9++;\n }\n if ( count9 == 1 && spaceParsed == true)\n {\n link.append(c);\n }\n else if ( count9 != 0 && spaceParsed == false && c == ' ')\n {\n spaceParsed = true;\n }\n i++;\n }\n\n StringBuilder linkWord = new StringBuilder();\n for ( int j = 0 ; j < link.length() ; j++ )\n {\n char currentCharTemp = link.charAt(j);\n if ( (int)currentCharTemp >= 'a' && (int)currentCharTemp <= 'z' )\n {\n linkWord.append(currentCharTemp);\n }\n else\n {\n\n // System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n }\n if ( linkWord.length() > 1 )\n {\n //System.out.println(\"link : \" + linkWord.toString());\n processLink(linkWord);\n linkWord.setLength(0);\n }\n\n }\n else\n {\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n }\n }\n\n\n if(word.length()>1)\n filterAndAddWord(word,contentType);\n\n word.setLength(0);\n /*\n if(word.length()>0)\n {\n finalWord=new String(word);\n if(!(checkStopword(finalWord)))\n {\n st.add(finalWord.toCharArray(),finalWord.length());\n stemmedWord=st.stem();\n\n createindex.addToTreeSet(stemmedWord,docId);\n\n }\n\n word.delete(0, word.length());\n } */\n\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}", "public String build() {\n StringBuilder sb = new StringBuilder();\n\n appendColor(sb);\n sb.append(flagSymbol);\n appendIndentation(sb);\n appendProperty(sb);\n appendValue(sb);\n appendDefaultColor(sb);\n\n return sb.toString();\n }", "public String toString(){\r\n\t\tString aux = \"\";\r\n\t\tString ending = \",\";\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (i == numInputAttributes-1 &&\r\n\t\t\t\t\tnumOutputAttributes == 0) ending = \"\";\r\n\t\t\tswitch(Attributes.getInputAttribute(i).getType()){\r\n\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\taux += nominalValues[0][i]; \r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\taux += (new Integer((int)realValues[0][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.REAL:\r\n\t\t\t\taux += (new Double (realValues[0][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\taux += ending;\r\n\t\t}\r\n\t\tending = \",\";\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (i == numOutputAttributes-1) ending = \"\";\r\n\t\t\tswitch(Attributes.getOutputAttribute(i).getType()){\r\n\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\taux += nominalValues[1][i]; \r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\taux += (new Integer((int)realValues[1][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.REAL:\r\n\t\t\t\taux += (new Double(realValues[1][i])).toString();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\taux += ending;\r\n\t\t} \r\n\t\treturn aux;\r\n\t}", "private String generateDataString(Table inputTable, int idxData) {\n int colsz = inputTable.getColumnSize();\n if (idxData > colsz || idxData < -1) {\n System.out.println(\"No such data in table.\");\n throw new IndexOutOfBoundsException();\n }\n StringBuilder dataBuilder = new StringBuilder();\n String currField;\n List<String> recordKeys = inputTable.getKeyList();\n for (int i = 0; i < inputTable.getColumnSize(); i++) {\n if (idxData == -1) {\n currField = inputTable.getColumnName(i);\n } else {\n currField = inputTable.select(recordKeys.get(idxData)).getField(i);\n }\n dataBuilder.append(V_DIV + EMPTY + currField);\n // fill right side of data with empty spaces\n for (int j = 0; j < getColWidth(i) - currField.length() + HPADD; j++) {\n dataBuilder.append(EMPTY);\n }\n }\n dataBuilder.append(V_DIV + NEWLN);\n return dataBuilder.toString();\n }", "public void readText() {\n\t\ttry {\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tstrResult = new StringBuilder();\n\t\t\tString strOriCopy = strOri;\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\r\\n\", \"\\r\");\n\t\t\tstrOriCopy = strOriCopy.replaceAll(\"\\n\\r\", \"\\r\");\n\t\t\tList<String> listFromStrOri = new ArrayList<String>();\n\t\t\tString strOneCharacter= \"\";\n\t\t\tlogger.info(\"strText : \" + this.strOri);\n\t\t\tMap<String, String> mapWord = new HashMap<String, String>();\n\t\t\tInteger pos = 0;\n\t\t\tInteger strOriMaxLen = strOriCopy.length();\n\t\t\t//문장을 돌면서 구둣점과 영어단어를 분리해서 저장한다. 유일한 영어단어 별도로 추출한다. \n\t\t\twhile(pos < strOriMaxLen) {\n\t\t\t\tif (strOriCopy.charAt(pos) == '\\n') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else if (strOriCopy.charAt(pos) == '\\r') {\n\t\t\t\t\tstrOneCharacter = \"\\r\";\n\t\t\t\t} else {\t\t\t\t\t\n\t\t\t\t\tstrOneCharacter = Character.toString(strOriCopy.charAt(pos));\n\t\t\t\t}\n\t\t\t\tlogger.trace(\"strOne : '\" + strOneCharacter + \"'\");\n//\t\t\t\tif (performIsRightChar(strOneCharacter)) {\n\t\t\t\tif (isRightChar(strOneCharacter)) {\t\t\t\n\t\t\t\t\t//해당언어에 해당되는 글자이면 단어를 찾는다.\n\t\t\t\t\tInteger lastPos = getWordPos(strOriCopy, strOneCharacter, pos, strOriMaxLen);\n\t\t\t\t\tString strWord = strOriCopy.substring(pos, lastPos);\n\t\t\t\t\tlogger.info(\"strWord : -\" + strWord + \"-\");\n\t\t\t\t\tif (lastPos == pos) {\n\t\t\t\t\t\t//단어를 사전에서 못 찾았으면 현 글자를 추가한다....(이걸 타지는 않는다.. 항상 lastPos가 1이 더 크다)\n\t\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//단어이면... 추가한다. (영어는 사전에 있는거와 상관없이 영어이면 추가하고, 중국어는 사전에 있는지 체크해서 추가한다.\n\t\t\t\t\t\tpos = lastPos;\n\t\t\t\t\t\tlistFromStrOri.add(strWord);\n\t\t\t\t\t\tString strWordLowercase = strWord.toLowerCase();\n\t\t\t\t\t\tif (!mapWord.containsKey(strWordLowercase)) {\n\t\t\t\t\t\t\tmapWord.put(strWordLowercase, \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t//\t\t\t\tlogger.info(\"strWord : \" + strWord);\n\t\t\t\t} else {\n\t\t\t\t\tlistFromStrOri.add(strOneCharacter);\t\t\t\t\t\n//\t\t\t\t\tlogger.info(\"strOneCharacter : \" + strOneCharacter);\n\t\t\t\t\tpos++;\n\t\t\t\t}\n\t\t\t\t\n\t//\t\t\tlogger.info(\"strResult : \" + strResult);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//유일한 영어단어중 사전에 있는 단어만 별도로 추출한다.\t\t\n\t\t\tMap<String, String> mapWordUnique = uniqueWordsInDic(mapWord);\t\t\n\t\t\t\n\t\t\tlogger.info(\"before : \" + mapWord.size() + \", unique : \" + mapWordUnique.size());\n//\t\t\tlogger.info(\"Before : \" + mapWord.toString());\n//\t\t\tlogger.info(\"After : \" + mapWordUnique.toString());\n\t\t\t\n\t\t\t//분리한 영어단어를 다시 돌면서 HTML문장을 만든다.\n\t\t\tstrResult = new StringBuilder();\n\t\t\tfor (String string : listFromStrOri) {\n\t\t\t\tString strWord = string.toLowerCase();\n\t\t\t\tif (mapWordUnique.containsKey(strWord)) {\n\t\t\t\t\tstrResult.append(mapWordUnique.get(strWord));\n\t\t\t\t} else {\n\t\t\t\t\tif (string.equals(\"\\r\")) {\n\t\t\t\t\t\tstrResult.append(\"<br>\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstrResult.append(strWord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tlogger.info(\"Before Sorting : \" + listWordsTemp.toString());\n\t\t\tCollections.sort(listWordsTemp, String.CASE_INSENSITIVE_ORDER);\n//\t\t\tlogger.info(\"After Sorting : \" + listWordsTemp.toString());\n\t\t\tlong end = System.currentTimeMillis();\n\t\t\tlogger.info( \"실행 시간 readText : \" + ( end - start )/1000.0 );\n\t\t\t \n\t\t} catch(Exception e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t\t\n \t\t}\n\t}", "public String randomTextGenerator() {\n\n\t\tprefixArr = currPrefix.split(\"\\\\s\");\n\t\tHashMap<Integer, String> probSuffix = new HashMap<>();\n\t\tPrefix prefix = new Prefix(prefixArr.length, data, debug);\n\t\tLinkedList<String> text = new LinkedList<>();\n\t\tfor (int j = 0; j < prefixArr.length; j++) {\n\t\t\ttext.add(prefixArr[j]);\n\t\t}\n\t\tint count = 0;\n\t\tString word1 = \"\";\n\t\twhile (count < numWords) {\n\t\t\tint i = 0;\n\t\t\tint j = 0;\n\t\t\tint keyCount = 0;\n\t\t\tprobSuffix.clear();\n\t\t\twhile (keyCount < data.size()) {\n\t\t\t\tword1 = data.get(keyCount);\n\t\t\t\tif (word1.equals(prefixArr[i])) {\n\t\t\t\t\ti++;\n\t\t\t\t\tkeyCount++;\n\t\t\t\t\tif (i == prefixArr.length) {\n\t\t\t\t\t\tif (keyCount < data.size()) {\n\t\t\t\t\t\t\tprobSuffix.put(j, data.get(keyCount));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\ti = 0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ti = 0;\n\t\t\t\t\tkeyCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcount=getResult(probSuffix, prefix, text,count);\n\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "protected String garments() {\n StringBuilder sb = new StringBuilder();\n System.out.println(\"Cuts Made:\");\n sb.append('[');\n coordinateToString(sb, 0);\n sb.deleteCharAt(sb.length() - 1);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(']');\n return sb.toString();\n }", "private String makeOneStringList(){\n String result = \"\";\n\n for(int i = 0 ; i < actualSensorDatas.size() ; i++ ){\n if(actualSensorDatas.get(i).getProduct().getValueOfProduct() == 0){\n result = result + \"<tr><td><h3 style='color:red' > \" + actualSensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:red'> \" + actualSensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td><td><h3><a href=\\\"/buyFor:\"+i+\"\\\">Order</a></h3></td></tr>\";\n }else{\n result = result + \"<tr><td><h3 style='color:blue' > \" + actualSensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:blue' > \" + actualSensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td><td><h3><a href=\\\"/buyFor:\"+i+\"\\\">Order</a></h3></td></tr>\";\n }\n }\n return result;\n }", "private StringBuilder byteToStringBuilder(byte[] data) {\n\t\tStringBuilder sbLog = new StringBuilder();\n\t\tfor (byte b : data) {\n\t\t\tsbLog.append(String.format(\"%02x\", new Object[] { b }));\n\t\t}\n\t\t//System.out.println(\" data packet : \"+ sbLog);\n\t\treturn sbLog;\n\t}", "private static void buildWordList(){\n\t\ttry {\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tScanner inScanner = new Scanner(new FileReader(LIST_LOCATION));\n\t\t\tfor(int i = 0; i < collegiateWords.length ; i++){\n\t\t\t\tcollegiateWords[i] = inScanner.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\n\t\tSystem.out.println(\"Word List Built.\");\n\t}", "public String getValueString() {\n int len=0;\n for (String value : values)\n len += value.length();\n return Util.join(values, len>30 ?\"\\n\":\" \");\n }", "public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public String toString() {\r\n\t\tString ans= date + \" \" + time + \",\" + id + \",\" + p + \",\" + numOfScans + \",\" + wifis.toString();\r\n\t\tfor (int i = 0; i < ans.length(); i++){\r\n\t\t\tif (ans.charAt(i)=='[')\r\n\t\t\t\tans=ans.substring(0, i) + ans.substring(i+1,ans.length()); \r\n\t\t\tif (ans.charAt(i)==']')\r\n\t\t\t\tans=ans.substring(0, i); \r\n\t\t\telse\r\n\t\t\t\tif(ans.charAt(i)==',' && i+1<ans.length() && ans.charAt(i+1)==' ')\r\n\t\t\t\t\tans=ans.substring(0, i+1) + ans.substring(i+2,ans.length());\r\n\t\t}\r\n\t\tif(ans.charAt(ans.length()-1)==',' )\r\n\t\t\tans=ans.substring(0, ans.length()-1);\r\n\t\treturn ans + System.lineSeparator();\r\n\t}", "public String toBitsString() {\n\t\tStringBuffer buf = new StringBuffer(actualsizeinwords * wordinbits);\n\t\tint bitPos = 0;\n\t\tfinal EWAHIterator iter =\n\t\t\t\tnew EWAHIterator(this.buffer, actualsizeinwords);\n\n\t\twhile (iter.hasNext()) {\n\t\t\tRunningLengthWord rlw = iter.next();\n\t\t\tif (rlw.getRunningLength() > 0) {\n\t\t\t\tchar bit;\n\t\t\t\tif (rlw.getRunningBit())\n\t\t\t\t\tbit = '1';\n\t\t\t\telse\n\t\t\t\t\tbit = '0';\n\t\t\t\tfor (int i = 0; i < rlw.getRunningLength() * 64; i++) {\n\t\t\t\t\tbuf.append(bit);\n\t\t\t\t\tif (i != 0 && i % 8 == 0)\n\t\t\t\t\t\tbuf.append(' ');\n\t\t\t\t}\n\t\t\t\tbitPos += rlw.getRunningLength() * 64;\n\t\t\t\tbuf.append(' ');\n\t\t\t}\n\t\t\tfor (int i = 1; i <= rlw.getNumberOfLiteralWords(); i++) {\n\t\t\t\tbitPos += 64;\n\t\t\t\tif (bitPos > sizeinbits)\n\t\t\t\t\tbuf.append(longToBitString(this.buffer[rlw.position + i],\n\t\t\t\t\t\t\tsizeinbits % 64));\n\t\t\t\telse {\n\t\t\t\t\tbuf.append(longToBitString(this.buffer[rlw.position + i]));\n\t\t\t\t\tbuf.append(' ');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn buf.toString();\n\t}", "java.lang.String getWord();", "public String generateDashedResult()\n\t{\n\t\tString result = \"\";\n\n\t\tfor( int i = 0; i < this.prefixes.size(); i++ )\n\t\t{\n\t\t\tresult = result + \"\" + this.prefixes.get(i).getAffixBrackets();\n\t\t\tif( this.prefixes.get(i).getAffixBrackets() == \"\" ) {\n\t\t\t\tprintln(\"it's null bruh\");\n\t\t\t}\n\t\t}\n\n\t\tresult = result + \"[\" + rootWord + \"]\";\n\n\t\tfor( int i = 0; i < this.suffixes.size(); i++ )\n\t\t{\n\t\t\tresult = result + \"\" + this.suffixes.get(i).getAffixBrackets();\n\t\t}\n\n\t\tthis.bracketedResult = result;\n\t\treturn result;\n\t}", "@Override\n public String toString() {\n StringBuilder buf = new StringBuilder();\n for (int x = 0; x < numTopics; x++) {\n String v = dictionary != null\n ? vectorToSortedString(topicTermCounts.viewRow(x).normalize(1), dictionary)\n : topicTermCounts.viewRow(x).asFormatString();\n buf.append(v).append('\\n');\n }\n return buf.toString();\n }", "public String buildSentence() {\n\t\tSentence sentence = new Sentence();\n\t\t\n\t\t//\tLaunch calls to all child services, using Observables \n\t\t//\tto handle the responses from each one:\n\t\tList<Observable<Word>> observables = createObservables();\n\t\t\n\t\t//\tUse a CountDownLatch to detect when ALL of the calls are complete:\n\t\tCountDownLatch latch = new CountDownLatch(observables.size());\n\t\t\n\t\t//\tMerge the 5 observables into one, so we can add a common subscriber:\n\t\tObservable.merge(observables)\n\t\t\t.subscribe(\n\t\t\t\t//\t(Lambda) When each service call is complete, contribute its word\n\t\t\t\t//\tto the sentence, and decrement the CountDownLatch:\n\t\t\t\t(word) -> {\n\t\t\t\t\tsentence.add(word);\n\t\t\t\t\tlatch.countDown();\n\t\t }\n\t\t);\n\t\t\n\t\t//\tThis code will wait until the LAST service call is complete:\n\t\twaitForAll(latch);\n\n\t\t//\tReturn the completed sentence:\n\t\treturn sentence.toString();\n\t}", "public static String number2Word(long number) {\r\n String[] numbers = {\"se\", \"dua \", \"tiga \", \"empat \", \"lima \", \"enam \", \"tujuh \", \"delapan \", \"sembilan \"};\r\n String[] levels = {\"ribu \", \"juta \", \"milyar \", \"trilyun \"};\r\n StringBuffer result = new StringBuffer();\r\n\r\n String str = String.valueOf(number);\r\n int mod = str.length() % 3;\r\n int len = str.length() / 3;\r\n if(mod>0) len++; else mod = 3;\r\n int begin = 0;\r\n int end = mod;\r\n for(int i=0; i<len; i++) {\r\n int level = len-i;\r\n String val = str.substring(begin, end);\r\n int value = Integer.parseInt(val);\r\n int length = val.length();\r\n for(int j=0; j<length; j++) {\r\n int num = parseInt(val.charAt(j));\r\n switch(length-j) {\r\n case 3:\r\n if(num>0) result.append(numbers[num-1]).append(\"ratus \");\r\n break;\r\n case 2:\r\n if(num>1) result.append(numbers[num-1]).append(\"puluh \");\r\n else if(num==1)\r\n result.append(numbers[parseInt(val.charAt(++j))-1]).append(\"belas \");\r\n break;\r\n case 1:\r\n if(num>1 || (level==2 && value==1)) result.append(numbers[num-1]);\r\n else if(num==1) result.append(\"satu \");\r\n break;\r\n }\r\n }\r\n\r\n if(level>1 && value>0)\r\n result.append(levels[level-2]);\r\n begin = i*3 + mod;\r\n end += 3;\r\n }\r\n\r\n return result.toString();\r\n }", "public static String createPluralWord(String word){\n\t\t//Keep the type in a variable since it's called a lot\n\t\tint typeWordEnd = determineWordType(word);\n\t\t\n\t\tString pluralWord;\n\t\t\n\t\t//These just make the string with respect to the table given in the problem document.\n\t\t// Relatively simple use of string functions involved.\n\t\tif(typeWordEnd == 1){\n\t\t\tpluralWord = word + \"gh\";\n\t\t} else if(typeWordEnd == 2){\n\t\t\tpluralWord = ((word.substring(0, word.length() - 1)) + \"g\");\n\t\t} else if(typeWordEnd == 3){\n\t\t\tpluralWord = (word + (word.substring(word.length() - 1)) + \"h\");\n\t\t} else {\n\t\t\t//Just in case something strange happens. I don't know why it would, but I guess it might as well be there.\n\t\t\tpluralWord = \"Error: Unexpected word type.\";\n\t\t}\n\t\t\n\t\t//Return the value...\n\t\treturn pluralWord;\n\t}", "private static String getConversionString(List<Term> conversion) {\n StringBuilder stepsString = new StringBuilder();\n stepsString.append(\"Conversion: \\n\");\n for (int i = 0; i < conversion.size(); i++) {\n stepsString.append(conversion.get(i));\n\n if (i < conversion.size() - 1) {\n stepsString.append(\" = \\n\");\n }\n }\n\n return stepsString.toString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"append \" + maxCount + \" words to a StringBuilder\";\n\t}", "public String toString() {\n\t\tString matrixString = new String();\n\t\tArrayList<Doc> docList;\n\t\tfor (int i = 0; i < termList.size(); i++) {\n\t\t\tmatrixString += String.format(\"%-15s\", termList.get(i));\n\t\t\tdocList = docLists.get(i);\n\t\t\tfor (int j = 0; j < docList.size(); j++) {\n\t\t\t\tmatrixString += docList.get(j) + \"\\t\";\n\t\t\t}\n\t\t\tmatrixString += \"\\n\";\n\t\t}\n\t\treturn matrixString;\n\t}", "default String getAsText0() {\n final StringBuilder builder = new StringBuilder();\n if (this.getEndDate() != null)\n builder.append(getContent())\n .append(\" \")\n .append(getDate().dateString)\n .append(\" \")\n .append(getTime().timeString)\n .append(\" - \")\n .append(getEndDate().dateString)\n .append(\" \")\n .append(getEndTime().timeString)\n .append(\" \");\n else \n builder.append(getContent())\n .append(\" \")\n .append(getDate())\n .append(\" \")\n .append(getTime())\n .append(\" \");\n \n if (getDuration() != null) builder .append(\"repeat per \"+getDuration()+\" days \");\n builder.append(\" Tags: \");\n getTags().forEach(builder::append);\n return builder.toString();\n }", "@Override\n public String toString() {\n if (restOfSentence instanceof WordNode) {\n return word + \" \" + restOfSentence.toString();\n } else if (restOfSentence instanceof EmptyNode) {\n return word + \".\" + restOfSentence.toString();\n } else {\n return word + restOfSentence.toString();\n }\n }", "@Override\n public String toString(){\n return \"w=\" + value;\n }", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor (int i=13; i<=16; i++){\n\t\t\toutput.append(linesAndStores[i].makeString());\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public String getTranslation()\n {\n StringBuilder aminoAcid = new StringBuilder();\n Map<String, String> codToAa = Map.ofEntries(\n entry(\"ATA\", \"I\"), entry(\"ATC\", \"I\"), entry(\"ATT\", \"I\"), entry(\"ATG\", \"M\"),\n entry(\"ACA\", \"T\"), entry(\"ACC\", \"T\"), entry(\"ACG\", \"T\"), entry(\"ACT\", \"T\"),\n entry(\"AAC\", \"N\"), entry(\"AAT\", \"N\"), entry(\"AAA\", \"K\"), entry(\"AAG\", \"K\"),\n entry(\"AGC\", \"S\"), entry(\"AGT\", \"S\"), entry(\"AGA\", \"R\"), entry(\"AGG\", \"R\"),\n entry(\"CTA\", \"L\"), entry(\"CTC\", \"L\"), entry(\"CTG\", \"L\"), entry(\"CTT\", \"L\"),\n entry(\"CCA\", \"P\"), entry(\"CCC\", \"P\"), entry(\"CCG\", \"P\"), entry(\"CCT\", \"P\"),\n entry(\"CAC\", \"H\"), entry(\"CAT\", \"H\"), entry(\"CAA\", \"Q\"), entry(\"CAG\", \"Q\"),\n entry(\"CGA\", \"R\"), entry(\"CGC\", \"R\"), entry(\"CGG\", \"R\"), entry(\"CGT\", \"R\"),\n entry(\"GTA\", \"V\"), entry(\"GTC\", \"V\"), entry(\"GTG\", \"V\"), entry(\"GTT\", \"V\"),\n entry(\"GCA\", \"A\"), entry(\"GCC\", \"A\"), entry(\"GCG\", \"A\"), entry(\"GCT\", \"A\"),\n entry(\"GAC\", \"D\"), entry(\"GAT\", \"D\"), entry(\"GAA\", \"E\"), entry(\"GAG\", \"E\"),\n entry(\"GGA\", \"G\"), entry(\"GGC\", \"G\"), entry(\"GGG\", \"G\"), entry(\"GGT\", \"G\"),\n entry(\"TCA\", \"S\"), entry(\"TCC\", \"S\"), entry(\"TCG\", \"S\"), entry(\"TCT\", \"S\"),\n entry(\"TTC\", \"F\"), entry(\"TTT\", \"F\"), entry(\"TTA\", \"L\"), entry(\"TTG\", \"L\"),\n entry(\"TAC\", \"Y\"), entry(\"TAT\", \"Y\"), entry(\"TAA\", \"_\"), entry(\"TAG\", \"_\"),\n entry(\"TGC\", \"C\"), entry(\"TGT\", \"C\"), entry(\"TGA\", \"_\"), entry(\"TGG\", \"W\")\n );\n try\n {\n for (int i = 0; i < this.sequence.length(); i += 3)\n {\n aminoAcid.append(codToAa.get(this.sequence.substring(i, i + 3)));\n }\n }\n catch (StringIndexOutOfBoundsException ignored)\n {\n }\n return aminoAcid.toString();\n }", "static ArrayList<String> tag(ArrayList<String> rawWords){\n\t\tArrayList<String> outSentence = new ArrayList<String>();\n\t\t//String[][] chart = new String[rawWords.size()][rawWords.size()];\n\t\tfor(int i = 0; i<rawWords.size(); i++){\n\t\t\tString[] entry = rawWords.get(i).split(\"\\\\s+\");\n\t\t\tString word = entry[0];\n\t\t\tString pos = entry[1];\n\t\t\tSystem.out.println(word);\n\t\t\tif((pos.equals(\"NNP\")||word.equals(\"tomorrow\"))&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"due\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j = i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNP\")||next.equals(\"NNS\")||next.equals(\"NNPS\")||next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse if (pos.equals(\"CD\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tif((rawWords.get(j).split(\"\\\\s\")[1].equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(\"CD\")&&rawWords.get(j+1).split(\"\\\\s\")[1].equals(\"CD\"))||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NN\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNP\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"NNPS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"CD\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"%\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s\")[0].equals(\"to\")&&rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"up\")){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"#\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"PRP$\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJ\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJR\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"JJS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"$\")){\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(rawWords.get(j).split(\"\\\\s\")[1].equals(\"POS\")||rawWords.get(j).split(\"\\\\s\")[1].equals(\"DT\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"approximately\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"around\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"almost\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"about\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[0].equals(\"as\")&&(rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"many\")||rawWords.get(j-1).split(\"\\\\s\")[0].equals(\"much\"))&&rawWords.get(j-2).split(\"\\\\s\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning-=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s\")[1].equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if((rawWords.get(j).split(\"\\\\s\")[1].equals(\"RBR\")||rawWords.get(j).split(\"\\\\s\")[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t\t}\n\t\t\t\t\ti=ending;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*else if(pos.equals(\"CD\")&&rawWords.get(i-1).split(\"\\\\s+\")[0].equals(\"$\")&&rawWords.get(i-2).split(\"\\\\s+\")[1].equals(\"IN\")){\n\t\t\t\tint beginning=i;\n\t\t\t\tint ending = i;\n\t\t\t\tint j=i+1;\n\t\t\t\tboolean endingFound = false;\n\t\t\t\twhile(!endingFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"CD\")){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendingFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString prior=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tString priorWord = rawWords.get(j).split(\"\\\\s\")[0];\n\t\t\t\t\tif(prior.equals(\"$\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (rawWords.get(j).split(\"\\\\s+\")[0].equals(\"as\")&&rawWords.get(j-1).split(\"\\\\s+\")[0].equals(\"much\")&&rawWords.get(j-2).split(\"\\\\s+\")[0].equals(\"as\")){\n\t\t\t\t\t\tbeginning -=3;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\tj -=3;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"IN\")){\n\t\t\t\t\t\tbeginning --;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}*/\n\t\t\t//else if(pos.equals(arg0))\n\t\t\telse if(pos.equals(\"PRP\")||pos.equals(\"WP\")||word.equals(\"those\")||pos.equals(\"WDT\")){\n\t\t\t\tint beginning = i;\n\t\t\t\t//int ending = i;\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}\n\t\t\telse if(word.equals(\"anywhere\")&&rawWords.get(i+1).split(\"\\\\s+\")[0].equals(\"else\")){\n\t\t\t\toutSentence.add(\"anywhere\\tB-NP\");\n\t\t\t\toutSentence.add(\"else\\tI-NP\");\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t/*else if (word.equals(\"same\")&&rawWords.get(i-1).split(\"\\\\s\")[0].equals(\"the\")){\n\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\tString nounGroupLine = \"the\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tnounGroupLine = \"same\\tI-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t}*/\n\t\t\telse if(pos.equals(\"NN\")||pos.equals(\"NNS\")||pos.equals(\"NNP\")||pos.equals(\"NNPS\")||pos.equals(\"CD\")/*||pos.equals(\"PRP\")*/||pos.equals(\"EX\")||word.equals(\"counseling\")||word.equals(\"Counseling\")){\n\t\t\t\tint beginning = i;\n\t\t\t\tint ending = i;\n\t\t\t\tboolean endFound = false;\n\t\t\t\tint j = i+1;\n\t\t\t\twhile(!endFound){\n\t\t\t\t\tString next=rawWords.get(j).split(\"\\\\s\")[1];\n\t\t\t\t\tif(next.equals(\"NN\")||next.equals(\"NNS\")||next.equals(\"NNP\")||next.equals(\"NNPS\")||next.equals(\"CD\")||(next.equals(\"CC\")&&rawWords.get(j-1).split(\"\\\\s\")[1].equals(rawWords.get(j+1).split(\"\\\\s\")[1]))){\n\t\t\t\t\t\tending++;\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tendFound = true;\n\t\t\t\t}\n\t\t\t\tboolean beginningFound = false;\n\t\t\t\tj = i-1;\n\t\t\t\twhile(!beginningFound){\n\t\t\t\t\tString[] pArray = rawWords.get(j).split(\"\\\\s+\");\n\t\t\t\t\tString prior = pArray[1];\n\t\t\t\t\tif(j>2 &&prior.equals(rawWords.get(j-2).split(\"\\\\s+\")[1])&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"CC\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\"))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if(prior.equals(\"JJ\")||prior.equals(\"JJR\")||prior.equals(\"JJS\")||prior.equals(\"PRP$\")||prior.equals(\"RBS\")||prior.equals(\"$\")||prior.equals(\"RB\")||prior.equals(\"NNP\")||prior.equals(\"NNPS\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>1&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\",\")&&(rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-2).split(\"\\\\s+\")[1].equals(\"RB\")))){\n\t\t\t\t\t\tbeginning-=2;\n\t\t\t\t\t\tj-=2;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBN\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"RB\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if (prior.equals(\"VBG\")&&j>0&&(rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJR\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"JJ\")||rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"PRP$\"))){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((prior.equals(\"RBR\")||pArray[0].equals(\"not\"))&&rawWords.get(j+1).split(\"\\\\s+\")[1].equals(\"JJ\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if((pArray[0].equals(\"Buying\")||pArray[0].equals(\"buying\"))&&rawWords.get(j+1).split(\"\\\\s+\")[0].equals(\"income\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse if(pArray[0].equals(\"counseling\")||pArray[0].equals(\"Counseling\")){\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tj--;\n\t\t\t\t\t\tif(rawWords.get(j).split(\"\\\\s+\")[1].equals(\"NN\")){\n\t\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (prior.equals(\"DT\")||prior.equals(\"POS\")){\n\t\t\t\t\t\t//j--;\n\t\t\t\t\t\tbeginning--;\n\t\t\t\t\t\tif(!rawWords.get(j-1).split(\"\\\\s+\")[1].equals(\"DT\"))\n\t\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tj--;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tbeginningFound = true;\n\t\t\t\t}\n\t\t\t\twhile(beginning<outSentence.size()){\n\t\t\t\t\toutSentence.remove(outSentence.size()-1);\n\t\t\t\t}\n\t\t\t\tString nounGroupLine = rawWords.get(beginning).split(\"\\\\s+\")[0]+\"\\tB-NP\";\n\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\tfor(int index = beginning+1; index<=ending; index++){\n\t\t\t\t\tnounGroupLine = rawWords.get(index).split(\"\\\\s+\")[0]+\"\\tI-NP\";\n\t\t\t\t\toutSentence.add(nounGroupLine);\n\t\t\t\t}\n\t\t\t\ti=ending;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString outLine = word+\"\\tO\";\n\t\t\t\toutSentence.add(outLine);\n\t\t\t}\n\t\t}\n\t\toutSentence.remove(0);\n\t\toutSentence.remove(outSentence.size()-1);\n\t\toutSentence.add(\"\");\n\t\treturn outSentence;\n\t}" ]
[ "0.6163612", "0.6087643", "0.6007746", "0.59917897", "0.5966886", "0.5959581", "0.59355974", "0.58774304", "0.5833479", "0.5823042", "0.5794909", "0.57578677", "0.57296795", "0.5687367", "0.56546307", "0.5649098", "0.56307614", "0.561223", "0.55949044", "0.55813634", "0.5572849", "0.5545729", "0.553107", "0.5510307", "0.5506666", "0.54825586", "0.5480423", "0.54729193", "0.5436061", "0.54211074", "0.5418563", "0.5417621", "0.54021", "0.53931564", "0.5385813", "0.53855324", "0.53827816", "0.53784347", "0.53780156", "0.53746927", "0.53707016", "0.5350503", "0.53458226", "0.5344243", "0.53438777", "0.5332891", "0.53323096", "0.53247666", "0.53074914", "0.53035575", "0.5289902", "0.52883863", "0.5283004", "0.5282194", "0.52761245", "0.52618945", "0.52618945", "0.5258796", "0.5241552", "0.5240797", "0.52329063", "0.5224872", "0.52218795", "0.5219538", "0.52113646", "0.5205053", "0.5178421", "0.5174299", "0.5162694", "0.516162", "0.5157665", "0.51569206", "0.5149824", "0.514843", "0.51465017", "0.51444596", "0.51443017", "0.51438665", "0.5140927", "0.51396143", "0.5137619", "0.5136694", "0.513634", "0.51328987", "0.51292217", "0.5127307", "0.511179", "0.5108413", "0.5104946", "0.5102089", "0.5100336", "0.5099122", "0.50974625", "0.50932944", "0.5092019", "0.50918597", "0.50892234", "0.50858814", "0.5085282", "0.5085066", "0.5083227" ]
0.0
-1
create a new row using the passed column data
private void addTableRow(String[] cols){ final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false); tr.setClickable(true); final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false); //tr1.setClickable(true); final TextView posView = (TextView)tr.findViewById(R.id.wordPos); final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription); final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss); final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1); // set the background color to indicate if the row was selected View.OnClickListener clickListener = new View.OnClickListener() { public void onClick(View v) { Drawable background = posView.getBackground(); int backColor = ContextCompat.getColor(context, R.color.row_background); if ((background instanceof ColorDrawable)) { int currentBackColor = ((ColorDrawable) background).getColor(); if (currentBackColor == rowSelectColor) backColor = rowBackColor; //else if (currentBackColor == rowHighlightColor) // backColor = rowHighlightColor; else backColor = rowSelectColor; } posView.setBackgroundColor(backColor); descriptionView.setBackgroundColor(backColor); glossView.setBackgroundColor(backColor); tr.setBackgroundColor(backColor); tr1.setBackgroundColor(backColor); } }; tr.setOnClickListener(clickListener); tr1.setOnClickListener(clickListener); // set the background color and text of the table row int backColor = rowBackColor; posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor); descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor); glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor); glossView1.setText(cols[3]); rows.add(tr); // save the collection of rows rows.add(tr1); tableLayout.addView(tr); tableLayout.addView(tr1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Row createRow();", "RowValue createRowValue();", "RowValues createRowValues();", "public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}", "Column createColumn();", "Rows createRows();", "Col createCol();", "Row<T> createRow(final T element);", "int addRow(RowData row_data) throws IOException;", "DataFrameRow<R,C> row(R rowKey);", "void newRow(List<C> row) throws Exception;", "public abstract void newColumn();", "public void newRow();", "public void addRow(String rowName);", "protected void addNewRow(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n this.isNotNullValue[i] = true;\n aggregators[i].agg(row[i]);\n }\n }\n prvKey = (byte[]) row[this.keyIndex];\n calculateMaxMinUnique();\n }", "protected abstract E newRow();", "private void createRowForNewColumnButton(Composite section2)\n {\n buttonNewColumn = toolkit.createButton(section, \"New Column...\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonNewColumn, SWT.TOP);\n buttonNewColumn.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n NewColumnPopup dialog = new NewColumnPopup(getShell());\n if (dialog.open() == Dialog.OK)\n {\n // if the first field is not set\n if (valueToRecognizeReq == null)\n {\n valueToRecognizeReq = new Column(dialog.getColumnInput(), dialog.getRegexInput());\n reqIdComponent.setValueText(valueToRecognizeReq.getText());\n }\n else\n {\n tree.add(new Column(dialog.getColumnInput(), dialog.getRegexInput()));\n listFormat.refresh();\n }\n controller.removeDocumentType();\n updateWizard();\n }\n }\n });\n\n }", "void row_Create(String[] col){\n\t\tStatement stm=null;\n\t\tResultSet rs=null;\n\t\tint currentMaxId=0;\n\t\ttry{\n\t\t\t//Create one tuple by executing SQL command\n\t\t\tstm=con.createStatement();\n\t\t\trs=stm.executeQuery(\"select max(id) from \"+tableName);\n\t\t\tif(rs.next()) currentMaxId=rs.getInt(1);\n\t\t\tString sql=\"insert into \"+tableName+ \" values(\"+(currentMaxId+1)+\", '\"+col[1]+\"', '\"+col[2]+\"', '\"+col[3]+\"', '\"+col[4]+\"', '\"+col[5]+\"', \"+col[6]+\", \"+col[7]+\", \"+col[8]+\", '\"+col[9]+\"', '\"+col[10]+\"', \"+col[11]+\", \"+col[12]+\", '\"+col[13]+\"', '\"+col[14]+\"')\";\n\t\t\tSystem.out.println(\"sql: \"+sql);\n\t\t\tstm.executeUpdate(sql);\n\t\t\t\n\t\t\t//Append commands and time stamp on log file\n\t\t\toutfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\toutfile.newLine();\n\t\t\toutfile.write(sql);\n\t\t\toutfile.newLine();\n\t\t\toutfile.newLine();\n\t\t\n\t\t//Catch SQL exception\n\t\t}catch (SQLException e ) {\n\t\t\te.printStackTrace();\n\t }\n\t\t\n\t\t//catch I/O exception\n\t\tcatch(IOException ioe){ \n\t\t\t ioe.printStackTrace();\n\t\t System.exit(1);\n\t\t} finally {\n\t \ttry{\n\t if (stm != null) stm.close(); \n\t if (rs!=null) rs.close();\n\t }\n\t \tcatch (SQLException e ) {\n\t \t\te.printStackTrace();\n\t\t }\n\t }\t\n }", "public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }", "private ObjectColumnWithRowId[] createColumnWithRowId(Object[] dataPage) {\n ObjectColumnWithRowId[] columnWithIndexes =\n new ObjectColumnWithRowId[dataPage.length];\n for (short i = 0; i < columnWithIndexes.length; i++) {\n columnWithIndexes[i] = new ObjectColumnWithRowId(dataPage[i], i, dataType);\n }\n return columnWithIndexes;\n }", "public long insertNewRow(){\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_PAIN_ASSESSMENT_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_PRES_NUM, \"0\");\n initialValues.put(KEY_ANALGESIC_ADMIN_NUM, \"0\");\n initialValues.put(KEY_NERVE_BLOCK_NUM, \"0\");\n initialValues.put(KEY_ALTERNATIVE_PAIN_RELIEF_NUM, \"0\");\n long id = db.insert(DATA_TABLE, null, initialValues);\n\n String value = MainActivity.deviceID + \"-\" + id;\n updateFieldData(id, KEY_UNIQUEID, value);\n\n return id;\n }", "public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}", "public Row(TableBase table, Object[] data) {\n this.table = table;\n this.rowData = data;\n }", "public TableRow createBadRow(String data) {\n TableRow output = new TableRow();\n output.set(\"json\", data);\n return output;\n }", "@Override\r\n\tpublic void addRow(Object[] rowData) {\r\n\t\ttry{\r\n\t\t\tPersona newRecord = new Persona();\r\n\t\t\tnewRecord.setNome((String)rowData[0]);\r\n\t\t\tnewRecord.setCognome((String)rowData[1]);\r\n\t\t\tnewRecord.setTelefono((String)rowData[2]);\r\n\t\t\tnewRecord.setIndirizzo((String)rowData[3]);\r\n\t\t\tnewRecord.setEta(Integer.parseInt((String)rowData[4]));\r\n\t\t\tlista.create(newRecord);\r\n\t\t\tsuper.addRow(rowData);\r\n\t\t}\r\n\t\tcatch (NumberFormatException nfe) {\r\n\t\t\tJOptionPane.showMessageDialog(null, NFE_MESSAGE);\r\n\t\t}\r\n\t}", "public abstract void addColumn(Column c);", "public final Context createContext(int column) {\n return new Context(rowIndex, column, rowValueKey, subrowIndex);\n }", "protected abstract void buildRowImpl(T rowValue, int absRowIndex);", "@Override\n public final void buildRow(T rowValue, int absRowIndex) {\n setRowInfo(absRowIndex, rowValue);\n buildRowImpl(rowValue, absRowIndex);\n }", "public ColumnRow (Column colSistema, ColumnDB colBD)\r\n {\r\n this.columnaBD = colBD;\r\n this.columnaSistema = colSistema;\r\n }", "AttributeCell createAttributeCell();", "private DataRow convertDataRow(gherkin.formatter.model.Row row, List<String> cells) {\n DataRow dataRow = new DataRow();\n dataRow.setLine(row.getLine());\n dataRow.setCommentList(createCommentList(row.getComments()));\n dataRow.setValueList(cells);\n\n return dataRow;\n }", "public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\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}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}", "@Override\n public T apply(Row row, RowMetadata metadata) {\n Collection<String> columnNames = metadata.getColumnNames();\n\n if (columnNames.size() == 1) {\n Class<?> javaType = metadata.getColumnMetadata(0).getJavaType();\n assert javaType != null;\n if (javaType.equals(clazz)) {\n return clazz.cast(row.get(0));\n }\n }\n\n T instance;\n\n try {\n instance = clazz.getDeclaredConstructor().newInstance();\n } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n throw new R2dbcException(String.format(\"%s: field to create instance.\", className), e);\n }\n\n for (String columnName : columnNames) {\n Object value = row.get(columnName);\n\n Field field = allColumns.get(columnName);\n\n if (field != null) {\n // 1. setFieldValue: @Column exists, set value to associated field.\n Utils.setFieldValue(instance, field, value);\n } else {\n // 2. setFieldValue: @Column not exists, set value to ColumnName corresponding field.\n\n // FieldName <= ColumnName\n String fieldName = Utils.toCamelCase(columnName, false);\n\n // Field <= FieldName\n field = allFields.get(fieldName);\n\n if (field == null) {\n throw new R2dbcException(String.format(\"%s: field [%s] not found. (column %s)\", className, fieldName, columnName));\n }\n\n // sets value to field.\n Utils.setFieldValue(instance, field, value);\n }\n }\n\n return instance;\n }", "public Cell createCell(Row row, int column, String cellValue) {\n // Create a cell and put a value in it.\n Cell cell = row.createCell(column);\n cell.setCellValue(cellValue);\n return cell;\n }", "private String addFieldValuesToRow(String row, MapWritable mapw, String columnName) {\n Object valueObj = (Object) mapw.get(new Text(columnName));\n row += valueObj.toString() + \"|\";\n return row;\n }", "@Override\n public SqlDatabaseTable insertIntoTable(SqlDatabaseTable table, List<String> row) {\n executeSql(getInsertSql(table, Collections.singletonList(row)));\n return table;\n }", "private void addRowToPreparedStatement(Table table, Row row,\n\t\t\tPreparedStatement pstmt) throws SQLException, IOException {\n\t\tint index = 0;\n\t\t//\n\t\t// Set a parameter for each cell. For some types we have to\n\t\t// do an explicit NULL check here.\n\t\t//\n\t\tfor (Column column : table.getColumns()) {\n\t\t\tindex++;\n\t\t\tDataType type = column.getType();\n\t\t\tString columnName = column.getName();\n\t\t\tswitch (type) {\n\t\t\t\tcase BINARY :\n\t\t\t\t\tif (row.getInt(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.INTEGER);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setInt(index, row.getInt(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BOOLEAN :\n\t\t\t\t\tpstmt.setBoolean(index, row.getBoolean(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase BYTE :\n\t\t\t\t\tpstmt.setByte(index, row.getByte(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase DOUBLE :\n\t\t\t\t\tif (row.getDouble(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.DOUBLE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setDouble(index, row.getDouble(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase FLOAT :\n\t\t\t\t\tpstmt.setFloat(index, row.getFloat(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase INT :\n\n\t\t\t\t\tif (row.getShort(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.INTEGER);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setShort(index, row.getShort(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LONG :\n\t\t\t\t\tif (row.getInt(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.BIGINT);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setLong(index, row.getInt(columnName));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MONEY :\n\t\t\t\t\tpstmt.setBigDecimal(index, row.getBigDecimal(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase NUMERIC :\n\t\t\t\t\tpstmt.setFloat(index, row.getFloat(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLE :\n\t\t\t\t\tpstmt.setBytes(index, row.getBytes(columnName));\n\t\t\t\t\tbreak;\n\t\t\t\tcase SHORT_DATE_TIME :\n\t\t\t\t\tif (row.getDate(columnName) == null) {\n\t\t\t\t\t\tpstmt.setNull(index, Types.DATE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpstmt.setDate(index,\n\t\t\t\t\t\t\t\tnew java.sql.Date(row.getDate(columnName)\n\t\t\t\t\t\t\t\t\t\t.getTime()));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tpstmt.setString(index, row.getString(columnName));\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t//\n\t\t// Add the statement to the batch\n\t\t//\n\t\tpstmt.addBatch();\n\t}", "FromValuesColumns createFromValuesColumns();", "OrColumn createOrColumn();", "public abstract Cell createDataCell() throws DailyFollowUpException;", "public ColumnRow ()\r\n {\r\n super();\r\n }", "public void insertRow(Vector<Row> _data) {\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insertRow: table invalid, nothing done\");\r\n return;\r\n }\r\n //inserts a row and updates indexes\r\n if(_data.size() == 0){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is empty, no data inserted\");\r\n return;\r\n }\r\n if(!rows.isEmpty() && _data.elementAt(0).getData().size() != rows.get(rows.keySet().iterator().next()).getData().size()){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is a mismatched size to existing data, no data inserted\");\r\n return;\r\n }\r\n for(Row r : _data) {\r\n String key = \"\";\r\n for(int i : primKeyIndexes)\r\n key = key + r.getDataAtIndex(i);\r\n rows.put(key, r);\r\n }\r\n }", "public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }", "GridDataModel create(int parentRow, GridDataModel parentModel);", "private void insert(String sql, long rowId, int runId, int payloadColumns) {\n String nodeId = engine.getEngineName();\n\n Object[] values = new Object[payloadColumns + 3];\n values[0] = rowId;\n values[1] = nodeId;\n values[2] = runId;\n\n for (int c = 3; c < values.length; c++) {\n values[c] = RandomStringUtils.randomAlphanumeric(100);\n }\n\n engine.getSqlTemplate().update(sql, values);\n }", "@Override\n\tpublic Cell createCell()\n\t{\n\t\treturn derivedColumn.createCell();\n\t}", "public void AddRow(String Table, String Value)\r\n {\n }", "public void addData(String[] row) {\n this.data.add(row);\n }", "@Override\n\t\tpublic Row asRow(TicketCharge data) {\n\t\t\tRow row = new Row(getTableName());\n\t\t\trow.set(TICKETCHARGE.TICKET_ID,data.getTicketID());\n\t\t\trow.set(TICKETCHARGE.EXTRA_ID,data.getExtraID());\n\t\t\trow.set(TICKETCHARGE.QUANTITY,data.getQuantity());\n\t return row;\n\t\t}", "public Builder addRow(\n int index, io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }", "void inserSingletRow(String row) {\n String[] values = row.trim().split(\"\\\\s+\");\n insertSingleRow(values);\n }", "public abstract List<V> makeRowData();", "public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}", "public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }", "public Row createRow(Sheet sheet, int r) {\n Row row = sheet.createRow(r);\n return row;\n }", "Row(String name) {\r\n\t\tthis.name = name;\r\n\t\t//this.price = price;\r\n\t\t//this.type = type;\r\n\t}", "@Override\n public Participant apply(Row row) {\n return new Participant(row.getString(0), row.getString(1), row.getString(2), row.getString(3), row.getString(4),\n row.getBoolean(5));\n }", "public static Row createRow(String[] rowAsArray, int lineCount) {\n\n\t\t//Row is initialized to null so that we don't get an error if ININC is blank\n\t\t//Row object requires ININC number in constructor\n\t\tRow outputRow = new Row(lineCount);\n\n\t\t//First check if ININC column is empty for current row data\n\t\tif(rowAsArray[11].isEmpty()) {\n\t\t\tGUI.sendError(\"Error: ININC# does not exist for row \"+lineCount+\".\");\n\t\t}\n\t\telse {\n\t\t\t//If not, try to parse what is there\n\t\t\t//It should be a long integer\n\t\t\ttry {\n\t\t\t\toutputRow.setIninc(Long.parseLong(rowAsArray[11]));\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t//Otherwise we get an error and this row is set to invalid\n\t\t\t\t//A message is printed informing what the error is and the line in which the error occurred\n\t\t\t\tGUI.sendError(\"Error: ININC# is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t}\n\n\n\t\t//try/catch for INPRTY\n\t\t//Any numerical values have to be parsed, which allows for an exception if the String is not numerical\n\t\t//The try/catch statements handle the NumberFormatException that could potentially be thrown\n\t\ttry {\n\t\t\toutputRow.setPriority((int) Double.parseDouble(rowAsArray[0]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t//If there is not a valid number where there should be, print an error and set this row to invalid\n\t\t\t//Data in this row must be corrected in GUI to make it valid again\n\t\t\tGUI.sendError(\"Error: INPRTY is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//address block\n\t\t//error handling tbd\n\t\toutputRow.setAddress(rowAsArray[1].trim());\n\n\t\tif(rowAsArray[2] != null) {\n\t\t\toutputRow.setCross(rowAsArray[2].trim());\n\t\t}\n\t\telse {\n\t\t\toutputRow.setCross(\"\");\n\t\t}\n\t\t//end address block\n\n\n\t\t//Date block\n\t\t//DateTimeFormatter is created to specify format that we expect the date/time to be in\n\t\t//This is consistent with what is usually found in the Excel/CSV\n\t\t//If the date/time read from CSV is not able to be read by this formatter, an error will be thrown\n\t\t//And this line of data will not be included\n\t\tDateTimeFormatter dateAndTimeFormatter = DateTimeFormatter.ofPattern(\"M/d/yyyy H:mm[:ss]\");\n\t\ttry {\n\t\t\toutputRow.setDispatch(LocalDateTime.parse(rowAsArray[3].trim(), dateAndTimeFormatter));\n\t\t\toutputRow.setArrive(LocalDateTime.parse(rowAsArray[4].trim(), dateAndTimeFormatter));\n\t\t}\n\t\tcatch (DateTimeParseException e) {\n\t\t\tGUI.sendError(\"Error: could not parse dispatch and/or arrive time for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//See above comments about parsing numbers\n\t\t//This block attempts to parse the RESPONSE variable as a double\n\t\ttry {\n\t\t\toutputRow.setResponseDouble(Double.parseDouble(rowAsArray[5]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: RESPONSE is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//If parsing was successful, we can also check that the number parsed is still valid\n\t\t//Response time logically must be at least zero, so any negative response time results in a warning\n\t\t//Warning (as opposed to error) means the row will still be valid, but there is possibly something wrong with the data\n\t\tif(outputRow.getResponseDouble() < 0) {\n\t\t\tGUI.sendInfo(\"Warning: RESPONSE is invalid (less than zero) for row \"+lineCount+\".\");\n\t\t\tGUI.sendInfo(\"This will be overwritten by a manually calculated response time, but still worth noting.\");\n\t\t}\n\n\n\t\toutputRow.setStaffing(rowAsArray[6].trim());\n\t\t//Quick validation check to ensure Staffing is either Volunteer or Career Staffing\n\t\tif(outputRow.getStaffing().toLowerCase().compareTo(\"volunteer\") != 0 && outputRow.getStaffing().toLowerCase().compareTo(\"career staff\") != 0) {\n\t\t\tGUI.sendError(\"Error: Staffing is unexpected value (neither Volunteer nor Career Staffing) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//The following code ensures that the day of week is a valid day of week\n\t\t//Since is this isn't an entirely essential variable, a warning is thrown if day of week is invalid\n\t\t//Again, the data will still be included, but it does suggest there is an issue with it\n\t\toutputRow.setDay(rowAsArray[7].trim());\n\t\tswitch (outputRow.getDay().toLowerCase()) {\n\t\tcase \"monday\":\n\t\t\tbreak;\n\t\tcase \"tuesday\":\n\t\t\tbreak;\n\t\tcase \"wednesday\":\n\t\t\tbreak;\n\t\tcase \"thursday\":\n\t\t\tbreak;\n\t\tcase \"friday\":\n\t\t\tbreak;\n\t\tcase \"saturday\":\n\t\t\tbreak;\n\t\tcase \"sunday\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tGUI.sendError(\"Error: Day of Week is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t\tbreak;\n\t\t}\n\n\n\t\t//SSA validation moved to row class\n\t\toutputRow.setSsa(rowAsArray[8].trim());\n\n\t\t//Try/catch for district number to ensure data is numerical and avoid error causing crash\n\t\ttry {\n\t\t\toutputRow.setDistrict((int) Double.parseDouble(rowAsArray[9]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: District number is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//moved district number validation to row class\n\n\n\t\t//not sure about validation for these\n\t\toutputRow.setInori(rowAsArray[10].trim());\n\t\toutputRow.setInunit(rowAsArray[12].trim());\n\t\toutputRow.setInbdg(rowAsArray[13].trim());\n\t\toutputRow.setInitype(rowAsArray[14].trim());\n\n\n\t\t//INSECT variable is numerical so try/catch to avoid errors\n\t\ttry {\n\t\t\toutputRow.setInsect((int) Double.parseDouble(rowAsArray[15]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: INSECT is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//see above comments on numerical variables\n\t\ttry {\n\t\t\toutputRow.setCadinc(Long.parseLong(rowAsArray[16]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: CAD_INC is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//Service_type should be either FIRE or EMS\n\t\t//We can check this easily, if it is neither than throw an error and skip this row of data\n\t\t//Subject to change \n\t\tif(rowAsArray[17].compareTo(\"FIRE\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.FIRE);\n\t\t}\n\t\telse if (rowAsArray[17].compareTo(\"EMS\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.EMS);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: SERVICE_TYPE is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\toutputRow.setFua(rowAsArray[18].trim());\n\n\n\t\tif(outputRow.getDispatchTime() != null && outputRow.getArriveTime() != null) {\n\t\t\t//for calculating response time\n\t\t\t//first calculates total number of minutes between dispatch and arrive\n\t\t\tint responseTimeMinutesValue = (int) ChronoUnit.MINUTES.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\tint responseTimeHoursValue = 0;\n\t\t\t//If minutes is 60 or greater, than response time is over an hour, so we have to account for that\n\t\t\twhile(responseTimeMinutesValue > 59) {\n\t\t\t\tresponseTimeMinutesValue -= 60;\n\t\t\t\tresponseTimeHoursValue++;\n\t\t\t}\n\t\t\t//Once hours and minutes are calculated, move on to seconds\n\t\t\tint responseTimeSecondsValue = (int) ChronoUnit.SECONDS.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\t//Here we check to ensure that DISPATCH comes before ARRIVE, otherwise throw an error since we have a time traveler on our hands\n\t\t\tif(responseTimeSecondsValue < 0) {\n\t\t\t\tGUI.sendError(\"Error: Response time less than zero (calculated from Dispatch and Arrive) for row \"+lineCount+\".\");\t\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t\t//Assuming that check passes, we can finalize the value of the seconds variable by calculating it modulo 60\n\t\t\tresponseTimeSecondsValue = responseTimeSecondsValue%60;\n\n\t\t\t//now make sure hours is 23 or less\n\t\t\tif(responseTimeHoursValue > 23) {\n\t\t\t\tresponseTimeHoursValue = 23;\n\t\t\t\tGUI.sendError(\"Error: Response time exceeds 1 day for row \"+lineCount+\". Response time value in table may not be accurate; check Dispatch and Arrival times.\");\n\t\t\t}\n\t\t\t//Then use the calculated variables for hours, minutes, and seconds to create the responseTime variable\n\t\t\tLocalTime responseTime = LocalTime.of(responseTimeHoursValue, responseTimeMinutesValue, responseTimeSecondsValue);\n\t\t\toutputRow.setResponseTime(responseTime);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: Dispatch and/or Response time are null for row \"+lineCount+\", so response time could not be calculated.\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//Now that all of the data has been imported into the Row object, return the Row object so it can be added to ArrayList\n\t\treturn outputRow;\n\t}", "@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }", "public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }", "public void addRow(final Object[] rowData) {\n\t\t((DefaultTableModel) this.model).addRow(rowData);\n\t}", "private static void addRow(VectorizedRowBatch b, long rowIdx, long rndValue) {\n ((LongColumnVector) b.cols[0]).vector[b.size] = rndValue;\n // column s2: STRUCT<fs: DECIMAL(20, 6)> alternate null values at STRUCT, no nulls on CHILD\n if (rowIdx % 2 == 0) {\n b.cols[1].noNulls = false;\n b.cols[1].isNull[b.size] = true;\n } else {\n HiveDecimalWritable d = new HiveDecimalWritable();\n d.setFromLongAndScale(rndValue, scale);\n ((DecimalColumnVector) ((StructColumnVector) b.cols[1]).fields[0]).vector[b.size] = d;\n ((BytesColumnVector) ((StructColumnVector) b.cols[1]).fields[1])\n .setVal(b.size, String.valueOf(rndValue).getBytes(StandardCharsets.UTF_8));\n }\n // column u3: UNION<LONG, STRING> repeat, NULL, LONG, STRING\n if (rowIdx % 3 == 0) {\n b.cols[2].noNulls = false;\n b.cols[2].isNull[b.size] = true;\n } else if (rowIdx % 3 == 1) {\n ((UnionColumnVector) b.cols[2]).tags[b.size] = 0;\n ((LongColumnVector) ((UnionColumnVector) b.cols[2]).fields[0]).vector[b.size] = rndValue;\n } else {\n ((UnionColumnVector) b.cols[2]).tags[b.size] = 1;\n ((BytesColumnVector) ((UnionColumnVector) b.cols[2]).fields[1])\n .setVal(b.size, String.valueOf(rndValue).getBytes(StandardCharsets.UTF_8));\n }\n // column f4: STRING\n ((BytesColumnVector) b.cols[3])\n .setVal(b.size, String.valueOf(rndValue).getBytes(StandardCharsets.UTF_8));\n // column ridx: LONG\n ((LongColumnVector) b.cols[4]).vector[b.size] = rowIdx;\n }", "public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent)\n throws StandardException\n {\n ExecRow row;\n String oid_string = null;\n String roleid = null;\n String grantee = null;\n String grantor = null;\n boolean wao = false;\n boolean isdef = false;\n\n if (td != null)\n {\n RoleGrantDescriptor rgd = (RoleGrantDescriptor)td;\n\n roleid = rgd.getRoleName();\n grantee = rgd.getGrantee();\n grantor = rgd.getGrantor();\n wao = rgd.isWithAdminOption();\n isdef = rgd.isDef();\n UUID oid = rgd.getUUID();\n oid_string = oid.toString();\n }\n\n /* Build the row to insert */\n row = getExecutionFactory().getValueRow(SYSROLES_COLUMN_COUNT);\n\n /* 1st column is UUID */\n row.setColumn(1, new SQLChar(oid_string));\n\n /* 2nd column is ROLEID */\n row.setColumn(2, new SQLVarchar(roleid));\n\n /* 3rd column is GRANTEE */\n row.setColumn(3, new SQLVarchar(grantee));\n\n /* 4th column is GRANTOR */\n row.setColumn(4, new SQLVarchar(grantor));\n\n /* 5th column is WITHADMINOPTION */\n row.setColumn(5, new SQLChar(wao ? \"Y\" : \"N\"));\n\n /* 6th column is ISDEF */\n row.setColumn(6, new SQLChar(isdef ? \"Y\" : \"N\"));\n\n return row;\n }", "UsingCols createUsingCols();", "ColumnFull createColumnFull();", "public abstract List<V> makeColumnData(C column);", "@Override\n\tpublic void visit(RowConstructor arg0) {\n\t\t\n\t}", "public abstract DynamicDataRow makeUIRowData();", "public Builder addRow(io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }", "public static String createRow(String[] row)\r\n\t{\r\n\t\tString rowHTML=\"<tr>\";\r\n\t\tfor (int i=0;i<row.length;i++)\r\n\t\t{\r\n\t\t\trowHTML+=\"<td>\"+row[i]+\"</td>\";\r\n\t\t}\r\n\t\trowHTML+=\"</tr>\";\r\n\t\treturn rowHTML;\r\n\t}", "FromTable createFromTable();", "public void moveToInsertRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToInsertRow\");\n checkClosed();\n insertRow = new Value[columnCount];\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "ColumnOperand createColumnOperand();", "public Row(BaseTable table) {\n this.table = table;\n }", "void setColumnValue(int colIndex, Object value);", "public static void setData(String rowData) {\n data.append(rowData);\n }", "public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }", "public static String generateRow(String row){\n\t\tString rowForSQL = \"\";\n\t\tString[] cols = row.split(\";\");\n\t\tfor(int i = 0; i < cols.length; i++){\n\t\t\trowForSQL += \"'\"+cols[i]+\"'\" + ( i != (cols.length-1) ? \",\" : \"\");\t\n\t\t}\t\t\n\t\treturn rowForSQL;\n\t}", "public void addRow(DataRow dataRow) {\n this.dataRows.add(dataRow);\n }", "protected void addRowAttributes(TableRowBuilder row) {\n }", "public Builder addRow(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }", "public String onNewRow(Recordset rs, String rowTemplate) \r\n\t\tthrows Throwable;", "protected void populateDynamicCells(int resultsRow) {\n }", "private GeneralQueryFormat createQueryFromRow(int rowNum) {\n String fname = this.employee_first_name.get(rowNum);\n String lname = this.employee_last_name.get(rowNum);\n String mname = this.employee_middle_initial.get(rowNum);\n String ssn = this.employee_ssn.get(rowNum);\n String address = this.employee_address.get(rowNum);\n String address2 = this.employee_address2.get(rowNum);\n String city = this.employee_city.get(rowNum);\n String state = this.employee_state.get(rowNum);\n String zip = this.employee_zip.get(rowNum);\n String phone = this.employee_phone.get(rowNum);\n String phone2 = this.employee_phone2.get(rowNum);\n String pager = this.employee_pager.get(rowNum);\n String cell = this.employee_cell.get(rowNum);\n String email = this.employee_email.get(rowNum);\n String bdate = this.employee_birthdate.get(rowNum);\n String branchId = this.branch.getBranchId() + \"\";\n String hireDate = this.employee_hire_date.get(rowNum);\n \n ssn = ssn.replaceAll(\"-\", \"\");\n if(bdate.equals(\"\")) bdate = \"01/01/1000\";\n if(hireDate.equals(\"\")) hireDate = \"NOW()\";\n \n employee_save_query query = new employee_save_query();\n query.setCompany(company.getName());\n //query.update(fname, lname, mname, phone, phone2, cell, pager, address, address2, city, state, zip, ssn, email, hireDate, \"2100-10-10\",\n // \"(CASE WHEN (SELECT (MAX(employee_id) + 1) From employee) IS NULL THEN 1 ELSE (SELECT (MAX(employee_id) + 1) From employee) END)\",\n // \"0\", false, bdate, this.branch.getId());\n return query;\n }", "private void insert(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n LivenessInfo info,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n Row row = BTreeRow.noCellLiveRow(buildIndexClustering(rowKey, clustering, cell), info);\n PartitionUpdate upd = partitionUpdate(valueKey, row);\n indexCfs.getWriteHandler().write(upd, ctx, false);\n logger.debug(\"Inserted entry into index for value {}\", valueKey);\n }", "private EditableTableModel(Object[][] rowData, String[] columnName) { // constructor\n\t super(rowData, columnName);\n\t this.editable_columns = new boolean[columnName.length];\n\t Arrays.fill(editable_columns, Boolean.FALSE);\n\t }", "public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }", "private void createBoardRow(int row, int startState, int endState) {\n\t\tLog.d(LOG_TAG, String.format(\"Create board row %s with start state: %s and end state: %s\",row,startState,endState));\n\t\tBoardSquareInfo[][] squares = getBoardGame();\n\t\t\n\t\tfor(int col=0; col<COLUMNS; col++) {\n\t\t\tint id = row*COLUMNS+col;\n\t\t\tint state = (col%2 == 0)? startState: endState;\n\t\t\tint chip = (state == PLAYER1_STATE || state == PLAYER2_STATE)? PAWN_CHIP: EMPTY_CHIP;\n\t\t\t\n\t\t\tsquares[row][col] = new BoardSquareInfo(id,row,col,state,chip);\n\t\t}\n\t}", "T getRowData(int rowNumber);", "Column(String column) {\n this.column = column;\n }", "Column(String column) {\n this.column = column;\n }", "private ContainerTag generateTableRow(HtmlData rowData) {\n ContainerTag row = tr();\n for (String entry : rowData.getFields()) {\n row.with(td(entry));\n }\n return row;\n }", "private int AddExcelRow(Row excelRow)\n {\n DataFormatter dataFormatter = new DataFormatter();\n int i=1;\n\n\n try {\n if (insertStatement == null)\n insertStatement =conn.prepareStatement(insertSQL);\n for(int idx =0;idx < fieldLength.size();idx++)\n {\n String cellValue =dataFormatter.formatCellValue(excelRow.getCell(idx)).trim();\n if (idx != 10) {\n\n if (ArrayUtils.contains( decimalIndex, idx ))\n {\n if (!cellValue.isEmpty()) {\n cellValue = cellValue.replaceAll(patt,\"\");\n if (cellValue.equals(\"\"))\n insertStatement.setObject(i, null, Types.DECIMAL);\n else\n insertStatement.setDouble(i, Double.parseDouble(cellValue));\n }\n else\n insertStatement.setObject(i, null, Types.DECIMAL);\n }\n else\n {\n if (!cellValue.isEmpty())\n insertStatement.setString(i, cellValue.substring(0, cellValue.length() > Integer.parseInt(fieldLength.get(idx + 1).toString()) ? Integer.parseInt(fieldLength.get(idx + 1).toString()) : cellValue.length()));\n else\n insertStatement.setObject(i, null, Types.NVARCHAR);\n }\n\n\n i = i + 1;\n }\n\n\n }\n insertStatement.setString(i, \"N\");\n i=i+1;\n insertStatement.setString(i, \"M\"+ fileId);\n insertStatement.addBatch();\n return 0;\n }\n catch (NumberFormatException numEx){\n logger.error(\"Error\",numEx);\n return -1;\n }\n catch (SQLException ex)\n {\n logger.error(\"Error\",ex);\n return -1;\n }\n finally {\n excelRow = null;\n }\n }", "public void addRow(String rowId, ResultValue[] columnResults, Map<String, Serializable> rowAnnotations) {\r\n if (columnResults == null) {\r\n columnResults = new ResultValue[0]; //todo fill with a ResultBlank\r\n }\r\n ResultRow row = new ResultRow(rowId, currentRow, columnResults, rowAnnotations);\r\n rows.add(row);\r\n\r\n currentRow++;\r\n }", "public boolean addRow(TableRow row) {\n\n if (row.getContent().size() != columns.size())\n throw new IllegalArgumentException(\"El nombre de columnes de la nova fila no coincideix amb les de la taula\");\n\n for (String column : getColumnNames())\n if (!row.getContent().containsKey(column))\n throw new IllegalArgumentException(\"La nova fila no conté la columna: \" + column);\n\n return dataStructure.add(row);\n }", "public void addRow(Row r) {\n\t\tcontainingRows.add(r);\n\t}", "public interface IRowProvider<T> {\n\t\n\t/**\n\t * Create a new Row for the element specified.\n\t */\n\tRow<T> createRow(final T element);\n\n}", "public static void addRow(String[] arg0, String[] arg1) {\n tableModel.addRow(arg0, arg1);\n updateSummaryTable();\n inputModel.addRow(arg0[0], arg1.length / 2);\n updateInputTable();\n }", "public Row getRow() {\n\treturn new Row(rowIndex); \n }", "boolean addEntry(String[] colValues) throws SQLException;" ]
[ "0.7685095", "0.6898037", "0.68943644", "0.68220294", "0.65749544", "0.6395459", "0.6385258", "0.63338196", "0.63326055", "0.6154752", "0.60653085", "0.5965188", "0.59595186", "0.59517336", "0.59042954", "0.58958346", "0.5875102", "0.58700454", "0.58221555", "0.58091545", "0.5786559", "0.5770765", "0.574086", "0.57262886", "0.56447244", "0.56387144", "0.5601522", "0.5565257", "0.55635285", "0.5559936", "0.55466306", "0.5515177", "0.5497647", "0.54818064", "0.54797834", "0.5462029", "0.5456475", "0.5450052", "0.5446644", "0.54453486", "0.5442448", "0.5437978", "0.5432241", "0.5427458", "0.5416909", "0.541628", "0.54053044", "0.5399511", "0.53811425", "0.5348622", "0.5326248", "0.5325532", "0.529326", "0.52863497", "0.52849954", "0.5284374", "0.528128", "0.5280145", "0.52776074", "0.5261002", "0.52587944", "0.524887", "0.5248165", "0.5245667", "0.52357876", "0.52279145", "0.52270544", "0.5224812", "0.5221665", "0.520508", "0.5198165", "0.5195457", "0.519422", "0.51906747", "0.51801974", "0.5175775", "0.51690805", "0.51672274", "0.51636475", "0.5152619", "0.51440144", "0.5134613", "0.51342446", "0.5132432", "0.5131089", "0.51291376", "0.5121388", "0.51139915", "0.51053137", "0.51009715", "0.50970334", "0.50970334", "0.50945103", "0.5092267", "0.50829804", "0.50729024", "0.5072884", "0.5059461", "0.50522655", "0.5051304", "0.5048263" ]
0.0
-1
verify that the number of rows selected is correct
private boolean row_number_error(int min, int max) { int row_size = getHighlightedRows() / 2; if ( (min <= row_size) && (row_size <= max)) return false; String dup = (min > 1)? "s": ""; if (min > row_size) { String status = "Please select at least " + min + " meaning" + dup; statusView.setText(status); } else if (row_size > max) { String status = (max > min)? "Please select between " + min + " and " + max + " meanings": "Please select " + min + " meaning" + dup; statusView.setText(status); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void checkRowCount(final int size1, final int size2) {\n\t\tif (size1 == size2) {\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_ROW_COUNT,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_PASSED,\n\t\t\t\t\tnull);\n\t\t\treturn;\n\t\t} else {\n\t\t\tLOGGER.error(\"Count of rows doesn't match.\");\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_ROW_COUNT,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\tContextComparator.CONTEXT_1.getName() + \" : \" + size1 + \", \"\n\t\t\t\t\t\t\t+ ContextComparator.CONTEXT_2.getName() + \" : \" + size2);\n\t\t\treturn;\n\t\t}\n\t}", "public int expectedRowCountDropDown(int actualRawCount){\n\t\t\n\t\t\t\tTestLog.log.info(\"verify selection\");\n\t\t\t\t\n\t\t\t\tSelect visibleRecords= new Select(driver.findElement(dropDown));\n\t\t\t\t\n\t\t\t\tTestLog.log.info(\"get selection from drop down\");\n\t\t\t\tWebElement element = visibleRecords.getFirstSelectedOption();\n\t\t\t\tString selectedValue= element.getText();\n\t\t\t\tint expectedRowCount=0;\n\t\t\t\t\n\t\t\t\ttry{\t\t\t\t\t\t\t\n\t\t\t\tTestLog.log.info(\"get actual row count\");\n\t\t\t\tif (actualRawCount <= 10){\n\t\t\t\t\tif(selectedValue.equalsIgnoreCase(\"10\")){\n\t\t\t\t\t\texpectedRowCount = actualRawCount;\n\t\t\t\t\t\t\t} else if(selectedValue.equalsIgnoreCase(\"25\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"50\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"100\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tTestLog.log.info(\"no record added\");\n\t\t\t\t\t\t\t\tSystem.out.println(\"No records appeared\");\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (actualRawCount > 10 && actualRawCount < 25){\n\t\t\t\t\tif(selectedValue.equalsIgnoreCase(\"10\")){\n\t\t\t\t\t\texpectedRowCount = \t10;\n\t\t\t\t\t\t\t} else if(selectedValue.equalsIgnoreCase(\"25\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"50\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"100\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.println(\"No records appeared\");\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (actualRawCount >= 25 && actualRawCount < 50){\n\t\t\t\t\tif(selectedValue.equalsIgnoreCase(\"10\")){\n\t\t\t\t\t\texpectedRowCount = \t10;\n\t\t\t\t\t\t\t} else if(selectedValue.equalsIgnoreCase(\"25\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t25;\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"50\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"100\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.println(\"No records appeared\");\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (actualRawCount >= 50 && actualRawCount < 100){\n\t\t\t\t\tif(selectedValue.equalsIgnoreCase(\"10\")){\n\t\t\t\t\t\texpectedRowCount = \t10;\n\t\t\t\t\t\t\t} else if(selectedValue.equalsIgnoreCase(\"25\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t25;\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"50\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t50;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"100\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \tactualRawCount;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.println(\"No records appeared\");\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (actualRawCount >= 100){\n\t\t\t\t\tif(selectedValue.equalsIgnoreCase(\"10\")){\n\t\t\t\t\t\texpectedRowCount = \t10;\n\t\t\t\t\t\t\t} else if(selectedValue.equalsIgnoreCase(\"25\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t25;\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"50\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t50;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else if(selectedValue.equalsIgnoreCase(\"100\")){\n\t\t\t\t\t\t\t\texpectedRowCount = \t100;\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.println(\"No records appeared\");\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception ex) {\n\t\t\t\tTestLog.log.info(\"Could not find dropdown\" + ex);\n\t\t\t}\n\t\t\t\treturn expectedRowCount;\n\t\t\t\n\t\t}", "@Test\r\n public void testNumberOfRowsInSection() {\r\n assertTrue(ConditionWait.tillGlobalTime(new ConditionWait.Condition() {\r\n @Override\r\n public boolean check() {\r\n return XIBTestTableViewLabelTexFieldViewController.testNumberOfRowsInSection;\r\n }\r\n }));\r\n }", "@Test\n\tpublic void testGetRowCount() {\n\t\tint result = m1.getRowCount();\n\t\tassertEquals(3, result);\n\t}", "@Test\n public void testGetRowCount() {\n System.out.println(\"getRowCount\");\n int expResult = 3;\n int result = testLibraryLibraryTableModel.getRowCount();\n assertEquals(expResult, result);\n\n }", "private boolean correctRowNumber()\n {\n \n extraRows = 0;\n final int oldSize = gradeAndSemesterList.size()-1+extraRows;\n \n \n if(gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal()< 2)\n extraRows += 2 - gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type2.ordinal();\n \n extraRows += 3*(this.extraGradeLevel-gradeAndSemesterList.get(gradeAndSemesterList.size()-1).type1.intValue());\n //Debug.line(\"extra rows post correction:\"+extraRows);\n \n \n this.fireTableRowsDeleted(gradeAndSemesterList.size()-1+extraRows, oldSize);\n return true; \n }", "public abstract int getNumRows();", "protected int checkRows(int rows, java.lang.String message) {\n // TODO codavaj!!\n return 0;\n }", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int rowCount();", "private int numRows(){\n return attrTable.getModel().getRowCount();\n }", "public abstract int getNumOfRows();", "int getRowsCount();", "@Test\r\n\t\t\tpublic void testDosFilasDespuesDeQuinta() {\n\t\t\t\tList<WebElement> tabla= driver.findElement(By.xpath(\"//table[@id='customers']\")).findElements(By.xpath(\".//tr[position() >5]\"));\r\n\t\t\t\tSystem.out.println(tabla.size());\t\r\n\t\t\t\tassertEquals(tabla.size(),2);\r\n\t\t\t}", "public int getRowCount();", "int getRows();", "int getRows();", "private boolean triggerValidation()\r\n {\r\n System.out.println(\"*** Validation row : \" + selRow + \" col : \" + selColumn + \" ***\") ;\r\n /*\r\n * using the colIndex u can get the column bean for that column and then depending the\r\n * datatype of the column u apply appropriate validation rules\r\n */\r\n Object newValue = ((CoeusTextField)txtCell).getText();\r\n\r\n if (!tableStructureBeanPCDR.isIdAutoGenerated()\r\n && (selColumn == tableStructureBeanPCDR.getPrimaryKeyIndex(0)))\r\n {\r\n if (checkDependency(selRow, \"\"))\r\n {\r\n if(!CheckUniqueId(newValue.toString(), selRow, selColumn))\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"chkPKeyUniqVal_exceptionCode.2401\");\r\n\r\n CoeusOptionPane.showInfoDialog(msg);\r\n //after failure of checking, make sure selecting the failed row\r\n\r\n return false; //fail in uniqueid check\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }\r\n else\r\n {\r\n return false;//fail in dependency check\r\n }\r\n\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n\r\n\r\n }", "public void verifyViewBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Selecting Row\" + rowNum + \" to View Batch details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).click();\n btnViewBatchDetail().click();\n Log.logBanner(\"Verifying View Batch detail columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyViewBatchDetailColumns();\n }", "@Override\r\n\tpublic int getRowCount() {\n\t\treturn checks.size();\r\n\t}", "@Test\r\n\tpublic void testCheckRows() {\n\t\tGrid g = new Grid();\r\n\t\t// full bottom row\r\n\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\tg.set(Grid.HEIGHT - 1, col, Color.GREEN);\r\n\t\t}\r\n\t\t// add two squares above the bottom row\r\n\t\tg.set(Grid.HEIGHT - 2, 3, Color.RED);\r\n\t\tg.set(Grid.HEIGHT - 3, 3, Color.RED);\r\n\t\t// remove the full row\r\n\t\tg.checkRows();\r\n\t\t// check that the grid has been updated correctly\r\n\t\tfor (int row = 0; row < Grid.HEIGHT; row++) {\r\n\t\t\tfor (int col = 0; col < Grid.WIDTH; col++) {\r\n\t\t\t\t// check the square at (row,col)\r\n\t\t\t\t// must have: (18,3) and (19,3) set\r\n\t\t\t\t// and all of the others not set\r\n\t\t\t\tif ((row == 18 || row == 19) && col == 3) {\r\n\t\t\t\t\tassertTrue(g.isSet(row, col));\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertFalse(g.isSet(row, col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int checkLines(){\r\n \tint contRows = 0;\r\n \t\r\n \tfor (float y = height; y >= 0 && contRows < 4; y--) {\r\n \t\tif (isFullRow(y)) {\r\n \t\t\tcontRows++;\r\n \t\t\tdeleteRow(y);\r\n \t\t}\r\n \t}\r\n \treturn contRows;\r\n }", "private boolean isRowValid(int row) {\n String name = (String) ((Vector) getTableModel().getDataVector().get(row)).get(0);\n int count = 0;\n count = ((Vector<Vector>) getTableModel().getDataVector())\n .stream()\n .filter(v -> v.get(0).equals(name))\n .map(i -> 1)\n .reduce(count, Integer::sum);\n if (count != 1) {\n return false;\n }\n return constantsProperty.isValid();\n }", "public void testGetSelectedItemsCountWithEmptyDb()\n\t{\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(0, selectedItemsCount);\n\t}", "double getRowCount();", "@Test\r\n public void testGetRowCount() {\r\n System.out.println(\"getRowCount\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n instance.addElement(new Organizador(new Utilizador(\"teste\", \"teste@isep.ipp.pt\", \"teste\", \"teste\", true, 5)));\r\n int expResult = 1;\r\n int result = instance.getRowCount();\r\n assertEquals(expResult, result);\r\n\r\n }", "public void testSelectIndex() {\n showFrame(box);\n for (int i=0;i < MAX_ENTRIES;i += MAX_ENTRIES / 10) {\n selectedIndex = -1;\n tester.actionSelectIndex(box, i);\n assertEquals(\"Wrong index selected\", i, selectedIndex);\n }\n }", "public void checkRows() {\n\t\tint [] array = new int [9];\n\n\t\t//store the row in the array from the sudoku board\n\t\tfor (int i = 0; i < sudoku.length; i ++) {\n\t\t\tarray[i] = sudoku[row][i];\n\t\t\t//System.out.print(\"Element \" + i + \" in row \" + row + \" : \" + array[i] + \" \\n\"); \n\t\t}\n\n\t\t//checking for duplicate elements in the array/row\n\t\tfor(int j = 0; j < sudoku.length; j++){\n\t\t\tfor(int k = j+1; k < sudoku.length; k++){\n\t\t\t\tif (array[j] == array[k]) {\n\t\t\t\t\tSystem.out.println(\"Duplicate found in row #\" + row);\n\t\t\t\t\tvalue = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public abstract int rows();", "public int findRowCount () throws DataAccessException;", "protected void checkRow(int row) {\n\tif (row < 0 || row >= rows) throw new IndexOutOfBoundsException(\"Attempted to access \"+toStringShort()+\" at row=\"+row);\n}", "public int getRows();", "public int getRows();", "@Test(priority = 7, dependsOnMethods = { \"verifyColumnsOfGrid\" }, groups = { \"Smoke\" })\n\t public static void verifyNumberOfRecords() throws InterruptedException {\n\t\ttest = report.startTest(\"Verify Numbers of Records In grid\");\n\t\tint rows = driver.findElements(By.xpath(xpathRowInGrid)).size();\n\t\ttest.log(LogStatus.PASS, \"Number of Rows In Grid\", \"\" + rows + \"rows In Grid is displaying\");\n\t}", "public int getNumRows() { return numRows; }", "@Override\n public int getRowCount() {\n return allLakes.size();\n }", "private void checkForSplitRowAndComplete(int length, int index) {\n // For singleton select, the complete row always comes back, even if\n // multiple query blocks are required, so there is no need to drive a\n // flowFetch (continue query) request for singleton select.\n //while ((position_ + length) > lastValidBytePosition_) {\n while (dataBuffer_.readableBytes() > lastValidBytePosition_) {\n // Check for ENDQRYRM, throw SQLException if already received one.\n checkAndThrowReceivedEndqryrm();\n\n // Send CNTQRY to complete the row/rowset.\n int lastValidByteBeforeFetch = completeSplitRow(index);\n\n // If lastValidBytePosition_ has not changed, and an ENDQRYRM was\n // received, throw a SQLException for the ENDQRYRM.\n checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch);\n }\n }", "public void testGetSelectedItemsCountWithItemsSelected()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", true, 2);\n\t\thelper.insertNewItem(categoryId, \"item4\", false, 3);\n\t\thelper.insertNewItem(categoryId, \"item5\", true, 4);\n\t\thelper.insertNewItem(categoryId, \"item6\", false, 5);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(2, selectedItemsCount);\n\t}", "public void testGetSelectedItemsCountWithNoItemsInDb()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(0, selectedItemsCount);\n\t}", "public void validateSelection()\r\n {\r\n for (int i = 0; i<getSelectedElements().size(); ++i)\r\n {\r\n ReportElement re = (ReportElement)getSelectedElements().elementAt(i);\r\n if (!getCrosstabElement().getElements().contains( re ))\r\n {\r\n getSelectedElements().remove(re);\r\n --i;\r\n }\r\n }\r\n // UPDATE SELECTION NOW!!!\r\n }", "public abstract int getModelRowCount();", "@Override\r\n public int getRowCount() {\n return this.rowData.size();\r\n }", "boolean hasRow();", "@Test\n public void testGetColumnCount() {\n System.out.println(\"getColumnCount\");\n int expResult = 2;\n int result = testLibraryLibraryTableModel.getColumnCount();\n assertEquals(expResult, result);\n }", "@Override\n\tpublic int getNumRows() {\n\t\treturn 0;\n\t}", "public int actualRowCount() {\n\t\tint actualRawCount = 0;\n\t\tList<WebElement> paginationCount = driver.findElements(By.xpath(\"//div[@id='example_paginate']/span/a\"));\n\t\tint rowCountPagination = paginationCount.size();\n\t\ttry {\n\t\t\t\n\t\t\tif (rowCountPagination > 0) {\n\t\t\t\tTestLog.log.info(\"click on pagination link \");\n\t\t\t\tfor (int i = 0; i < rowCountPagination; i++) {\n\t\t\t\t\tdriver.findElements(By.xpath(\"//div[@id='example_paginate']/span/a\")).get(i).click();\n\t\t\t\t\tactualRawCount = (actualRawCount + driver.findElements(By.tagName(\"tr\")).size())-1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbtnFirst.click();\n\t\t\t\t\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\tTestLog.log.info(\"Could not find table\" + ex);\n\t\t}\n\t\treturn actualRawCount;\n\t}", "public void verifyIndividualBatchDetails(final Integer rowNum) {\n Log.logScriptInfo(\"Opening Row\" + rowNum + \" details....\");\n lblRow(rowNum).waitForVisibility(Log.giAutomationMedTO);\n lblRow(rowNum).doubleClick();\n Log.logBanner(\"Verifying Individual Batch columns...\");\n Tools.waitForTableLoad(Log.giAutomationMedTO);\n verifyIndividualBatchColumns();\n }", "private boolean check_Colum_In_Row(ResultSet rs) {\n\t\ttry {\n\t\t\tString tmp;\n\t\t\tint count = 0;\n\t\t\tfor (int i = 1; i < number_colum; i++) {\n\t\t\t\ttmp = rs.getString(i);\n\t\t\t\tif (tmp == null || tmp.equals(\"\")) {\n\t\t\t\t\tcount++;\n\t\t\t\t\tif (count >= 4) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public int getNumRows() {\n\t\treturn this.subset.length;\n\t}", "@Override\n public int getRowCount() {\n return data.length-1; \n }", "@Test(expected = IllegalStateException.class)\n public void getRowWidthOne() {\n this.reset();\n this.bps.getRowWidth(0);\n }", "@Test\n\tpublic void assertRowCountWithAPIDataSize() throws Exception\n\t{\n\t\ttry {\n\t\t\tint actualRowCount = dashboardPage.getActualRows().size();\n\t\t\tresponsePage = new APIResponsePageObject(driver);\n\t\t\tint expectedRowCount = responsePage.getRateDataFromAPI().size();\n\t\t\terrorMessage = \"The table row count doesnt match with api rate data count. Not all the currencies are fetched in the table from api\";\n\t\t\tAssert.assertEquals(actualRowCount, expectedRowCount, errorMessage);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t}", "@Test\r\n public void Test005TakeUserInputInValidRow()\r\n {\r\n gol.input = new Scanner(new ByteArrayInputStream(\"20 1 2 2 2 3 2 4 -1\".getBytes()));\r\n gol.takeUserInput();\r\n assertTrue(gol.grid[2][3] == 1 && gol.grid[2][2] == 1 && gol.grid[2][3] == 1 && gol.grid[2][4] == 1);\r\n }", "@Test\n public void testGridTotalSize() {\n //performs a click action on the 20th item in the grid view\n onData(anything()).inAdapterView(withId(R.id.gridView)).atPosition(19).perform(click());\n }", "public abstract int getViewRowCount();", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "@Override\r\n\tpublic int getRowCount() {\n\t\treturn 25;\r\n\t}", "@Test\n\tpublic void assertColumnCount()\n\t{\n\t\tint expectedColumnCount = 2;\n\t\tint actualColumnCount = dashboardPage.getHeaderColumns().size();\n\t\terrorMessage = \"The table column count is incorrect\";\n\t\tAssert.assertEquals(actualColumnCount, expectedColumnCount, errorMessage);\n\t}", "public int getNumRows() { return index.size(); }", "private boolean selectContactInRowSet() {\r\n int index = getContactSelection().getMinSelectionIndex();\r\n if (index != -1) {\r\n try {\r\n rowSet.absolute(index+1);\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n return (index != -1);\r\n }", "private void verifyCursorPosition(long expectedCurrentRow) throws SQLException {\n\t\tif (verifyCursorPosition) {\n\t\t\tif (expectedCurrentRow != this.rs.getRow()) {\n\t\t\t\tthrow new InvalidDataAccessResourceUsageException(\"Unexpected cursor position change.\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic int getRowCount() {\n\t\tint i = 0;\n\t\tfor(i=0;;i++){\n\t\t\tif(dataAll[i][0]==null)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn i;\n\t}", "public int size() {\n return numberOfRows();\n }", "@Override\n public int getRowCount() {\n return spedizioni.size();\n }", "private static <T, S> void verifyTable(TrainedMarkovTable<T, S> table, int rowCount, long max)\n {\n assertEquals(rowCount, table.rows.size());\n assertEquals(max, table.rowMax); \n }", "boolean hasRowsLocked();", "private int getRowCountFromGuessing() {\n\t\treturn rowCountFromGuessing;\n\t}", "@Test\n public void getNumRows() {\n this.reset();\n assertEquals(-1, this.bps.getNumRows());\n // # of rows originally in pyramid\n this.reset();\n this.bps.startGame(this.fullDeck, false, 3, 1);\n assertEquals(3, this.bps.getNumRows());\n // # of rows after game has been played\n this.bps.removeUsingDraw(0, 2, 2);\n this.bps.removeUsingDraw(0, 2, 1);\n this.bps.removeUsingDraw(0, 2, 0);\n assertEquals(2, this.bps.getNumRows());\n assertNotEquals(3, this.bps.getNumRows());\n\n\n }", "public int getRowCount() { return this.underlying.getRowCount(); }", "@Override\n public int getRowCount() {\n return this.filas.size();\n \n }", "@Override\n\tpublic int selectCount() {\n\t\treturn 0;\n\t}", "private void updateEqualRows(String tableName, String[][] tableData, String[][] selectedCells) \n {\n String[][] modifiedCells = new String[selectedCells.length][selectedCells[0].length];\n// int cont = 0;\n for (int i = 0; i < selectedCells.length; i++) \n {\n for (int j = 0; j < selectedCells[0].length; j++) \n {\n if (!selectedCells[i][j].toString().equals(tableData[i][j].toString())) \n {\n adapter.updateRow(tableName, tableData[0][j], selectedCells[i][j], tableData[i][0]);\n// cont++;\n// System.out.println(\"GOT HERE: \" + cont);\n// System.out.println(\"table name: \" + tableName);\n// System.out.println(\"table data 0j: \" + tableData[0][j]);\n// System.out.println(\"selected cells ij: \" + selectedCells[i][j]);\n// System.out.println(\"tabledata i0: \" + tableData[i][0]);\n// System.out.println(\"\\n\");\n }\n }\n// cont = 0;\n }\n }", "@Override\n public int getRowCount() {\n return (model == null) ? 0 : model.getRowCount(); \n }", "public void testGetSelectedItemsCountWithNoItemsSelected()\n\t{\n\t\t// arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 2);\n\t\thelper.insertNewItem(categoryId, \"item4\", false, 3);\n\t\thelper.insertNewItem(categoryId, \"item5\", false, 4);\n\t\thelper.insertNewItem(categoryId, \"item6\", false, 5);\n\n\t\t// Act & Assert\n\t\tint selectedItemsCount = service.getSelectedItemsCount();\n\t\tassertEquals(0, selectedItemsCount);\n\t}", "@Override\n public int getRowCount() { return data.length; }", "public int getRowCount() {\n\t\t\t\treturn valores.size();\n\t\t\t}", "public int getActualRowCount() {\r\n int ret = 0;\r\n if (rows != null) ret = rows.size();\r\n return ret;\r\n }", "public int getRowCount() {\n return 0;\n }", "@Test\n\tpublic void rowWin_test()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(1,1, 'o');\n\t\tb.set(0,1, 'x');\n\t\tb.set(2,2, 'o');\n\t\tb.set(0,2, 'x');\n\t\tassertTrue(b.rowWin());\t\n\t}", "@Override\n public int getRowCount() {\n return this.data.length;\n }", "public int rowCount() {\n\t\treturn n_;\n\t}", "private int getSelectedCount() {\r\n\t int count = 0;\r\n\t for (int i = 0; i < _selectedList.size(); ++i) {\r\n\t count += _selectedList.get(i) ? 1 : 0;\r\n\t }\r\n\t return count;\r\n\t}", "@Test\n\tpublic void furtherSelectionTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\tint[] selection = { 1, 2, 3, 4, 5, 6 };\n\t\tint[] unSelecion = { 1, 2, 3 };\n\t\tint[] resultSelection = { 4, 5, 6 };\n\t\tint[] negativeSelection = { -1 };\n\n\t\t// select something and unselect parts of it\n\t\tselectionController.select(selection);\n\t\tassertArrayEquals(\"Selection was different\", selection, selectionController.getSelection());\n\t\tselectionController.unselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after unselection\", resultSelection,\n\t\t\t\tselectionController.getSelection());\n\n\t\t// do a reselection\n\t\tselectionController.reselect(unSelecion);\n\t\tassertArrayEquals(\"Selection was different after reselection\", unSelecion, selectionController.getSelection());\n\n\t\tassertTrue(\"Item 1 is selected\", selectionController.isSelected(1));\n\t\tassertTrue(\"Item 2 is selected\", selectionController.isSelected(2));\n\t\tassertTrue(\"Item 3 is selected\", selectionController.isSelected(3));\n\t\tassertFalse(\"Item 4 is not selected\", selectionController.isSelected(4));\n\t\tassertFalse(\"Item 5 is not selected\", selectionController.isSelected(5));\n\t\tassertFalse(\"Item 6 is not selected\", selectionController.isSelected(6));\n\n\t\t// unselect all elements\n\t\tselectionController.unselect(unSelecion);\n\t\tassertFalse(\"Nothing was selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero\", 0, selectionController.getSelection().length);\n\n\t\t// select something negative\n\t\tselectionController.select(negativeSelection);\n\t\tassertFalse(\"Nothing should be selected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after selection\", 0, selectionController.getSelection().length);\n\n\t\t// reselect something negative\n\t\tselectionController.select(selection);\n\t\tselectionController.reselect(negativeSelection);\n\t\tassertFalse(\"Nothing should be reselected\", selectionController.isSomethingSelected());\n\t\tassertEquals(\"The array should have length zero after reselection\", 0,\n\t\t\t\tselectionController.getSelection().length);\n\n\t}", "@Override\r\n public int getRowCount() {\n if (leitores != null) {\r\n return leitores.size();\r\n }\r\n return 0;\r\n }", "public int getRowCount() throws IllegalStateException\r\n { \r\n if ( !connectedToDatabase ) \r\n throw new IllegalStateException( \"Not Connected to Database\" );\r\n \r\n return numberOfRows;\r\n }", "private boolean tableDataValid()\r\n {\r\n // if there are any form level validations that should go there\r\n int rowTotal = tblProtoCorresp.getRowCount();\r\n int colTotal = tblProtoCorresp.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblProtoCorresp.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblProtoCorresp.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblProtoCorresp.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return true ;\r\n }", "public int getRowCount() {\n return _data.size();\n }", "private int checkRow() {\n for (int i = 0; i < 3; i++) {\n if ((this.board[0][i] == this.board[1][i]) && (this.board[0][i] == this.board[2][i])) {\n return this.board[0][i];\n }\n }\n return 0;\n }", "public int getRowCount() {\n return row_.size();\n }", "public int getRowCount() {\n return row_.size();\n }", "public int getRowCount() {\n return row_.size();\n }", "public int getRowCount() {\n return row_.size();\n }", "public int getRowCount() {\n return row_.size();\n }", "public int getRowCount() {\n return row_.size();\n }" ]
[ "0.6628196", "0.6610681", "0.6580401", "0.65219975", "0.64330393", "0.64182", "0.62385046", "0.62332773", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.6220242", "0.6154611", "0.6123915", "0.6107805", "0.6069477", "0.6046816", "0.6042068", "0.6042068", "0.60253", "0.59987473", "0.5994365", "0.5961577", "0.5955016", "0.59513897", "0.5936371", "0.5919105", "0.5906095", "0.5878343", "0.5870855", "0.5868426", "0.5854346", "0.58464116", "0.58351743", "0.58351743", "0.58242285", "0.5824122", "0.5808368", "0.58016616", "0.57933277", "0.5782573", "0.57808834", "0.5778371", "0.5756846", "0.5749524", "0.5721681", "0.5714692", "0.5713972", "0.57083195", "0.570369", "0.56952363", "0.5692674", "0.5692296", "0.56844443", "0.567384", "0.5673508", "0.5669615", "0.56657964", "0.5638618", "0.5634951", "0.5634529", "0.563326", "0.5628322", "0.56283206", "0.5616996", "0.5614926", "0.5608226", "0.5604164", "0.56030154", "0.56011087", "0.5598104", "0.55944294", "0.55899537", "0.55844605", "0.55757153", "0.5570371", "0.5565773", "0.5562966", "0.5557113", "0.55539775", "0.55533516", "0.55411655", "0.55144095", "0.55112255", "0.5503949", "0.55018955", "0.5497785", "0.54967177", "0.54958606", "0.5495287", "0.5491086", "0.5491086", "0.5491086", "0.5491086", "0.5491086", "0.5491086" ]
0.6311756
6
get the number of high lighted rows
@SuppressWarnings("unchecked") private int getHighlightedRows() { int rowNumber = 0; // first check if any rows have been clicked on for (TableRow row: rows) { Drawable background = row.getBackground(); if (background instanceof ColorDrawable) { int backColor = ((ColorDrawable) background).getColor(); //if (backColor == rowHighlightColor) continue; if (backColor == rowSelectColor) { rowNumber = rowNumber + 1; } } } return rowNumber; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getNumRows();", "int getRowsCount();", "public abstract int getNumOfRows();", "int getCellsCount();", "int colCount();", "int getRowsAmount();", "int getRows();", "int getRows();", "int numberofhc()\n{\n\treturn hc.size();}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadRowCount[] getRowCounts();", "@Override\n\tpublic int getRowCnt() {\n\t\treturn invBaseStockDao.getRowCnt();\n\t}", "public abstract int rows();", "public int getRows();", "public int getRows();", "public int getRows() {\n return mRipple.getHeight();\n }", "public int getRowspan() \n {\n return 1;\n }", "@Override\n\t\t\tpublic int getRow() {\n\t\t\t\treturn count;\n\t\t\t}", "public int getNumRow() {\n\t\tif (dc.size() <= 0)\n\t\t\treturn dc.size();\n\n\t\t// Pick the first entry and get its size\n\t\t// assumption: For DataTable, all columns should have the same size\n\t\tMap.Entry<String, DataColumn> entry = dc.entrySet().iterator().next();\n\t\treturn dc.get(entry.getKey()).getSize();\n\t}", "double getRowCount();", "int getNumberOfRows() {\n lock.readLock().lock();\n try {\n return extensionPointPluginMap.rowMap().size();\n } finally {\n lock.readLock().unlock();\n }\n }", "int getBlockNumbersCount();", "public int getTotalRows();", "public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}", "public int getRowCount() { return this.underlying.getRowCount(); }", "public int getNrow(){\r\n \treturn this.nrow;\r\n \t}", "private int getRowCountFromGuessing() {\n\t\treturn rowCountFromGuessing;\n\t}", "@Override\r\n public int getRowCount() {\n return fixHashtables.length;\r\n }", "public static int RowCount()\r\n\t{\r\n\t\treturn wrksheet.getRows();\r\n\t}", "public int getHeight() {\n return numRows+65;\n }", "public int getRowCount() {\r\n\t\treturn this.booths.length;\r\n\t}", "@Override\n public int getNumRows(){\n return HEIGHT;\n }", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "int getRowCount();", "public int getNumRows() { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Getter for the number of rows\n\t\treturn numRows; \n\t}", "@Override\n public int getRowCount() {\n return allLakes.size();\n }", "public int rows() {\n\treturn rows;\n}", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int getRowSize() {\n \t\treturn this.rows;\n \t}", "int getNumColors();", "public int getMaxRow();", "public int getRowWidth(int y) {\n\t\t//Quickly return the width of a specific row\n\t\treturn widths[y];\n//\t\tint filled = 0;\n//\t\tfor (int i=0;i<width;i++) {\n//\t\t\tif (grid[i][y]==true) filled++;\n//\t\t}\n//\t\treturn filled; // YOUR CODE HERE\n\t}", "private int calculateRows(Container target) {\n int compCount = target.getComponentCount();\n if (columns > 0) {\n return (compCount + columns - 1) / columns;\n }\n if (compCount < 4) {\n return 1;\n }\n if (compCount == 4) {\n return 2;\n }\n return compCount;\n }", "private int numRows(){\n return attrTable.getModel().getRowCount();\n }", "public abstract int deepRowCount();", "@Override\n\tpublic int getRowCount() {\n\t\treturn rh.size();\n\t}", "public int getNumRows () {\n\t\treturn numrows_;\n\t}", "@Override\n\tpublic int getRowCount() {\n\t\tint i = 0;\n\t\tfor(i=0;;i++){\n\t\t\tif(dataAll[i][0]==null)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn i;\n\t}", "public int getHeight()\r\n {\r\n\tif (hue != null && saturation != null && intensity != null)\r\n\t return hue.length;\r\n\telse\r\n\t return -1;\r\n }", "int getMergedCellCount();", "public abstract int getNumberOfColumnsInCurrentRow();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getMaxRows();", "public int getNumRows() { return numRows; }", "public int getRowCount()\r\n {\r\n return height;\r\n }", "public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }", "public int getProbeColorIndex(int row);", "int getRow();", "public int getRows() {\n\t\treturn g.length;\n\t}", "@Override\r\n protected long getN() {\r\n boolean handleOutOfMemoryError = false;\r\n long n = 0;\r\n Grids_GridDouble g = getGrid();\r\n int nrows = g.getChunkNRows(ChunkID, handleOutOfMemoryError);\r\n int ncols = g.getChunkNCols(ChunkID, handleOutOfMemoryError);\r\n double noDataValue = g.getNoDataValue(false);\r\n for (int row = 0; row < nrows; row++) {\r\n for (int col = 0; col < ncols; col++) {\r\n double value = getCell(row, col);\r\n if (Double.isNaN(value) && Double.isFinite(value)) {\r\n if (value != noDataValue) {\r\n n++;\r\n }\r\n }\r\n }\r\n }\r\n return n;\r\n }", "public int toCount()\n {\n int count=jt.getRowCount();\n return count;\n }", "public int getRowCount();", "protected int getRowCountFast(){\n\t\treturn rowCount;\n\t}", "public int getRows() {\n\t\treturn NUM_OF_ROWS;\n\t}", "int getMaxNumberOfRows();", "int getColumnsCount();", "int getColumnsCount();", "private int size() {\n\treturn matrix.length; //# of rows\n }", "int getLevelTableListCount();", "public int getWrapperHits();", "@Override\r\n public int getRowCount() {\n return chineseHashtables.length;\r\n }", "public int getNumRows() { return index.size(); }", "public int getWidth()\r\n {\r\n\tif (hue != null && saturation != null && intensity != null)\r\n\t return hue[0].length;\r\n\telse\r\n\t return -1;\r\n }", "public int getLayerCount(int edge) throws EdgeOutOfRangeException\n {\n if (edge==DataDirector.PAGE_EDGE)\n return 0;\n else\n return 1;\n }", "private int getNIdx() {\n return this.colStartOffset + 7;\n }", "public int getRows()\n\t{\n\t\treturn rows;\n\t}", "@Override\r\n\tpublic int getRowCount() {\n\t\treturn 25;\r\n\t}", "public int getRowCount() \n\t{ return rowcounter; }", "public int getNumRows() {\n\t\treturn numRows;\n\t}" ]
[ "0.6600669", "0.6560875", "0.65374726", "0.6533435", "0.6434931", "0.6392457", "0.6318231", "0.6318231", "0.6317831", "0.6298977", "0.62449217", "0.6219495", "0.6218781", "0.6218781", "0.62149626", "0.62072706", "0.6194066", "0.61931866", "0.6170125", "0.6160582", "0.612401", "0.61156046", "0.610906", "0.6095459", "0.6088727", "0.6057343", "0.60561126", "0.6053005", "0.6043306", "0.6037321", "0.6034974", "0.6033954", "0.6033954", "0.6033954", "0.6033954", "0.6033954", "0.6033954", "0.6033954", "0.60315907", "0.6021385", "0.6018705", "0.60002613", "0.60002613", "0.59982014", "0.5993592", "0.5993228", "0.59910995", "0.5989244", "0.5977053", "0.59604686", "0.5956466", "0.5954339", "0.5949718", "0.59389484", "0.59355295", "0.59296966", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.59223723", "0.591913", "0.5919124", "0.59103805", "0.59031314", "0.59028935", "0.5900013", "0.5896678", "0.58838546", "0.58827925", "0.5881001", "0.58772165", "0.58624244", "0.58580464", "0.58580464", "0.58571756", "0.58482504", "0.5830553", "0.58223534", "0.5818339", "0.58161503", "0.58136123", "0.5810019", "0.58021647", "0.57955235", "0.57952625", "0.5789005" ]
0.6238056
11
called when a single row has been selected
private void setSelectedWord() { for (TableRow row: rows) { Drawable background = row.getBackground(); if (background instanceof ColorDrawable) { int backColor = ((ColorDrawable) background).getColor(); if (backColor == rowSelectColor) { final TextView descriptionView = (TextView) row.findViewById(R.id.wordDescription); final TextView glossView1 = (TextView) row.findViewById(R.id.wordGloss1); if (descriptionView != null) selectedWords = descriptionView.getText().toString(); if (glossView1 != null) selectedSynset = glossView1.getText().toString(); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tJTable table = (JTable) e.getSource();\r\n\t\tthis.selectedRow = table.getSelectedRow();\r\n\t}", "protected void select() {\n\t\tcleanValues();\n\t\tint row = m_table.getSelectedRow();\n\t\tboolean enabled = row != -1;\n\t\tif (enabled)\n\t\t{\n\t\t\tInteger ID = m_table.getSelectedRowKey();\n\t\t\tif (ID != null)\n\t\t\t{\n\t\t\t\tm_C_Order_ID = ID.intValue();\n\t\t\t}\n\t\t}\n\t\tlog.info(\"ID=\" + m_C_Order_ID); \n\t}", "private void onSelectPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0) {\n\t\t\t// No row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(false);\n\t\t\tbuttonViewPatient.setEnabled(false);\n\t\t} else {\n\t\t\t// A row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(true);\n\t\t\tbuttonViewPatient.setEnabled(true);\n\t\t}\n\t}", "private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }", "protected void onSelectionPerformed(boolean success) {\n }", "@Override\n\t\t\tpublic void onEvent(RowFocusEvent event) {\n\t\t\t\tgrid.select(event.getItemId());\n\n\t\t\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "@Override\r\n\tprotected void doSingleClick(int row) {\n\t\t\r\n\t}", "@Override\n public void onContactSelected(Contact selected, int rowId)\n {\n contactIndex = rowId;\n selectedContact = selected;\n\n // Visa detaljvyn när en rad i listan klickas\n showDetails();\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 }", "protected void memberRowSelected(int row) {\r\n\t\tdisplayValidityReport();\r\n\t\tsetMemberActionsEnabled(true);\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n int rowSelected = tblPesanan.getSelectedRow();\n Pesanan pesanan = items.get(rowSelected);\n listener.onSelectedRow(pesanan, PesananGridFrame.class.getSimpleName());\n dispose();\n }", "@Override\n public void focusGained(FocusEvent fe) {\n if (!table.getSelectionModel().isSelectionEmpty()) \n Order.selectedBookingIDRow = (int) table.getValueAt(table.getSelectedRow(), 0);\n }", "public void onRowSelect(SelectEvent event) {\n\t\t//do nothing, for now...\n\t}", "@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }", "@Override\n\tpublic void selectionChanged(ActionEvent e) {\n\t\tif (dm != null && dm.getRowSelected() >= 0) {\n\t\t\trowList.removeListSelectionListener(rowSelectListener); \n\t\t\t// disable listener temporarily to prevent looping.\n\t\t\t\n\t\t\tint row = dm.getRowSelected();\n\t\t\tint column = dm.getColSelected();\n\t\t\trowElements.get(column).requestFocus();\n\t\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\t\tString value = dm.getValue(i, row);\n\t\t\t\trowElements.get(i).setText(value);\n\t\t\t}\n\t\t\trowList.setSelectedIndex(row);\n\t\t\trowList.addListSelectionListener(rowSelectListener);\n\t\t}\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "protected abstract void rowSelectedCriterionTable(EvCriterion<Ev, CriterionShortIdentifier> item, Cell cell, ClickEvent event);", "public void widgetSelected(SelectionEvent e) {\n Control oldEditor = editor.getEditor();\n \n TableItem item = (TableItem) e.item;\n if (item == null) {\n return;\n }\n \n if (oldEditor != null) {\n oldEditor.dispose(); // FIX the focus\n }\n // Identify the selected row\n \n // The control that will be the editor must be a child of the\n // Table\n final Text textNewEditor = new Text(table, SWT.NONE);\n \n textNewEditor.setText(item.getText(EDITABLECOLUMN));\n textNewEditor.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent me) {\n Text text = (Text) editor.getEditor();\n editor.getItem()\n .setText(EDITABLECOLUMN, text.getText());\n }\n });\n \n /*\n * TODO FIX the focus\n */\n textNewEditor.selectAll();\n // newEditor.setFocus();\n editor.setEditor(textNewEditor, item, EDITABLECOLUMN);\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint selectedRow = table.getSelectedRow();//获得选中行的索引\n\t\t\t\tif(selectedRow!= -1) //是否存在选中行\n\t\t\t {\n\t\t\t Object oa = tableModel.getValueAt(selectedRow, 0);\n\t\t\t Object ob = tableModel.getValueAt(selectedRow, 1);\n\t\t\t comboBox_1.setSelectedItem(oa.toString());\n\t\t\t textField2.setText(ob.toString());\n\t\t\t }\n\t\t\t else{\n\t\t\t textField2.setText(\"\");\n\t\t\t }\n\t\t\t}", "@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }", "@Override\r\n\tpublic void itemSelectedAtIndexPath(IndexPath path) {\n\r\n\t}", "private void select(int row, int column) {\n \n if (recordList != null && entryForm != null) {\n currentColumn = column;\n if (currentRow != row) {\n currentRow = row;\n recordList.setSelectedIndex(row);\n }\n recordForm.setFocusAt(column);\n }\n \n }", "@Override\n public void focusGained(FocusEvent e) {\n\n currentColumn = ((FormEntry.EntryField)e.getComponent()).getColumn();\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn);\n }\n\n }", "public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }", "@Override\n public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t}", "protected void onSelect() {\n\n }", "@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}", "public void valueChanged(ListSelectionEvent e) {\n if (!e.getValueIsAdjusting()) {\n selRow = table.getSelectedRow();\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n ListSelectionModel mSelectionModel = (ListSelectionModel)e.getSource();\n \n if (mSelectionModel.isSelectionEmpty() == false) {\n // Find out which indexes are selected.\n int mMinIndex = mSelectionModel.getMinSelectionIndex();\n int mMaxIndex = mSelectionModel.getMaxSelectionIndex();\n \n if (mMinIndex == mMaxIndex) {\n if (mSelectionModel.isSelectedIndex(mMinIndex)) {\n try {\n fillContactDetails(mMinIndex);\n } catch (SQLException ex) {\n Logger.getLogger(frmContacts.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n //Save the selected row for the case that the next action after this is cancel.\n pSelectedRow = mMinIndex;\n }\n }\n }\n }", "public void onRowSelect(SelectEvent event) {\n StocTotal st = (StocTotal)event.getObject();\n debugMessage(\"Selectie: \"+ st.getNume());\n outputNume = st.getNume();\n outputCantFlacon = st.getCantFlacon();\n outputCod = st.getCod();\n outputProducator = st.getProducator();\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString row= diveRow.get(position);\n\t\t\t\t\t\tIntent i = new Intent(\"android.intent.action.VIEWSELECTEDDIVE\");\n\t\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\t\textras.putString(\"row\", row);\n\t\t\t\t\t\ti.putExtras(extras);\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//Toast.makeText(getBaseContext(), \"Row selected: \"+ row, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t//cursor.close();\n\t\t\t\t\t\t//dataBaseCursor.close();\n\t\t\t\t\t\tfinish();//free resources\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onRowClicked(int position) {\n }", "public void onSelectionChanged();", "public native void selectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.selectRow(row);\n }-*/;", "@Override\n\tpublic void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n\t\t\n\t}", "public void selectionChanged() {\r\n int fila = menuCursos.tablaCursos.getSelectedRow();\r\n try {\r\n actual=(Cursos) rs.get(fila);\r\n if(actual.getCodigo()!=null){\r\n MostrarRegistro();\r\n menuCursos.botonCursosBorrar.setEnabled(fila != -1);\r\n menuCursos.botonCursosModificar.setEnabled(fila != -1);\r\n }\r\n } catch (Exception e) {\r\n actual = null;\r\n }\r\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "private void respondToClick(int row)\r\n\t{\r\n\t\tif(isOnMainPage) \r\n\t\t{\r\n\t\t\tisOnMainPage = false;\r\n\t\t\tindexOfSelectedSubBand = row;\r\n\t\t\tclearTable();\r\n\t\t\taddSubBandContents();\r\n\t\t}else\r\n\t\t{\r\n\t\t\tindexOfSelectedBranch = row;\r\n\t\t\tnew AddBranchJDialog(450, 660, \"Edit Branch\", ICON, indexOfSelectedSubBand, indexOfSelectedBranch);\r\n\t\t\tclearTable();\r\n\t\t\taddSubBandContents();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\n\t\t\t\t\tIntent intent = new Intent(DiarySelection.this,BillForm.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t}", "@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 }", "private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }", "protected void newRowSelected() {\r\n\t\tsetMessage(\"A new member can be added in this row.\");\r\n\t\tsetMemberActionsEnabled(false);\r\n\t}", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "void onHeaderSelected(RowHeaderPresenter.ViewHolder viewHolder, Row row);", "private void tblSachMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblSachMouseClicked\n int row = tblSach.getSelectedRow();\n txbMaSach.setText(tblSach.getValueAt(row, 0).toString());\n txbTenSach.setText(tblSach.getValueAt(row, 1).toString());\n cbTheLoai.setSelectedItem(tblSach.getValueAt(row, 2));\n tbxTacGia.setText(tblSach.getValueAt(row, 3).toString());\n txbSoLuong.setText(tblSach.getValueAt(row, 5).toString());\n txbGia.setText(tblSach.getValueAt(row, 4).toString());\n cbxNXB.setSelectedItem(tblSach.getValueAt(row, 6));\n controlTxb(false);\n }", "private void recordTableMouseClicked(MouseEvent e) {\n\n //fetching the index from jtable\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n int index=recordTable.getSelectedRow();\n txtCustNo.setText(df.getValueAt(index,0).toString());\n txtCustName.setText(df.getValueAt(index,1).toString());\n txtCustDeposit.setText(df.getValueAt(index,2).toString());\n txtYears.setText(df.getValueAt(index,3).toString());\n cboSavings.setSelectedItem(df.getValueAt(index,4).toString());\n }", "@Override\n\tpublic void onClick(View arg0) {\n\t\tthis.flatCalendar.selectCell(this);\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tTableRow tr1=(TableRow)v;\n\t\t\t\t\t\tTextView tv1= (TextView)tr1.getChildAt(0);\n\t\t\t\t\t\tString a = tv1.getText().toString();\n\t\t\t\t\t\t//tr1.setBackgroundColor(Color.BLACK);\n\t\t\t\t\t\tfirstname_et.setText(a);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),tv1.getText().toString()+\" Selected\",Toast.LENGTH_LONG).show();\n\t\t\t\t\t}", "public void selectionChanged(Selection selecton) {\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Si no se ha seleccionado ninguna columna\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\t//Obtenemos los datos necesarios para\n\t\t\t\t\t//Localizar la factura a imprimir\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t//Creamos el pdf y lo imprimimos\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdata.crearFacturaDiaria(data);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.printing));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "public void getRow(MouseEvent e) {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tindex = tableTransactions.getSelectionModel().getSelectedIndex();\n\n\t\tif (index <= -1)\n\t\t\treturn;\n\n\t\ttxt_transactionID.setText(col_transactionID.getCellData(index).toString());\n\t\ttxt_date.setPromptText(col_date.getCellData(index).toString());\n\t\ttxt_description.setText(col_description.getCellData(index).toString());\n\t\ttxt_category.setPromptText(col_category.getCellData(index).toString());\n\t\ttxt_amount.setText(col_amount.getCellData(index).toString());\n\t}", "private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n // get the selected row index\n int selectedRowIndex = jTable1.getSelectedRow();\n // set the selected row data into jtextfields\n ID_USER =Integer.parseInt(model.getValueAt(selectedRowIndex, 0).toString()) ; \n CL_USER =model.getValueAt(selectedRowIndex, 1).toString(); \n\n }", "@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}", "@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}", "private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }", "private void onViewPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0)\n\t\t\t// No row has been selected\n\t\t\treturn;\n\n\t\t// Gets the patient ID\n\t\tbyte[] patientId = (byte[]) tablePatients.getValueAt(selectedRowIndex, PatientTable.ID);\n\n\t\t// Sets the patient ID as the current one\n\t\tPatientManager.setCurrentPatientId(patientId);\n\n\t\t// Opens the patient frame\n\t\tGuiManager.openFrame(GuiManager.FRAME_PATIENT);\n\t}", "@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }", "@Override\n public boolean select() {\n cell.setState(cell.getRevealedState());\n return true;\n }", "@Override\n public void onRowDblClick(GridPanel grid, int rowIndex, EventObject e) {\n Record[] records = cbSelectionModel.getSelections();\n\n\n selecionado = records[0].getAsString(\"idmarca\");\n String enlTemp = \"funcion=reportemarcaHTML&idmarca=\" + selecionado;\n verReporte(enlTemp);\n// \n }", "@Override public void mouseClicked( final MouseEvent e )\r\n {\n if( e.isPopupTrigger() == true || e.getButton() == MouseEvent.BUTTON3 )\r\n { // mouse listener only added if row class supports JPopupMenuProvidable\r\n final JTable table = getJTable();\r\n final int row = table.rowAtPoint( e.getPoint() ); // did test, view->model xlation not needed\r\n if( row > -1 ) table.setRowSelectionInterval( row, row );\r\n\r\n final R rowObject = getSingleSelection();\r\n if( rowObject != null )\r\n {\r\n final JPopupMenu jpm = ((JPopupMenuProvidable)rowObject).provideJPopupMenu();\r\n if( jpm != null )\r\n {\r\n jpm.show( table, e.getX(), e.getY() );\r\n }\r\n }\r\n // else in table but below rows, i.e. no-man's land\r\n }\r\n }", "public void onIndividualSelected(Individual individual) {\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}", "public void itemSelected(boolean selected);", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table2.getSelectedRow();\n\t\t\t\tint col = table2.getSelectedColumn();\n\t\t\t\tString mamon = (String) table2.getValueAt(row, 0);\n\t\t\t\tString tenmon = (String) table2.getValueAt(row, 1);\n\t\t\t\tString magv2 = (String) table2.getValueAt(row, 2);\n\t\t\t\tString hocki = (String) table2.getValueAt(row, 3);\n\t\t\t\tString makhoa = (String) table2.getValueAt(row, 4);\n\n\t\t\t\ttxt_mamon.setText(mamon);\n\t\t\t\t// cb_tenmon.setSelectedItem(tenmon);\n\t\t\t\tsetSelectedValue(cb_tenmon, tenmon);\n\t\t\t\ttxt_magv2.setText(magv2);\n\t\t\t\ttxt_hocki.setText(hocki);\n\t\t\t\ttxt_makhoa.setText(makhoa);\n\n\t\t\t}", "public void widgetSelected(SelectionEvent arg0) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tbtnEdit.setEnabled(true);\r\n\t\t\t\tbtnDelete.setEnabled(true);\r\n\t\t\t\trow = table.getSelectedRow();\r\n\t\t\t\tDefaultTableModel model = (DefaultTableModel) table.getModel();\r\n\t\t\t\tString SelectedName = model.getValueAt(row, 1).toString();\r\n\t\t\t\tString S = model.getValueAt(row, 2).toString() + \":00\";\r\n\t\t\t\tString E = model.getValueAt(row, 3).toString() + \":00\";\r\n\t\t\t\ttxtName.setText(SelectedName);\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\td1 = format.parse(S);\r\n\t\t\t\t} catch (java.text.ParseException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\td2 = format.parse(E);\r\n\t\t\t\t} catch (java.text.ParseException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tint rSHours = d1.getHours();\r\n\t\t\t\tcmbSHour.setSelectedItem(rSHours);\r\n\t\t\t\tint rSMin = d1.getMinutes();\r\n\t\t\t\tcmbSMin.setSelectedItem(rSMin);\r\n\t\t\t\tint rEHours = d2.getHours();\r\n\t\t\t\tcmbEHour.setSelectedItem(rEHours);\r\n\t\t\t\tint rEMin = d2.getMinutes();\r\n\t\t\t\tcmbEMin.setSelectedItem(rEMin);\r\n\t\t\t\tSelectedId = (model.getValueAt(row, 0)).toString();\r\n\t\t\t\tid_tag = (model.getValueAt(row, 5)).toString();\r\n\t\t\t\tSystem.out.println(id_tag);\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tPreparedStatement query = db.getConnection()\r\n\t\t\t\t\t\t\t.prepareStatement(\r\n\t\t\t\t\t\t\t\t\t\"select * from Tag where Id=\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ id_tag);\r\n\t\t\t\t\tResultSet rs = query.executeQuery();\r\n\t\t\t\t\tif (!rs.isBeforeFirst()) {\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\t\t\tcmb.setSelectedItem(rs.getString(\"Name\"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n public void widgetSelected(SelectionEvent e) {\n\t\t\t\t//\n\t\t\t\t// First check if there is an active cell editor and if it contains a valid value\n\t\t\t\t//\n\t\t\t\tif (cursorKeyListener.getText() != null) {\n\t\t\t\t\tString str = cursorKeyListener.getText().getText().toUpperCase();\n\t\t\t\t\tif (HexUtils.isValidHexNumber(str)) {\n\t\t\t\t\t\tcursorKeyListener.getCellEditorKeyListener().closeCellEditor(cursorKeyListener.getEventRow(), cursorKeyListener.getEventColumn(), str);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcursorKeyListener.setSelection();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t\tHexTablePointer p = getCursorPosition();\n\t\t\t\ttable.setCellSelection(p.getRowIndex(), p.getColumnIndex(), cursorKeyListener.isShiftHold());\n\n\t\t\t\tupdateStatusPanel();\n\t\t\t}", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tint index = table.getSelectedRow();\n\t\t\t\t\n\t\t\t\tif (index >= 0 && index < table.getRowCount()) {\n\t\t\t\t\t\n\t\t\t\t\t Server ServerConnection;\n\t\t String courseID = (String) table.getValueAt(index, 0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t\t \t\tif (data.next()) {\n\t\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(index, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t\t \t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n int i = jt.getSelectedRow();\n amountTf.setText(model.getValueAt(i, 2).toString());\n memoTa.setText(model.getValueAt(i, 4).toString());\n }", "public void onRowSelect(SelectEvent event) {\n\t\tMensajes.info(\"Liquidación del Cliente \", ((TbOrdenliquidacion) event.getObject()).getIdCliente());\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table.getSelectionModel().getLeadSelectionIndex();\r\n\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t \t\tfor(int i = 0; i < productBySearch.size(); i++){\r\n\t\t \t\t\tif(String.valueOf(model.getValueAt(row, id_column)).equals(String.valueOf(productBySearch.get(i).getID()))){\r\n\t\t \t\t\t\ttextField_name_input.setText(productBySearch.get(i).getName());\r\n\t\t \t\t\t\ttextField_description_input.setText(productBySearch.get(i).getDescription());\r\n\t\t \t\t\t\ttextField_quantity_input.setText(String.valueOf(productBySearch.get(i).getQuantity()));\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "@Override\n public boolean isSelectedIndex(int row)\n {\n return allowSelectDisabled\n || isAssociationAvailable(assnsTable.convertRowIndexToModel(row))\n ? super.isSelectedIndex(row)\n : false;\n }", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\ttableTransactions.setSelectionForeground(Color.WHITE);\n\t\t\t\t}", "@Override\n\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t}", "@Override\n public void onClick(Row row) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t\n\t\t\t\t\tdata.db.removeBill(data);\n\t\t\t\t\tdata.cliente.removeFactura(data.factura);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttable.removeView(selected);\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "public void onComidaSelected(int comidaId);", "@Override\n public void focusLost(FocusEvent fe) {\n table.clearSelection();\n System.out.println(Order.selectedBookingIDRow);\n }", "private void MenuBlockStartActionPerformed(java.awt.event.ActionEvent evt) {\n BlockStart = this.jTable1.getSelectedRow();\n }", "public void select()\n {\n super.select();\n SwingUtilities.invokeLater(() -> _sqlPanel.getSQLEntryPanel().requestFocus());\n }", "private void tblStudentsMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_tblStudentsMouseClicked\n\t\t// TODO add your handling code here:\n\t\tint i = tblBollard.getSelectedRow();\n\t\tTableModel model = tblBollard.getModel();\n\t\ttxtId.setText(model.getValueAt(i, 0).toString());\n\t\ttxtAlert.setText(model.getValueAt(i, 1).toString());\n\t\ttxtNbMax.setText(model.getValueAt(i, 2).toString());\n\t\ttextnbactuel.setText(model.getValueAt(i, 3).toString());\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tDefaultTableModel model=(DefaultTableModel)table.getModel();\n\t\t\t\tint i=table.getSelectedRow();\n\t\t\t\t\n\t\t\t\ttxtCustomerName.setText(model.getValueAt(i,0).toString());\n\t\t\t\ttxtAddress.setText(model.getValueAt(i,1).toString());\n\t\t\t\ttxtContact.setText(model.getValueAt(i,2).toString());\n\t\t\t\ttxtProduct.setText(model.getValueAt(i,3).toString());\n\t\t\t\ttxtSerialNo.setText(model.getValueAt(i,4).toString());\n\t\t\t\ttxtModuleNo.setText(model.getValueAt(i,5).toString());\n\t\t\t\ttxtComplaintNo.setText(model.getValueAt(i,6).toString());\n\t\t\t\tCategorycomboBox.setSelectedItem(model.getValueAt(i,7).toString());\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint row = table.getSelectedRow();\n\t\t\t\tint col = table.getSelectedColumn();\n\t\t\t\tString masv = (String) table.getValueAt(row, 0);\n\t\t\t\tString hoten = (String) table.getValueAt(row, 1);\n\t\t\t\tString ngaysinh = (String) table.getValueAt(row, 2);\n\t\t\t\tString gioitinh = (String) table.getValueAt(row, 3);\n\t\t\t\tString diachi = (String) table.getValueAt(row, 4);\n\t\t\t\tString malop = (String) table.getValueAt(row, 5);\n\t\t\t\ttxt_masv.setText(masv);\n\t\t\t\ttxt_hoten.setText(hoten);\n\t\t\t\ttxt_ngaysinh.setText(ngaysinh);\n\t\t\t\ttxt_gioitinh.setText(gioitinh);\n\t\t\t\ttxt_diachi.setText(diachi);\n\t\t\t\ttxt_malop.setText(malop);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "void autoCompleteSelectionChanged(Event event) {\n Events.sendEvent(new Event(\"onValueSelected\", this));\n }", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}", "public void rowField()\n\t{ \n\t\tviewTable.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e)\n\t\t\t{\n\t\t\t\tint c;\n\t\t\t\tString id ,oldname,oladdress,oldcontact,oldemail,oldusername, oldpassword;\n\t\t\t\tDefaultTableModel viewTablemodel = (DefaultTableModel)viewTable.getModel();\n\t\t\t\tc=viewTable.getSelectedRow();\n\t\t\t\tid= viewTablemodel.getValueAt(c, 1).toString();\n\t\t\t\toldname= viewTablemodel.getValueAt(c,2).toString();\n\t\t\t\toldcontact= viewTablemodel.getValueAt(c,3).toString();\n\t\t\t\toladdress= viewTablemodel.getValueAt(c,4).toString();\n\t\t\t\toldemail= viewTablemodel.getValueAt(c,5).toString();\n\t\t\t\toldusername= viewTablemodel.getValueAt(c,6).toString();\n\t\t\t\toldpassword= viewTablemodel.getValueAt(c,7).toString();\n\t\t\t\tupdatePanel(id, oldname, oldcontact, oladdress, oldemail, oldusername, oldpassword);\n\t\t\t\tsetRowCount(viewTable.getSelectedRow());\n\t\t\t}\n\t\t});\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row=tbl.getSelectedRow();\n\t\t\t\tif(row==-1)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tmaHD=tbl.getValueAt(row,0).toString();\n\t\t\t\tHienThiChiTiet();\n\t\t\t\t\n\t\t\t}", "private void bomSelected(int selectedRow){\n \tbomDet=new inventorycontroller.function.BillOfMaterialProcessor(dbInterface1)\n \t .getBomDescForPoMaster(jTable1.getModel().getValueAt(selectedRow, 3).toString());\n \t\n \tadjustAddedQty(); //* adjusts the item qty. which are already added.\n \t\n \tjTable2.setModel(new javax.swing.table.DefaultTableModel(\n bomDet,\n new String [] {\n \"Select\", \"Material\", \"Reqd. Quantity\", \"Purchase Requirement\", \"Remark\"\n }\n ) {\n Class[] types = new Class [] {\n \tjava.lang.Boolean.class, \n \tjava.lang.String.class, \n java.lang.Long.class, \n java.lang.Long.class,\n java.lang.String.class\n };\n \n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return columnIndex==0 ? true : false ;\n }\n });\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\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 }" ]
[ "0.7760482", "0.7494708", "0.73748326", "0.73521537", "0.7342395", "0.73253584", "0.73095024", "0.71751374", "0.7172456", "0.7169151", "0.7142908", "0.71347284", "0.7108234", "0.70298237", "0.69754493", "0.69512266", "0.6923198", "0.6878896", "0.6857763", "0.6843557", "0.6843349", "0.6830375", "0.68178236", "0.68146294", "0.6802777", "0.6762582", "0.67525816", "0.67390406", "0.6738788", "0.6731515", "0.6730604", "0.67212135", "0.6711066", "0.66965246", "0.66619164", "0.66360986", "0.66218126", "0.66217476", "0.6586642", "0.658615", "0.6579391", "0.6577275", "0.65730286", "0.6566182", "0.65660167", "0.655887", "0.6544689", "0.65399325", "0.6522405", "0.6517475", "0.65127444", "0.6507948", "0.6500912", "0.64871097", "0.6480087", "0.6477797", "0.647153", "0.647017", "0.646954", "0.6461831", "0.64543915", "0.64466864", "0.64104605", "0.64071333", "0.64070046", "0.63970524", "0.6383604", "0.6369195", "0.6355447", "0.63518095", "0.6340864", "0.6336354", "0.6330984", "0.6327811", "0.63243717", "0.63222724", "0.6318129", "0.6299905", "0.6298804", "0.62921005", "0.6291822", "0.6288929", "0.62874216", "0.62856436", "0.62798536", "0.62712115", "0.62701786", "0.6267056", "0.62504375", "0.62487644", "0.624497", "0.6235235", "0.6219858", "0.62173295", "0.62146735", "0.62075853", "0.62041765", "0.62033415", "0.6198925", "0.6189459", "0.6172372" ]
0.0
-1
display the action bar
private void setActionBar(int action_backColor) { ActionBar actionBar = getSupportActionBar(); if(actionBar != null) { actionBar.setDisplayShowTitleEnabled(true); actionBar.setHomeButtonEnabled(true); actionBar.setDisplayUseLogoEnabled(true); actionBar.setLogo(R.mipmap.ic_launcher_round); actionBar.setDisplayShowHomeEnabled(true); actionBar.setBackgroundDrawable(new ColorDrawable(action_backColor)); actionBar.setTitle(getResources().getString(R.string.app_name)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showActionBar(){\n getSupportActionBar().show();\n yell(\"Showing action bar\");\n }", "void requestActionBar();", "private void layoutActionBar() {\n ActionBar ab = getSupportActionBar();\n if(ab != null) {\n if (mode == 2) {\n ab.setTitle(\"Route Record\");\n } else {\n ab.setTitle(\"Recommend Route\");\n }\n ab.setDisplayHomeAsUpEnabled(true);\n }\n }", "@Override\n public void run() {\n ActionBar actionBar = getActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "private void setActionBar() {\n headView.setText(\"消息中心\");\n headView.setGobackVisible();\n headView.setRightGone();\n // headView.setRightResource();\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n // mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "protected DisplayRequest actionBarDisplay() {\n return DisplayRequest.NO_ACTION_BAR;\n }", "@TargetApi(14)\r\n private void initActionBar()\r\n {\r\n try\r\n {\r\n ActionBar bar = getActionBar();\r\n bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME);\r\n\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n bar.setDisplayOptions(ActionBar.DISPLAY_USE_LOGO, ActionBar.DISPLAY_USE_LOGO);\r\n }\r\n else\r\n {\r\n bar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_USE_LOGO);\r\n }\r\n\r\n if (AndroidVersion.isICSOrAbove())\r\n {\r\n bar.setHomeButtonEnabled(true);\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(TAG, Log.getStackTraceString(e));\r\n }\r\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n\n }", "protected void setContents() {\n\tactionBar.setHomeAction(homeAction);\r\n\tactionBar.setDisplayHomeAsUpEnabled(true);\r\n\tactionBar.addAction(shareAction);\r\n\tactionBar.addAction(otherAction);\r\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n mControlsView.setVisibility(View.VISIBLE);\n }", "private void setupActionBar() {\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\t}", "public void hideActionBar(){\n getSupportActionBar().hide();\n yell(\"Hiding action bar\");\n }", "protected void initActionBar() {\n\t\tActionBar actionBar = this.getActionBar();\r\n\t\tactionBar.setDisplayHomeAsUpEnabled(IsCanBack());\r\n\t\tactionBar.setTitle(getActionBarTitle());\r\n\t}", "boolean setActionBarVisible(boolean visible);", "private void hideActionBar() {\n View decorView = getWindow().getDecorView();\n // Hide the status bar.\n int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n decorView.setSystemUiVisibility(uiOptions);\n // Hide the action bar\n getSupportActionBar().hide();\n }", "private void configureActionBar() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(true);\n }\n }", "protected void setupActionBar()\r\n\t{\r\n\t\tfinal ActionBar actionBar = getActionBar();\r\n\t\tif (actionBar == null)\r\n\t\t\treturn;\r\n\t\tactionBar.setDisplayShowTitleEnabled(true);\r\n\t\tactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\r\n\t\tactionBar.setDisplayUseLogoEnabled(true);\r\n\t\tactionBar.setLogo(R.drawable.itiffin);\r\n\t\tactionBar.setBackgroundDrawable(getResources().getDrawable(\r\n\t\t\t\tR.drawable.black_semi_trans_strip));\r\n\t\tactionBar.setDisplayHomeAsUpEnabled(true);\r\n\t\tactionBar.setHomeButtonEnabled(true);\r\n\t\tactionBar.setTitle(R.string.app_name);\r\n\r\n\r\n\t}", "@SuppressLint(\"NewApi\")\r\n @TargetApi(Build.VERSION_CODES.HONEYCOMB)\r\n public void setupActionBar() {\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n // Show the Up button in the action bar.\r\n ActionBar actionBar = getActionBar();\r\n actionBar.setDisplayHomeAsUpEnabled(true);\r\n\r\n }\r\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n }", "private void updateActionBar() {\n\t\tif (!(getContext() instanceof AppCompatActivity)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttoolbar.setSubtitle(R.string.cvv_enter_security_code);\n\t}", "private void setupActionBar() {\n\n setTitle(getString(R.string.new_pub_activity_title));\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n final ActionBar actionBar = getSupportActionBar();\n if (actionBar != null)\n actionBar.setDisplayHomeAsUpEnabled(true);\n }", "private void actionBarManager() {\n MaterialToolbar toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n }", "private void actionbarInit() \n\t{\n\t\tactionbar_ll_left.setVisibility(View.VISIBLE);\n\t\tactionbar_tv_back_name_left.setVisibility(View.GONE);\t\t\n\t\t\n\t\tactionbar_btn_right_left.setVisibility(View.GONE);\n\t\tactionbar_imgbtn_right.setVisibility(View.GONE);\n\n\t\tactionbar_tv_back_name_left.setText(\"\");\n\t\tactionbar_tv_name_center.setText(getString(R.string.set));\n\t\tactionbar_btn_right_left.setText(getString(R.string.rule));\n\n\t\tactionbar_ll_left.setOnClickListener(clickListener_actionbar);\n//\t\tactionbar_imgbtn_right.setOnClickListener(clickListener_actionbar);\n\t}", "private void HideActionBar(){\n if(getSupportActionBar() != null){\n getSupportActionBar().hide();\n }\n }", "private void showEditBar() {\n\t\tfinal LayoutInflater inflater = (LayoutInflater) getSupportActionBar().getThemedContext()\n\t\t\t\t.getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\tfinal View customActionBarView = inflater.inflate(\n\t\t\t\tR.layout.actionbar_custom_view_done_cancel, null);\n\t\tcustomActionBarView.findViewById(R.id.actionbar_done).setOnClickListener(saveListener);\n\t\tcustomActionBarView.findViewById(R.id.actionbar_cancel).setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t// Show the custom action bar view and hide the normal Home icon and title.\n\t\tfinal ActionBar actionBar = getSupportActionBar();\n\t\tactionBar.setDisplayOptions(\n\t\t\t\tActionBar.DISPLAY_SHOW_CUSTOM,\n\t\t\t\tActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME\n\t\t\t\t\t\t| ActionBar.DISPLAY_SHOW_TITLE);\n\t\tactionBar.setCustomView(customActionBarView,\n\t\t\t\tnew ActionBar.LayoutParams(\n\t\t\t\t\t\tViewGroup.LayoutParams.MATCH_PARENT,\n\t\t\t\t\t\tViewGroup.LayoutParams.MATCH_PARENT));\n\t\t// END_INCLUDE (inflate_set_custom_view)\n\t}", "private void hideActionBar(){\n try {getSupportActionBar().hide();}\n catch (NullPointerException e){ Log.e(\"Exception\",\"null\");}\n }", "private void showBars() {\n if (!mIsActive || mShowBars) {\n return;\n }\n mShowBars = true;\n mOrientationManager.unlockOrientation();\n showToolBar(true);\n showStatusBar();\n // mActionBar.show();\n //mActivity.getGLRoot().setLightsOutMode(false);\n refreshHidingMessage();\n refreshBottomControlsWhenReady();\n }", "protected void setupActionBar() {\n setTitle();\n setSutTitle();\n setIcon();\n setHomeAsUp(mCallback.getHomeButtonStyle() == HomeButtonStyle.SHOW_HOME_AS_UP);\n }", "boolean hasActionBar();", "public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }", "public void show(){\n initializeTouchpad();\n initializeButtons();\n initializeShieldBar();\n }", "public void initializeActionbar() {\n toolbar = (Toolbar) findViewById(R.id.toolbar);\n\n //setting the toolbar as layout actionbar\n if (toolbar != null)\n setSupportActionBar(toolbar);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void initialize(){\n toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayShowTitleEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n\n\n }", "private void initializeActionbar() {\n toolbar = binding.toolbar;\n Objects.requireNonNull(toolbar).setTitle(R.string.navigation_my_pets);\n setSupportActionBar(toolbar);\n ActionBar actionBar = getSupportActionBar();\n Objects.requireNonNull(actionBar).setDisplayHomeAsUpEnabled(true);\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "protected abstract Toolbar provideSupportActionbar();", "private void showSystemUI() {\n getWindow().getDecorView().setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void setActionBar() {\n\t\tString text=\"\";\n\t\tif(isBindEmail){\n\t\t\ttext=\"修改邮箱\";\n\t\t\tvalidateUser();\n\t\t}else{\n\t\t\ttext=\"绑定邮箱\";\n\t\t\tbindPhone(AppContext.getInstance().getLocalUserInfo(mContext).id);\n\t\t}\n\t\theadView.setText(text);\n\t\theadView.setGobackVisible();\n\t\theadView.setRightGone();\n\t}", "protected void refreshActionBar() {\n if (mActionBarController != null) {\n mActionBarController.refresh();\n }\n mActivity.invalidateOptionsMenu();\n }", "private void contributeToActionBars() {\n\t\tIActionBars bars = getViewSite().getActionBars();\n\t\tfillLocalPullDown(bars.getMenuManager());\n\t\tfillLocalToolBar(bars.getToolBarManager());\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //getMenuInflater().inflate(R.menu.activity_main, menu);\n \tsuper.onCreateOptionsMenu(menu);\n getSupportMenuInflater().inflate(R.menu.actionbar, menu);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n BatteryIcon = (MenuItem)menu.findItem(R.id.acb_battery);\n setActBarBatteryIcon(Callbacksplit.getsavedBatteryStateIcon());\n ConnectIcon = (MenuItem)menu.findItem(R.id.acb_connect);\n setActBarConnectIcon();\n \n ((MenuItem)menu.findItem(R.id.acb_m_5)).setVisible(false);\n\n return true;\n }", "@Override\n\tpublic void showAction(int id) {\n\t\t\n\t}", "private void setupSystemUI() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(0).start();\r\n getWindow().getDecorView().setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n }", "private void initializeAppBar() {\n Toolbar toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n ActionBar actionbar = getSupportActionBar();\n actionbar.setDisplayHomeAsUpEnabled(true);\n actionbar.setHomeAsUpIndicator(R.drawable.ic_menu_black_24dp);\n }", "public void topBarClicked()\n\t{\n\t\tkillMe();\n\t\tnew AccountScreen() {\n\t\t\tpublic void showNextScreen()\n\t\t\t{\n\t\t\t\tnew EnemyCacheScreen(EnemyCacheScreen.getStaticTheCache(), EnemyCacheScreen.getTheUser());\n\t\t\t}\n\t\t};\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.admissionsystemba);\n\t\tandroid.app.ActionBar actionBar = getActionBar();\n\t\tactionBar.setDisplayHomeAsUpEnabled(true);\n\t\tactionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#1D74FF\")));\n\t}", "private void setupActionBar(String title) {\n Button openDrawer = findViewById(R.id.open_drawer);\n TextView activityTitle = findViewById(R.id.activity_title);\n\n Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n openDrawer.setBackgroundDrawable(new IconicsDrawable(this).icon(GoogleMaterial.Icon.gmd_menu).sizeDp(30).color(getResources().getColor(R.color.colorPrimary)));\n openDrawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mainDrawer.openDrawer();\n }\n });\n\n activityTitle.setText(title); //sets the TextViews text\n }", "private void setActionBar() {\n ActionBar mActionBar = getSupportActionBar();\n mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);\n mActionBar.setCustomView(R.layout.actionbar_design);\n\n\n View mCustomView = mActionBar.getCustomView();\n ImageView image_drawer = (ImageView) mCustomView.findViewById(R.id.image_drawer);\n ImageView img_btllogo = (ImageView) mCustomView.findViewById(R.id.img_btllogo);\n ImageView img_home = (ImageView) mCustomView.findViewById(R.id.img_home);\n ImageView img_virtualRoom = (ImageView) mCustomView.findViewById(R.id.img_virtualRoom);\n ImageView img_search=(ImageView)mCustomView.findViewById(R.id.img_search);\n ImageView img_fav=(ImageView)mCustomView.findViewById(R.id.img_fav);\n\n img_search.setVisibility(View.VISIBLE);\n img_fav.setVisibility(View.VISIBLE);\n img_virtualRoom.setVisibility(View.VISIBLE);\n\n img_virtualRoom.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(getApplicationContext(),VirtualRoomActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n });\n\n img_fav.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), FavouriteList.class);\n app = new AppPrefs(getApplicationContext());\n app.setfav(\"list\");\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n\n img_search.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), Search.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n\n image_drawer.setImageResource(R.drawable.back);\n image_drawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onBackPressed();\n }\n });\n\n img_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n app = new AppPrefs(LaminateList.this);\n app.setCategoryid(\"\");\n Intent i = new Intent(LaminateList.this, MainActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }\n });\n\n mActionBar.setCustomView(mCustomView);\n mActionBar.setDisplayShowCustomEnabled(true);\n }", "private void showSystemUI() {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n );\n }", "public void onCustomizeActionBar(ActionBar actionBar) {\n actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pc_main_activity_background_color)));\n actionBar.setDisplayOptions(28);\n ImageView imageView = new ImageView(this);\n imageView.setBackgroundResource(R.drawable.v_setting_icon);\n imageView.setContentDescription(getString(R.string.activity_title_settings));\n imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.startWithFragment(NetworkDiagnosticsActivity.this.mActivity, NetworkDiagnosticsSettingFragment.class);\n }\n });\n actionBar.setEndView(imageView);\n }", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e( \"ShowToolBar\");\r\n\t}", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "private void customizeComlogActionBar() {\r\n\r\n ActionBar actionBar = getActionBar();\r\n\r\n actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.action_bar_background));\r\n actionBar.setDisplayHomeAsUpEnabled(true);\r\n\r\n //disable application icon from ActionBar\r\n actionBar.setIcon(R.drawable.conversation_action_bar_custom_icon);\r\n\r\n //disable application name from ActionBar\r\n actionBar.setDisplayShowTitleEnabled(false);\r\n\r\n // Set custom view for the action bar to display contact icon as circle.\r\n LayoutInflater mInflater = LayoutInflater.from(this);\r\n View customView = mInflater.inflate(R.layout.conversation_custom_action_bar, null);\r\n\r\n contactNameTextView = (TextView) customView.findViewById(R.id.conversation_contact_name);\r\n contactNameTextView.setOnClickListener(this);\r\n\r\n lastMessageSentDateTextView = (TextView) customView.findViewById(R.id.conversation_last_message_sent_date);\r\n typingStatusTextView = (TextView) customView.findViewById(R.id.conversation_typing_status);\r\n\r\n contactImageView = (ImageView) customView.findViewById(R.id.conversation_contact_image);\r\n contactImageView.setOnClickListener(this);\r\n\r\n actionBar.setCustomView(customView);\r\n actionBar.setDisplayShowCustomEnabled(true);\r\n\r\n UIUtils.showActionbar(this);\r\n }", "@Override\r\n\tpublic void ShowToolBar(Context _in_context) {\n\t\tTypeSDKLogger.e(\"ShowToolBar\");\r\n\t}", "public interface IActionBarController {\n\n void setTitle(String title);\n\n void hideBackButton(boolean isBack);\n}", "private void setUpActionBar() {\n //Uses superclass method to instantiate ActionBar\n mActionBarToolbar = getActionBarToolbar();\n mActionBarToolbar.setTitle(getResources().getString(R.string.title_activity_settings_languajes));\n setSupportActionBar(mActionBarToolbar);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n int flags = View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;\n\n Activity activity = getActivity();\n if (activity != null\n && activity.getWindow() != null) {\n activity.getWindow().getDecorView().setSystemUiVisibility(flags);\n }\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.hide();\n }\n\n }", "public void showMenu() {\n menuController.showMenuPanel();\n }", "public void updateMenus() {\n\t\tSystem.out.println(\"BarGraphDisplayer.updateMenus\");\n\t\tCommandRegistrar.gRegistrar.checkAction(\"barGraph\");\n\t\tCommandRegistrar.gRegistrar.enableAction(\"viewOptions\");\n\t}", "@Override\r\n protected void onScreenActivate() {\n if (Forge.isLandscapeMode() && displaySidebarForLandscapeMode()) {\r\n menu.hide();\r\n menu.show(getLeft(), 0, getWidth(), getHeight());\r\n }\r\n }", "@SuppressLint(\"InlinedApi\")\n private void show() {\n myrlayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\n mVisible = true;\n\n // Schedule a runnable to display UI elements after a delay\n mHideHandler.removeCallbacks(mHidePart2Runnable);\n mHideHandler.postDelayed(mShowPart2Runnable, UI_ANIMATION_DELAY);\n }", "private void showMenuScreen()\n {\n logoutButton.setVisibility(textViewLabel.VISIBLE);\n battleButton.setVisibility(View.VISIBLE);\n char1.setVisibility(View.VISIBLE);\n char2.setVisibility(View.VISIBLE);\n char3.setVisibility(View.VISIBLE);\n }", "public int onCustomizeActionBar(ActionBar actionBar) {\n return 0;\n }", "public void show();", "public void setupActionBar(CharSequence title) {\r\n\t\tfinal ViewGroup actionBarCompat = getActionBarCompat();\r\n\t\tif (actionBarCompat == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tLinearLayout.LayoutParams springLayoutParams = new LinearLayout.LayoutParams(\r\n\t\t\t\t0, ViewGroup.LayoutParams.FILL_PARENT);\r\n\t\tspringLayoutParams.weight = 1;\r\n\r\n\t\tView.OnClickListener homeClickListener = new View.OnClickListener() {\r\n\t\t\tpublic void onClick(View view) {\r\n\t\t\t\tgoHome();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tif (title != null) {\r\n\t\t\t// Add Home button\r\n\t\t\taddActionButtonCompat(R.drawable.ic_action_home,\r\n\t\t\t\t\tR.string.description_home_icon, homeClickListener, true);\r\n\r\n\t\t\t// Add title text\r\n\t\t\tTextView titleText = new TextView(mActivity, null,\r\n\t\t\t\t\tR.attr.actionbarCompatTextStyle);\r\n\t\t\ttitleText.setLayoutParams(springLayoutParams);\r\n\t\t\ttitleText.setText(title);\r\n\t\t\tactionBarCompat.addView(titleText);\r\n\r\n\t\t} else {\r\n\t\t\tImageButton logo = new ImageButton(mActivity, null,\r\n\t\t\t\t\tR.attr.actionbarCompatLogoStyle);\r\n\t\t\tlogo.setOnClickListener(homeClickListener);\r\n\t\t\tactionBarCompat.addView(logo);\r\n\r\n\t\t\tView spring = new View(mActivity);\r\n\t\t\tspring.setLayoutParams(springLayoutParams);\r\n\t\t\tactionBarCompat.addView(spring);\r\n\t\t}\r\n\r\n\t}", "private void setToolBar() {\r\n toolbar.setTitle(R.string.photo_details);\r\n ActionBar ab = getSupportActionBar();\r\n if (ab != null) {\r\n ab.setDisplayHomeAsUpEnabled(true);\r\n }\r\n toolbar.setNavigationIcon(R.drawable.ic_back);\r\n }", "public abstract BossBar show();", "public void addMenuActionToCoolBar(MenuAction action) {\n\t\t_coolBar.addMenuAction(action);\n\t}", "public AboutAction(CyApplicationManager appMgr,CySwingApplication swingApp) {\n\t\tsuper(Messages.AC_ABOUT,appMgr,swingApp);\n\t\tsetPreferredMenu(\"Plugins.\" + Messages.AC_MENU_ANALYSIS);\n\t}", "private void showViews() {\n toolbar.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2));\n toolbar.animate().translationY(0).setInterpolator(new DecelerateInterpolator(2)).start();\n// getSupportActionBar().show();\n }", "private void showActionBarProgress(boolean visible)\n\t{\n\t\t((ActionBarActivity) getActivity()).setSupportProgressBarIndeterminateVisibility(visible);\n\t\tmActionBarProgress = visible;\n\t}", "private void placeActions() {\n IActionBars actionBars = getViewSite().getActionBars();\n\n // first in the menu\n IMenuManager menuManager = actionBars.getMenuManager();\n menuManager.add(mCreateFilterAction);\n menuManager.add(mEditFilterAction);\n menuManager.add(mDeleteFilterAction);\n menuManager.add(new Separator());\n menuManager.add(mClearAction);\n menuManager.add(new Separator());\n menuManager.add(mExportAction);\n\n // and then in the toolbar\n IToolBarManager toolBarManager = actionBars.getToolBarManager();\n for (CommonAction a : mLogLevelActions) {\n toolBarManager.add(a);\n }\n toolBarManager.add(new Separator());\n toolBarManager.add(mCreateFilterAction);\n toolBarManager.add(mEditFilterAction);\n toolBarManager.add(mDeleteFilterAction);\n toolBarManager.add(new Separator());\n toolBarManager.add(mClearAction);\n }", "public void Rt_Click_AstCreation_Buttom_AppBar() {\r\n\t\tActions ac = new Actions(driver);\r\n\t\tac.contextClick().build().perform();\r\n\t}", "private void loadAppBar()\n\t{\n\t\tLayoutInflater inflator=(LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflator.inflate(R.layout.search_page_header, null);\n\t\t\t\n\t\tActionBar mActionBar = getActionBar();\n\t\tmActionBar.setDisplayShowHomeEnabled(false);\n\t\tmActionBar.setDisplayShowTitleEnabled(false);\n\t\tmActionBar.setDisplayUseLogoEnabled(false);\n\t\tmActionBar.setDisplayShowCustomEnabled(true);\n\t\tmActionBar.setCustomView(v);\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n\t\t\ttry{\n\t\t\t\tToolbar parent = (Toolbar) v.getParent(); \n\t\t\t\tparent.setContentInsetsAbsolute(0, 0);\n\t\t\t} catch(ClassCastException e) {\n\t\t\t\te.printStackTrace(); \n\t\t\t}\n\t\t}\n\t\t\n\t\tImageView menuBtn \t= (ImageView) v.findViewById(R.id.iv_menu_btn);\n\t\tImageView ivLogo\t\t= (ImageView) v.findViewById(R.id.iv_logo);\n\t\tImageButton ibHome = (ImageButton) v.findViewById(R.id.ib_home);\n\t\t\n\t\tibHome.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tfinish();\n\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tstartActivity(home);\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tivLogo.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tif (loadingURL.contains(\"/Flight/ShowTicket\") ||\n\t\t\t\t\t\t\tloadingURL.contains(\"/Hotel/Voucher\")) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\tstartActivity(home);\n\t\t\t\t\t} else if (wv1.canGoBack()) {\n\t\t\t\t\t\twv1.goBack();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t});\n\t\t\n\t\tmenuBtn.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tif (loadingURL.contains(\"/Flight/ShowTicket\") ||\n\t\t\t\t\t\t\tloadingURL.contains(\"/Hotel/Voucher\")) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\tstartActivity(home);\n\t\t\t\t\t} else if (wv1.canGoBack()) {\n\t\t\t\t\t\twv1.goBack();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\t\n\t}", "@Override\n\tpublic void showContents() {\n\t\tt1.start();\n\t\tif (menuAnimation.title_showing())\n\t\t{\n\t\t\tprogram.add(Play);\n\t\t\tprogram.add(Settings);\n\t\t\tprogram.add(Credits);\n\t\t\tprogram.add(Exit);\n\t\t\tprogram.add(barrel);\n\t\t\tprogram.add(tank);\n\t\t\ttitle.setLocation(30,80);\n\t\t\ttitle.changeTransparent(1);\n\t\t\tprogram.add(title);\n\t\t\tbackground.setImage(\"otherImages/background.png\");\n\t\t\tbackground.setSize(900,620);\n\t\t\tbackground.setLocation(-50,0);\n\t\t\tbg.start();\n\t\t\tbackground.sendToBack();\n\t\t\tprogram.add(background);\n\t\t}\n\t}", "@SuppressLint(\"NewApi\")\n\tprivate void changeActionBarBackground() {\n\t\tif (AppStartupManager.getTopbarStylingInfoBean() != null) {\n\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\tActionBarStylingInfoBean stylingInfoBean = AppStartupManager.getTopbarStylingInfoBean();\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// Only the background of the Action bar needs to be set\n\t\t\t\t\t// using\n\t\t\t\t\t// the information in the topbar styling info bean\n\t\t\t\t\tif (stylingInfoBean.getTopbarBgType().equalsIgnoreCase(SmartConstants.TOPBAR_BG_TYPE_COLOR)) {\n\t\t\t\t\t\tactionbar.setBackgroundDrawable(new ColorDrawable(Color.parseColor(stylingInfoBean.getTopbarBgColor())));\n\t\t\t\t\t} else if (stylingInfoBean.getTopbarBgType().equalsIgnoreCase(SmartConstants.TOPBAR_BG_TYPE_IMAGE)) {\n\t\t\t\t\t\t// set the background image for action bar\n\t\t\t\t\t\tactionbar.setBackgroundDrawable(AppUtility.getDrawableForId(AppUtility.getResourseIdByName(getApplicationContext().getPackageName(), \"drawable\",\n\t\t\t\t\t\t\t\tstylingInfoBean.getTopbarBgImage())));\n\t\t\t\t\t} else if (stylingInfoBean.getTopbarBgType().equalsIgnoreCase(SmartConstants.TOPBAR_BG_TYPE_GRADIENT)) {\n\t\t\t\t\t\tactionbar.setBackgroundDrawable(AppUtility.createBgGradient(stylingInfoBean.getTopbarBgGradientType(), stylingInfoBean.getTopbarBgGradient()));\n\t\t\t\t\t}\n\n\t\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->changeActionBarBackground->topbar text color:\" + Color.parseColor(stylingInfoBean.getTopbarTextColor()));\n\t\t\t\t\ttopbarTextColor = stylingInfoBean.getTopbarTextColor();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private void setToolBarInfo() {\n mToolbar = (Toolbar)findViewById(R.id.toolbar);\n mToolbar.setTitle(\"Chatアプリ\");\n mToolbar.setTitleTextColor(-1);\n mToolbar.setNavigationIcon(R.drawable.common_google_signin_btn_icon_light);\n //setActionBar(toolbar);\n mToolbar.inflateMenu(R.menu.main_menu);\n mToolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n // メニューのクリック処理\n switch (item.getItemId()) {\n case R.id.sign_out_menu:\n mFirebaseAuth.signOut();\n Intent intent = new Intent();\n intent.setClassName(D.packageRoot, D.packageRoot + \".MainActivity\");\n startActivity(intent);\n return true;\n }\n return true;\n }\n });\n //setSupportActionBar(toolbar);\n }", "private void setUpActionBar() {\n\t\tUtil.setFragmentActionBarTitle((BaseActivity)getActivity(), getResources().getString(R.string.navigation_menu_faq_question));\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.action_settings:\n if(SETTINGS_ACCESS_PER == 1) {\n getSupportActionBar().setTitle(\"Settings\");\n displaySelectedScreen(id);\n } else {\n Toast.makeText(this, \"Access Denied.\", Toast.LENGTH_LONG).show();\n }\n return true;\n case R.id.action_logout:\n finish();\n System.exit(0);\n break;\n /*case R.id.add:\n getSupportActionBar().setTitle(\"Add\");\n return true;\n case R.id.reset:\n getSupportActionBar().setTitle(\"Reset\");\n return true;*/\n default:\n break;\n }\n /* if (id == R.id.action_settings) {\n return true;\n }*/\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Admin_Screen();\n\t\t\t\tADCL.setVisible(false);\n\t\t\t}", "private void showActionOverflowMenu() {\n try {\n ViewConfiguration config = ViewConfiguration.get(this);\n Field menuKeyField = ViewConfiguration.class.getDeclaredField(\"sHasPermanentMenuKey\");\n if (menuKeyField != null) {\n menuKeyField.setAccessible(true);\n menuKeyField.setBoolean(config, false);\n }\n } catch (Exception e) {\n Log.d(TAG, e.getLocalizedMessage());\n }\n }" ]
[ "0.8140779", "0.7579697", "0.7279522", "0.72535074", "0.72181815", "0.7200277", "0.7093932", "0.7067354", "0.70450044", "0.7041805", "0.7010994", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.69294673", "0.68206644", "0.6810615", "0.679435", "0.6791523", "0.67527163", "0.6688254", "0.66829336", "0.66775185", "0.6651685", "0.66482484", "0.66128075", "0.6583483", "0.6520541", "0.6472936", "0.6468632", "0.6460091", "0.6449387", "0.64310324", "0.625376", "0.6250022", "0.62459546", "0.6238373", "0.6238373", "0.6238373", "0.6231462", "0.6212722", "0.6211797", "0.6206783", "0.6187769", "0.6169958", "0.6136694", "0.61338365", "0.61245126", "0.612042", "0.61203825", "0.6110455", "0.6103951", "0.6098774", "0.60932946", "0.60897285", "0.6072164", "0.6067773", "0.60661745", "0.6042342", "0.6042342", "0.6042342", "0.6042342", "0.6042342", "0.6042342", "0.6033632", "0.6015871", "0.59933996", "0.5981263", "0.59717983", "0.59636986", "0.5963444", "0.5959868", "0.5957507", "0.595689", "0.5948104", "0.59363884", "0.592594", "0.5888195", "0.5876841", "0.58756644", "0.58741117", "0.5872996", "0.58436996", "0.58348155", "0.58315283", "0.5829739", "0.5829588", "0.58284277", "0.5815027", "0.58074105", "0.58073896", "0.5792374", "0.5789171", "0.578906", "0.57875085", "0.5786663" ]
0.603062
69
Initialize the engines In this case, we have the same null engine for all type data to encryp/decrypt
protected void init() { crypterString = crypterLong = crypterDouble = crypterBytes = new MauiCrypterEngineNull(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void EngineInit() {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[] {};\n }\n\n public void checkClientTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n\n public void checkServerTrusted(X509Certificate[] chain,\n String authType) throws CertificateException {\n }\n } };\n\n try {\n\n\n //取得SSL的SSLContext实例\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(null,trustAllCerts,new java.security.SecureRandom());\n sslEngine = sslContext.createSSLEngine();\n sslEngine.setUseClientMode(true);\n\n } catch(NoSuchAlgorithmException e) {\n } catch(KeyManagementException e) {\n }\n SSLSession session = sslEngine.getSession();\n int appBufferMax = session.getApplicationBufferSize();\n int netBufferMax = session.getPacketBufferSize();\n Log.i(\"123\", \"EngineInit: appBufferMax:\"+appBufferMax + \"netBufferMax:\"+netBufferMax);\n ByteBuffer mTunSSRAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer mTunSSRWrapData = ByteBuffer.allocate(netBufferMax);\n ByteBuffer peerAppData = ByteBuffer.allocate(appBufferMax);\n ByteBuffer peerNetData = ByteBuffer.allocate(netBufferMax);\n }", "@Override\n public void initEngine() {\n \n }", "@Override\n public void initEngine() {\n \n }", "public void initializeEngines() {\n\t\tfor (int i=0; i < _engineNumber; i++) {\n\t\t\tengineList.add(new Engine(\"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t}\n\t}", "public void engineInitEncrypt (Key key)\n throws KeyException {\n Key[] keys = splitKey(key);\n\n des1.initEncrypt(keys[0]);\n des2.initDecrypt(keys[1]);\n des3.initEncrypt(keys[2]);\n }", "private void initializeEngine() {\n engine.setDecayDelay(emotionalAgent.decayTimeMillis());\n\n // Get decay steps parameter from ADF if exists and set decay steps in engine\n engine.setDecaySteps(emotionalAgent.decayStepsToMin());\n\n // Set engine initialized\n engine.setInitialized(true);\n }", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "public void gameEngineInitializer() {\n\t\t\r\n\t\tthis.sputacchioGameEngine = new SputacchioGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber);// da implementare alla fine\r\n\t\tthis.classicGameEngine = new ClassicGameEngine(supportDeck, mainDeck, mainBoard, players, gamestate, playerDoingTurnNumber, engineUtility, filter);\r\n\t\t\r\n\t\tthis.gamestate.setCurrentGameType(GameType.CLASSICGAME);//si dovrebbe iniziare dal cucù ma facciamo dopo\r\n\t\tthis.gamestate.setCurrentHandNumber(INITIALHANDNUMBER);\r\n\t\tthis.givePersonalJolly();\r\n\t\t\r\n\t\tthis.classicGameEngine.distributeHands();//queste due si fanno all'inizio di ogni mano, non sono da fare solo la prima volta e basta\r\n\t\tthis.classicGameEngine.substituteJolly();\r\n\t\t\r\n\t\tmainEngine();\r\n\t\t//TODO ci vuole un metodo che, a parte la prima chiamata di Server Room, chiama il sotto-engine giusto in base a game type. Se classic game engine fa una return per segnalare\r\n\t\t//che la mano è finita perchè nessuno ha carte in mano, game engine deve ridare le 6 carte o settare l'ultima mano, o la mano della scala obbligatoria, e cambiare chi inizia a cucù.\r\n\t\t//Poi penso che debba chiamare Filter per mostrare a entrambi cosa accade, stampare le nuove carte e dichiarare l'inizio del cucù.\r\n\t}", "private void initEngineAndJoinChannel() {\n // Join and start call\n initializeEngine();\n setupVideoConfig();\n setupLocalVideo();\n joinChannel();\n }", "void init(@NotNull final AIEngine engine);", "protected void doInit()\r\n/* 131: */ {\r\n/* 132:194 */ this.tmpBuf = new byte[32];\r\n/* 133:195 */ engineReset();\r\n/* 134: */ }", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption should the engine be initialized for encryption (true) or decryption (false)\n\t * @param key - symmetric encryption key\n\t * \n\t * @throws IllegalStateException - if any initialization parameters are invalid\n\t */\n\tpublic void init(boolean forEncryption, byte[] key) throws IllegalStateException;\n\t\n\t/**\n\t * @return name of the encryption algorithm\n\t */\n\tpublic String getAlgorithmName();\n\t\n\t/**\n\t * @return block size of the encryption algorithm\n\t */\n\tpublic int getBlockSize();\n\t\n\t/**\n\t * Performs an encryption or decryption of a block.\n\t * The amount of processed data depends on the actual algorithm's block size \n\t * \n\t * @param in - buffer with the data to be processed\n\t * @param inOff - starting position of the data at 'in'\n\t * @param out - preallocated buffer to store the processed data\n\t * @param outOff - starting position at 'out'\n\t * \n\t * @return size of processed data (typically algorithm's block size)\n\t * \n\t * @throws IllegalStateException if engine was not initialized or buffers are invalid\n\t */\n\tpublic int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException;\n\t\n\t/**\n\t * Resets the encryption engine (if required by the implementation)\n\t */\n\tpublic void reset();\n}", "private void initializeEngine() {\n try {\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n } catch (Exception e) {\n Log.e(\"VIDEO.CALL\", Log.getStackTraceString(e));\n throw new RuntimeException(\"NEED to check rtc sdk init fatal error\\n\" + Log.getStackTraceString(e));\n }\n }", "protected void engineInitEncrypt (Key key)\n throws KeyException {\n makeKey(key);\n }", "protected void engineInitDecrypt (Key key)\n throws KeyException {\n Key[] keys = splitKey(key);\n\n des1.initDecrypt(keys[2]);\n des2.initEncrypt(keys[1]);\n des3.initDecrypt(keys[0]);\n }", "private void testInitializeEngine() {\r\n\t\r\n\t\t/*\tInitialization of variables\t*/\r\n\t\tPointerByReference phEngine = new PointerByReference();\r\n\t\tint nScale = 16;\r\n\t\tint nMaxFace = 10;\r\n\t\tPointer pWorkMem = C_Library.INSTANCE.malloc(WORKBUF_SIZE);\r\n\t\t\r\n\t\t/*\tInitialization of engine\t*/\r\n\t\tNativeLong nRet = AFD_FSDK_Library.INSTANCE.AFD_FSDK_InitialFaceEngine(\r\n\t\t\t\tAPPID, SDKKey, pWorkMem, WORKBUF_SIZE, phEngine, \r\n\t\t\t\t_AFD_FSDK_OrientPriority.AFD_FSDK_OPF_0_HIGHER_EXT, nScale, nMaxFace\r\n\t\t);\r\n\t\t\r\n\t\t/*\tEngine assignment\t*/\r\n\t\tthis.phEngineFD = phEngine;\r\n\t\t\r\n\t\t/*\tPrint information\t*/\r\n\t\tSystem.out.println(\"Result of initialization of engine: \" + nRet.longValue());\r\n\t\tSystem.out.println(phEngine);\r\n\t\tSystem.out.println(phEngine.getPointer());\r\n\t\tSystem.out.println(phEngine.getValue());\r\n\t}", "protected void engineReset()\r\n/* 79: */ {\r\n/* 80:143 */ this.V00 = IV[0];\r\n/* 81:144 */ this.V01 = IV[1];\r\n/* 82:145 */ this.V02 = IV[2];\r\n/* 83:146 */ this.V03 = IV[3];\r\n/* 84:147 */ this.V04 = IV[4];\r\n/* 85:148 */ this.V05 = IV[5];\r\n/* 86:149 */ this.V06 = IV[6];\r\n/* 87:150 */ this.V07 = IV[7];\r\n/* 88:151 */ this.V10 = IV[8];\r\n/* 89:152 */ this.V11 = IV[9];\r\n/* 90:153 */ this.V12 = IV[10];\r\n/* 91:154 */ this.V13 = IV[11];\r\n/* 92:155 */ this.V14 = IV[12];\r\n/* 93:156 */ this.V15 = IV[13];\r\n/* 94:157 */ this.V16 = IV[14];\r\n/* 95:158 */ this.V17 = IV[15];\r\n/* 96:159 */ this.V20 = IV[16];\r\n/* 97:160 */ this.V21 = IV[17];\r\n/* 98:161 */ this.V22 = IV[18];\r\n/* 99:162 */ this.V23 = IV[19];\r\n/* 100:163 */ this.V24 = IV[20];\r\n/* 101:164 */ this.V25 = IV[21];\r\n/* 102:165 */ this.V26 = IV[22];\r\n/* 103:166 */ this.V27 = IV[23];\r\n/* 104: */ }", "public void initializeEngines(AircraftEnum aircraftName) {\n\t\t\n\t\tswitch(aircraftName) {\n\t\tcase ATR72:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\",8.6100, 4.0500, 1.3200, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\",8.6100, -4.0500, 1.3200, _theAircraft));\n\t\t\tbreak;\n\t\tcase B747_100B:\n\t\t\t_engineNumber = 4;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, 11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, 21.951, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 23.770, -11.820, -2.462, _theAircraft));\n\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\" , \"\", 31.693, -21.951, -2.462, _theAircraft));\n\t\t\t\t\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase AGILE_DC1:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOFAN;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 12.891, 4.869, -1.782, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 12.891, -4.869, -1.782, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\tcase IRON:\n\t\t\t_engineNumber = 2;\n\t\t\t_engineType = EngineTypeEnum.TURBOPROP;\n//\t\t\tfor (int i=0; i < _engineNumber; i++) {\n//\t\t\t\tengineList.add(new Engine(aircraftName, \"Engine_\" + i, \"\", 0.0, 0.0, 0.0, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_1\", \"\", 31.22, 4.4375, 1.65, _theAircraft));\n\t\t\tengineList.add(new Engine(aircraftName, \"Engine_2\", \"\", 31.22, -4.4375, 1.65, _theAircraft));\n//\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "protected void engineInitDecrypt (Key key)\n throws KeyException {\n makeKey(key);\n }", "private void initializeCipherinitVector() {\n try {\n cipher = Cipher.getInstance(\"AES/CBC/NoPadding\");\n } catch (NoSuchAlgorithmException e) {\n\n e.printStackTrace();\n } catch (NoSuchPaddingException e) {\n e.printStackTrace();\n }\n\n /* set Application Master Key */\n bytesKey = KEY_APP_MASTER.getBytes();\n\n /* Initialize init vector of 16 bytes with 0xCD. It could be anything */\n byte[] ivSpec = new byte[16];\n Arrays.fill(ivSpec, (byte) 0xCD);\n iv = new IvParameterSpec(ivSpec);\n\n }", "public void setEngine(Engine engine);", "public void setEngine(Engine engine) {\n this.engine = engine;\n }", "public EnScrypt() {}", "public void setEngine(String engine) {\n this.engine = engine;\n }", "@PostConstruct\n public void init() {\n KeyGenerator keyGen;\n try {\n int KEK_SIZE = 256;\n String KEK_ALGORITHM = \"AES\";\n\n keyGen = KeyGenerator.getInstance(KEK_ALGORITHM);\n keyGen.init(KEK_SIZE);\n\n SecretKey secretKey = keyGen.generateKey();\n byte[] encodedKey = secretKey.getEncoded();\n String baseKek = new String(Hex.encode(encodedKey));\n KeyDto key = new KeyDto(baseKek);\n keyValueOperations.put(KEK_STORAGE_PATH, key);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }", "private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}", "public Cipher()\n {\n CodecInterface base64UriCodec = new Base64UriCodec();\n AsymmetricBlockCipher rsaCipher = new OAEPEncoding(\n new RSAEngine(),\n new SHA1Digest()\n );\n BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()),\n new PKCS7Padding()\n );\n Digest sha1Digest = new SHA1Digest();\n SecureRandom random = new SecureRandom();\n\n this.encryptionCipher = new EncryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest,\n random\n );\n this.decryptionCipher = new DecryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest\n );\n }", "private Engine() {\n\n }", "public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }", "private void initMapEngine() {\n String path = new File(m_activity.getExternalFilesDir(null), \".here-map-data\")\n .getAbsolutePath();\n // This method will throw IllegalArgumentException if provided path is not writable\n com.here.android.mpa.common.MapSettings.setDiskCacheRootPath(path);\n\n MapEngine.getInstance().init(new ApplicationContext(m_activity), new OnEngineInitListener() {\n @Override\n public void onEngineInitializationCompleted(Error error) {\n if (error == Error.NONE) {\n /*\n * Similar to other HERE Android SDK objects, the MapLoader can only be\n * instantiated after the MapEngine has been initialized successfully.\n */\n getMapPackages();\n } else {\n Log.e(TAG, \"Failed to initialize MapEngine: \" + error);\n new AlertDialog.Builder(m_activity).setMessage(\n \"Error : \" + error.name() + \"\\n\\n\" + error.getDetails())\n .setTitle(R.string.engine_init_error)\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(\n DialogInterface dialog,\n int which) {\n m_activity.finish();\n }\n }).create().show();\n }\n }\n });\n }", "private AES() {\r\n\r\n }", "public void initAesOperations(byte[] aesKeyBytes) throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n this.aesKey = new SecretKeySpec(Hex.decodeHex(new String(aesKeyBytes).toCharArray()), \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n }", "public Engine toEngine(SbiEngines hibEngine){\r\n\t\tEngine eng = new Engine();\r\n\t\teng.setCriptable(new Integer(hibEngine.getEncrypt().intValue()));\r\n\t\teng.setDescription(hibEngine.getDescr());\r\n\t\teng.setDirUpload(hibEngine.getObjUplDir());\r\n\t\teng.setDirUsable(hibEngine.getObjUseDir());\r\n\t\teng.setDriverName(hibEngine.getDriverNm());\r\n\t\teng.setId(hibEngine.getEngineId());\r\n\t\teng.setName(hibEngine.getName());\r\n\t\teng.setLabel(hibEngine.getLabel());\r\n\t\teng.setSecondaryUrl(hibEngine.getSecnUrl());\r\n\t\teng.setUrl(hibEngine.getMainUrl());\r\n\t\teng.setLabel(hibEngine.getLabel());\r\n\t\treturn eng;\r\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "public void engineOn(){\n engine = true;\n }", "public static void init() {\n startTime = System.currentTimeMillis();\n if (clientExecutorEngine == null) {\n clientExecutorEngine = new ClientExecutorEngine();\n HzClient.initClient();\n }\n }", "@Override\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "public EnigmaMachine()\n\t{\n\t\t//Instantiating a plugboard inside the enigma\n\t\tplugboard = new Plugboard();\n\t\t//Instantiating the three rotors of the enigma\n\t\trotors = new BasicRotor[3];\n\t}", "public EngineClass(EngineClass inEngine)\n {\n cyl = inEngine.getCyl();\n fuel = inEngine.getFuel();\n }", "@Override\n protected void postProcessEngineInitialisation() {\n }", "private void initEngine() {\n // This is our usual steps for joining a channel and starting a call.\n try {\n // Initialize the Agora RtcEngine.\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n\n // Set the channel profile to Live Broadcast and role to Broadcaster (in order to be heard by others).\n mRtcEngine.setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING);\n mRtcEngine.setClientRole(Constants.CLIENT_ROLE_BROADCASTER);\n\n // Enable video capturing and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Disable the local video capturer.\n mRtcEngine.enableLocalVideo(false);\n\n /*\n // This is only needed if capturing local camera, which we currently are not.\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n // This is used to set a local preview.\n // The steps setting local and remote view are very similar.\n // But note that if the local user do not have a uid or do\n // not care what the uid is, he can set his uid as ZERO.\n // The Agora server will assign one and return the uid via the event\n // handler callback function (onJoinChannelSuccess) after\n // joining the channel successfully.\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mRemoteCameraContainer.addView(mLocalView);\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n */\n } catch (Exception e) {\n Log.e(TAG, Log.getStackTraceString(e));\n throw new RuntimeException(\"FATAL ERROR! Check rtc sdk init\\n\" + Log.getStackTraceString(e));\n }\n }", "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n //initialize either phone or webcam depending on field set during object initialization\n if(device == Device.Phone){\n parameters.cameraDirection = CameraDirection.BACK;\n }else{\n parameters.cameraName = hwMap.get(WebcamName.class, \"Webcam\");\n\n }\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "@Override\n public void initialise(GameEngine engine, Context rootContext) {\n TypeHandlerLibrary typeHandlerLibrary = rootContext.get(TypeHandlerLibrary.class);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n Serializer<GsonPersistedData> serializer = new Serializer<>(\n typeHandlerLibrary,\n new GsonPersistedDataSerializer(),\n new GsonPersistedDataWriter(gson),\n new GsonPersistedDataReader(gson)\n );\n autoConfigManager = new AutoConfigManager(serializer);\n typeHandlerLibrary.addTypeHandlerFactory(new AutoConfigTypeHandlerFactory(typeHandlerLibrary));\n rootContext.put(AutoConfigManager.class, autoConfigManager);\n\n autoConfigManager.loadConfigsIn(rootContext);\n }", "void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.FRONT;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n tensorFlowSafetyNotInitialized = false;\n } else {\n tensorFlowSafetyNotInitialized = true;\n }\n }", "private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }", "@Override\n public void init() {\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n robot.FL.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.FL.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }", "public JseBaseSynthesizer(final SynthesizerMode engineMode) {\n super(engineMode);\n }", "public static void init() {\r\n\r\n types = new HashMap();\r\n ConnectionManager manager = ConnectionManager.getInstance();\r\n DatabaseConnection con = manager.get();\r\n\r\n String str = \"select ChWord ,ChWordSpell from PtWordSpell\";\r\n try\r\n {\r\n RecordSet rs = con.executeQuery(str);\r\n \r\n while (rs.next()) {\r\n String PolyChWord = rs.getString(\"ChWord\");\r\n String enuDesc = rs.getString(\"ChWordSpell\");\r\n \r\n types.put(PolyChWord, enuDesc);\r\n \r\n }\r\n rs.close();\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n\r\n \r\n manager.release();\r\n\r\n\r\n }", "public static void init() {\r\n for (final BarrowsCrypt crypt : CRYPTS) {\r\n DigAction action = crypt::enter;\r\n Location base = crypt.getExitLocation();\r\n for (int x = -2; x <= 2; x++) {\r\n for (int y = -2; y <= 2; y++) {\r\n DigSpadeHandler.register(base.transform(x, y, 0), action);\r\n }\r\n }\r\n }\r\n }", "void setEngine(ImpotEngine engine) {\n this.engine = engine;\n }", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "private AES() {\n }", "@Override\n\tpublic void init () {\n\t\tframeBuffers = new FrameBuffer[getPassQuantity()];\n\t\tpassShaderProviders = new ShaderProvider[getPassQuantity()];\n\n\t\tfor (int i = 0; i < getPassQuantity(); i++) {\n\t\t\tinit(i);\n\t\t}\n\t}", "public void resetEnc(){\n EncX.reset();\n }", "protected void initialize () {\r\n if (initCommand!=null) matlabEng.engEvalString (id,initCommand);\r\n }", "public void initVuforia() {\n\t\t/*\n\t\t * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n\t\t */\n\t\tVuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n\t\tparameters.vuforiaLicenseKey = VUFORIA_KEY;\n\t\tparameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n\n\t\t// Instantiate the Vuforia engine\n\t\tvuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n\t\t// Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\t}", "public String initAesOperations() throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n byte[] aesKeyBytes = new byte[16];\n this.randomize.nextBytes(aesKeyBytes);\n this.aesKey = new SecretKeySpec(aesKeyBytes, \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n return Hex.encodeHexString(aesKeyBytes);\n }", "public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}", "public void CreateCipher() {\n String key = \"IWantToPassTAP12\"; // 128 bit key\n aesKey = new javax.crypto.spec.SecretKeySpec(key.getBytes(), \"AES\");\n try {\n this.cipher = Cipher.getInstance(\"AES\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void init() {\n // Define and Initialize Motors (note: need to use reference to actual OpMode).\n leftDrive = myOpMode.hardwareMap.get(DcMotor.class, \"left_drive\");\n rightDrive = myOpMode.hardwareMap.get(DcMotor.class, \"right_drive\");\n armMotor = myOpMode.hardwareMap.get(DcMotor.class, \"arm\");\n\n // To drive forward, most robots need the motor on one side to be reversed, because the axles point in opposite directions.\n // Pushing the left stick forward MUST make robot go forward. So adjust these two lines based on your first test drive.\n // Note: The settings here assume direct drive on left and right wheels. Gear Reduction or 90 Deg drives may require direction flips\n leftDrive.setDirection(DcMotor.Direction.REVERSE);\n rightDrive.setDirection(DcMotor.Direction.FORWARD);\n\n // If there are encoders connected, switch to RUN_USING_ENCODER mode for greater accuracy\n // leftDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n // rightDrive.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n // Define and initialize ALL installed servos.\n leftHand = myOpMode.hardwareMap.get(Servo.class, \"left_hand\");\n rightHand = myOpMode.hardwareMap.get(Servo.class, \"right_hand\");\n leftHand.setPosition(MID_SERVO);\n rightHand.setPosition(MID_SERVO);\n\n myOpMode.telemetry.addData(\">\", \"Hardware Initialized\");\n myOpMode.telemetry.update();\n }", "public static synchronized Engine resetEngine() {\n if (engineInstance != null) {\n engineInstance = new Engine();\n }\n return engineInstance;\n }", "protected void initDefaultStrategies() {\n\t\tRedisSerializer<String> keySerializer = new StringRedisSerializer();\n\t\tRedisSerializer<Object> valueSerializer = new JacksonSerializer();\n\t\tsetSerializer(valueSerializer);\n\t\tsetStringSerializer(keySerializer);\n\t}", "@Override public void init() {\n /// Important Step 2: Get access to a list of Expansion Hub Modules to enable changing caching methods.\n all_hubs_ = hardwareMap.getAll(LynxModule.class);\n /// Important Step 3: Option B. Set all Expansion hubs to use the MANUAL Bulk Caching mode\n for (LynxModule module : all_hubs_ ) {\n switch (motor_read_mode_) {\n case BULK_READ_AUTO:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.AUTO);\n break;\n case BULK_READ_MANUAL:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.MANUAL);\n break;\n case BULK_READ_OFF:\n default:\n module.setBulkCachingMode(LynxModule.BulkCachingMode.OFF);\n break;\n }\n }\n\n /// Use the hardwareMap to get the dc motors and servos by name.\n\n motorLF_ = hardwareMap.get(DcMotorEx.class, lfName);\n motorLB_ = hardwareMap.get(DcMotorEx.class, lbName);\n motorRF_ = hardwareMap.get(DcMotorEx.class, rfName);\n motorRB_ = hardwareMap.get(DcMotorEx.class, rbName);\n motorLF_.setDirection(DcMotor.Direction.REVERSE);\n motorLB_.setDirection(DcMotor.Direction.REVERSE);\n\n // map odometry encoders\n verticalLeftEncoder = hardwareMap.get(DcMotorEx.class, verticalLeftEncoderName);\n verticalRightEncoder = hardwareMap.get(DcMotorEx.class, verticalRightEncoderName);\n horizontalEncoder = hardwareMap.get(DcMotorEx.class, horizontalEncoderName);\n\n if( USE_ENCODER_FOR_TELEOP ) {\n motorLF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorLB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRF_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRF_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motorRB_.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorRB_.setMode ( DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n verticalLeftEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n verticalRightEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n horizontalEncoder.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n motorLF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorLB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRF_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motorRB_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n }\n\n if( USE_INTAKE ) {\n motor_left_intake_ = hardwareMap.get(DcMotorEx.class, \"motorLeftIntake\");\n motor_right_intake_ = hardwareMap.get(DcMotorEx.class, \"motorRightIntake\");\n motor_right_intake_.setDirection(DcMotor.Direction.REVERSE) ;\n\n motor_left_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_left_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n motor_right_intake_.setMode( DcMotor.RunMode.RUN_USING_ENCODER );\n\n servo_left_intake_ = hardwareMap.servo.get(\"servoLeftIntake\");\n servo_left_intake_pos_ = CR_SERVO_STOP ;\n servo_left_intake_.setPosition(CR_SERVO_STOP);\n servo_right_intake_ = hardwareMap.servo.get(\"servoRightIntake\");\n servo_right_intake_pos_ = CR_SERVO_STOP ;\n servo_right_intake_.setPosition(CR_SERVO_STOP);\n }\n if( USE_LIFT ) {\n motor_lift_ = hardwareMap.get(DcMotorEx.class, \"motorLift\");\n motor_lift_.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n motor_lift_.setMode( DcMotor.RunMode.STOP_AND_RESET_ENCODER );\n power_lift_ = 0.0;\n if( USE_RUN_TO_POS_FOR_LIFT ) {\n motor_lift_.setTargetPosition(0);\n motor_lift_.setMode( DcMotor.RunMode.RUN_TO_POSITION ); // must call setTargetPosition() before switching to RUN_TO_POSISTION\n } else {\n motor_lift_.setMode( DcMotor.RunMode.RUN_USING_ENCODER);\n }\n last_stone_lift_enc_ = -1;\n }\n\n if( USE_STONE_PUSHER ) {\n servo_pusher_ = hardwareMap.servo.get(\"servoPusher\");\n servo_pusher_.setPosition(PUSHER_INIT);\n servo_pusher_pos_ = PUSHER_INIT;\n }\n if( USE_STONE_GATER ) {\n servo_gater_ = hardwareMap.servo.get(\"servoGater\");\n servo_gater_.setPosition(GATER_INIT);\n servo_gater_pos_ = GATER_INIT;\n }\n\n if( USE_ARM ) {\n servo_arm_ = hardwareMap.servo.get(\"servoArm\");\n servo_arm_.setPosition(ARM_INIT);\n servo_arm_pos_ = ARM_INIT;\n servo_claw_ = hardwareMap.servo.get(\"servoClaw\");\n servo_claw_.setPosition(CLAW_OPEN);\n servo_claw_pos_ = CLAW_OPEN;\n }\n\n if( USE_HOOKS ) {\n servo_left_hook_ = hardwareMap.servo.get(\"servoLeftHook\");\n servo_left_hook_.setPosition(LEFT_HOOK_UP);\n servo_left_hook_pos_ = LEFT_HOOK_UP;\n servo_right_hook_ = hardwareMap.servo.get(\"servoRightHook\");\n servo_right_hook_.setPosition(RIGHT_HOOK_UP);\n servo_right_hook_pos_ = RIGHT_HOOK_UP;\n }\n\n if( USE_PARKING_STICKS ) {\n servo_left_park_ = hardwareMap.servo.get(\"servoLeftPark\");\n servo_left_park_.setPosition(LEFT_PARK_IN);\n servo_left_park_pos_ = LEFT_PARK_IN;\n servo_right_park_ = hardwareMap.servo.get(\"servoRightPark\");\n servo_right_park_.setPosition(RIGHT_PARK_IN);\n servo_right_park_pos_ = RIGHT_PARK_IN;\n }\n\n if( USE_RGB_FOR_STONE ) {\n rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColor\");\n //rev_rgb_range_ = hardwareMap.get(LynxI2cColorRangeSensor.class, \"stoneColorV3\"); // different interface for V3, can't define it as LynxI2cColorRangeSensor anymore, 2020/02/29\n if( rev_rgb_range_!=null ) {\n if( AUTO_CALIBRATE_RGB ) {\n int alpha = rev_rgb_range_.alpha();\n //double dist = rev_rgb_range_.getDistance(DistanceUnit.CM);\n double dist = rev_rgb_range_.getDistance(DistanceUnit.METER);\n if( alpha>=MIN_RGB_ALPHA && alpha<100000 ) {\n rev_rgb_alpha_init_ = alpha;\n }\n if( AUTO_CALIBRATE_RGB_RANGE && !Double.isNaN(dist) ) {\n if( dist>MIN_RGB_RANGE_DIST && dist<MAX_RGB_RANGE_DIST ) {\n rev_rgb_dist_init_ = dist;\n }\n }\n }\n }\n }\n if( USE_RGBV3_FOR_STONE ) {\n //rgb_color_stone_ = hardwareMap.get(ColorSensor.class, \"stoneColorV3\");\n rgb_range_stone_ = hardwareMap.get(DistanceSensor.class, \"stoneColorV3\");\n if( AUTO_CALIBRATE_RANGE && rgb_range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RGB_RANGE_STONE);\n if( dis>0.0 && dis<0.2 ) {\n rgb_range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RIGHT_RANGE ) {\n range_right_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"rightRange\"));\n if( AUTO_CALIBRATE_RANGE && range_right_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_RIGHT);\n if( dis>0.01 && dis<2.0 ) {\n range_right_dist_init_ = dis;\n break;\n }\n }\n }\n }\n if( USE_LEFT_RANGE ) {\n range_left_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"leftRange\"));\n if( AUTO_CALIBRATE_RANGE && range_left_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_LEFT);\n if( dis>0.01 && dis<2.0 ) {\n range_left_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_RANGE_FOR_STONE) {\n range_stone_ = (Rev2mDistanceSensor) (hardwareMap.get(DistanceSensor.class, \"stoneRange\"));\n if( AUTO_CALIBRATE_RANGE && range_stone_!=null ) {\n while(true) { // wait till range sensor gets a valid reading\n double dis = getRangeDist(RangeName.RANGE_STONE);\n if( dis>0.01 && dis<0.5 ) {\n range_stone_dist_init_ = dis;\n break;\n }\n }\n }\n }\n\n if( USE_INTAKE_MAG_SWITCH ) {\n intake_mag_switch_ = hardwareMap.get(DigitalChannel.class, \"intake_mag_switch\");\n intake_mag_switch_.setMode(DigitalChannelController.Mode.INPUT);\n intake_mag_prev_state_ = intake_mag_switch_.getState();\n intake_mag_change_time_ = 0.0;\n }\n if( USE_STONE_LIMIT_SWITCH ) {\n stone_limit_switch_ = hardwareMap.get(DigitalChannel.class, \"stone_limit_switch\");\n stone_limit_switch_.setMode(DigitalChannelController.Mode.INPUT);\n stone_limit_switch_prev_state_ = stone_limit_switch_.getState();\n }\n\n\n /////***************************** JOY STICKS *************************************/////\n\n /// Set joystick deadzone, any value below this threshold value will be considered as 0; moved from init() to init_loop() to aovid crash\n if(gamepad1!=null) gamepad1.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n if(gamepad2!=null) gamepad2.setJoystickDeadzone( JOYSTICK_DEAD_ZONE );\n\n resetControlVariables();\n }", "void initVuforia() {\n\n //Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "public void setEngine(Engine e) {\n engine = e;\n if (e.engineValid) {\n setOriginalWalkMP(calculateWalk());\n }\n }", "protected void initialize() {\n\t\televator.zeroEncoder();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void init() {\n\t\tif (allcode.isEmpty()) {\r\n\t\t\tCode code = new Code();\r\n\r\n\t\t\tList list = this.dynamicsqldao.findbyWhere(code, Code.class);\r\n\t\t\tif (list.isEmpty() == false) {\r\n\t\t\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\t\t\tcode = new Code();\r\n\t\t\t\t\tcode = (Code) list.get(i);\r\n\t\t\t\t\tString ckey = code.getCode();\r\n\t\t\t\t\tList codelist = this.dynamicsqldao\r\n\t\t\t\t\t\t\t.findbyWhere( code, Code.class);\r\n\t\t\t\t\tallcode.put(ckey, codelist);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Encryptor(){\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t}", "public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) {\n\t}", "public int getEngines() {\n return engines;\n }", "public void setup(Map attributes) {\n // find out which cipher algorithm to use\n boolean newCipher = true;\n String underlyingCipher = (String) attributes.get(CIPHER);\n if (underlyingCipher == null) {\n if (cipher == null) { // happy birthday\n // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(Registry.RIJNDAEL_CIPHER);\n } else { // we already have one. use it as is\n newCipher = false;\n }\n } else { // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(underlyingCipher);\n }\n\n // find out what block size we should use it in\n int cipherBlockSize = 0;\n Integer bs = (Integer) attributes.get(IBlockCipher.CIPHER_BLOCK_SIZE);\n if (bs != null) {\n cipherBlockSize = bs.intValue();\n } else {\n if (newCipher) { // assume we'll use its default block size\n cipherBlockSize = cipher.defaultBlockSize();\n } // else use as is\n }\n\n // get the key material\n byte[] key = (byte[]) attributes.get(IBlockCipher.KEY_MATERIAL);\n if (key == null) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // now initialise the cipher\n HashMap map = new HashMap();\n if (cipherBlockSize != 0) { // only needed if new or changed\n map.put(IBlockCipher.CIPHER_BLOCK_SIZE, new Integer(cipherBlockSize));\n }\n map.put(IBlockCipher.KEY_MATERIAL, key);\n try {\n cipher.init(map);\n } catch (InvalidKeyException x) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // at this point we have an initialised (new or otherwise) cipher\n // ensure that remaining params make sense\n\n cipherBlockSize = cipher.currentBlockSize();\n BigInteger counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize);\n\n // offset, like the underlying cipher key is not cloneable\n // always look for it and throw an exception if it's not there\n Object obj = attributes.get(OFFSET);\n // allow either a byte[] or a BigInteger\n BigInteger r;\n if (obj instanceof BigInteger) {\n r = (BigInteger) obj;\n } else { // assume byte[]. should be same length as cipher block size\n byte[] offset = (byte[]) obj;\n if (offset.length != cipherBlockSize) {\n throw new IllegalArgumentException(OFFSET);\n }\n\n r = new BigInteger(1, offset);\n }\n\n int wantBlockNdxLength = -1; // number of octets in the block index\n Integer i = (Integer) attributes.get(BLOCK_INDEX_LENGTH);\n if (i != null) {\n wantBlockNdxLength = i.intValue();\n if (wantBlockNdxLength < 1) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH);\n }\n }\n\n int wantSegmentNdxLength = -1; // number of octets in the segment index\n i = (Integer) attributes.get(SEGMENT_INDEX_LENGTH);\n if (i != null) {\n wantSegmentNdxLength = i.intValue();\n if (wantSegmentNdxLength < 1) {\n throw new IllegalArgumentException(SEGMENT_INDEX_LENGTH);\n }\n }\n\n // if both are undefined check if it's a reuse\n if ((wantBlockNdxLength == -1) && (wantSegmentNdxLength == -1)) {\n if (blockNdxLength == -1) { // new instance\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n } // else reuse old values\n } else { // only one is undefined, set it to BLOCK_LENGTH/2 minus the other\n int limit = cipherBlockSize / 2;\n if (wantBlockNdxLength == -1) {\n wantBlockNdxLength = limit - wantSegmentNdxLength;\n } else if (wantSegmentNdxLength == -1) {\n wantSegmentNdxLength = limit - wantBlockNdxLength;\n } else if ((wantSegmentNdxLength + wantBlockNdxLength) > limit) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n }\n // save new values\n blockNdxLength = wantBlockNdxLength;\n segmentNdxLength = wantSegmentNdxLength;\n }\n\n // get the segment index as a BigInteger\n BigInteger s = (BigInteger) attributes.get(SEGMENT_INDEX);\n if (s == null) {\n if (segmentNdx == null) { // segment index was never set\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n // reuse; check if still valid\n if (segmentNdx.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n } else {\n if (s.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n segmentNdx = s;\n }\n\n // The initial counter of the keystream segment with segment index s is\n // defined as follows, where r denotes the Offset:\n //\n // C[0] = (s * (256^BLOCK_INDEX_LENGTH) + r) modulo (256^BLOCK_LENGTH)\n //\n C0 = segmentNdx\n .multiply(TWO_FIFTY_SIX.pow(blockNdxLength))\n .add(r)\n .modPow(BigInteger.ONE, counterRange);\n }", "private void initVuforia() {\n /*\n * Configure Vuforia by creating a Parameter object, and passing it to the Vuforia engine.\n */\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = VuforiaLocalizer.CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "protected void engineInitVerify(java.security.PublicKey r1) throws java.security.InvalidKeyException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitVerify(java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitVerify(java.security.PublicKey):void\");\n }", "private ClientExecutorEngine() {\n ClientConfigReader.readConfig();\n DrillConnector.initConnection();\n HzConfigReader.readConfig();\n }", "public Vigenere(EncryptionDecorator encrypt) {\n algo = encrypt;\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}", "protected void init(KKAdminIf adminEng)\n {\n this.adminEng = adminEng;\n adminMgrFactory = new AdminMgrFactory(this.adminEng);\n }", "@Override\n\tpublic void init(EngineConfig config) throws ServiceException\n\t{\n\t\t\n\t}", "public TinySearchEngine()\n {\n this.myIndex = new HashMap();\n this.documentData = new HashMap();\n this.sorted = false;\n this.sort = new Sort();\n this.search = new BinarySearch();\n }", "@Override\n public void engineStart(String engineType, boolean isKeyLess) {\n System.out.println(\"This is the implementation\");\n }", "public void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CAMERA_CHOICE;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n initTfod();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n }\n }", "public static synchronized void init() {\n\n if (serverRunning.get()) {\n\n LOG.info(\"Initializing the Cassandra server with a default schema and default values\");\n\n String[] createKeySpace = new String[]{\n // \"USE \" + KEY_SPACE + \";\\n\", -> rather specify the key space explicitly for the generic session object we use here\n \"DROP TABLE IF EXISTS \" + KEY_SPACE + \".events;\\n\",\n \"CREATE TABLE \" + KEY_SPACE + \".events (\\n\" +\n \" eventId ASCII PRIMARY KEY,\\n\" +\n \" auditStream ASCII,\\n\" +\n \" eventJson VARCHAR\\n\" +\n \");\"\n };\n\n try {\n for (String cql : createKeySpace) {\n session.execute(cql);\n }\n } catch (Exception e) {\n LOG.error(\"The Cassandra server cannot be initialized\", e.getCause(), e.getStackTrace());\n }\n } else {\n LOG.info(\"The Cassandra server cannot be initialized because it is not running\");\n }\n\n }", "public synchronized static void init() {\n if (!isInitialized()) {\n if (processEngines == null) {\n // Create new map to store process-engines if current map is\n // null\n processEngines = new HashMap<String, ProcessEngine>();\n }\n ClassLoader classLoader = ReflectUtil.getClassLoader();\n Enumeration<URL> resources = null;\n try {\n resources = classLoader.getResources(\"activiti.cfg.xml\");\n } catch (IOException e) {\n throw new ActivitiIllegalArgumentException(\"problem retrieving activiti.cfg.xml resources on the classpath: \" + System.getProperty(\"java.class.path\"), e);\n }\n\n // Remove duplicated configuration URL's using set. Some\n // classloaders may return identical URL's twice, causing duplicate\n // startups\n Set<URL> configUrls = new HashSet<URL>();\n while (resources.hasMoreElements()) {\n configUrls.add(resources.nextElement());\n }\n for (Iterator<URL> iterator = configUrls.iterator(); iterator.hasNext();) {\n URL resource = iterator.next();\n log.info(\"Initializing process engine using configuration '{}'\", resource.toString());\n initProcessEngineFromResource(resource);\n }\n\n try {\n resources = classLoader.getResources(\"activiti-context.xml\");\n } catch (IOException e) {\n throw new ActivitiIllegalArgumentException(\"problem retrieving activiti-context.xml resources on the classpath: \" + System.getProperty(\"java.class.path\"), e);\n }\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n log.info(\"Initializing process engine using Spring configuration '{}'\", resource.toString());\n initProcessEngineFromSpringResource(resource);\n }\n\n setInitialized(true);\n } else {\n log.info(\"Process engines already initialized\");\n }\n }", "protected AESCrypto(Context context, int iterations) throws NoAlgorithmAvailableException {\n // Call superclass\n super(context);\n // Check availability of provoders\n providerCheckAESCrypto();\n // Apply Googles fix for the pseudo random number generator for API-Levels 16-18\n prng = new AtomicBoolean(false);\n fixPrng();\n // set the iteration count\n PBE_ITERATIONS = iterations;\n }", "@Override\n protected void onDestroy() {\n engine = null;\n\n super.onDestroy();\n }", "private void initModules(SwerveDriveModule m0, SwerveDriveModule m1, SwerveDriveModule m2, SwerveDriveModule m3) {\n\t\tmSwerveModules[0] = m0;\n\t\tmSwerveModules[1] = m1;\n\t\tmSwerveModules[2] = m2;\n\t\tmSwerveModules[3] = m3;\n\t\tzeroGyro();\n\n\t\t// mSwerveModules[0].getDriveMotor().setInverted(InvertType.InvertMotorOutput); //real: false\n\t\t// mSwerveModules[2].getDriveMotor().setInverted(true); //\n\t\t// mSwerveModules[1].getDriveMotor().setInverted(false); //real: true\n\t\t// mSwerveModules[2].getDriveMotor().setInverted(false); //real: false\n\t\t//mSwerveModules[3].getDriveMotor().setInverted(TalonFXInvertType.CounterClockwise); //real: false\n\t\t\n\t\t mSwerveModules[0].getAngleMotor().setInverted(true); //real: true\n\t\t mSwerveModules[2].getAngleMotor().setInverted(true); //real: true\n\t\t mSwerveModules[1].getAngleMotor().setInverted(true); //real: true\n\t\t mSwerveModules[3].getAngleMotor().setInverted(true); //real: true\n\n\t\tmSwerveModules[0].resetEncoder();\n\t\tmSwerveModules[1].resetEncoder();\n\t\tmSwerveModules[2].resetEncoder();\n\t\tmSwerveModules[3].resetEncoder();\n\t\tfor(int i = 0; i < 4; i++) {\n\t\t\tmSwerveModules[i].getDriveMotor().setNeutralMode(NeutralMode.Brake);\n\t\t}\n\n\t\tisAuto = false;\n\t}", "public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }", "public void engineOff(){\n engine = false;\n }", "public void init(HardwareMap ahwMap) {\n try {\n // Save reference to Hardware map\n hwMap = ahwMap;\n\n // Define and Initialize Motors\n motor1 = hwMap.dcMotor.get(\"motor1\");\n motor2 = hwMap.dcMotor.get(\"motor2\");\n motor3 = hwMap.dcMotor.get(\"motor3\");\n motor4 = hwMap.dcMotor.get(\"motor4\");\n\n pMotor1 = hwMap.dcMotor.get(\"pMotor1\");\n pMotor2 = hwMap.dcMotor.get(\"pMotor2\");\n beMotor = hwMap.dcMotor.get(\"beMotor\");\n fkMotor = hwMap.dcMotor.get(\"fkMotor\");\n\n\n // Set to FORWARD\n motor1.setDirection(DcMotor.Direction.FORWARD);\n motor2.setDirection(DcMotor.Direction.FORWARD);\n motor3.setDirection(DcMotor.Direction.FORWARD);\n motor4.setDirection(DcMotor.Direction.FORWARD);\n\n pMotor1.setDirection(DcMotor.Direction.FORWARD);\n pMotor2.setDirection(DcMotor.Direction.FORWARD);\n beMotor.setDirection(DcMotor.Direction.FORWARD);\n fkMotor.setDirection(DcMotor.Direction.FORWARD);\n\n\n // Set all motors to zero power\n motor1.setPower(0);\n motor2.setPower(0);\n motor3.setPower(0);\n motor4.setPower(0);\n\n pMotor1.setPower(0);\n pMotor2.setPower(0);\n beMotor.setPower(0);\n fkMotor.setPower(0);\n\n\n // Set all motors to run without encoders.\n // only use RUN_USING_ENCODERS in autonomous\n motor1.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor2.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor3.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor4.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n pMotor1.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n pMotor2.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n beMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n fkMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n/*\n gyro = (ModernRoboticsI2cGyro) hardwareMap.gyroSensor.get(\"gyro\");\n colorSensor = hardwareMap.colorSensor.get(\"color\");\n rangeSensor = hardwareMap.get(ModernRoboticsI2cRangeSensor.class, \"range\");\n ods = hardwareMap.opticalDistanceSensor.get(\"ods\");\n ods2 = hardwareMap.opticalDistanceSensor.get(\"ods2\");\n*/\n // Define and initialize ALL installed servos.\n //servo1 = hwMap.servo.get(\"servo1\");\n\n runtime.reset();\n\n } catch (Exception e) {\n telemetry.addData(\"runOpMode ERROR\", e.toString());\n telemetry.update();\n }\n\n }", "public void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.FRONT;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraName = hardwareMap.get(WebcamName.class, \"Webcam\");\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n }", "protected int engineBlockSize () { return BLOCK_SIZE; }", "public void init(GameEngine engine) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {\n\t\tif(this.engine != null) {\n\t\t\tthrow new IllegalStateException(\"The world has already been initialised.\");\n\t\t} else {\n\t\t\tthis.engine = engine;\n\t\t\tthis.eventManager = new EventManager(engine);\n\t\t\tthis.tickManager = new TickManager();\n\t\t\tthis.registerGlobalEvents();\n\t\t\tthis.loadConfiguration();\n\t\t}\n\t}", "private void resetSteeringEncoders() {\n steeringFR.resetEncoder();\n steeringBR.resetEncoder();\n steeringFL.resetEncoder();\n steeringBL.resetEncoder();\n }", "public void initiate() {\n\t\tallDepartments.put(HRDepartment.class.getSimpleName(), HRDepartment.getInstance());\n\t\tallDepartments.put(ProductionDepartment.class.getSimpleName(), ProductionDepartment.getInstance());\n\t\tallDepartments.put(WarehousingDepartment.class.getSimpleName(), WarehousingDepartment.getInstance());\n\t\tallDepartments.put(FinanceDepartment.class.getSimpleName(), FinanceDepartment.getInstance());\n\t\tallDepartments.put(MarketingDepartment.class.getSimpleName(), MarketingDepartment.getInstance());\n\t\tallDepartments.put(LogisticsDepartment.class.getSimpleName(), LogisticsDepartment.getInstance());\n\t\tallDepartments.put(ProcurementDepartment.class.getSimpleName(), ProcurementDepartment.getInstance());\n\t\tallDepartments.put(ResearchAndDevelopmentDepartment.class.getSimpleName(), ResearchAndDevelopmentDepartment.getInstance());\n\t\tallDepartments.put(SalesDepartment.class.getSimpleName(), SalesDepartment.getInstance());\n\n\t\tcustomerSatisfaction = CustomerSatisfaction.getInstance();\n\t\tcustomerDemand = CustomerDemand.getInstance();\n\t\texternalEvents = ExternalEvents.getInstance();\n\t\tcompanyEcoIndex = CompanyEcoIndex.getInstance();\n\t\tinternalFleet = InternalFleet.getInstance();\n\t\tbankingSystem = BankingSystem.getInstance();\n\t\tproductSupport = ProductSupport.getInstance();\n\t\temployeeGenerator = EmployeeGenerator.getInstance();\n\t\temployeeGenerator.setDepartment((HRDepartment) allDepartments.get(HRDepartment.class.getSimpleName()));\n\t}", "public EngineSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = EnginePackage.eINSTANCE;\n\t\t}\n\t}", "public EnigmaMachine(int[] rotorChoices, int reflectorChoice, char[] ringSettings, char[] initialPositions){\r\n\t\tinitPositions = initialPositions;\r\n\t\trotorArray = rotorChoices;\r\n\t\trotors = new Rotors(rotorChoices, reflectorChoice);\r\n\t\trotors.setRingSettings(ringSettings);\r\n\t\trotors.setPositions(initialPositions);\r\n\t\tplugboard = null;\r\n\t}" ]
[ "0.68077093", "0.67468977", "0.67468977", "0.67339146", "0.64332604", "0.6300486", "0.6265837", "0.6206628", "0.61187375", "0.6115705", "0.60613626", "0.60066915", "0.5998253", "0.5976272", "0.59739906", "0.5949734", "0.5894952", "0.5865936", "0.58189374", "0.57604545", "0.5722818", "0.5719364", "0.5710164", "0.56908584", "0.5650616", "0.5639518", "0.5616707", "0.5606361", "0.5602758", "0.558442", "0.55467534", "0.5503782", "0.5462093", "0.5406277", "0.54019386", "0.5400641", "0.5397162", "0.53895736", "0.5359742", "0.5347556", "0.5343072", "0.53370965", "0.5334645", "0.53211695", "0.53068876", "0.52883834", "0.5283792", "0.52796173", "0.52731186", "0.5262024", "0.5245537", "0.5237521", "0.52193433", "0.5218656", "0.5218646", "0.521392", "0.52092737", "0.5205334", "0.5193395", "0.5187993", "0.5173172", "0.5171431", "0.5170223", "0.5169825", "0.51559", "0.51554114", "0.5134347", "0.5116594", "0.511116", "0.5107489", "0.5105019", "0.5086072", "0.50810194", "0.50786346", "0.5078518", "0.5074908", "0.50723386", "0.50722", "0.50718296", "0.50683427", "0.505835", "0.5046262", "0.50396293", "0.50379175", "0.50377446", "0.5032279", "0.50273323", "0.50238854", "0.5021483", "0.50187397", "0.5018332", "0.5009723", "0.5008466", "0.5005687", "0.5001777", "0.49999863", "0.4991812", "0.49914053", "0.4987082", "0.49853456" ]
0.6213567
7
You must modify this constructor to return your student number. This is important, because this is what the code that runs the competition uses to associate you with your agent. The constructor should do nothing else.
public StudentPlayer() { super("260767897"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "student(){\r\n \r\n //constructor\r\n //always same as class name\r\n //we can also have code here\r\n //this will be the first method to be intialised\r\n //can never return a value\r\n number++;// default initialisation\r\n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}", "public student1(int r)\n {\n this();//calling default constructor\n System.out.println(\"rno = \" + r);\n }", "public Student( String name , String address ){//constructor with arguments \r\n \tID_COUNTER++;\r\n \tstudentNum = ID_COUNTER;\r\n getFirstAndLastName( name );\r\n this.address = address ;\r\n loginID = makeLoginID() ;\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "Student(int i, String n) {\n id = i;\n name = n;\n }", "Student4(int i, String n) {\n id = i;\n name = n;\n\n }", "public Student(String firstName, String lastName, int grade) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade; \n studentNumber = totalStudents++; // the new student's number is equal the total number of students, therefore, each student number will be unique\n }", "public int getStudentNum(){//return student Number\r\n \treturn studentNum;\r\n }", "public int getStudentNum() {\n\t\treturn studentNum;\n\t}", "Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public Student(int num) {\n//\t\tstuNum = num;\n//\t\tgpa = 0.0;\n\t\tthis(num, 0.0);\n\t}", "public int getStudentNumber() { return studentNumber; }", "Student(String name, double cgpa, int token){\n this.name=name;\n this.cgpa=cgpa;\n this.token=token;\n }", "public Student(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public Student(String firstName, String lastName, int age, int number) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.studentNumber = number;\n this.grades = new int[0];\n }", "public Student(String myname, int myid){ \r\n\t\tname = myname;\r\n\t\tid = myid;\r\n\t\tgrades[0]= -1;\r\n\t\tgrades[1]= -1;\r\n\t\tgrades[2]= -1;\r\n\r\n\t// use the static variable from StudentArray Class to keep count of the number of student object\r\n\t\tnumberOfStudents++; \r\n\t}", "Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}", "public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student(String registrationNumber, int[] marks){\n this.registrationNumber = registrationNumber;\n this.marks = marks;\n \n }", "public Student() { //Default Constructor\n\t\tthis.roll_no=0;\n\t\tthis.full_name=\"\";\n\t\tthis.grade=\"\";\n\t}", "public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }", "public Student(String studentId){\n id = studentId;\n }", "public Integer getStudentNumber()\n {\n return studentNumber;\n }", "public Student (String first, String last)\n {\n firstName = first;\n lastName = last;\n testScore1 = 0;\n testScore2 = 0;\n testScore3 = 0;\n }", "public Student(String nume, int varsta) {\n\t\tthis.nume = nume;\n\t\tthis.varsta = varsta;\n\t}", "public Student( String name ) {\n sname=name;\n }", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "public Student(String name, String emailAddress, String matriculationNumber) {\n this.name = name;\n this.emailAddress = emailAddress;\n this.matriculationNumber = matriculationNumber;\n }", "public Student(String name, int studentId) {\n this.name = name;\n this.studentId = studentId;\n this.numberOfCredits = 0;\n this.gpa = 0.0;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public Student(String name, String gender,String rollNumber,String mobileNumber){\n this.name = name;\n this.gender = gender;\n this.rollNumber = rollNumber;\n this.mobileNumber = mobileNumber;\n }", "public Student(String myname, int myid , double[] theGradeArray){ \r\n\r\n\t\tname = myname;\r\n\t\tid = myid;\r\n\t\tgrades = theGradeArray;\r\n\t\t\r\n\t// use the static variable from StudentArray Class to keep count of the number of student object\r\n\t\tnumberOfStudents++;\r\n\t}", "Student(String firstName, String lastName, int grade) {\n // Standard constructor assignments\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public Student(int num, double avg) {\n\t\tstuNum = num;\n\t\tgpa = avg;\n\t}", "public Nurse()\r\n {\r\n firstName = \"\";\r\n familyName = \"\";\r\n ID = IDCreator;\r\n\t\t\tIDCreator++;\r\n }", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "Student(String name){\n this.name = name;\n }", "public Student(double avg) {\n//\t\tstuNum = 0;\n//\t\tgpa = avg;\n\t\tthis(999, avg);\n\t}", "public Student() {\r\n }", "public Student() {\n \n }", "public Student(String id, String fname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public student(String n, char l, int g) {\n\t\t\t\n\t\t\tname = n;\n\t\t\tletter = l;\n\t\t\tgpa = g;\n\t\t\t\n\t\t}", "public Student(String firstName, String familyName, int identityNumber) {\r\n this.Student = new StudentInfo (firstName, familyName, identityNumber, 120);\r\n }", "public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}", "public Student(int sem, double gpa, String firstName, String lastName) {\n super(firstName, lastName);\n this.sem = sem;\n this.gpa = gpa;\n }", "Student(){\n a++;\n b++;\n }", "studentCounter( int numStudentAlreadyInTheRoom ){ \n\t\tnumStudentInRoom = numStudentAlreadyInTheRoom ;\n\t}", "public Student(String id, String fname, String mname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, mname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student ( int rollno, String name, String course ) {\n\t\tthis.rollno = rollno;\n\t\tthis.name = name;\n\t\tthis.course = course;\n\t}", "public Student(String name) {\n this.name = name;\n }", "public Student(){}", "public Student() {\n }", "public Student() {\n }", "public Student() {\n }", "public Student(int id) {\n\t\tthis.id = id;\n\t}", "public Course(String n, String i, int m, String in, int s, String l) {\n\t\tname = n;\n\t\tid = i;\n\t\tmaxstudents = m;\n\t\tinstructor = in;\n\t\tsection = s;\n\t\tlocation = l;\n\t}", "public Student(String name) {\n\n this.name = name;\n }", "public Student(int userPID)\n\t{\n\t\tPID = userPID;\n\t\tfirst = \"Tyler\";\n\t\tlast = \"Hoyt\";\n\t\tmajor = \"Computer Science\";\n\t\tminor = \"\"; //Wont let me set it to null????????????????????????????????????????????\n\t}", "public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}", "public GradeBook (String name){ //Constructor\n\t\tcourseName=name;\n//\t\tstudents = studentNum;\n\t}", "public static void main(String[] args) \r\n {\n Student.versityName = \"UIU\"; \r\n Student s1 = new Student(\"Alice\", 1); \r\n Student s2 = new Student(\"Bob\", 2); \r\n s1.getStudentInfo(); \r\n s2.getStudentInfo(); \r\n Student s3 = new Student(\"Nice\", 5);\r\n // what is the value of the counter?\r\n \r\n }", "public Student(int level, String first, String last, long gnum, String major, \n String degree) {\n // TODO initialize the instance variables\n // Also use the parameter variable \"level\" as follows\n // 1) use its value to initialized the PROGRAM constant\n // 2) create the transcripts array to be of size [50] if is level 0, \n // or to be of size [15] if level is 1. \n // note that level refers to the student type and we use a value of 0 for \n // an undergrad and a value of 1 for a grad\n PROGRAM = level;\n this.first = first;\n this.last = last;\n this.gnum = gnum;\n this.major = major;\n this.degree = degree;\n if (PROGRAM == 0){\n transcripts = new TranscriptEntry[50];\n }\n else{\n transcripts = new TranscriptEntry[15];\n }\n }", "public StudyGroup()\n {\n s1 = new Student(\"Brianna\", 22, \"Neuroscience\");\n s2 = new Student(\"Noah\");\n s3 = new Student(\"Jenny\", 19, \"Applied Math\");\n s4 = new Student(\"Sean\", 22);\n \n System.out.println(\"Student 1 is \" + s1); // s1 is a Student object\n// i see a memory address\n System.out.println(\"Studnet 2 is \" + s2);\n System.out.println(\"Students in the group\");\n int x = 42;\n System.out.println(\" x is holding \" + x); //int --> Integer\n s1.printName();\n s2.printName();\n s3.printName();\n s4.printName();\n }", "private void setStudentID() {\n\t\tid++;\n\t\tthis.studentId = gradeYear + \"\" + id;\n\t\tSystem.out.println(this.studentId);\n\t}", "public First()\r\n{\r\n\tScanner in = new Scanner(System.in);\r\n\tSystem.out.println(\"Enter your First Name: \");\r\n\tthis.fname=in.next();\r\n\tSystem.out.println(\"Enter your Last Name: \" );\r\n\tthis.lname=in.next();\t\r\n\tSystem.out.println(\"Enter Your GradeYear :\\n [1]Freshman \\n[2] Sophomore \\n[3] Junior \\n[4] Senior \\n\");\r\n\tthis.gradeyear=in.nextInt();\t\r\n\tsetStudentId();\r\n\tSystem.out.println(\"Name: \"+fname+\" \"+lname+\"\\nGrade-year: \"+gradeyear+\"\\nStudentID: \"+student_id+\"\");\r\n\tSystem.out.print(\"\\nEnter Your Course Name: \");\r\n}", "public Student(String name, String address, String facNumber) {\r\n super(name, address);\r\n this.facultyNumber = facNumber;\r\n courses = new HashMap<String, Double>();\r\n }", "Student(String n, int age, String i,Student ref)\n\t{\n\t\tthis.name=n;\n\t\tthis.age=age;\n\t\tthis.id=i;\n\t\tthis.next=ref;\n\t}", "public Student(String name, Integer age) {\n\n this.name = name;\n this.age = age;\n }", "public Student(int studentID, String firstName, String lastName) {\n this.studentID = studentID;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public Course()\n\t{\n\t\tstudents = new Student[30];\n\t\tnumStudents = 0;\n\t}", "public Student(String in_name, double in_gpa)\n {\n name = in_name;\n gpa = in_gpa;\n getQuizzes();\n }", "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "public int getStudentID() {\r\n\t\t\treturn studentID;\r\n\t\t}", "public Student(int studentId, String studentName, String studentMajor) \r\n {\r\n\r\n setId(studentId);\r\n setName(studentName);\r\n setMajor(studentMajor);\r\n\r\n }", "private void setStudentId() {\n\t id++;\n\t this.studentId=gradeYear+\"\"+id;\n }", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "public int getStudentId() {\n\t\treturn studentId;\n\t}", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "public static int setStudentNumber(){\n countNumbers++;//1 2 3\n return countNumbers;\n\n }", "public int getStudentId() {\n\t\treturn StudentId;\n\t}", "public Student(String fname, String lname, int age, String coll, String maj, double grade) {\n super(fname, lname, age);\n college = coll;\n major = maj;\n gpa = grade;\n }", "@Override\n\tpublic long getStudentId() {\n\t\treturn model.getStudentId();\n\t}", "private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }", "public Student(String nm, int day, int month, int year){\r\n\t\tthis.name = nm;\r\n//\t\tthis.username = createUsername(nm); //creates unique username from Student's name\r\n\r\n\t dateofbirth = LocalDate.of(year, month, day);\r\n\t\tthis.age = getAge();\r\n\t\tStudent.userID = userID++; //ID increments for each new User\r\n\t\t\r\n\t\tthis.username = getUsername();\r\n\t}", "public Contructor(int year, String name) {\n // constructor name must match class name and cannot have return type\n // all classes have constructor by default\n // f you do not create a class constructor yourself, Java creates one for you.\n // However, then you are not able to set initial values for object attributes.\n // constructor can also take parameters\n batchYear = year;\n studentName = name;\n }", "public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}", "StudenteImpl(String nome, String cognome, Cdl corso, int annoCorso, String matricola) {\n super(nome, cognome);\n initialize(corso, annoCorso, matricola);\n }", "public StudentPlayer() {\n super(\"260740998\");\n }", "public Student(String studentID, String passwordHash, String name, String matricNum, String nationality,\r\n\t\t\tchar gender, ArrayList<String> school, ArrayList<String> courseList, ArrayList<Integer> indexGroupList,\r\n\t\t\tArrayList<String> exemptionCoursesList, ArrayList<String> completedCoursesList,\r\n\t\t\tArrayList<Integer> waitListIDList, Schedule schedule, Calendar startTime, Calendar endTime, String email,\r\n\t\t\tString mobileNum, String notifMode) {\r\n\t\tthis.studentID = studentID;\r\n\t\tthis.passwordHash = passwordHash;\r\n\t\tthis.name = name;\r\n\t\tthis.matricNum = matricNum;\r\n\t\tthis.nationality = nationality;\r\n\t\tthis.gender = gender;\r\n\t\tthis.school = school;\r\n\t\tthis.courseList = courseList;\r\n\t\tthis.indexGroupList = indexGroupList;\r\n\t\tthis.exemptionCoursesList = exemptionCoursesList;\r\n\t\tthis.completedCoursesList = completedCoursesList;\r\n\t\tthis.waitListIDList = waitListIDList;\r\n\t\tthis.schedule = schedule;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.email = email;\r\n\t\tthis.mobileNum = mobileNum;\r\n\t\tthis.notifMode = notifMode;\r\n\t}", "public Student getStudentByMatrNr(String arg0) {\n\t\treturn null;\n\t}" ]
[ "0.7700717", "0.7503704", "0.7405932", "0.7354049", "0.7352512", "0.7312423", "0.7225433", "0.7217643", "0.71839184", "0.7123824", "0.71157205", "0.7092926", "0.70893097", "0.7086684", "0.6996632", "0.69914854", "0.69530827", "0.6930997", "0.69240946", "0.69209206", "0.68924004", "0.6890457", "0.6884993", "0.688409", "0.6866396", "0.68058336", "0.6793925", "0.6789095", "0.6776458", "0.6739943", "0.6738105", "0.6709011", "0.6699277", "0.6682623", "0.6678221", "0.66744184", "0.6651454", "0.66508996", "0.66475785", "0.664454", "0.6613552", "0.65785974", "0.65615034", "0.6545233", "0.6490472", "0.64822465", "0.6476494", "0.64756787", "0.64626044", "0.64609784", "0.6458632", "0.6457211", "0.64410245", "0.6439574", "0.64158744", "0.6413388", "0.6409447", "0.6395519", "0.6389779", "0.638501", "0.6383754", "0.6383754", "0.6383754", "0.6373027", "0.6346904", "0.6343906", "0.6340789", "0.631947", "0.6311306", "0.63014364", "0.6295423", "0.6287536", "0.62777984", "0.6267465", "0.62414217", "0.62392104", "0.6233432", "0.62202054", "0.61953807", "0.61783665", "0.61697805", "0.61361307", "0.6132775", "0.6120256", "0.61085445", "0.6102052", "0.6096879", "0.6072335", "0.6049579", "0.604279", "0.6037963", "0.60371023", "0.60316753", "0.6029222", "0.6017891", "0.6013743", "0.6009735", "0.6003822", "0.5992899", "0.598595" ]
0.6007823
97
This is the primary method that you need to implement. The ``boardState`` object contains the current state of the game, which your agent must use to make decisions.
public Move chooseMove(PentagoBoardState boardState) { try { if (heuristicOnly) { System.out.println("chose from heuristic"); return Heuristics.choseMove(new LowMemoryBoardState(boardState)); } if (mcts == null) { mcts = new MonteCarloUCT(); } return mcts.nextMove(new LowMemoryBoardState(boardState)); } catch (OutOfMemoryError e) { /* if the memory limit is exceeded, we *attempt* to free memory by nullifying our mcts and asking the JVM to garbage collect. Since this is a serious error, we switch the instance to use a heuristic exclusively, to prevent going over the memory limit again. */ mcts = null; System.gc(); this.heuristicOnly = true; return Heuristics.choseMove(new LowMemoryBoardState(boardState)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void takeTurn(int[][] boardState)\n {\n \n }", "public Result(BoardState board) {\n this.board = board;\n time = 0;\n }", "public static String[][] getBoardState() {\n return boardState;\n }", "public GameState getState(){\n\t\tGameState State=new GameState(this.points, this.currentBoard.getState());\n\t\t\n\t\treturn State;\n\t}", "public char[][] getBoardState(){\n\t\treturn board;\n\t}", "public GameBoard() {\n this.gameStarted = false;\n this.turn = 1; \n this.boardState = new char[3][3];\n this.winner = 0; \n this.isDraw = false; \n\n }", "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType=1;\n this.board=new String[10][20];\n //this.player1=new HumanPlayer;\n //this.player2=new ComputerPlayer;\n\n }", "State(int[][] startBoardState, int [][] goalBoardState){\n this.currentBoardState = startBoardState;\n this.goalBoardState = goalBoardState;\n this.g_cost = 0;\n this.parentState = null;\n }", "public void checkPlay(int[][] boardState)\n {\n if(ai)\n {\n takeTurn(boardState);\n }\n }", "public char[][] getBoardState(){\n return board;\n }", "public GameState won() {\n if ( (board[0][0] != TileState.BLANK) && (board[0][0] == board[0][1]) && (board[0][0] == board[0][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[1][0] != TileState.BLANK) && (board[1][0] == board[1][1]) && (board[1][0] == board[1][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[2][0] != TileState.BLANK) && (board[2][0] == board[2][1]) && (board[2][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][1]) && (board[0][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ( (board[0][2] != TileState.BLANK) && (board[0][2] == board[1][1]) && (board[0][2] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][0]) && (board[0][0] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][1] != TileState.BLANK) && (board[0][1] == board[1][1]) && (board[0][1] == board[2][1])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][2] != TileState.BLANK) && (board[0][2] == board[1][2]) && (board[0][2] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if (movesPlayed == 9)\n return GameState.DRAW;\n return GameState.IN_PROGRESS;\n }", "public static String[][] createBoardState() {\n String[][] initialBoardState = {\n {\"Rw\", \"Nw\", \"Bw\", \"Qw\", \"Kw\", \"Bw\", \"Nw\", \"Rw\"},\n {\"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\"},\n {\"Rb\", \"Nb\", \"Bb\", \"Qb\", \"Kb\", \"Bb\", \"Nb\", \"Rb\"}\n };\n\n return initialBoardState;\n }", "GameState() {\n this.board = new int[SIZE][SIZE];\n this.prevMoves = \"\";\n this.rank = setRank();\n }", "public String getStateOfBoard()\n {\n // This function is used to print state of the board. such as number of coins present on the board\n String str=\"\";\n str += \"Black_Coins Count:\"+this.gameController.getCoinsCount(CoinType.BLACK) +\" Red_Coins Count:\"+this.gameController.getCoinsCount(CoinType.RED);\n return str;\n }", "private Board getBoard() {\n return gameStatus.getBoard();\n }", "public static void stateCheckerboardConvertionTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 17087 };\n\n\t\tint tempState;\n\t\tint[][] tempCheckerboard;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempCheckerboard = tempEnvironment.stateToCheckerboard(tempTestStates[i]);\n\t\t\tSystem.out.println(\"The checkerboard of \" + tempTestStates[i] + \" is: \"\n\t\t\t\t\t+ Arrays.deepToString(tempCheckerboard));\n\t\t\ttempState = tempEnvironment.checkerboardToState(tempCheckerboard);\n\t\t\tSystem.out.println(\"The state ID is \" + tempState);\n\t\t} // Of for i\n\n\t}", "public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }", "private int evaluateState() {\r\n\r\n\t\t// add up score\r\n\t\t//\r\n\t\tint scoreWhite = 0;\r\n\t\tint scoreBlack = 0;\r\n\t\tfor (Piece piece : this.chessGame.getPieces()) {\r\n\t\t\tif(piece.getColor() == Piece.COLOR_BLACK){\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreBlack +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else if( piece.getColor() == Piece.COLOR_WHITE){\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPieceType(piece.getType());\r\n\t\t\t\tscoreWhite +=\r\n\t\t\t\t\tgetScoreForPiecePosition(piece.getRow(),piece.getColumn());\r\n\t\t\t}else{\r\n\t\t\t\tthrow new IllegalStateException(\r\n\t\t\t\t\t\t\"unknown piece color found: \"+piece.getColor());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// return evaluation result depending on who's turn it is\r\n\t\tint gameState = this.chessGame.getGameState();\r\n\t\t\r\n\t\tif( gameState == ChessGame.GAME_STATE_BLACK){\r\n\t\t\treturn scoreBlack - scoreWhite;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_WHITE){\r\n\t\t\treturn scoreWhite - scoreBlack;\r\n\t\t\r\n\t\t}else if(gameState == ChessGame.GAME_STATE_END_WHITE_WON\r\n\t\t\t\t|| gameState == ChessGame.GAME_STATE_END_BLACK_WON){\r\n\t\t\treturn Integer.MIN_VALUE + 1;\r\n\t\t\r\n\t\t}else{\r\n\t\t\tthrow new IllegalStateException(\"unknown game state: \"+gameState);\r\n\t\t}\r\n\t}", "public static Evaluation evaluateBoard(String boardState) {\n final Wrapper wrapper = validateBoard(boardState);\n if (wrapper.evaluation == Evaluation.UnreachableState ||\n wrapper.evaluation == Evaluation.InvalidInput) {\n return wrapper.evaluation;\n }\n final int diagonalSize = wrapper.diagonal;\n final ExecutorService executorService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n final CompletionService<Evaluation> completionService = new ExecutorCompletionService<>(executorService);\n completionService.submit(new Worker(wrapper.string, diagonalSize, CallType.H));\n completionService.submit(new Worker(wrapper.string, diagonalSize, CallType.V));\n completionService.submit(new Worker(wrapper.string, diagonalSize, CallType.LD));\n completionService.submit(new Worker(wrapper.string, diagonalSize, CallType.RD));\n for (int i = 0; i < 4; i++) {\n try {\n Evaluation evaluation = completionService.take().get();\n if (evaluation == Evaluation.Owins || evaluation == Evaluation.Xwins) {\n executorService.shutdownNow();\n return evaluation;\n }\n } catch (Exception ignored) {\n }\n }\n return Evaluation.NoWinner;\n }", "public void setBoard(Board board){this.board = board;}", "void onBoardStateChanged(BoardView view);", "public static Move openingStrategy(PentagoBoardState boardState, int player) {\n\t Move firstMoveOne = new PentagoMove(1, 0, Quadrant.BL, Quadrant.BR, player);\r\n\t Move firstMoveTwo = new PentagoMove(1, 3, Quadrant.BL, Quadrant.BR, player);\r\n\t Move moveThree = new PentagoMove(0, 1, Quadrant.BL, Quadrant.TR, player);\r\n\t Move moveFour = new PentagoMove(0, 4, Quadrant.TL, Quadrant.BR, player);\r\n\t Move moveFive = new PentagoMove(3, 1, Quadrant.BL, Quadrant.TL, player);\r\n\t Move moveSix = new PentagoMove(3, 4, Quadrant.TL, Quadrant.TR, player);\r\n\t Move moveSeven = new PentagoMove(2, 2, Quadrant.TL, Quadrant.TR, player);\r\n\t Move moveEight = new PentagoMove(2, 5, Quadrant.TL, Quadrant.BR, player);\r\n\t Move moveNine = new PentagoMove(5, 2, Quadrant.BL, Quadrant.TL, player);\r\n\t Move moveTen = new PentagoMove(5, 5, Quadrant.TL, Quadrant.TR, player);\r\n\t \r\n\t //First turn as either Black or White\r\n\t if(boardState.getTurnNumber() == 0 || boardState.getTurnNumber() == 1) {\r\n\t if(boardState.isLegal((PentagoMove) firstMoveOne)) {\r\n\t \treturn firstMoveOne;\r\n\t }\r\n\t else if(boardState.isLegal((PentagoMove) firstMoveTwo)) {\r\n\t \treturn firstMoveTwo;\r\n\t }\r\n\t else {\r\n\t \t/* If something goes awry, play the first legal move (will place pieces in TL quadrant usually).\r\n\t \t * Same error condition for the following moves as well.\r\n\t \t **/\r\n\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t \treturn legalMoves.get(0);\r\n\t }\r\n\t }\r\n\t else if(boardState.getTurnNumber() == 2 || boardState.getTurnNumber() == 3) {\r\n\t \t//White player turn 2 & 3 set up\r\n\t \tif(player == 0) {\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveThree) && boardState.getPieceAt(1, 0).toString().equals(\"w\")) {\r\n\t\t \treturn moveThree;\r\n\t\t }\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveFour) && boardState.getPieceAt(1, 3).toString().equals(\"w\")) {\r\n\t\t \t\treturn moveFour;\r\n\t\t \t}\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveFive) && boardState.getPieceAt(4, 0).toString().equals(\"w\")) {\r\n\t\t \treturn moveFive;\r\n\t\t }\r\n\t\t \tif(boardState.isLegal((PentagoMove) moveSix) && boardState.getPieceAt(4, 3).toString().equals(\"w\")) {\r\n\t\t \t\treturn moveSix;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(0, 1).toString().equals(\"b\") && boardState.getPieceAt(1, 0).toString().equals(\"w\")\t\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveSeven)) {\r\n\t\t \treturn moveSeven;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(0, 4).toString().equals(\"b\") && boardState.getPieceAt(1, 3).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveEight)) {\r\n\t\t \t\treturn moveEight;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(3, 1).toString().equals(\"b\") && boardState.getPieceAt(4, 0).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveNine)) {\r\n\t\t \treturn moveNine;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(3, 4).toString().equals(\"b\") && boardState.getPieceAt(4, 3).toString().equals(\"w\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveTen)) {\r\n\t\t \t\treturn moveTen;\r\n\t\t \t}\r\n\t\t else {\r\n\t\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t\t \treturn legalMoves.get(0);\r\n\t\t }\r\n\t \t} \r\n\t \t//Black player turn 2 & 3 set up\r\n\t \telse {\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveThree) && boardState.getPieceAt(1, 0).toString().equals(\"b\")) {\r\n\t\t \treturn moveThree;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveFour) && boardState.getPieceAt(1, 3).toString().equals(\"b\")) {\r\n\t\t \treturn moveFour;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveFive) && boardState.getPieceAt(4, 0).toString().equals(\"b\")) {\r\n\t\t \treturn moveFive;\r\n\t\t }\r\n\t \t\tif(boardState.isLegal((PentagoMove) moveSix) && boardState.getPieceAt(4, 3).toString().equals(\"b\")) {\r\n\t\t \treturn moveSix;\r\n\t\t }\r\n\t \t\tif(boardState.getPieceAt(0, 1).toString().equals(\"w\") && boardState.getPieceAt(1, 0).toString().equals(\"b\")\r\n\t \t\t\t\t&& boardState.isLegal((PentagoMove) moveSeven)) {\r\n\t\t \treturn moveSeven;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(0, 4).toString().equals(\"w\") && boardState.getPieceAt(1, 3).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveEight)) {\r\n\t\t \t\treturn moveEight;\r\n\t\t \t}\r\n\t\t \tif(boardState.getPieceAt(3, 1).toString().equals(\"w\") && boardState.getPieceAt(4, 0).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveNine)) {\r\n\t\t \treturn moveNine;\r\n\t\t }\r\n\t\t \tif(boardState.getPieceAt(3, 4).toString().equals(\"w\") && boardState.getPieceAt(4, 3).toString().equals(\"b\")\r\n\t\t \t\t\t&& boardState.isLegal((PentagoMove) moveTen)) {\r\n\t\t \t\treturn moveTen;\r\n\t\t \t}\r\n\t\t else {\r\n\t\t \tArrayList<PentagoMove> legalMoves = boardState.getAllLegalMoves();\r\n\t\t \treturn legalMoves.get(0);\r\n\t\t }\r\n\t \t}\t \r\n\t }\r\n\t else {\r\n\t \t//If we are past Player's Turn 3, start using MiniMax with a-b pruning\r\n\t \tMiniMaxABPruning instc = new MiniMaxABPruning();\r\n\t \treturn instc.abPruningStrategy(boardState, boardState.getTurnPlayer());\r\n\t }\r\n\t}", "@Override\r\n\tpublic BoardEvaluation evaluate(IBoard board, PlayerColor color) {\n\t\tBoardAnalyzer analyzer = board.getAnalyzer();\r\n\r\n\t\tBoardEvaluation e = new BoardEvaluation();\r\n\r\n\t\tint white = 0;\r\n\t\tint black = 0;\r\n\r\n\t\tList<IPiece> pieces = board.getAllPieces();\r\n\r\n\t\tint[] pawnCount = new int[2];\r\n\t\tint[] bishopCount = new int[2];\r\n\t\tint[] knightCount = new int[2];\r\n\t\tfor (IPiece piece : pieces) {\r\n\t\t\tif (piece.getColor() == PlayerColor.WHITE) {\r\n\t\t\t\twhite += piece.getPieceValue();\r\n\t\t\t} else {\r\n\t\t\t\tblack += piece.getPieceValue();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint index = piece.getColor().ordinal();\r\n\t\t\tif (piece instanceof Pawn) {\r\n\t\t\t\tpawnCount[index]++;\r\n\t\t\t} else if (piece instanceof Bishop) {\r\n\t\t\t\tbishopCount[index]++;\r\n\t\t\t} else if (piece instanceof Knight) {\r\n\t\t\t\tknightCount[index]++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint totalPieceValue = white + black;\r\n\t\tint blackIndex = PlayerColor.BLACK.ordinal();\r\n\t\tint whiteIndex = PlayerColor.WHITE.ordinal();\r\n\t\tblack += extraBishopValue(totalPieceValue, bishopCount[blackIndex]);\r\n\t\tblack += extraKnightValue(totalPieceValue, bishopCount[blackIndex]);\r\n\t\tblack += extraPawnValue(totalPieceValue, bishopCount[blackIndex]);\r\n\t\twhite += extraBishopValue(totalPieceValue, bishopCount[whiteIndex]);\r\n\t\twhite += extraKnightValue(totalPieceValue, bishopCount[whiteIndex]);\r\n\t\twhite += extraPawnValue(totalPieceValue, bishopCount[whiteIndex]);\r\n\r\n\t\t// Stalemate\r\n\t\tif (analyzer.isStalemate()) {\r\n\t\t\te.draw = true;\r\n\t\t\tblack += 90;\r\n\t\t} else if (analyzer.canClaimDraw()) {\r\n\t\t\tif (board.getTurn() == PlayerColor.WHITE) {\r\n\t\t\t\t// White can stop black from claiming draw\r\n\t\t\t\t//black += 50;\r\n\t\t\t} else {\r\n\t\t\t\t// Black can claim draw immediately!\r\n\t\t\t\te.draw = true;\r\n\t\t\t\tblack += 4;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Checkmate ?\r\n\t\tif (analyzer.isCheckmate(PlayerColor.BLACK)) {\r\n\t\t\twhite += 100;\r\n\t\t\te.checkmate = true;\r\n\t\t}\r\n\r\n\t\tif (analyzer.isCheckmate(PlayerColor.WHITE)) {\r\n\t\t\tblack += 100;\r\n\t\t\te.checkmate = true;\r\n\t\t}\r\n\r\n\t\tif (color == null) {\r\n\t\t\te.value = white - black;\r\n\t\t} else if (color == PlayerColor.BLACK) {\r\n\t\t\te.value = Math.abs(white - FULL_BOARD_VALUE);\r\n\t\t} else {\r\n\t\t\te.value = Math.abs(black - FULL_BOARD_VALUE);\r\n\t\t}\r\n\r\n\t\treturn e;\r\n\t}", "private int getStateOfPositionFromBoard(positionTicTacToe position, List<positionTicTacToe> targetBoard)\n\t{\n\t\tint index = position.x*16+position.y*4+position.z;\n\t\treturn targetBoard.get(index).state;\n\t}", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "public Move chooseMove(PentagoBoardState boardState) {\n // You probably will make separate functions in MyTools.\n // For example, maybe you'll need to load some pre-processed best opening\n // strategies...\n \t\n PentagoBoardState cloneBoard = (PentagoBoardState) boardState.clone();\n \n \n Move myMove = null;\n int myPlayer = boardState.getTurnPlayer();\n if(boardState.getTurnNumber() == 0 || boardState.getTurnNumber() == 1) {\n \t//For the first two rounds.\n \t//Place at the center of each quadrant.\n \tif(boardState.getPieceAt(1, 1) == null) {//TL center is null.\n \t\tmyMove = new PentagoMove(1,1,Quadrant.TR,Quadrant.BL,myPlayer);\n \t}else if(boardState.getPieceAt(4, 1) == null) {//TR center is null.\n \t\tmyMove = new PentagoMove(4,1,Quadrant.TL,Quadrant.TR,myPlayer);\n \t}else if(boardState.getPieceAt(1, 4) == null) {//BL center is null\n \t\tmyMove = new PentagoMove(1,4,Quadrant.TL,Quadrant.BL,myPlayer);\n \t}else {myMove = new PentagoMove(4,4,Quadrant.TL,Quadrant.BR,myPlayer);}\n }\n \n else {//Do a-b pruning.\n myMove = MyTools.max_value(cloneBoard, Integer.MIN_VALUE, Integer.MAX_VALUE, 3).getMove();\n }\n \n // Return your move to be processed by the server.\n return myMove;\n }", "private MyGameState(int[][] board, int turn) {\n this.board = board;\n this.turn = turn;\n }", "void printBoardState(Piece[] B,Player J,int N);", "public BoardState(int typeOfPlayer){\n board = new char[boardSize][boardSize];\n //ai\n if(typeOfPlayer == 0){\n aiInitBoard();\n }\n //human\n else if(typeOfPlayer == 1){\n initBoard();\n }\n }", "public void gameOfLife(int[][] board) {\n int m = board.length;\n int n = ( m > 0 ? board[0].length : 0);\n int[] dx = {-1, -1, -1, 0, 1, 1, 1, 0};\n int[] dy = {-1, 0, 1, 1, 1, 0, -1, -1};\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n int cnt = 0;\n /**\n * Count the neighbors with live status.\n */\n for (int k = 0; k < 8; k++) {\n int x = i + dx[k];\n int y = j + dy[k];\n /**\n * Notice using board[x][y] here, not board[i][j]\n * The next state is created by applying the above rules simultaneously to every cell in the current state,\n * so we concern state==1 and state==2(both states indicate live)\n */\n if (x >= 0 && x < m && y >= 0 && y < n && (board[x][y] == 1 || board[x][y] == 2)) {\n cnt++;\n }\n }\n if (board[i][j] == 1 && (cnt < 2 || cnt > 3)) {\n /**\n * From live to dead.\n */\n board[i][j] = 2;\n }\n if (board[i][j] == 0 && cnt == 3) {\n /**\n * From dead to live\n */\n board[i][j] = 3;\n }\n }\n }\n /**\n * Restore state back to 0 and 1.\n */\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n board[i][j] %= 2;\n }\n }\n }", "private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n break;\n case ONE:\n lostTurnByOne();\n break;\n case READY:\n readyToPlay();\n break;\n case START:\n startGame();\n break;\n case TURN:\n startTurn();\n break;\n case FINISH:\n finishGame();\n break;\n }\n }", "public interface Board\n{\n /** Value for an invalid move */\n int INVALID_MOVE = -1;\n\n /**\n * Returns the height of this Board.\n *\n * @return the height of this Board\n */\n int getHeight();\n\n /**\n * Returns the width of this Board.\n *\n * @return the width of this Board\n */\n int getWidth();\n\n /**\n * Returns the win condition of this Board.\n *\n * @return the win condition of this Board\n */\n int getWinCondition();\n\n /**\n * Returns the winner based on the current state of the board. Assumes that\n * the board is in a valid state and that there is only one player who has\n * n-in-a-row.\n *\n * @return the winner\n */\n Piece getWinner();\n\n /**\n * Returns the piece in the specified column and row.\n *\n * @param col the column\n * @param row the row\n * @return the Piece at the specified position\n */\n Piece getPieceAt(int col, int row);\n\n /**\n * Returns the current turn. Turns start at 0.\n *\n * @return the current turn\n */\n int getCurrentTurn();\n\n /**\n * Returns the next piece to be played. Turns alternate between Black and\n * Red, starting with Black on the first turn.\n *\n * @return the next piece to be played\n */\n Piece getNextPiece();\n\n /**\n * Plays the next piece in the specified column. Columns start from 0 on the\n * far left and end with (width - 1) on the far right. The next piece is\n * determined by the current turn. The piece will be placed in the lowest\n * empty row in the specified column.\n *\n * @param col the column to play the next piece\n * @throws IllegalMoveException if the column is not a valid column or if\n * the column is full\n */\n void play(int col) throws IllegalMoveException;\n\n /**\n * Undoes the last play on this Board.\n *\n * @throws IllegalStateException if the board is empty (i.e. no plays have\n * been made)\n */\n void undoPlay();\n\n /**\n * Checks if playing a piece in the specified column is valid. A move is\n * valid if the column is greater than or equal to 0 (far left column) and\n * less than the width of this Board (far right column) and the column is\n * not full. This method assumes that the board is in a valid state and only\n * checks if the top row of the column is empty.\n *\n * @param col the column to play the next piece\n * @return true if the move is valid, false otherwise.\n */\n boolean isValidMove(int col);\n\n /**\n * Adds a BoardListener to this Board.\n *\n * @param boardListener the BoardListener being added\n */\n void addBoardListener(BoardListener boardListener);\n\n /**\n * Returns an immutable view of this board.\n *\n * @return an immutable view of this board\n */\n ImmutableBoard getImmutableView();\n}", "public Board getBoardObject() {\n return boardObject;\n }", "private int checkerboardToState(int[][] paraCheckerboard) {\n\t\tint resultState = 0;\n\t\tint tempExponential = 1;\n\t\tfor (int i = 0; i < SIZE; i++) {\n\t\t\tfor (int j = 0; j < SIZE; j++) {\n\t\t\t\tresultState += paraCheckerboard[i][j] * tempExponential;\n\t\t\t\ttempExponential *= SIZE;\n\t\t\t} // Of for j\n\t\t} // Of for i\n\n\t\treturn resultState;\n\t}", "public PentagoMove chooseMove(PentagoBoardState boardState) {\n\n // You probably will make separate functions in MyTools.\n // For example, maybe you'll need to load some pre-processed best opening\n // strategies...\n Move myMove = boardState.getRandomMove();\n MyTools.simulateGame(boardState, (PentagoMove) myMove);\n MyTools.setPlayer(player_id);\n\n\n if(boardState.getTurnNumber()<3){\n myMove = MyTools.initialMove(boardState);\n }else{\n myMove = MyTools.myTurn(boardState);\n }\n PentagoMove winningMove = MyTools.gameWinnable(boardState);\n if(winningMove != null){\n System.out.println(\"Game Over!\");\n return winningMove;\n }\n int heuristic = MyTools.getHeuristic((PentagoMove)myMove, boardState);\n System.out.println(\"The heuristic is:\" + heuristic);\n PentagoMove m = (PentagoMove) myMove;\n // Return your move to be processed by the server.\n System.out.println(\"PLaying at: x=\"+ ((PentagoMove) myMove).getMoveCoord().getX()+ \", y=\" +((PentagoMove) myMove).getMoveCoord().getY());\n return ((PentagoMove) myMove);\n }", "public void setState(GameState aState){\n\t\tpoints=aState.getScore();\n\t\tcurrentBoard.setState(aState.getBoardState());\n\t}", "public int gameState() {\n \tboolean check = isCheck(turn);\n \t\n \t//change this code to be some sort of checkmate detection\n \tif(check) {\n \t\t//we need to check whether there is a legal move that puts the king out of check\n \t\t//we need to loop through all pieces of the same color as the turn and make all legal moves\n \t\t//then after each move, check whether the king is still in check\n \t\t\n \t\t//first generate a list of all pieces for the turn color\n \t\tArrayList<Piece> pieces = getPieces(turn);\n \t\t\n \t\tboolean freedom;\n \t\t\n \t\t//now for each piece, check whether moving that piece can get the king out of check\n \t\tfor(int i = 0; i < pieces.size(); i++) {\n \t\t\tfreedom = simulate(pieces.get(i));\n \t\t\tif(freedom) {\n \t \t\tupdateCheckMove(false);\n \t \t\tSystem.out.println(\"Check on \" + turn + \" King!\");\n \t\t\t\treturn 2; //if the king can move, then the game isn't over yet\n \t\t\t}\n \t\t}\n \t\t\n \t\t//the game is over if we reach this far, so we can assume checkmate\n \t\t//resignation logic will probably be specific to Display class\n \t\t\n \t\tupdateCheckMove(true);\n \t\t\n \t\tif(turn == PieceColor.White) return -1; //black win if white king in check and can't move\n \t\tif(turn == PieceColor.Black) return 1;\n \t}\n \t\n \t//if all of these fail, the game isn't over yet\n \treturn 2;\n }", "private static int evalState(GameState state){\n Move m = state.getMove();\n int counter = 0;\n\n // return directly if we encouter win or loss\n if(m.isXWin()){\n return 10000;\n }\n else if(m.isOWin()){\n return -1;\n }\n\n Vector<Integer> points = new Vector<Integer>();\n points.setSize(state.BOARD_SIZE*2+2);\n int player;\n Collections.fill(points, 1);\n int scaling = 4;\n int value = 0;\n\n for(int row = 0; row < state.BOARD_SIZE; row ++){\n for(int col = 0; col < state.BOARD_SIZE; col ++){\n player = state.at(row, col);\n\n // add points to the vector, increase by a factor for every new entry\n if(player == 1){\n points.set(row, points.get(row)*scaling);\n points.add(state.BOARD_SIZE + col, points.get(state.BOARD_SIZE - 1 + col)*scaling);\n\n // if it's in the first diagonal\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, points.get(state.BOARD_SIZE*2)*scaling);\n }\n\n // checking other diagonal\n if(counter%state.BOARD_SIZE-1 == 0 && row+col != 0){\n points.add(state.BOARD_SIZE*2 + 1, points.get(state.BOARD_SIZE*2)*scaling);\n }\n }\n // if an enemy player is encoutered null the value of the row/col\n else if(player == 2){\n points.set(row, 0);\n points.set(state.BOARD_SIZE + col, 0);\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, 0);\n }\n if(counter%state.BOARD_SIZE-1 == 0){\n points.add(state.BOARD_SIZE*2 + 1, 0);\n }\n }\n counter++;\n }\n }\n\n // if we have nulled the point we don't count it for the value of the state\n for(Integer i: points){\n if(i > 1){\n value += i;\n }\n }\n //System.err.println(\"Value: \" + value);\n return value;\n }", "public void displayCurrentState(State game);", "public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Return 0 if human wins\n else if (wins('b')){\n return 0;\n }\n //Return 2 if game is draw\n else if (isDraw()){\n return 2;\n }\n // Game is not a draw and no player has won. Game is still undecided.\n else {\n return 1;\n }\n }", "@Override\n public BattleState getBattleState() {\n return state;\n }", "public BlackjackClientState get_state() {\n ArrayList<String> cards = new ArrayList<>();\n ArrayList<String> cards2 = new ArrayList<>();\n for (Card c : player_cards)\n cards.add(c.toString());\n\n // Calculate the current state of the game\n int player_hand = get_hand_val(player_cards);\n if (player_hand > 21)\n player_busted = true;\n else if (player_hand == 21)\n player_stand = true;\n\n String player_count = Integer.toString(player_hand);\n\n if (player_stand || player_busted) {\n house_deal();\n for (Card c : house_cards)\n cards2.add(c.toString());\n int house_hand = get_hand_val(house_cards);\n String house_count = Integer.toString(house_hand);\n if (house_hand > 21)\n return new BlackjackClientState(id, true, player_busted ? \"Draw\" : \"You Win!\", player_count,\n house_count, cards, cards2);\n else if (house_hand > player_hand)\n return new BlackjackClientState(id, true, \"You lose\", player_count, house_count, cards, cards2);\n else if (!player_busted)\n return new BlackjackClientState(id, true, house_hand == player_hand ? \"Draw\" : \"You Win!\", player_count,\n house_count, cards, cards2);\n else\n return new BlackjackClientState(id, true, \"You lose\", player_count, house_count, cards, cards2);\n }\n\n return new BlackjackClientState(id, false, null, player_count, \"?\", cards, cards2);\n }", "private float getStateCost(int[] board) {\r\n\t\tfloat cost = 0;\r\n\t\tfor (int i = 0; i < this.checkBoardSide; i++) {\r\n\t\t\tif (isQueenAttacked(i, board[i], board)) {\r\n\t\t\t\tcost++;\r\n\t\t\t\t// System.out.println(\"row: \" + i + \" attacked\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cost;\r\n\r\n\t}", "public IGameAlgo.GameState getGameState (GameBoard.GameMove move){\n\t\t/*\n\t\t * If last move made by computer,check if computer wins.\n\t\t */\n\t\tif(this.board[lastMove.getRow()][lastMove.getColumn()]==BoardSigns.COMPUTER.getSign()) {\n\t\t\t if(\n\t\t (board[0][0] == BoardSigns.COMPUTER.getSign() && board[0][1] == BoardSigns.COMPUTER.getSign() && board[0][2] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[1][0] == BoardSigns.COMPUTER.getSign() && board[1][1] == BoardSigns.COMPUTER.getSign() && board[1][2] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[2][0] == BoardSigns.COMPUTER.getSign() && board[2][1] == BoardSigns.COMPUTER.getSign() && board[2][2] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[0][0] == BoardSigns.COMPUTER.getSign() && board[1][0] == BoardSigns.COMPUTER.getSign() && board[2][0] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[0][1] == BoardSigns.COMPUTER.getSign() && board[1][1] == BoardSigns.COMPUTER.getSign() && board[2][1] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[0][2] == BoardSigns.COMPUTER.getSign() && board[1][2] == BoardSigns.COMPUTER.getSign() && board[2][2] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[0][0] == BoardSigns.COMPUTER.getSign() && board[1][1] == BoardSigns.COMPUTER.getSign() && board[2][2] == BoardSigns.COMPUTER.getSign()) ||\n\t\t (board[0][2] == BoardSigns.COMPUTER.getSign() && board[1][1] == BoardSigns.COMPUTER.getSign() && board[2][0] == BoardSigns.COMPUTER.getSign())\n\t\t )\n\t\t\t\t return GameState.PLAYER_LOST;\t\t\t\t\t\t \n\t\t}\n\t\t/*\n\t\t * If last move made by player,check if player wins.\n\t\t */\n\t\telse {\n\t\t\t if(\n\t\t (board[0][0] == BoardSigns.PLAYER.getSign() && board[0][1] == BoardSigns.PLAYER.getSign() && board[0][2] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[1][0] == BoardSigns.PLAYER.getSign() && board[1][1] == BoardSigns.PLAYER.getSign() && board[1][2] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[2][0] == BoardSigns.PLAYER.getSign() && board[2][1] == BoardSigns.PLAYER.getSign() && board[2][2] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[0][0] == BoardSigns.PLAYER.getSign() && board[1][0] == BoardSigns.PLAYER.getSign() && board[2][0] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[0][1] == BoardSigns.PLAYER.getSign() && board[1][1] == BoardSigns.PLAYER.getSign() && board[2][1] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[0][2] == BoardSigns.PLAYER.getSign() && board[1][2] == BoardSigns.PLAYER.getSign() && board[2][2] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[0][0] == BoardSigns.PLAYER.getSign() && board[1][1] == BoardSigns.PLAYER.getSign() && board[2][2] == BoardSigns.PLAYER.getSign()) ||\n\t\t (board[0][2] == BoardSigns.PLAYER.getSign() && board[1][1] == BoardSigns.PLAYER.getSign() && board[2][0] == BoardSigns.PLAYER.getSign())\n\t\t )\n\t\t\t\t return GameState.PLAYER_WON;\t\n\t\t}\n\t\t/*\n\t\t * No one wins,check if in progress or game ends with tie.\n\t\t */\n\t\t\n\t\t //check if exist empty spots. \n\t\t\tfor(int i=0;i<3;i++)\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tif(board[i][j]==TicTacTow.BoardSigns.BLANK.getSign()) \n\t\t\t\t return GameState.IN_PROGRESS;\n\t\t\treturn GameState.TIE;\t\t\t\n\t}", "public interface AbstractState {\r\n abstract void toNextState(ChessBoard chessBoard,AbstractState state);\r\n}", "public BoardView(GameController controller, Text state, Rectangle sideRect,\n Text sideStatus, RadioMenuItem playerGameMenuItem, Text tType,\n Label whitePiecesEaten, Label blackPiecesEaten,\n ObservableList<String> moveHistory, Label lblCurrentPiece) {\n\n this.controller = controller;\n this.state = state;\n this.sideRect = sideRect;\n this.sideStatus = sideStatus;\n\n this.playerGameMenuItem = playerGameMenuItem;\n\n this.tType = tType;\n\n this.whitePiecesEaten = whitePiecesEaten;\n this.blackPiecesEaten = blackPiecesEaten;\n\n this.moveHistory = moveHistory;\n this.lblCurrentPiece = lblCurrentPiece;\n\n tiles = new Tile[8][8];\n gridPane = new GridPane();\n gridPane.setStyle(\"-fx-background-color : darkcyan;\");\n reset(controller);\n\n isFirstClick = true;\n hasStarted = false;\n promotionEventHappened = false;\n }", "public Board aiGetBoard() {\n return b;\n }", "@Override\n public void executeState(Controller controller) {\n // controller.getGame().setEndTurn(false);\n\n controller.setUndoCheckFlag(false);\n controller.setGoOn(true);\n controller.getGame().setTargetSelected(null);\n controller.getGame().setTargetInUse(null);\n\n\n controller.getGame().setCurrentPlayer(controller.getNextPlayer(controller.getGame().getCurrentPlayer()));\n controller.saveAll();\n controller.setCanSkip(false);\n Player currentPlayer= controller.getGame().getCurrentPlayer();\n currentPlayer.setHasBeenMoved(false);\n currentPlayer.setHasBuilt(false);\n currentPlayer.setDefeat(false);\n currentPlayer.setInQue(false);\n\n\n Square square [][]=controller.getGame().getField().getSquares();\n\n for(int x=0; x<5;x++)\n for(int y=0; y<5; y++)\n square[x][y].setStart_level(square[x][y].getLevel());\n\n\n for(Worker w: currentPlayer.getWorkers()){\n w.setSquareNotAvailable(null);\n w.setMandatorySquare(null);\n w.resetHystoricPos();\n w.setCanBeMoved(true);\n w.setCanBuild(true);\n }\n\n currentPlayer.getGod().setCantDo(new ArrayList<>());\n\n\n\n }", "public interface BoardGameBrain {\n\n void init(Board board);\n\n boolean playerHasWon();\n\n boolean draw();\n\n boolean isWinningMinorDiagonal();\n boolean isWinningMajorDiaogonal();\n boolean isWinningRow();\n boolean isWinningColumn();\n}", "void drawBoard(Board board);", "public Board getBoard()\r\n {\r\n return gameBoard;\r\n }", "public void showBoard(){\n }", "Board getBoard() {\r\n return _board;\r\n }", "public abstract void createBoard();", "public TurnState step() {\n ReadOnlyHistory history = board.viewHistory();\n \n if (!isGameOver) {\n Player next = nextPlayer();\n Move move = null;\n \n try {\n final long startTime = System.currentTimeMillis();\n move = next.play(history);\n next.addTime(System.currentTimeMillis() - startTime);\n \n if (next.getTime() >= timeLimit || !board.isValid(move)){\n isGameOver = true;\n }\n else {\n board.set(move);\n }\n }\n catch (IllegalArgumentException ex) {\n System.err.println(\"Player \" + next.getName() + \": \" + ex.getMessage());\n isGameOver = true;\n }\n catch (ArrayIndexOutOfBoundsException ex) {\n System.err.println(\"Player \" + next.getName() + \": \" + ex.getMessage());\n isGameOver = true;\n }\n \n return new TurnState(next, move, isGameOver);\n }\n else {\n return new TurnState(null, null, true);\n }\n }", "public Board getBoard ();", "public static void setBoardState(String[][] bs) {\n boardState = bs;\n }", "interface Cnst {\r\n\r\n /////////////////////////////////////////////////////////////\r\n // These constants can be changed to edit the big bang ran //\r\n /////////////////////////////////////////////////////////////\r\n\r\n //full size is eight, scales the size of the board\r\n int scale = 8;\r\n\r\n //numbers of blocks in a row and a column\r\n int blocks = 10;\r\n\r\n //number of colors the game will use, between 2-8 inclusive\r\n int numOfColors = 8;\r\n\r\n //the number of turns you have to win the game\r\n int maxTurns = 25;\r\n\r\n\r\n ////////////////////////////////////////\r\n // Please do not edit these constants //\r\n ////////////////////////////////////////\r\n\r\n //the visible board width, scales with scale\r\n int boardWidth = 70 * scale;\r\n\r\n //the visible board height, scales with scale\r\n int boardHeight = 70 * scale;\r\n\r\n //cell width scales with the board and scale\r\n int cellWidth = boardWidth / blocks;\r\n\r\n //cell height scales with board and scale\r\n int cellHeight = boardHeight / blocks;\r\n\r\n //new constant for text on the board\r\n int textHeight = boardWidth / 12;\r\n\r\n //the 8 colors that can be selected by the user\r\n ArrayList<Color> colorsToChoose =\r\n new ArrayList<Color>(Arrays.asList(\r\n Color.CYAN, Color.PINK, Color.ORANGE,\r\n Color.BLUE, Color.RED, Color.GREEN,\r\n Color.MAGENTA, Color.YELLOW));\r\n}", "void setBoard(Board board);", "GameState(GameState b) {\n //System.out.println( \"Just Copied GameState\\n\" + b.toString() +\"\\n\");\n board = new int[SIZE][];\n for (int i = 0; i < SIZE; i++) {\n this.board[i] = b.board[i].clone();\n }\n this.blankRow = b.blankRow;\n this.blankCol = b.blankCol;\n\n this.prevMoves = b.prevMoves;\n this.rank = setRank();\n }", "public interface PuzzleState {\r\n\t/**\r\n\t * The puzzle allows for four moves whose names are fixed with an enum type\r\n\t * Operation. Note that MOVERIGHT means that a tile moves to the right and the\r\n\t * slot to its right need to be empty for this to be possible.\r\n\t */\r\n\tpublic enum Operation {\r\n\t\tMOVERIGHT, MOVELEFT, MOVEUP, MOVEDOWN\r\n\t};\r\n\r\n\t/**\r\n\t * Sets or resets PuzzleState object to the initial (final) state of a game with\r\n\t * the given dimension and number of empty slots. The initial state is the same\r\n\t * as the final state. All tiles are ordered from top-left to bottom-right,\r\n\t * empty slots are at the bottom-right. Parent and operation are set to null.\r\n\t * \r\n\t * @param dimension\r\n\t * is the number of tiles per row (or column)\r\n\t * @param numberOfEmptySlots\r\n\t * is a number between 1 and 3\r\n\t */\r\n\tpublic void setToInitialState(int dimension, int numberOfEmptySlots);\r\n\r\n\t/**\r\n\t * Get the value of the tile at the given row and column position. An empty slot\r\n\t * is represented as 0. The row, column index starts at 0. The top-left position\r\n\t * is (0,0).\r\n\t * \r\n\t * @param row\r\n\t * is the row index, range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is the column index, range 0,1,..., dimension-1\r\n\t * @return value for the tile at the given position, range 0,1,...,dimension^2-1\r\n\t */\r\n\tpublic int getValue(int row, int column);\r\n\r\n\t/**\r\n\t * Get the parent state which is the state from which the current state was\r\n\t * reached. The parent state is useful if one wants to represent that a puzzle\r\n\t * state A moves to puzzle state B with a particular move operation. For this\r\n\t * example B.getParent() returns A. Obtaining A is useful to navigate back on a\r\n\t * path from a current state to a initial state where all tiles are sorted. The\r\n\t * initial state does not have a parent.\r\n\t * \r\n\t * @return a previously stored parent state or null if the state is the initial\r\n\t * state.\r\n\t */\r\n\tpublic PuzzleState getParent();\r\n\r\n\t/**\r\n\t * Retrieves the operation by which this state is reached. The operation is set\r\n\t * when applying move or drag operations. The initial state has no operation.\r\n\t * \r\n\t * @return previously stored Operation or null if there is none.\r\n\t */\r\n\tpublic Operation getOperation();\r\n\r\n\t/**\r\n\t * Get length of the path from initial state to the current state. A path is a\r\n\t * sequence of states that result from a series of move operations that are\r\n\t * sequentially applied to the initial state to get to the current state. The\r\n\t * initial state has a path length of 0, states that are reached with one move\r\n\t * have path length of one and so forth. A drag operation is a GUI short cut and\r\n\t * is internally represented with an equivalent sequence of move operations.\r\n\t * Note that any move operation increases the path length even if the player\r\n\t * gets closer to the solution. So the path length is not the distance between\r\n\t * initial state and current state but the number of puzzle states that are\r\n\t * linked together in a sequence with the getParent() function.\r\n\t * \r\n\t * @return the number of move operations from initial state to this state, the\r\n\t * returned value is greater or equal 0\r\n\t */\r\n\tpublic int getPathLength();\r\n\r\n\t/**\r\n\t * Checks if it is possible to move a tile from the given position in the given\r\n\t * direction. If it is, the method returns a new instance of PuzzleState where\r\n\t * the parent state is set to this object, i.e. the current state before the\r\n\t * move, the operation is set to op and the state is set to the state that\r\n\t * results from the move operation. The operation also sets length of the path\r\n\t * from the initial state to the new state. Note that this length only increases\r\n\t * with move operations regardless of the distance to the initial state. If the\r\n\t * move is not possible, the method returns null.\r\n\t * \r\n\t * @param row\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param op\r\n\t * gives an operation such as move left or move up.\r\n\t * @return new PuzzleState for legal move. For illegal move operation it returns\r\n\t * null.\r\n\t */\r\n\tpublic PuzzleState move(int row, int column, Operation op);\r\n\r\n\t/**\r\n\t * A drag is a short cut for a possible series of move operations. In the GUI,\r\n\t * it results from a drag operations across multiple empty slots. Check if it is\r\n\t * possible to move a tile from the start position to the end position. If start\r\n\t * and end are not adjacent, there must be empty positions in between to make a\r\n\t * sequence of moves possible from start to end. If this is possible, the method\r\n\t * returns a new instance of PuzzleState where the state is set to the state\r\n\t * that results from the sequence of move operations. A number of intermediate\r\n\t * PuzzleStates is created as needed to represent the sequence of move\r\n\t * operations such that one can work backwards from the resulting state towards\r\n\t * the starting state with the getParent() operation. If the move is not\r\n\t * possible, the method returns null. Starting position has coordinates\r\n\t * (startRow,startColumn). Ending position has coordinates (endRow,endColumn).\r\n\t * \r\n\t * @param startRow\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param startColumn\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param endRow\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param endColumn\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @return new PuzzleState for legal sequence of moves, otherwise null.\r\n\t */\r\n\tpublic PuzzleState drag(int startRow, int startColumn, int endRow, int endColumn);\r\n\r\n\t/**\r\n\t * Creates a random path from this state to the newly generated returned state\r\n\t * that has the given length. The states are connected with a number of\r\n\t * intermediate PuzzleStates to represent the path such that one can reverse\r\n\t * from the resulting state backwards to the initial state in a step-by-step\r\n\t * manner with the help of the getParent() method. For state on the sequence,\r\n\t * the getPathLength() method gives the number of steps away from the initial\r\n\t * state. A path that contains cycles should be avoided as this is boring for\r\n\t * the game. The path is generated with the help of a random number generator to\r\n\t * make it irregular and non-deterministic.\r\n\t * \r\n\t * @param pathLength\r\n\t * is a value greater or equal 0, denotes the number of steps from\r\n\t * this state to the returned state\r\n\t * @return state that is reachable with the given number of moves\r\n\t */\r\n\tpublic PuzzleState shuffleBoard(int pathLength);\r\n\r\n\t/**\r\n\t * Tells if the current state has an empty slot at the given position with\r\n\t * coordinates (row, column).\r\n\t * \r\n\t * @param row\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @return true if this is an empty slot, false otherwise\r\n\t */\r\n\tpublic boolean isEmpty(int row, int column);\r\n\r\n\t/**\r\n\t * Provides a puzzle state with same settings of tiles as the current state but\r\n\t * where the sequence of parent states is not representing the history how the\r\n\t * game got to the current state but the shortest possible sequence to the\r\n\t * solution (initial) state. The returned puzzle state can be operated just as\r\n\t * any puzzle state and its getParent() method leads to the initial state.\r\n\t * \r\n\t * @return new state object that can substitute the current state and has\r\n\t * shortest possible path to solution (initial) state.\r\n\t */\r\n\tpublic PuzzleState getStateWithShortestPath();\r\n}", "public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }", "public static HashSet<gameState> Actions(gameState currentState) {\n\t\t\n\t\tHashSet<gameState> possibleStates = new HashSet<gameState>();\n\t\t\n\t\t\n\t\t// Store which player goes next after this player plays\n\t\tint nextNextUp;\n\t\tif (currentState.getNextUp() == 0) {\n\t\t\tnextNextUp = 1;\n\t\t} else {\n\t\t\tnextNextUp = 0;\n\t\t}\n\t\t\n\t\t// Store corresponding characters for each player\n\t\t// DARK(X) - 0, LIGHT(O) - 1\n\t\tchar myTile;\n\t\tchar opponentTile;\n\t\tif (currentState.getNextUp() == 0) {\n\t\t\tmyTile = 'x';\n\t\t\topponentTile = 'o';\n\t\t} else {\n\t\t\tmyTile = 'o';\n\t\t\topponentTile = 'x';\n\t\t}\n\n\t\t\n\n\t\t// Check the entire board of the state \n\t\tfor (int i = 0; i<boardSize; i++) {\n\t\t\tfor (int j = 0; j<boardSize; j++) {\n\t\t\t\t\n\t\t\t\t// If the tile is my tile\n\t\t\t\tif (currentState.getBoard()[i][j] == '_') {\n\t\t\t\t\t\n\t\t\t\t\tchar[][] moveBoard = createNewBoard(currentState);\n\t\t\t\t\t\n\t\t\t\t\t// Up\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// If it is an opponent tile, then you keep going up until you either my tile (fail) or\n\t\t\t\t\t\t// a blank space (success/move possible)\n\t\t\t\t\t\tif (currentState.getBoard()[i-1][j] == opponentTile) { \n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tfor (int k = i-2; k >= 0; k--) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][j] == myTile) {\n\t\t\t\t\t\t\t\t\tfor (int l = k+1; l<=i;l++) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[l][j] = myTile;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][j] == opponentTile) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Down\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i+1][j] == opponentTile) { \n\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tfor (int k = i+2; k < boardSize; k++) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][j] == myTile) {\n\t\t\t\t\t\t\t\t\tfor (int l = k-1; l>=i;l--) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[l][j] = myTile;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][j] == opponentTile) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Left\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i][j-1] == opponentTile) { \n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tfor (int k = j-2; k >= 0; k--) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[i][k] == myTile) {\n\t\t\t\t\t\t\t\t\tfor (int l = k+1; l<=j;l++) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[i][l] = myTile;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[i][k] == opponentTile) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Right\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i][j+1] == opponentTile) { \n\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tfor (int k = j+2; k < boardSize; k++) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[i][k] == myTile) {\n\t\t\t\t\t\t\t\t\tfor (int l = k-1; l>=j;l--) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[i][l] = myTile;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[i][k] == opponentTile) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Up and Left\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i-1][j-1] == opponentTile) { \n\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tint l = j-2;\n\t\t\t\t\t\t\tfor (int k = i-2; k >= 0; k--) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][l] == myTile) {\n\t\t\t\t\t\t\t\t\tint p = l+1;\n\t\t\t\t\t\t\t\t\tfor (int q = k+1; q<=i;q++) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[q][p] = myTile;\n\t\t\t\t\t\t\t\t\t\tp++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][l] == opponentTile) {\n\t\t\t\t\t\t\t\t\tl--;\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Up and Right\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i-1][j+1] == opponentTile) { \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tint l = j+2;\n\t\t\t\t\t\t\tfor (int k = i-2; k >= 0; k--) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][l] == myTile) {\n\t\t\t\t\t\t\t\t\tint p = l-1;\n\t\t\t\t\t\t\t\t\tfor (int q = k+1; q<=i;q++) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[q][p] = myTile;\n\t\t\t\t\t\t\t\t\t\tp--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][l] == opponentTile) {\n\t\t\t\t\t\t\t\t\tl++;\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Down and Left\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i+1][j-1] == opponentTile) { \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tint l = j-2;\n\t\t\t\t\t\t\tfor (int k = i+2; k < boardSize; k++) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][l] == myTile) {\n\t\t\t\t\t\t\t\t\tint p = l+1;\n\t\t\t\t\t\t\t\t\tfor (int q = k-1; q>=i;q--) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[q][p] = myTile;\n\t\t\t\t\t\t\t\t\t\tp++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][l] == opponentTile) {\n\t\t\t\t\t\t\t\t\tl--;\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\t// Down and Right\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (currentState.getBoard()[i+1][j+1] == opponentTile) { \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Keep going up until the top is hit\n\t\t\t\t\t\t\tint l = j+2;\n\t\t\t\t\t\t\tfor (int k = i+2; k < boardSize; k++) {\n\t\t\t\t\t\t\t\tif (currentState.getBoard()[k][l] == myTile) {\n\t\t\t\t\t\t\t\t\tint p = l-1;\n\t\t\t\t\t\t\t\t\tfor (int q = k-1; q>=i;q--) {\n\t\t\t\t\t\t\t\t\t\tmoveBoard[q][p] = myTile;\n\t\t\t\t\t\t\t\t\t\tp--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (currentState.getBoard()[k][l] == opponentTile) {\n\t\t\t\t\t\t\t\t\tl++;\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {}\n\t\t\t\t\t\n\t\t\t\t\tif (!compareBoards(moveBoard, currentState.getBoard())) {\n\t\t\t\t\t\tgameState move = new gameState(moveBoard, nextNextUp);\t\t\n\t\t\t\t\t\tpossibleStates.add(move);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\n\t\treturn possibleStates;\n\t\t\n\t\t\n\t\t\n\t}", "public Board getBoard() {\r\n return board;\r\n }", "public boolean makeMove(GameState gameState);", "public void setBoard(Board board) {\n this.board = board;\n }", "public void setBoard(Board board) {\n this.board = board;\n }", "public GameState GetState(){\n\t\treturn this.state;\n\t}", "public Board getBoard() {\n return this.board;\n }", "public Board getBoard() {\n return this.board;\n }", "public Result determineOutcome() {\n for (int row = 0; row < TicTacToeModel.BOARD_DIMENSION; row++) {\n if (rowScore[row] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (rowScore[row] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n for (int col = 0; col < TicTacToeModel.BOARD_DIMENSION; col++) {\n if (colScore[col] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (colScore[col] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n if (leftDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (rightDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (leftDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n if (rightDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n\n if (freeSpace == 0) return Result.DRAW;\n\n return Result.INCOMPLETE;\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 abstract void buildMoveData(ChessBoard board);", "Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }", "public Board getCurrentBoard() {\n return boardIterator.board;\n }", "public GameState() {\n positionToPieceMap = new HashMap<Position, Piece>();\n }", "private void scoreboard() {\n Intent intent = new Intent(this, AlienPainterScoreboardActivity.class);\n intent.putExtra(SCOREBOARD_STATUS, presenter.getIsVictorious());\n intent.putExtra(POINTS, presenter.getPoints());\n intent.putExtra(NUM_MOVES, presenter.getNumMoves());\n intent.putExtra(TIME_LEFT, presenter.getTimeLeft());\n intent.putExtra(LANGUAGE, isEnglish);\n intent.putExtra(PASS_USER, currUser);\n startActivity(intent);\n finish();\n }", "Board getBoard() {\n return _board;\n }", "public void setState(PlayerState newPlayerState) {\n\n this.playerState = newPlayerState;\n\n closeWindows();\n\n\n switch (newPlayerState) {\n\n case CHOOSE_BONUS_TILE:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(false);\n\n setEndTurn(false);\n\n setUseLeader(false);\n\n\n break;\n\n\n case THROWDICES:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(true);\n\n setSkipAction(false);\n\n setEndTurn(false);\n\n setUseLeader(false);\n\n try {\n throwDices();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n break;\n\n\n\n case DOACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(true);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n try {\n yourTurn();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n\n break;\n\n case BONUSACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n try {\n bonusAction();\n } catch (InterruptedException e) {\n LOGGER.log(Level.WARNING, \"Interrupted!\", e);\n // clean up state...\n Thread.currentThread().interrupt();\n }\n\n break;\n\n\n case CHOOSEACTION:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(true);\n\n setThrowDices(false);\n\n setSkipAction(true);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n break;\n\n\n case CHOOSEWORKERS:\n case ACTIVATE_PAY_TO_OBTAIN_CARDS:\n case CHOOSE_EFFECT:\n case CHOOSECOST:\n case CHOOSE_COUNCIL_PRIVILEGE:\n case PRAY:\n case WAITING:\n\n noButtonsAble();\n\n setLeaderButtons(false);\n\n setUseLeader(false);\n\n break;\n\n case ENDTURN:\n\n setActions(false);\n\n setLeaderButtons(false);\n\n setFamilyPawns(false);\n\n setThrowDices(false);\n\n setSkipAction(false);\n\n setEndTurn(true);\n\n setUseLeader(true);\n\n\n break;\n\n case LEADER:\n\n noButtonsAble();\n\n setUseLeader(true);\n break;\n\n\n case SUSPENDED:\n\n noButtonsAble();\n\n setLeaderButtons(false);\n\n setUseLeader(false);\n\n suspendedPane.setVisible(true);\n\n break;\n\n\n }\n\n }", "public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}", "public int getBoardState(boolean whiteTeamMoving) {\n\t\tint result = 0;\n\t\tboolean moves = doMovesExist(whiteTeamMoving);\n\n\t\tresult |= moves ? 0 : 1;\n\t\tresult |= isWhiteCheck() ? 1<<1 : 0;\n\t\tresult |= isBlackCheck() ? 1<<2 : 0;\n\t\tresult |= result == 1 ? 0 : 1<<3;\n\n\t\treturn result;\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (myBoard.myGame.status != GameStatus.inProgress) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//if starting square is selected\r\n\t\tif (myBoard.selectedSquare!=null) {\r\n\t\t\t//create list of valid moves\r\n\t\t\tArrayList<Move> validMovesList = myBoard.selectedSquare.mySB.validMoves;\r\n\t\t\t//remove highlight from board\r\n\t\t\tint size = validMovesList.size();\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tSquareButton sb = validMovesList.get(i).end.mySB;\r\n\t\t\t\tsb.setBackground(sb.defaultColor);\r\n\t\t\t}\r\n\t\t\t//making sure we do not move to the same square\r\n\t\t\tif (myBoard.selectedSquare!=mySquare) {\r\n\t\t\t\tMove attemptedMove = new Move(myBoard.selectedSquare, mySquare, myBoard.selectedSquare.myPiece.colour);\r\n\t\t\t\tSystem.out.println(\"Attempted move is: \" + attemptedMove);\r\n\t\t\t\t\r\n\t\t\t\t//check if attempted move is valid\r\n\t\t\t\tif(validMovesList.contains(attemptedMove)) {\r\n\t\t\t\t\tMove moveFound = validMovesList.get(validMovesList.indexOf(attemptedMove));\r\n\t\t\t\t\tSystem.out.println(\"Move Found Type: \" + moveFound.moveType);\r\n\t\t\t\t\tmyBoard.performMove(moveFound);\r\n\t\t\t\t\t//check if the move is legal - if so, undo the move\r\n\t\t\t\t\tif (myBoard.isKingThreatened()) {\r\n\t\t\t\t\t\tmyBoard.undoMove(myBoard.moveStack.pop());\r\n\t\t\t\t\t} else { //the player has made a legal move\r\n\t\t\t\t\t\tmyBoard.swapActiveColour();\r\n\t\t\t\t\t\t//determine if we are playing against AI\r\n\t\t\t\t\t\tif (Game.myAILevel != AILevel.off) {\r\n\t\t\t\t\t\t\tmyBoard.myGame.myAI.makeMove();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\t//debugging\r\n//\t\t\t\t\tSystem.out.println(\"Enemy's List - My active colour was: \" + myBoard.activeColour);\r\n//\t\t\t\t\tArrayList<Square> result = enemyValidSquares();\r\n//\t\t\t\t\tfor (Square s: result) {\r\n//\t\t\t\t\t\ts.mySB.setBackground(Color.ORANGE);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\tmyBoard.whiteKingSquare.mySB.setBackground(Color.PINK);\r\n//\t\t\t\t\tmyBoard.blackKingSquare.mySB.setBackground(Color.magenta);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n//\t\t\t\t\tshowLists();\r\n\t\t\t\t\t//check if my opponent is checkmated by this move\r\n\t\t\t\t\t//if opponent is in check\r\n\t\t\t\t\tif (myBoard.isKingThreatened()) {\r\n\t\t\t\t\t\t//try every possible move\r\n\t\t\t\t\t\tif (myBoard.isCheckmate()) {\r\n\t\t\t\t\t\t\tColour winningColour = (myBoard.activeColour == Colour.WHITE) ? Colour.BLACK : Colour.WHITE;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), myBoard.activeColour + \" is checkmated! \\n\" + winningColour + \" wins!\");\r\n\t\t\t\t\t\t\tmyBoard.myGame.status = (winningColour == Colour.WHITE) ? GameStatus.winWhite : GameStatus.winBlack;\r\n\t\t\t\t\t\t\t//turn off all buttons in the east panel\r\n\t\t\t\t\t\t\tfor (Component comp : myBoard.myGame.myBoardHolder.myEastPanel.getComponents()) {\r\n\t\t\t\t\t\t\t\tcomp.setEnabled(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tSystem.out.println(\"Checkmate!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n//\t\t\t\t\t//end of debug\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//unselect the square\r\n\t\t\t\t\tmyBoard.selectedSquare = null;\r\n\t\t\t\t\tSystem.out.println(\"Invalid Move\");\r\n\t\t\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\t\t\tSystem.out.println(validMovesList.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(myBoard);\r\n\t\t\t}\r\n\t\t\tmyBoard.selectedSquare = null;\r\n\t\t\tif (myBoard.myGame.status == GameStatus.inProgress) myBoard.myGame.myBoardHolder.myEastPanel.getComponent(0).setEnabled(true);\r\n\t\t\t\r\n\t\t}\r\n\t\t//if starting square is not selected\r\n\t\telse {\r\n\t\t\t//debugging\r\n//\t\t\tshowLists();\r\n\t\t\t//end of debug\r\n\t\t\tif ((mySquare.myPiece!=null) && (mySquare.myPiece.colour == myBoard.activeColour)) {\r\n\t\t\t\tmyBoard.selectedSquare = mySquare;\r\n\t\t\t\tSystem.out.println(\"Selected starting square: \" + myBoard.selectedSquare.row + \", \" + myBoard.selectedSquare.col);\r\n\t\t\t\t//generate valid moves\r\n\t\t\t\tvalidMoves = getValidMoves();\r\n\t\t\t\t\r\n\t\t\t\t//highlight valid squares if starting square has not been selected yet\r\n\t\t\t\tint size = validMoves.size();\r\n\t\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\t\tSquareButton sb = validMoves.get(i).end.mySB;\r\n\t\t\t\t\tsb.setBackground(sb.getBackground().brighter());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmyBoard.myGame.myBoardHolder.myEastPanel.getComponent(0).setEnabled(false);\r\n\t\t}\r\n\t}", "public PentagoMove quickwin(PentagoBoardState boardState) {\n PentagoBoardState pbs = (PentagoBoardState) boardState.clone();\n ArrayList<PentagoMove> legalmoves = pbs.getAllLegalMoves();\n //ArrayList<Integer> scores = new ArrayList<Integer>();\n for (int i = 0; i < legalmoves.size(); i++) { //loop through all my moves and see if they are a winner\n\n PentagoBoardState newboard = (PentagoBoardState) pbs.clone();\n PentagoMove next = legalmoves.get(i);\n newboard.processMove(next);\n int score = evaluate(newboard);\n if (score > 1200000) { //check if winner if score above 1 200 000\n //System.out.println(\"FOUND A WINNER\" + score);\n return next;\n }\n }\n return null; // if no winner return null\n }", "public ArrayList<State> childStates(){\n boolean hasExpanded = false;\n this.childStates = new ArrayList<>();\n Successor successor = new Successor(); //for calling the successors functions\n //cases for this\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(!hasExpanded){\n if(currentBoardState[i][j] == 0){\n\n if( i - 1 >= 0){\n //call moveDown()\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveDown()\");\n State newState = successor.moveDown(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if( i + 1 <= boardRows-1){\n //call moveUp()\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveUp()\");\n //this.printBoard();\n State newState = successor.moveUp(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if(j - 1 >= 0){\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveRight()\");\n //this.printBoard();\n State newState = successor.moveRIght(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if( j + 1 <= boardColumns - 1){\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveLeft()\");\n //this.printBoard();\n State newState = successor.moveLeft(i,j,this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n hasExpanded = true;\n }\n }\n }\n }\n return childStates;\n }", "public void updateBoard() {\n notifyBoardUpdate(board);\n }", "private State getState() throws InterruptedException{\n if (shouldBank){\n if (canWork()) {\n if (inventory.isFull()){\n if (bankArea.contains(myPlayer())){\n return State.BANK;\n }else{\n return State.TRAVEL_TO;\n }\n }else{\n if (chopArea.contains(myPlayer())){\n return State.CHOP;\n }else{\n return State.TRAVEL_BACK;\n }\n }\n }\n\n }else{\n if (canWork()) {\n if (inventory.isFull()){\n return State.DROP;\n }else{\n return State.CHOP;\n }\n }\n\n }\n\n return State.WAIT;\n\n }", "public void testScoreboardForBeingJudgedState () throws Exception {\n // RunID TeamID Prob Time Result\n \n String [] runsData = {\n \"1,1,A,1,No\", // 20 (a No before first yes)\n \"2,1,A,3,Yes\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"3,1,A,5,No\", // zero -- after Yes\n \"4,1,A,7,Yes\", // zero -- after Yes\n \"5,1,A,9,No\", // zero -- after Yes\n \"6,1,B,11,No\", // zero -- not solved\n \"7,1,B,13,No\", // zero -- not solved\n \"8,2,A,30,Yes\", // 30 (minute points; no Run points on first Yes)\n \"9,2,B,35,No\", // zero -- not solved\n \"10,2,B,40,No\", // zero -- not solved\n \"11,2,B,45,No\", // zero -- not solved\n \"12,2,B,50,No\", // zero -- not solved\n \"13,2,B,55,No\", // zero -- not solved\n };\n \n // Rank TeamId Solved Penalty\n \n String [] rankData = {\n \"1,team1,1,23\",\n \"2,team2,1,30\"\n };\n \n// startExplorer(getOutputDataDirectory());\n \n InternalContest contest = new InternalContest();\n \n int numTeams = 2;\n\n initData(contest, numTeams, 5);\n \n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Run [] runs = contest.getRuns();\n \n for (Run run : runs){\n run.setStatus(RunStates.BEING_JUDGED);\n }\n\n checkOutputXML(contest);\n\n confirmRanks(contest, rankData);\n }", "public Board getBoard() {\n return board;\n }", "TetrisBoard() {\n\t\t// create new board \n\t\tblockMatrix = new boolean[NUM_ROWS][NUM_COLS];\n\t\t\n\t\t// fill in values for board\n\t\tinitBoard();\n\t\t\n\t\t// add new piece to fall\n\t\taddNewPiece();\n\t\t\n\t\t// start scores at 0\n\t\tnumLines = 0;\n\t\tnumTetrises = 0;\n\t}", "public void getState();", "public interface Board {\n\n void setupBoard(int gridSize); //create the initial board\n\n String displayShotsTaken(); //return the board to print to screen showing shots taken, not boat location\n\n String displayMyBoard(); //return players board with ships;\n\n boolean takeShot(Point shot); //take a shot against this board\n\n boolean isGameOver(); //check if game is over.\n}", "private void changeState() {\n if (jobs.contains(this.currentFloor)){\n throw new AssertionError(\"Changing state of elevator no \" + ElevatorID + \" on destination floor\");\n }\n\n // empty job set -> going to IDLE state\n if (jobs.size() == 0) {\n this.currentState = IDLE;\n return;\n }\n\n Integer closestFloorDownwards = jobs.floor(this.currentFloor);\n Integer closestFloorUpwards = jobs.ceiling(this.currentFloor);\n\n switch (this.currentState) {\n // if elevator is in idle state then we need to go to the closest job possible\n case IDLE -> {\n Integer closestFloor =\n findClosestFloor(this.currentFloor, closestFloorUpwards, closestFloorDownwards);\n\n if (closestFloor < this.currentFloor) {\n this.currentState = DOWN;\n } else {\n this.currentState = UP;\n }\n }\n case DOWN -> {\n if (closestFloorDownwards != null) { // if there exists a predecessor in `jobs`\n this.currentState = DOWN; // let's continue going down\n } else {\n this.currentState = UP; // otherwise we need to go up\n }\n }\n case UP -> {\n if (closestFloorUpwards != null) { // if there exists a successor in `jobs`\n this.currentState = UP; // let's continue going up\n } else {\n this.currentState = DOWN; // otherwise we need to go down\n }\n }\n }\n }", "@Test\n public void stateExample2() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n assertEquals(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\", exampleBoard.getGameState());\n }", "public Status getStatus() {\n return board.getStatus();\n }", "private void HandleOnMoveStart(Board board, Piece turn){}", "@Test\n public void stateExample4() {\n MarbleSolitaireModel exampleBoard =\n new MarbleSolitaireModelImpl(3, 2, 4);\n assertEquals(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O _ O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\", exampleBoard.getGameState());\n }", "public void testRevealBoard()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"OOOO\",\r\n \"OOO+\");\r\n board.revealBoard();\r\n assertBoard(board, \" \",\r\n \" \",\r\n \" 11\",\r\n \" 1*\");\r\n }", "public Game() {\n board = new TileState[BOARD_SIZE][BOARD_SIZE];\n for(int i=0; i<BOARD_SIZE; i++)\n for(int j=0; j<BOARD_SIZE; j++)\n board[i][j] = TileState.BLANK;\n movesPlayed = 0;\n playerOneTurn = true;\n gameOver = false;\n }", "public GameBoard getBoard() {\n return board;\n }", "public abstract void showWin(GameStateInterface state);", "@Test\n public void testBasicScorer() {\n assertEquals(0, stateScorer.scoreState(builder().build(), TwoPlayerKey.PLAYER_1));\n\n //The other player has won if they occupy every node on the board:\n assertEquals(-1, stateScorer.scoreState(builder().allOccupiedBy(TwoPlayerKey.PLAYER_2).build(), TwoPlayerKey.PLAYER_1));\n\n //I have won if I occupy every node on the board:\n assertEquals(1, stateScorer.scoreState(builder().allOccupiedBy(TwoPlayerKey.PLAYER_1).build(), TwoPlayerKey.PLAYER_1));\n }" ]
[ "0.6908016", "0.6555141", "0.6412342", "0.63302475", "0.6283195", "0.62314487", "0.6221791", "0.6219941", "0.6121584", "0.611812", "0.6095241", "0.6067758", "0.60547197", "0.60476744", "0.6025349", "0.60230505", "0.6010211", "0.6006036", "0.60038257", "0.59888065", "0.5975646", "0.59607446", "0.5959056", "0.5917514", "0.5896837", "0.5896124", "0.5894359", "0.58850676", "0.58835465", "0.58552486", "0.5844596", "0.58416444", "0.5831234", "0.58062387", "0.58030355", "0.5801556", "0.5780413", "0.5770888", "0.5765856", "0.57614803", "0.57213145", "0.57128525", "0.57114905", "0.5691519", "0.56910574", "0.5678985", "0.56377417", "0.56364954", "0.56319", "0.5621603", "0.56116563", "0.561136", "0.5607604", "0.56043917", "0.5596052", "0.5595923", "0.55944395", "0.5590959", "0.55898273", "0.5582882", "0.55709183", "0.5566969", "0.5556191", "0.5549265", "0.5549069", "0.5540166", "0.5540166", "0.5535536", "0.5528015", "0.5528015", "0.5527183", "0.5526654", "0.5525822", "0.55236846", "0.5522548", "0.55184346", "0.5516548", "0.55164504", "0.5514744", "0.55123985", "0.5511936", "0.5511781", "0.55115706", "0.5505937", "0.5503096", "0.5495177", "0.5493372", "0.5490351", "0.548783", "0.548692", "0.54840326", "0.5483206", "0.5481604", "0.54796094", "0.5478739", "0.5477423", "0.5474664", "0.5473515", "0.5465707", "0.5463437", "0.54616874" ]
0.0
-1
returns the filename extension 'json'.
public static String getFilenameExtension() {return "json";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String fileExtension() {\n\t\treturn \".json\";\n\t}", "public static String getFileType() {return \"json\";}", "String getFileExtension();", "public String getFileExtension();", "public String getFileExtension() {\n return toString().toLowerCase();\n }", "public String getExtension() {\r\n\t\t\tfinal String filename = path.getName();\r\n\t\t\tfinal int dotIndex = filename.lastIndexOf('.');\r\n\t\t\tif (dotIndex >= 0) {\r\n\t\t\t\tif (dotIndex == filename.length() - 1) {\r\n\t\t\t\t\treturn \"\"; // dot is the last char in filename\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn filename.substring(dotIndex + 1);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn \"\"; // no dot in filename\r\n\t\t\t}\r\n\t\t}", "public String getFileExtension() {\r\n return Generator.ANIMALSCRIPT_FORMAT_EXTENSION;\r\n }", "String getExtension();", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "public String extension() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n return fullPath.substring(dot + 1);\n }", "String getOutputExtension();", "String getFileExtensionByFileString(String name);", "public static String getFileExtension(URL url) {\n\t\tString fileName = url.getFile();\n\t\tint lastIndex = fileName.lastIndexOf('.');\n\t\treturn lastIndex > 0 ? fileName.substring(lastIndex + 1) : \"\";\n\t}", "public abstract String getFileExtension();", "public String fileExtension() {\r\n return getContent().fileExtension();\r\n }", "public static String getFileExtension() {\n return fileExtension;\n }", "private String getExtension(java.io.File file){\n String name = file.getName();\n int idx = name.lastIndexOf(\".\");\n if (idx > -1) return name.substring(idx+1);\n else return \"\";\n }", "private String getFileExtension(String fileName) {\n return fileName.substring(fileName.lastIndexOf('.') + 1);\n }", "@Override\r\n public String getExtension() {\r\n if (extension == null) {\r\n getBaseName();\r\n final int pos = baseName.lastIndexOf('.');\r\n // if ((pos == -1) || (pos == baseName.length() - 1))\r\n // imario@ops.co.at: Review of patch from adagoubard@chello.nl\r\n // do not treat file names like\r\n // .bashrc c:\\windows\\.java c:\\windows\\.javaws c:\\windows\\.jedit c:\\windows\\.appletviewer\r\n // as extension\r\n if (pos < 1 || pos == baseName.length() - 1) {\r\n // No extension\r\n extension = \"\";\r\n } else {\r\n extension = baseName.substring(pos + 1).intern();\r\n }\r\n }\r\n return extension;\r\n }", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "private String getFileExtension(File f) {\n String fileName = f.getName();\n return getFileExtension(fileName);\n }", "protected abstract String getFileExtension();", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "java.lang.String getFilename();", "java.lang.String getFilename();", "public static String getExtension(final String file) throws IOException {\n return FilenameUtils.getExtension(file);\n }", "public static String getFileExtension(String f) {\n\t\tif (f == null) return \"\";\n\t\tint lastIndex = f.lastIndexOf('.');\n\t\treturn lastIndex > 0 ? f.substring(lastIndex + 1) : \"\";\n\t}", "public static String getFileExtension(File f) {\n\t\tString fileName = f.getName();\n\t\tint lastIndex = fileName.lastIndexOf('.');\n\t\treturn lastIndex > 0 ? fileName.substring(lastIndex + 1) : \"\";\n\t}", "public String getWriteFileExtension(int formatIndex);", "private String getJsonDocumentName(final String path) {\n final int dotPos = path.indexOf('.');\n final String jsonName = path.substring(0, dotPos);\n return jsonName;\n }", "public String getFileExtension(File file) {\n String name = file.getName();\n try {\n return name.substring(name.lastIndexOf(\".\") + 1);\n } catch (Exception e) {\n return \"\";\n }\n }", "private String extensions() {\n return Arrays.stream(f.getName().split(\"\\\\.\")).skip(1).collect(Collectors.joining(\".\"));\n }", "public static String getExtension(final File file) throws IOException {\n return FilenameUtils.getExtension(file.getName());\n }", "public static String getFileExtension(File f) {\r\n\tfinal int idx = f.getName().indexOf(\".\");\r\n\tif (idx == -1)\r\n\t return \"\";\r\n\telse\r\n\t return f.getName().substring(idx + 1);\r\n }", "public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }", "private String getFileExtension(String mimeType) {\n mimeType = mimeType.toLowerCase();\n if (mimeType.equals(\"application/msword\")) {\n return \".doc\";\n }\n if (mimeType.equals(\"application/vnd.ms-excel\")) {\n return \".xls\";\n }\n if (mimeType.equals(\"application/pdf\")) {\n return \".pdf\";\n }\n if (mimeType.equals(\"text/plain\")) {\n return \".txt\";\n }\n\n return \"\";\n }", "@JsonGetter(\"fileName\")\r\n public String getFileName ( ) { \r\n return this.fileName;\r\n }", "public String getExt() {\n\t\treturn IpmemsFile.getFileExtension(file);\n\t}", "public static String getExt(File song)\n\t{\n\t\treturn song.getName().substring(song.getName().lastIndexOf('.') + 1);\n\t}", "String getFilename();", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "@CheckForNull\n String getPreferredExtension();", "private String getExtension(File f) {\n\t\tString e = null;\n\t\tString s = f.getName();\n\t\tint i = s.lastIndexOf('.');\n\n\t\tif (i > 0 && i < s.length() - 1) {\n\t\t\te = s.substring(i + 1).toLowerCase();\n\t\t}\n\t\treturn e;\n\t}", "final public String getExtension()\n\t{\n\t\treturn this.getLocation().getExtension(); \n\t}", "public String getFileExt(File fileName) {\n return fileName.getName()\n .substring(fileName.getName().lastIndexOf('.'));\n }", "public String getFileExtension() {\r\n\t\treturn this.fileExtension;\r\n\t}", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public static String getExtension(File f) {\n String ext = null;\n String s = f.getName();\n int i = s.lastIndexOf('.');\n\n if (i > 0 && i < s.length() - 1) {\n ext = s.substring(i + 1).toLowerCase();\n }\n\n return ext;\n }", "public String getOutputExtension(String inputExtension);", "public String getExtension(File f) {\n\t\t\tString ext = null;\n\t\t\tString s = f.getName();\n\t\t\tint i = s.lastIndexOf('.');\n\n\t\t\tif (i > 0 && i < s.length() - 1)\n\t\t\t\text = s.substring(i + 1).toLowerCase();\n\t\t\treturn ext;\n\t\t}", "public static String getExtension(File file) {\n\t\tString ext = null;\n\t\tString fileName = file.getName();\n\t\tint i = fileName.lastIndexOf('.');\n\n\t\tif (i > 0 && i < fileName.length() - 1) {\n\t\t\text = fileName.substring(i+1).toLowerCase();\n\t\t}\n\t\treturn ext;\n\t}", "public static String getExtension(File f) {\n String ext = null;\n String s = f.getName();\n int i = s.lastIndexOf(\".\");\n ext = s.substring(i+1).toLowerCase();\n return ext;\n }", "protected String getExtension() {\n\t\treturn \"\";\n\t}", "public final String getExtension(File f) {\n\t String ext = null;\n\t String s = f.getName();\n\t int i = s.lastIndexOf('.');\n\n\t if (i > 0 && i < s.length() - 1) {\n\t ext = s.substring(i+1).toLowerCase();\n\t }\n\t return ext;\n\t }", "public String getExtension() {\n return extension;\n }", "public String getExtension() {\n return extension;\n }", "public String getReadFileExtension(int formatIndex);", "public static String getFileExtension(String filename) {\n\t\t\n\t\tint periodIndex = filename.lastIndexOf(\".\");\n\t\t\n\t\tif(periodIndex == -1) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(periodIndex == filename.length() - 1) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn filename.substring(periodIndex + 1, filename.length());\n\t}", "public final String getExtension(File f) {\n String ext = null;\n String s = f.getName();\n int i = s.lastIndexOf('.');\n\n if (i > 0 && i < s.length() - 1) {\n ext = s.substring(i+1).toLowerCase();\n }\n return ext;\n }", "public String getExtension(String url) {\n\t\tint dotIndex = url.lastIndexOf('.');\n\t\tString extension = null;\n\t\tif (dotIndex > 0) {\n\t\t\textension = url.substring(dotIndex + 1);\n\t\t}\n\t\treturn extension;\n\t}", "public static String getFileExtension(String fileName) {\n return fileName.trim().substring(fileName.indexOf('.'));\n }", "public static String getExtension(File file) {\r\n String ext = null;\r\n String s = file.getName();\r\n int i = s.lastIndexOf('.');\r\n if(i > 0 && i < s.length() - 1) {\r\n ext = s.substring(i + 1).toLowerCase();\r\n }\r\n return ext;\r\n }", "public abstract String getFileFormatName();", "public static String getFileExtension(File file) {\r\n String fileName = file.getName();\r\n if(fileName.lastIndexOf(\".\") != -1 && fileName.lastIndexOf(\".\") != 0)\r\n return fileName.substring(fileName.lastIndexOf(\".\")+1).toLowerCase();\r\n else return \"\";\r\n }", "private static String getExtensionOrFileName(String filename, boolean extension) {\n\n\t\tString fileWithExt = new File(filename).getName();\n\t\tStringTokenizer s = new StringTokenizer(fileWithExt, \".\");\n\t\tif (extension) {\n\t\t\ts.nextToken();\n\t\t\treturn s.nextToken();\n\t\t} else\n\t\t\treturn s.nextToken();\n\t}", "private String getExperimentFileName() {\n return \"experiment.json\";\n\n }", "public static String defaultFileExtension() {\n return \"dot\";\n }", "String getContentType(String fileExtension);", "public static String extractExtension(String filename)\n\t{\n\t\treturn ImageWriterFilter.extractExtension(filename);\n\t}", "public static String getFileExtention(String file_path)\n {\n String file_name = getFileName(file_path);\n int index = file_name.lastIndexOf(46);\n\n if (index >= 0)\n return file_name.substring(index + 1);\n\n return \"\";\n }", "private String getExtension(File aFile) {\n String ext = null;\n String s = aFile.getName();\n int i = s.lastIndexOf('.');\n\n if (i > 0 && i < s.length() - 1) {\n ext = s.substring(i + 1).toLowerCase();\n }\n\n return ext;\n }", "public String getExtension() {\n return extension;\n }", "public String getExtension() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.get(this.lenght - 1).contains(\".\"))\n\t\t{\n\t\t\tString temp = this.get(this.lenght - 1);\n\t\t\t\n\t\t\tString[] parts = temp.split(\"\\\\.\");\n\t\t\t\n\t\t\tresult = parts[parts.length - 1];\n\t\t}\n\t\telse\n\t\t\tresult = \"\";\n\t\t\n\n\t\treturn result;\n\t}", "public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }", "public static String fileNameAndExt(String fullPath){\n return filename(fullPath) + extension(fullPath);\n }", "public static String getExtn(String fileName)\r\n\t{\r\n\t\tString res=\"\";\r\n\t\tfor(int i=fileName.length()-1;i>=0;i--)\r\n\t\t{\r\n\t\t\tif(fileName.charAt(i)!='.')\r\n\t\t\t\tres=fileName.charAt(i)+res;\r\n\t\t\telse \r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public String getFileExtension(File objFile) {\n\n String sFileName = null;\n String sExtension = null;\n\n try {\n\n if (!objFile.exists()) {\n throw new Exception(\"File does not exists\");\n }\n\n sFileName = objFile.getName();\n int i = sFileName.lastIndexOf('.');\n if (i > 0) {\n sExtension = sFileName.substring(i + 1).trim();\n }\n\n } catch (Exception e) {\n println(\"Methods.getFileExtension : \" + e.toString());\n sExtension = \"\";\n } finally {\n return sExtension;\n }\n }", "public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}", "public String getFilename();", "java.lang.String getExtensionText();", "public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }", "public String getDataFileExtension() {\r\n return dataFileExtension;\r\n }", "default String getFileExtension() {\n return \"bin\";\n }", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "private String getFileName(ExtensionId id, String fileExtension)\n {\n String fileName = id.getId() + \"-\" + id.getVersion() + \".\" + fileExtension;\n try {\n return URLEncoder.encode(fileName, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // Should never happen\n\n return fileName;\n }\n }", "@Pure\n\tpublic String getScriptFileExtension() {\n\t\treturn this.fileExtension;\n\t}", "private static String typeName(File file) {\r\n String name = file.getName();\r\n int split = name.lastIndexOf('.');\r\n\r\n return (split == -1) ? name : name.substring(0, split);\r\n }" ]
[ "0.8510004", "0.7921367", "0.72953254", "0.7142827", "0.70748144", "0.6977145", "0.68681216", "0.6819118", "0.68120915", "0.67975676", "0.6720026", "0.6642248", "0.6583974", "0.6574116", "0.6572516", "0.6571865", "0.65672255", "0.6564076", "0.65618974", "0.6527427", "0.65115416", "0.65023047", "0.64614695", "0.64381", "0.64381", "0.6427398", "0.6412714", "0.63853", "0.6382928", "0.6334336", "0.6303136", "0.62970746", "0.629393", "0.6284971", "0.62721467", "0.6272113", "0.6268753", "0.6256735", "0.6199024", "0.6193061", "0.617921", "0.6149467", "0.6148144", "0.6144569", "0.61402744", "0.6137289", "0.613553", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.6134327", "0.61293274", "0.61221415", "0.6108289", "0.6107402", "0.608258", "0.6054172", "0.60524374", "0.60523796", "0.60523796", "0.6052279", "0.60470784", "0.6043899", "0.60425794", "0.6037979", "0.60357714", "0.60041404", "0.5991065", "0.5980096", "0.59713817", "0.5967381", "0.59479624", "0.5943694", "0.593666", "0.59354985", "0.5935393", "0.593472", "0.5934221", "0.59231144", "0.5916864", "0.5914489", "0.59081596", "0.590729", "0.5906826", "0.5905291", "0.58933276", "0.5872227", "0.5870511", "0.5870511", "0.5870511", "0.5870511", "0.5870511", "0.58671916", "0.5863131", "0.5857315" ]
0.9139727
0
returns the file type 'json'.
public static String getFileType() {return "json";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getFilenameExtension() {return \"json\";}", "default String fileExtension() {\n\t\treturn \".json\";\n\t}", "public String getFileType(){\n\t\treturn type;\n\t}", "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFiletype() {\n return filetype;\n }", "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFileType() {\n return fileType;\n }", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }", "public String getFileType()\n {\n if (m_fileOptions.m_type == null ||\n m_fileOptions.m_type.length() <= 0)\n {\n return getTypeFromExtension();\n }\n\n return m_fileOptions.m_type;\n }", "public String getType()\n {\n return VFS.FILE_TYPE;\n }", "String getFileMimeType();", "public FileType getFileType() {\n return fileType;\n }", "public Integer getFileType() {\n return fileType;\n }", "public TFileType getFileType() {\n\n\t\treturn type;\n\t}", "@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }", "public static String getFileType(){\n\t\t//Get the selected file type\n\t\tString type = (String) fileType.getSelectedItem();\n\t\t//Re-enable the combobox, since download has already started\n\t\tfileType.setEnabled(true);\n\t\t//Reset the default file type\n\t\tfileType.setSelectedIndex(0);\n\t\treturn type;\n\t}", "MimeType mediaType();", "String getMimeType();", "String getContentType(String fileExtension);", "public interface FileType {\n\tString name();\n}", "String[] getFileTypes();", "protected FileType doGetType()\n {\n return m_type;\n }", "public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }", "public default String getFormat() {\n return Constants.FORMAT_JSON;\n }", "public String getContentType() {\r\n return mFile.getContentType();\r\n }", "java.lang.String getMimeType();", "java.lang.String getMimeType();", "@Override\n public String toString() {return \"Json-File Reader\";}", "public String getMime_type()\r\n {\r\n return getSemanticObject().getProperty(data_mime_type);\r\n }", "public String getMimeType();", "public abstract String getFileFormatName();", "FileFormat getFormat();", "public static int fileType(File file) {\n for (String type : imageType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_IMAGE_CODE;\n }\n }\n\n for (String type : videoType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_VIDEO_CODE;\n }\n }\n\n for (String type : audioType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.AUDIO_CODE;\n }\n }\n return Template.Code.FILE_MANAGER_CODE;\n\n }", "@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}", "ResourceFilesType createResourceFilesType();", "public String getMimeType ()\n {\n final String METHOD_NAME = \"getMimeType\";\n this.logDebug(METHOD_NAME + \"1/2: Started\");\n\n String mimeType = null;\n try\n {\n\tint contentType = this.document.getContentType();\n\tif ( contentType >= 0 ) mimeType = MediaType.nameFor[contentType];\n }\n catch (Exception exception)\n {\n\tthis.logWarn(METHOD_NAME + \"Failed to retrieve mime type\", exception);\n }\n\n this.logDebug(METHOD_NAME + \" 2/2: Done. mimeType = \" + mimeType);\n return mimeType;\n }", "@Override\n protected FileType doGetType() throws Exception {\n if (isRoot()) {\n return FileType.FOLDER;\n }\n\n final MantaObject response = this.lastResponse;\n if (response == null) {\n return FileType.IMAGINARY;\n } else if (response.isDirectory()) {\n return FileType.FOLDER;\n } else {\n return FileType.FILE;\n }\n }", "private static TYPE getFileType(final String path, final ServiceContext context) {\n return PROJECT_FILE;\n }", "public String getReadMimeType(int formatIndex);", "public String getFileExtension();", "@Override\n public List<String> getFileTypes() {\n return gemFileFileTypesDb.getKeys();\n }", "@Override\n\tpublic String getContentType(File file) {\n\t\treturn null;\n\t}", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "public String getFilecontentContentType() {\n return filecontentContentType;\n }", "public void testGetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getType();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}", "public String getFileExtension() {\r\n return Generator.ANIMALSCRIPT_FORMAT_EXTENSION;\r\n }", "String getFileExtension();", "public static FileTypes getFileType(String fileName) {\n\t\tFile file = new File(fileName);\n\t\tif (file.isDirectory()) {\n\t\t\treturn FileTypes.DIRECTORY;\n\t\t} else {\n\t\t\tif (isJavaSourceFile(fileName)) {\n\t\t\t\treturn FileTypes.JAVA_FILE;\n\t\t\t} else {\n\t\t\t\treturn FileTypes.NON_JAVA_FILE;\n\t\t\t}\n\t\t}\n\t}", "private int getFileType(SourceFile sourceFile)\n\t{\n\t\tString name = sourceFile.getName();\n\t\tString pkg = sourceFile.getPackageName();\n\n\t\tif (name.startsWith(\"<\") && name.endsWith(\">\") || name.equals(\"GeneratedLocale\")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\treturn SYNTHETIC_FILE;\n\n for (final String frameworkPkg : FRAMEWORK_FILE_PACKAGES )\n {\n // look for packages starting with pkgName\n if (pkg.startsWith(frameworkPkg + '\\\\') || //$NON-NLS-1$\n pkg.startsWith(frameworkPkg + '/') || //$NON-NLS-1$\n pkg.equals(frameworkPkg)) //$NON-NLS-1$\n {\n return FRAMEWORK_FILE;\n }\n }\n\n if (name.startsWith(\"Actions for\")) //$NON-NLS-1$\n return ACTIONS_FILE;\n\n return AUTHORED_FILE;\n}", "public String getFileExtension() {\n return toString().toLowerCase();\n }", "public String getWriteMimeType(int formatIndex);", "public String getMIMEType(String format)\n\t{\n\t\treturn engine.getMIMEType(format);\n\t}", "public String getJsonTypeAttributeName() {\r\n return _jsonTypeAttributeName;\r\n }", "@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();", "@NotNull\n String getMimeType();", "public String getFormat()\r\n\t{\r\n\t\treturn (String) queryParams.get(FMT_JSON);\r\n\t}", "public String getFileSystemType() {\n return this.fileSystemType;\n }", "private String getMimeType(File file) {\n String fileName = file.getName();\n\n if (fileName.endsWith(\"css\")) {\n return \"text/css; charset=utf-8\";\n } else if (fileName.endsWith(\"html\")) {\n return \"text/html; charset=utf-8\";\n } else if (fileName.endsWith(\"jpg\") || fileName.endsWith(\"jpeg\")) {\n return \"image/jpeg\";\n } else if (fileName.endsWith(\"png\")) {\n return \"image/png\";\n } else if (fileName.endsWith(\"ico\")) {\n return \"image/x-icon\";\n }\n\n return \"text/plain; charset=utf-8\";\n }", "public String fileExtension() {\r\n return getContent().fileExtension();\r\n }", "public ResourceFileFeatureType resourceFileFeatureType() {\n _initialize();\n return resourceFileFeatureType;\n }", "private String fileType(String username,String folderName,String fileName){\n //从数据库中获取用户ID\n int userId=userService.getUserIdByname(username);\n //根据用户ID和文件夹名获取文件夹ID\n int folderId=folderService.getFolderIdByName(folderName,userId);\n //根据文件夹id和文件夹名获取文件实体,再取出type\n String fileType= tableService.getTableByName(fileName,folderId).getType();\n return fileType;\n }", "private String getFileExtension(String mimeType) {\n mimeType = mimeType.toLowerCase();\n if (mimeType.equals(\"application/msword\")) {\n return \".doc\";\n }\n if (mimeType.equals(\"application/vnd.ms-excel\")) {\n return \".xls\";\n }\n if (mimeType.equals(\"application/pdf\")) {\n return \".pdf\";\n }\n if (mimeType.equals(\"text/plain\")) {\n return \".txt\";\n }\n\n return \"\";\n }", "public String getFileContentType() {\r\n return (String) getAttributeInternal(FILECONTENTTYPE);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "public TrimString getFileSystemType() {\n\t\treturn(_type);\n\t}", "public Format getBestFormat() {\n\t\tif (formats.contains(Format.JSON)) {\n\t\t\treturn Format.JSON;\n\t\t}\n\t\tif (formats.contains(Format.XML)) {\n\t\t\treturn Format.XML;\n\t\t}\n\t\treturn null;\n\t}", "public abstract String getFileExtension();", "private static String typeName(File file) {\r\n String name = file.getName();\r\n int split = name.lastIndexOf('.');\r\n\r\n return (split == -1) ? name : name.substring(0, split);\r\n }", "public static FileType valueOf(File file){\r\n\t\tString fileName = file.getName().toUpperCase();\r\n\t\treturn FileType.valueOf(fileName.substring(fileName.lastIndexOf(\".\")+1));\r\n\t}", "public static FileType getType(final File file) {\n if (FileUtils.isLink(file)) {\n return SYMLINK;\n } else if (file.isDirectory()) {\n return DIRECTORY;\n } else if (file.isFile()) {\n return FILE;\n }\n return FILE;\n }", "public String getMimeType() {\n return mimeType;\n }", "public String getMimeType() {\n return mimeType;\n }", "String getContentType();", "String getContentType();", "String getContentType();", "MediaType getMediaType();", "public int getEntityType(){\n\t\tIterator<ArrayList<String>> i = headerLines.iterator();\n\t\twhile(i.hasNext()){\n\t\t\tArrayList<String> headerLines = i.next();\n\t\t\tString headerName = headerLines.get(0);\n\t\t\tif (headerName.matches(\"Content-Type:\")){\n\t\t\t\tString headerData = headerLines.get(1);\n\t\t\t\tif(headerData.contains(\"text\")){\n\t\t\t\t\treturn TEXT;\n\t\t\t\t} else if (headerData.contains(\"pdf\")){\n\t\t\t\t\treturn PDF;\n\t\t\t\t} else if (headerData.contains(\"gif\")){\n\t\t\t\t\treturn GIF;\n\t\t\t\t} else if (headerData.contains(\"jpeg\")){\n\t\t\t\t\treturn JPEG;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.7908432", "0.7636022", "0.7050511", "0.70358914", "0.699189", "0.6969466", "0.6840601", "0.6821014", "0.6747994", "0.67426145", "0.6741394", "0.66222453", "0.65377057", "0.6520713", "0.64038837", "0.63896847", "0.6369542", "0.62732935", "0.62579376", "0.6220192", "0.6157133", "0.6138411", "0.6132239", "0.6114645", "0.6094203", "0.6090048", "0.6077303", "0.6077303", "0.60612494", "0.6056255", "0.60502326", "0.60490346", "0.6034414", "0.60024256", "0.59618", "0.59611106", "0.5957302", "0.5957225", "0.5927778", "0.5926633", "0.59023327", "0.5883587", "0.58795184", "0.5844841", "0.582217", "0.5814204", "0.5796149", "0.57948464", "0.578939", "0.5788008", "0.57872987", "0.57758385", "0.57744545", "0.5760644", "0.5752177", "0.57465345", "0.5721005", "0.57162213", "0.57061416", "0.5681203", "0.5675988", "0.5667457", "0.56575775", "0.5656493", "0.56449467", "0.5632478", "0.5624064", "0.5603573", "0.5599358", "0.55867344", "0.55823475", "0.5581318", "0.5581318", "0.55813086", "0.55813086", "0.55813086", "0.5580346", "0.5578642", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955", "0.5574955" ]
0.89634156
0
reads the entire stream and parses it into a JsonObject.
public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) { try{ javax.json.JsonReader rdr = Json.createReader(stream); return rdr.readObject();} catch(Exception ex) {errors.append(ex.toString());} return null;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject read(InputStream uploadedInputStream);", "public DtResponse readInfoGralJsonStream(InputStream in) throws IOException {\n InputStreamReader isReader = new InputStreamReader(in);\n //Creating a BufferedReader object\n BufferedReader breader = new BufferedReader(isReader);\n StringBuffer sb = new StringBuffer();\n String str;\n while((str = breader.readLine())!= null){\n sb.append(str);\n }\n Log.i(TAG, sb.toString());\n JsonReader reader = new JsonReader(new StringReader(sb.toString()));\n List<DtResponse> res = null;\n try {\n return readRESTMessage(reader);\n } finally {\n reader.close();\n }\n }", "public void deserialize(JsonObject src);", "public JSONDocument parse (InputStream is){\n JSONDocument temp = null;\n String data = \"\";\n if (is != null){\n try{\n int c;\n while((c = is.read()) != -1) data += (char)c;\n temp = this.parseString(this.cleanString(data));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }else throw new IllegalArgumentException(\"InputStream cannot be null\");\n return temp;\n }", "public void parseInputStream(InputStream is) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\tString str = null;\n\t\twhile((str = br.readLine()) != null) {\n\t\t\tsb.append(str).append(\"\\n\\r\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tJSONObject jObject = new JSONObject(sb.toString());\n\t\t\tfinal String access_token = jObject.getString(\"access_token\");\n\t\t\tfinal String token_type = jObject.getString(\"token_type\");\n\t\t\tfinal String expires_in = jObject.getString(\"expires_in\");\n\t\t\tfinal String refresh_token = jObject.getString(\"refresh_token\");\n\t\t\t\n\t\t\tmHandler.post(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tgetGmailAtomFeed(access_token,token_type);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private JSONObject getJsonObject(Resource resource) {\n JSONParser parser = new JSONParser();\n JSONObject obj = null;\n try {\n obj = (JSONObject) parser.parse(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return obj;\n }", "private Object readJSON() throws JSONException\n {\n switch(read(3))\n {\n case zipObject:\n return readObject();\n case zipArrayString:\n return readArray(true);\n case zipArrayValue:\n return readArray(false);\n case zipEmptyObject:\n return new JSONObject();\n case zipEmptyArray:\n return new JSONArray();\n case zipTrue:\n return Boolean.TRUE;\n case zipFalse:\n return Boolean.FALSE;\n default:\n return JSONObject.NULL;\n }\n }", "public static JSONObject readJsonObject(HttpServletRequest request) {\n StringBuffer sb = new StringBuffer();\n String line = null;\n try {\n\t //get the body information from request which is a kind JSON file.\n BufferedReader reader = request.getReader(); \n while ((line = reader.readLine()) != null) {\n \t sb.append(line);\n }\n reader.close();\n return new JSONObject(sb.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public static JsonObject parseFromFile(String file) {\n\t\tJsonObject res = null;\n\t\ttry {\n\t\t\tJsonStreamParser parser = new JsonStreamParser(new FileReader(file));\n\t\t\tif (parser.hasNext())\n\t\t\t\tres = parser.next().getAsJsonObject();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "@Test\n public void testReadFromInputStream() throws IOException {\n SimpleBasicMessage msg = new SimpleBasicMessage(\"test-msg\", Collections.singletonMap(\"one\", \"111\"));\n\n String json = msg.toJSON();\n String extra = \"This is some extra data\";\n String jsonPlusExtra = json + extra;\n\n ByteArrayInputStream in = new UncloseableByteArrayInputStream(jsonPlusExtra.getBytes());\n\n BasicMessageWithExtraData<SimpleBasicMessage> fromJson = AbstractMessage.fromJSON(in, SimpleBasicMessage.class);\n SimpleBasicMessage msg2 = fromJson.getBasicMessage();\n BinaryData leftoverFromJsonParser = fromJson.getBinaryData();\n\n Assert.assertEquals(msg.getMessage(), msg2.getMessage());\n Assert.assertEquals(msg.getDetails(), msg2.getDetails());\n\n // now make sure the stream still has our extra data that we can read now\n byte[] leftoverBytes = new byte[leftoverFromJsonParser.available()];\n leftoverFromJsonParser.read(leftoverBytes);\n\n String totalRemaining = new String(leftoverBytes, \"UTF-8\");\n Assert.assertEquals(extra.length(), totalRemaining.length());\n Assert.assertEquals(extra, totalRemaining);\n }", "public @NotNull T read(@NotNull final JsonObject object) throws JsonException;", "@Override\n public void parseJson(JsonObject jsonObject) throws JsonException {\n publicKeyInfo = getStringIfSet(jsonObject,\"publicKeyInfo\");\n nodeAddress = getStringIfSet(jsonObject,\"nodeAddress\");\n nodePort = getIntIfSet(jsonObject,\"nodePort\");\n mainNet = getBooleanIfSet(jsonObject,\"mainNet\");\n }", "private String getJson(InputStream inputStream){\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, \"UTF-8\");\n Scanner scanner = new Scanner(inputStreamReader);\n StringBuffer stringBuffer = new StringBuffer();\n while (scanner.hasNext()) {\n stringBuffer.append(scanner.nextLine());\n }\n System.out.println(\"STRING BUFFER >>>>>>>\" +stringBuffer);\n return stringBuffer.toString();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private JsonObject loadJSONFile(String jsonFilePath) throws IOException {\r\n\tInputStream is = new FileInputStream(jsonFilePath);\r\n\tJsonReader jsonReader = Json.createReader(is);\r\n\tJsonObject json = jsonReader.readObject();\r\n\tjsonReader.close();\r\n\tis.close();\r\n\treturn json;\r\n }", "abstract Object read(@NonNull JsonReader reader) throws IOException;", "public Object @NonNull [] parse(InputStream is) throws IOException {\n JsonNode jsonNode = mapper.readTree(new InputStreamReader(is));\n return jsonNodeToTuple(jsonNode);\n }", "public JSONObject readJsonFromUrl() throws IOException, JSONException {\n\t\tInputStream inputStream = new URL(url).openStream();\n\t\ttry {\n\t\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(inputStream, Charset.forName(\"UTF-8\")));\n\t\t\tString jsonText = readAllBytes(bufferedReader);\n\t\t\tJSONObject jsonObject = new JSONObject(jsonText);\n\t\t\treturn jsonObject;\n\t\t} finally {\n\t\t\tinputStream.close();\n\t\t}\n\n\t}", "public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException {\n return JSON.parseObject(inputMessage.getBody(), this.fastJsonConfig.getCharset(), (Type) clazz, this.fastJsonConfig.getFeatures());\n }", "public String readJson() {\n\t\t\tif (lastReadChar == ']') {\n\t\t\t\tSystem.out.println(\"Nunca deberia llegar a aca si usa hasNext()\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t// Si fue una coma, busco el siguiente '{'\n\t\t\twhile (read()!= '{');\n\t\t\t\n\t\t\tStringBuilder jsonText = new StringBuilder();\n\t\t\tjsonText.append((char) '{');\n\t\t\tlastReadChar = read();\n\t\t\t\n\t\t\twhile (lastReadChar != '}') { \n\t\t\t\tjsonText.append((char) lastReadChar);\n\t\t\t\tlastReadChar = read();\n\t\t\t} jsonText.append('}');\n\t\t\t\n\t\t\t// To satisfy Invariant: find the next ']' or ','\n\t\t\twhile (lastReadChar != ']' && lastReadChar != ',') lastReadChar = read(); \n\t\t\t\n\t\t\t//System.out.println(\"Analizando : \" + jsonText.toString());\n\t\t\treturn jsonText.toString();\n\t\t}", "private InputStream streamMergedJson(JsonObject dataJson,\n\t\t\t\t\t\t\t\t\t\t JsonObject metaJson, JsonSimple existing) throws IOException {\n\t\t// Overwrite and/or create only nodes we consider new data\n\t\texisting.getJsonObject().put(\"recordIDPrefix\", idPrefix);\n\t\tJsonObject existingData = existing.writeObject(\"data\");\n\t\texistingData.putAll(dataJson);\n\t\tJsonObject existingMeta = existing.writeObject(\"metadata\");\n\t\texistingMeta.putAll(metaJson);\n\n\t\t// Turn into a stream to return\n\t\tString jsonString = existing.toString(true);\n\t\treturn IOUtils.toInputStream(jsonString, \"UTF-8\");\n\t}", "JSONObject parseBuildResponse(ByteArrayList input) throws BuildRetrievalError {\n // If we don't have at least four bytes (the size of the header), input is malformed.\n if (input.size() < 4) {\n throw new BuildRetrievalError(String.format(\"Received malformed input with size %d\",\n input.size()));\n }\n\n // Use the header to determine which parser to use\n final byte[] headerBytes = new byte[]\n {input.get(0), input.get(1), input.get(2), input.get(3)};\n int header = TfWorkbufProtocol.fourBytesToInt(headerBytes);\n\n if (header == TfWorkbufProtocol.HEADER_JSON_OBJECT) {\n final String strInput =\n new String(input.getContents(), 4, input.getContents().length - 4);\n\n try {\n return new JSONObject(strInput);\n\n } catch (JSONException e) {\n throw new BuildRetrievalError(\"Failed to parse workbuf response\", e);\n }\n } else {\n throw new BuildRetrievalError(String.format(\"Didn't recognize header 0x%x (\\\"%s\\\")\",\n header, new String(headerBytes)));\n }\n }", "private void parseJSON(String response)\n {\n try\n {\n // Using orj.json, get the file string and convert it to an object\n JSONObject object = (JSONObject) new JSONTokener(response).nextValue();\n\n // The Winnipeg Transit JSON results usually have nested values\n // We can identify the request by the first key of the first level\n\n // The method names() will retrieve an JSONArray with the key names\n JSONArray objectNames = object.names();\n\n // Retrieve the first key of the first level\n String firstKey = objectNames.getString(0);\n\n if (firstKey.equals(\"status\"))\n {\n parseStatus(object.getJSONObject(firstKey));\n }\n else if (firstKey.equals(\"stop-schedule\"))\n {\n parseStopSchedule(object.getJSONObject(firstKey));\n }\n }\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic JSONObject readFrom(Class<JSONObject> arg0, Type arg1, Annotation[] arg2, MediaType arg3,\n\t\t\tMultivaluedMap<String, String> arg4, InputStream arg5) throws IOException, WebApplicationException {\n\t\ttry {\n\t\t\treturn new JSONObject(IOUtils.toString(arg5));\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void testParseJSONStream() throws Throwable {\n // Build the input string to mock the JSON output\n // from openweathermap.org.\n String data = buildJSONData();\n\n // Convert JSON string to an InputStream.\n InputStream inputStream = new ByteArrayInputStream(data.getBytes());\n\n // Test the WeatherDataJsonParser main entry point.\n WeatherDataJsonParser parser = new WeatherDataJsonParser();\n\n try {\n // Test the parser.\n List<WeatherData> weatherDataList = parser.parseJsonStream(inputStream);\n\n // Now verify the results from the parser.\n validateWeatherDataList(weatherDataList);\n } catch (Exception e) {\n fail(\"Unable to parse weather data: \" + e);\n }\n }", "public JSONObject reader_File(JSONObject obj)\n {\n CSVReader reader = null;\n try\n {\n\n String path = obj.get(\"path\").toString(); //retrieve path of file from json obj\n JSONObject json = (JSONObject)obj.get(\"query\"); //retrieve json object that has query from json obj\n\n reader = new CSVReader(new FileReader(path), ',');\n\n String [] nextLine;\n\n //Read one line at a time\n JSONObject json3 = new JSONObject();\n\n //need to use JSONArray\n JSONArray jArr = new JSONArray(); //create an object of JSONArray\n while ((nextLine = reader.readNext()) != null)\n {\n\n JSONObject json2 = search(json, nextLine); //return json object that contains all the value of each lines if query matches\n\n if(!json2.isEmpty()){ //check whether json2 is empty\n jArr.add(json2); //insert json2 in in jsonArray\n\n }\n\n }\n json3.put(\"response\", jArr); //insert jArr in json3\n return json3;\n\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "private String readJsonFile(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n byte bufferByte[] = new byte[1024];\n int length;\n try {\n while ((length = inputStream.read(bufferByte)) != -1) {\n outputStream.write(bufferByte, 0, length);\n }\n outputStream.close();\n inputStream.close();\n } catch (IOException e) {\n\n }\n return outputStream.toString();\n }", "protected JSONObject readResponse(HttpURLConnection conn) throws IOException, JSONException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n try {\n String jsonText = \"\";\n String line;\n while ((line = reader.readLine()) != null) {\n jsonText += line;\n }\n return new JSONObject(jsonText);\n } finally {\n reader.close();\n }\n }", "protected JSONObject getJSONObject(String url) throws IOException, JSONException {\n Log.d(this.TAG, \"Loading JSON Object: \" + url);\n return new JSONObject(this.fetchJSON(url));\n }", "private InputStream streamMergedJson(JsonObject dataJson,\r\n JsonObject metaJson, JsonSimple existing) throws IOException {\r\n // Overwrite and/or create only nodes we consider new data\r\n existing.getJsonObject().put(\"recordIDPrefix\", idPrefix);\r\n JsonObject existingData = existing.writeObject(\"data\");\r\n existingData.putAll(dataJson);\r\n JsonObject existingMeta = existing.writeObject(\"metadata\");\r\n existingMeta.putAll(metaJson);\r\n \r\n // Turn into a stream to return\r\n String jsonString = existing.toString(true);\r\n return IOUtils.toInputStream(jsonString, \"UTF-8\");\r\n }", "public JsonObject()\n\t{\n\t\tsuper(ParserUtil.OBJECT_OPEN, ParserUtil.OBJECT_CLOSE);\n\t\tsetup();\n\t}", "private static JSONObject fileReader(String path) throws Exception{\r\n return (JSONObject) jsonParser.parse(new String(Files.readAllBytes(Paths.get(path))));\r\n }", "private JSONObject readJsonFromUrl(String url) throws IOException, JSONException {\r\n\t\tInputStream is = new URL(url).openStream();\r\n\t\ttry {\r\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName(\"UTF-8\")));\r\n\t\t\tString jsonText = readAll(rd);\r\n\t\t\tJSONObject json = new JSONObject(jsonText);\r\n\t\t\treturn json;\r\n\t\t} finally { //finally will always execute, if an try block exists. Doesnt matter if there is an Exception or not.\r\n\t\t\tis.close();\r\n\t\t}\r\n\t}", "public static void readJSON() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line;\n\t\tif((line = br.readLine()) != null) {\n\t\t\tString [] flightStates = parseJSON(line);\n\t\t\tfor(String state : flightStates) {\n\t\t\t\tFlightState fs = new FlightState(state);\n\t\t\t\tsendToKafka(fs);\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t}", "public void readNext(JCardDataStreamListener listener) throws IOException {\n\t\tif (parser == null) {\n\t\t\tJsonFactory factory = new JsonFactory();\n\t\t\tparser = factory.createParser(reader);\n\t\t} else if (parser.isClosed()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.listener = listener;\n\n\t\t//find the next vCard object\n\t\tJsonToken prev = parser.getCurrentToken();\n\t\tJsonToken cur;\n\t\twhile ((cur = parser.nextToken()) != null) {\n\t\t\tif (prev == JsonToken.START_ARRAY && cur == JsonToken.VALUE_STRING && \"vcard\".equals(parser.getValueAsString())) {\n\t\t\t\t//found\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (strict) {\n\t\t\t\t//the parser was expecting the jCard to be there\n\t\t\t\tif (prev != JsonToken.START_ARRAY) {\n\t\t\t\t\tthrow new JCardParseException(JsonToken.START_ARRAY, prev);\n\t\t\t\t}\n\n\t\t\t\tif (cur != JsonToken.VALUE_STRING) {\n\t\t\t\t\tthrow new JCardParseException(JsonToken.VALUE_STRING, cur);\n\t\t\t\t}\n\n\t\t\t\tthrow new JCardParseException(\"Invalid value for first token: expected \\\"vcard\\\" , was \\\"\" + parser.getValueAsString() + \"\\\"\", JsonToken.VALUE_STRING, cur);\n\t\t\t}\n\n\t\t\tprev = cur;\n\t\t}\n\n\t\tif (cur == null) {\n\t\t\t//EOF\n\t\t\teof = true;\n\t\t\treturn;\n\t\t}\n\n\t\tlistener.beginVCard();\n\t\tparseProperties();\n\n\t\tcheck(JsonToken.END_ARRAY, parser.nextToken());\n\t}", "@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}", "private static JsonObject readJSON(String path) {\n\n\t\tString fileContents = \"\";\n\t\tBufferedReader reader = null;\n\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(path));\n\t\t} catch (FileNotFoundException e) {\n\t\t\tfail(ErrorMessage.inputFileNotFoundError);\n\t\t}\n\n\t\tString line;\n\n\t\ttry {\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tfileContents += line;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.readFileError);\n\t\t}\n\n\t\ttry {\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\tfail(ErrorMessage.closeFileError);\n\t\t}\n\n\t\tJsonObject jsonLicense = Json.createReader(new StringReader(fileContents)).readObject();\n\n\t\treturn jsonLicense;\n\t}", "private static JsonObject getJsonObject(String request_url) {\n JsonObject jsonResponse = new JsonParser().parse(NetworkUtils.getResponseBody(request_url)).getAsJsonObject();\n return jsonResponse;\n }", "JsonObject raw();", "public static JsonObject readFile(String path) throws FileNotFoundException\n\t{\n\t\tJsonReaderFactory factory = Json.createReaderFactory(null);\n\t\tInputStream is = new FileInputStream(path);\n\t\tJsonReader rdr = factory.createReader(is, java.nio.charset.StandardCharsets.UTF_8);\n\t\tJsonObject obj = rdr.readObject();\n\t\trdr.close();\n\t\treturn obj;\n\t}", "private JSONObject parseRequest(String request, DataOutputStream clientStream) {\n\t\ttry {\n\t\t\t//restitiuisco il JSONObject\n\t\t\treturn Gossip_parser.getJsonObject(request);\n\t\t} catch (ParseException e) {\n\t\t\t//se la richiesta non è un JSONObject rispondo con messaggio di errore\n\t\t\te.printStackTrace();\n\t\t\tsendReply(new Gossip_fail_message(Gossip_fail_message.failMsg.UNKNOWN_REQUEST), clientStream);\n\t\t}\n\t\treturn null;\n\t}", "private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}", "@Override\n protected Void doInBackground(Void... arg0) {\n HttpURLConnection urlConnection = null;\n\n try {\n URL data = new URL(url);\n urlConnection = (HttpURLConnection) data.openConnection();\n\n int responseCode = urlConnection.getResponseCode();\n\n if (responseCode == HttpURLConnection.HTTP_OK) {\n\n readJsonStream(urlConnection.getInputStream());\n }\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n urlConnection.disconnect();\n return null;\n }", "protected List<Product> readJsonStream(FileInputStream fi) {\n\t\tJsonReader reader = new JsonReader(new InputStreamReader(fi));\n\n\t\ttry {\n\n\t\t\treturn readProductArray(reader);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "private static JSONObject readJsonFromUrl(String url) throws IOException, JSONException {\n\t\tInputStream is = new URL(url).openStream();\n\t\ttry {\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName(\"UTF-8\")));\n\t\t\tString jsonText = readAll(rd);\n\t\t\tJSONObject json = new JSONObject(jsonText);\n\t\t\treturn json;\n\t\t} finally {\n\t\t\tis.close();\n\t\t}\n\t}", "private JSONArray readJSONArray() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if (tokener.more()) {\n return TokenerHandler.getNextJSONArrayNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "public native Object parse( Object json );", "public static JSONObject parseJSON(byte[] rawBytes) throws JSONException\n {\n if (rawBytes == null)\n throw new IllegalArgumentException(\"Null byte array cannot be parsed to JSON.\");\n\n return parseJSON(new String(rawBytes));\n }", "public void parse(Reader input) {\n\t\t\n\t\tint intValueOfChar;\n\t String jsonString = \"\";\n\t try {\n\t\t\twhile ((intValueOfChar = input.read()) != -1) {\n\t\t\t\tjsonString += (char) intValueOfChar;\n\t\t\t}\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t \n\t\n\t\ttry {\n\t\t\tJSONObject obj = new JSONObject(jsonString);\n\t\t\tJSONObject response = obj.getJSONObject(\"response\");\n\t\t\tJSONArray venues = response.getJSONArray(\"venues\");\n\t\t\tfor (int i = 0; i < venues.length(); i++) {\n\t\t\t\tJSONObject venue = venues.getJSONObject(i);\n\t\t\t\tString name = venue.getString(\"name\");\n\t\t\t\tJSONObject location = venue.getJSONObject(\"location\");\n\t\t\t\tdouble lat = location.getDouble(\"lat\");\n\t\t\t\tdouble lng = location.getDouble(\"lng\");\n\t\t\t\tLatLon latlon = new LatLon(lat, lng);\n\t\t\t\tPlace place = new EatingPlace(name, latlon);\n\t\t\t\tfactory.add(place);\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected Object readResponse(XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException {\n final StringBuffer sb = new StringBuffer();\n\n try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(pStream));\n String line = reader.readLine();\n while (line != null) {\n sb.append(line);\n line = reader.readLine();\n }\n }\n catch (final IOException e) {\n LOG.error(\"Fail to dump\", e);\n }\n\n LOG.debug(\"Receive response=\\n{}\", XmlPrettyFormatter.toPrettyString(sb.toString()));\n\n final ByteArrayInputStream bais = new ByteArrayInputStream(sb.toString().getBytes());\n return super.readResponse(pConfig, bais);\n }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public void readFromStream(DataInputStream istream) throws IOException{\r\n headerFields = new HashMap();\r\n messageBody = null;\r\n String line;\r\n while(!(line = readLine(istream)).equals(\"\")){\r\n String fieldName = line.substring(0,line.indexOf(\":\"));\r\n String fieldValue = line.substring(line.indexOf(\" \")+1,line.length());\r\n setHeaderField(fieldName, fieldValue);\r\n //System.out.println(fieldName + \": \" +fieldValue);\r\n }\r\n readBody(istream);\r\n }", "public void deserialize(JoyBuffer in) {\n\t\t\n\t}", "public JSONObject parse(String jsonFileName) {\n JSONObject jsonObject = null;\n JSONParser jsonParser = new JSONParser();\n Reader jsonFileReader = this.resourceFileLoader.loadJsonReader(jsonFileName);\n\n try {\n jsonObject = (JSONObject) jsonParser.parse(jsonFileReader);\n } catch(Exception e) {\n this.exceptionLogger.log(e);\n }\n\n return jsonObject;\n }", "@Override\n public void onNext(JSONObject jsonObject) {\n }", "public static String readJsonObject(String filename) {\r\n\t\tBufferedReader br = null;\r\n\t\tFileReader fr = null;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString sCurrentLine;\r\n\t\ttry {\r\n\r\n\t\t\tfr = new FileReader(filename);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\r\n\t\t\t\tsb.append(sCurrentLine);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\tif (fr != null)\r\n\t\t\t\t\tfr.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "private void readObject(ObjectInputStream in) throws IOException,\n \t\t\tClassNotFoundException {\n \t\tin.defaultReadObject();\n \t\tlog.debug(\"GalleryFeed has been deserialized.\");\n \t}", "private void readObject ( ObjectInputStream in ) throws IOException, ClassNotFoundException {\n ObjectInputStream.GetField fields = in.readFields();\n _user = (CTEUser) fields.get(\"_user\", null);\n }", "private JSONArray parseJSON() {\n JSONArray jsonArray = new JSONArray();\n for (TimestampedMessage m : fPending) {\n JSONTokener jsonTokener = new JSONTokener(m.fMsg);\n JSONObject jsonObject = null;\n JSONArray tempjsonArray = null;\n final char firstChar = jsonTokener.next();\n jsonTokener.back();\n if ('[' == firstChar) {\n tempjsonArray = new JSONArray(jsonTokener);\n for (int i = 0; i < tempjsonArray.length(); i++) {\n jsonArray.put(tempjsonArray.getJSONObject(i));\n }\n } else {\n jsonObject = new JSONObject(jsonTokener);\n jsonArray.put(jsonObject);\n }\n\n }\n return jsonArray;\n }", "public void init() {\n\n mJokes = new ArrayList<>();\n\n StringBuilder sBuilder = new StringBuilder();\n\n try {\n\n InputStream in = getClass().getResourceAsStream(\"/jokes.json\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String mLine = reader.readLine();\n while (mLine != null) {\n //process line\n sBuilder.append(mLine);\n mLine = reader.readLine();\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n String jsonString = sBuilder.toString();\n\n if( jsonString != null ){\n\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(jsonString).getAsJsonObject();\n\n JsonArray jokesArray = jsonObject.getAsJsonArray(\"jokes\");\n\n for (JsonElement element : jokesArray) {\n String joke = element.getAsJsonObject().get(\"joke\").getAsString();\n mJokes.add(joke);\n }\n }\n\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "@Override\n public void handle(AsyncResult<Buffer> read) {\n file.delete();\n // parse\n JsonArray json = new JsonArray(read.result().toString());\n // iterate\n new AsyncIterator<Object>(json) {\n @Override\n public void handle(Object o) {\n if (hasNext()) {\n final JsonObject json = (JsonObject) o;\n db.set(domain.namespace + \"&\" + json.getString(\"key\"), json.getString(\"value\"), new Handler<Message<JsonObject>>() {\n @Override\n public void handle(Message<JsonObject> message) {\n if (!\"ok\".equals(message.body().getString(\"status\"))) {\n next.handle(message.body().getString(\"message\"));\n } else {\n next();\n }\n }\n });\n } else {\n request.response().redirect(\"/admin\");\n }\n }\n };\n }", "private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }", "public void beginObject() {\n expect(JsonType.START_MAP);\n stack.addFirst(Container.MAP_NAME);\n input.read();\n }", "public void readAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tjsonObject = JsonObject.readFrom(dataStorage.getAchievements()); // readFrom is buffered\n\t}", "private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }", "public JsonObject getObject(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.OBJECT)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), JsonObject.class);\n\t\treturn (JsonObject)value.value;\n\t}", "private ArrayList<VideoFile> receiveData(ObjectInputStream in, String mode) {\n ArrayList<VideoFile> returned = new ArrayList<>();\n ArrayList<VideoFile> chunks = new ArrayList<>();\n\n //resetChunks();\n\n VideoFile file; //COUNTER IS HOW MANY NULL STRINGS ARE READ\n int counter = 0; //WHEN COUNTER ==2 THEN END ALL FILE CHUNKS\n try {\n while (counter < 2) {\n try {\n while ((file = (VideoFile) in.readObject()) != null) {\n chunks.add(file);\n /*if (mode.equals(\"mode1\")) {\n //addChunk(file);\n }*/\n counter = 0;\n }\n if (!chunks.isEmpty()) {\n if (mode.equals(\"save\")) {\n VideoFile merged = VideoFileHandler.merge(chunks);\n returned.add(merged);\n }\n }\n chunks.clear();\n ++counter;\n } catch (IOException e) {\n Extras.printError(\"CONSUMER: receiveData: exception in reading chunks\");\n }\n if (counter > 2) break;\n }\n return returned;\n } catch (ClassNotFoundException e) {\n Extras.printError(\"CONSUMER: RECEIVE DATA: ERROR: Could not cast Object to MusicFile\");\n }\n return null;\n }", "public void testParseJsonErrorStream() throws Throwable {\n String data = buildJsonErrorData();\n\n // Convert Json string to an InputStream.\n InputStream inputStream = new ByteArrayInputStream(data.getBytes());\n\n // Test the WeatherDataJsonParser main entry point.\n WeatherDataJsonParser parser = new WeatherDataJsonParser();\n\n try {\n // Test the parser.\n List<WeatherData> weatherDataList = parser.parseJsonStream(inputStream);\n\n // Now verify the results from the parser.\n validateErrorData(weatherDataList);\n } catch (Exception e) {\n fail(\"Unable to parse weather data: \" + e);\n }\n }", "@Nullable\n static public JSONObject readJson(final @NotNull String url) {\n\n StringBuilder builder = new StringBuilder();\n HttpClient client = new DefaultHttpClient();\n HttpGet httpGet = new HttpGet(url);\n JSONObject finalResult = null;\n try {\n HttpResponse response = client.execute(httpGet);\n StatusLine statusLine = response.getStatusLine();\n int statusCode = statusLine.getStatusCode();\n if (statusCode == 200) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(response.getEntity().getContent(), \"UTF-8\"));\n String line;\n while ((line = reader.readLine()) != null) {\n builder.append(line).append(\"\\n\");\n }\n finalResult = new JSONObject(new JSONTokener(builder.toString()));\n } else {\n Logger.e(TAG, \"Failed to download status file.\");\n }\n } catch (JSONException e) {\n Logger.e(TAG, e.getMessage());\n } catch (ClientProtocolException e) {\n Logger.e(TAG, e.getMessage());\n } catch (IOException e) {\n Logger.e(TAG, e.getMessage());\n }\n return finalResult;\n }", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(Reader asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "public <T> Stream<T> streamFromJson(final InputStream is, final Class<T> type, Map<String, Class> mappings, final boolean autoClose) throws IOException {\n return streamFromJson(is, mapper.constructType(type), mappings, autoClose);\n }", "public JSONObject LoadJson(String filename) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tnew FileInputStream(filename), \"UTF-8\"));\n\t\t\tStringBuffer buffer = new StringBuffer(1024);\n\t\t\tString line;\n\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tbuffer.append(line);\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\treturn new JSONObject(buffer.toString());\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.format(\"[Error]Failed to open file %s!\", filename);\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (JSONException e) {\n\t\t\tSystem.err.format(\"[Error]Failed to parse json file %s!\", filename);\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "T deserialize(InputStream stream) throws IOException;", "@SuppressWarnings(\"unused\")\r\n private void addReadStream(InputStream asciiStream) {\n\t\taddReadSize(100);\r\n\t}", "public JSONObject readJsonFromUrl(String url) throws IOException, JSONException {\n InputStream is = new URL(url).openStream();\n try {\n BufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName(\"UTF-8\")));\n String jsonText = readAll(rd);\n JSONObject json = new JSONObject(jsonText);\n return json;\n } finally {\n is.close();\n }\n }", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "public JSON getJsonObject() {\n return jsonObject;\n }", "public void run() {\n Gson gson = new Gson();\n try {\n InputStream is = new FileInputStream(new File(filename));\n JsonReader reader = new JsonReader(new InputStreamReader(is));\n reader.setLenient(true);\n // Leggo la parentesi quadra aperta \"[\".\n reader.beginArray();\n while (reader.hasNext()) {\n String owner = null;\n List<Record> records = null;\n // Leggo la parentesi graffa aperta \"{\".\n reader.beginObject();\n while (reader.hasNext()) {\n String name = reader.nextName();\n if (name.equals(\"owner\")) {\n owner = reader.nextString();\n } else if (name.equals(\"records\")) {\n records = readRecords(reader);\n } else {reader.skipValue();}\n }\n // Leggo la parentesi graffa aperta \"}\".\n reader.endObject();\n // Inserisco nella coda condivisa il conto appena letto.\n queue.put(new Account(owner, records));\n }\n // Leggo la parentesi quadra chiusa \"]\".\n reader.endArray();\n reader.close();\n // Inserisco in coda gli oggetti poison per far terminare\n // i consumer.\n for (int i = 0; i < poison; i++) queue.put(new Account(null));\n } catch (Exception e) {\n System.err.println(\"Errore nel Producer: \" + e.getMessage());\n }\n finally {\n System.err.println(\"Producer terminato!\");\n }\n }", "@Override\n public Json readFormStream() throws IOException {\n int channelsRead = selector.select();\n\n readBuffer.clear();\n readBuffer.limit(4);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n readBuffer.rewind();\n int length = readBuffer.getInt();\n\n readBuffer.clear();\n readBuffer.limit(length);\n while (readBuffer.hasRemaining()) {\n if(socketChannel.read(readBuffer) == -1) throw new EOFException(\"Socket closed, read returned -1\");\n }\n\n readBuffer.flip();\n\n byte[] bytesForString = new byte[length];\n readBuffer.get(bytesForString, 0, length);\n String jsonMsg = new String(bytesForString, \"UTF-8\");\n\n // System.err.println(\"<-- \" + jsonMsg);\n return Json.read(jsonMsg);\n }", "@Override\n public PvCard read(JsonReader in) throws IOException {\n try {\n return readPvCard(in); //or\n// return readPvCardViaTypeToken(in); // getting a PvCard object , use {@Link TypeToken}\n } finally {\n in.close();\n }\n }", "private void readObject(java.io.ObjectInputStream s)\r\n throws java.io.IOException, ClassNotFoundException {\r\n // Read in any hidden serialization magic\r\n s.defaultReadObject();\r\n\r\n // Read in size\r\n int size = s.readInt();\r\n\r\n // Initialize header\r\n//INSTRUMENTATION BEGIN\r\n //header = new Entry(null, null, null);\r\n header = new Entry(null, null, null, this);\r\n//INSTRUMENTATION END\r\n header.next = header.previous = header;\r\n\r\n // Read in all elements in the proper order.\r\n for (int i = 0; i < size; i++)\r\n add(s.readObject());\r\n }", "void readObject(InputSerializer in) throws java.io.IOException;", "@Test\n public void simpleObject() throws IOException {\n String obj = \"{\\\"name\\\":\\\"value\\\",\\\"int\\\":1302,\\\"float\\\":1.57,\"\n + \"\\\"negint\\\":-5,\\\"negfloat\\\":-1.57,\\\"floatexp\\\":-1.5e7}\";\n JsonLexer l = new JsonLexer(new StringReader(obj));\n JsonParser p = new JsonParser(l);\n Map<String, Object> m = p.parseObject();\n\n assertEquals(6, m.size());\n assertEquals(\"value\", m.get(\"name\"));\n assertEquals(1302L, m.get(\"int\"));\n assertEquals(1.57, m.get(\"float\"));\n assertEquals(-5L, m.get(\"negint\"));\n assertEquals(-1.57, m.get(\"negfloat\"));\n assertEquals(-1.5e7, m.get(\"floatexp\"));\n }", "public String loadJSONFromAsset() {\n String json = null;\n try {\n json = new String(buffer, \"UTF-8\");\n } catch (UnsupportedEncodingException e1) {\n e1.printStackTrace();\n }\n\n return json;\n }", "public Tamagotchi read() throws IOException {\n String jsonData = readFile(source);\n JSONObject jsonObject = new JSONObject(jsonData);\n return tamagotchiToJson(jsonObject);\n }", "private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tGZIPInputStream gzis = new GZIPInputStream(stream, 1024 * 1024);\r\n\t\tObjectInputStream ois = new ObjectInputStream(gzis);\r\n\t\tmap = (MapClip) ois.readObject();\r\n\t\tvisibility = (IntGrid) ois.readObject();\r\n\t\toccupied = (IntGrid) ois.readObject();\r\n\t\tdanger = (IntGrid) ois.readObject();\r\n\t\tattacking = (IntGrid) ois.readObject();\r\n\t\tfade = (IntGrid) ois.readObject();\r\n\t\tcost = (IntGrid) ois.readObject();\r\n\t\tdifficulty = (IntGrid) ois.readObject();\r\n\t}", "private void readObject(ObjectInputStream inStream) \r\n\t\t\tthrows IOException, ClassNotFoundException {\r\n\t\tmPublicKey = (String)inStream.readObject();\r\n\t\tmIssuer = (String)inStream.readObject();\r\n\t\tmSubject = (String)inStream.readObject();\r\n\t}", "public Input readData() {\n JSONParser jsonParser = new JSONParser();\n List<Consumer> consumers = new ArrayList<>();\n List<Distributor> distributors = new ArrayList<>();\n List<Producer> producers = new ArrayList<>();\n List<MonthlyUpdates> monthlyUpdates = new ArrayList<>();\n long numberOfTurns;\n\n try {\n // Parsing the contents of the JSON file\n JSONObject jsonObject = (JSONObject) jsonParser.parse(new FileReader(inputPath));\n numberOfTurns = (long) (jsonObject.get(\"numberOfTurns\"));\n JSONObject initialData = (JSONObject) jsonObject.get(\"initialData\");\n JSONArray jsonConsumers = (JSONArray) initialData.get(\"consumers\");\n JSONArray jsonDistributors = (JSONArray) initialData.get(\"distributors\");\n JSONArray jsonProducers = (JSONArray) initialData.get(\"producers\");\n\n if (jsonConsumers != null) {\n ConsumerFactory consumerFactory = ConsumerFactory.getInstance();\n for (Object jsonConsumer : jsonConsumers) {\n consumers.add(consumerFactory.createConsumer(\n (long) ((JSONObject) jsonConsumer).get(\"id\"),\n (long) ((JSONObject) jsonConsumer).get(\"initialBudget\"),\n (long) ((JSONObject) jsonConsumer).get(\"monthlyIncome\")));\n }\n }\n\n if (jsonDistributors != null) {\n DistributorFactory distributorFactory = DistributorFactory.getInstance();\n for (Object jsonDistributor : jsonDistributors) {\n distributors.add(distributorFactory.createDistributor(\n (long) ((JSONObject) jsonDistributor).get(\"id\"),\n (long) ((JSONObject) jsonDistributor).get(\"contractLength\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialBudget\"),\n (long) ((JSONObject) jsonDistributor).get(\"initialInfrastructureCost\"),\n (long) ((JSONObject) jsonDistributor).get(\"energyNeededKW\"),\n EnergyChoiceStrategyType.valueOf(((JSONObject) jsonDistributor).\n get(\"producerStrategy\").toString())));\n }\n }\n\n if (jsonProducers != null) {\n for (Object jsonProducer : jsonProducers) {\n producers.add(new Producer(((long) ((JSONObject) jsonProducer).get(\"id\")),\n EnergyType.valueOf(((JSONObject) jsonProducer).\n get(\"energyType\").toString()),\n (long) ((JSONObject) jsonProducer).get(\"maxDistributors\"),\n (double) ((JSONObject) jsonProducer).get(\"priceKW\"),\n (long) ((JSONObject) jsonProducer).get(\"energyPerDistributor\")));\n }\n }\n\n JSONArray jsonUpdates = (JSONArray) jsonObject.get(\"monthlyUpdates\");\n\n for (JSONObject monthlyUpdate : (Iterable<JSONObject>) jsonUpdates) {\n MonthlyUpdates update = new MonthlyUpdates();\n JSONArray newConsumers = (JSONArray) monthlyUpdate.get(\"newConsumers\");\n for (JSONObject newConsumer : (Iterable<JSONObject>) newConsumers) {\n update.getNewConsumers().add(new Consumer(Long.parseLong(newConsumer.get(\"id\").\n toString()),\n Long.parseLong(newConsumer.get(\"initialBudget\").toString()),\n Long.parseLong(newConsumer.get(\"monthlyIncome\").toString())));\n }\n org.json.simple.JSONArray costsChanges = (JSONArray) monthlyUpdate.\n get(\"distributorChanges\");\n for (JSONObject costsChange : (Iterable<JSONObject>) costsChanges) {\n update.getCostsChanges().add(new CostsChanges(Long.parseLong(costsChange.\n get(\"id\").toString()),\n Long.parseLong(costsChange.get(\"infrastructureCost\").toString())));\n }\n monthlyUpdates.add(update);\n }\n return new Input(numberOfTurns, consumers, distributors, producers, monthlyUpdates);\n\n } catch (ParseException | IOException e) {\n e.printStackTrace();\n }\n\n return new Input(0, consumers, distributors, producers, monthlyUpdates);\n\n }", "protected abstract DBObject parse(InputStream is) throws DeserializationException;", "public JSONObject getJSONFromFile() throws IOException\n\t{\n\t\tInputStream is = context.getResources().openRawResource(R.raw.schedule);\n\t\tWriter writer = new StringWriter();\n\t\tchar[] buffer = new char[1024];\n\t\ttry {\n\t\t Reader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n\t\t int n;\n\t\t while ((n = reader.read(buffer)) != -1) {\n\t\t writer.write(buffer, 0, n);\n\t\t }\n\t\t} finally {\n\t\t is.close();\n\t\t}\n\n\t\tString jsonString = writer.toString();\n\t\tJSONObject jObj=null;\n\t\t\n\t\t// try parse the string to a JSON object\n\t\ttry {\n\t\t\tjObj = new JSONObject(jsonString);\n\t\t} catch (JSONException e) {\n\t\t\tLog.e(\"JSON Parser\", \"Error parsing data \" + e.toString());\n\t\t}\n\t\t\t\n\t\treturn jObj;\n\t\t// return JSON String\n\n\t}", "private Object onParse(final String content) throws IOException{\n if(null == this.mBean)\n return null;\n\n try{\n return JSON.parseObject(content, this.mBean);\n }catch(Exception e){\n throw new IOException(e.getMessage());\n }\n }", "public void parser(JSONObject jo) {\n\n\t\n\t\tcontractId = JsonUtil.getJsonString(jo, \"contractId\");\n\t\tdate1 = JsonUtil.getJsonString(jo, \"date1\");\n\t\tstartDate = JsonUtil.getJsonString(jo, \"startDate\");\n\t\tendDate = JsonUtil.getJsonString(jo,\"endDate\");\n\t\tsupplierName = JsonUtil.getJsonString(jo,\"supplierName\");\n\t\ttxt7 = JsonUtil.getJsonString(jo,\"txt7\");\n\t\t\n\t\t\n\t\n\t}", "void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }", "public static JsonObject getJsonObjectRoot(String sURL) {\n JsonObject rootObj;\n try {\n URL url = new URL(sURL);\n HttpURLConnection request = (HttpURLConnection) url.openConnection();\n request.connect();\n\n //Convert to a JSON object to print data\n JsonParser jp = new JsonParser(); //use gson\n JsonElement root = jp.parse(new InputStreamReader((InputStream)\n request.getContent()));\n\n // Get a handle on the root\n rootObj = root.getAsJsonObject();\n return rootObj;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "private JSONObject getJSONFromUrl(String url) {\n\t\tInputStream inputStream = null;\n\t\tString jsonString = \"\";\n\t\tJSONObject jsonObject = null;\n\t\tboolean sendMessageError = false;\n\t\t\n\t\ttry {\n DefaultHttpClient httpClient = new DefaultHttpClient();\n HttpPost httpPost = new HttpPost(url);\n\n HttpResponse httpResponse = httpClient.execute(httpPost);\n HttpEntity httpEntity = httpResponse.getEntity();\n inputStream = httpEntity.getContent();\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n sendMessageError = true;\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n sendMessageError = true;\n } catch (IOException e) {\n e.printStackTrace();\n sendMessageError = true;\n }\n\t\t\n\t\ttry {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n \t\tinputStream, \"iso-8859-1\"), 8);\n StringBuilder stringbuilder = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n \tstringbuilder.append(line + \"\\n\");\n }\n jsonString = stringbuilder.toString();\n } catch (Exception e) {\n \te.printStackTrace();\n \tsendMessageError = true;\n }\n\t\t\n\t\ttry {\n\t\t\tinputStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tsendMessageError = true;\n\t\t}\n\n\t\ttry {\n\t\t\tjsonObject = new JSONObject(jsonString);\n } catch (Exception e) {\n \te.printStackTrace();\n \tsendMessageError = true;\n }\n\t\t\n\t\tif (sendMessageError)\n\t\t\tsendMessageToObservers(new MessageErrorOccurred());\n\t\t\n\t\treturn jsonObject;\n\t}", "private void readObject( final ObjectInputStream ois ) \n\t\tthrows ClassNotFoundException, IOException {\n\t\tObjectInputStream.GetField fields = ois.readFields();\n\t\tstreetNumbers = (String) fields.get(\"streetNumbers\", NA );\n\t\tcity = (String) fields.get(\"city\", NA);\n\t\tstate = (StateCode) fields.get(\"state\", StateCode.NY);\n\t\tpostalCode = (String) fields.get(\"postalCode\", NA);\n\t\thashCode = fields.get(\"hashCode\", 0);\n\t}", "protected JSONArray readJsonFromLocalResources(InputStream resources) {\n\n InputStream is = resources;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n\n if (is != null) {\n\n int ctr;\n try {\n ctr = is.read();\n while (ctr != -1) {\n byteArrayOutputStream.write(ctr);\n ctr = is.read();\n }\n\n if (byteArrayOutputStream.size() > 0) {\n Logger.d(\"JSON= \" + byteArrayOutputStream.toString());\n return new JSONArray(byteArrayOutputStream.toString());\n }\n\n } catch (IOException e) {\n Logger.e(\"Could not read the json file, IOException\" + e);\n } catch (JSONException ex) {\n Logger.e(\"Could not parse into json object, JSONException\" + ex);\n } finally {\n\n try {\n is.close();\n } catch (IOException ex) {\n Logger.e(\"Could not close InputStream, IOException\" + ex);\n }\n }\n }\n\n Logger.d(\"Could not return json object\"); //Let's hope not to hit this line\n return null;\n }", "public static ResponseUserObj parseGSON() throws FileNotFoundException {\n\n Gson gson = new Gson();\n\n ResponseUserObj data = gson.fromJson(new JsonReader(new FileReader(\"classwork/json/example.json\")), ResponseUserObj.class);\n\n return data;\n }", "TorrentJsonParser getJsonParser();" ]
[ "0.6293001", "0.62652385", "0.6008939", "0.5906487", "0.58202404", "0.5736113", "0.56858426", "0.5661062", "0.5633995", "0.5625247", "0.5559734", "0.55339336", "0.55304205", "0.5529556", "0.54102015", "0.5360243", "0.5350499", "0.53470117", "0.53467625", "0.5341407", "0.53172004", "0.5315528", "0.5311694", "0.53004414", "0.5271558", "0.5266111", "0.5248628", "0.5225744", "0.52217007", "0.5220161", "0.52013993", "0.5191104", "0.51888317", "0.5176533", "0.51657325", "0.5155331", "0.5154502", "0.51218903", "0.5110995", "0.50972253", "0.5086172", "0.5043251", "0.5023273", "0.50108755", "0.49933556", "0.49618334", "0.49547315", "0.4935901", "0.49357903", "0.49003562", "0.48748356", "0.4873219", "0.48555237", "0.4848781", "0.48276183", "0.48183084", "0.48114997", "0.48055613", "0.4801988", "0.48004374", "0.47962457", "0.4794992", "0.47858885", "0.4780702", "0.4777087", "0.47728276", "0.4771241", "0.47705883", "0.47698593", "0.47609967", "0.47570813", "0.47533643", "0.47523388", "0.4751615", "0.47451794", "0.47421354", "0.47410986", "0.4734756", "0.47239035", "0.47237962", "0.47235966", "0.4718491", "0.4713852", "0.47138494", "0.4712396", "0.47101286", "0.4709886", "0.46900213", "0.46897313", "0.46890473", "0.4688875", "0.46872362", "0.46866736", "0.46849704", "0.4680147", "0.46719724", "0.466606", "0.4656731", "0.4655373", "0.46542266" ]
0.6414836
0
returns a description of the FileReader.
@Override public String toString() {return "Json-File Reader";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileDesc getFileDesc();", "public String getFiledesc() {\n return filedesc;\n }", "public String getDescription(FileObject f)\n {\n return getName(f);\n }", "public String getTypeDescription(FileObject f)\n {\n return getName(f);\n }", "public interface FileReader {\n\n String read(String fileName);\n}", "String getFpDescription();", "@SneakyThrows\n public Reader reader() {\n return new FileReader(this.temp);\n }", "public IFormatReader getReader() {\n\t\t\treturn reader;\n\t\t}", "public Vector<String> getReader_h() {\n\t\t\n\t\treturn reader_h;\n\t}", "public String getDescription() {\n return \"Text file (.text)\";\n }", "protected String inputInFile() {\n return \"T//\" + this.getTaskStatus() + \"//\"\n + super.getDescription();\n }", "public String file() {\n return this.file;\n }", "public String getRecordFile();", "StreamReader underlyingReader();", "void citire(FileReader f);", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "String getFile() {\n\t\treturn file;\n\t}", "public Reader getReader() {\r\n return reader;\r\n }", "public String getDescription() {\r\n\t return \"Just accept image file\";\r\n\t }", "interface Source {\n /** Finds a reader for a given file name.\n */\n public java.io.Reader getReader (URL url) throws java.io.IOException;\n }", "public Reader getReader()\n {\n return reader;\n }", "public interface SourceFileReader {\n\t\n\t/**\n\t * Reads a file and returns its content in a List\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a List that contains the contents of the file \n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic List<String> readFileIntoList(String filepath) throws IOException;\n\t\n\t/**\n\t * Reads a file and returns its content in a single String\n\t * @param fileReaderType the location of a file \n\t * (<b>local</b> for locally stored files, \n\t * <b>web</b> for files stored on the web). \n\t * @param filepath the url of the file\n\t * @return a String that contains the contents of the file\n\t * or null if the type is neither <b>local</b> nor <b>web</b>\n\t * @throws IOException\n\t */\n\tpublic String readFileIntoString(String filepath) throws IOException;\n\n}", "public String getName()\n {\n return( file );\n }", "private FileReader openLabelsFile() {\n FileReader file = null;\n try {\n file = new FileReader(riaaLabelsFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return file;\n }", "public String getFILE_NAME() { return FILE_NAME; }", "public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }", "public String getFileTypeDescription() {\n return \"GrADS Binary Gridded Data\";\n }", "public String getInputFile() {\n return inputFile;\r\n }", "public File getFile ();", "public Reader getReader() {\n return in;\n }", "public void readFile();", "public String getFileFlow() {\r\n\t\treturn fileFlow;\r\n\t}", "public File getFile();", "public File getFile();", "public String getFile() {\n \n // return it\n return theFile;\n }", "FileObject getFile();", "FileObject getFile();", "public String getType()\n {\n return VFS.FILE_TYPE;\n }", "public File getFile() {\r\n \t\treturn file;\r\n \t}", "public String getFile() {\n return \"null\"; // getFileTopic().getCompositeValue().getTopic(FILE_PATH);\n }", "public String getFilename();", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "@Override\r\n\tpublic String getDescription() {\r\n\t\treturn \"Image Files\";\r\n\t}", "public void readFromFile() {\n\n\t}", "public File getFileValue();", "public String getFileHeaderInfo() {\n return this.fileHeaderInfo;\n }", "public File getDataFile();", "String Reader(String FileName, Context context){\n FileInputStream inputStream = null;\n String Text = \"\";\n StringBuilder sb = null;\n try{\n //inputStream = context.openFileInput(FileName);\n inputStream = new FileInputStream(new File(FileName));\n InputStreamReader reader = new InputStreamReader(inputStream);\n BufferedReader buffRead = new BufferedReader(reader);\n sb = new StringBuilder();\n\n while ((Text = buffRead.readLine())!= null){\n sb.append(Text);\n sb.append(\"\\n\");\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return sb.toString();\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "public static FileReader getReader() {\n return new CsvFileReader();\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFilename()\n {\n return filename;\n }", "public String getDescription() {\n return \"XML Files\";\n }", "public IFile getIFile ();", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public String getStringFile(){\n return fileView(file);\n }", "@Override\n\tpublic String getTypeName() throws RemoteException {\n\t\treturn \"HDFS TEXT FILE\";\n\t}", "public File getFileSource() {\n\t\treturn fileSource;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public File getFile() { return file; }", "public String getReaderType() {\n\n\t\treturn \"SimpleDocReader\";\n\n\t}", "@Override\n public String getServletInfo() {\n return \"Handles file upload data from application/octet-stream, and multipart/form-data.\";\n }", "private final native void init(FileReaderListener listener) /*-{\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl = new $wnd.FileReader();\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onloadstart = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onLoadStart(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onprogress = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onProgress(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onload = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onLoad(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onabort = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onAbort(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onerror = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onError(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n\r\n this.@de.bastian.gwt.fileapi.client.file.reader.FileReader::impl.onloadend = function(event) {\r\n listener.@de.bastian.gwt.fileapi.client.file.reader.FileReaderListener::onLoadEnd(Lde/bastian/gwt/fileapi/client/file/events/ProgressEvent;)(event);\r\n };\r\n }-*/;", "public String getSourceFileName() { return sourceFileName; }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFileName ();", "public String getName() {\n\t\treturn this.readableForm;\n\t}", "public String getName() {\r\n return mFile.getName();\r\n }", "public String getRecordFile() {\n return recordFile;\n }", "String getFile();", "String getFile();", "String getFile();", "@Override\n\tpublic String toString() {\n\t\treturn this.filePath.toString();\n\t}", "String getDescriptor();", "public File getInputFile() {\n\t\treturn infile;\n\t}", "public String getDescription() {\r\n return \"XML Files (*.xml)\";\r\n }", "File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}", "public String getFileName();", "public String getFileName();", "public SourceFile<ISyntaxElement> getFile() {\n return declaringFile;\n }", "public File getFile() {\n return file;\n }", "DatasetFile getDatasetFile();", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "public String getFileType(){\n\t\treturn type;\n\t}", "public File getFile() {\n\t\treturn this.file;\n\t}", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "File getFile();", "File getFile();", "public String getFilename() {\n\treturn file.getFilename();\n }", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "@ApiModelProperty(required = true, value = \"The file in which the test is defined.\")\n public String getFile() {\n return file;\n }", "public File getInputFile() {\n return inputFile;\n }", "public String getDescription() {\n return \"image files or directory\";\n }", "public String getFileComment()\r\n {\r\n return sFileComment;\r\n }", "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }" ]
[ "0.6580635", "0.64951533", "0.6273837", "0.62062716", "0.6192071", "0.5991538", "0.59294456", "0.5893947", "0.587629", "0.5811905", "0.57846224", "0.5771762", "0.5770045", "0.57663125", "0.57508075", "0.5727574", "0.5727574", "0.57179284", "0.5686918", "0.56430537", "0.56062526", "0.55638635", "0.5547831", "0.55422586", "0.55209315", "0.5508986", "0.55011886", "0.54958713", "0.54846203", "0.5478521", "0.54742634", "0.5468841", "0.54585856", "0.5439055", "0.5439055", "0.5417831", "0.5415327", "0.5415327", "0.54115915", "0.5377668", "0.5371808", "0.53676397", "0.5359785", "0.53578657", "0.5356315", "0.5348291", "0.5336926", "0.5332357", "0.5329242", "0.53252435", "0.53187925", "0.53149027", "0.53063136", "0.53029245", "0.53016126", "0.5298647", "0.5297568", "0.52912766", "0.52831495", "0.528169", "0.5278318", "0.52769804", "0.5272622", "0.5267763", "0.5257595", "0.52565587", "0.52561826", "0.52561826", "0.5253018", "0.52517605", "0.5247313", "0.5246087", "0.52386814", "0.52386814", "0.52386814", "0.5233687", "0.5233318", "0.5230863", "0.52292126", "0.5222415", "0.5221464", "0.5221464", "0.52206147", "0.5216823", "0.5208549", "0.5205968", "0.52054083", "0.5205213", "0.52036226", "0.5199429", "0.5199429", "0.5195469", "0.5194354", "0.5193075", "0.5189971", "0.51881754", "0.5187246", "0.5186313", "0.5185576", "0.5185576" ]
0.57671964
13
DataSource ds=(DataSource) WebContextUtil.getBean("dataSource"); Connection conn=ds.getConnection();
public static JSONArray query(String sql, Connection conn) throws Exception { Statement st=null; try { System.out.println("SQL to execute : "+sql); st = conn.createStatement(); ResultSet rs=st.executeQuery(sql); return resultToJson(rs); } catch (Exception e) { e.printStackTrace(); throw new Exception(e.getMessage()); } finally { if ( st != null) st.close(); // conn.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean(name=\"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/elearningforum\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"\");\n\t\tdataSource.addConnectionProperty(\"useUnicode\", \"yes\");\n\t\tdataSource.addConnectionProperty(\"characterEncoding\", \"UTF-8\");\n\t\treturn dataSource;\n\t}", "@Profile(\"production\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDataSource(){\r\n final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();\r\n dsLookup.setResourceRef(true);\r\n DataSource dataSource = dsLookup.getDataSource(\"jdbc/eshop_db\"); \t \r\n return dataSource;\r\n }", "public static DataSource getDataSource(){\n try {\n Context context = new InitialContext();\n DataSource ds = (DataSource) context.lookup(\"jdbc/oracle\");\n return ds;\n } catch (NamingException ex) {\n Logger.getLogger(DataSourceBean.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }", "@Bean\r\n\tpublic DataSource getDataSource() {\r\n\t\tfinal HikariDataSource dataSource = new HikariDataSource();\r\n\t\t/*\r\n\t\t * The Following is the Oracle Database Configuration With Hikari Datasource\r\n\t\t */\r\n\t\tdataSource.setMaximumPoolSize(maxPoolSize);\r\n\t\tdataSource.setMinimumIdle(minIdleTime);\r\n\t\tdataSource.setDriverClassName(driver);\r\n\t\tdataSource.setJdbcUrl(url);\r\n\t\tdataSource.addDataSourceProperty(\"user\", userName);\r\n\t\tdataSource.addDataSourceProperty(\"password\", password);\r\n\t\tdataSource.addDataSourceProperty(\"cachePrepStmts\", cachePrepareStmt);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSize\", prepareStmtCacheSize);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSqlLimit\", prepareStmtCacheSqlLimit);\r\n\t\tdataSource.addDataSourceProperty(\"useServerPrepStmts\", useServerPrepareStmt);\r\n\t\treturn dataSource;\r\n\t}", "public DataSourcePool() throws NamingException, \r\n SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {\r\n InitialContext ctx = new InitialContext();\r\n //DataSource ds =(DataSource)ctx.lookup(\"java:jboss/jdbc/webapp\");\r\n DataSource ds =(DataSource)ctx.lookup(\"java:jboss/datasources/WebApp\");\r\n connection = ds.getConnection();\r\n }", "@Bean(name = \"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.cj.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/test_db\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"password\");\n\t\treturn dataSource;\n\t}", "@Bean\n\tpublic BasicDataSource getDataSource() {\n\t\tBasicDataSource ds = new BasicDataSource();\n\t\tds.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tds.setUrl(\"jdbc:mysql://localhost:3306/manageservice?useSSL=false\");\n\t\tds.setUsername(\"root\");\n\t\tds.setPassword(\"251090\");\n\t\tds.setMaxTotal(2);\n\t\tds.setInitialSize(1);\n\t\tds.setTestOnBorrow(true);\n\t\tds.setValidationQuery(\"SELECT 1\");\n\t\tds.setDefaultAutoCommit(true);\n\t\treturn ds;\n\t}", "public DataSource getDataSource() {\n return dataSource;\n }", "public Connection getConnection() throws ClassNotFoundException, SQLException\n\t{\n\t /* Class.forName(\"org.postgresql.Driver\");*/\n\t\tcon=dataSource.getConnection();\n\t\treturn con;\t\n\t}", "public DataSource getDataSource() {\n return datasource;\n }", "public void init() {\n\r\n\t\ttry {\r\n\r\n\t\t\t//// 등록한 bean 에 있는 datasource를 가져와서 Connection을 받아온다\r\n\t\t\tcon = ds.getConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic DataSource getDataSource() {\t\t\n\t\treturn dataSource;\n\t}", "public DataSource getDataSource(){\n\n // open/read the applicliation context file\n // belove instruction to ger absolute path of current java apps\n //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation();\n //System.out.println(location);\n ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(\"./../db.xml\");\n DataSource dataSource = null;\n try{ \n dataSource = (DataSource) appContext.getBean(\"dataSource\");\n } catch ( Exception ex ) {\n logger.log( Level.SEVERE, \"ERROR: can't create spring context and data source from application context\", ex.getMessage() );\n } finally {\n appContext.close();\n }\n return dataSource;\n }", "protected DataSource getDataSource() {\n\t\treturn dataSource;\n\t}", "@Bean(destroyMethod = \"close\")\n public HikariDataSource dataSource() {\n HikariDataSource dataSource = new HikariDataSource();\n config.setJdbcUrl(\"jdbc:mysql://projects-db.ewi.tudelft.nl/projects_oopp5353\");\n config.setUsername(\"pu_oopp5353\");\n config.setPassword(\"WZijSwzXlaBG\");\n // config.setJdbcUrl(\"jdbc:mysql://localhost:3306/reserve\");\n // config.setUsername(\"user\");\n // config.setPassword(\"password\");\n HikariDataSource ds = new HikariDataSource(config);\n return ds;\n }", "@Bean(destroyMethod = \"close\")\n\tpublic DataSource dataSource() {\n\t\tHikariConfig config = Utils.getDbConfig(dataSourceClassName, url, port, \"postgres\", user, password);\n\n try {\n\t\t\tlogger.info(\"Configuring datasource {} {} {}\", dataSourceClassName, url, user);\n config.setMinimumIdle(0);\n\t\t\tHikariDataSource ds = new HikariDataSource(config);\n\t\t\ttry {\n\t\t\t\tString dbExist = \"SELECT datname FROM pg_catalog.pg_database WHERE lower(datname) = lower('\"+databaseName+\"')\";\n\t\t\t\tPreparedStatement statementdbExist = ds.getConnection().prepareStatement(dbExist);\n\t\t\t\tif(statementdbExist.executeQuery().next()) {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tds.close();\n\t\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\t} else {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tString sql = \"CREATE DATABASE \" + databaseName;\n\t\t\t\t\tPreparedStatement statement = ds.getConnection().prepareStatement(sql);\n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tds.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlogger.error(\"ERROR Configuring datasource SqlException {} {} {}\", e);\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t} catch (Exception ee) {\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\tlogger.debug(\"ERROR Configuring datasource catch \", ee);\n\t\t\t}\n\t\t\tHikariConfig config2 = Utils.getDbConfig(dataSourceClassName, url, port, databaseName, user, password);\n\t\t\treturn new HikariDataSource(config2);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"ERROR in database configuration \", e);\n\t\t} finally {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\tvoid contextLoads() throws SQLException {\n\t\tSystem.out.println(dataSource.getClass());\n\n\t\t// 获得连接\n\t\t/*\n\t\t 异常:\n\t\t \tThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.\n\t\t */\n\t\tConnection connection = dataSource.getConnection();\n\n\t\tSystem.out.println(connection);\n\n\t\t// 关闭\n\t\tconnection.close();\n\t}", "@Override\n\tpublic DataSource getDataSource() {\n\t\tif(this.dataSource == null) {\n\t\t\ttry {\n\t\t\t\tInitialContext initialContext = new InitialContext();\n\t\t\t\tthis.dataSource = (DataSource) initialContext.lookup(\"java:comp/env/jdbc/DefaultDB\");\n\t\t\t} catch(NamingException e){\n\t\t\t\tthrow new IllegalStateException(e);\n\t\t\t}\n\t\t}\n\t\treturn this.dataSource;\n\t}", "public static DataSource MySqlConn() throws SQLException {\n\t\t\n\t\t/**\n\t\t * check if the database object is already defined\n\t\t * if it is, return the connection, \n\t\t * no need to look it up again\n\t\t */\n\t\tif (MySql_DataSource != null){\n\t\t\treturn MySql_DataSource;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * This only needs to run one time to get the database object\n\t\t\t * context is used to lookup the database object in MySql\n\t\t\t * MySql_Utils will hold the database object\n\t\t\t */\n\t\t\tif (context == null) {\n\t\t\t\tcontext = new InitialContext();\n\t\t\t}\n\t\t\tContext envContext = (Context)context.lookup(\"java:/comp/env\");\n\t\t\tMySql_DataSource = (DataSource)envContext.lookup(\"jdbc/customers\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return MySql_DataSource;\n\t}", "public DataSource getDataSource() {\n return _dataSource;\n }", "@Bean\n public DataSource dataSource() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(env.getRequiredProperty(DRIVER_CLASS_NAME));\n dataSource.setUrl(env.getRequiredProperty(DATABASE_URL));\n dataSource.setUsername(env.getRequiredProperty(DATABASE_USERNAME));\n dataSource.setPassword(env.getRequiredProperty(DATABASE_PASSWORD));\n\n return dataSource;\n }", "@Bean\n\tpublic DataSource securityDataSource() {\n\t\t//create the connection pool\n\t\tComboPooledDataSource securityDataSource=new ComboPooledDataSource();\n\t\t\n\t\t//set the jdbc driver class\n\t\ttry {\n\t\t\tsecurityDataSource.setDriverClass(env.getProperty(\"jdbc.driver\"));\n\t\t} catch (PropertyVetoException e) {\t\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\t\n\t\t//log the connection props\n\t\tSystem.out.println(\">>> jdbc.url=\"+env.getProperty(\"jdbc.url\"));\n\t\tSystem.out.println(\">>> jdbc.user=\"+env.getProperty(\"jdbc.user\"));\n\t\t\n\t\t//set the connection data properties\n\t\tsecurityDataSource.setJdbcUrl(env.getProperty(\"jdbc.url\"));\n\t\tsecurityDataSource.setUser(env.getProperty(\"jdbc.user\"));\n\t\tsecurityDataSource.setPassword(env.getProperty(\"jdbc.password\"));\n\t\t\n\t\t//set connection pool properties\n\t\tsecurityDataSource.setInitialPoolSize(getIntProperty(\"connection.pool.initialPoolSize\"));\n\t\tsecurityDataSource.setMinPoolSize(getIntProperty(\"connection.pool.minPoolSize\"));\n\t\tsecurityDataSource.setMaxPoolSize(getIntProperty(\"connection.pool.maxPoolSize\"));\n\t\tsecurityDataSource.setMaxIdleTime(getIntProperty(\"connection.pool.maxIdleTime\"));\n\t\t\n\t\treturn securityDataSource;\n\t}", "public DataSource getDataSource() {\r\n return dataSource;\r\n }", "public EODataSource queryDataSource();", "@Bean\n public DataSource dataSource() {\n List<String> dataSourceNames = Arrays.asList(\"BasicDbcpPooledDataSourceCreator\",\n \"TomcatJdbcPooledDataSourceCreator\", \"HikariCpPooledDataSourceCreator\",\n \"TomcatDbcpPooledDataSourceCreator\");\n \n DataSourceConfig dbConfig = new DataSourceConfig(dataSourceNames);\n DataSource hikariDataSource = connectionFactory().dataSource(dbConfig);\n// DataSource myConnection = DataSourceBuilder.create()\n// \t\t\t\t\t\t .type(HikariDataSource.class)\n// \t\t\t\t\t\t .driverClassName(com.sap.db.jdbc.Driver.class.getName())\n// \t\t\t\t\t\t .url(hostname)\n// \t\t\t\t\t\t .username(username)\n// \t\t\t\t\t\t .password(password)\n// \t\t\t\t\t\t .build();\n// \n// try {\n//\t\t\tmyConnection.getConnection().setSchema(schemaname);\n//\t\t} catch (SQLException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n \n cloudFoundryDataSourceConfigLogger.info(\"Detected Host name is : \" + this.hostname);\n cloudFoundryDataSourceConfigLogger.info(\"Detected port name is : \" + this.port);\n cloudFoundryDataSourceConfigLogger.info(\"Detected DB name is : \" + this.dbname);\n cloudFoundryDataSourceConfigLogger.info(\"Detected User name is : \" + this.username);\n \n return hikariDataSource;\n \n }", "public static boolean initDatasource() {\n // first we locate the driver\n String pgDriver = \"org.postgresql.Driver\";\n try {\n ls.debug(\"Looking for Class : \" + pgDriver);\n Class.forName(pgDriver);\n } catch (Exception e) {\n ls.fatal(\"Cannot find postgres driver (\" + pgDriver + \")in class path\", e);\n return false;\n }\n\n try{ \n String url = \"jdbc:postgresql://inuatestdb.cctm7tiltceo.us-west-2.rds.amazonaws.com:5432/inua?user=inua&password=jw8s0F4\";\n dsUnPooled =DataSources.unpooledDataSource(url);\n dsPooled = DataSources.pooledDataSource(dsUnPooled);\n \n poolInit = true;\n }\n catch (Exception e){ \n ls.fatal(\"SQL Exception\",e);\n System.out.println(\"initDataSource\" + e);\n return false;\n }\n \n return true;\n}", "@Autowired\n public void setDataSource( DataSource dataSource ) {\n this.simpleJdbcTemplate = new SimpleJdbcTemplate( dataSource );\n }", "@Bean\n @Profile(\"Prod\")\n public DataSource jndiDataSource(){\n \tJndiObjectFactoryBean bean = new JndiObjectFactoryBean();\n \tbean.setJndiName(\"dataSource\");\n \tbean.setProxyInterface(DataSource.class);\n \tbean.setResourceRef(true);\n \treturn (DataSource) bean.getObject();\n }", "@Bean(name = \"dataSource\")\n\tpublic DataSource dataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript(\"db/create-db.sql\").addScript(\"db/insert-data.sql\").build();\n\t\treturn db;\n\t}", "public static Connection getCon()throws SQLException{\n\n//\tSystem.out.println(\"创建了一个Connection....\");\n//\tConnection con= null;\n//\ttry {\n//\t\tClass.forName(jdbcName);\n//\t\tcon = DriverManager.getConnection(dburl, dbUserName, dbPassword);\n//\t}catch (Exception e){\n//\t\te.printStackTrace();\n//\t}\n\n\treturn dataSource.getConnection();\n}", "@Profile(\"development\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDevDataSource(){\r\n\t\t\r\n //Create dataSource for HSQLDB connection.\r\n\t\t\r\n\t BasicDataSource dataSource = new BasicDataSource();\r\n\t dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\r\n\t //Create HSQLDB in memory. \r\n\t dataSource.setUrl(\"jdbc:hsqldb:mem:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t //Create HSQLDB in file located in the application folder.\r\n //dataSource.setUrl(\"jdbc:hsqldb:file:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t dataSource.setUsername(\"sa\");\r\n\t dataSource.setPassword(\"\");\r\n\t\t\t\t\r\n return dataSource;\r\n }", "public DataSource getDataSource() {\n return dataSource;\n }", "public DataSource getDataSource() {\n return dataSource;\n }", "public Connection getConnection() {\n try {\n return dataSource.getConnection();\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }", "public String getDataSource() {\n return dataSource;\n }", "public DataSource getDatasource() {\n return datasource;\n }", "private Connection getConnection() throws SQLException{\n return ds.getConnection();\n }", "private synchronized Connection getConnection() throws SQLException {\n return datasource.getConnection();\r\n }", "public static ConnectionSource cs() {\n String dbName = \"pegadaian\";\n String dbUrl = \"jdbc:mysql://localhost:3306/\" + dbName;\n String user = \"root\";\n String pass = \"catur123\";\n\n //inisiasi sumber koneksi\n ConnectionSource csInit = null;\n try {\n csInit = new JdbcConnectionSource(dbUrl, user, pass);\n } catch (SQLException ex) {\n Logger.getLogger(Koneksi.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //kembalikan hasil koneksi\n return csInit;\n\n }", "private Connection getConnection() throws Exception {\n\n\t\tContext initCtx = new InitialContext();\n\t\tContext envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n\t\tDataSource ds = (DataSource) envCtx.lookup(\"jdbc/TestDB\");\n\n\t\treturn ds.getConnection();\n\t}", "public String getDatasource()\r\n\t{\r\n\t\treturn _dataSource;\r\n\t}", "@Profile(\"production\")\r\n @Bean\r\n @DependsOn(\"SessionFactory\") \r\n public EshopDAOImpl getLocaleDAO(SessionFactory sessionFactory, DataSource dataSource) { \r\n \r\n EshopDAOImpl instanceDAOImpl = new EshopDAOImpl();\r\n \r\n //Inject datasource for JDBC.\r\n// instanceDAOImpl.setDataSource(dataSource); \r\n \r\n //Initialize reference to a SessionFactoryBean for database's methods. \r\n instanceDAOImpl.setSessionFactory(sessionFactory);\r\n \r\n return instanceDAOImpl; \r\n }", "@Bean\n public DataSource getDataSource() {\n HikariConfig config = new HikariConfig();\n config.setDriverClassName(\"org.postgresql.Driver\");\n config.setJdbcUrl(\"jdbc:postgresql://127.0.0.1:5432/beauty\");\n config.setUsername(\"testing\");\n config.setPassword(\"testing\");\n config.addDataSourceProperty(\"characterEncoding\",\"utf8\");\n config.addDataSourceProperty(\"useUnicode\",\"true\");\n config.setIdleTimeout(10);\n config.setMinimumIdle(2);\n config.setMaximumPoolSize(100);\n\n\n return new HikariDataSource(config);\n }", "public DataSource getDataSource() {\n\t\treturn this.dataSource;\n\t}", "@Autowired\n public void setDataSource(DataSource dataSource) {\n this.jdbcTemplate = new JdbcTemplate(dataSource);\n this.namedJdbcTemplate = new NamedParameterJdbcTemplate(dataSource);\n }", "public DataSource getDataSource()\n\t{\n\t\tLOGGER.info(\"Getting DataSource object\");\n\t\treturn this.dataSource;\n\t}", "@Bean\n public DataSource dataSource() {\n PGSimpleDataSource dataSource = new PGSimpleDataSource();\n dataSource.setServerName(hostName);\n dataSource.setDatabaseName(databaseName);\n dataSource.setUser(databaseUser);\n dataSource.setPassword(databasePassword);\n return dataSource;\n }", "public DataSource getDataSource() {\n\t\treturn dataSource;\n\t}", "@Bean\r\n public DataSource dataSource() {\r\n String message = messageSource.getMessage(\"begin\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\r\n dataSource.setDriverClassName(propDatabaseDriver);\r\n dataSource.setUrl(propDatabaseUrl);\r\n dataSource.setUsername(propDatabaseUserName);\r\n dataSource.setPassword(propDatabasePassword);\r\n\r\n message = messageSource.getMessage(\"end\", null, \"locale not found\", Locale.getDefault())\r\n + \" \" + messageSource.getMessage(\"config.data.source\", null, \"locale not found\", Locale.getDefault());\r\n logger.info(message);\r\n return dataSource;\r\n }", "public DataSource getDataSource(CConnection connection)\n\t{\n\t\t//throw new UnsupportedOperationException(\"Not supported/implemented\");\n\t\tif (m_ds != null)\n\t\t\treturn m_ds;\n\t\t\n\t\t//org.postgresql.ds.PGPoolingDataSource ds = new org.postgresql.ds.PGPoolingDataSource();\n\t\torg.postgresql.jdbc3.Jdbc3PoolingDataSource ds = new org.postgresql.jdbc3.Jdbc3PoolingDataSource();\n\t\tds.setDataSourceName(\"CompiereDS\");\n\t\tds.setServerName(connection.getDbHost());\n\t\tds.setDatabaseName(connection.getDbName());\n\t\tds.setUser(connection.getDbUid());\n\t\tds.setPassword(connection.getDbPwd());\n\t\tds.setPortNumber(connection.getDbPort());\n\t\tds.setMaxConnections(50);\n\t\tds.setInitialConnections(20);\n\t\t\n\t\t//new InitialContext().rebind(\"DataSource\", source);\t\t\n\t\tm_ds = ds;\n\t\t\n\t\treturn m_ds;\n\t}", "@Bean\n\tpublic DataSource dataSource () {\n\t\treturn DataSourceBuilder.create()\n\t\t\t\t\t\t\t\t.url(\"jdbc:mysql://localhost:3306/sillibus\")\n\t\t\t\t\t\t\t\t.username(\"root\")\n\t\t\t\t\t\t\t\t.password(\"root\")\n\t\t\t\t\t\t\t\t.driverClassName(databaseDriver)\n\t\t\t\t\t\t\t\t.build();\n\t}", "@Bean(destroyMethod = \"shutdown\")\n public DataSource dataSource() {\n log.debug(\"test\");\n log.debug(\"Configuring Datasource\");\n if (propertyResolver.getProperty(\"url\") == null && propertyResolver.getProperty(\"databaseName\") == null) {\n log.error(\"Your database connection pool configuration is incorrect! The application\" +\n \"cannot start. Please check your Spring profile, current profiles are: {}\",\n Arrays.toString(environment.getActiveProfiles()));\n\n throw new ApplicationContextException(\"Database connection pool is not configured correctly\");\n }\n HikariConfig config = new HikariConfig();\n if (propertyResolver.getProperty(\"url\") != null) {\n config.setDataSourceClassName(propertyResolver.getProperty(\"dataSourceClassName\"));\n config.addDataSourceProperty(\"url\", propertyResolver.getProperty(\"url\"));\n } else {\n config.setDriverClassName(propertyResolver.getProperty(\"driverClassName\"));\n config.setJdbcUrl(propertyResolver.getProperty(\"jdbcUrl\"));\n }\n\n config.setInitializationFailFast(true);\n config.setConnectionTestQuery(propertyResolver.getProperty(\"connectionTestQuery\"));\n config.setUsername(propertyResolver.getProperty(\"username\"));\n config.setPassword(propertyResolver.getProperty(\"password\"));\n config.setIdleTimeout(getIdleTimeout());\n config.setMaxLifetime(getMaxLife());\n config.setMaximumPoolSize(getMaxPoolSize());\n\n if (StringUtils.isBlank(config.getPassword())\n || StringUtils.containsIgnoreCase(config.getPassword(), \"secret\")\n || StringUtils.startsWith(config.getPassword(), \"'\")) {\n return null;\n }\n\n return new HikariDataSource(config);\n }", "private SupplierDaoJdbc(DataSource dataSource) {\n SupplierDaoJdbc.dataSource = dataSource;\n }", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "public ConnectionPoolDataSource createPoolDataSource(CConnection connection);", "@Override\n\tprotected void initDataSource() {\n\t}", "private DataSource getDataSource(DataSourceConfig key) {\n\t\tDataSource dataSource = adminService.getComponent(key.getBeanName(), DataSource.class);\n\t\treturn dataSource;\n\t}", "@Override\n public String getDataSource()\n {\n return dataSource;\n }", "public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }", "public synchronized String getDataSource(){\n\t\treturn dataSource;\n\t}", "@Bean\n public DataSource dataSource() {\n HikariConfig hikariConfig = new HikariConfig();\n hikariConfig.setDriverClassName(environment.getProperty(\"jdbc.driver\"));\n hikariConfig.setJdbcUrl(environment.getProperty(\"jdbc.url\"));\n hikariConfig.setUsername(environment.getProperty(\"jdbc.user\"));\n hikariConfig.setPassword(environment.getProperty(\"jdbc.password\"));\n hikariConfig.setMaximumPoolSize(Integer.parseInt(\n Objects.requireNonNull(environment.getProperty(\"jdbc.availableConnections\"))));\n return new HikariDataSource(hikariConfig);\n }", "synchronized void initDataSource()\n throws SQLException\n {\n if (_isStarted)\n return;\n \n _isStarted = true;\n \n for (int i = 0; i < _driverList.size(); i++) {\n DriverConfig driver = _driverList.get(i);\n \n driver.initDataSource(_isTransactional, _isSpy);\n }\n \n try {\n if (_isTransactional && _tm == null) {\n Object obj = new InitialContext().lookup(\"java:comp/TransactionManager\");\n \n if (obj instanceof TransactionManager)\n _tm = (TransactionManager) obj;\n }\n } catch (NamingException e) {\n throw new SQLExceptionWrapper(e);\n }\n }", "String getDataSource();", "public JDBCCityDAO(DataSource dataSource) {\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "@Bean\n\tpublic DataSourceDao dataSourceDao() {\n\t\tDataSourceDao metadata = new DataSourceDao();\n\t\tmetadata.put(\"rslite\", dsRSLite());\n\t\tmetadata.put(\"rastreosat\", dsRS());\n\t\tmetadata.put(\"entel\", dsEntel());\n\t\tmetadata.put(\"mongo\", dsMongo());\n\t\treturn metadata;\n\t}", "@Bean\n public DataSource dataSource() {\n EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n return builder.setType(EmbeddedDatabaseType.HSQL).build();\n }", "public Connection getConnection() throws SQLException\n {\n Connection con = dataSource.getConnection();\n con.setAutoCommit(false);\n return con;\n }", "public String getDataSource() {\n return dataSource;\n }", "public Connection getConnection() throws SQLException {\r\n return dataSource.getConnection();\r\n }", "public GcJdbcConnectionBean connectionBean() throws SQLException;", "void init() throws ConnectionPoolDataSourceException;", "private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "public Connection getConn() {\n\ttry {\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\tcn=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521/pocdb\",\"PL\",\"PL\");\n\t\t\n\t}\n\tcatch(ClassNotFoundException ce)\n\t{\n\t\tce.printStackTrace();\n\t\t\n\t}\n\tcatch(SQLException se)\n\t{\n\t\tse.printStackTrace();\n\t\t\n\t}\n\t\n\t\n\treturn cn;\n\t\n\n}", "private DataSource dereference() throws SQLException\n {\n\tObject jndiName = this.getJndiName();\n\tHashtable jndiEnv = this.getJndiEnv();\n\ttry\n\t {\n\t\tInitialContext ctx;\n\t\tif (jndiEnv != null)\n\t\t ctx = new InitialContext( jndiEnv );\n\t\telse\n\t\t ctx = new InitialContext();\n\t\tif (jndiName instanceof String)\n\t\t return (DataSource) ctx.lookup( (String) jndiName );\n\t\telse if (jndiName instanceof Name)\n\t\t return (DataSource) ctx.lookup( (Name) jndiName );\n\t\telse\n\t\t throw new SQLException(\"Could not find ConnectionPoolDataSource with \" +\n\t\t\t\t\t \"JNDI name: \" + jndiName);\n\t }\n\tcatch( NamingException e )\n\t {\n\t\t//e.printStackTrace();\n\t\tif ( logger.isLoggable( MLevel.WARNING ) )\n\t\t logger.log( MLevel.WARNING, \"An Exception occurred while trying to look up a target DataSource via JNDI!\", e );\n\t\tthrow SqlUtils.toSQLException( e ); \n\t }\n }", "@Bean(name = \"dataSource\")\n @ConfigurationProperties(prefix = \"spring.datasource\")\n public DataSource dataSource() {\n return DataSourceBuilder.create().build();\n }", "@Override\r\n\tpublic Connection getConnection() throws SQLException {\n\t\tif(listConnection.size() > 0){\r\n\t\t\tfinal Connection conn = listConnection.removeFirst();\r\n\t\t\treturn (Connection) Proxy.newProxyInstance(JdbcPool.class.getClassLoader(),\r\n\t\t\t\t\tconn.getClass().getInterfaces(), \r\n\t\t\t\t\tnew InvocationHandler() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tif(!method.getName().equals(\"close\")){\r\n\t\t\t\t\t\t\t\treturn method.invoke(conn, args);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tlistConnection.add(conn);\r\n\t\t\t\t\t\t\t\treturn null;\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}else{\r\n\t\t\tthrow new RuntimeException(\"对不起,数据库忙\");\r\n\t\t}\r\n\t}", "@Bean(name = \"dataSourceService\")\n public ComboPooledDataSource dataSourceService() {\n try {\n final ComboPooledDataSource bean = new ComboPooledDataSource();\n bean.setDriverClass(this.driverClass);\n bean.setJdbcUrl(this.jdbcUrl);\n bean.setUser(this.user);\n bean.setPassword(this.password);\n bean.setInitialPoolSize(this.initialPoolSize);\n bean.setMinPoolSize(this.minPoolSize);\n bean.setMaxPoolSize(this.maxPoolSize);\n bean.setMaxIdleTimeExcessConnections(this.maxIdleTimeExcessConnections);\n bean.setCheckoutTimeout(this.checkoutTimeout);\n bean.setAcquireIncrement(this.acquireIncrement);\n bean.setAcquireRetryAttempts(this.acquireRetryAttempts);\n bean.setAcquireRetryDelay(this.acquireRetryDelay);\n bean.setIdleConnectionTestPeriod(this.idleConnectionTestPeriod);\n bean.setPreferredTestQuery(this.preferredTestQuery);\n return bean;\n } catch (final Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static DataSource getDataSource() throws SQLException {\n return getDataSource(FxContext.get().getDivisionId(), true);\n }", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "@Override\n public DataSource getDataSource() {\n\n // PostgreSQL does not provide connection pool (as of version 42.1.3) so make one using Apache Commons DBCP \n ds = new BasicDataSource();\n\n // max number of active connections\n Integer maxTotal = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxTotal\");\n if (maxTotal == null) {\n maxTotal = 8;\n } else {\n log.info(\"Max number of active connections is \"\n + maxTotal);\n }\n ds.setMaxTotal(maxTotal);\n\n // wait time for new connection\n Integer maxWaitMillis = AtsSystemProperties.getPropertyAsNumber(\"dbcp.maxWaitMillis\");\n if (maxWaitMillis == null) {\n maxWaitMillis = 60 * 1000;\n } else {\n log.info(\"Connection creation wait is \"\n + maxWaitMillis\n + \" msec\");\n }\n ds.setMaxWaitMillis(maxWaitMillis);\n\n String logAbandoned = System.getProperty(\"dbcp.logAbandoned\");\n if (logAbandoned != null && (\"true\".equalsIgnoreCase(logAbandoned))\n || \"1\".equalsIgnoreCase(logAbandoned)) {\n String removeAbandonedTimeoutString = System.getProperty(\"dbcp.removeAbandonedTimeout\");\n int removeAbandonedTimeout = (int) ds.getMaxWaitMillis() / (2 * 1000);\n if (!StringUtils.isNullOrEmpty(removeAbandonedTimeoutString)) {\n removeAbandonedTimeout = Integer.parseInt(removeAbandonedTimeoutString);\n }\n log.info(\n \"Will log and remove abandoned connections if not cleaned in \"\n + removeAbandonedTimeout\n + \" sec\");\n // log not closed connections\n ds.setLogAbandoned(true); // issue stack trace of not closed connection\n ds.setAbandonedUsageTracking(true);\n ds.setLogExpiredConnections(true);\n ds.setRemoveAbandonedTimeout(removeAbandonedTimeout);\n ds.setRemoveAbandonedOnBorrow(true);\n ds.setRemoveAbandonedOnMaintenance(true);\n ds.setAbandonedLogWriter(new PrintWriter(System.err));\n }\n ds.setValidationQuery(\"SELECT 1\");\n ds.setDriverClassName(getDriverClass().getName());\n ds.setUsername(user);\n ds.setPassword(password);\n ds.setUrl(getURL());\n return ds;\n }", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource; // Sets the current object this of the class's attribute dataSource eqal to the object of datasource\n\t\tthis.jdbcTemplateObject = new JdbcTemplate(dataSource); // Instantiation of the JDBCTemplateObject class which takes in the object of datasource to set up data synchronization\n\t\t\n\t}", "@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}", "public Connection getConnection() throws SQLException{\n return ds.getConnection();\n }", "private Connection getConnction() {\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url = \"jdbc:mysql://192.168.201.120:3306/erp_purchase?zeroDateTimeBeHavior=convertToNull\";\r\n\t\t\tString user = \"xuduo\";\r\n\t\t\tString passwor = \"000000\";\r\n\t\t\tconnection = DriverManager.getConnection(url, user, passwor);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(JdbcExample.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t\t\r\n\t\treturn connection;\r\n\t}", "@Autowired\r\n public void setJdbcTemplate(DataSource dataSource) {\r\n this.jdbcTemplate = new JdbcTemplate(dataSource);\r\n }", "public static Connection getConnection() {\n Connection conn = null;\n\n try {\n DataSource dataSource = (DataSource) new InitialContext().lookup(\"jdbc/library\");\n conn = dataSource.getConnection();\n } catch (SQLException | NamingException e) {\n LOG.error(e.getMessage(), e);\n }\n return conn;\n }", "public WebDataSource() {}", "public\n Connection getConnection();", "public SimpleDriverDataSource getDataSource() {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSimpleDriverDataSource dataSource = new SimpleDriverDataSource();\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t\ttry {\n\t\t\t\t\t// set datasource parameters\n\t\t\t\t\t// set driver\n\t\t\t\t\tdataSource.setDriver(new com.mysql.jdbc.Driver());\n\t\t\t\t\t// set username\n\t\t\t\t\tdataSource.setUsername(prop.getProperty(\"jdbc.username\"));\n\t\t\t\t\t// set password\n\t\t\t\t\tdataSource.setPassword(prop.getProperty(\"jdbc.password\"));\n\t\t\t\t\t// set jdbc url\n\t\t\t\t\tdataSource.setUrl(prop.getProperty(\"jdbc.url\"));\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn dataSource;\n\t}", "protected static Connection getConnection() {\r\n\t\t\r\n\t\tSystem.out.print(\"CONSOLE -- ENTROU NA PACKAGE DATA ACCESS OBJECT: getConnection \\n\" ); \r\n\t\t\r\n\t\tConnection connection = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\t\tconnection = DriverManager.getConnection(jdbcURL, jdbcUsername, jdbcPassword);\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn connection;\r\n\t\t\r\n\t}", "public Connection getConnection(){\n try {\n return connectionFactory.getConnection(); // wird doch schon im Konstruktor von TodoListApp aufgerufen ???\n } catch (SQLException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }", "public interface IDataSourceConfiguration {\r\n\r\n\t/**\r\n\t * \r\n\t * @return Nombre del driver \r\n\t */\r\n\tpublic String getDriverName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param driverName Nombre del driver\r\n\t */\r\n\tpublic void setDriverName(String driverName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return User name de conexion\r\n\t */\r\n\tpublic String getUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName User name de conexion\r\n\t */\r\n\tpublic void setUserName(String userName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Password de conexion\r\n\t */\r\n\tpublic void setPassword(String password);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic String getUrl();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param url URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic void setUrl(String url);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Alternative User name de conexion\r\n\t */\r\n\tpublic String getAltUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName Alternative User name de conexion\r\n\t */\r\n\tpublic void setAltUserName(String altUserName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getAltPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Alternative Password de conexion\r\n\t */\r\n\tpublic void setAltPassword(String altPassword);\r\n\t\r\n}", "@Override\n public Set<Datasource> getDatasources() throws ConfigurationException {\n Context context = getContext();\n Set<Datasource> result = new HashSet<>();\n int length = context.getResource().length;\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n // Tomcat 5.5.x or Tomcat 6.0.x\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n String username = context.getResourceUsername(i);\n String url = context.getResourceUrl(i);\n String password = context.getResourcePassword(i);\n String driverClassName = context.getResourceDriverClassName(i);\n if (name != null && username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n if (tomeeVersion != null) {\n TomeeResources actualResources = getResources(false);\n if (actualResources != null) {\n result.addAll(getTomeeDatasources(actualResources));\n }\n }\n } else {\n // Tomcat 5.0.x\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < length; i++) {\n String type = context.getResourceType(i);\n if (\"javax.sql.DataSource\".equals(type)) { // NOI18N\n String name = context.getResourceName(i);\n // find the resource params for the selected resource\n for (int j = 0; j < resourceParams.length; j++) {\n if (name.equals(resourceParams[j].getName())) {\n Parameter[] params = resourceParams[j].getParameter();\n HashMap paramNameValueMap = new HashMap(params.length);\n for (Parameter parameter : params) {\n paramNameValueMap.put(parameter.getName(), parameter.getValue());\n }\n String username = (String) paramNameValueMap.get(\"username\"); // NOI18N\n String url = (String) paramNameValueMap.get(\"url\"); // NOI18N\n String password = (String) paramNameValueMap.get(\"password\"); // NOI18N\n String driverClassName = (String) paramNameValueMap.get(\"driverClassName\"); // NOI18N\n if (username != null && url != null && driverClassName != null) {\n // return the datasource only if all the needed params are non-null except the password param\n result.add(new TomcatDatasource(username, url, password, name, driverClassName));\n }\n }\n }\n }\n }\n }\n return result;\n }", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\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}", "@Autowired(required = false)\n\tpublic void setDataSource(DataSource dataSource) {\n\t\tsimpleJdbcTemplate = new JdbcTemplate(dataSource);\n\t\tsimpleJdbcInsert = new SimpleJdbcInsert(dataSource);\n\t\tnamedParameterJdbcOperations = new NamedParameterJdbcTemplate(dataSource);\n\t\tthis.dialect = getDialect(dataSource);\n\t}", "public static void main(String[] args) throws Exception {\n //加载bean\n String[] configLocations = new String[]{\"beans.xml\"};\n ClassPathXmlApplicationContext appContext\n = new ClassPathXmlApplicationContext(configLocations);\n SessionFactory sessionFactory = (SessionFactory)appContext.getBean(\"sessionFactory\");\n ComboPooledDataSource dataSource= (ComboPooledDataSource)appContext.getBean(\"dataSource\");\n// Properties properties = new Properties();\n// // 使用InPutStream流读取properties文件\n// BufferedReader bufferedReader = new BufferedReader(new FileReader(\"config/datasource.properties\"));\n// properties.load(bufferedReader);\n// // 获取key对应的value值\n// String driverClass = properties.getProperty(\"mysql.driverClassName\");\n// String jdbcUrl = properties.getProperty(\"mysql.url\");\n// String user = properties.getProperty(\"mysql.username\");\n// String password = properties.getProperty(\"mysql.password\");\n\n// dataSource.setDriverClass(driverClass);\n// dataSource.setJdbcUrl(driverClass);\n// dataSource.setUser(driverClass);\n// dataSource.setPassword(driverClass);\n Session session = sessionFactory.openSession();\n\n\n // session\n// Session session = sessionFactory;\n// User user = new User();\n// user.setName(\"lgd\");\n// user.setAge(22);\n// session.save(user);\n System.out.println(\"userInsert is done.\");\n ClearTable clearTable = JsonIO.getClearTable();\n Boolean single;\n String dept;\n if(clearTable.isAll()){\n single = false;\n dept = \"all\";\n } else if(clearTable.isSmt()){\n single = false;\n dept = \"smt\";\n } else if(clearTable.isDip()){\n single = false;\n dept = \"dip\";\n } else {\n single = true;\n dept = \"single\";\n }\n List<String> tableNameList = JsonIO.getTableNames(dept, single);\n StringBuilder allSingle = new StringBuilder();\n for(String tableName: tableNameList){\n String singleSQL = \"\";\n singleSQL = \"truncate table \" + tableName + \";\";\n Transaction ts = session.beginTransaction();\n Query query = session.createSQLQuery(singleSQL.toString());\n query.executeUpdate();\n ts.commit();\n }\n }", "public Connection getConnection(){\n Connection conn = null;\n System.out.println(\"connection called\");\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost/online_bidding_system\",\"root\",\"\");\n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n \n return conn;\n }", "public void setDataSource(BasicDataSource dataSource) {\n this.dataSource = dataSource;\n }", "String afficherDataSource();", "public Connection getConnection() throws ClassNotFoundException, SQLException {\n logger.info(\"Create DB connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n return DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/prod\",\"root\",\"rootroot\");\n }", "public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }" ]
[ "0.72698706", "0.7261198", "0.71839345", "0.7153043", "0.7152229", "0.70692587", "0.69060504", "0.6875751", "0.6791466", "0.6695676", "0.6686115", "0.6680733", "0.65728545", "0.65599424", "0.65525264", "0.6551667", "0.6550833", "0.65365267", "0.6515973", "0.651374", "0.6489717", "0.64505225", "0.64063764", "0.64011544", "0.6384323", "0.63721627", "0.6366528", "0.63661355", "0.63635385", "0.6359367", "0.6348853", "0.6342789", "0.6342789", "0.6330801", "0.6327901", "0.63247716", "0.63006294", "0.62669486", "0.6257773", "0.6253366", "0.6229634", "0.6229388", "0.6227313", "0.6214118", "0.6212584", "0.62097806", "0.6201296", "0.6200667", "0.6197811", "0.61967796", "0.6196362", "0.6168088", "0.61669064", "0.6161035", "0.6161035", "0.6159079", "0.6146896", "0.61414766", "0.6139249", "0.6137586", "0.61247015", "0.61172986", "0.6099605", "0.60931957", "0.6080219", "0.60637754", "0.6055796", "0.60513884", "0.60505915", "0.6044624", "0.6042225", "0.604086", "0.6032522", "0.603023", "0.6024116", "0.5994828", "0.59896517", "0.5962751", "0.5954223", "0.59515786", "0.59482455", "0.5946975", "0.59425557", "0.59364456", "0.59362805", "0.5933695", "0.5932028", "0.59277827", "0.59146297", "0.590574", "0.59037507", "0.59007245", "0.58934265", "0.5891401", "0.5890996", "0.58906144", "0.5886409", "0.58837235", "0.5862494", "0.5857351", "0.5852842" ]
0.0
-1
Get the value of the data column for this Uri. This is useful for MediaStore Uris, and other filebased ContentProviders.
public static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) { Cursor cursor = null; final String column = "_data"; final String[] projection = {column}; try { cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null); if (cursor != null && cursor.moveToFirst()) { final int column_index = cursor.getColumnIndexOrThrow(column); return cursor.getString(column_index); } } finally { if (cursor != null) { cursor.close(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getDataColumn(\n Context context, Uri uri, String selection, String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null) cursor.close();\n }\n return null;\n }", "public String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "private static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "private String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {\r\n Cursor cursor = null;\r\n final String column = \"_data\";\r\n final String[] projection = {column};\r\n try {\r\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int column_index = cursor.getColumnIndexOrThrow(column);\r\n return cursor.getString(column_index);\r\n }\r\n } finally {\r\n if (cursor != null)\r\n cursor.close();\r\n }\r\n return null;\r\n }", "Object getDataValue(String column, int row);", "private static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = MediaStore.MediaColumns.DATA;\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } catch (Exception e) {\n e.printStackTrace();\n if (e != null && !TextUtils.isEmpty(e.getMessage())) {\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } catch (Exception e){\n Log.e(\"hml\",\"e\"+e.toString());\n }finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null) cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {\r\n Cursor cursor = null;\r\n final String column = \"_data\";\r\n final String[] projection = {column};\r\n try {\r\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int column_index = cursor.getColumnIndexOrThrow(column);\r\n return cursor.getString(column_index);\r\n }\r\n } finally {\r\n if (cursor != null)\r\n cursor.close();\r\n }\r\n return null;\r\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\r\n String[] selectionArgs) {\r\n\r\n Cursor cursor = null;\r\n final String column = \"_data\";\r\n final String[] projection = {column};\r\n\r\n try {\r\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int column_index = cursor.getColumnIndexOrThrow(column);\r\n return cursor.getString(column_index);\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n return null;\r\n }", "Object getDataValue(final int row, final int column);", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = { column };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri,\n\t\t\tString selection, String[] selectionArgs) {\n\n\t\tCursor cursor = null;\n\t\tfinal String column = \"_data\";\n\t\tfinal String[] projection = { column };\n\n\t\ttry {\n\t\t\tcursor = context.getContentResolver().query(uri, projection,\n\t\t\t\t\tselection, selectionArgs, null);\n\t\t\tif (cursor != null && cursor.moveToFirst()) {\n\t\t\t\tfinal int column_index = cursor.getColumnIndexOrThrow(column);\n\t\t\t\treturn cursor.getString(column_index);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (cursor != null)\n\t\t\t\tcursor.close();\n\t\t}\n\t\treturn null;\n\t}", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);\n if (cursor != null && cursor.moveToFirst()) {\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n if (DEBUG)\n DatabaseUtils.dumpCursor(cursor);\n\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public static String getDataColumn(Context context, Uri uri,\r\n String selection, String[] selectionArgs) {\r\n Cursor cursor = null;\r\n final String column = MediaStore.Images.ImageColumns.DATA;\r\n final String[] projection = {column};\r\n try {\r\n cursor = context.getContentResolver().query(uri, projection, selection,\r\n selectionArgs, null);\r\n if (cursor != null && cursor.moveToFirst()) {\r\n final int column_index = cursor.getColumnIndexOrThrow(column);\r\n return cursor.getString(column_index);\r\n }\r\n } finally {\r\n if (cursor != null)\r\n cursor.close();\r\n }\r\n return null;\r\n }", "public static String getDataColumn(Context context, Uri uri, String selection,\n String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {\n column\n };\n\n try {\n cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,\n null);\n if (cursor != null && cursor.moveToFirst()) {\n //if (DEBUG)\n DatabaseUtils.dumpCursor(cursor);\n\n final int column_index = cursor.getColumnIndexOrThrow(column);\n return cursor.getString(column_index);\n }\n } finally {\n if (cursor != null)\n cursor.close();\n }\n return null;\n }", "public String getData() {\n\t\treturn this.data;\n\t}", "public String getData() {\r\n return this.data;\r\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "public String getValue() {\n return this.column;\n }", "java.lang.String getData();", "public java.lang.String getData() {\r\n return data;\r\n }", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public String getData() {\r\n\t\treturn data;\r\n\t}", "public String getData() {\n return coreValue();\n }", "public String getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public String getData() {\n\t\treturn getAttribute(DATA_TAG);\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public String getData()\n {\n return data;\n }", "public Object getData(){\n\t\treturn this.data;\n\t}", "public Object getDataValue(String key) {\n\t\t if (data.containsKey(key)) {\n\t\t\t return data.get(key);\n\t\t }\n\t\t return null;\n\t }", "public E getData() {\r\n\t\treturn data;\r\n\t}", "public E getData(){\n\t\t\treturn data;\n\t\t}", "public int getValue() {\n return this.data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "public String value() {\n return this.column;\n }", "String getData();", "public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}", "public DataItem getData() {\n return data;\n }", "public int getData() {\n\t\t\treturn data;\n\t\t}", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public E getData() {\n return data;\n }", "@java.lang.Override\n public godot.wire.Wire.Value getData() {\n return data_ == null ? godot.wire.Wire.Value.getDefaultInstance() : data_;\n }", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "public String data() {\n return this.data;\n }", "@Override\r\n\tpublic E getData() {\n\t\treturn data;\r\n\t}", "public long getData() {\n return data;\n }", "public Object getData() {\n\t\treturn data;\n\t}", "public int getData() {\n return this.data;\n }", "public E getData() { return data; }", "public int getData() {\n\t\treturn data;\n\t}", "public int getData() {\n\t\treturn data;\n\t}", "public Object data() {\n return this.data;\n }", "public static String getUriValue() {\n\t\treturn uriValue;\n\t}", "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "public String getData() {\n\treturn data;\n }", "public int getData()\n\t{\n\t\treturn data;\n\t}" ]
[ "0.64291793", "0.64210624", "0.6408158", "0.6405887", "0.6399965", "0.6399397", "0.63254154", "0.6258916", "0.6243271", "0.62376195", "0.62199485", "0.61844534", "0.61817807", "0.618119", "0.61648256", "0.61645687", "0.61645687", "0.6161506", "0.6158895", "0.6158895", "0.6158895", "0.6158895", "0.6158895", "0.6151561", "0.61311495", "0.61257386", "0.61175627", "0.60850704", "0.6068605", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.60204995", "0.5967247", "0.5941762", "0.59238374", "0.5880432", "0.58783835", "0.58771384", "0.58613867", "0.58576584", "0.58576584", "0.58576584", "0.58576584", "0.5842046", "0.5842046", "0.5838777", "0.5826429", "0.5811622", "0.5809668", "0.5794345", "0.57923526", "0.5787906", "0.5778215", "0.5778215", "0.5778215", "0.5778215", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.57697445", "0.5757549", "0.5754588", "0.5746342", "0.5738087", "0.5736646", "0.5736267", "0.57325464", "0.5729692", "0.57133895", "0.5713321", "0.5712125", "0.57044214", "0.5688296", "0.5680191", "0.5674256", "0.5674256", "0.5659231", "0.5656421", "0.5640972", "0.56239134", "0.56000096" ]
0.61809784
14
TODO Autogenerated method stub
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId) { case R.id.juzz: { int i = selected.size(); for (int j = 0; j < i; j++) { selected.remove(0); } i = selected_ayah_from.size(); for (int j = 0; j < i; j++) { selected_ayah_from.remove(0); } i = selected_ayah_to.size(); for (int j = 0; j < i; j++) { selected_ayah_to.remove(0); } new SelectJuzzDialog(context, "parah"); break; } case R.id.surah: { int i = selected.size(); for (int j = 0; j < i; j++) { selected.remove(0); } i = selected_ayah_from.size(); for (int j = 0; j < i; j++) { selected_ayah_from.remove(0); } i = selected_ayah_to.size(); for (int j = 0; j < i; j++) { selected_ayah_to.remove(0); } new SelectJuzzDialog(context, "surah"); break; } case R.id.ayah: { int i = selected.size(); for (int j = 0; j < i; j++) { selected.remove(0); } i = selected_ayah_from.size(); for (int j = 0; j < i; j++) { selected_ayah_from.remove(0); } i = selected_ayah_to.size(); for (int j = 0; j < i; j++) { selected_ayah_to.remove(0); } new SelectJuzzDialog(context, "ayah"); break; } default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent_upload = new Intent(); intent_upload.setType("audio/*"); intent_upload.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent_upload, 1); }
{ "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 onClick(View v) { if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (Build.VERSION.SDK_INT > 22) { requestPermissions(new String[]{Manifest.permission .READ_EXTERNAL_STORAGE}, REQUEST_PERMISSIONS); /* Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", MainActivity.this.getPackageName(), null); intent.setData(uri); startActivityForResult(intent, REQUEST_PERMISSION_SETTING);*/ // Toast.makeText(MainActivity.this.getBaseContext(), "Go to Permissions to Grant Storage", Toast.LENGTH_LONG).show(); } } else { upload(); } }
{ "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 onClick(View v) { Fragment f = new RecordingFragment(); mng.beginTransaction().replace(R.id.content_frame, f).addToBackStack(null).commit(); }
{ "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 onProgress(long downloaded, long total) { int progress = (int) (downloaded / total * 100); bar.setProgress(progress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onCompleted(Exception e, String result) { if (result.contains("-1")) { filename_server = "-1"; bar.setVisibility(View.GONE); Toast.makeText(context, "Error Uploading File", Toast.LENGTH_LONG).show(); } else { Toast.makeText(context, "File Uploaded", Toast.LENGTH_LONG).show(); bar.setVisibility(View.GONE); filename_server = result; String type = "", title = "", qari_id = "", desc = "", tags = "", surahs = "", download, atype = "2", ayahto = "", ayahfrom = ""; CheckBox ck = (CheckBox) rootView.findViewById(R.id.is_downloadable); if (ck.isChecked()) { download = "down"; } else { download = "1"; } EditText et = (EditText) rootView.findViewById(R.id.et_file_name); title = et.getText().toString(); et = (EditText) rootView.findViewById(R.id.et_upload_file_description); desc = et.getText().toString(); et = (EditText) rootView.findViewById(R.id.et_upload_file_tags); tags = et.getText().toString(); Spinner sp = (Spinner) rootView.findViewById(R.id.select_qari_to_upload); qari_id = reciters.get(sp.getSelectedItemPosition()).getId(); RadioButton rb = (RadioButton) rootView.findViewById(R.id.Quran); if (rb.isChecked()) { type = "3"; } rb = (RadioButton) rootView.findViewById(R.id.ayah); if (rb.isChecked()) { type = "6"; } rb = (RadioButton) rootView.findViewById(R.id.surah); if (rb.isChecked()) { type = "1"; } rb = (RadioButton) rootView.findViewById(R.id.juzz); if (rb.isChecked()) { type = "4"; } if (!type.equals("3") && selected.size() == 0) { new GenericDialogBox(context, "Please Select Verse/Surah/Juz for the uploaded file.", "", "Alert"); b1.setEnabled(true); return; } if (!type.equals("3")) { StringBuilder sb = new StringBuilder(); StringBuilder sb1 = new StringBuilder(); StringBuilder sb2 = new StringBuilder(); for (int i = 0; i < selected.size(); i++) { if (i == selected.size() - 1) { if (type.equals("6")) { sb1.append(selected_ayah_from.get(i)); sb2.append(selected_ayah_to.get(i)); } sb.append(selected.get(i)); } else { if (type.equals("6")) { sb1.append(selected_ayah_from.get(i)).append(","); sb2.append(selected_ayah_to.get(i)).append(","); } sb.append(selected.get(i)).append(","); } } int size = UploadFragment.selected.size(); for (int i = 0; i < size; i++) { selected.remove(0); if (type.equals("6")) { selected_ayah_from.remove(0); selected_ayah_to.remove(0); } } surahs = sb.toString(); ayahfrom = sb1.toString(); ayahto = sb2.toString(); } if (!StringValidator.lengthValidator(context, title, 0,500, "Title")) { b1.setEnabled(true); return; } if (!StringValidator.lengthValidator(context, desc, 0, 500, "Description")) { b1.setEnabled(true); return; } if (!StringValidator.lengthValidator(context, tags, 0, 100, "Tags")) { b1.setEnabled(true); return; } ASyncRequest obj = new ASyncRequest(context, "addTrackEntry"); try { List<BasicNameValuePair> params = new ArrayList<BasicNameValuePair>(); params.add(new BasicNameValuePair("type", type)); params.add(new BasicNameValuePair("title", title)); params.add(new BasicNameValuePair("qari", qari_id)); params.add(new BasicNameValuePair("tags", tags)); params.add(new BasicNameValuePair("desc", desc)); params.add(new BasicNameValuePair("downloadable", download)); params.add(new BasicNameValuePair("path", filename_server)); if (selectedImageUri != null && imagepath_server != null && !imagepath_server.isEmpty()) { params.add(new BasicNameValuePair("image", imagepath_server)); } else { params.add(new BasicNameValuePair("image", "default.gif")); } params.add(new BasicNameValuePair("duration", "00:11:00")); params.add(new BasicNameValuePair("surah", surahs)); if (type.equals("6")) { params.add(new BasicNameValuePair("atype", atype)); params.add(new BasicNameValuePair("ayah_from", ayahfrom)); params.add(new BasicNameValuePair("ayah_to", ayahto)); } String res = obj.execute(params).get(); if (res.equals("1")) { new GenericDialogBox(context, "Uploaded File Saved.", "", "Alert"); mng.popBackStack(); } else { new GenericDialogBox(context, "There was an error saving file.", "", "Alert"); mng.popBackStack(); } } catch (InterruptedException e1) { // TODO Auto-generated catch // block e1.printStackTrace(); } catch (ExecutionException e1) { // TODO Auto-generated catch // block e1.printStackTrace(); } } // ////////////////////////////// }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onProgress(long downloaded, long total) { int progress = (int) (downloaded / total * 100); bar.setProgress(progress); }
{ "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 onCompleted(Exception e, String result) { if (result.equals("-1")) { imagepath_server = null; } else { imagepath_server = result; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Create a view of the given width and height.
public MapView(int height, int width) { stats = new FieldStats(); colors = new LinkedHashMap<>(); setTitle("Map Environment Viewer"); stepLabel = new JLabel(STEP_PREFIX, JLabel.CENTER); infoLabel = new JLabel(" ", JLabel.CENTER); population = new JLabel(POPULATION_PREFIX, JLabel.CENTER); currentEnvironment = "Savanna"; setLocation(500, 50); fieldView = new FieldView(height, width); Container contents = getContentPane(); JPanel infoPane = new JPanel(new BorderLayout()); infoPane.add(stepLabel, BorderLayout.WEST); infoPane.add(infoLabel, BorderLayout.CENTER); contents.add(infoPane, BorderLayout.NORTH); contents.add(fieldView, BorderLayout.CENTER); contents.add(population, BorderLayout.SOUTH); pack(); setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "public ViewSize(int left,int top,int right,int bottom){\n this.left=left;\n this.top=top;\n this.right=right;\n this.bottom=bottom;\n }", "private void setWidthAndHeight(View view, int width, int height) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n if (width >= 0) {\n params.width = width;\n }\n if (height >= 0) {\n params.height = height;\n }\n }", "private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }", "public BufferedImage getImageView(int width, int height) {\n\n\t\tif (width < 0 || height < 0) {\n\t\t\tthrow new IllegalArgumentException(\"view width and view height should be greater than zero\");\n\t\t}\n\t\t\n\t\tif(view.getPlaceHolderAxisNorth() + view.getPlaceHolderAxisSouth() > height ){\n\t\t\tthrow new IllegalArgumentException(\"height is too small, holder north(\"+view.getPlaceHolderAxisNorth()+\") + south(\"+view.getPlaceHolderAxisSouth()+\") size are greater than height(\"+height+\")\");\n\t\t}\n\t\tif(view.getPlaceHolderAxisWest() + view.getPlaceHolderAxisEast() > width ){\n\t\t\tthrow new IllegalArgumentException(\"width is too small, holder west(\"+view.getPlaceHolderAxisWest()+\") + east(\"+view.getPlaceHolderAxisEast()+\") size are greater than width(\"+width+\")\");\n\t\t}\n\t\t\n\n\t\t// image view\n\t\tBufferedImage viewImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\tGraphics viewGraphics = viewImage.getGraphics();\n\n\t\tGraphics2D g2d = (Graphics2D) viewGraphics;\n\n\t\t\n\t\tDimension old = view.getSize();\n\t\t\n\t\tview.setSize(new Dimension(width, height));\n\n\t\t// component part\n\t\tViewPartComponent northPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.North);\n\t\tViewPartComponent southPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.South);\n\t\tViewPartComponent eastPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.East);\n\t\tViewPartComponent westPart = (ViewPartComponent) view.getViewPartComponent(ViewPart.West);\n\t\tDevicePartComponent devicePart = (DevicePartComponent) view.getViewPartComponent(ViewPart.Device);\n\n\t\t// size component\n\t\tnorthPart.setSize(width, view.getPlaceHolderAxisNorth());\n\t\tsouthPart.setSize(width, view.getPlaceHolderAxisSouth());\n\t\teastPart.setSize(view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\t\twestPart.setSize(view.getPlaceHolderAxisWest(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\t\tdevicePart.setSize(view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth());\n\n\t\t// buffered image\n\n\t\tBufferedImage northImage = null;\n\t\tif (view.getPlaceHolderAxisNorth() > 0) {\n\t\t\tnorthImage = new BufferedImage(view.getWidth(), view.getPlaceHolderAxisNorth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D ng2d = (Graphics2D) northImage.getGraphics();\n\t\t\tnorthPart.paintComponent(ng2d);\n\t\t\tng2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage southImage = null;\n\t\tif (view.getPlaceHolderAxisSouth() > 0) {\n\t\t\tsouthImage = new BufferedImage(view.getWidth(), view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D sg2d = (Graphics2D) southImage.getGraphics();\n\t\t\tsouthPart.paintComponent(sg2d);\n\t\t\tsg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage eastImage = null;\n\t\tif (view.getPlaceHolderAxisEast() > 0) {\n\t\t\teastImage = new BufferedImage(view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D eg2d = (Graphics2D) eastImage.getGraphics();\n\t\t\teastPart.paintComponent(eg2d);\n\t\t\teg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage westImage = null;\n\t\tif (view.getPlaceHolderAxisWest() > 0) {\n\t\t\twestImage = new BufferedImage(view.getPlaceHolderAxisWest(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D wg2d = (Graphics2D) westImage.getGraphics();\n\t\t\twestPart.paintComponent(wg2d);\n\t\t\twg2d.dispose();\n\n\t\t}\n\n\t\tBufferedImage deviceImage = null;\n\t\tif (view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast() > 0 && view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth() > 0) {\n\t\t\tdeviceImage = new BufferedImage(view.getWidth() - view.getPlaceHolderAxisWest() - view.getPlaceHolderAxisEast(), view.getHeight() - view.getPlaceHolderAxisNorth() - view.getPlaceHolderAxisSouth(), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D dg2d = (Graphics2D) deviceImage.getGraphics();\n\t\t\tdevicePart.paintComponent(dg2d);\n\t\t\tdg2d.dispose();\n\n\t\t}\n\n\t\t// paint in image view\n\n\t\tRenderingHints qualityHints = new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n\t\tqualityHints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t qualityHints.put(RenderingHints.KEY_DITHERING,\n\t\t RenderingHints.VALUE_DITHER_ENABLE);\n\t\t// qualityHints.put(RenderingHints.KEY_ALPHA_INTERPOLATION,\n\t\t// RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_RENDERING,\n\t\t// RenderingHints.VALUE_RENDER_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_COLOR_RENDERING,\n\t\t// RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n\t\t// qualityHints.put(RenderingHints.KEY_INTERPOLATION,\n\t\t// RenderingHints.VALUE_INTERPOLATION_BICUBIC);\n\t\t// qualityHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n\t\t// RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\t\tg2d.setRenderingHints(qualityHints);\n\n\t\tif (view.getBackgroundPainter() != null) {\n\t\t\tview.getBackgroundPainter().paintViewBackground(view,width,height, g2d);\n\t\t}\n\n\t\tif (northImage != null) {\n\t\t\tg2d.drawImage(northImage, 0, 0, northImage.getWidth(), northImage.getHeight(), null);\n\t\t}\n\n\t\tif (southImage != null) {\n\t\t\tg2d.drawImage(southImage, 0, view.getHeight() - view.getPlaceHolderAxisSouth(), southImage.getWidth(), southImage.getHeight(), null);\n\t\t\tsouthImage.flush();\n\t\t}\n\n\t\tif (eastImage != null) {\n\t\t\tg2d.drawImage(eastImage, view.getWidth() - view.getPlaceHolderAxisEast(), view.getPlaceHolderAxisNorth(), eastImage.getWidth(), eastImage.getHeight(), null);\n\t\t\teastImage.flush();\n\t\t}\n\n\t\tif (westImage != null) {\n\t\t\tg2d.drawImage(westImage, 0, view.getPlaceHolderAxisNorth(), westImage.getWidth(), westImage.getHeight(), null);\n\t\t\twestImage.flush();\n\t\t}\n\n\t\tif (deviceImage != null) {\n\t\t\tg2d.drawImage(deviceImage, view.getPlaceHolderAxisWest(), view.getPlaceHolderAxisNorth(), deviceImage.getWidth(), deviceImage.getHeight(), null);\n\t\t\tdeviceImage.flush();\n\t\t}\n\n\t\tg2d.dispose();\n\t\tviewImage.flush();\n\n\t\t\n\t\tif(old != null)\n\t\t\tview.setSize(old);\n\t\treturn viewImage;\n\t}", "public Framebuffer(int width, int height) {\n\t\tviewWidth = width;\n\t\tviewHeight = height;\n\t\tid = glGenFramebuffers();\n\t}", "Rectangle(int width, int height){\n area = width * height;\n }", "@Override\n\tpublic void resize(int width, int height) {\n\t\tcreate();\n\t}", "ViewElement createViewElement();", "public FieldView(int height, int width)\n {\n gridHeight = height;\n gridWidth = width;\n size = new Dimension(0, 0);\n }", "public void size(final int theWidth, final int theHeight);", "public Size(int w, int h) {\n width = w;\n height = h;\n }", "public static Preview getPreview(int width, int height) {\n // Create configuration object for the preview use case\n PreviewConfig config = new PreviewConfig.Builder()\n .setTargetAspectRatio(new Rational(width, height))\n .setTargetResolution(new Size(width, height))\n .build();\n return new Preview(config);\n }", "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "static Bitmap generate(@NonNull View view) {\n int measureSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n view.measure(measureSpec, measureSpec);\n\n int measuredWidth = view.getMeasuredWidth();\n int measuredHeight = view.getMeasuredHeight();\n\n view.layout(0, 0, measuredWidth, measuredHeight);\n Bitmap bitmap = Bitmap.createBitmap(measuredWidth, measuredHeight, Bitmap.Config.ARGB_8888);\n bitmap.eraseColor(Color.TRANSPARENT);\n Canvas canvas = new Canvas(bitmap);\n view.draw(canvas);\n return bitmap;\n }", "public void setViewPort(int width, int height) {\n String res = Integer.toString(width) + \"x\" + Integer.toString(height);\n this.standardPairs.put(Parameters.VIEWPORT, res);\n }", "private Bitmap getBitmapFromView(View view, int height, int width) {\n Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n Drawable bgDrawable = view.getBackground();\n if (bgDrawable != null)\n bgDrawable.draw(canvas);\n else\n canvas.drawColor(Color.WHITE);\n view.draw(canvas);\n return bitmap;\n }", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public static void bgfx_set_view_rect(@NativeType(\"bgfx_view_id_t\") int _id, @NativeType(\"uint16_t\") int _x, @NativeType(\"uint16_t\") int _y, @NativeType(\"uint16_t\") int _width, @NativeType(\"uint16_t\") int _height) {\n nbgfx_set_view_rect((short)_id, (short)_x, (short)_y, (short)_width, (short)_height);\n }", "void setDimension(double width, double height);", "public Player(int width, int height)\n {\n this.width = width;\n this.height = height;\n createImage();\n }", "public Screen(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tpixels = new int[width * height];\r\n\t}", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "@Override\n public Position setSize(double w, double h) {\n return new Position(w, h);\n }", "@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}", "public GameController(int width, int height) {\n\n this.width=width;\n this.height=height;\n model = new GameModel(width,height);\n view = new GameView(model,this);\n }", "ViewContainer createViewContainer();", "public DrawingArea(int width, int height) {\n\t\tthis.initialize(width, height);\n\t}", "TwoDShape5(double x) {\n width = height = x;\n }", "public Screen(int width, int height){\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\timage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\t\tpixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();\n\t}", "public CanvasDims(int x, int y, int width, int height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }", "public interface ViewFactory {\n\n View provideView(int position);\n\n void release();\n}", "public Rectangle(Integer width, Integer height) {\n super(300, 100, \"red\",null);\n this.width = width;\n this.height = height;\n control = new Control(this);\n }", "public Rectangle(double width, double height) {\r\n this.width = width;\r\n this.height = height;\r\n }", "public Display(int height, int width, String title)\n {\n this.width = width; \n this.height = height; \n this.title = title; \n \n createDisplay();\n }", "Rectangle(int l, int w)\n {\n\tlength = l;\n\twidth = w;\n }", "public RandomPointGenerator(int width, int height) {\n\t\tthis(0, 0, width, height);\n\t}", "public void SetHeightWidth(View view, double width, double height) {\n try {\n if (width == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.height = (int) ((appsingleton.deviceheight) * height);\n } else if (height == 0) {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * height);\n } else {\n ViewGroup.LayoutParams params = view.getLayoutParams();\n params.width = (int) ((appsingleton.devicewidth) * width);\n params.height = (int) ((appsingleton.deviceheight) * height);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public Rectangle(int length, int width) {\n }", "protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }", "public Rectangle(int w, int h) {\n\t\tthis.width = w;\n\t\tthis.height = h;\n\t}", "public Dimension getSize() { return new Dimension(width,height); }", "@Override\n\tpublic void setWidthAndHeight(int width, int height) {\n\t\t\n\t}", "void createPlanetSurface(int width, int height) {\r\n\t\trenderer.surface = new PlanetSurface();\r\n\t\trenderer.surface.width = width;\r\n\t\trenderer.surface.height = height;\r\n\t\trenderer.surface.computeRenderingLocations();\r\n\t\tui.allocationPanel.buildings = renderer.surface.buildings;\r\n\t}", "private View crearImageView(Drawable d, int w, int h) {\n Drawable clone = d.getConstantState().newDrawable();\n clone.setBounds(0, 0, w, h);\n\n ImageView imBkg = new ImageView(getApplicationContext());\n imBkg.setBackground(clone);\n\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(w, h);\n imBkg.setLayoutParams(layoutParams);\n\n imBkg.setBackground(clone);\n\n imBkg.setOnTouchListener(crearListener());\n//\n// imBkg.setMaxWidth(,fotoBase.getWidth(),fotoBase.getHeight()));\n return imBkg;\n\n }", "public GameDisplay(int width, int height) {\n this.width = width;\n this.height = height;\n setPreferredSize(new Dimension(width, height));\n setOpaque(true);\n setDoubleBuffered(false);\n\n buffer = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n Graphics g = buffer.getGraphics();\n g.setColor(Color.BLACK);\n g.fillRect(0, 0, width, height);\n }", "public void initResolution(int height, int width, double viewAngle) {\n\t\tthis.resolutionX = width;\n\t\tthis.resolutionY = height;\n\t\tthis.plainWidth = 2.0 * Math.tan(Math.toRadians(viewAngle / 2.0)) * this.distanceToPlain;\n\t}", "public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) {\n Bitmap bitmap = null;\n int bitmapWidth = Math.round(bounds.width());\n int bitmapHeight = Math.round(bounds.height());\n if (bitmapWidth > 0 && bitmapHeight > 0) {\n float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));\n bitmapWidth *= scale;\n bitmapHeight *= scale;\n matrix.postTranslate(-bounds.left, -bounds.top);\n matrix.postScale(scale, scale);\n bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n canvas.concat(matrix);\n view.draw(canvas);\n }\n return bitmap;\n }", "public native void createRenderWindow(final int width, final int height, final long handle);", "public void setSize(float width, float height);", "public char[][] makeView(int x_center, int y_center, int width_from_center, int height_from_center) {\n char[][] view = new char[1 + 2 * height_from_center][1 + 2 * width_from_center];\n int y_index = 0;\n for (int y = y_center - height_from_center; y <= y_center + height_from_center; ++y) {\n int x_index = 0;\n for (int x = x_center - width_from_center; x <= x_center + width_from_center; ++x) {\n view[y_index][x_index] = this.getTileRepresentation(x, y);\n ++x_index;\n }\n ++y_index;\n }\n return view;\n }", "public SVGView(ReadAnimationModel r, int width, int height) {\n if (r == null) {\n throw new IllegalArgumentException(\"model cannot be null\");\n }\n speed = 1000;\n model = Objects.requireNonNull(r);\n this.width = width;\n this.height = height;\n }", "public abstract void init(int w, int h);", "public EasyAnimatorSVGViewImpl(Appendable output, int width, int height) throws\n IllegalArgumentException {\n super(output);\n if (width <= 0 || height <= 0) {\n throw new IllegalArgumentException(\"Width and height have to be greater than 0.\");\n }\n this.myStringBuilder = new StringBuilder(); // StringBuilder that gathers all input from model\n // and converts it to svg code as a String.\n this.height = height;\n this.width = width;\n this.initScene();\n }", "public FieldView(int height, int width, Model model)\n {\n// super(model);\n \tgridHeight = height;\n gridWidth = width;\n size = new Dimension(0, 0);\n }", "public void createRectangle(double x, double y, double width, double height) {\r\n GRect rectangle = new GRect(x, y, width, height);\r\n rectangle.setFilled(true);\r\n rectangle.setFillColor(Color.GRAY);\r\n rectangle.setColor(Color.WHITE);\r\n add(rectangle);\r\n }", "public static Bitmap createBitmap(int width, int height) {\n Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n bitmap.setHasAlpha(true);\n return bitmap;\n }", "public Rectangle(double newWidth, double newHeight) {\n\t\tif (width >= 0 && height >= 0) {\n\t\t\twidth = newWidth;\n\t\t\theight = newHeight;\n\t\t}\n\t\t\t\n\t}", "public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }", "public Element(int width, int height) {\n this.visible = true;\n\n this.width = width;\n this.height = height;\n\n this.borderWidth = 0;\n this.borderColour = DEF_BORDER_COLOUR;\n this.fillColour = DEF_FILL_COLOUR;\n }", "protected Pane(int length, int height) {\r\n if (length == 0 || height == 0) {\r\n throw new IllegalArgumentException(\"Length and height of pane must be greater than zero\");\r\n }\r\n\r\n this.length = length;\r\n this.height = height;\r\n\r\n this.priority = Priority.NORMAL;\r\n this.visible = true;\r\n\r\n this.uuid = UUID.randomUUID();\r\n }", "Rectangle(){\n height = 1;\n width = 1;\n }", "public Rectangle2D getView() {\r\n return new Rectangle2D.Double(minX, minY, maxX - minX, maxY - minY);\r\n }", "@CalledByNative\n private static Rect createRect(int x, int y, int right, int bottom) {\n return new Rect(x, y, right, bottom);\n }", "public Shape()\n {\n this(Anchor.CENTER.anchoredAt(Anchor.CENTER.ofView()).sized(100, 100));\n }", "public Rectangle(int x, int y, int w, int h) {\n this.x = x;\n this.y = y;\n this.size = new Dimension(w, h);\n }", "public JPanel drawToJPanel(int width, int height) {\n width = ((width - XOffSet) / increments) * increments + XOffSet; //shearing anything not %increments\n height = ((height - YOffSet) / increments) * increments + YOffSet;\n JPanel p = new GraphPanel(this, width, height);\n p.setPreferredSize(new Dimension(width + XOffSet, height + YOffSet));\n p.setSize(width * 2, height);\n return p;\n }", "public static Dimension createDimension(double width, double height) {\n Dimension dimension = new Dimension();\n dimension.setHeight(height);\n dimension.setWidth(width);\n return dimension;\n }", "public PongGUI(int width, int height){\r\n\t\tsWidth = width;\r\n\t\tsHeight = height;\r\n\t}", "Box(double h, double w, Double d){\r\n\r\n Height = h;\r\n Width = w;\r\n Depth = d;\r\n }", "public X size(int width, int height) {\n component.setSize(width, height);\n return (X) this;\n }", "Viewpoint createViewpoint();", "abstract public VideoDefinition createVideoDefinition(int width, int height);", "public abstract boolean init(int width, int height);", "public AStar2D(int width, int height) {\n super( new Grid2D(width, height) );\n }", "public View create(Element elem, int p0, int p1) {\n return null;\n }", "public RectangleObject(double width, double height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t}", "public Picture(int width, int height)\n {\n // let the parent class handle this width and height\n super(width,height);\n }", "public Picture(int width, int height)\n {\n // let the parent class handle this width and height\n super(width,height);\n }", "public RandomPointGenerator(int width, int height) {\n\t\tmaxX = width;\n\t\tmaxY = height;\n\t}", "@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }", "public native void createRenderWindowGlContext(final int width, final int height);", "Rectangle(int width, int height){\n area = width * height;\n System.out.println(\"Area of a rectangle = \" +area);\n }", "protected void createRect()\r\n\t{\r\n\t\trect = new Rectangle(getX(),getY(),width,height);\r\n\t}", "@Override\n public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n GL2 gl = drawable.getGL().getGL2(); // get the OpenGL 2 graphics context\n\n if (height == 0) height = 1; // prevent divide by zero\n double aspect = (double)width / height;\n\n // Set the view port (display area) to cover the entire window\n gl.glViewport(0, 0, width, height);\n\n // Setup perspective projection, with aspect ratio matches viewport\n gl.glMatrixMode(GL_PROJECTION); // choose projection matrix\n gl.glLoadIdentity(); // reset projection matrix\n glu.gluPerspective(45.0, aspect, 0.1, 100.0); // fovy, aspect, zNear, zFar\n\n // Enable the model-view transform\n gl.glMatrixMode(GL_MODELVIEW);\n gl.glLoadIdentity(); // reset\n }", "public static void drawRectangle(double width, double height) {\n gl.glPushMatrix();\n gl.glScaled(width, height, 1);\n gl.glBegin(GL.GL_TRIANGLE_FAN);\n gl.glVertex3d(-0.5, -0.5, 0);\n gl.glVertex3d(0.5, -0.5, 0);\n gl.glVertex3d(0.5, 0.5, 0);\n gl.glVertex3d(-0.5, 0.5, 0);\n gl.glEnd();\n gl.glPopMatrix();\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}", "public SquareGrid(int width, int height) {\n this.width = width;\n this.height = height;\n }", "public Image( int x, int y, int w, int h )\r\n {\r\n super();\r\n setBounds( x, y, w, h );\r\n }", "public DrawingArea(int width, int height, int cpWidth) {\n super(null);\n this.width = width - cpWidth;\n this.height = height;\n setBounds(cpWidth, 0, this.width, this.height);\n originX = this.width/2;\n originY = this.height/2;\n setBackground(Color.white);\n drawingArea = createImage(this.width, this.height);\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "public static View createDraggerView() {\n\n\t\tmViewContent = new ImageView(mContext);\n\t\tmViewContent.setImageDrawable(Util.makeCircle(mColor, mCircleDiameter));\n\n\t\trefreshScreenSize();\n\n\t\tmContentParamz = new WindowManager.LayoutParams(\n\t\t\tmCircleDiameter,\n\t\t\tmCircleDiameter,\n\t\t\tWindowManager.LayoutParams.TYPE_PHONE,\n\t\t\t0 | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN |\n\t\t\tWindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |\n\t\t\tWindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL |\n\t\t\tWindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH,\n\t\t\tPixelFormat.TRANSLUCENT);\n\t\tmContentParamz.gravity = Gravity.TOP | Gravity.LEFT;\n\t\tUtil.addPrivateFlagNoMoveAnimationToLayoutParam(mContentParamz);\n\t\tmContentParamz.x = (mScreenWidth / 2) - (mCircleDiameter / 2);\n\t\tmContentParamz.y = (mScreenHeight / 2) - (mCircleDiameter / 2);\n\t\tmViewContent.setLayoutParams(mContentParamz);\n\t\treturn mViewContent;\n\t\t//return null;\n\t}", "ViewComponent createViewComponent();", "private void createDrawingView() {\r\n mDrawingView = new DrawingView(mContext);\r\n LinearLayout mDrawingPad = (LinearLayout) findViewById(R.id.drawing_pad);\r\n mDrawingPad.addView(mDrawingView);\r\n }", "protected Pane(int x, int y, int length, int height) {\r\n this(x, y, length, height, Priority.NORMAL);\r\n }", "public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) {\n winW = width;\n winH = height;\n\n gl.glViewport(0, 0, width, height);\n}", "private void createScene() \n {\n PlatformImpl.startup(\n new Runnable() {\n public void run() { \n Group root = new Group(); \n Scene scene = new Scene(root, 80, 20); \n SizeView sizeview = createSizeView(scene);\n root.getChildren().add(sizeview);\n jfxPanel.setScene(scene); \n } \n }); \n }", "private Button buildWithDimensions(Button button, int width, int height) {\n button.setPreferredSize(new Dimension(width, height));\n return button;\n }", "public Rectangle() {\n this(50, 40);\n }", "public Rectangle(Point upperLeft, double width, double height) {\n this.upperLeft = upperLeft;\n this.width = width;\n this.height = height;\n }", "public Canvas(int width, int height) {\n if(width<=0) {\n throw new IllegalArgumentException(\"Width cannot be less than or equal to zero\");\n } else if(height<=0) {\n throw new IllegalArgumentException(\"Height cannot be less than or equal to zero\");\n }\n this.width = width;\n this.height = height;\n\n drawingArray = new char[height][width];\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n drawingArray[i][j] = ' ';\n }\n }\n undoStack = new DrawingStack();\n redoStack = new DrawingStack();\n }" ]
[ "0.63822573", "0.63739735", "0.61605936", "0.6076618", "0.6063064", "0.6040858", "0.5892899", "0.58914596", "0.5890624", "0.5863181", "0.5848273", "0.5843156", "0.58408177", "0.580383", "0.57758063", "0.57569635", "0.575656", "0.5754349", "0.5740277", "0.5728187", "0.5725685", "0.5719468", "0.5708523", "0.57005507", "0.56925964", "0.5685731", "0.56510824", "0.5643565", "0.5629684", "0.56244886", "0.5605797", "0.559775", "0.5591744", "0.55900335", "0.5574554", "0.5573728", "0.5565511", "0.5554536", "0.55544025", "0.5545491", "0.55407757", "0.55186355", "0.54997385", "0.54959244", "0.5491576", "0.5467677", "0.546408", "0.54619074", "0.5459096", "0.54577726", "0.5441334", "0.5418767", "0.5411448", "0.5404777", "0.53938586", "0.5388025", "0.53877515", "0.5382391", "0.537946", "0.537298", "0.5370633", "0.5368022", "0.53664756", "0.5365147", "0.5364791", "0.53544164", "0.534264", "0.53421855", "0.53367144", "0.53363246", "0.5329058", "0.53285605", "0.53246343", "0.5322293", "0.53162295", "0.5301512", "0.5300729", "0.53002006", "0.53002006", "0.52784336", "0.5276817", "0.527563", "0.52724826", "0.5262435", "0.52533144", "0.52476025", "0.5238764", "0.52330977", "0.52277035", "0.52269113", "0.52186656", "0.5217863", "0.521312", "0.52122355", "0.5207425", "0.5206098", "0.5191512", "0.519003", "0.5186809", "0.5180817", "0.51746935" ]
0.0
-1
A setter method for the environment instance variable.
public void setCurrentEnvironment(String environment) { currentEnvironment = environment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String setEnvironmentProperty(String key, String value);", "public void set(String name, String value)\n {\n envMap.put(name,name+\"=\"+StringUtil.nonNull(value));\n }", "@Override\n\tpublic void setEnvironment(Environment environment) {\n\t\tSystem.out.println(\"call setEnvironment()...\");\n\t\tenv = environment;\n\t}", "void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "public void setEnvironment(Object environment) {\n this.environment = environment;\n }", "public void setEnv(byte[] name, byte[] value){\n synchronized(this){\n getEnv().put(name, value);\n }\n }", "public void setEnvironment(Map<String, String> environment);", "protected void setEnvironment(Map<String, String> env) {\n\t\tthis.environment = env;\n\t}", "private void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "void setEnvironment(Properties properties);", "private static void setEnvironmentVariable(String key, String value) throws NoSuchFieldException, IllegalAccessException {\n\n Map<String, String> env = System.getenv();\n Class<?> cl = env.getClass();\n\n Field field = cl.getDeclaredField(\"m\");\n field.setAccessible(true);\n\n Object obj = field.get(env);\n @SuppressWarnings(\"unchecked\")\n Map<String, String> map = (Map<String, String>) obj;\n map.put(key, value);\n\n }", "public void setEnvironmentPropertyName(String environmentPropertyName) {\n \n this.environmentPropertyName = environmentPropertyName;\n }", "public void setEnv(final String value) {\n\n env = StringUtils.trim(value);\n }", "public void setGameEnvironment(GameEnvironment gameEnvironment) {\r\n this.gameE = gameEnvironment;\r\n }", "@Override\n\tpublic void setEnvironmentVars(String environmentVars) {\n\t\tmodel.setEnvironmentVars(environmentVars);\n\t}", "public void setEnvironmentFrame(final EnvironmentFrame frame) {\n\t\tmyEnvFrame = frame;\n\t}", "T setSystemProperty(String key, String value);", "public void setEnvironment(String environment1) {\n this.environment = environment1;\n }", "public void setEnvironment(PanelEnvironment aEnvironment) \r\n\t{\r\n\t\tthis.panelEnvironment = aEnvironment;\r\n\t\tif( this.panelEnvironment == null ) {\r\n\t\t\tthis.panelEnvironment = new NullPanelEnvironment();\r\n\t\t}\r\n\t}", "public void addToEnvironment(String key, String value) {\n\t\tthis.environment.setProperty(key, value);\n\t}", "@Autowired\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n }", "public void setEnvironment(Environment environment) {\r\n this.environment = environment;\r\n\r\n changeServerListener = (ChangeListener<Worker.State>) (ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) -> {\r\n switch (newValue) {\r\n case FAILED:\r\n System.err.println(windowsService.getException());\r\n break;\r\n case CANCELLED:\r\n break;\r\n case RUNNING:\r\n serviceField.setDisable(true);\r\n progressService.setVisible(true);\r\n break;\r\n case SUCCEEDED:\r\n this.environment.getServer().getListService().addAll(windowsService.getValue());\r\n serviceField.setItems(windowsService.getValue());\r\n serviceField.setDisable(false);\r\n progressService.setVisible(false);\r\n break;\r\n }\r\n };\r\n windowsService = new ListWindowsService(this.environment.getServer());\r\n windowsService.stateProperty().addListener(changeServerListener);\r\n nameField.setText(this.environment.getName());\r\n hostField.setText(this.environment.getIP());\r\n portField.setText(Integer.toString(this.environment.getPort()));\r\n loginField.setText(this.environment.getLogin());\r\n passwordField.setText(this.environment.getPassword());\r\n MOMPathField.setText(this.environment.getPathMOM());\r\n serverField.setValue(this.environment.getServer());\r\n serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {\r\n if (newValue != null) {\r\n environment.setServer(newValue);\r\n }\r\n });\r\n\r\n serverField.valueProperty().addListener((ObservableValue<? extends Server> observable, Server oldValue, Server newValue) -> {\r\n if (newValue != null) {\r\n windowsService = new ListWindowsService(newValue);\r\n windowsService.stateProperty().addListener(changeServerListener);\r\n windowsService.restart();\r\n }\r\n });\r\n serviceField.setItems(this.environment.getServer().getListService());\r\n serviceField.setValue(this.environment.getService());\r\n if (this.environment.getServer().getName() == null) {\r\n serviceField.setDisable(true);\r\n }\r\n\r\n }", "public Builder setEnv(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvIsMutable();\n env_.set(index, value);\n onChanged();\n return this;\n }", "public void setEnvironmentParams(String[] environmentParams)\r\n\t{\r\n\t\tthis.environmentParams = environmentParams;\r\n\t}", "public SetEnvCommand() {\n }", "void setEnvironmentFile(File environmentFile);", "public interface EnvironmentAware extends Aware{\n void setEnvironment(Environment ev);\n}", "public synchronized void setEnvironment(TestEnvironment environment) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n for (TestEnvironment.Element elem : environment.elementsUsed()) {\n // this is stunningly inefficient and should be fixed\n env = PropertyArray.put(env, elem.getKey(), elem.getValue());\n }\n }", "protected static IOutputEnvView setTheEnv(IOutputEnvView outEnvView ){\n\t\t\treturn outEnvView;\n\t\t}", "public final void setSamenv(java.lang.String samenv)\n\t{\n\t\tsetSamenv(getContext(), samenv);\n\t}", "public Builder addEnv(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvIsMutable();\n env_.add(value);\n onChanged();\n return this;\n }", "public void addToEnvironment(String line) {\n\t\tint equalsIndex = line.indexOf('=');\n\t\tif (equalsIndex > 0) {\n\t\t\tenvironment.setProperty(line.substring(0, equalsIndex),line.substring(equalsIndex + 1));\n\t\t}\t\t\n\t}", "public void setEnvironment(Environment oldEnvironment) {\n this.oldEnvironment = oldEnvironment;\n\n //set the old values\n editTxtName.setText(oldEnvironment.getName());\n editTxtDesc.setText(oldEnvironment.getDesc());\n editClrColor.setValue(oldEnvironment.getColor());\n }", "public static final String setSystemProperty(String key, String value) {\n\t\tif (!saveInSystem) {\n\t\t\tlog.warn(\"Attempting to set System Property \" + key + \" to \"\n\t\t\t\t\t+ value\n\t\t\t\t\t+ \" but the file System Properties have not yet been read.\");\n\t\t}\n\t\treturn System.setProperty(key, value);\n\t}", "public void setEnvironment(Configuration config) {\n _environment = config;\n }", "void setEnvironment(CudaEnvironment environment);", "void set(ExecutionContext context, String propertyName, Value propertyValue);", "@Override\n public void setEnvironment(Environment environment) {\n this.environment = environment;\n this.propertyResolver = new RelaxedPropertyResolver(environment, \"spring.datasource.\");\n }", "public static void set_SetName(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSetNameCmd, v);\n UmlCom.check();\n \n _set_name = v;\n }", "void setTipoEnvio(TipoEnvio tipoEnvio);", "public IRubyObject setClassVar(String name, IRubyObject value) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) {\n return module.storeClassVariable(name, value);\n }\n } while ((module = module.getSuperClass()) != null);\n \n return storeClassVariable(name, value);\n }", "public static void setEnvironmentProvider(EnvironmentDetector environmentDetector)\n {\n getIntern().setEnvironmentProvider(environmentDetector);\n }", "private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }", "public void setSystemProperties() {\n Properties systemP = System.getProperties();\n Enumeration e = systemP.propertyNames();\n while (e.hasMoreElements()) {\n String propertyName = (String) e.nextElement();\n String value = systemP.getProperty(propertyName);\n this.setPropertyInternal(propertyName, value);\n }\n }", "public final void setProperty(String key, Object value) {\n/* 57 */ Launch.blackboard.put(key, value);\n/* */ }", "public void setGameEnvironment(GameEnvironment ge) {\n this.gameEnvironment = ge;\n }", "public String getEnvironment() {\n return environment;\n }", "public void set(String name, Object value) {\n }", "public void setJvm( final String jvm )\n {\n m_jvm = jvm;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void addEnvEntry (String name, Object value)\n {\n if (_envMap == null)\n _envMap = new HashMap();\n\n if (name == null)\n log.warn (\"Name for java:comp/env is null. Ignoring.\");\n if (value == null)\n log.warn (\"Value for java:comp/env is null. Ignoring.\");\n\n _envMap.put (name, value);\n }", "public void setApplication(String attName, Object value) {\n servletRequest.getServletContext().setAttribute(attName, value);\n }", "public void addEnvEntry (String name, String value)\n {\n _plusWebAppContext.addEnvEntry(name, value);\n }", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public Verif() {\n\t\tenv = new Environ();\n\t}", "public String getEnv() {\n\n return env;\n }", "public final void setSamenv(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String samenv)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Samenv.toString(), samenv);\n\t}", "public void setVars() {\n\t\tif (jEdit.getPlugin(\"console.ConsolePlugin\") != null) {\n\t\t\tconsole.ConsolePlugin.setSystemShellVariableValue(\"LUAJ\", getLuaJ());\n\t\t}\n\t}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "void setSystem(java.lang.String system);", "public native void set(T value);", "protected void SetVariable(SB_ExecutionFrame contextFrame, SB_Variable var)\r\n\t throws SB_Exception\r\n\t{\r\n\t\tSB_Variable classVar = contextFrame.GetVariable(_varName);\r\n\t\t\t\t\r\n\t\tif( classVar != null)\r\n\t\t{\r\n\t\t Object obj = classVar.getValue();\r\n\t\t\tClass cls = obj.getClass();\r\n\t\t\t\r\n\t\t\tif( !SetClassMemberField(cls, obj, _varMember, SB_SimInterface.ConvertObject(var)))\r\n\t\t\t{\r\n\t\t\t throw new SB_Exception(\"Can't find \" + _varName +\".\" + _varMember);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void setEnv() throws IOException {\n\t\tBuildURL.propReader = new PropertyReader(App.getResourcesFilePath() + FileSystems.getDefault().getSeparator() + App.getConfigFileRoot() + \"configuration.properties\");\n\t\tBuildURL.baseURL = propReader.readValue(\"baseURL\");\n\t\tBuildURL.domain = propReader.readValue(\"domain\");\n\t\tBuildURL.project = propReader.readValue(\"project\");\n\n\t\tif(propReader.readValue(\"login_form_required\").equalsIgnoreCase(\"Y\")){\n\t\t\tlogin_required_string = \"?login-form-required=y\";\n\t\t}else{\n\t\t\tlogin_required_string = \"\";\n\t\t}\n\t}", "@VisibleForTesting\n public static void setProperty(String theKey, String theValue) {\n getProperties().setProperty(theKey, theValue);\n }", "public boolean setPropertyValue(String propName, String value) {\n System.setProperty(propName, value);\n return true;\n }", "public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "void setDevkey(String devkey);", "@Override\n\tpublic Environment<String, V> getEnvironment() {\n\t\treturn null;\n\t}", "public void setEnvironmentName(String environmentName) {\n this.environmentName = environmentName;\n }", "public void setEnvironment(final String currentEnvironmentName) {\n setConfigurationAndLog(FlexibleSearchDeploymentEnvironmentDAO.CURRENT_ENVIRONMENT_CONF, currentEnvironmentName);\n }", "public void setProperty(String name,Object value)\n {\n ClassAnalyzer.setProperty(m_Source,name,value);\n }", "public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}", "public void set(String key, String value)\n {\n settings.setProperty(key, value);\n }", "final public void setProperty(String key, String value) {\n logger.info(\"Kylin Config was updated with \" + key + \" : \" + value);\n properties.setProperty(BCC.check(key), value);\n }", "public Environment environment()\n {\n return theEnv;\n }", "public void set(String s);", "@Test\n public void testSetOs() {\n System.out.println(\"setOs\");\n String os = \"\";\n VM instance = null;\n instance.setOs(os);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}", "public void setProperty(String name,Object value);", "public void set(final V value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "public void setValue(String value);", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public final void setEnvironmentCode(java.lang.String environmentcode)\r\n\t{\r\n\t\tsetEnvironmentCode(getContext(), environmentcode);\r\n\t}", "public void setValue(String value)\n {\n this.value = value;\n }", "public abstract void setValue(ELContext context, Object value);", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public void setValue(String value) {\n set (value);\n }", "void setValue(String value);", "void setValue(String value);", "@Override\n public void setConfiguration(Environment environment) {\n this.xmlConfigFile = environment.getProperty(\"challenges.xmlconfig\");\n this.xmlConfigSchema = environment.getProperty(\"challenges.xmlschema\");\n }", "public void set(int value){\n val = value;\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }" ]
[ "0.7084325", "0.7042908", "0.69118834", "0.68582004", "0.6847171", "0.6704886", "0.66651374", "0.65422964", "0.6444069", "0.6421889", "0.64207053", "0.62975395", "0.62399626", "0.6190942", "0.6161479", "0.6157766", "0.6100371", "0.60391575", "0.60339946", "0.6021397", "0.5993522", "0.5949135", "0.59450877", "0.59212846", "0.5915051", "0.5842567", "0.57904977", "0.578084", "0.5774483", "0.57719845", "0.5741459", "0.5741209", "0.5715713", "0.56668717", "0.5665139", "0.5626672", "0.5529877", "0.55295944", "0.5513276", "0.5496797", "0.5490769", "0.54890007", "0.5484951", "0.54790753", "0.54661775", "0.54631954", "0.5452947", "0.5444669", "0.5425959", "0.5421831", "0.541991", "0.54151225", "0.53841525", "0.5382805", "0.5370407", "0.5367135", "0.53668904", "0.5364405", "0.5361558", "0.5355761", "0.5349275", "0.533347", "0.5326389", "0.5320462", "0.5316945", "0.5314695", "0.53088945", "0.52948093", "0.52893656", "0.52849257", "0.52766126", "0.52559507", "0.52493495", "0.5237659", "0.523327", "0.52300704", "0.52092123", "0.52083355", "0.52070034", "0.52007884", "0.51970327", "0.51937485", "0.5185169", "0.5185169", "0.5185169", "0.5185169", "0.51764846", "0.51743364", "0.51733935", "0.51712114", "0.5170529", "0.5170332", "0.51473355", "0.51473355", "0.5142595", "0.51423407", "0.51422036", "0.51422036", "0.51422036", "0.51422036" ]
0.57609844
30
Displays the environments using different colors.
public void showStatus(Field field) { stepLabel.setText(""); stats.reset(); fieldView.preparePaint(); for(int row = 0; row < field.getDepth(); row++) { for(int col = 0; col < field.getWidth(); col++) { if(col <= field.getSavannaEnvironment().getEndCol()) { if(!"Savanna".equals(currentEnvironment)) { fieldView.drawMark(col, row, Color.gray); } else { fieldView.drawMark(col, row, Color.YELLOW); } } else if(col > field.getSavannaEnvironment().getEndCol() && col <= field.getForestEnvironment().getEndCol()) { if(!"Forest".equals(currentEnvironment)) { fieldView.drawMark(col, row, Color.gray); } else { fieldView.drawMark(col, row, Color.GREEN); } } else { if(!"Desert".equals(currentEnvironment)) { fieldView.drawMark(col, row, Color.gray); } else { fieldView.drawMark(col, row, Color.ORANGE); } } } } stats.generateCounts(field); stats.countFinished(); population.setText(POPULATION_PREFIX + stats.getPopulationDetails(field, currentEnvironment)); fieldView.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }", "private static void printColor() {\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tSystem.out.print(String.format(\"%d for %s\", i + 1, colors[i]));\n\t\t\tif (i != colors.length - 1) {\n\t\t\t\tSystem.out.print(\", \"); // Separate colors with comma\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\")\"); // Print a new line for the last color option\n\t\t\t}\n\t\t}\n\t}", "public static void main (String[] args) {\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\\033[90m\",\"ANDALUCÍA \",\"\\033[40m\");\n //System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"ANDALUCÍA \",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[107m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\");\n System.out.printf (\"%s%20s%s\\n\",\"\\033[42m\",\"\",\"\\033[40m\"); \n \n \n }", "public static void printColor(String[] colors){\n for(int i=0; i<colors.length; i++){\n System.out.println(colors[i]);\n }\n }", "static void welcome() {\n System.out.println(getAnsiRed() + \"\\n\" +\n \"███████╗████████╗██████╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██████╗ \\n\" +\n \"██╔════╝╚══██╔══╝██╔══██╗██╔══██╗████╗ ██║██╔════╝ ██╔════╝██╔══██╗\\n\" +\n \"███████╗ ██║ ██████╔╝███████║██╔██╗ ██║██║ ███╗█████╗ ██████╔╝\\n\" +\n \"╚════██║ ██║ ██╔══██╗██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██╔══██╗\\n\" +\n \"███████║ ██║ ██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗██║ ██║\\n\" +\n \"╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝\\n\" +\n \" ██████╗ █████╗ ███╗ ███╗███████╗ \\n\" +\n \" ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ \\n\" +\n \" ██║ ███╗███████║██╔████╔██║█████╗ \\n\" +\n \" ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ \\n\" +\n \" ╚██████╔╝██║ ██║██║ ╚═╝ ██║███████╗ \\n\" +\n \" ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ \\n\" +\n getAnsiReset());\n\n System.out.println(\"\\n\" +\n \" Built by Team NullPointer (Team 5)\\n\" +\n \" Neill Perry (https://github.com/neillperry)\\n\" +\n \" Bruce West (https://github.com/BruceBAWest)\\n\" +\n \" Tapan Trivedi (https://github.com/tapantriv)\\n\" +\n \" TLG Learning: Capstone Java Project\\n\" +\n \" https://github.com/NullPointer-Team\");\n }", "public String showColor(){\r\n\t\tSystem.out.println(\"The color of this fruit is \" + color);\r\n\t\treturn color;}", "public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}", "public static void main(String[] args) {\n boolean useBlackAndWhite = false;\n for (int i = 0; i < args.length; i++) {\n //System.out.println(\"args[\" + i + \"] = \" + args[i]);\n if (args[i].equals(\"-b\")) {\n System.out.println(\"Use Black And White\");\n useBlackAndWhite = true;\n }\n }\n new MainFrame(new EnvironmentExplorer(true, useBlackAndWhite), 950, 600);\n }", "public void colorInfo() {\n\t\tSystem.out.println(\"Universal Color\");\n\t}", "public void showHue()\r\n {\r\n\tshowHue(\"Hue\");\r\n }", "public void display() {\n System.out.println(\"显示浅蓝色文本框\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tchar color ='g';\n\t\t\n\t\tswitch(color) {\n\t\tcase 'r': System.out.println(\"red\");\n\t\tcase 'b': System.out.println(\"blue\");\n\t\tcase 'g': System.out.println(\"green\");\n\t\t\n\t\t}}", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "@Override\n\tpublic void color() {\n\t\tSystem.out.println(\"Colour is red\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tList<String> colors=new ArrayList<String>();\r\n\t\tcolors.add(\"Blue\");\r\n\t\tcolors.add(\"Black\");\r\n\t\tcolors.add(\"Red\");\r\n\t\tcolors.add(\"Magenta\");\r\n\t\tcolors.add(\"Yellow\");\r\n\t\tSystem.out.println(colors);\r\n\t\tfor(String x:colors) {\r\n\t\t\tSystem.out.println(x);\r\n\t\t}\r\n\t}", "public interface Colors\n {\n // Restore default\n String RESTORE = \"\\033[0m\";\n \n // Default colors\n String BLACK = \"\\033[1;30m\"; // Black\n String RED = \"\\033[1;31m\"; // Red\n String GREEN = \"\\033[1;32m\"; // Green\n String YELLOW = \"\\033[1;33m\"; // Yellow\n String BLUE = \"\\033[1;34m\"; // Blue\n String PURPLE = \"\\033[1;35m\"; // Purple\n String CYAN = \"\\033[1;36m\"; // Cyan\n String WHITE = \"\\033[1;37m\"; // White\n }", "public void fillColor() {\n\t\tSystem.out.println(\"Blue color\");\n\t}", "public void Blueprint(){\r\n System.out.println(\"House features:\\nSquare Footage - \" + footage + \r\n \"\\nStories - \" + stories + \"\\nBedrooms - \" + bedrooms + \r\n \"\\nBathrooms - \" + bathrooms + \"\\n\");\r\n }", "public static void main (String[] args)\n {\n ResourceManager rsrcmgr = new ResourceManager(\"rsrc/\");\n MessageManager msgmgr = new MessageManager(\"rsrc.i18n\");\n ConfigManager cfgmgr = new ConfigManager(rsrcmgr, msgmgr, \"config/\");\n ColorPository colorpos = ColorPository.loadColorPository(rsrcmgr);\n new ConfigEditor(msgmgr, cfgmgr, colorpos).setVisible(true);\n }", "public static void win(){\n System.out.println(\"\\n\" + getAnsiGreen() +\n \"██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\\n\" +\n \"╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\\n\" +\n \"░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\\n\" +\n \"░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\\n\" +\n \"░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\\n\" +\n \"░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\\n\" +\n \"\\n\" +\n \"░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\\n\" +\n \"██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\\n\" +\n \"██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\\n\" +\n \"██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\\n\" +\n \"╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\\n\" +\n \"░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝\" + getAnsiReset());\n\n try {\n TimeUnit.SECONDS.sleep(1);\n System.out.println(\"You feel movement in your belly...\");\n startNewOrQuitGame();\n } catch (InterruptedException e) {\n System.out.println(\"Something wrong with the Game!!!\");\n }\n }", "public static void printColor(String color){\n System.out.println(color);\n }", "private static void Display()\n\t{\n\t\tStringBuilder memoryValues = new StringBuilder();\n\t\tSystem.out.println(\"\\nPipleline Stages: \");\n\t\tif (stages.get(\"F\") != null)\n\t\t\tSystem.out.println(\"--------Fetch-----------> \" + stages.get(\"F\").getContent());\n\t\tif (stages.get(\"D\") != null)\n\t\t\tSystem.out.println(\"--------Decode----------> \" + stages.get(\"D\").getContent());\n\t\tif (stages.get(\"E\") != null)\n\t\t\tSystem.out.println(\"--------Execution1------> \" + stages.get(\"E\").getContent());\n\t\tif (stages.get(\"E2\") != null)\n\t\t\tSystem.out.println(\"--------Execution2------> \" + stages.get(\"E2\").getContent());\n\t\tif (stages.get(\"B1\") != null)\n\t\t\tSystem.out.println(\"--------Branch----------> \" + stages.get(\"B1\").getContent());\n\t\tif (stages.get(\"Dly\") != null)\n\t\t\tSystem.out.println(\"--------Delay-----------> \" + stages.get(\"Dly\").getContent());\n\t\tif (stages.get(\"M\") != null)\n\t\t\tSystem.out.println(\"--------Memory----------> \" + stages.get(\"M\").getContent());\n\t\tif (stages.get(\"W\") != null)\n\t\t\tSystem.out.println(\"--------Writeback-------> \" + stages.get(\"W\").getContent());\n\n\t\tSystem.out.println(\"\\nRegister File Details: \\n\");\n\t\tfor (Entry<String, Integer> register : registerFile.entrySet())\n\t\t{\n\t\t\tSystem.out.print(register.getKey() + \" : \" + register.getValue() + \"|\\t|\");\n\t\t}\n\t\tSystem.out.println(\"Special Register X:\" + specialRegister);\n\t\tSystem.out.println(\"\\n0 to 99 Memory Address Details: \");\n\t\tfor (int i = 0; i < 100; i++)\n\t\t{\n\t\t\tmemoryValues.append(\" [\" + i + \" - \" + memoryBlocks[i] + \"] \");\n\t\t\tif (i > 0 && i % 10 == 0)\n\t\t\t\tmemoryValues.append(\"\\n\");\n\t\t}\n\t\tSystem.out.println(memoryValues);\n\n\t}", "public void print() {\n System.out.print(\"\\033[H\\033[2J\");\n for(int y = 0; y < this.height; y++) {\n for (int x = 0; x < this.width; x++) {\n ColoredCharacter character = characterLocations.get(new Coordinate(x , y));\n if (character == null) {\n System.out.print(\" \");\n } else {\n System.out.print(character);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "public void printCorlor() {\n\t\tSystem.out.println(\"I'm yellow\");\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tString []colors = {\"Red\",\"Yellow\",\"Green\"};\r\n\t\tSystem.out.println(colors[1]);\r\n\t\tSystem.out.println(colors[0]);\r\n\t\tSystem.out.println(colors[2]);\r\n\t\t\r\n\t}", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "@Override\n\tprotected void display(Coordination c) {\n\t\tSystem.out.println(\"白棋,颜色是:\" + color + \"位置是:\" + c.getX() + \"--\" + c.getY());\n\t}", "public void updateDisplay()\n {\n\t Color metal = new Color(153, 153, 153);\n\t Color background = new Color(0, 0, 0);\n\t Color sand = new Color(251, 251, 208);\n\t Color water = new Color(102, 179, 255);\n\t int rows = grid.length;\n\t int cols = grid[0].length;\n\t for(int i = 0; i < rows; i++) {\n\t\t for(int j = 0; j < cols; j++) {\n\t\t\t if(grid[i][j] == METAL) {\n\t\t\t\t //color should be gray or whatever\n\t\t\t\t display.setColor(i, j, metal);\n\t\t\t }\n\t\t\t else if(grid[i][j] == EMPTY) {\n\t\t\t\t display.setColor(i, j, background);\n\t\t\t }\n\t\t\t else if(grid[i][j] == SAND) {\n\t\t\t\t display.setColor(i, j, sand);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t display.setColor(i, j, water);\n\t\t\t }\n\t\t }\n\t }\n }", "public static void main(String[] args) {\n String[][] fancycolors = {{\"red\", \"yellow\", \"blue\"},\n {\"cyan\", \"Magenta\", \"Turquoise\"}};\n for (int i = 0; i < 2; i++) {//looping throw rows 6 and 7\n for (int j = 0; j < 3; j++) {//looping throw columsh\n System.out.println(fancycolors[i][j]);\n }\n }\n }", "public void nxColor() {\n if (ckernel == 0) {\n //Nx kernel not found.\n currentVersion.setTextColor(COLOR_YELLOW);\n latestVersion.setTextColor(COLOR_YELLOW);\n } else {\n if (ckernel == lkernel) {\n //Latest NX kernel version is installed.\n currentVersion.setTextColor(COLOR_GREEN);\n latestVersion.setTextColor(COLOR_GREEN);\n } else {\n //Latest NX kernel version isn't installed.\n currentVersion.setTextColor(COLOR_RED);\n latestVersion.setTextColor(COLOR_RED);\n }\n }\n }", "public void run() {\n \tdisposeColor(errorColor);\n \tdisposeColor(inputColor);\n \tdisposeColor(messageColor); \t\n \tdisposeColor(bkgColor); \t\n \tRGB errorRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_ERROR_COLOR);\n \tRGB inputRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_OUTPUT_COLOR);\n \tRGB messageRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_INFO_COLOR);\n \tRGB bkgRGB = PreferenceConverter.getColor(CUIPlugin.getDefault().getPreferenceStore(), BuildConsolePreferencePage.PREF_BUILDCONSOLE_BACKGROUND_COLOR); \t\n \terrorColor = new Color(d, errorRGB);\n \tinputColor = new Color(d, inputRGB);\n \tmessageColor = new Color(d, messageRGB);\n \tbkgColor = new Color(d, bkgRGB);\n error.setColor(errorColor);\n input.setColor(inputColor);\n message.setColor(messageColor);\n console.setBackground(bkgColor);\n }", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "@Override\n protected void display() {\n System.out.println(\"Welcome to team builder tool!\");\n System.out.println(\"Current team: \" + team.getName());\n }", "public void display() {\n\t\tSystem.out.println(state+\" and its' capital is \"+capital);\n\t}", "public void modeColor(Graphics2D g2d) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); }", "public static void showColor(Color colorArg) {\n\n\t\t//bellow code is given\n\t\t\n\t\tJFrame frame = new JFrame(\"Guess this color\");\n\t\tframe.setSize(200, 200);\n\t\tframe.setLocation(300, 300);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(colorArg);\n\t\tframe.add(panel);\n\t\tframe.setVisible(true);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t}", "public String toString(){\n\t\treturn (red + \" \" + green + \" \" + blue + \"\\n\");\n\t}", "private void update() {\n\t\tColor fColor = fgColorProvider.getCurrentColor();\n\t\tColor bColor = bgColorProvider.getCurrentColor();\n\t\tsetText(String.format(\"Foreground color: (%d, %d, %d), background color: (%d, %d, %d).\", \n\t\t\t\tfColor.getRed(), fColor.getGreen(), fColor.getBlue(),\n\t\t\t\tbColor.getRed(), bColor.getGreen(), bColor.getBlue()));\n\t}", "public String printColors(){\n String RGB = \"\";\n detectedColor = m_colorSensor.getColor();\n RGB = \"Red: \" + detectedColor.red + \", Green: \" + detectedColor.green + \", Blue: \" + detectedColor.blue;\n return RGB;\n }", "public void display() {\n String box = \"\\n+--------------------------------------------+\\n\";\n String header = \"| \" + name;\n String lvlStat = \"Lv\" + level;\n for (int i=0; i<42-name.length()-lvlStat.length(); i++) {\n header += \" \";\n }\n header += lvlStat + \" |\\n\";\n System.out.println(box + header + \"| \" + getHealthBar() + \" |\" + box);\n }", "public void switchColor(){\r\n System.out.println(color);\r\n if(color==\"W\"){\r\n color=\"B\";\r\n System.out.println(color);\r\n }else{ \r\n color=\"W\";\r\n } \r\n }", "public void showSaturation()\r\n {\r\n\tshowSaturation(\"Saturation\");\r\n }", "public void display(){\r\n \r\n System.out.println(\"\\n\\nHigh Population City\");\r\n highPop.display();\r\n System.out.println(\"Capital City\");\r\n capital.display();\r\n System.out.print(\"State Name: \" + stateName + \"\\nState Population: \" + statePop + \"\\n------------\");\r\n }", "protected void printHelp(PrintStream ps) {\n ps.println();\n ps.println(\"Sets the test environment to point to.\");\n ps.println(\"Usage : setenv <environment>\");\n ps.println(\"Options: oracle - sample oracle env\");\n ps.println(\" p6spy - sample p6spy env\"); \n ps.println(\" hdsq1 - sample hsql env\");\n ps.println();\n }", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void Color() {\n\t\t\r\n\t}", "void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "static private void showSolution() {\n\t\tfor (int x = 1; x <= 6; ++x) {\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(color[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(offset[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tbricks.showColorBricks(x);\n\n\t\t\tSystem.out.println(Messages.getString(\"dddcube.stringkey.2\")); //$NON-NLS-1$\n\t\t}\n\t}", "public static void main(String args[]) {\n\t\tSystem.out.println(\"-----Select the traffic light----\");\n\t\tSystem.out.println(\"1.Red\");\n\t\tSystem.out.println(\"3.Yellow\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"\\nEnter your choice : \");\n\t\t/**\n\t\t * Display text according to the color of the traffic light\n\t\t */\n\t\tint choice = sc.nextInt();\n\t\tif (choice == 1) {\n\t\t\tSystem.out.println(\"\\n STOP\");\n\t\t}\n\t\tif (choice == 2) {\n\t\t\tSystem.out.println(\"\\nGo\");\n\t\t}\n\t\tif (choice == 3) {\n\t\t\tSystem.out.println(\"\\n1READY\");\n\t\t}\n\t}", "public static void display() {\n\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println(\"* Omar Oraby\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* 900133379\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Salma Talaat *\");\n\t\tSystem.out.println(\"* 900161560\t \t\t\t\t\t *\");\n\t\tSystem.out.println(\"* Ahmed Elshafey *\");\n\t\tSystem.out.println(\"* 900131045 *\");\n\t\tSystem.out.println(\"* Programming in Java *\");\n\t\tSystem.out.println(\"* (2018 Fall) *\");\n\t\tSystem.out.println(\"************************************************************\");\n\t\tSystem.out.println();\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "protected void setBoxBackground() { Console.setBackground(Console.RED); }", "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 }", "private void setColorsByBuildType() {\n if (mBuild.isQueued()) {\n mStatusBarUtils.changeStatusBarColor(mActivity, R.color.queued_status_bar_color);\n setToolBarAndTabLayoutColor(R.color.queued_tool_bar_color);\n mTabLayout.setTabTextColors(\n mActivity.getResources().getColor(R.color.tab_queued_unselected_color),\n mActivity.getResources().getColor(R.color.md_white_1000));\n } else if (mBuild.isRunning()) {\n mStatusBarUtils.changeStatusBarColor(mActivity, R.color.running_status_bar_color);\n setToolBarAndTabLayoutColor(R.color.running_tool_bar_color);\n mTabLayout.setTabTextColors(\n mActivity.getResources().getColor(R.color.tab_running_unselected_color),\n mActivity.getResources().getColor(R.color.md_white_1000));\n } else if (mBuild.isFailed()) {\n mStatusBarUtils.changeStatusBarColor(mActivity, R.color.failed_status_bar_color);\n setToolBarAndTabLayoutColor(R.color.failed_tool_bar_color);\n mTabLayout.setTabTextColors(\n mActivity.getResources().getColor(R.color.tab_failed_unselected_color),\n mActivity.getResources().getColor(R.color.md_white_1000));\n } else if (mBuild.isSuccess()) {\n mStatusBarUtils.changeStatusBarColor(mActivity, R.color.success_status_bar_color);\n setToolBarAndTabLayoutColor(R.color.success_tool_bar_color);\n mTabLayout.setTabTextColors(\n mActivity.getResources().getColor(R.color.tab_success_unselected_color),\n mActivity.getResources().getColor(R.color.md_white_1000));\n } else {\n mStatusBarUtils.changeStatusBarColor(mActivity, R.color.queued_status_bar_color);\n setToolBarAndTabLayoutColor(R.color.queued_tool_bar_color);\n mTabLayout.setTabTextColors(\n mActivity.getResources().getColor(R.color.tab_queued_unselected_color),\n mActivity.getResources().getColor(R.color.md_white_1000));\n }\n }", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "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 static void main(String[] args) {\n String color = \"Red\";\n\n switch (color) {\n case \"Red\":\n System.out.println(\"Stop the car now.\");\n break;\n case \"Yellow\":\n System.out.println(\"Slow down and stop.\");\n break;\n default:\n System.out.println(\"No colours observed. continue. \");\n break;\n }\n }", "@Override\n\tpublic void yellow() {\n\t\tSystem.out.println(\"Yellow Light\");\n\t\t\n\t}", "public static void showGUI() {\n\t\tDisplay display = Display.getDefault();\n\t\tShell shell = new Shell(display);\n\t\tPaletteComposite inst = new PaletteComposite(shell, SWT.NULL);\n\t\tPoint size = inst.getSize();\n\t\tshell.setLayout(new FillLayout());\n\t\tshell.layout();\n\t\tif(size.x == 0 && size.y == 0) {\n\t\t\tinst.pack();\n\t\t\tshell.pack();\n\t\t} else {\n\t\t\tRectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n\t\t\tshell.setSize(shellBounds.width, shellBounds.height);\n\t\t}\n\t\tshell.open();\n\t\twhile (!shell.isDisposed()) {\n\t\t\tif (!display.readAndDispatch())\n\t\t\t\tdisplay.sleep();\n\t\t}\n\t}", "public void showBoardState() {\n System.out.print(\" \");\n //top row X axis\n for(int i = 0; i < boardSize; i++){\n System.out.print(\" \" + i + \" \");\n }\n System.out.println();\n for (int i = 0; i < boardSize; i++) {\n //conversion 0-9 to char for display as Y axis\n System.out.print(\" \" + (char)(i + 'A') + \" \");\n for (int j = 0; j < boardSize; j++) {\n System.out.print(\" \" + board[i][j] + \" \");\n }\n System.out.println();\n\n }\n System.out.println();\n }", "public void display() {\n \n //Print the features representation\n System.out.println(\"\\nDENSE REPRESENTATION\\n\");\n \n //Print the header\n System.out.print(\"ID\\t\");\n for (short i = 0 ; i < dimension; i++) {\n System.out.format(\"%s\\t\\t\", i);\n }\n System.out.println();\n \n //Print all the instances\n for (Entry<String, Integer> entry : mapOfInstances.entrySet()) {\n System.out.format(\"%s\\t\", entry.getKey());\n for (int i = 0; i < vectorDimension(); i++) {\n //System.out.println(allFeatures.get(entry.getValue())[i]);\n System.out.format(\"%f\\t\", allValues.get(entry.getValue())[i]); \n }\n System.out.println();\n }\n }", "@Override\r\n\tpublic void printColor(String color1, String message, String color2) {\n\t\tSystem.out.println(color1 + message + color2);\r\n\t}", "public void display() { \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tSystem.out.print(\"|\"); \r\n\t\t\tfor (int j=0; j<3; j++){ \r\n\t\t\t\tSystem.out.print(board[i][j] + \"|\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(); \r\n\t\t}\r\n\t\tSystem.out.println(); \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 main(String args[]) {\n\t\tRGB myColor = new RGB(100, 125, 25);\n\t\tRGB red = new RGB(255, 0, 0);\n\t\t\n\t\t// you can get the individual red, green and blue values\n\t\t// using the .get methods:\n\t\tSystem.out.println(\"red = \" + myColor.getRed());\n\t\tSystem.out.println(\"green = \" + myColor.getGreen());\n\t\tSystem.out.println(\"blue = \" + myColor.getBlue());\n\t\t\n\t\tSystem.out.println(red);\n\t}", "public void displayseat() {\n\t\tString occ;\n\t\tif (this.isOccupied()) {\n\t\t\tocc = ANSI_RED+\"XX\"+ANSI_RESET+\"..\"+ANSI_RED+\"XX\"+ANSI_RESET;\n\t\t}\n\t\telse if (this.isReserved()){\n\t\t\tocc = ANSI_GREEN+\"ME\"+ANSI_RESET+\"..\"+ANSI_GREEN+\"ME\"+ANSI_RESET;\n\t\t}\n\t\telse {\n\t\t\tocc = ANSI_BLUE+\"__\"+ANSI_RESET+\"..\"+ANSI_BLUE+\"__\"+ANSI_RESET;\n\t\t}\n\t\tSystem.out.print(\"[\" + occ + \"]\");\n\t}", "public static void main(String args[])\r\n\t{\n\t\tCannonVSBall app = new CannonVSBall();\r\n\t\tapp.setBackground(Color.white);\r\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}", "private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }", "public String showColor(int light) {\n\n String result;\n switch (light) {\n case 1:\n System.out.println(\"Red\");\n result = \"Red\";\n break;\n case 2:\n System.out.println(\"Orange\");\n result = \"Orange\";\n break;\n case 3:\n System.out.println(\"Green\");\n result = \"Green\";\n break;\n default:\n System.out.println(\"Red\");\n result = \"red\";\n break;\n }\n return result;\n }", "public void show() {\n super.show(color, value.toString());\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 static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter.setBackground(Color.DARK_GRAY.darker());\n else if(colorScheme[0].equals(new Color(35,37,50))) splitter.setBackground(new Color(35,37,50).brighter());\n else if(colorScheme[0].equals(Color.GRAY) || colorScheme[0].equals(Color.LIGHT_GRAY) || colorScheme[0].equals(Color.WHITE)) splitter.setBackground(null);\n else splitter.setBackground(colorScheme[0].darker());\n\n text.getStyledDocument().getForeground(attributeScheme[11]); //Will work, but needs to be refreshed somehow.\n outputText.setForeground(colorScheme[11]); \n } catch (Exception e) {\n System.out.println(\"The error was here!\");\n e.printStackTrace();\n }\n }", "public void showColorAndId(int light) {\n String result;\n result = showColor(light);\n\n System.out.println(\"My color is \"\n + result\n + \" and my id is: \"\n + showId()\n );\n }", "private void buildDisplay() {\n\t\tColorMap map = new ColorMap();\n\n\t\tfor (int i = 1; i < MAX_COLORS; i++) {\n\t\t\tmap.mapColor(i, new Color(0, (int) (i + 127), 0));\n\t\t}\n\n\t\t// When noting, it is white\n\t\tmap.mapColor(0, Color.WHITE);\n\n\t\tValue2DDisplay displayGrass = new Value2DDisplay(rabbitSpace.getGrassSpace(), map);\n\n\t\tObject2DDisplay displayRabbits = new Object2DDisplay(rabbitSpace.getRabbitSpace());\n\t\tdisplayRabbits.setObjectList(rabbitList);\n\n\t\tdisplaySurf.addDisplayable(displayGrass, \"Grass\");\n\t\tdisplaySurf.addDisplayable(displayRabbits, \"Rabbits\");\n\n\t\trabbitsAndGrassInSpace.addSequence(\"Number of Rabbits in Space\", new RabbitsInSpace());\n\t\trabbitsAndGrassInSpace.addSequence(\"Amount of Grass\", new GrassInSpace());\n\t}", "public void displayStateValues()\n\t{\n\t\tfor (State s : stateSpace)\n\t\t{\n\t\t\tSystem.out.println(s.state + \"\\t\" + this.value.get(s));\n\t\t}\n\t}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"I'm a yellow duck\");\n\t}", "public void setColor()\n {\n if(eyeL != null) // only if it's painted already...\n {\n eyeL.changeColor(\"yellow\");\n eyeR.changeColor(\"yellow\");\n nose.changeColor(\"green\");\n mouthM.changeColor(\"red\");\n mouthL.changeColor(\"red\");\n mouthR.changeColor(\"red\");\n }\n }", "public static void printGreeting() {\n printDashLines();\n printLogo();\n System.out.println(GREETING_LINES);\n printDashLines();\n }", "public static void main(String[] args) {\n\t\t/* setting up a frame, station and controller */\n JTutorialFrame frame = new JTutorialFrame(ColorExample.class);\n DockController controller = new DockController();\n controller.setRootWindow(frame);\n frame.destroyOnClose(controller);\n\n SplitDockStation station = new SplitDockStation();\n controller.add(station);\n frame.add(station);\n\t\t\n\t\t/* get the ColorManager... */\n ColorManager colors = controller.getColors();\n\t\t/* ... and tell the framework to use red for painting drag and drop gestures. */\n colors.put(Priority.CLIENT, \"paint.divider\", Color.RED);\n colors.put(Priority.CLIENT, \"paint.line\", Color.RED);\n colors.put(Priority.CLIENT, \"paint.insertion\", Color.RED);\n\t\t\n\t\t/* And this is how a more complex rule is installed */\n colors.publish(Priority.CLIENT, TitleColor.KIND_TITLE_COLOR, new CustomColorBridge());\n\t\t\n\t\t/* setting up some dockables to demonstrate the effects */\n SplitDockGrid grid = new SplitDockGrid();\n grid.addDockable(0, 0, 1, 1, new ColorDockable(\"Red\", Color.RED.brighter()));\n grid.addDockable(0, 1, 1, 1, new ColorDockable(\"Green\", Color.GREEN.brighter()));\n grid.addDockable(1, 0, 1, 1, new ColorDockable(\"Blue\", Color.BLUE.brighter()));\n grid.addDockable(1, 1, 1, 1, new ColorDockable(\"Yellow\", Color.YELLOW.brighter()));\n\n station.dropTree(grid.toTree());\n\n frame.setVisible(true);\n }", "private static void catList() {\n\t\tSystem.out.println(\"List of preset Categories\");\n\t\tSystem.out.println(\"=========================\");\n\t\tSystem.out.println(\n\t\t\t\t\"Family\\nTeen\\nThriller\\nAnimated\\nSupernatural\\nComedy\\nDrama\\nQuirky\\nAction\\nComing of age\\nHorror\\nRomantic Comedy\\n\\n\");\n\t}", "public void setColors() {\n\t\tif (!this.block.isEditable()) {\n\t\t\tthis.dispNormal = Color.LIGHT_GRAY;\n\t\t\tthis.dispSelected = Color.GRAY;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t} else {\n\t\t\tthis.dispNormal = Color.white;\n\t\t\tthis.dispSelected = Color.cyan;\n\t\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t\t}\n\t}", "public static void status(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n System.out.printf(\"\\nNOMBRE:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.printf(\"\\nPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.printf(\"\\nPuntos De mana (MP):\\t\"+puntosDeMana);\n System.out.printf(\"\\nNivel: \\t\\t\\t\"+nivel);\n\tSystem.out.printf(\"\\nExperiencia:\\t\\t\"+experiencia);\n\tSystem.out.printf(\"\\nOro: \\t\\t\"+oro);\n System.out.printf(\"\\nPotion:\\t\\t\\t\"+articulo1);\n System.out.printf(\"\\nHi-Potion:\\t\\t\"+articulo2);\n System.out.printf(\"\\nM-Potion:\\t\\t\"+articulo3);\n System.out.printf(\"\\n\\tEnemigos Vencidos:\\t\");\n\tSystem.out.printf(\"\\nNombre:\\t\\t\\tNo.Derrotas\");\n System.out.printf(\"\\nDark Wolf:\\t\\t\"+enemigoVencido1);\n\tSystem.out.printf(\"\\nDragon:\\t\\t\\t\"+enemigoVencido2);\n System.out.printf(\"\\nMighty Golem:\\t\\t\"+enemigoVencido3);\t\n }", "private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }", "public void printMachine(){\n\t\tfor(State s:theStates){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "private void setIncognito()\n\t{\n\t\t\teToPower.setBackground (black);\n\t\t\ttwoPower.setBackground (black);\n\t\t\tln.setBackground (black);\n\t\t\txCube.setBackground (black);\n\t\t\txSquare.setBackground (black);\n\t\t\tdel.setBackground (black);\n\t\t\tcubeRoot.setBackground (black);\n\t\t\tC.setBackground (black);\n\t\t\tnegate.setBackground (black);\n\t\t\tsquareRoot.setBackground (black);\n\t\t\tnine.setBackground (black);\n\t\t\teight.setBackground (black);\n\t\t\tseven.setBackground (black);\n\t\t\tsix.setBackground (black);\n\t\t\tfive.setBackground (black);\n\t\t\tfour.setBackground (black);\n\t\t\tthree.setBackground (black);\n\t\t\ttwo.setBackground (black);\n\t\t\tone.setBackground (black);\n\t\t\tzero.setBackground (black);\n\t\t\tdivide.setBackground (black);\n\t\t\tpercent.setBackground (black);\n\t\t\tmultiply.setBackground (black);\n\t\t\treciprocal.setBackground (black);\n\t\t\tadd.setBackground (black);\n\t\t\tsubtract.setBackground (black);\n\t\t\tdecimalPoint.setBackground (black);\n\t\t\tequals.setBackground (black);\n\t\t\te.setBackground (black);\n\t\t\tPI.setBackground (black);\n\t\t\t\n\t\t\teToPower.setForeground (white);\n\t\t\ttwoPower.setForeground (white);\n\t\t\tln.setForeground (white);\n\t\t\txCube.setForeground (white);\n\t\t\txSquare.setForeground (white);\n\t\t\tdel.setForeground (white);\n\t\t\tcubeRoot.setForeground (white);\n\t\t\tC.setForeground (white);\n\t\t\tnegate.setForeground (white);\n\t\t\tsquareRoot.setForeground (white);\n\t\t\tnine.setForeground (white);\n\t\t\teight.setForeground (white);\n\t\t\tseven.setForeground (white);\n\t\t\tsix.setForeground (white);\n\t\t\tfive.setForeground (white);\n\t\t\tfour.setForeground (white);\n\t\t\tthree.setForeground (white);\n\t\t\ttwo.setForeground (white);\n\t\t\tone.setForeground (white);\n\t\t\tzero.setForeground (white);\n\t\t\tdivide.setForeground (white);\n\t\t\tpercent.setForeground (white);\n\t\t\tmultiply.setForeground (white);\n\t\t\treciprocal.setForeground (white);\n\t\t\tadd.setForeground (white);\n\t\t\tsubtract.setForeground (white);\n\t\t\tdecimalPoint.setForeground (white);\n\t\t\tequals.setForeground (white);\n\t\t\te.setForeground (white);\n\t\t\tPI.setForeground (white);\n\t\t\t\t\t\n\t\t\tentry.setBackground (black);\n\t\t\tentry.setForeground(white);\n\n\t\t\tmenuBar.setBackground(black);\n\t\t\tmenuBar.setForeground(white);\n\t\t\tfileMenu.setForeground(white);\n\t\t\thelpMenu.setForeground (white);\n\t\t\ttoolsMenu.setForeground(white);\n\t\t\t\n\t\t\texit.setBackground(black);\n\t\t\tsettings.setBackground(black);\n\t\t\treadme.setBackground(black);\n\t\t\tabout.setBackground(black);\n\t\t\t\t\t\t\n\t\t\texit.setForeground(white);\n\t\t\tsettings.setForeground(white);\n\t\t\treadme.setForeground(white);\n\t\t\tabout.setForeground(white);\n\t}", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "public static void printColony(){\r\n for (int i = 0; i < colony.size(); i++) {\r\n System.out.println(\"Ant \" + (i + 1) + \" \" + colony.get(i).toString());\r\n }\r\n }", "public static void main(String[] args) {\n\n\t\tString medalColor;\n\t\tString medal = \"Silver\";\n\n\t\tswitch (medal) {\n\t\tcase \"Gold\": case \"G\": case \"g\": case \"Gol\":\n\t\t\tmedalColor = \"금메달\";\n\t\t\tbreak;\n\t\tcase \"Silver\": case \"S\": case \"s\":\n\t\t\tmedalColor = \"은메달\";\n\t\t\tbreak;\n\t\tcase \"Bronze\": case \"B\": case \"b\":\n\t\t\tmedalColor = \"동메달\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmedalColor = \"메달 없음\";\n\t\t\t// System.out.println(\"메달이 없습니다.\");\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(medalColor + \"입니다.\");\n\t\t\n\t\t//Switch문 ---변환-->if문\n\t\t\n\t\tif ((medal == \"Gold\") || (medal == \"G\") || (medal == \"g\") || (medal == \"Gol\"))\n\t\t\tSystem.out.println(\"if문 금메달입니다.\");\n\t\telse if ((medal == \"Silver\") || (medal == \"S\") || (medal == \"s\"))\n\t\t\tSystem.out.println(\"if문 은메달입니다.\");\n\t\telse if ((medal == \"Bronze\") || (medal == \"B\") || (medal == \"b\"))\n\t\t\tSystem.out.println(\"if문 동메달입니다.\");\n\t\telse\n\t\t\tSystem.out.println(\"if문 메달이 없습니다.\");\n\t\t\n\t\n\t}", "public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}", "private void show() {\n System.out.println(\"...................................................................................................................................................................\");\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n for(int i = 0; i < players.size(); i++) {\n if (state.getTurn() == i) {\n System.out.print(Color.PURPLE.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n else {\n System.out.print(Color.CYAN.getPrintColor());\n System.out.print((i+1) + \"- \" + players.get(i).toString());\n System.out.print(Color.RESET.getPrintColor() + \"║\");\n }\n }\n System.out.println();\n System.out.print(\"Direction: \");\n if (state.getDirection() == +1) {\n System.out.println(Color.PURPLE.getPrintColor() + \"clockwise ↻\");\n }\n else {\n System.out.println(Color.PURPLE.getPrintColor() + \"anticlockwise ↺\");\n }\n System.out.println(Color.RESET.getPrintColor() + \"Turn: \" + Color.PURPLE.getPrintColor() + players.get(state.getTurn()).getName() + Color.RESET.getPrintColor());\n System.out.println(currentCard.currToString());\n if (controls.get(state.getTurn()) instanceof PcControl) {\n System.out.print(players.get(state.getTurn()).backHandToString() + Color.RESET.getPrintColor());\n }\n else {\n System.out.print(players.get(state.getTurn()).handToString() + Color.RESET.getPrintColor());\n }\n }", "@Override\n\tpublic void Render() {\n\t\t\n\t\tSystem.out.println(\"Chocolater Ice Cream\");\n\t\t\n\t}", "static void printGoodbyeMessage() {\n System.out.println(\"Goodbye! Thanks for playing.\");\n System.out.println(getAnsiRed() + \"\\n\" +\n \"___________________________________________________________\\n\" +\n \"                                                     \\n\" +\n \" ██████  ██████  ██████  ██████  ██████ ██  ██ ███████ \\n\" +\n \"██       ██    ██ ██    ██ ██   ██ ██   ██ ██  ██  ██      \\n\" +\n \"██  ███ ██  ██ ██  ██ ██  ██ ██████   ████   █████  \\n\" +\n \"██  ██ ██  ██ ██  ██ ██  ██ ██   ██   ██   ██     \\n\" +\n \" ██████   ██████   ██████  ██████  ██████   ██  ███████ \\n\" +\n \"                                                     \\n\" +\n \"___________________________________________________________\\n\" +\n getAnsiReset());\n }", "public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}", "void seeRed() {\n\t\tbar.setForeground(Color.RED);\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public void updateDisplay()\n {\n //Step 3\n\t Color color = null;\n //Hint - use a nested for loop\n\t for(int row = 0; row < grid.length; row++)\n\t {\n\t\t for(int col = 0; col < grid[0].length; col++)\n\t\t {\n\t\t\t if(grid[row][col] == EMPTY)\n\t\t\t {\n\t\t\t\t color = Color.BLACK;\n\t\t\t }\n\t\t\t else if(grid[row][col] == METAL)\n\t\t\t {\n\t\t\t\t color = Color.GRAY;\n\t\t\t }\n\t\t\t else if(grid[row][col] == SAND)\n\t\t\t {\n\t\t\t\t color = new Color(204, 186, 25);\n\t\t\t }\n\t\t\t else if(grid[row][col] == WATER)\n\t\t\t {\n\t\t\t\t color = new Color(7, 125, 116);\n\t\t\t }\n\t\t\t else if(grid[row][col] == HELIUM)\n\t\t\t {\n\t\t\t\t color = Color.WHITE;\n\t\t\t }\n\t\t\t else if(grid[row][col] == BOUNCE)\n\t\t\t {\n\t\t\t\t color = new Color(255, 0, 200);\n\t\t\t }\n\t\t\t else if(grid[row][col] == VIRUS)\n\t\t\t {\n\t\t\t\t color = new Color(153, 51, 204);\n\t\t\t }\n\t\t\t else if(grid[row][col] == FIRE)\n\t\t\t {\n\t\t\t\t color = new Color(229, 64, 0);\n\t\t\t }\n\t\t\t else if(grid[row][col] == VINE)\n\t\t\t {\n\t\t\t\t color = new Color(45, 102, 25);\n\t\t\t }\n\t\t\t else if(grid[row][col] == TELEPORT)\n\t\t\t {\n\t\t\t\t color = new Color(255, 255, 0);\n\t\t\t }\n\t\t\t else if(grid[row][col] == LASER)\n\t\t\t {\n\t\t\t\t color = new Color(245, 50, 41);\n\t\t\t }\n\t\t\t display.setColor(row, col, color);\n\t\t }\n\t }\n\t \n }", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\u001B[40m\" + \"\\033[1;35m\");\n\t\t// ###########################################\n\n\t\tint[][] mat = { { 2, 6, 5, 4 }, { 3, 17, 2, 6 }, { 1, 3, 21, 0 } };\n\t\tSystem.out.println(\"maxRow(mat) = \" + maxRow(mat)); // 1\n\n\t\t// ############################################\n\t\t// Reset colors\n\t\tSystem.out.print(\"\\u001B[37m\");\n\t}" ]
[ "0.6622019", "0.65578926", "0.62773573", "0.59533024", "0.5905506", "0.5799477", "0.5787669", "0.5731811", "0.5711785", "0.5658802", "0.5626533", "0.5613391", "0.55841213", "0.5575734", "0.55620915", "0.5507672", "0.5476109", "0.5459054", "0.5436474", "0.5428035", "0.5425868", "0.5418053", "0.54063714", "0.5405458", "0.5402563", "0.5396019", "0.53555393", "0.53502584", "0.53454584", "0.5340516", "0.5320839", "0.53035283", "0.53019005", "0.5267543", "0.5266716", "0.5265443", "0.52384543", "0.52346045", "0.52133834", "0.519635", "0.5189707", "0.51767564", "0.5166293", "0.5157671", "0.51559025", "0.5151136", "0.5148038", "0.51458853", "0.5143259", "0.5140603", "0.5135079", "0.51334137", "0.5118236", "0.5111025", "0.5097389", "0.5088243", "0.5083988", "0.5083213", "0.5075453", "0.50642365", "0.50555575", "0.50540686", "0.505197", "0.50518405", "0.5028651", "0.5026441", "0.5025483", "0.5025467", "0.50245553", "0.5019119", "0.5017489", "0.50168484", "0.5005747", "0.49998662", "0.49992672", "0.49899688", "0.49874672", "0.4983538", "0.49788105", "0.4974633", "0.49513566", "0.49506983", "0.49456212", "0.49442786", "0.4939411", "0.49300984", "0.49294424", "0.4928951", "0.49279553", "0.49275693", "0.49256885", "0.49235383", "0.49184498", "0.49168098", "0.4914714", "0.49068344", "0.49006087", "0.48929515", "0.488934", "0.488848", "0.4885562" ]
0.0
-1
Create a new FieldView component.
public FieldView(int height, int width) { gridHeight = height; gridWidth = width; size = new Dimension(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ViewComponent createViewComponent();", "ViewComponentPart createViewComponentPart();", "public Field() {\n\t\t\n\t\t//--- View:\n\t\t// > first line: a horizontal box containing open and closed content.\n\t\t\n\t\t// style\n\t\tgetStyleClass().add(\"field\");\n\t\tnameText.getStyleClass().add(\"field-name\");\n\t\tcontentClosed.getStyleClass().add(\"field-contentClosed-box\");\n\t\tcontentOpen.getStyleClass().add(\"field-contentOpen-box\");\n\t\tsubfieldHolder.getStyleClass().add(\"field-subfieldHolder\");\n\t\t\n\t\t// link the first line & the rest\n\t contentClosed.getChildren().add(valueLabel);\n\t\tfirstLine.getChildren().addAll(nameText, contentClosed, contentOpen);\n\t\tupdateGrid();\n\n\t\t// open true by default\n\t\tcontentClosed.setVisible(false);\n\t contentClosed.setManaged(false);\n\t \n\t\t//--- Control:\n\t\t// close on click if openable (without triangle buttons is always open)\n\t setOnMouseClicked(e -> { \n\t \tif (closable)\n\t\t \tthis.setOpen(!open()); \n\t \te.consume();\n\t });\n\t}", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "View createView();", "private JComponent addField(FactoryViewPanel panel, ViewModel<?> model)\r\n {\r\n JComponent component = createComponent(model);\r\n panel.addLabelComponent(ControllerFactory.createLabel(model, component), component);\r\n return component;\r\n }", "protected abstract void initViewValue(final T field);", "ViewElement createViewElement();", "HxField createField(final String fieldType,\n final String fieldName);", "public Field createField(final Item item, final Object propertyId, final Component uiContext) {\n final String pid = (String) propertyId;\n\n final Field field = DefaultFieldFactory.get().createField(item, propertyId, uiContext);\n if (field instanceof AbstractTextField) {\n ((AbstractTextField) field).setNullRepresentation(\"\");\n }\n return field;\n }", "public FieldView(int height, int width, Model model)\n {\n// super(model);\n \tgridHeight = height;\n gridWidth = width;\n size = new Dimension(0, 0);\n }", "public static TreeNode makeField(Field field) {\n return new FieldNode(field);\n }", "public FieldObject() {\n super(\"fields/\");\n setEnterable(true);\n }", "@SuppressWarnings (\"unchecked\")\r\n\t@Override\r\n\tpublic <T> T create ()\r\n\t{\r\n\t\tFxCharmView fxView = new FxCharmView ();\r\n\t\tfxView.registerSpecialType (IntValueView.class, new FxIntDisplayFactory ());\r\n\t\tfxView.registerSpecialType (BooleanView.class, new FxBooleanDisplayFactory ());\r\n\t\tnew Stylesheet (\"skin/platform/tooltip.css\").applyToParent (fxView.getNode ());\r\n\t\treturn (T) fxView;\r\n\t}", "public JComponent createFieldsCont() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \",\n \t\t\t\"Tribe Name: \"\n \t};\n \t\n \tcLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldC = new JTextField();\n \tfirstFieldC.setColumns(20);\n \tfields[fieldNum++] = firstFieldC;\n \t\n \tlastFieldC = new JTextField();\n \tlastFieldC.setColumns(20);\n \tfields[fieldNum++] = lastFieldC;\n \t\n \ttribeField = new JTextField();\n \ttribeField.setColumns(31);\n \tfields[fieldNum++] = tribeField;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tcLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tcLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(cLabels[i]);\n \t\tnamePanel.add(fields[i]); \t\t\n \t}\n \t\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "protected abstract void createFieldEditors();", "@Override\n public void Create() {\n\n initView();\n }", "protected View createCustomView(ViewFactory f,\n int startOffset, int maxEndOffset, int elementIndex) {\n\n\n/*\n // Default implementation delegating to view factory\n // is here just to show the possible functionality\n // and clarify the variables\n\n View v;\n if (parentElement != null) {\n Element elem = parentElement.getElement(elementIndex);\n if (elem.getStartOffset() != startOffset) {\n throw new IllegalStateException(\"Not element boundary\");\n }\n\n if (elem.getEndOffset() > maxEndOffset) {\n throw new IllegalStateException(\"Beyond maximum ending offset\");\n }\n\n v = f.create(elem);\n\n } else { // no element - need more information\n return null;\n }\n */\n \n return null;\n }", "FieldDefinition createFieldDefinition();", "private ViewFactory() {}", "public ViewProperty() {\n initComponents();\n }", "ViewContainer createViewContainer();", "private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }", "public void addTextField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementTextField elementTextField = new ElementTextField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementTextField);\n }else{\n currentPage.insertElement(index, elementTextField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n TextFieldBinding textFieldBinding = TextFieldBinding.inflate(inflater, null,false);\n textFieldBinding.setElementTextField(elementTextField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = textFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onTextField\");\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "private void createFieldsComp() {\n Composite fieldComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n fieldComp.setLayout(gl);\n fieldComp.setLayoutData(gd);\n\n Label nameLbl = new Label(fieldComp, SWT.LEFT);\n nameLbl.setText(\"Name: \");\n\n caseNameText = new Text(fieldComp, SWT.SINGLE);\n gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n gd.minimumWidth = 200;\n caseNameText.setLayoutData(gd);\n caseNameText.addKeyListener(new KeyAdapter() {\n\n @Override\n public void keyReleased(KeyEvent e) {\n super.keyReleased(e);\n if (e.character == SWT.CR || e.character == SWT.KEYPAD_CR) {\n if (verifySelection()) {\n close();\n }\n }\n }\n });\n }", "public static JTextField createTextField() {\n return createTextField(20);\n }", "public void createFieldEditors()\n\t{\n\t}", "private View create(PersistedView pView) {\n DsmSorting sorting = nameToSorting.get(pView.dsmSortingName);\n if (null == sorting) {\n sorting = DsmSorting.values()[0];\n }\n\n View view = new View();\n view.setName(decodeString(pView.name));\n view.setSorting(sorting);\n\n return view;\n }", "public AbsInputFieldViewController(T field, Fragment frag){\n this.mField = field;\n this.mFrag = frag;\n }", "public TextFieldPage() {\n initView();\n }", "public Field() {\r\n\t}", "ObjectField createObjectField();", "default HxField createField(final HxType fieldType,\n final String fieldName) {\n return createField(fieldType.getName(), fieldName);\n }", "public FormularioLivroView() {\n initComponents();\n }", "public Field newField(Catalog catalog)\r\n {\r\n Field newObj = (Field)SAP_Field.newObj((com.informatica.adapter.sdkadapter.patternblocks.catalog.semantic.auto.SAP_Catalog)catalog);\r\n SEMTableFieldExtensions newExtnObj = newSEMTableFieldExtensions(catalog);\r\n newObj.setExtensions(newExtnObj);\r\n return newObj;\r\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public View createSubview(final Content content, final ViewAxis axis, int fieldNumber) {\n\n final Icon icon = new Icon(content, this, axis);\n\n icon.setTitle(new ObjectTitleText(icon, Toolkit.getText(ColorsAndFonts.TEXT_NORMAL)));\n icon.setSelectedIcon(new IconGraphic(icon, 24));\n icon.setVertical(true);\n\n return new ObjectBorder(icon);\n\n }", "public static TextField createTextField() {\t\t\n\t\tTextField text = new TextField();\n\t\ttext.setPrefWidth(200);\n\t\ttext.setPrefHeight(30);\n\t\treturn text;\n\t}", "public RedBirdView(final FieldObject fieldObject) {\n super(fieldObject);\n }", "private JPanel initFields() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new MigLayout());\n\n\t\tJLabel usernameLabel = new JLabel(\"UserName\");\n\t\tusernameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 26));\n\t\tpanel.add(usernameLabel, \"align label\");\n\t\tuserNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(userNameField, \"wrap\");\n\n\t\tJLabel passwordLabel = new JLabel(\"Password\");\n\t\tpasswordLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordLabel, \"align label\");\n\t\tpasswordField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordField, \"wrap\");\n\t\treturn panel;\n\t}", "private JTextField makeJTextField(int columnNumber, int x, int y, int width, int height) {\r\n JTextField textField = new JTextField(columnNumber);\r\n textField.setBounds(x, y, width, height);\r\n return textField;\r\n }", "public RTextField() {\r\n }", "FieldType createFieldType();", "JPanel createFilePane()\n {\n /*\n * Use a BoxLayout pane for the filename field and browse button.\n */\n JPanel tFilePane = new JPanel();\n tFilePane.setLayout(new BoxLayout(tFilePane, BoxLayout.LINE_AXIS));\n tFilePane.add(_fileTextField);\n tFilePane.add(Box.createRigidArea(new Dimension(5, 0)));\n tFilePane.add(_fileBrowseButton);\n\n return tFilePane;\n }", "public View() {\n initComponents();\n }", "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating field\");\n } finally {\n span.finish();\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_reports, container, false);\n\n txtField = (EditText) view.findViewById(R.id.txtField);\n return view;\n }", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public FieldMarshal() {\n \n _emf = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory(\"FieldMarshalMySqlPU\");\n tournamentJpaController = new TournamentJpaController(_emf);\n tournamentManager = new TournamentManager( tournamentJpaController ); \n //playerManager = new PlayerManager( _emf );\n initComponents();\n \n //loadTournamentView.setEntityManager(_em);\n loadView.setManager(tournamentManager);\n //loadView.addPropertyChangeListener(tournamentManager);\n //loadView.updateList();\n \n ///tournamentManager.addObserver(tournamentView);\n ///tournamentManager.addObserver(playersView); \n \n tournamentView.setManager(tournamentManager);\n //playersView.setManager(tournamentManager);\n \n \n //tournamentView.updateView();\n //playersView.updateView();\n playersView.setManager(tournamentManager);\n }", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n //{\n // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 1)\n //{\n // field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 2)\n //{\n // field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));\n // field.setHidden(true);\n //}\n if (iFieldSeq == 3)\n field = new StringField(this, NAME, 60, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "private RTextField getVersionTextField() {\n if (versionTextField == null) {\n versionTextField = new RTextField();\n versionTextField.setValueAsString(\"\");\n versionTextField.setText(R_TEXT_FIELD);\n versionTextField.setEditable(false);\n versionTextField.setDisabledTextColor(Color.lightGray);\n versionTextField.setName(\"versionTextField\");\n }\n return versionTextField;\n }", "public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;", "Component createComponent();", "Component createComponent();", "public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "public GridForm(Field[] fields) {\n\t\tthis.fields = fields;\n\t\tthis.factory = new BoundWidgetTypeFactory(true);\n\t\tsuper.initWidget(this.base);\n\t\tthis.setStyleName(GridForm.STYLE_NAME);\n\t\tthis.setAction(GridForm.DEFAULT_ACTION);\n\t}", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }", "protected void createSmartField() {\n\t\tthis.smartField = new SmartField();\n\t}", "public TextField(){\n super();\n }", "FieldInstance fieldNamed(String name);", "public static BigFieldView getBigFieldView() {\n return view;\n }", "public DDSViewCollectionForm() {\n\t}", "private void createMineField() {\r\n mineField = new MineField( this );\r\n mineField.setFieldLength( FIELD_SIZE_MD );\r\n mineField.setSquareLength( SQUARE_SIZE_MD );\r\n\r\n // set up JLayeredPane\r\n pane = new JLayeredPane();\r\n pane.add( mineField, JLayeredPane.DEFAULT_LAYER );\r\n getContentPane().add( pane, \"Center\" );\r\n }", "private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }", "IFormView getFormView();", "public Field createFieldRef(Position pos, Expr receiver, Name name) {\n final Type type = receiver.type();\n X10FieldInstance fi = X10TypeMixin.getProperty(type, name);\n if (null == fi) {\n fi = (X10FieldInstance) type.toClass().fieldNamed(name);\n }\n if (null == fi) return null;\n return createFieldRef(pos, receiver, fi);\n }", "public View create(Element elem) {\n return null;\n }", "public static PasswordField createPasswordField() {\t\t\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPrefWidth(200);\n\t\tpassword.setPrefHeight(30);\n\t\treturn password;\n\t}", "@Override\n\tprotected Control createContents(Composite parent) {\n\t\tfieldEditorParent = new Composite(parent, SWT.NULL);\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 1;\n\t\tlayout.marginHeight = 0;\n\t\tlayout.marginWidth = 0;\n\t\tfieldEditorParent.setLayout(layout);\n\t\tfieldEditorParent.setFont(parent.getFont());\n\n\t\tcreateFieldEditors();\n\n\t\tif (style == GRID) {\n\t\t\tadjustGridLayout();\n\t\t}\n\n\t\tinitialize();\n\t\tcheckState();\n\t\treturn fieldEditorParent;\n\t}", "@Override\n public void addView(View child, int index, ViewGroup.LayoutParams params){\n\n Field f = null;\n try{\n f = (Field)child;\n }catch (Exception e){}\n\n if(f == null) return; //if child type is not Field stop the procedure\n\n f.setIsEditable(isEditable);\n\n\n super.addView(child,index,params);\n\n f.onAttachedToNote();\n f.refreshThisAndAllFieldsBelowToAccountForNoteChanges();\n }", "public InputView()\n\t{\n\t\tthis.layoutView();\n\t\tthis.registerButtons();\n\t}", "public UiFieldRecord() {\n super(UiField.UI_FIELD);\n }", "public <E extends Entity> RenderedServiceEntityView(EntityModel model, Entity entity) {\n super(model, entity);\n// RenderedServiceEntityModel renderedServiceEntityModel = (RenderedServiceEntityModel) model;\n// FormField labelFieldInput = new EntityFormField(new EntityField(\"tariff\", EntityFieldTypes.Tariff, Tariff::getId, Tariff::setId), null );\n\n// tariffFormFields = new ArrayList<>();\n// for (EntityField entityField : ((RenderedServiceEntityModel) model).getTariffFields()) {\n// if (!entityField.isEditable()) {\n// continue;\n// }\n// tariffFormFields.add(createFormField(entityField, null));\n// }\n\n// for (int i = 0; i < this.tariffFormFields.size(); i++) {\n// addLabelFieldInput(this.tariffFormFields.get(i));\n// }\n revalidate();\n }", "public GeneralViewControl() {\r\n }", "@Test\n public void testCreateField() {\n System.out.println(\"createField\"); \n JPanel result = instance.createField();\n assertNotNull(result); \n }", "public FormField(String variable) {\n this.variable = variable;\n }", "default HxField createField(final Class<?> type,\n final String fieldName) {\n return createField(type.getName(), fieldName);\n }", "public FieldInfo() {\r\n \t// No implementation required\r\n }", "public ViewFactory getViewFactory()\n {\n return this;\n }", "private void createTextField(){\n Font font = new Font(\"Verdana\", Font.BOLD,3*getGameContainer().getWidth()/100);\n TrueTypeFont ttf = new TrueTypeFont(font,true);\n int fieldWidth = getGameContainer().getWidth()/3;\n int fieldHeight = getGameContainer().getHeight()/18;\n nameField = new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,24*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n nameField.setBackgroundColor(Color.white);\n nameField.setTextColor(Color.black);\n passwordField= new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,32*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n passwordField.setBackgroundColor(Color.white);\n passwordField.setTextColor(Color.black);\n }", "@Override\n public View createView(final String name, final String description) {\n final CView newView = m_module.getContent().getViewContainer().createView(name, description);\n\n return ObjectFinders.getObject(newView, m_views);\n }", "private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}", "void createTextField(){\n TextField.TextFieldStyle textFieldStyle = skin.get(TextField.TextFieldStyle.class);\n textFieldStyle.font.getData().scale(2*FONT_SCALE);\n\n field = new TextField(\"\", btnSkin);\n field.setPosition(100, 400);\n field.setSize(500,100);\n field.setStyle(textFieldStyle);\n\n stageC.addActor(field);\n }", "@AutoGenerated\n\tprivate FormLayout buildFormLayout() {\n\t\tformLayout = new FormLayout();\n\t\tformLayout.setImmediate(false);\n\t\tformLayout.setWidth(\"400px\");\n\t\tformLayout.setHeight(\"-1px\");\n\t\tformLayout.setMargin(false);\n\t\tformLayout.setSpacing(true);\n\t\t\n\t\t// fieldArtist\n\t\tfieldArtist = new TextField();\n\t\tfieldArtist.setCaption(\"Artist\");\n\t\tfieldArtist.setImmediate(true);\n\t\tfieldArtist.setWidth(\"100.0%\");\n\t\tfieldArtist.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldArtist);\n\t\t\n\t\t// fieldTitle\n\t\tfieldTitle = new TextField();\n\t\tfieldTitle.setCaption(\"Title\");\n\t\tfieldTitle.setImmediate(true);\n\t\tfieldTitle.setWidth(\"100.0%\");\n\t\tfieldTitle.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldTitle);\n\t\t\n\t\treturn formLayout;\n\t}", "private RTextField getBuildTextField() {\n if (buildTextField == null) {\n buildTextField = new RTextField();\n buildTextField.setValueAsString(\"\");\n buildTextField.setText(R_TEXT_FIELD);\n buildTextField.setEditable(false);\n buildTextField.setDisabledTextColor(Color.lightGray);\n buildTextField.setName(\"buildTextField\");\n }\n return buildTextField;\n }", "public static void generateNewField(int w,int h,String title){\n\t\tScaling.setPicCoords(w,h);\n\t\tviewPort = new ViewPort(title);\n\t}", "@Override\n public void Create() {\n initView();\n initData();\n }", "private void createTextField(JTextField textField, Component rightOf, Component below, int width, int height,\n JPanel panel) {\n int x = rightOf == null ? 10 : rightOf.getX() + rightOf.getWidth() + 5;\n // rightOf.getX() + rightOf.getWidth() + stdMargin()\n int y = below == null ? 30 : below.getY() + below.getHeight() + 5;\n // below.getY()+ below.getHeight() + stdMargin\n // int width = 250;\n // int height = 30;\n // textField.setOpaque(true);\n // textField.setBackground(Color.CYAN);\n textField.setBounds(x, y, width, height);\n panel.add(textField);\n }", "private JTextField getTellerVeld() {\n if (tellerVeld == null) {\n tellerVeld = new JTextField();\n tellerVeld.setBounds(new Rectangle(17, 15, 74, 35));\n }\n return tellerVeld;\n }", "public JTypeView() { }", "public VehicleViewRecord() {\n super(VehicleView.VEHICLE_VIEW);\n }", "FieldRefType createFieldRefType();", "FieldsType createFieldsType();", "public JTypeView(JNODE aCD) { super(aCD); }", "public void setFieldOfView(int fieldOfView) {\r\n\t\tthis.fieldOfView = fieldOfView;\r\n\t\tchanged = true;\r\n\t}", "protected JTextField makeTextField() {\n JTextField textField = new JTextField(textFieldWidth);\n textField.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 24));\n\n return textField;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_form,container,false);\n nameEditText=view.findViewById(R.id.nameEditText);\n progressSeekBar=view.findViewById(R.id.progressSeekBar);\n threadButton = view.findViewById(R.id.threadButton);\n saveButton = view.findViewById(R.id.saveButton);\n return view;\n }", "private JPanel makeFieldPanel(int type, int which)\r\n {\r\n\t JPanel panel = new JPanel();\r\n\t panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\r\n panel.setBackground(new Color(168,168,168));\r\n\t panel.add(new JLabel(\" \"));\r\n\t \r\n\t panel.add(new JLabel(\"Field\"));\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n\r\n\t JComboBox<String> field = new JComboBox<String>(fields);\r\n\t components[type][which][FormatData.F_FIELD] = field;\r\n\t \r\n\t setComboParams(field, FIELD_SIZE);\r\n field.setToolTipText(\"Select field to be included in output\");\r\n field.setSelectedIndex(0);\r\n\r\n\t panel.add(field);\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n\t \r\n\t panel.add(new JLabel(\"Title\"));\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n\r\n\t JTextField title = new JTextField();\r\n\t components[type][which][FormatData.F_TITLE] = title;\r\n title.setMinimumSize(TEXT_SIZE);\r\n title.setMaximumSize(TEXT_SIZE);\r\n title.setPreferredSize(TEXT_SIZE);\r\n title.setToolTipText(\"Title of field (Use \\\\n to skip lines)\");\r\n panel.add(title);\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n \t \r\n\t panel.add(new JLabel(\"Format\"));\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n\r\n\t JComboBox<String> format = new JComboBox<String>(formats);\r\n\t components[type][which][FormatData.F_FORMAT] = format;\r\n\t setComboParams(format, FORMAT_SIZE);\r\n format.setToolTipText(\"Selection controls the field format\");\r\n format.setSelectedItem(\"Normal\");\r\n panel.add(format);\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n \r\n\t JComboBox<String> separator = new JComboBox<String>(separators);\r\n\t components[type][which][FormatData.F_SEPARATOR] = separator;\r\n\t setComboParams(separator, SEPARATOR_SIZE);\r\n separator.setToolTipText(\"Selection controls how field separates from other text\");\r\n\t panel.add(separator);\r\n\t panel.add(Box.createHorizontalStrut(GAP));\r\n\t \r\n\t if (type==FormatData.t.D_FLD.ordinal())\r\n\t {\t\t \r\n\t\t JLabel label = new JLabel(\"Position Before\");\r\n\t\t panel.add(label);\r\n\t\t panel.add(Box.createHorizontalStrut(GAP));\r\n\t\r\n\t\t JCheckBox position = new JCheckBox();\r\n\t components[type][which][FormatData.F_POSITION] = position;\r\n\t \r\n\t String tip = \"Position field before or after Definition\";\r\n\t \t \r\n\t position.setToolTipText(tip);\r\n\t\t panel.add(position);\r\n\t }\r\n\t panel.add(Box.createHorizontalGlue());\r\n\t return panel;\r\n }" ]
[ "0.68801403", "0.66646314", "0.6636521", "0.65158176", "0.64942205", "0.6400844", "0.63134646", "0.61545086", "0.6147556", "0.60797477", "0.60612196", "0.5999598", "0.59897596", "0.5975997", "0.59419966", "0.5912772", "0.5909973", "0.5876505", "0.5876317", "0.584805", "0.58255637", "0.5793577", "0.5774315", "0.57471544", "0.57364315", "0.57252765", "0.5715513", "0.57001096", "0.56531376", "0.56529176", "0.5647071", "0.5640913", "0.56235844", "0.5619035", "0.5606639", "0.5582807", "0.5579753", "0.5563423", "0.5554949", "0.555437", "0.5545929", "0.5542584", "0.5513831", "0.5504189", "0.54995567", "0.5479322", "0.54701316", "0.5432436", "0.5423564", "0.54235613", "0.5417985", "0.5412518", "0.5410419", "0.54092443", "0.5393645", "0.5393645", "0.5393091", "0.53893775", "0.5375897", "0.53751916", "0.53647256", "0.5354522", "0.53481454", "0.53402436", "0.5340231", "0.5339544", "0.53290725", "0.5323775", "0.53202033", "0.5320134", "0.5315742", "0.5315397", "0.5312628", "0.5299122", "0.52967095", "0.52898175", "0.52829015", "0.52824664", "0.52823454", "0.52742815", "0.52713746", "0.5271229", "0.52698773", "0.5262245", "0.525612", "0.52513546", "0.5249704", "0.52484274", "0.5246572", "0.5244978", "0.5237268", "0.5216653", "0.520856", "0.5205913", "0.5204103", "0.5203343", "0.519995", "0.51882976", "0.5182721", "0.51774406" ]
0.61218935
9
Tell the GUI manager how big we would like to be.
public Dimension getPreferredSize() { return new Dimension(gridWidth * GRID_VIEW_SCALING_FACTOR, gridHeight * GRID_VIEW_SCALING_FACTOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createDialogSize ()\n {\n }", "@Override\n public void settings(){\n size(500, 500);\n }", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "private void basicSize(){\n setSize(375,400);\n }", "public void settings() { size(1200, 800); }", "public void settings() {\r\n size(750, 550);\r\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public void setSize();", "protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }", "private void actionModifySize() {\n CSizePanel csizePanel = new CSizePanel(layoutPanel.getLayoutSize(),\n false);\n int result = JOptionPane.showConfirmDialog(this, csizePanel,\n \"Modify layout size\", JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n try {\n int sizeX = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxX].getText());\n int sizeY = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxY].getText());\n if (sizeX >= LayoutPanel.minXCells\n && sizeX <= LayoutPanel.maxXCells\n && sizeY >= LayoutPanel.minYCells\n && sizeY <= LayoutPanel.maxYCells) {\n RepType rtype = RepType.CLEAR;\n if (csizePanel.newButton.isSelected()) {\n rtype = RepType.CLEAR;\n } else if (csizePanel.rptButton.isSelected()) {\n rtype = RepType.REPEAT;\n } else if (csizePanel.altButton.isSelected()) {\n rtype = RepType.ALT;\n }\n\n changeLayoutSize(new Dimension(sizeX, sizeY), rtype);\n } else {\n JOptionPane.showMessageDialog(null,\n \"Size x must be between \" + LayoutPanel.minXCells\n + \" and \" + LayoutPanel.maxXCells\n + \", or size y must be between \"\n + LayoutPanel.minYCells + \" and \"\n + LayoutPanel.maxYCells + \".\");\n }\n } catch (NumberFormatException ne) {\n JOptionPane.showMessageDialog(null, \"Invalid number.\");\n }\n }\n }", "void setPaperSize(short size);", "public void setSizePlayingFields()\r\n {\n setPreferredSize(new Dimension(109*8,72*8));//powieżchnia o 2 m z każdej strony większa niz boisko 106 i 69 pomnożone o 8\r\n //większe boisko żeby było widać\r\n setMaximumSize(getMaximumSize());\r\n setBackground(Color.green);\r\n }", "private void inputGridSize() {\n \ttest = new TextField();\n \ttest.setPrefSize(BUTTON_SIZE, TEXT_INPUT_BAR_HEIGHT);\n \tstartScreen.add(test, 2, 2);\n }", "int getCurrentSize();", "public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTERFACE_PANEL_HEIGHT + mpVis * CSub.MORE_PANEL_HEIGHT);\n\t\t\n\t\tsetPreferredSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t\tsetSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t}", "public static void main(String args[]) {\n int sizeX;\n int sizeY;\n\n // show change size window to set initial size\n CSizePanel csizePanel = new CSizePanel(new Dimension(\n LayoutPanel.defXCells, LayoutPanel.defYCells), true);\n while (true) {\n int result = JOptionPane.showConfirmDialog(null, csizePanel,\n \"Set initial size\", JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n try {\n sizeX = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxX]\n .getText());\n sizeY = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxY]\n .getText());\n if (sizeX >= LayoutPanel.minXCells\n && sizeX <= LayoutPanel.maxXCells\n && sizeY >= LayoutPanel.minYCells\n && sizeY <= LayoutPanel.maxYCells) {\n break;\n } else {\n JOptionPane.showMessageDialog(null,\n \"Size x must be between \"\n + LayoutPanel.minXCells + \" and \"\n + LayoutPanel.maxXCells\n + \", or size y must be between \"\n + LayoutPanel.minYCells + \" and \"\n + LayoutPanel.maxYCells + \".\");\n }\n } catch (NumberFormatException e) {\n JOptionPane.showMessageDialog(null, \"Invalid number.\");\n }\n } else { // cancel - exit the program\n System.exit(0);\n }\n }\n\n // create a control window\n ControlFrame frame = new ControlFrame(\"Growth Simulation Layout Editor\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.init(sizeX, sizeY);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}", "private void calcSizes(final double fontSize) {\n adjustedButtonSize = false;\n // Create a temporary check box and get its height\n if (!EtomoDirector.INSTANCE.getArguments().isHeadless()) {\n JCheckBox temp = new JCheckBox();\n checkboxHeight = temp.getPreferredSize().getHeight();\n }\n else {\n checkboxHeight = DEFAULT_CHECKBOX_HEIGHT;\n }\n fontSizeAdjustment = fontSize / DEFAULT_FONT_SIZE;\n dimButton.setSize(7 * checkboxHeight * fontSizeAdjustment, 2 * checkboxHeight\n * fontSizeAdjustment);\n dimButtonSingleLine.setSize(7 * checkboxHeight * fontSizeAdjustment, 1.25\n * checkboxHeight * fontSizeAdjustment);\n dimNarrowButton.setSize(4 * checkboxHeight * fontSizeAdjustment, 1.25\n * checkboxHeight * fontSizeAdjustment);\n dimAxisButton.setSize(3.6 * checkboxHeight * fontSizeAdjustment, 1.25\n * checkboxHeight * fontSizeAdjustment);\n dimSpinner.setSize(2 * checkboxHeight * fontSizeAdjustment, 1.05 * checkboxHeight\n * fontSizeAdjustment);\n dimFileField.setSize(20 * checkboxHeight * fontSizeAdjustment, 2 * checkboxHeight\n * fontSizeAdjustment);\n dimFileChooser.setSize(400 * fontSizeAdjustment, 400 * fontSizeAdjustment);\n numericWidth = (int) (40 * fontSizeAdjustment);\n wideNumericWidth = (int) (50 * fontSizeAdjustment);\n sectionsWidth = (int) (75 * fontSizeAdjustment);\n integerTripletWidth = (int) (75 * fontSizeAdjustment);\n integerDoubletWidth = (int) (50 * fontSizeAdjustment);\n integerWidth = (int) (30 * fontSizeAdjustment);\n fourDigitWidth = (int) (40 * fontSizeAdjustment);\n listWidth = (int) (140 * fontSizeAdjustment);\n fileWidth = (int) (210 * fontSizeAdjustment);\n // Adjust the button size if possible\n if (buttonFontMetrics != null) {\n instance.improveButtonSize(buttonFontMetrics);\n }\n }", "protected abstract void setSize();", "public void setSize(int newSize);", "public void setSize(int newSize);", "protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}", "public void setSwingCharacteristics() {\n\t\tcharacterName.setPreferredSize(new Dimension(1050, 100));\n\t\tcharacterName.setFont(f);\n\n\t\talignment.setPreferredSize(new Dimension(400, 100));\n\t\talignment.setFont(f);\n\n\t\tplayerName.setPreferredSize(new Dimension(500, 100));\n\t\tplayerName.setFont(f);\n\n\t\tmultiClassLabel.setPreferredSize(new Dimension(200, 100));\n\t\tmultiClassLabel\n\t\t\t\t.setForeground(new Color(Colors.WHITE.getColorR(), Colors.WHITE.getColorG(), Colors.WHITE.getColorB()));\n\t\tmultiClassLabel.setFont(f);\n\n\t\tmultiClass.setPreferredSize(new Dimension(100, 100));\n\t\tmultiClass.setFont(f);\n\n\t\traceLabel.setPreferredSize(new Dimension(150, 100));\n\t\traceLabel.setFont(f);\n\n\t\trace.setPreferredSize(new Dimension(300, 100));\n\t\trace.setFont(f);\n\n\t\tsize.setPreferredSize(new Dimension(250, 100));\n\t\tsize.setFont(f);\n\n\t\tgender.setPreferredSize(new Dimension(200, 100));\n\t\tgender.setFont(f);\n\n\t\tgenderLabel.setPreferredSize(new Dimension(150, 100));\n\t\tgenderLabel.setFont(f);\n\n\t\tageRollOrInput.add(ageRollSelection);\n\t\tageRollOrInput.add(ageInputSelection);\n\n\t\tageRollSelection.setPreferredSize(new Dimension(200, 100));\n\t\tageRollSelection.setFont(f);\n\t\tageRollSelection.setBackground(lightGray);\n\n\t\tageInputSelection.setPreferredSize(new Dimension(240, 100));\n\t\tageInputSelection.setFont(f);\n\t\tageInputSelection.setBackground(lightGray);\n\n\t\tageRoll.setPreferredSize(new Dimension(150, 100));\n\t\tageRoll.setFont(f);\n\n\t\tageInput.setPreferredSize(new Dimension(200, 100));\n\t\tageInput.setFont(f);\n\n\t\tageRange.add(intuitive);\n\t\tageRange.add(selfTaught);\n\t\tageRange.add(trained);\n\n\t\tageLabel.setPreferredSize(new Dimension(75, 100));\n\t\tageLabel.setFont(f);\n\n\t\tintuitive.setPreferredSize(new Dimension(350, 100));\n\t\tintuitive.setFont(f);\n\n\t\tselfTaught.setPreferredSize(new Dimension(400, 100));\n\t\tselfTaught.setFont(f);\n\n\t\ttrained.setPreferredSize(new Dimension(350, 100));\n\t\ttrained.setFont(f);\n\n\t\theightRollOrInput.add(heightInputSelection);\n\t\theightRollOrInput.add(heightRollSelection);\n\n\t\theightInputSelection.setPreferredSize(new Dimension(300, 100));\n\t\theightInputSelection.setFont(f);\n\n\t\theightRollSelection.setPreferredSize(new Dimension(300, 100));\n\t\theightRollSelection.setFont(f);\n\n\t\theightRoll.setPreferredSize(new Dimension(150, 100));\n\t\theightRoll.setFont(f);\n\n\t\theightInput.setPreferredSize(new Dimension(150, 100));\n\t\theightInput.setFont(f);\n\n\t\theightLabel.setPreferredSize(new Dimension(150, 100));\n\t\theightLabel.setFont(f);\n\n\t\tweightRollOrInput.add(weightInputSelection);\n\t\tweightRollOrInput.add(weightRollSelection);\n\n\t\tweightInputSelection.setPreferredSize(new Dimension(300, 100));\n\t\tweightInputSelection.setFont(f);\n\n\t\tweightRollSelection.setPreferredSize(new Dimension(300, 100));\n\t\tweightRollSelection.setFont(f);\n\n\t\tweightRoll.setPreferredSize(new Dimension(200, 100));\n\t\tweightRoll.setFont(f);\n\n\t\tweightInput.setPreferredSize(new Dimension(150, 100));\n\t\tweightInput.setFont(f);\n\n\t\tweightLabel.setPreferredSize(new Dimension(150, 100));\n\t\tweightLabel.setFont(f);\n\n\t\thairLabel.setPreferredSize(new Dimension(200, 100));\n\t\thairLabel.setFont(f);\n\n\t\thairColor.setPreferredSize(new Dimension(400, 100));\n\t\thairColor.setFont(f);\n\n\t\teyeLabel.setPreferredSize(new Dimension(200, 100));\n\t\teyeLabel.setFont(f);\n\n\t\teyeColor.setPreferredSize(new Dimension(400, 100));\n\t\teyeColor.setFont(f);\n\n\t\tstrengthSpinner.setValue(10);\n\t\tstrengthSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthSpinner.setFont(f);\n\n\t\tdexteritySpinner.setValue(10);\n\t\tdexteritySpinner.setPreferredSize(new Dimension(200, 150));\n\t\tdexteritySpinner.setFont(f);\n\n\t\tconstitutionSpinner.setValue(10);\n\t\tconstitutionSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tconstitutionSpinner.setFont(f);\n\n\t\tintelligenceSpinner.setValue(10);\n\t\tintelligenceSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceSpinner.setFont(f);\n\n\t\twisdomSpinner.setValue(10);\n\t\twisdomSpinner.setPreferredSize(new Dimension(200, 150));\n\t\twisdomSpinner.setFont(f);\n\n\t\tcharismaSpinner.setValue(10);\n\t\tcharismaSpinner.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaSpinner.setFont(f);\n\n\t\tstrengthLabel.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthLabel.setFont(f);\n\t\tstrengthLabel.setOpaque(true);\n\t\tstrengthLabel.setBackground(black);\n\t\tstrengthLabel.setForeground(white);\n\n\t\tdexterityLabel.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityLabel.setFont(f);\n\t\tdexterityLabel.setOpaque(true);\n\t\tdexterityLabel.setBackground(black);\n\t\tdexterityLabel.setForeground(white);\n\n\t\tconstitutionLabel.setPreferredSize(new Dimension(220, 150));\n\t\tconstitutionLabel.setFont(f);\n\t\tconstitutionLabel.setOpaque(true);\n\t\tconstitutionLabel.setBackground(black);\n\t\tconstitutionLabel.setForeground(white);\n\n\t\tintelligenceLabel.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceLabel.setFont(f);\n\t\tintelligenceLabel.setOpaque(true);\n\t\tintelligenceLabel.setBackground(black);\n\t\tintelligenceLabel.setForeground(white);\n\n\t\twisdomLabel.setPreferredSize(new Dimension(200, 150));\n\t\twisdomLabel.setFont(f);\n\t\twisdomLabel.setOpaque(true);\n\t\twisdomLabel.setBackground(black);\n\t\twisdomLabel.setForeground(white);\n\n\t\tcharismaLabel.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaLabel.setFont(f);\n\t\tcharismaLabel.setOpaque(true);\n\t\tcharismaLabel.setBackground(black);\n\t\tcharismaLabel.setForeground(white);\n\n\t\tstrengthInput.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthInput.setFont(f);\n\n\t\tdexterityInput.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityInput.setFont(f);\n\n\t\tconstitutionInput.setPreferredSize(new Dimension(200, 150));\n\t\tconstitutionInput.setFont(f);\n\n\t\tintelligenceInput.setPreferredSize(new Dimension(200, 150));\n\t\tintelligenceInput.setFont(f);\n\n\t\twisdomInput.setPreferredSize(new Dimension(200, 150));\n\t\twisdomInput.setFont(f);\n\n\t\tcharismaInput.setPreferredSize(new Dimension(200, 150));\n\t\tcharismaInput.setFont(f);\n\n\t\tstrengthRoll.setPreferredSize(new Dimension(200, 150));\n\t\tstrengthRoll.setFont(f);\n\n\t\tdexterityRoll.setPreferredSize(new Dimension(200, 150));\n\t\tdexterityRoll.setFont(f);\n\n\t\tconstitutionRoll.setPreferredSize(new Dimension(250, 150));\n\t\tconstitutionRoll.setFont(f);\n\n\t\tintelligenceRoll.setPreferredSize(new Dimension(240, 150));\n\t\tintelligenceRoll.setFont(f);\n\n\t\twisdomRoll.setPreferredSize(new Dimension(180, 150));\n\t\twisdomRoll.setFont(f);\n\n\t\tcharismaRoll.setPreferredSize(new Dimension(220, 150));\n\t\tcharismaRoll.setFont(f);\n\n\t\ttemporaryStrengthInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryStrengthInput.setFont(f);\n\n\t\ttemporaryDexterityInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryDexterityInput.setFont(f);\n\n\t\ttemporaryConstitutionInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryConstitutionInput.setFont(f);\n\n\t\ttemporaryIntelligenceInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryIntelligenceInput.setFont(f);\n\n\t\ttemporaryWisdomInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryWisdomInput.setFont(f);\n\n\t\ttemporaryCharismaInput.setPreferredSize(new Dimension(150, 150));\n\t\ttemporaryCharismaInput.setFont(f);\n\n\t\ttemporaryStrengthLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryStrengthLabel.setFont(f);\n\n\t\ttemporaryDexterityLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryDexterityLabel.setFont(f);\n\n\t\ttemporaryConstitutionLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryConstitutionLabel.setFont(f);\n\n\t\ttemporaryIntelligenceLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryIntelligenceLabel.setFont(f);\n\n\t\ttemporaryWisdomLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryWisdomLabel.setFont(f);\n\n\t\ttemporaryCharismaLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryCharismaLabel.setFont(f);\n\n\t\tstrengthModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tstrengthModifierLabel.setFont(f);\n\t\tstrengthModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(strengthInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tdexterityModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tdexterityModifierLabel.setFont(f);\n\t\tdexterityModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(dexterityInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tconstitutionModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tconstitutionModifierLabel.setFont(f);\n\t\tconstitutionModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(constitutionInput.getText()) - abilityScoreBaseValue) / 2)\n\t\t\t\t+ \"</html>\");\n\n\t\tintelligenceModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tintelligenceModifierLabel.setFont(f);\n\t\tintelligenceModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(intelligenceInput.getText()) - abilityScoreBaseValue) / 2)\n\t\t\t\t+ \"</html>\");\n\n\t\twisdomModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\twisdomModifierLabel.setFont(f);\n\t\twisdomModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(wisdomInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\tcharismaModifierLabel.setPreferredSize(new Dimension(200, 200));\n\t\tcharismaModifierLabel.setFont(f);\n\t\tcharismaModifierLabel.setText(\"<html>Modifier: \" + \"<br>\"\n\t\t\t\t+ String.valueOf((Integer.parseInt(charismaInput.getText()) - abilityScoreBaseValue) / 2) + \"</html>\");\n\n\t\ttemporaryStrengthModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryStrengthModifierLabel.setFont(f);\n\n\t\ttemporaryDexterityModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryDexterityModifierLabel.setFont(f);\n\n\t\ttemporaryConstitutionModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryConstitutionModifierLabel.setFont(f);\n\n\t\ttemporaryIntelligenceModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryIntelligenceModifierLabel.setFont(f);\n\n\t\ttemporaryWisdomModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryWisdomModifierLabel.setFont(f);\n\n\t\ttemporaryCharismaModifierLabel.setPreferredSize(new Dimension(200, 150));\n\t\ttemporaryCharismaModifierLabel.setFont(f);\n\n\t\tabilitySelection.add(abilityRoll);\n\t\tabilitySelection.add(abilityInput);\n\n\t\tabilityRoll.setPreferredSize(new Dimension(400, 100));\n\t\tabilityRoll.setFont(f);\n\n\t\tabilityInput.setPreferredSize(new Dimension(400, 100));\n\t\tabilityInput.setFont(f);\n\n\t\tfantasySelection.add(lowFantasy);\n\t\tfantasySelection.add(standardFantasy);\n\t\tfantasySelection.add(highFantasy);\n\t\tfantasySelection.add(epicFantasy);\n\n\t\tlowFantasy.setPreferredSize(new Dimension(450, 100));\n\t\tlowFantasy.setFont(f);\n\n\t\tstandardFantasy.setPreferredSize(new Dimension(550, 100));\n\t\tstandardFantasy.setFont(f);\n\n\t\thighFantasy.setPreferredSize(new Dimension(450, 100));\n\t\thighFantasy.setFont(f);\n\n\t\tepicFantasy.setPreferredSize(new Dimension(450, 100));\n\t\tepicFantasy.setFont(f);\n\n\t\tfantasyPointsLabel.setPreferredSize(new Dimension(400, 100));\n\t\tfantasyPointsLabel.setFont(f);\n\n\t\tsaveProgress.setPreferredSize(new Dimension(700, 100));\n\t\tsaveProgress.setFont(f);\n\n\t\tsaveAbility.setPreferredSize(new Dimension(300, 100));\n\t\tsaveAbility.setFont(f);\n\n\t}", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "@Override\n protected void sizeChanged () {\n }", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }", "private JButton getJButtonMaxImgSize() {\r\n\t\tif (jButtonMaxImgSize == null) {\r\n\t\t\tjButtonMaxImgSize = new JButton(\"Set to max of image stack\");\r\n\t\t\t// jButtonMaxImgSize.setPreferredSize(new Dimension(50, 22));\r\n\t\t\tjButtonMaxImgSize.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\t\tjButtonMaxImgSize.setToolTipText(\"set to maximum image size of all images in the selected manager list\");\r\n\t\t\tjButtonMaxImgSize.addActionListener(this);\r\n\t\t\tjButtonMaxImgSize.setActionCommand(\"parameter\");\r\n\t\t}\r\n\t\treturn jButtonMaxImgSize;\r\n\t}", "private void calcContentSize() {\n }", "public FrmMenuAdmin() {\n initComponents(); \n \n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH);\n jDesktopPane1.setMaximumSize(this.getMaximumSize()); \n //tester();\n \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n width = (int) screenSize.getWidth();\n height = (int) screenSize.getHeight(); \n this.setSize((int)width,(int)height);\n this.setExtendedState(FrmMenuAdmin.MAXIMIZED_BOTH); \n }", "private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "private void extendedSize(){\n setSize(600,400);\n }", "public void setSize(int size);", "static int itemSize(final boolean focus) {\r\n return GUIProp.fontsize + (focus ? 4 : 2);\r\n }", "public void changeSize()\n {\n //if mouse is on the play button, make it bigger\n if(Greenfoot.mouseMoved(this))\n setImage(\"play button bigger.png\");\n //if mouse is on the background, return play button to regular size\n else if(Greenfoot.mouseMoved(getWorld()))\n setImage(\"play button.png\");\n }", "private void actionBiggerCells() {\n layoutPanel.changeCellSize(true);\n }", "@Override\n\tprotected void UpdateUI() {\n\t\tMaxFlowLevelDisplay(MaxFlowLevel);\n\t}", "private void setGuiSizeToWorldSize() {\n worldPanel.setPreferredSize(new Dimension(worldPanel.getWorld()\n .getWidth(), worldPanel.getWorld().getHeight()));\n worldPanel.setSize(new Dimension(worldPanel.getWorld().getWidth(),\n worldPanel.getWorld().getHeight()));\n this.getParentFrame().pack();\n }", "public void updateHelpBoxDimensions()\r\n\t{\r\n\t\tsaveFont();\r\n\t\tg.setFont(NumerateGame.CAPTION_FONT);\r\n\t\thelpLineHeight = helpLines.size()*g.getFontMetrics().getMaxDescent();\r\n\t\thelpLineHeight += Math.max(helpLines.size()-1,0)*NumerateGame.HELP_BOX_INNER_TEXT_PADDING;\r\n\t\t\r\n\t\thelpLineWidth = 0;\r\n\t\tIterator it = helpLines.iterator();\r\n\t\twhile (it.hasNext())\r\n\t\t{\r\n\t\t\tString current = (String)it.next();\r\n\t\t\tif (g.getFontMetrics().stringWidth(current) > helpLineWidth)\r\n\t\t\t{\r\n\t\t\t\thelpLineWidth = g.getFontMetrics().stringWidth(current);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\trevertFont();\r\n\t}", "public MySWsDecoderSizesAutoLayoutTests() {\n initComponents();\n \n \n }", "public void sizeActionPerformed(java.awt.event.ActionEvent evt) {\n myFont.size = ((Integer) size.getSelectedItem()).intValue(); /*FAULT:: myFont.size = 5; */\n }", "private void cbxSizeActionPerformed(java.awt.event.ActionEvent evt) {\n\n String size = (String) cbxSize.getSelectedItem();\n if (size.contains(\"4\")) {\n panelSize = 4;\n } else if (size.contains(\"5\")) {\n panelSize = 5;\n } else {\n panelSize = 3;\n }\n initPanel();\n }", "public void actionPerformed(ActionEvent oEvent) {\n try {\n if (oEvent.getActionCommand().equals(\"UpdateSizeClasses\")) {\n\n //Make sure the values in the size classes are recognizable,\n //greater-than-zero numbers\n int iNumSizeClasses = 0;\n float fSizeClassSize = 0;\n try {\n JPanel jControls = (JPanel)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), PANEL_NAME);\n JTextField jField = (JTextField)DataGrapher.findNamedComponent(\n jControls, NUMBER_SIZE_CLASS_NAME);\n Integer oNumSizeClasses = Integer.valueOf(jField.getText());\n jField = (JTextField)DataGrapher.findNamedComponent(jControls, \n SIZE_CLASS_SIZE_NAME);\n Float oSizeClassSize = Float.valueOf(jField.getText());\n iNumSizeClasses = oNumSizeClasses.intValue();\n fSizeClassSize = oSizeClassSize.floatValue();\n }\n catch (java.lang.NumberFormatException oErr) {\n JOptionPane.showMessageDialog(m_oChartFrame, \"The value for number \" +\n \t\t\"of size classes or size class size is not a recognized number.\");\n return;\n }\n\n if (iNumSizeClasses <= 0 || fSizeClassSize <= 0) {\n JOptionPane.showMessageDialog(m_oChartFrame, \"The values for number\" +\n \t\t\" of size classes or size class size must be greater than zero.\");\n return;\n }\n\n if (m_bFirstTime ||\n iNumSizeClasses != m_iNumSizeClasses ||\n fSizeClassSize != m_fSizeClassSize) {\n m_bFirstTime = false;\n m_iNumSizeClasses = iNumSizeClasses;\n m_fSizeClassSize = fSizeClassSize;\n\n //Make the size classes array\n mp_fSizeClasses = null;\n mp_fSizeClasses = new double [m_iNumSizeClasses];\n for (int i = 0; i < m_iNumSizeClasses; i++) {\n mp_fSizeClasses[i] = m_fSizeClassSize * (i + 1);\n }\n\n getDataAndMakeTables();\n }\n return;\n }\n else if (oEvent.getSource() instanceof JCheckBox) {\n JCheckBox jCheckBox = (JCheckBox)oEvent.getSource();\n if (jCheckBox.getName().equals(INCLUDE_LIVE_NAME))\n m_bIncludeLive = jCheckBox.isSelected();\n else if (jCheckBox.getName().equals(INCLUDE_SNAGS_NAME))\n m_bIncludeSnags = jCheckBox.isSelected();\n if (m_bFirstTime) return;\n JPanel jContentPanel = new JPanel(new BorderLayout());\n JComboBox<String> jComboBox = (JComboBox<String>)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), SPECIES_COMBO_BOX_NAME);\n jContentPanel.add(makeSizeClassPanel(this, mp_sSpeciesNames, \n m_iNumSizeClasses, m_fSizeClassSize, jComboBox.getSelectedIndex(),\n m_bIncludeLive, m_bIncludeSnags), BorderLayout.NORTH); \n jContentPanel.add(makeTablePanel(jComboBox.getSelectedIndex()), \n BorderLayout.CENTER);\n m_oChartFrame.setContentPane(jContentPanel);\n //Create our menu\n m_oChartFrame = DataGrapher.addFileMenu(m_oChartFrame, this, m_bShowOneTimestep);\n m_oChartFrame.pack();\n return; \n }\n else if (oEvent.getActionCommand().equals(\"DisplayNewSpecies\")) {\n //Don't do anything if no tables have yet been created\n if (mp_iLiveTreeCounts == null) return;\n JPanel jContentPanel = new JPanel(new BorderLayout());\n JComboBox<String> jComboBox = (JComboBox<String>)DataGrapher.findNamedComponent(\n m_oChartFrame.getContentPane(), SPECIES_COMBO_BOX_NAME);\n jContentPanel.add(makeSizeClassPanel(this, mp_sSpeciesNames, \n m_iNumSizeClasses, m_fSizeClassSize, jComboBox.getSelectedIndex(),\n m_bIncludeLive, m_bIncludeSnags), BorderLayout.NORTH); \n jContentPanel.add(makeTablePanel(jComboBox.getSelectedIndex()), \n BorderLayout.CENTER);\n m_oChartFrame.setContentPane(jContentPanel);\n //Create our menu\n m_oChartFrame = DataGrapher.addFileMenu(m_oChartFrame, this, m_bShowOneTimestep);\n m_oChartFrame.pack();\n return;\n }\n super.actionPerformed(oEvent);\n }\n catch (sortie.data.simpletypes.ModelException oErr) {\n ErrorGUI oHandler = new ErrorGUI(m_oChartFrame);\n oHandler.writeErrorMessage(oErr);\n }\n }", "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "public int winSize() { return winSize; }", "public void doFitSize(Event event) {\r\n final int height = ((Intbox) Path.getComponent(\"/outerIndexWindow/currentDesktopHeight\")).getValue().intValue();\r\n final int maxListBoxHeight = height - 148;\r\n borderlayout_MunivDetail.setHeight(String.valueOf(maxListBoxHeight) + \"px\");\r\n\r\n windowMunivDetail.invalidate();\r\n }", "private void initUI() {\n fileCount = wizard.getFileCount();\n fileByteCount = wizard.getByteCount();\n fileCountLabel.setText(String.valueOf(fileCount));\n updateByteCount(byteCountLabel, byteCountUnit, \"KB\", fileByteCount, 0);\n progressBar.setProgress(0);\n }", "@Override\r\n\tprotected void update_display_size(double radius_of_system) {\r\n\t\tdouble tempRadius = radius/radius_of_system *2_500_000;\r\n\t\tthis.setSize((int)tempRadius, (int)tempRadius);\r\n\t}", "public void setMaximizing() {\r\n maximizing = true;\r\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n String newMxCharsToOutput = JOptionPane.showInputDialog(GlobalValues.myGEdit, \"Controls max chars to display\",GlobalValues.mxLenToDisplay );\r\n GlobalValues.mxLenToDisplay = Integer.valueOf(newMxCharsToOutput);\r\n }", "protected final Dimension windowSizeControl () {\n\t\tif (!this.isMaximum && !this.isIcon && !this.isClosed) {\n\t\t\tint height = size.height;\n\t\t\tint width = size.height;\n\t\t\t\n\t\t\t// Gets the current size\n\t\t\tint currentHeight = this.getHeight();\n\t\t\tint currentWidth = this.getWidth();\n\t\t\t\n\t\t\t// Makes a pack() to get the minimum required size\n\t\t\tthis.pack();\n\t\t\t\n\t\t\t// Gets the pack size\n\t\t\tint packHeight = this.getHeight();\n\t\t\tint packWidth = this.getWidth();\n\t\t\t\n\t\t\t// Calculates the ideal height\n\t\t\tif (packHeight > currentHeight) {\n\t\t\t\theight = packHeight;\n\t\t\t} else {\n\t\t\t\theight = currentHeight;\n\t\t\t}\n\t\t\t// Calculates the ideal width\n\t\t\tif (packWidth > currentWidth) {\n\t\t\t\twidth = packWidth;\n\t\t\t} else {\n\t\t\t\twidth = currentWidth;\n\t\t\t}\n\t\t\t\n\t\t\t// It must not be greater than the desktop size\n\t\t\tint desktopHeight = parent.getDesktopPane().getHeight();\n\t\t\tint desktopWidth = parent.getDesktopPane().getWidth();\n\t\t\t\n\t\t\tif (width > desktopWidth){\n\t\t\t\twidth = desktopWidth;\n\t\t\t}\n\t\t\tif (packWidth > desktopWidth){\n\t\t\t\tpackWidth = desktopWidth;\n\t\t\t}\n\t\t\tif (height > desktopHeight){\n\t\t\t\theight = desktopHeight;\n\t\t\t}\n\t\t\tif (packHeight > desktopHeight){\n\t\t\t\tpackHeight = desktopHeight;\n\t\t\t}\n\t\t\t\n\t\t\t// Resizes the window and sets the minimum allowed size\n\t\t\tsize = new Dimension(width, height);\n\t\t\tsetSize(size);\n\t\t\tsetMinimumSize(new Dimension(packWidth, packHeight));\n\t\t}\n\t\treturn size;\n\t}", "public void createGUI() {\n\n\t\tcontents = getContentPane();\n\t\tcontents.setLayout(new GridLayout(size, size));\n\n\t\t// Set Up Menu Bar\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tsetJMenuBar(menuBar);\n\n\t\tJMenu game = new JMenu(\"Game\");\n\t\tmenuBar.add(game);\n\t\tJMenuItem clearBoard = new JMenuItem(\"New Game\");\n\t\tgame.add(clearBoard);\n\t\tJMenuItem boardSize = new JMenuItem(\"Change Size\");\n\t\tgame.add(boardSize);\n\t\tJMenuItem exit = new JMenuItem(\"Exit\");\n\t\tgame.add(exit);\n\n\t\tJMenu help = new JMenu(\"Help\");\n\t\tmenuBar.add(help);\n\t\tJMenuItem rules = new JMenuItem(\"How to Play\");\n\t\thelp.add(rules);\n\t\tJMenuItem about = new JMenuItem(\"About\");\n\t\thelp.add(about);\n\n\t\tJMenu playerSelect = new JMenu(\"Players: \" + players);\n\t\tmenuBar.add(playerSelect);\n\t\tJMenuItem players2 = new JMenuItem(\"2 Player Game\");\n\t\tplayerSelect.add(players2);\n\t\tJMenuItem players3 = new JMenuItem(\"3 Player Game\");\n\t\tplayerSelect.add(players3);\n\t\tJMenuItem players4 = new JMenuItem(\"4 Player Game\");\n\t\tplayerSelect.add(players4);\n\n\t\tmenuBar.add(Box.createHorizontalGlue());\n\n\t\tplayerTurnLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Player 1's Turn\n\t\tmenuBar.add(playerTurnLbl);\n\t\tplayerTurnLbl.setVisible(true);\n\n\t\tinvalidMoveLbl.setFont(new Font(\"Lucida Grande\", Font.BOLD, 12)); // Invalid Move Alert\n\t\tinvalidMoveLbl.setForeground(Color.RED);\n\t\tmenuBar.add(invalidMoveLbl);\n\t\tinvalidMoveLbl.setVisible(false);\n\n\t\t// Exit Button Action\n\t\texit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\t// Board Size Button Action\n\t\tboardSize.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\trestartGame();\n\t\t\t}\n\t\t});\n\n\t\t// Reset Board Button Action\n\t\tclearBoard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Rules Button Action\n\t\trules.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"1. Players take turns moving up, down, left, or right to generate a self-avoiding walk.\\n\\tClick on a square to make your move.\\n\\n2. A player who makes a self-intersecting move loses the game. \\n\\n3. A player can win the game by making a self-intersecting move that creates a self-avoiding polygon.\\n\\tThis is only valid after at least 4 moves.\",\n\t\t\t\t\t\t\"Self-Avoiding Walk Game Rules\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// About Button Action\n\t\tabout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Self-Avoiding Walk Multiplayer Game\\nDeveloped by Adam Binder\\nCopyright 2019\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t});\n\n\t\t// 2 Player Button Action\n\t\tplayers2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 2;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 3 Player Button Action\n\t\tplayers3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 3;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// 4 Player Button Action\n\t\tplayers4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tplayers = 4;\n\t\t\t\tresetBoard();\n\t\t\t}\n\t\t});\n\n\t\t// Create event handlers:\n\t\tButtonHandler buttonHandler = new ButtonHandler();\n\n\t\t// Create and add board components:\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tfor (int j = 0; j < size; j++) {\n\t\t\t\tsquares[i][j] = new JButton();\n\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\tsquares[i][j].setBorderPainted(false);\n\t\t\t\tif ((i + j) % 2 != 0) {\n\t\t\t\t\tsquares[i][j].setBackground(colorGray);\n\t\t\t\t\tsquares[i][j].setBorder(null);\n\t\t\t\t\tsquares[i][j].setOpaque(true);\n\t\t\t\t}\n\t\t\t\tcontents.add(squares[i][j]);\n\t\t\t\tsquares[i][j].addActionListener(buttonHandler);\n\t\t\t}\n\t\t}\n\t}", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}", "@FXML\r\n void btnSizeMiuns(ActionEvent event) {\r\n \tdrawSize--;\r\n \tif(drawSize <= 1){\r\n \t\tdrawSize = 1;\r\n \t}\r\n }", "public void componentResized(ComponentEvent e) {\n\t\t\t\t\n\t\t\t\tDimension size = e.getComponent().getSize();\n\t\t\t\tint infoWidth = 200;\n\t\t\t\tint tabPaneWidth = 200;\n\t\t\t\tint padY = 80;\n\t\t\t\tint padX = 40;\n\t\t\t\tint canvasWidth = (int) (size.width - padX - infoWidth - tabPaneWidth);\n\t\t\t\tint canvasHeight = (int) (size.height - padY);\n\t\t\t\tcanvas.setSize(canvasWidth, canvasHeight);\n\t\t\t\twindow.setSize(canvasWidth, canvasHeight);\n\t\t\t\tinfoPanel.setSize(infoWidth, canvasHeight); \n\t\t\t\t\n\t\t\t\tint tabPadX = 10;\n\t\t\t\tint tabPadY = 30;\n\t\t\t\ttabbedPane.setSize(tabPaneWidth, canvasHeight);\n\t\t\t\texplorerPanel.setSize(tabPaneWidth-tabPadX, canvasHeight-tabPadY);\n\t\t\t\tplanPanel.setSize(tabPaneWidth-tabPadX, canvasHeight-tabPadY);\n\t\t\t\tcanvas.revalidate();\n\t\t\t}", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "public void settings() {\n size(640, 384);\n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "public void constructComponents() {\n // taking care of window setup //\n /////////////////////////////////\n\n\tsetLayout(new GridBagLayout());\n\tsetTitle(\"HMusicController\");\n\n\tsetResizable(false);\n\n\tsetMinimumSize( new Dimension( WIDTH, HEIGHT ) );\n\n\tconstraints = new GridBagConstraints();\n\n\t\n\t////////////////////////////////\n // adjustment for stellacaeli //\n ////////////////////////////////\n\n\tcaeliLabel = new Label( \"star density\" );\n\tsetConstraints( 0, 0, 1, 1 );\n\tadd( caeliLabel, constraints );\n\n\tcaeliScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tcaeliScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tcaeliScroll.addAdjustmentListener( this );\n\tsetConstraints( 0, 1, 1, 1 );\n\tadd( caeliScroll, constraints );\n\n\tcaeliValueLabel = new Label( \"\"+((caeliScroll.getMaximum() - caeliScroll.getValue())/100.0) );\n\tsetConstraints( 0, 2, 1, 1 );\n\tadd( caeliValueLabel, constraints );\n\n\t\n\t/////////////////////////////////\n // adjustment for planet count //\n /////////////////////////////////\n\n\tplanetLabel = new Label( \"planet count\" );\n\tsetConstraints( 1, 0, 1, 1 );\n\tadd( planetLabel, constraints );\n\n\tplanetScroll = new Scrollbar( Scrollbar.VERTICAL, 9, 1, 0, 10 );\n\tplanetScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tplanetScroll.addAdjustmentListener( this );\n\tsetConstraints( 1, 1, 1, 1 );\n\tadd( planetScroll, constraints );\n\n\tplanetValueLabel = new Label( \"\"+(planetScroll.getMaximum() - planetScroll.getValue()));\n\tsetConstraints( 1, 2, 1, 1 );\n\tadd( planetValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\ttriSizeLabel = new Label( \"coarse T size\" );\n\tsetConstraints( 2, 0, 1, 1 );\n\tadd( triSizeLabel, constraints );\n\n\ttriSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 99000, 100, 100, 100000 );\n\ttriSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 2, 1, 1, 1 );\n\tadd( triSizeScroll, constraints );\n\n\ttriSizeValueLabel = new Label( \"\"+(triSizeScroll.getMaximum() - triSizeScroll.getValue()));\n\tsetConstraints( 2, 2, 1, 1 );\n\tadd( triSizeValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\ttriFineSizeLabel = new Label( \"fine T size\" );\n\tsetConstraints( 3, 0, 1, 1 );\n\tadd( triFineSizeLabel, constraints );\n\n\ttriFineSizeScroll = new Scrollbar( Scrollbar.VERTICAL, 5000, 100, 0, 10000 );\n\ttriFineSizeScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\ttriFineSizeScroll.addAdjustmentListener( this );\n\tsetConstraints( 3, 1, 1, 1 );\n\tadd( triFineSizeScroll, constraints );\n\n\ttriFineSizeValueLabel = new Label( \"\"+(triFineSizeScroll.getMaximum() - triFineSizeScroll.getValue()));\n\tsetConstraints( 3, 2, 1, 1 );\n\tadd( triFineSizeValueLabel, constraints );\n\n\n\t////////////////////////////////////////\n // adjustment for triangle thresholds //\n ////////////////////////////////////////\n\n\tattDistLabel = new Label( \"att. dist.\" );\n\tsetConstraints( 4, 0, 1, 1 );\n\tadd( attDistLabel, constraints );\n\n\tattDistanceScroll = new Scrollbar( Scrollbar.VERTICAL, 3200, 100, 100, 4000 );\n\tattDistanceScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattDistanceScroll.addAdjustmentListener( this );\n\tsetConstraints( 4, 1, 1, 1 );\n\tadd( attDistanceScroll, constraints );\n\n\tattDistValueLabel = new Label( \"\"+(attDistanceScroll.getMaximum() - attDistanceScroll.getValue()));\n\tsetConstraints( 4, 2, 1, 1 );\n\tadd( attDistValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\tattStrnLabel = new Label( \"att. strn.\" );\n\tsetConstraints( 5, 0, 1, 1 );\n\tadd( attStrnLabel, constraints );\n\n\tattStrengthScroll = new Scrollbar( Scrollbar.VERTICAL, 90000, 1000, 1000, 100000 );\n\tattStrengthScroll.setMinimumSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.setPreferredSize( new Dimension( 30, SCROLL_HEIGHT ) );\n\tattStrengthScroll.addAdjustmentListener( this );\n\tsetConstraints( 5, 1, 1, 1 );\n\tadd( attStrengthScroll, constraints );\n\n\tattStrnValueLabel = new Label( \"\"+(attStrengthScroll.getMaximum() - attStrengthScroll.getValue()));\n\tsetConstraints( 5, 2, 1, 1 );\n\tadd( attStrnValueLabel, constraints );\n\n\t// ---------------------------------------- //\n\n\t// Add MIDI choice\n\tLabel midiLabel = new Label(\"Select MIDI device\");\n\tsetConstraints( 0, 3, 2, 1 );\n\tadd( midiLabel, constraints );\n\tsetConstraints( 2, 3, 3, 1 );\n\tadd( midiDevices, constraints );\n\n\tpack();\n }", "public int getMainMemorySize(){ return Integer.parseInt(mainMemorySize.getText()); }", "public Dimension getPreferredSize() {\n Dimension size = super.getPreferredSize();\n size.width += extraWindowWidth;\n return size;\n }", "private void setMemorySize() { }", "public static void determineSizes(){\n maxPieceSize = 65536*8;\n if(pieceSize > maxPieceSize){\n \t//make pieceSize equal to the max\n \tpieceSize = maxPieceSize - 1; //minus one because we want a buffer space\n }\n\n windowSize = fileSize/10 ;\n\t}", "public quotaGUI() {\n initComponents();\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "private void updateGUI() {\n\t\tsfrDlg.readSFRTableFromCPU();\n\t\tsourceCodeDlg.updateRowSelection(cpu.PC);\n\t\tsourceCodeDlg.getCyclesLabel().setText(\"Cycles count : \" + cpu.getCyclesCount());\n\t\tdataMemDlg.fillDataMemory();\n\t\t//ioPortsDlg.fillIOPorts();\t\t\n\t\tIterator iter = seg7DlgList.iterator();\n\t\twhile(iter.hasNext())\n\t\t\t((GUI_7SegDisplay)iter.next()).drawSeg();\n\t}", "private void calcAndSetImageSize() {\r\n\t\tint alphabetSize = ((Number) jSpinnerAlphabetSize.getValue()).intValue();\r\n\t\tint subWordLength = ((Number) jSpinnerSubWordLength.getValue()).intValue();\r\n\t\tint mag = ((Number) jSpinnerMag.getValue()).intValue();\t\r\n\t\tint imageSize = ((int) (Math.sqrt(alphabetSize))) * (int) Math.pow(2, subWordLength-1) * mag;\r\n\t\tjLabelImageSize.setText(\"Image size: \" + imageSize + \"x\" + imageSize);\r\n\t}", "public abstract void adjustSize(long size);", "public void notifyChildrenOfSizeChange() {\n Util.runDescendentsLayout(this);\n }", "@Override\n\tpublic void componentResized(ComponentEvent arg0) \n\t{\n\t\tif (arg0.getComponent() == this)\n\t\t{\n\t\t\tDimension size = this.getSize();\n\t\t\tthis.jbtnPreviousStep.setLocation(jbtnPreviousStep.getX(), size.height - jbtnPreviousStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(size.width - 6 - jbtnHelp.getWidth() - 10 - jbtnHelp.getWidth(), size.height - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jpanelStep5.setLocation(((size.width) / 2) + 3, jpanelStep5.getY());\n\t\t\tthis.jpanelStep5.setSize(size.width - jpanelStep5.getX() - 6, size.height - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnCalculate.setLocation((jpanelStep5.getWidth() / 2) - (jbtnCalculate.getWidth() / 2), jpanelStep5.getHeight() - 15 - jbtnCalculate.getHeight());\n\t\t\tthis.jProgressBar.setLocation((jpanelStep5.getWidth() / 2) - (jProgressBar.getWidth() / 2), jbtnCalculate.getY() - jProgressBar.getHeight() - 12);\n\t\t\tthis.jLabel1111.setLocation(jProgressBar.getX(), jProgressBar.getY() - 4 - jLabel1111.getHeight());\n\n\t\t\tthis.jlblTotalGradientDelayVolumeLabel.setLocation(jLabel1111.getX() + 16, jLabel1111.getY() - 12 - jlblTotalGradientDelayVolumeLabel.getHeight());\n\t\t\tthis.jlblNonMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblTotalGradientDelayVolumeLabel.getY() - 4 - jlblNonMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblNonMixingVolumeLabel.getY() - 4 - jlblMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblPreColumnVolume.setLocation(jLabel1111.getX(), jlblMixingVolumeLabel.getY() - 4 - jlblPreColumnVolume.getHeight());\n\t\t\t\n\t\t\tthis.jLabel111.setLocation(jLabel1111.getX(), jlblPreColumnVolume.getY() - 12 - jLabel111.getHeight());\n\t\t\tthis.jLabel11.setLocation(jLabel111.getX(), jLabel111.getY() - 4 - jLabel11.getHeight());\n\t\t\tthis.jLabel121.setLocation(jLabel11.getX(), jLabel11.getY() - 4 - jLabel121.getHeight());\n\t\t\tthis.jLabel12.setLocation(jLabel121.getX(), jLabel121.getY() - 4 - jLabel12.getHeight());\n\t\t\tthis.jLabel1.setLocation(jLabel12.getX(), jLabel12.getY() - 4 - jLabel1.getHeight());\n\t\t\tthis.jLabel.setLocation(jLabel1.getX(), jLabel1.getY() - 4 - jLabel.getHeight());\n\t\t\tthis.jScrollPane.setSize(jpanelStep5.getWidth() - 8 - 8, jLabel.getY() - 6 - jScrollPane.getY());\n\t\t\t\n\t\t\tthis.jlblTotalGradientDelayVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTotalGradientDelayVolume.getWidth(), jlblTotalGradientDelayVolumeLabel.getY());\n\t\t\tthis.jlblNonMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblNonMixingVolume.getWidth(), jlblNonMixingVolumeLabel.getY());\n\t\t\tthis.jlblMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblMixingVolume.getWidth(), jlblMixingVolumeLabel.getY());\n\n\t\t\tthis.jlblTimeElapsed.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTimeElapsed.getWidth(), jLabel111.getY());\n\t\t\tthis.jlblPhase.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPhase.getWidth(), jLabel11.getY());\n\t\t\tthis.jlblPercentImprovement.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPercentImprovement.getWidth(), jLabel121.getY());\n\t\t\tthis.jlblLastVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblLastVariance.getWidth(), jLabel12.getY());\n\t\t\tthis.jlblVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblVariance.getWidth(), jLabel1.getY());\n\t\t\tthis.jlblIterationNumber.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblIterationNumber.getWidth(), jLabel.getY());\n\t\t\tthis.jpanelGradientProfile.setSize(size.width - jpanelStep5.getX() - 6, (size.height - 6 - jbtnHelp.getHeight() - 6 - 6) / 2);\n\t\t\tthis.m_GraphControlGradient.setSize(jpanelGradientProfile.getWidth() - 3 - 5, jpanelGradientProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlGradient.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelGradientProfile.getY() + jpanelGradientProfile.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelGradientProfile.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.m_GraphControlFlowRate.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlFlowRate.repaint();\n\t\t\t/*this.jpanelStep4.setSize(this.jpanelStep4.getWidth(), size.height - 438);\n\t\t\tthis.jScrollPane1.setSize(this.jScrollPane1.getWidth(), size.height - 438 - 28);\n\t\t\tthis.jtableMeasuredRetentionTimes.revalidate();\n\t\t\tthis.jbtnNextStep.setLocation((int)size.getWidth() - this.jbtnNextStep.getWidth() - 6, (int)size.getHeight() - jbtnNextStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(this.jbtnNextStep.getLocation().x - this.jbtnHelp.getWidth() - 10, (int)size.getHeight() - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnPreloadedValues.setLocation(this.jbtnPreloadedValues.getLocation().x, (int)size.getHeight() - jbtnPreloadedValues.getHeight() - 6);\n\t\t\tthis.jpanelSimulatedChromatogram.setSize(size.width - jpanelSimulatedChromatogram.getLocation().x - 6, ((size.height - 6 - 6 - this.jbtnNextStep.getHeight()) * 5) / 10);\n\t\t\tthis.m_GraphControlTemp.setSize(jpanelSimulatedChromatogram.getWidth() - 3 - 5, jpanelSimulatedChromatogram.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlTemp.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelSimulatedChromatogram.getY() + jpanelSimulatedChromatogram.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelSimulatedChromatogram.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - 6 - this.jbtnNextStep.getHeight());\n\t\t\tthis.m_GraphControlHoldUp.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlHoldUp.repaint();*/\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void setBoxSize(int bs) {\n\t\tthis.boxSize = bs;\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }", "public void grow() {\n\t\thtmlFontSize += 40;\n\t}", "private void createAndShowGUI() {\n /**\n * MENUBAR\n */\n JMenuBar menuBar = new JMenuBar();\n\n JMenu menuStart = new JMenu(\"Program\");\n menuBar.add(menuStart);\n\n JMenuItem menuNewGame = new JMenuItem(\"Nová hra\");\n menuStart.add(menuNewGame);\n menuNewGame.addActionListener(new ActionListenerChangeCard(container, CardStartScreen));\n menuNewGame.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));\n\n JMenuItem menuAbout = new JMenuItem(\"O autorovi\");\n menuStart.add(menuAbout);\n menuAbout.addActionListener(new ActionListenerChangeCard(container, CardAbout));\n menuAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\n\n JMenuItem menuQuit = new JMenuItem(\"Konec\");\n menuStart.add(menuQuit);\n menuQuit.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n menuQuit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_K, java.awt.event.InputEvent.CTRL_MASK));\n\n Font fMenu = menuStart.getFont().deriveFont(17f);\n menuStart.setFont(fMenu);\n menuNewGame.setFont(fMenu);\n menuAbout.setFont(fMenu);\n menuQuit.setFont(fMenu);\n\n this.setJMenuBar(menuBar);\n\n /**\n * START SCREEN\n */\n JPanel pStartScreen = new JPanel(new GridBagLayout());\n\n JButton bStartDivision = new JButton(\"Dělení\");\n pStartScreen.add(bStartDivision, new GridBagConstraints(0, 0, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(25, 0, 25, 0), 25, 50));\n bStartDivision.addActionListener(new ActionListenerChangeCard(container, CardSettingsDivision));\n JButton bStartMultiplication = new JButton(\"Násobení\");\n pStartScreen.add(bStartMultiplication, new GridBagConstraints(0, 1, 1, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(25, 0, 25, 0), 25, 50));\n bStartMultiplication.addActionListener(new ActionListenerChangeCard(container, CardSettingsMultiplication));\n\n Font fButton = bStartDivision.getFont().deriveFont(17f);\n bStartDivision.setFont(fButton);\n bStartMultiplication.setFont(fButton);\n\n container.add(pStartScreen, CardStartScreen);\n\n /**\n * SETTINGS INIT\n */\n JPanel pDivision = new JPanel();\n JLabel lDivident = new JLabel();\n JLabel lFactor = new JLabel();\n JRadioButton chdTens = new JRadioButton();\n JRadioButton chfUnits = new JRadioButton();\n JRadioButton chdHundreds = new JRadioButton();\n JRadioButton chfTens = new JRadioButton();\n JRadioButton chdThousands = new JRadioButton();\n JRadioButton chdMillions = new JRadioButton();\n JRadioButton chfCustom = new JRadioButton();\n JRadioButton chdCustom = new JRadioButton();\n JTextField tdCustom = new JTextField();\n JTextField tfCustom = new JTextField();\n\n JPanel pMultiplication = new JPanel();\n JLabel lmFactor = new JLabel();\n JRadioButton chmMilions = new JRadioButton();\n JRadioButton chmTens = new JRadioButton();\n JRadioButton chmThousands = new JRadioButton();\n JRadioButton chmHundreds = new JRadioButton();\n JRadioButton chmCustom = new JRadioButton();\n JTextField tmCustom = new JTextField();\n JRadioButton chmmUnits = new JRadioButton();\n JRadioButton chmmTens = new JRadioButton();\n JRadioButton chmmHundreds = new JRadioButton();\n JRadioButton chmmCustom = new JRadioButton();\n JTextField tmmCustom = new JTextField();\n\n Settings settingsDivision = new Settings(Settings.DIVISION);\n Settings settingsMultiplication = new Settings(Settings.MULTIPLICATION);\n\n /**\n * DIVISION SETTINGS\n */\n pDivision.setLayout(new GridBagLayout());\n\n final DivisionPanel dpanel = new DivisionPanel(container, settingsDivision);\n container.add(dpanel, CardDivision);\n\n JLabel ldNumberOfExcercises = new JLabel(\"Počet příkladů\");\n pDivision.add(ldNumberOfExcercises, Helper.gbc(0, 0, 1));\n\n JSlider sldNumberOfExcercises = new JSlider(JSlider.HORIZONTAL, 0, 30, 15);\n sldNumberOfExcercises.setMajorTickSpacing(5);\n sldNumberOfExcercises.setMinorTickSpacing(1);\n sldNumberOfExcercises.setPaintTicks(true);\n sldNumberOfExcercises.setPaintLabels(true);\n sldNumberOfExcercises.setPreferredSize(new Dimension(350, 75));\n sldNumberOfExcercises.addChangeListener(new ChangeListenerSettingsSlider(\"count\", settingsDivision));\n pDivision.add(sldNumberOfExcercises, Helper.gbc(0, 1, 2));\n\n ButtonGroup bgdSize = new ButtonGroup();\n lDivident.setText(\"Dělenec\");\n pDivision.add(lDivident, Helper.gbc(0, 2, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER));\n chdTens.setText(\"Desítky\");\n chdTens.setSelected(true);\n chdTens.addActionListener(new ActionListenerSettings(99, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdTens, Helper.gbc(0, 3));\n chdHundreds.setText(\"Stovky\");\n chdHundreds.addActionListener(new ActionListenerSettings(999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdHundreds, Helper.gbc(0, 4));\n chdThousands.setText(\"Tisíce\");\n chdThousands.addActionListener(new ActionListenerSettings(9999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdThousands, Helper.gbc(0, 5));\n chdMillions.setText(\"Miliony\");\n chdMillions.addActionListener(new ActionListenerSettings(9999999, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdMillions, Helper.gbc(0, 6));\n chdCustom.setText(\"Vlastní\");\n chdCustom.addActionListener(new ActionListenerSettings(-1, \"divident\", settingsDivision, tdCustom));\n pDivision.add(chdCustom, Helper.gbc(0, 7));\n tdCustom.setText(\"9\");\n tdCustom.setEnabled(false);\n tdCustom.setPreferredSize(new Dimension(100, 25));\n tdCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"divident\", settingsDivision, tdCustom));\n pDivision.add(tdCustom, Helper.gbc(0, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgdSize.add(chdTens);\n bgdSize.add(chdHundreds);\n bgdSize.add(chdThousands);\n bgdSize.add(chdMillions);\n bgdSize.add(chdCustom);\n\n ButtonGroup bgfSize = new ButtonGroup();\n lFactor.setText(\"Dělitel\");\n pDivision.add(lFactor, Helper.gbc(1, 2, 1, GridBagConstraints.NONE, GridBagConstraints.CENTER));\n chfUnits.setText(\"Jednotky\");\n chfUnits.setSelected(true);\n chfUnits.addActionListener(new ActionListenerSettings(9, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfUnits, Helper.gbc(1, 3));\n chfTens.setText(\"Desítky\");\n chfTens.addActionListener(new ActionListenerSettings(99, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfTens, Helper.gbc(1, 4));\n chfCustom.setText(\"Vlastní\");\n chfCustom.addActionListener(new ActionListenerSettings(-1, \"factor\", settingsDivision, tfCustom));\n pDivision.add(chfCustom, Helper.gbc(1, 7));\n tfCustom.setText(\"9\");\n tfCustom.setEnabled(false);\n tfCustom.setPreferredSize(new Dimension(100, 25));\n tfCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"factor\", settingsDivision, tfCustom));\n pDivision.add(tfCustom, Helper.gbc(1, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgfSize.add(chfUnits);\n bgfSize.add(chfTens);\n bgfSize.add(chfCustom);\n\n JButton bdStart = new JButton(\"Spustit dělení\");\n bdStart.setFont(fButton);\n bdStart.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n ((CardLayout) container.getLayout()).show(container, CardDivision);\n dpanel.reset();\n }\n });\n pDivision.add(bdStart, Helper.gbc(0, 9, 2, GridBagConstraints.BOTH, GridBagConstraints.LINE_START, new Insets(25, 0, 0, 0)));\n\n Font fLabel = lDivident.getFont().deriveFont(16f);\n lDivident.setFont(fLabel);\n lFactor.setFont(fLabel);\n ldNumberOfExcercises.setFont(fLabel);\n\n Font fRadio = chdTens.getFont().deriveFont(14f);\n chdTens.setFont(fRadio);\n chdHundreds.setFont(fRadio);\n chdThousands.setFont(fRadio);\n chdMillions.setFont(fRadio);\n chdCustom.setFont(fRadio);\n\n chfUnits.setFont(fRadio);\n chfTens.setFont(fRadio);\n chfCustom.setFont(fRadio);\n\n container.add(pDivision, CardSettingsDivision);\n\n /**\n * MULTIPLICATION SETTINGS\n */\n pMultiplication.setLayout(new java.awt.GridBagLayout());\n\n final MultiplicationPanel mpanel = new MultiplicationPanel(container, settingsMultiplication);\n container.add(mpanel, CardMultiplication);\n\n JLabel lmNumberOfExcercises = new JLabel(\"Počet příkladů\");\n lmNumberOfExcercises.setFont(fLabel);\n pMultiplication.add(lmNumberOfExcercises, Helper.gbc(0, 0, 1));\n\n JSlider slmNumberOfExcercises = new JSlider(JSlider.HORIZONTAL, 0, 30, 15);\n slmNumberOfExcercises.setMajorTickSpacing(5);\n slmNumberOfExcercises.setMinorTickSpacing(1);\n slmNumberOfExcercises.setPaintTicks(true);\n slmNumberOfExcercises.setPaintLabels(true);\n slmNumberOfExcercises.setPreferredSize(new Dimension(350, 75));\n slmNumberOfExcercises.addChangeListener(new ChangeListenerSettingsSlider(\"count\", settingsMultiplication));\n pMultiplication.add(slmNumberOfExcercises, Helper.gbc(0, 1, 2));\n\n ButtonGroup bgmSize = new ButtonGroup();\n lmFactor.setText(\"Činitelé\");\n lmFactor.setFont(fLabel);\n pMultiplication.add(lmFactor, Helper.gbc(0, 2));\n chmTens.setText(\"Desítky\");\n chmTens.setSelected(true);\n chmTens.addActionListener(new ActionListenerSettings(99, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmTens, Helper.gbc(0, 3));\n chmHundreds.setText(\"Stovky\");\n chmHundreds.addActionListener(new ActionListenerSettings(999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmHundreds, Helper.gbc(0, 4));\n chmThousands.setText(\"Tisíce\");\n chmThousands.addActionListener(new ActionListenerSettings(9999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmThousands, Helper.gbc(0, 5));\n chmMilions.setText(\"Miliony\");\n chmMilions.addActionListener(new ActionListenerSettings(99999999, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmMilions, Helper.gbc(0, 6));\n chmCustom.setText(\"Vlastní\");\n chmCustom.addActionListener(new ActionListenerSettings(-1, \"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(chmCustom, Helper.gbc(0, 7));\n tmCustom.setText(\"9\");\n tmCustom.setEnabled(false);\n tmCustom.setPreferredSize(new Dimension(100, 25));\n tmCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"multiple\", settingsMultiplication, tmCustom));\n pMultiplication.add(tmCustom, Helper.gbc(0, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgmSize.add(chmMilions);\n bgmSize.add(chmTens);\n bgmSize.add(chmHundreds);\n bgmSize.add(chmThousands);\n bgmSize.add(chmCustom);\n\n ButtonGroup bgmmSize = new ButtonGroup();\n chmmUnits.setText(\"Jednotky\");\n chmmUnits.setSelected(true);\n chmmUnits.addActionListener(new ActionListenerSettings(9, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmUnits, Helper.gbc(1, 3));\n chmmTens.setText(\"Desítky\");\n chmmTens.addActionListener(new ActionListenerSettings(99, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmTens, Helper.gbc(1, 4));\n chmmHundreds.setText(\"Stovky\");\n chmmHundreds.addActionListener(new ActionListenerSettings(999, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmHundreds, Helper.gbc(1, 5));\n chmmCustom.setText(\"Vlastní\");\n chmmCustom.addActionListener(new ActionListenerSettings(-1, \"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(chmmCustom, Helper.gbc(1, 7));\n tmmCustom.setText(\"9\");\n tmmCustom.setEnabled(false);\n tmmCustom.setPreferredSize(new Dimension(100, 25));\n tmmCustom.getDocument().addDocumentListener(new DocumentListenerSettingsText(\"multiplebottom\", settingsMultiplication, tmmCustom));\n pMultiplication.add(tmmCustom, Helper.gbc(1, 8, 1, GridBagConstraints.NONE, GridBagConstraints.LINE_START, new Insets(0, 0, 0, 75)));\n bgmmSize.add(chmmUnits);\n bgmmSize.add(chmmTens);\n bgmmSize.add(chmmHundreds);\n bgmmSize.add(chmmCustom);\n\n JButton bmStart = new JButton(\"Spustit násobení\");\n bmStart.setFont(fButton);\n bmStart.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n ((CardLayout) container.getLayout()).show(container, CardMultiplication);\n mpanel.reset();\n }\n });\n pMultiplication.add(bmStart, Helper.gbc(0, 9, 2, GridBagConstraints.BOTH, GridBagConstraints.LINE_START, new Insets(25, 0, 0, 0)));\n\n chmMilions.setFont(fRadio);\n chmTens.setFont(fRadio);\n chmHundreds.setFont(fRadio);\n chmThousands.setFont(fRadio);\n chmCustom.setFont(fRadio);\n\n chmmUnits.setFont(fRadio);\n chmmTens.setFont(fRadio);\n chmmHundreds.setFont(fRadio);\n chmmCustom.setFont(fRadio);\n\n container.add(pMultiplication, CardSettingsMultiplication);\n\n /**\n * ABOUT\n */\n JPanel pAbout = new JPanel(new GridBagLayout());\n JLabel laVersion = new JLabel(\"Verze: 1.0.0\");\n pAbout.add(laVersion, Helper.gbc(0, 0));\n JLabel laAuthor = new JLabel(\"Copyright (C) 2014 Ondřej Švec\");\n pAbout.add(laAuthor, Helper.gbc(0, 1));\n JButton baHomepage = new JButton(\"<HTML>Homepage: <FONT color=\\\"#000099\\\"><U>http://svecon.cz/</U></FONT></HTML>\");\n baHomepage.setBorderPainted(false);\n baHomepage.setBackground(new Color(0xEEEEEE));\n baHomepage.setToolTipText(\"http://svecon.cz/\");\n baHomepage.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent ae) {\n if (Desktop.isDesktopSupported()) {\n try {\n Desktop.getDesktop().browse(new URI(\"http://svecon.cz/\"));\n } catch (IOException | URISyntaxException e) {\n }\n } else {\n }\n }\n });\n pAbout.add(baHomepage, Helper.gbc(0, 2));\n\n container.add(pAbout, CardAbout);\n }", "public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }", "private void setStats()\r\n {\r\n solutionText.setText(\"Solution Length: \"\r\n + Integer.toString(problem.getSolutionLength())\r\n + \"\\n# Queue Ops: \" + Integer.toString(problem.getQueueOps())\r\n + \"\\nMaxQueueSize: \" + Integer.toString(problem.getMaxQueueSize())\r\n //+ \"\\nOpen Discoveries: \" + Integer.toString(problem.getOR())\r\n //+ \"\\nClosed Discoveries: \" + Integer.toString(problem.getCR())\r\n );\r\n\r\n // resize\r\n solutionText.setFont(new Font(Font.SANS_SERIF, Font.BOLD | Font.ITALIC, 12));\r\n solutionText.setPreferredSize(\r\n new Dimension(calculateTextWidth(solutionText.getText().split(\"\\\\n\"),\r\n solutionText.getFontMetrics(solutionText.getFont())) + 60,\r\n calculateTextHeight(solutionText.getText().split(\"\\\\n\"),\r\n solutionText.getFontMetrics(solutionText.getFont()))));\r\n solutionLabel.setPreferredSize(new Dimension(solutionText.getPreferredSize().width,\r\n solutionText.getPreferredSize().height + solutionLabel.getIconTextGap() * 2));\r\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n byteViewerForm = new JPanel();\n byteViewerForm.setLayout(new GridBagLayout());\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n byteViewerForm.add(panel1, gbc);\n byte0.setBackground(new Color(-14073571));\n byte0.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte0);\n byte1.setBackground(new Color(-14073571));\n byte1.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte1);\n byte2.setBackground(new Color(-14073571));\n byte2.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte2);\n byte3.setBackground(new Color(-14073571));\n byte3.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte3);\n byte4.setBackground(new Color(-14073571));\n byte4.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte4);\n byte5.setBackground(new Color(-14073571));\n byte5.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte5);\n byte6.setBackground(new Color(-14073571));\n byte6.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte6);\n byte7.setBackground(new Color(-14073571));\n byte7.setPreferredSize(new Dimension(24, 24));\n panel1.add(byte7);\n final JLabel label1 = new JLabel();\n label1.setHorizontalAlignment(0);\n label1.setHorizontalTextPosition(0);\n label1.setText(\"Bytes\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n byteViewerForm.add(label1, gbc);\n }", "public FontChooseGUI()\r\n\t{\r\n\t\tsuper( \"Choose Font\" ); // call superclass constructor with window title\r\n\t\t\r\n\t\t/**************************************************************\r\n\t\t ** Initialise individual GUI components **\r\n\t\t **************************************************************/\r\n\t\t\r\n\t\tfontNamesList = new JList< String >( FONT_NAMES ); // initialise list of font names \r\n\t\tfontNamesList.setSelectionMode( ListSelectionModel.SINGLE_SELECTION ); // set font names list to allow only single selection\r\n\t\tfontNamesList.setVisibleRowCount( 5 ); // set the number of visible rows in the font names list to five\r\n\t\t\r\n\t\tboldCheckBox = new JCheckBox( \"Bold\" ); // initialise Bold checkbox\r\n\t\titalicCheckBox = new JCheckBox( \"Italic\" ); // initialise Italic checkbox\r\n\t\tfontNameLabel = new JLabel( \"Font\" ); // initialise Font Name label\r\n\t\tfontSizeLabel = new JLabel( \"Size\" ); // initialise Font Size label\r\n\t\tokButton = new JButton( \"OK\" ); // initialise OK button\r\n\t\tcancelButton = new JButton( \"Cancel\" ); // initialise Cancel button\r\n\t\t\r\n\t\t// initialise the array of font sizes with every even number from 2 to 100\r\n\t\tfor( int i = 0; i < 50; i++ )\r\n\t\t\tfontSizes[ i ] = ( i * 2 ) + 2;\r\n\t\t\r\n\t\tfontSizeList = new JList< Integer >( fontSizes ); // initialise list of font sizes\r\n\t\tfontSizeList.setSelectionMode( ListSelectionModel.SINGLE_SELECTION ); // set font sizes list to allow only single selection\r\n\t\tfontSizeList.setVisibleRowCount( 5 ); // set the number of visible rows in the font names list to five\r\n\t\t\r\n\t\tfontNameTextField = new JTextField( 20 ); // initialise the font name text field with 20 columns\r\n\t\tfontSizeTextField = new JTextField( 20 ); // initialise the font size text field with 20 columns\r\n\t\t\r\n\t\tleftBox = Box.createVerticalBox(); // initialise left hand box to add components in vertical layout\r\n\t\trightBox = Box.createVerticalBox(); // initialise right hand box to add components in vertical layout\r\n\t\t\r\n\t\t/**************************************************************\r\n\t\t ** Add components to the GUI **\r\n\t\t **************************************************************/\r\n\t\t\r\n\t\tleftBox.add( fontNameLabel ); // add font name label to left side of GUI\r\n\t\tleftBox.add( fontNameTextField ); // add font name text field to left side of GUI\r\n\t\tleftBox.add( new JScrollPane( fontNamesList ) ); // add font names list within a scroll pane to left side of GUI\r\n\t\tleftBox.add( boldCheckBox ); // add Bold checkbox to left side of GUI\r\n\t\tleftBox.add( okButton ); // add OK button to left side of GUI\r\n\t\t\r\n\t\trightBox.add( fontSizeLabel ); // add font size label to right side of GUI\r\n\t\trightBox.add( fontSizeTextField ); // add font size text field to right side of GUI\r\n\t\trightBox.add( new JScrollPane( fontSizeList ) ); // add font sizes list within a scroll pane to right side of GUI\r\n\t\trightBox.add( italicCheckBox ); // add italic checkbox to right side of GUI\r\n\t\trightBox.add( cancelButton ); // add Cancel button to right side of GUI\r\n\t\t\r\n\t\tsetLayout( new FlowLayout() ); // set the layout of the parent frame to the default Flow Layout\r\n\t\t\r\n\t\tadd( leftBox ); // add left hand side box to the parent frame using default layout\r\n\t\tadd( rightBox ); // add right hand side box to the parent frame using default layout\r\n\t\t\r\n\t\tsetDefaultCloseOperation( JFrame.HIDE_ON_CLOSE ); // set frame to hide when user closes the window\r\n\t\tpack(); // resize window to fit components\r\n\t}", "protected byte desiredWinScale() { return 9; }", "private void $$$setupUI$$$() {\n createUIComponents();\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(13, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JLabel label1 = new JLabel();\n label1.setText(\"Connection re-express probability when crossed.\");\n contentPane.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n contentPane.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n contentPane.add(connectionReexpressSlider, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Mutation probability when crossed.\");\n contentPane.add(label2, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPane.add(mutationWhenCrossedSlider, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Diff excess gene count factor.\");\n contentPane.add(label3, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(195, 22), null, 0, false));\n diffExcessFactorField = new FloatTextField();\n contentPane.add(diffExcessFactorField, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Diff disjoint gene count factor.\");\n contentPane.add(label4, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffDisjointFactorField = new FloatTextField();\n contentPane.add(diffDisjointFactorField, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Diff weight factor.\");\n contentPane.add(label5, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffWeightFactorField = new FloatTextField();\n contentPane.add(diffWeightFactorField, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Diff normalize gene count threshold.\");\n contentPane.add(label6, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n diffNormalizeThresholdField = new IntTextField();\n contentPane.add(diffNormalizeThresholdField, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n }", "public void loadSizeSelector() {\n sizeTitle = new Box(45, 10, 200, 70, 0);\r\n sizeTitle.setText(\"Select size\", 37);\r\n size4 = new Box(10, 80, 120, 50, 2);\r\n size4.setText(\"4\", 32);\r\n size5 = new Box(160, 80, 120, 50, 2);\r\n size5.setText(\"5\", 32);\r\n sizeSelector = new BigBox(450, 10, 290, 150, 0, sizeTitle, size4, size5);\r\n }", "public static void showGUI() {\n Display display = Display.getDefault();\n Shell shell = new Shell(display);\n EntropyUIconfig inst = new EntropyUIconfig(shell, SWT.NULL);\n Point size = inst.getSize();\n shell.setLayout(new FillLayout());\n shell.layout();\n if (size.x == 0 && size.y == 0) {\n inst.pack();\n shell.pack();\n } else {\n Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n shell.setSize(shellBounds.width, shellBounds.height);\n }\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }", "public void setPackageSize(int size){\r\n }", "public abstract void windowResized();", "short getPaperSize();", "private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }", "public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }", "public OptionsWindow(Manager m) {\n super(\"Options\");\n manager = m; \n JPanel optionsPanel = new JPanel(new SpringLayout());\n JLabel managerPoll = new JLabel(\"Manager Poll\", JLabel.TRAILING);\n optionsPanel.add(managerPoll);\n managerPollTextField = new JTextField(10);\n currentManagerPollPeriod = manager.getPollPeriod();\n managerPollTextField.setText(new Integer(currentManagerPollPeriod).toString());\n managerPoll.setLabelFor(managerPollTextField);\n optionsPanel.add(managerPollTextField);\n JLabel performancePoll = new JLabel(\"Performance Poll\", JLabel.TRAILING);\n optionsPanel.add(performancePoll);\n performancePollTextField = new JTextField(10);\n currentPerformancePollPeriod = manager.getPerformanceUpdatePeriod();\n performancePollTextField.setText(new Integer(currentPerformancePollPeriod).toString()); \n performancePoll.setLabelFor(performancePollTextField);\n optionsPanel.add(performancePollTextField); \n\n SpringUtilities.makeCompactGrid(optionsPanel,\n 2, 2, //rows, cols\n 6, 6, //initX, initY\n 6, 6); //xPad, yPad\n \n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n JButton okButton = new JButton(OKCOMMAND);\n okButton.setActionCommand(OKCOMMAND);\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n if (OKCOMMAND.equals(evt.getActionCommand())) { \n Integer i = new Integer(managerPollTextField.getText());\n Integer j = new Integer(currentManagerPollPeriod);\n if (!(i.equals(j))) {\n OMMLogger.logger.info(\"change of manager poll period from \" + j + \" to \" + i);\n currentManagerPollPeriod = i.intValue();\n manager.setPollPeriod(currentManagerPollPeriod);\n }\n i = new Integer(performancePollTextField.getText());\n j = new Integer(currentPerformancePollPeriod);\n if (!(i.equals(j))) {\n OMMLogger.logger.info(\"change of performance poll period from \" + j + \" to \" + i);\n currentPerformancePollPeriod = i.intValue();\n manager.setPerformancePollPeriod(currentPerformancePollPeriod);\n }\n dispose();\n }\n }\n }); \n \n buttonPanel.add(okButton); \n \n JButton cancelButton = new JButton(CANCELCOMMAND);\n cancelButton.setActionCommand(CANCELCOMMAND);\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dispose();\n }\n }); \n \n buttonPanel.add(cancelButton);\n \n optionsPanel.setOpaque(true);\n buttonPanel.setOpaque(true);\n \n Container mainPane = getContentPane();\n mainPane.setLayout(new BoxLayout(mainPane, BoxLayout.PAGE_AXIS));\n mainPane.add(optionsPanel, BorderLayout.PAGE_START); \n mainPane.add(buttonPanel, BorderLayout.PAGE_END); \n \n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); \n pack();\n }", "public static JPanel makeSizeClassPanel(ActionListener oListener, \n String[] p_sSpeciesNames, int iNumSizeClasses, double fSizeClassSize, \n int iSelectedSpecies, boolean bIncludeLive, boolean bIncludeSnags) throws ModelException {\n\n //Add the extra controls to the top of the histogram window\n JPanel jControls = new JPanel(new FlowLayout(FlowLayout.LEFT));\n jControls.setName(PANEL_NAME);\n\n //Bins boxes\n JLabel jTemp = new JLabel(\"Number of DBH size classes:\");\n jTemp.setFont(new sortie.gui.components.SortieFont());\n jControls.add(jTemp);\n JTextField jNumSizeClasses = new JTextField(String.valueOf(iNumSizeClasses));\n jNumSizeClasses.setName(NUMBER_SIZE_CLASS_NAME);\n jNumSizeClasses.setFont(new sortie.gui.components.SortieFont());\n jNumSizeClasses.setPreferredSize(\n new Dimension(50, (int) jNumSizeClasses.getPreferredSize().getHeight()));\n jControls.add(jNumSizeClasses);\n\n jTemp = new JLabel(\"Size class size (cm):\");\n jTemp.setFont(new sortie.gui.components.SortieFont());\n jControls.add(jTemp);\n JTextField jSizeClassSize = new JTextField(String.valueOf(fSizeClassSize));\n jSizeClassSize.setFont(new sortie.gui.components.SortieFont());\n jSizeClassSize.setName(SIZE_CLASS_SIZE_NAME);\n jSizeClassSize.setPreferredSize(new Dimension(50,\n (int) jSizeClassSize.getPreferredSize().getHeight()));\n jControls.add(jSizeClassSize);\n \n //Checkboxes for what to show\n JPanel jShowControls = new JPanel(new FlowLayout(FlowLayout.LEFT));\n jShowControls.setBorder(BorderFactory.createTitledBorder(null, \"Show:\", \n TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, \n new SortieFont(), Color.black));\n JCheckBox jCheckBox = new JCheckBox(\"Live Trees\", bIncludeLive);\n jCheckBox.setFont(new sortie.gui.components.SortieFont());\n jCheckBox.setName(INCLUDE_LIVE_NAME);\n if (oListener != null) jCheckBox.addActionListener(oListener);\n jShowControls.add(jCheckBox);\n jCheckBox = new JCheckBox(\"Snag\", bIncludeSnags);\n jCheckBox.setFont(new sortie.gui.components.SortieFont());\n jCheckBox.setName(INCLUDE_SNAGS_NAME);\n if (oListener != null) jCheckBox.addActionListener(oListener);\n jShowControls.add(jCheckBox);\n jControls.add(jShowControls);\n\n //Button to change\n if (oListener != null) {\n JButton jButton = new JButton(\"Display\");\n jButton.setFont(new sortie.gui.components.SortieFont());\n jButton.setActionCommand(\"UpdateSizeClasses\");\n jButton.addActionListener(oListener);\n jControls.add(jButton);\n }\n\n //Create our species box\n if (p_sSpeciesNames != null) {\n JComboBox<String> jSpeciesBox = new JComboBox<String>(p_sSpeciesNames);\n jSpeciesBox.setActionCommand(\"DisplayNewSpecies\");\n jSpeciesBox.setFont(new sortie.gui.components.SortieFont());\n jSpeciesBox.setName(SPECIES_COMBO_BOX_NAME);\n //Set the current selection to all species\n jSpeciesBox.setSelectedIndex(iSelectedSpecies);\n if (oListener != null) jSpeciesBox.addActionListener(oListener);\n jControls.add(jSpeciesBox);\n }\n\n return jControls;\n }", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "private void increaseGridSize() {\r\n columnConstraints.setPercentWidth(100.0 / gridSize);\r\n rowConstraints.setPercentHeight(100.0 / gridSize);\r\n grid.getColumnConstraints().add(columnConstraints);\r\n grid.getRowConstraints().add(rowConstraints);\r\n }", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}" ]
[ "0.6523044", "0.6446799", "0.64361024", "0.6373434", "0.6371907", "0.63539714", "0.6331856", "0.6308719", "0.6295807", "0.6280925", "0.62671524", "0.62570995", "0.6203588", "0.619575", "0.61859226", "0.61845315", "0.61398196", "0.6134353", "0.61226565", "0.6120254", "0.6120254", "0.6116729", "0.6091633", "0.6084624", "0.6081522", "0.60778517", "0.6060537", "0.6056465", "0.60485315", "0.6040669", "0.6039113", "0.6030896", "0.6008351", "0.59934604", "0.59773785", "0.5977361", "0.597624", "0.5943215", "0.5919165", "0.59172964", "0.59096503", "0.5907644", "0.58957905", "0.5878529", "0.58694184", "0.5865036", "0.58530575", "0.58349705", "0.5832672", "0.5824979", "0.58213633", "0.58131164", "0.5795404", "0.5793336", "0.5777119", "0.5770218", "0.5766055", "0.5761917", "0.57617486", "0.5738871", "0.57357424", "0.57351416", "0.5725355", "0.57211", "0.57179135", "0.5717088", "0.5710225", "0.56994915", "0.5695103", "0.5692431", "0.5681815", "0.5678602", "0.56754106", "0.5670106", "0.5669349", "0.5665372", "0.5665345", "0.56611824", "0.5657332", "0.56525344", "0.56476307", "0.56447446", "0.56417197", "0.56401545", "0.5634168", "0.5630929", "0.56291294", "0.56275064", "0.56270504", "0.5625011", "0.5624245", "0.56091446", "0.56027037", "0.5602261", "0.5601485", "0.5598727", "0.55984265", "0.55820364", "0.5573219", "0.55648506", "0.55548483" ]
0.0
-1
Prepare for a new round of painting. Since the component may be resized, compute the scaling factor again.
public void preparePaint() { if(! size.equals(getSize())) { // if the size has changed... size = getSize(); fieldImage = fieldView.createImage(size.width, size.height); g = fieldImage.getGraphics(); xScale = size.width / gridWidth; if(xScale < 1) { xScale = GRID_VIEW_SCALING_FACTOR; } yScale = size.height / gridHeight; if(yScale < 1) { yScale = GRID_VIEW_SCALING_FACTOR; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = this.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }", "private void rescale() {\n this.affineTransform = AffineTransform.getScaleInstance(this.zoom,\n this.zoom);\n int width = (int) ((this.board.getWidth() * 32) * this.zoom);\n int height = (int) ((this.board.getHeight() * 32) * this.zoom);\n this.setPreferredSize(new Dimension(width, height));\n this.repaint();\n }", "public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }", "public void rescale()\r\n\t{\n\t}", "public void InitScaling() {\n\tc2.InitScaling();\n\tc3.InitScaling();\n\tc1.InitScaling();\n\tc3.CalcPrev();\n\tc3.UpdateAllNoCoord();\n }", "private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "private void updateRenderer() {\n StretchParameters stretchParameters;\n switch (mStretchType) {\n default:\n stretchParameters = new MinMaxStretchParameters(Collections.singletonList((double) mMin),\n Collections.singletonList((double) mMax));\n break;\n case PERCENT_CLIP:\n stretchParameters = new PercentClipStretchParameters(mPercentClipMin, mPercentClipMax);\n break;\n case STANDARD_DEVIATION:\n stretchParameters = new StandardDeviationStretchParameters(mStdDevFactor);\n }\n StretchRenderer stretchRenderer = new StretchRenderer(stretchParameters, null, true, null);\n mRasterLayer.setRasterRenderer(stretchRenderer);\n }", "protected void preparePainting() {\n if (paintRegion == null) {\n prepareRegionProperties();\n prepareOption();\n }\n\n calculateCameraMatrix();\n }", "public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }", "public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "public void updateRenderRect() {\n int i = 0;\n if (this.mTargetRatio == 2) {\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n int i2 = (this.mSurfaceHeight - this.mSurfaceWidth) / 2;\n if (this.mRenderHeight != 0) {\n i = (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n }\n this.mTy = i2 + i;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceWidth;\n this.mRenderLayoutRect.set(this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY, this.mRenderWidth + this.mRenderOffsetX, ((this.mRenderHeight - this.mRenderWidth) / 2) + this.mRenderOffsetY + this.mRenderWidth);\n return;\n }\n this.mTx = this.mRenderWidth == 0 ? 0 : (this.mRenderOffsetX * this.mSurfaceWidth) / this.mRenderWidth;\n this.mTy = this.mRenderHeight == 0 ? 0 : (this.mRenderOffsetY * this.mSurfaceHeight) / this.mRenderHeight;\n this.mTwidth = this.mSurfaceWidth;\n this.mTheight = this.mSurfaceHeight;\n this.mRenderLayoutRect.set(0, 0, this.mRenderWidth, this.mRenderHeight);\n }", "private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }", "private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void stretch(final DPoint _pnt_from, \n\t final DPoint _pnt_totalStretch,\n final DPoint _pnt_size);", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}", "@Override\n\tprotected void updatePitSize() {\n\t\tint pitWidth = (int) (this.getWidth() * RATIO);\n\t\tint pitHeight = (int) (this.getHeight() * RATIO);\n\t\tint dx = (getWidth() - pitWidth) / 2;\n\t\tint dy = (getHeight() - pitHeight) / 2;\n\t\tpit = new RoundRectangle2D.Double(dx, dy, pitWidth, pitHeight, 50, 50);\n\t}", "private void scaleRectangles(Rectangle ourBoundingRectangle) {\n coloredRectangles.clear();\n\n // Figure out the maximum vertical space needed to display all the rows...\n double totalHeightOfAllRows = (double) this.rowHeight * (double) this.totalRowCount;\n\n computeScrollButtonOffsets(ourBoundingRectangle);\n\n // If the total needed to display all rows is less than our bounding rectangle, then we need to use that\n // smaller size to figure out the scaling factor per row, so things will be scaled correctly for the\n // case where the text does not fill the entire panel.\n double totalHeightToUse;\n if ((ourBoundingRectangle.getHeight() - scrollButtonTotalHeight) > totalHeightOfAllRows) {\n totalHeightToUse = totalHeightOfAllRows;\n } else {\n totalHeightToUse = ourBoundingRectangle.getHeight() - scrollButtonTotalHeight;\n }\n double scalingFactorPerRow = totalHeightToUse / this.totalRowCount;\n Iterator<ColoredRowBlock> it = coloredRowBlocks.iterator();\n int currentY = 0;\n int anchoredX = 0;\n int adjustRowCount = 0;\n\n // Add a rectangle for the top scroll bar button.\n if (scrollButtonTopHeight > 0) {\n coloredRectangles.add(new ColoredRectangle(QWinFrame.getQWinFrame().getBackground(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, (int) scrollButtonTopHeight)));\n currentY += (int) scrollButtonTopHeight;\n }\n while (it.hasNext()) {\n ColoredRowBlock coloredRowBlock = it.next();\n int scaledHeight = (int) ((double) (adjustRowCount + coloredRowBlock.getRowCount()) * scalingFactorPerRow);\n\n // Make each edit at least one pixel high.\n if (scaledHeight <= 0) {\n int increaseRowCount = 0;\n while (scaledHeight <= 0) {\n increaseRowCount++;\n scaledHeight = (int) ((double) (increaseRowCount + coloredRowBlock.getRowCount()) * scalingFactorPerRow);\n }\n\n // So the next block will be smaller by this amount.\n adjustRowCount = -increaseRowCount;\n }\n coloredRectangles.add(new ColoredRectangle(coloredRowBlock.getColor(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, scaledHeight)));\n currentY += scaledHeight;\n }\n\n // Add a rectangle for the bottom scroll bar button(s).\n if (scrollButtonBottomHeight > 0) {\n coloredRectangles.add(new ColoredRectangle(QWinFrame.getQWinFrame().getBackground(),\n new Rectangle(anchoredX + 1, currentY, PANEL_WIDTH - 2, (int) scrollButtonBottomHeight)));\n }\n }", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "@Override\r\n\tpublic void reset() {\n\t\tsuper.reset();\r\n\t\tthis.setScale(0.75f);\r\n\t}", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "void setupScalePointProportionally2() {\n\n\t\tdiagonal = new Line(myParent, point[neighbor(selectedPoint)[2]].position, point[selectedPoint].position);\n\t\tdiagonal.resetLockPoints(P);\n\t}", "@Override\n protected void afterAttach(){\n\n float scaleE = (float) Math.pow(toValue, 1.0 / totalIterations);\n scaleTransform.updateValues(scaleE, scaleE, scaleE);\n }", "@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}", "void scalePointProportionally2() {\n\t\tmyParent.fill(255, 0, 0);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[2]].position.x, point[neighbor(selectedPoint)[2]].position.y, 30,\n\t\t\t\t30);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[1]].position.x, point[neighbor(selectedPoint)[1]].position.y, 20,\n\t\t\t\t20);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[0]].position.x, point[neighbor(selectedPoint)[0]].position.y, 10,\n\t\t\t\t10);\n\t\t// offsetP = PVector.sub(P, beginP); // calculate the offset made by P\n\t\tdiagonal.detectX(P); // aka find X\n\t\t// diagonal.offsetX = PVector.sub(diagonal.X, diagonal.beginX); //\n\t\t// calculate the offset made by X\n\t\tdiagonal.end = PVector.add(diagonal.beginEnd, diagonal.offsetX);\n\t\tdiagonalScaleFactor = diagonal.start.dist(diagonal.X) / diagonal.start.dist(diagonal.beginX);\n\t\tpoint[selectedPoint].position.set(diagonal.end);\n\n\t\t// scale neighbors\n\t\tPVector leftNeighbor = new PVector();\n\t\tPVector rightNeighbor = new PVector();\n\t\tPVector opposite = new PVector();\n\t\tleftNeighbor.set(point[neighbor(selectedPoint)[0]].beginPosition);\n\t\trightNeighbor.set(point[neighbor(selectedPoint)[1]].beginPosition);\n\t\topposite.set(point[neighbor(selectedPoint)[2]].beginPosition);\n\n\t\tleftNeighbor.sub(opposite);\n\t\tleftNeighbor.mult(diagonalScaleFactor);\n\t\tleftNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[0]].position.set(leftNeighbor);\n\n\t\trightNeighbor.sub(opposite);\n\t\trightNeighbor.mult(diagonalScaleFactor);\n\t\trightNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[1]].position.set(rightNeighbor);\n\t}", "private static void prep(Component c) {\n\t\tif(c instanceof JComponent) {\n\t\t\tJComponent jc = (JComponent)c;\n\t\t\tif(jc.isOpaque()) {\n\t\t\t\tjc.setOpaque(false);\n\t\t\t\tjc.putClientProperty(USED_TO_BE_OPAQUE, Boolean.TRUE);\n\t\t\t}\n\n\t\t\tDimension preferredSize = c.getPreferredSize();\n\t\t\tif(greaterThanOrEqualTo(jc.getSize(),preferredSize)==false ) {\n\t\t\t\tjc.putClientProperty(SIZE,c.getSize());\n\t\t\t\tjc.setSize(preferredSize);\n\t\t\t}\n\t\t}\n\t\tif(c instanceof JSlider) {\n\t\t\tJSlider s = (JSlider)c;\n\t\t\tChangeListener[] listeners = s.getChangeListeners();\n\t\t\tint mid = (s.getMinimum()+s.getMaximum())/2;\n\t\t\tif(mid!=s.getValue()) {\n\t\t\t\ts.putClientProperty(CHANGE_LISTENERS, listeners);\n\t\t\t\tfor(int a = 0; a<listeners.length; a++) {\n\t\t\t\t\ts.removeChangeListener(listeners[a]);\n\t\t\t\t}\n\t\t\t\ts.putClientProperty(SLIDER_VALUE, new Integer(s.getValue()));\n\t\t\t\ts.setValue(mid);\n\t\t\t}\n\t\t}\n\t\tif(c instanceof Container) {\n\t\t\tContainer c2 = (Container)c;\n\t\t\tfor(int a = 0; a<c2.getComponentCount(); a++) {\n\t\t\t\tprep(c2.getComponent(a));\n\t\t\t}\n\t\t}\n\t\tif(c.isValid()==false)\n\t\t\tc.validate();\n\t}", "private void adapt(ComponentEvent e) {\n Dimension dimension = e.getComponent().getSize();\n _widthFrame = dimension.width;\n _heightFrame = dimension.height;\n _widthInternalPanel = _widthFrame - 20;\n _heightInternalPanel = _heightFrame - 30;\n setInternalBounds(_widthInternalPanel, _heightInternalPanel);\n internalScrollPane.setBounds(0, 0, _widthFrame, _heightFrame);\n // internalPanel.setBounds(0, 0, _widthFrame, _heightFrame);\n for (int i = 0; i < componentHacks.size(); i++) {\n componentHacks.get(i).update(_proportion);\n }\n }", "protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }", "private void drawPanelComponentResized(java.awt.event.ComponentEvent evt) {\n \n ((DrawPanel)drawPanel).updateEllipse();\n }", "@Override\n\tprotected void calculateThumbSize() {\n\t\tsuper.calculateThumbSize();\n\t\trec_upp.setSize(thumbRect.width, thumbRect.height );\n\t}", "@Override\n\tpublic void handleScaledCFComponent(CFComponent component) {\n\n\t}", "@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\tthis.mapImage.resizeImage(this.getWidth() - 15, this.getHeight() - 60);\n\t\t// make the thread \"go to sleep\" to avoid smearing the screen\n\t\ttry {\n\t\t\tThread.sleep(20);\n\t\t} catch (InterruptedException e0) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te0.printStackTrace();\n\t\t}\n\t\tdrawAll();\n\t}", "public void paintComponent(Graphics g1){\n Graphics2D g = (Graphics2D)g1;\n g.setFont(font);\n super.paintComponent(g);\n\t\tsetBackground(Color.WHITE);\n if (Window.isStretched()) g.drawImage(buffered, 0,0,Window.getWidth(),Window.getHeight(),this);\n else{ //for exact proportion\n double ratio = ((double)Window.getOriginalWidth()/(double)Window.getOriginalHeight());\n g.drawImage(buffered,\n /*x1*/ (Window.getWidth()/2)-((int)(Window.getHeight()*ratio)/2),\n /*y1*/ 0,\n /*x2*/ (int)(Window.getHeight()*ratio),\n /*y2*/ Window.getHeight(), this);\n }\n Window.updateSize(); //Window.jf\n doubleBuffer();\n\t}", "void setupLineScaleProportional() {\n\t\t// init start position of neighbor lines\n\t\tleftNeighborLine = line[neighbor(selectedLine)[0]];\n\t\trightNeighborLine = line[neighbor(selectedLine)[1]];\n\t\toppositeLine = line[neighbor(selectedLine)[2]];\n\n\t\t// reset their start values\n\t\tleftNeighborLine.resetLockPoints(P);\n\t\trightNeighborLine.resetLockPoints(P);\n\t\toppositeLine.resetLockPoints(P);\n\n\t\tbeginP.set(P);\n\n\t\t// check on which side of the mirror we are\n\t\toppositeLine.isOnThisSideOfLine = oppositeLine.checkLineSide(P);\n\n\t}", "protected void doResize() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\tdoNew();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, false);\r\n\t\tdlg.widthText.setText(\"\" + renderer.surface.width);\r\n\t\tdlg.heightText.setText(\"\" + renderer.surface.height);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\trenderer.surface.width = dlg.width;\r\n\t\t\trenderer.surface.height = dlg.height;\r\n\t\t\trenderer.surface.computeRenderingLocations();\r\n\t\t}\r\n\t}", "private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}", "public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}", "public void handle(ActionEvent ae) {\n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n }", "private void controlResized() {\n disposeBackBuffer();\n initializeBackBuffer();\n\n redraw();\n }", "private void prepareDrawingSwiping() {\n if (controlView != null) {\n controlView.setVisibility(View.VISIBLE);\n controlSize = vertical ? controlView.getWidth() : controlView.getHeight();\n } else controlSize = Float.MAX_VALUE;\n }", "private void ScaleImage(){\n\t\tBufferedImage resizedImage = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g2 = resizedImage.createGraphics();\n\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\tg2.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), null);\n\t\tg2.dispose();\n\t\tthis.image = resizedImage;\n\t}", "private void updateThumbPath() {\n thumbCurvature = showThumbCurvature ? thumbMaxWidth - thumbWidth : 0;\n thumbPath.reset();\n thumbPath.moveTo(thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt()); // tr\n thumbPath.lineTo(thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight); // br\n thumbPath.lineTo(thumbOffset.getPointXToInt(), thumbOffset.getPointYToInt() + thumbHeight); // bl\n thumbPath.cubicTo(thumbOffset.getPointXToInt(), thumbOffset.getPointYToInt() + thumbHeight,\n thumbOffset.getPointXToInt() - thumbCurvature,\n thumbOffset.getPointYToInt() + thumbHeight / 2,\n thumbOffset.getPointXToInt(), thumbOffset.getPointYToInt()); // bl2tl\n thumbPath.close();\n }", "public String _base_resize(double _width,double _height) throws Exception{\n_cvs.Resize((float) (_width),(float) (_height));\n //BA.debugLineNum = 86;BA.debugLine=\"pnl.SetLayoutAnimated(0, 0, 0, Width, Height)\";\n_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height));\n //BA.debugLineNum = 87;BA.debugLine=\"If thumb.IsInitialized = False Then CreateThumb\";\nif (_thumb.IsInitialized()==__c.False) { \n_createthumb();};\n //BA.debugLineNum = 88;BA.debugLine=\"CircleRect.Initialize(ThumbSize + stroke, ThumbSi\";\n_circlerect.Initialize((float) (_thumbsize+_stroke),(float) (_thumbsize+_stroke),(float) (_width-_thumbsize-_stroke),(float) (_height-_thumbsize-_stroke));\n //BA.debugLineNum = 89;BA.debugLine=\"xlbl.SetLayoutAnimated(0, CircleRect.Left, Circle\";\n_xlbl.SetLayoutAnimated((int) (0),(int) (_circlerect.getLeft()),(int) (_circlerect.getTop()),(int) (_circlerect.getWidth()),(int) (_circlerect.getHeight()));\n //BA.debugLineNum = 90;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 91;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "private void init() {\r\n setForeground(Color.black);\r\n setTitle(\"Evolve Boundary\");\r\n\r\n JPanel scalePanel = new JPanel(new GridLayout(4, 2));\r\n scalePanel.setForeground(Color.black);\r\n scalePanel.setBorder(buildTitledBorder(\"Contour Change\"));\r\n\r\n int[] aiUnits = image.getUnitsOfMeasure();\r\n JLabel labelChangeX = new JLabel(\"Enter size change in \" + FileInfoBase.getUnitsOfMeasureAbbrevStr(aiUnits[0]) + \" units \");\r\n labelChangeX.setForeground(Color.black);\r\n labelChangeX.setFont(serif12);\r\n scalePanel.add(labelChangeX);\r\n\r\n textChangeX = new JTextField();\r\n textChangeX.setText(\"2.0\");\r\n textChangeX.setFont(serif12);\r\n scalePanel.add(textChangeX);\r\n \r\n JLabel labelBoundaryDir = new JLabel(\"Move boundary \"); // make & set a label\r\n labelBoundaryDir.setForeground(Color.black);\r\n labelBoundaryDir.setFont(serif12);\r\n scalePanel.add(labelBoundaryDir); // add kernel label\r\n\r\n boundaryDirBox = new JComboBox();\r\n boundaryDirBox.setFont(serif12);\r\n boundaryDirBox.setBackground(Color.white);\r\n boundaryDirBox.addItem(\"Outward\");\r\n boundaryDirBox.addItem(\"Inward\");\r\n scalePanel.add(boundaryDirBox);\r\n\r\n //JPanel imageVOIPanel = new JPanel(new GridLayout(1, 1));\r\n //imageVOIPanel.setForeground(Color.black);\r\n //imageVOIPanel.setBorder(buildTitledBorder(\"Evolve Boundary\"));\r\n\r\n //ButtonGroup imageVOIGroup = new ButtonGroup();\r\n //singleSlice = new JRadioButton(\"Single slice\", true);\r\n //singleSlice.setFont(serif12);\r\n //imageVOIGroup.add(singleSlice);\r\n //imageVOIPanel.add(singleSlice);\r\n\r\n removeOriginalCheckBox = new JCheckBox(\"Replace Original Contour\");\r\n removeOriginalCheckBox.setFont(serif12);\r\n removeOriginalCheckBox.setForeground(Color.black);\r\n removeOriginalCheckBox.setSelected(false);\r\n scalePanel.add(removeOriginalCheckBox);\r\n\r\n\r\n JPanel mainPanel = new JPanel(new GridBagLayout());\r\n mainPanel.setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\r\n\r\n GridBagConstraints gbc = new GridBagConstraints();\r\n gbc.gridwidth = 1;\r\n gbc.gridheight = 1;\r\n gbc.anchor = GridBagConstraints.WEST;\r\n gbc.weightx = 1;\r\n gbc.insets = new Insets(3, 3, 3, 3);\r\n gbc.gridx = 0;\r\n gbc.gridy = 0;\r\n gbc.fill = GridBagConstraints.HORIZONTAL;\r\n mainPanel.add(scalePanel, gbc);\r\n //gbc.gridy++;\r\n //mainPanel.add(imageVOIPanel, gbc);\r\n\r\n JPanel buttonPanel = new JPanel();\r\n buildOKButton();\r\n buttonPanel.add(OKButton);\r\n buildCancelButton();\r\n buttonPanel.add(cancelButton);\r\n buildHelpButton();\r\n buttonPanel.add(helpButton);\r\n\r\n getContentPane().add(mainPanel, BorderLayout.CENTER);\r\n getContentPane().add(buttonPanel, BorderLayout.SOUTH);\r\n pack();\r\n setVisible(true);\r\n }", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "@Override\n protected void onSizeChanged(int w, int h, int oldW, int oldH) {\n super.onSizeChanged(w, h, oldW, oldH);\n\n canvasWidth = w;\n canvasHeight = h;\n updatePolygonSize();\n\n if (Math.min(canvasWidth, canvasHeight) != Math.min(oldW, oldH)) {\n refreshImage();\n }\n }", "public void scaleRecipe(double newSize, String newUnits) {\n \t\tdouble currentSize = getPostBoilVol(getVolUnits());\n \t\tcurrentSize = Quantity.convertUnit(getVolUnits(), newUnits, currentSize);\n \t\tdouble conversionFactor = newSize / currentSize;\n \n \t\tif (conversionFactor != 1) {\n \t\t\tsetPostBoil(newSize);\n \t\t\tsetVolUnits(newUnits);\n \n \t\t\t// TODO: figure out a way to make sure old IBU = new IBU\n \t\t\tfor (int i = 0; i < getHopsListSize(); i++) {\n \t\t\t\tHop h = getHop(i);\n \t\t\t\th.setAmount(h.getAmountAs(h.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tfor (int i = 0; i < getMaltListSize(); i++) {\n \t\t\t\tFermentable f = getFermentable(i);\n \t\t\t\tf.setAmount(f.getAmountAs(f.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tcalcHopsTotals();\n \t\t\tcalcMaltTotals();\n \n \t\t}\n \t}", "@Override\n\tpublic void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tmRequiredRadius = (int) (Math.sqrt(w * w + h * h) / 3);\n\t}", "protected void paintComponent(Graphics g) {\r\n // Scale with NEAREST_NEIGHBOR\r\n int xLoc = PADDING, yLoc = PADDING;\r\n long startTime, endTime;\r\n float totalTime;\r\n int iterations = 10;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < iterations; ++i) {\r\n g.drawImage(picture, xLoc, yLoc, scaleW, scaleH, null);\r\n }\r\n endTime = System.nanoTime();\r\n totalTime = (float)((endTime - startTime) / 1000000) / iterations;\r\n g.drawString(\"NEAREST \", xLoc, yLoc + scaleH + PADDING);\r\n g.drawString(Float.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + scaleH + PADDING + 10);\r\n System.out.println(\"NEAREST: \" + ((endTime - startTime) / 1000000));\r\n \r\n // Scale with BILINEAR\r\n xLoc += scaleW + PADDING;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < iterations; ++i) {\r\n g.drawImage(picture, xLoc, yLoc, scaleW, scaleH, null);\r\n }\r\n endTime = System.nanoTime();\r\n totalTime = (float)((endTime - startTime) / 1000000) / iterations;\r\n g.drawString(\"BILINEAR\", xLoc, yLoc + scaleH + PADDING);\r\n g.drawString(Float.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + scaleH + PADDING + 10);\r\n System.out.println(\"BILINEAR: \" + ((endTime - startTime) / 1000000));\r\n\r\n // Scale with BICUBIC\r\n xLoc += scaleW + PADDING;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BICUBIC);\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < iterations; ++i) {\r\n g.drawImage(picture, xLoc, yLoc, scaleW, scaleH, null);\r\n }\r\n endTime = System.nanoTime();\r\n totalTime = (float)((endTime - startTime) / 1000000) / iterations;\r\n g.drawString(\"BICUBIC\", xLoc, yLoc + scaleH + PADDING);\r\n g.drawString(Float.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + scaleH + PADDING + 10);\r\n System.out.println(\"BICUBIC: \" + ((endTime - startTime) / 1000000));\r\n\r\n // Scale with getScaledInstance\r\n xLoc += scaleW + PADDING;\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < iterations; ++i) {\r\n Image scaledPicture = picture.getScaledInstance(scaleW, scaleH, \r\n Image.SCALE_AREA_AVERAGING);\r\n g.drawImage(scaledPicture, xLoc, yLoc, null);\r\n }\r\n endTime = System.nanoTime();\r\n totalTime = (float)((endTime - startTime) / 1000000) / iterations;\r\n g.drawString(\"getScaled\", xLoc, yLoc + scaleH + PADDING);\r\n g.drawString(Float.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + scaleH + PADDING + 10);\r\n System.out.println(\"getScaled: \" + ((endTime - startTime) / 1000000));\r\n \r\n // Scale with Progressive Bilinear\r\n xLoc += scaleW + PADDING;\r\n startTime = System.nanoTime();\r\n for (int i = 0; i < iterations; ++i) {\r\n Image scaledPicture = getFasterScaledInstance(picture, scaleW, scaleH, \r\n RenderingHints.VALUE_INTERPOLATION_BILINEAR, true);\r\n g.drawImage(scaledPicture, xLoc, yLoc, null);\r\n }\r\n endTime = System.nanoTime();\r\n totalTime = (float)((endTime - startTime) / 1000000) / iterations;\r\n g.drawString(\"Progressive\", xLoc, yLoc + scaleH + PADDING);\r\n g.drawString(Float.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + scaleH + PADDING + 10);\r\n System.out.println(\"Progressive: \" + ((endTime - startTime) / 1000000));\r\n }", "protected void isotrop()\r\n {\r\n Dimension d = getSize();\r\n int maxX = d.width - 1, maxY = d.height - 1;\r\n\tpSize = Math.max(width / maxX, height / maxY);\r\n\tcX = maxX / 2;\r\n\tcY = maxY / 2;\r\n\r\n\t// Since pixel size is max of width/height over their device sizes, one of these\r\n\t// values will actually be larger. This should be used to use all of the canvas\r\n\tactualWidth = maxX * pSize;\r\n\tactualHeight = maxY * pSize;\r\n }", "void scale(double factor);", "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t\tif( mr > 0.1f*h ) {\n\t\t\tmr=0.1f*h;\n\t\t\tif( m != null ) {\n\t\t\t\t((CircleObjectKE)m).setR(mr);\n\t\t\t}\n\t\t}\n\t}", "private void rescaleLabels() {\n // TJJ Nov 2018 - make sure labels scale correct on any changes\n // to the ring display\n ViewManager vm = getViewManager();\n rangeRings.setLabelSize(vm.getMaster().getDisplayScale());\n }", "protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }", "public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFactor;\n\t\t\n\t\tfor(Node n : root.getOffspring()) {\n\t\t\trescale( (DrawableNode)n);\n\t\t}\n\t}", "@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2 = (Graphics2D) g;\n g2.scale(2, 2);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setColor(Color.WHITE);\n\n Application.grid.draw(g2);\n ui.draw(g2);\n }", "public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}", "public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}", "@Override\r\n public Dimension getPreferredSize() {\n \r\n return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());\r\n }", "@Test\n void testScaleUp() throws OperationFailedException {\n\n ScaledObjectAreaChecker checker = new ScaledObjectAreaChecker(SCALE_FACTOR);\n\n // Create an object that is a small circle\n ObjectMask unscaled = CircleObjectFixture.circleAt(new Point2d(8, 8), 7);\n checker.assertConnected(\"unscaled\", unscaled);\n\n ObjectMask scaled = unscaled.scale(checker.factor());\n\n checker.assertConnected(\"scaled\", scaled);\n checker.assertExpectedArea(unscaled, scaled);\n }", "private void update() {\n if (_dirty) {\n _fmin = _clips.getClipMin();\n _fmax = _clips.getClipMax();\n _fscale = 256.0f/(_fmax-_fmin);\n _flower = _fmin;\n _fupper = _flower+255.5f/_fscale;\n _dirty = false;\n }\n }", "public void updateSize() {\n\t\tint mpVis = (csub.isMorePanelVisible()) ? 1 : 0;\n\t\tint csubAwake = (csub.isAwake()) ? 1 : 0;\n\t\t\n\t\tint height = csubAwake * (CSub.INTERFACE_PANEL_HEIGHT + mpVis * CSub.MORE_PANEL_HEIGHT);\n\t\t\n\t\tsetPreferredSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t\tsetSize(new Dimension(csub.getWidth() - 2 * CSub.RESIZE_BORDER_WIDTH, height));\n\t}", "@Override\n public void componentResized(ComponentEvent e) {\n setShape(new Ellipse2D.Double(0,0,FRAME_WIDTH,FRAME_WIDTH));\n }", "private BufferedImage scale(BufferedImage sourceImage) {\n GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice();\n GraphicsConfiguration graphicsConfiguration = graphicsDevice.getDefaultConfiguration();\n BufferedImage scaledImage = graphicsConfiguration.createCompatibleImage(IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n Graphics2D newGraphicsImage = scaledImage.createGraphics();\n newGraphicsImage.setColor(Color.white);\n newGraphicsImage.fillRect(0, 0, IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n double xScale = (double) IMAGE_DIMENSION / sourceImage.getWidth();\n double yScale = (double) IMAGE_DIMENSION / sourceImage.getHeight();\n AffineTransform affineTransform = AffineTransform.getScaleInstance(xScale,yScale);\n newGraphicsImage.drawRenderedImage(sourceImage, affineTransform);\n newGraphicsImage.dispose();\n\n return scaledImage;\n }", "@Override\n public void setBounds(Rectangle bounds) {\n final Rectangle repaintBounds = new Rectangle(getBounds());\n\n final Rectangle newBounds = new Rectangle(ajustOnGrid(bounds.x),\n ajustOnGrid(bounds.y), ajustOnGrid(bounds.width), bounds.height);\n\n newBounds.width = newBounds.width < MINIMUM_SIZE.x ? MINIMUM_SIZE.x\n : newBounds.width;\n\n this.bounds = newBounds;\n\n parent.getScene().repaint(repaintBounds);\n parent.getScene().repaint(newBounds);\n\n // Move graphics elements associated with this component\n leftMovableSquare.setBounds(computeLocationResizer(0));\n rightMovableSquare.setBounds(computeLocationResizer(bounds.width));\n\n setChanged();\n notifyObservers();\n }", "void rootViewSizeChange()\n {\n int rootW = (int) Math.ceil(_rootView.getWidth());\n int rootH = (int) Math.ceil(_rootView.getHeight());\n _canvas.setWidth(rootW*_scale); _canvas.setHeight(rootH*_scale);\n }", "@Override\n\tpublic float getRenderSizeModifier() {\n\t\treturn getScale();\n\t}", "public void updateFilling(float proportion)\n\t{\n\t\tfloat xCenter = border.getCenterX() -.5f;\n\t\tfloat yCenter = border.getCenterY();\n\t\tfloat xLeft = xCenter - 0.5f;\n\t\t\n\t\tfloat fillCenter = xLeft + proportion;\n\t\t\n\t\tfilling.setCenter(fillCenter, yCenter);\n\t\tfilling.setSize(proportion*2f , 0.2f);\n\t}", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "protected void newSize() {\r\n adjustSize();\r\n halt();\r\n newGame();\r\n }", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "private void layoutSwingComponents( double scale ) {\n// Component[] components = component.getComponents();\n// for( int i = 0; i < components.length; i++ ) {\n// Component component = components[i];\n// Point origLocation = (Point)componentOrgLocationsMap.get( component );\n// if( origLocation != null ) {\n// Point newLocation = new Point( (int)( origLocation.getX() * scale ), (int)( origLocation.getY() * scale ) );\n// component.setLocation( newLocation );\n// }\n// }\n }", "public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}", "public void updateLayer() {\n bufferedImage = null;\n repaint();\n panelResized();\n }", "void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}", "public PictureScaler() {\r\n try {\r\n URL url = getClass().getResource(\"images/BB.jpg\");\r\n picture = ImageIO.read(url);\r\n scaleW = (int)(SCALE_FACTOR * picture.getWidth());\r\n scaleH = (int)(SCALE_FACTOR * picture.getHeight());\r\n System.out.println(\"w, h = \" + picture.getWidth() + \", \" + picture.getHeight());\r\n setPreferredSize(new Dimension(PADDING + (5 * (scaleW + PADDING)), \r\n scaleH + (4 * PADDING)));\r\n } catch (Exception e) {\r\n System.out.println(\"Problem reading image file: \" + e);\r\n System.exit(0);\r\n }\r\n }", "private void updateBorderSpecs() {\n if(mPolygonShapeSpec.hasBorder()) {\n mBorderPaint.setStrokeWidth(mPolygonShapeSpec.getBorderWidth());\n mBorderPaint.setColor(mPolygonShapeSpec.getBorderColor());\n } else {\n mBorderPaint.setStrokeWidth(0);\n mBorderPaint.setColor(0);\n }\n updatePolygonSize();\n invalidate();\n }", "@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ball\n displayArea.setDisp(w-1, h-1);\n if (!isInitBackground) {\n isInitBackground = true;\n backgCalculating = new BackCalculating(0, 0, displayArea.xMax, displayArea.yMax, Color.BLACK, Color.YELLOW);\n }\n }", "public void setBestSize() { setSize(getBestWidth(), getBestHeight()); }", "private Image adjust(Image orig) {\r\n \r\n int iw = orig.getWidth(this);\r\n int ih = orig.getHeight(this);\r\n \r\n Insets i = getInsets();\r\n int cw = getSize().width-i.left-i.right; // Canvas width\r\n int ch = getSize().height-i.top-i.bottom; // Canvas height\r\n\r\n if (iw > cw || ih > ch) {\r\n // scale\r\n \r\n double scaleW = 1.0 * cw / iw;\r\n double scaleH = 1.0 * ch / ih;\r\n \r\n if (scaleW < scaleH) {\r\n // Fit width\r\n wx1 = i.left;\r\n wx2 = cw - 1;\r\n \r\n int nH = (int) (ih * scaleW);\r\n\r\n wy1 = (ch - nH) / 2;\r\n wy2 = wy1 + nH - 1;\r\n } else {\r\n // Fit height\r\n \r\n int nW = (int) (iw * scaleH);\r\n\r\n wx1 = (cw - nW) / 2;\r\n wx2 = wx1 + nW - 1;\r\n \r\n wy1 = i.top;\r\n wy2 = ch - 1;\r\n }\r\n /*\r\n System.out.println(\r\n \"ADJUST sCALE: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */ \r\n return orig.getScaledInstance(wx2 - wx1, wy2 - wy1,\r\n Image.SCALE_DEFAULT);\r\n } else {\r\n // center\r\n wx1 = (cw - iw) / 2;\r\n wy1 = (ch - ih) / 2;\r\n wx2 = wx1 + iw - 1;\r\n wy2 = wy1 + ih - 1;\r\n\r\n /*\r\n System.out.println(\r\n \"ADJUST cENTER: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */\r\n return orig;\r\n }\r\n\r\n }", "public void resize() {\n\t\tsp.doLayout();\n\t}", "protected void paintComponent(Graphics g) {\r\n if (!originalImagePainted) {\r\n paintOriginalImage();\r\n }\r\n long startTime, endTime, totalTime;\r\n int xLoc, yLoc;\r\n \r\n // Draw scaled versions with nearest neighbor\r\n xLoc = 5;\r\n yLoc = 20;\r\n startTime = System.nanoTime();\r\n drawImage(g, yLoc, false);\r\n endTime = System.nanoTime();\r\n totalTime = (endTime - startTime) / 1000000;\r\n g.drawString(\"NEAREST \", xLoc, yLoc + (FULL_SIZE / 2));\r\n g.drawString(Long.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + (FULL_SIZE / 2) + 15);\r\n System.out.println(\"NEAREST: \" + (endTime - startTime) / 1000000);\r\n\r\n // BILINEAR\r\n yLoc += FULL_SIZE + PADDING;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n startTime = System.nanoTime();\r\n drawImage(g, yLoc, false);\r\n endTime = System.nanoTime();\r\n totalTime = (endTime - startTime) / 1000000;\r\n g.drawString(\"BILINEAR \", xLoc, yLoc + (FULL_SIZE / 2));\r\n g.drawString(Long.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + (FULL_SIZE / 2) + 15);\r\n System.out.println(\"BILINEAR: \" + (endTime - startTime) / 1000000);\r\n\r\n // BIDUBIC\r\n yLoc += FULL_SIZE + PADDING;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_BICUBIC);\r\n startTime = System.nanoTime();\r\n drawImage(g, yLoc, false);\r\n endTime = System.nanoTime();\r\n totalTime = (endTime - startTime) / 1000000;\r\n g.drawString(\"BICUBIC \", xLoc, yLoc + (FULL_SIZE / 2));\r\n g.drawString(Long.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + (FULL_SIZE / 2) + 15);\r\n System.out.println(\"BICUBIC: \" + (endTime - startTime) / 1000000);\r\n\r\n // getScaledInstance()\r\n yLoc += FULL_SIZE + PADDING;\r\n ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_INTERPOLATION, \r\n RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);\r\n startTime = System.nanoTime();\r\n drawImage(g, yLoc, true);\r\n endTime = System.nanoTime();\r\n totalTime = (endTime - startTime) / 1000000;\r\n g.drawString(\"getScaled \", xLoc, yLoc + (FULL_SIZE / 2));\r\n g.drawString(Long.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + (FULL_SIZE / 2) + 15);\r\n System.out.println(\"getScaled: \" + (endTime - startTime) / 1000000);\r\n\r\n // Progressive Bilinear\r\n yLoc += FULL_SIZE + PADDING;\r\n startTime = System.nanoTime();\r\n drawBetterImage(g, yLoc);\r\n endTime = System.nanoTime();\r\n totalTime = (endTime - startTime) / 1000000;\r\n g.drawString(\"Progressive \", xLoc, yLoc + (FULL_SIZE / 2));\r\n g.drawString(Long.toString(totalTime) + \" ms\", \r\n xLoc, yLoc + (FULL_SIZE / 2) + 15);\r\n System.out.println(\"faster: \" + (endTime - startTime) / 1000000);\r\n\r\n // Draw image sizes\r\n xLoc = 100;\r\n int delta = (int)(SCALE_FACTOR * FULL_SIZE);\r\n for (int scaledSize = FULL_SIZE; scaledSize > 0; scaledSize -= delta) {\r\n g.drawString(scaledSize + \" x \" + scaledSize, \r\n xLoc + Math.max(0, scaledSize/2 - 20), 15);\r\n xLoc += scaledSize + 20;\r\n }\r\n }", "private void updatePolygonSize() {\n updatePolygonSize(getPaddingLeft(), getPaddingTop(), getPaddingRight(), getPaddingBottom());\n }", "protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }", "protected void resizePanel() {\n\t\tif (drawingAreaIsBlank) { // may have become blank after deleting the last node manually, so panel must still be shrunk\n\t\t\tsetPreferredSize(new Dimension(0,0)); // put back to small size so scrollbars disappear\n\t\t\trevalidate();\n\t\t\treturn;\n\t\t}\n\t\tgetMaxMin(); // get the extent of the tree to the left, right, bottom\n\t\tsetPreferredSize(new Dimension(maxX, maxY));\n\t\trevalidate();\n\t}", "public void componentResized(ComponentEvent e) {\r\n\r\n int width = getWidth();\r\n int height = getHeight();\r\n\r\n //we check if either the width\r\n //or the height are below minimum\r\n\r\n boolean resize = false;\r\n\r\n if (width < minWidth) {\r\n resize = true;\r\n width = minWidth;\r\n }\r\n if (height < minHeight) {\r\n resize = true;\r\n height = minHeight;\r\n }\r\n if (resize) {\r\n this.setSize(width, height);\r\n }\r\n }", "private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }", "@Override\r\npublic void componentResized(ComponentEvent arg0) {\n\tsetSizeBackgr(getSize());\r\n\tsetSizeHat (getSize());\r\n\tsetSizeGift(getSize());\r\n}", "private void determineCanvasSize() {\n boolean changed = transformManager.determineCanvasSize();\n if ( changed ) {\n changeListenerProxy.canvasSizeChanged( new ApparatusPanel2.ChangeEvent( ApparatusPanel2.this ) );\n paint();\n }\n }", "public abstract BufferedImage scale(Dimension destinationSize);", "@Override\n\tpublic void componentResized(ComponentEvent arg0) \n\t{\n\t\tif (arg0.getComponent() == this)\n\t\t{\n\t\t\tDimension size = this.getSize();\n\t\t\tthis.jbtnPreviousStep.setLocation(jbtnPreviousStep.getX(), size.height - jbtnPreviousStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(size.width - 6 - jbtnHelp.getWidth() - 10 - jbtnHelp.getWidth(), size.height - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jpanelStep5.setLocation(((size.width) / 2) + 3, jpanelStep5.getY());\n\t\t\tthis.jpanelStep5.setSize(size.width - jpanelStep5.getX() - 6, size.height - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnCalculate.setLocation((jpanelStep5.getWidth() / 2) - (jbtnCalculate.getWidth() / 2), jpanelStep5.getHeight() - 15 - jbtnCalculate.getHeight());\n\t\t\tthis.jProgressBar.setLocation((jpanelStep5.getWidth() / 2) - (jProgressBar.getWidth() / 2), jbtnCalculate.getY() - jProgressBar.getHeight() - 12);\n\t\t\tthis.jLabel1111.setLocation(jProgressBar.getX(), jProgressBar.getY() - 4 - jLabel1111.getHeight());\n\n\t\t\tthis.jlblTotalGradientDelayVolumeLabel.setLocation(jLabel1111.getX() + 16, jLabel1111.getY() - 12 - jlblTotalGradientDelayVolumeLabel.getHeight());\n\t\t\tthis.jlblNonMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblTotalGradientDelayVolumeLabel.getY() - 4 - jlblNonMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblMixingVolumeLabel.setLocation(jLabel1111.getX() + 16, jlblNonMixingVolumeLabel.getY() - 4 - jlblMixingVolumeLabel.getHeight());\n\t\t\tthis.jlblPreColumnVolume.setLocation(jLabel1111.getX(), jlblMixingVolumeLabel.getY() - 4 - jlblPreColumnVolume.getHeight());\n\t\t\t\n\t\t\tthis.jLabel111.setLocation(jLabel1111.getX(), jlblPreColumnVolume.getY() - 12 - jLabel111.getHeight());\n\t\t\tthis.jLabel11.setLocation(jLabel111.getX(), jLabel111.getY() - 4 - jLabel11.getHeight());\n\t\t\tthis.jLabel121.setLocation(jLabel11.getX(), jLabel11.getY() - 4 - jLabel121.getHeight());\n\t\t\tthis.jLabel12.setLocation(jLabel121.getX(), jLabel121.getY() - 4 - jLabel12.getHeight());\n\t\t\tthis.jLabel1.setLocation(jLabel12.getX(), jLabel12.getY() - 4 - jLabel1.getHeight());\n\t\t\tthis.jLabel.setLocation(jLabel1.getX(), jLabel1.getY() - 4 - jLabel.getHeight());\n\t\t\tthis.jScrollPane.setSize(jpanelStep5.getWidth() - 8 - 8, jLabel.getY() - 6 - jScrollPane.getY());\n\t\t\t\n\t\t\tthis.jlblTotalGradientDelayVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTotalGradientDelayVolume.getWidth(), jlblTotalGradientDelayVolumeLabel.getY());\n\t\t\tthis.jlblNonMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblNonMixingVolume.getWidth(), jlblNonMixingVolumeLabel.getY());\n\t\t\tthis.jlblMixingVolume.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblMixingVolume.getWidth(), jlblMixingVolumeLabel.getY());\n\n\t\t\tthis.jlblTimeElapsed.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblTimeElapsed.getWidth(), jLabel111.getY());\n\t\t\tthis.jlblPhase.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPhase.getWidth(), jLabel11.getY());\n\t\t\tthis.jlblPercentImprovement.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblPercentImprovement.getWidth(), jLabel121.getY());\n\t\t\tthis.jlblLastVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblLastVariance.getWidth(), jLabel12.getY());\n\t\t\tthis.jlblVariance.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblVariance.getWidth(), jLabel1.getY());\n\t\t\tthis.jlblIterationNumber.setLocation((jProgressBar.getX() + jProgressBar.getWidth()) - this.jlblIterationNumber.getWidth(), jLabel.getY());\n\t\t\tthis.jpanelGradientProfile.setSize(size.width - jpanelStep5.getX() - 6, (size.height - 6 - jbtnHelp.getHeight() - 6 - 6) / 2);\n\t\t\tthis.m_GraphControlGradient.setSize(jpanelGradientProfile.getWidth() - 3 - 5, jpanelGradientProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlGradient.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelGradientProfile.getY() + jpanelGradientProfile.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelGradientProfile.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - jbtnHelp.getHeight() - 6);\n\t\t\tthis.m_GraphControlFlowRate.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlFlowRate.repaint();\n\t\t\t/*this.jpanelStep4.setSize(this.jpanelStep4.getWidth(), size.height - 438);\n\t\t\tthis.jScrollPane1.setSize(this.jScrollPane1.getWidth(), size.height - 438 - 28);\n\t\t\tthis.jtableMeasuredRetentionTimes.revalidate();\n\t\t\tthis.jbtnNextStep.setLocation((int)size.getWidth() - this.jbtnNextStep.getWidth() - 6, (int)size.getHeight() - jbtnNextStep.getHeight() - 6);\n\t\t\tthis.jbtnHelp.setLocation(this.jbtnNextStep.getLocation().x - this.jbtnHelp.getWidth() - 10, (int)size.getHeight() - jbtnHelp.getHeight() - 6);\n\t\t\tthis.jbtnPreloadedValues.setLocation(this.jbtnPreloadedValues.getLocation().x, (int)size.getHeight() - jbtnPreloadedValues.getHeight() - 6);\n\t\t\tthis.jpanelSimulatedChromatogram.setSize(size.width - jpanelSimulatedChromatogram.getLocation().x - 6, ((size.height - 6 - 6 - this.jbtnNextStep.getHeight()) * 5) / 10);\n\t\t\tthis.m_GraphControlTemp.setSize(jpanelSimulatedChromatogram.getWidth() - 3 - 5, jpanelSimulatedChromatogram.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlTemp.repaint();\n\t\t\tthis.jpanelFlowProfile.setLocation(jpanelFlowProfile.getX(), jpanelSimulatedChromatogram.getY() + jpanelSimulatedChromatogram.getHeight() + 6);\n\t\t\tthis.jpanelFlowProfile.setSize(jpanelSimulatedChromatogram.getWidth(), size.height - jpanelFlowProfile.getY() - 6 - 6 - this.jbtnNextStep.getHeight());\n\t\t\tthis.m_GraphControlHoldUp.setSize(jpanelFlowProfile.getWidth() - 3 - 5, jpanelFlowProfile.getHeight() - 16 - 3);\n\t\t\tthis.m_GraphControlHoldUp.repaint();*/\n\t\t}\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "private final void scale(BasicEvent event) {\n if (dynamicSizeEnabled) {\n float dist = distanceTo(event);\n float oldr = radius;\n float newr = (1 - mixingFactor) * oldr + dist * mixingFactor;\n float f;\n if (newr > (f = defaultClusterRadius * MAX_SCALE_RATIO)) {\n newr = f;\n } else if (newr < (f = defaultClusterRadius / MAX_SCALE_RATIO)) {\n newr = f;\n }\n setRadius(newr);\n }\n if (dynamicAspectRatioEnabled) {\n // TODO aspect ratio must also account for dynamicAngleEnabled.\n float dx = (event.x - location.x);\n float dy = (event.y - location.y);\n float dw = dx * cosAngle + dy * sinAngle; // dot dx,dy with unit vector of instantaneousAngle of cluster\n float dh = -dx * sinAngle + dy * cosAngle; // and with normal to unit vector\n float oldAspectRatio = getAspectRatio();\n float newAspectRatio = Math.abs(dh / dw);\n if (dynamicAngleEnabled) {\n if (newAspectRatio > ASPECT_RATIO_MAX_DYNAMIC_ANGLE_ENABLED) {\n newAspectRatio = ASPECT_RATIO_MAX_DYNAMIC_ANGLE_ENABLED;\n } else if (newAspectRatio < ASPECT_RATIO_MIN_DYNAMIC_ANGLE_ENABLED) {\n newAspectRatio = ASPECT_RATIO_MIN_DYNAMIC_ANGLE_ENABLED;\n }\n } else {\n if (newAspectRatio > ASPECT_RATIO_MAX_DYNAMIC_ANGLE_DISABLED) {\n newAspectRatio = ASPECT_RATIO_MAX_DYNAMIC_ANGLE_DISABLED;\n } else if (newAspectRatio < ASPECT_RATIO_MIN_DYNAMIC_ANGLE_DISABLED) {\n newAspectRatio = ASPECT_RATIO_MIN_DYNAMIC_ANGLE_DISABLED;\n }\n }\n setAspectRatio((1 - mixingFactor) * oldAspectRatio + mixingFactor * newAspectRatio);\n }\n if (dynamicAngleEnabled) {\n // dynamicall rotates cluster to line it up with edge.\n // the cluster instantaneousAngle is defined so horizontal edges have instantaneousAngle 0 or +/-PI, vertical have +/- PI/2.\n // instantaneousAngle increases CCW from 0 for rightward from center of cluster events.\n //\n // awkwardness here is that events will fall on either side around center of cluster.\n // instantaneousAngle of event is 0 or +/-PI when events are mostly horizontal (there is a cut at +/-PI from atan2).\n // similarly, if events are mostly vertical, then instantaneousAngle is either PI/2 or -PI/2.\n // if we just average instantaneous instantaneousAngle we getString something in between which is at 90 deg\n // to actual instantaneousAngle of cluster.\n // if the event instantaneousAngle<0, we use PI-instantaneousAngle; this transformation makes all event angles fall from 0 to PI.\n // now the problem is that horizontal events still average to PI/2 (vertical cluster).\n\n float dx = (location.x - event.x);\n float dy = (location.y - event.y);\n float newAngle = (float) (Math.atan2(dy, dx));\n if (newAngle < 0) {\n newAngle += (float) Math.PI; // puts newAngle in 0,PI, e.g -30deg becomes 150deg\n }\n // if newAngle is very different than established instantaneousAngle, assume it is\n // just the other end of the object and flip the newAngle.\n// boolean flippedPos=false, flippedNeg=false;\n float diff = newAngle - angle;\n if ((diff) > Math.PI / 2) {\n // newAngle is clockwise a lot, flip it back across to\n // negative value that can be averaged; e.g. instantaneousAngle=10, newAngle=179, newAngle->-1.\n newAngle = newAngle - (float) Math.PI;\n// flippedPos=true;\n } else if (diff < -Math.PI / 2) {\n // newAngle is CCW\n newAngle = -(float) Math.PI + newAngle; // instantaneousAngle=10, newAngle=179, newAngle->1\n// flippedNeg=true;\n }\n// if(newAngle>3*Math.PI/4)\n// newAngle=(float)Math.PI-newAngle;\n float angleDistance = (newAngle - angle); //angleDistance(instantaneousAngle, newAngle);\n // makes instantaneousAngle=0 for horizontal positive event, PI for horizontal negative event y=0+eps,x=-1, -PI for y=0-eps, x=-1, //\n // PI/2 for vertical positive, -Pi/2 for vertical negative event\n setAngle(angle + mixingFactor * angleDistance);\n// System.out.println(String.format(\"dx=%8.1f\\tdy=%8.1f\\tnewAngle=%8.1f\\tangleDistance=%8.1f\\tangle=%8.1f\\tflippedPos=%s\\tflippedNeg=%s\",dx,dy,newAngle*180/Math.PI,angleDistance*180/Math.PI,instantaneousAngle*180/Math.PI,flippedPos,flippedNeg));\n// System.out.println(String.format(\"dx=%8.1f\\tdy=%8.1f\\tnewAngle=%8.1f\\tangleDistance=%8.1f\\tangle=%8.1f\",dx,dy,newAngle*180/Math.PI,angleDistance*180/Math.PI,instantaneousAngle*180/Math.PI));\n// setAngle(-.1f);\n }\n }", "@Override\n\t\t\t\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tsuper.componentResized(e);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void update() {\r\n\t\t// get the first element and set the values according to its\r\n\t\t// information\r\n\t\tIqmDataBox iqmDataBox = (IqmDataBox) this.workPackage.getSources().get(0);\r\n\t\tPlanarImage pi = iqmDataBox.getImage();\r\n\r\n\t\tjFormattedTextFieldOldWidth.setValue(pi.getWidth());\r\n\t\tjFormattedTextFieldOldHeight.setValue(pi.getHeight());\r\n\r\n\t\tint left = ((Number) jSpinnerLeft.getValue()).intValue();\r\n\t\tint right = ((Number) jSpinnerRight.getValue()).intValue();\r\n\t\tint top = ((Number) jSpinnerTop.getValue()).intValue();\r\n\t\tint bottom = ((Number) jSpinnerBottom.getValue()).intValue();\r\n\r\n\t\t// Set image dependent initial values;\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pi.getWidth() + left + right);\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.setValue(pi.getHeight() + top + bottom);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\t\t\r\n\t\tif (buttConst.isSelected()){\r\n\t\t\ttbConst.setTitleColor(Color.BLACK);\r\n\t\t\tjLabelConst.setEnabled(true);\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\ttbConst.setTitleColor(Color.GRAY);\r\n\t\t\tjLabelConst.setEnabled(false);\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\t\tthis.repaint(); //because of tb TitledBorder cahnge of color\r\n\t\t\r\n\r\n\t\tthis.updateParameterBlock();\r\n\t\tthis.setParameterValuesToGUI();\r\n\t}" ]
[ "0.73887783", "0.63103867", "0.62684685", "0.6065417", "0.6035034", "0.59775543", "0.5893741", "0.58635193", "0.5829944", "0.5776912", "0.5776912", "0.5752284", "0.57430375", "0.571935", "0.5678077", "0.56649", "0.5655786", "0.56538373", "0.5651351", "0.56216806", "0.5617749", "0.56111795", "0.5576378", "0.55551577", "0.5494116", "0.54799896", "0.5475542", "0.54737014", "0.5473471", "0.54670125", "0.5434753", "0.54161245", "0.54045653", "0.5403254", "0.5401495", "0.5375957", "0.53695816", "0.5365653", "0.53628165", "0.53615165", "0.53517133", "0.5347119", "0.532537", "0.53214157", "0.5319951", "0.531188", "0.5289671", "0.5283154", "0.52812517", "0.52754897", "0.5265621", "0.52580565", "0.52500206", "0.5249036", "0.52489847", "0.52338654", "0.5226755", "0.52239347", "0.5220438", "0.5218575", "0.5216809", "0.51953197", "0.51900685", "0.5182603", "0.51761204", "0.51736677", "0.5166243", "0.51637596", "0.5163682", "0.5156026", "0.5150615", "0.51391", "0.5134408", "0.5134267", "0.51275337", "0.51233846", "0.5119291", "0.5118566", "0.5108013", "0.5106448", "0.5104222", "0.50995946", "0.50973374", "0.50968736", "0.50932574", "0.509276", "0.5092583", "0.50902224", "0.5088041", "0.5069006", "0.5068421", "0.5060724", "0.50602895", "0.5055983", "0.5051584", "0.5050342", "0.50465494", "0.50465494", "0.5046169", "0.50456494" ]
0.728232
1
Paint on grid location on this field in a given color.
public void drawMark(int x, int y, Color color) { g.setColor(color); g.fillRect(x * xScale, y * yScale, xScale-1, yScale-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAsColor(Color color) {\n\n\t}", "public void setGridColor(Color color) {\n this.gridColor = color;\n this.repaint();\n }", "public DrawComponent(int color) {\n this.color = color;\n }", "abstract public void colorize(TCell c);", "public void setFillColor(Color color);", "public void setColor(int gnum, Color col);", "protected abstract void updateColor(final Color col, final boolean fill);", "private void drawPiece(int row, int col, Graphics g, Color color){\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\r\n g.setColor(color);\r\n g.fillOval((col*tileSize)+2, (row*tileSize)+2, tileSize-4, tileSize-4);\r\n }", "protected abstract void updateShapeColor(Color color);", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public void setAreaColor(Color c)\r\n/* 53: */ {\r\n/* 54: 37 */ this.areaColor = c;repaint();\r\n/* 55: */ }", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tGraphics2D ga = (Graphics2D) g; \n\t\t\tif (currentColor == color) {\n\t\t\t\tShape check = factory.getShape(ShapeFactory.CHECK);\n\t\t\t\tcheck.setPosition(new Point2D.Double(point.getX() + getPreferredSize().width/2 - 7, point.getY()+ 25));\n\t\t\t\tga.setColor(currentColor);\n\t\t\t\tcheck.draw(ga);\n\t\t\t}\n\t\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}", "public void fill(int color){\n int len = width * height * 4;\n for(int i = 0; i < len; i += 4){\n pixels.putInt(i, color);\n }\n }", "public void setColor(float r, float g, float b, float a);", "public void setColor(Color c);", "public void setCell(int color) {\r\n\t\tSound sound = Assets.manager.get(Assets.CLICK_SOUND);\r\n\t\tsound.play();\r\n\t\toccupied = color;\r\n\t\tif (color == -1) {\r\n\t\t\tpiece = new Image(Assets.manager.get(Assets.RED_TXT, Texture.class));\r\n\t\t} else {\r\n\t\t\tpiece = new Image(Assets.manager.get(Assets.YELLOW_TXT, Texture.class));\r\n\t\t}\r\n\t\tpiece.setPosition(img.getX() + OFFSET, img.getY() + OFFSET);\r\n\t\tstage.addActor(piece);\r\n\t}", "public void setColor(Color c) {\n this.color = c;\n }", "private void drawColor(Canvas canvas, int color, RectF rect){\n if(color != 0){\n mPaint.setColor(color);\n canvas.drawRect(rect, mPaint);\n }\n }", "public void setColor(Color c) { color.set(c); }", "private void colorizeGrid() {\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setStyle(intersection.getColorCode(x, y));\n }\n }\n }", "public void drawPixel(int x, int y, int color);", "public void setColor(Color c)\n\t{\n\t\tthis.color = c;\n\t}", "public void setColor(Color color) {\n this.color = color;\n }", "public void setColor(Color color);", "static void paintFill(Pixel[][] displayScreen, int x, int y, String originalColor, String newColor)\n {\n if (x<0 || y<0 || x >= displayScreen[0].length || y >= displayScreen.length) {return;}\n\n // If current cell is of a different color, we've reached a boundary.\n // TODO: why is this not [x][y] ?\n if (displayScreen[x][y].getColor() != originalColor) {return;}\n\n // OK, update color of current cell\n if (displayScreen[x][y].getColor() == originalColor)\n {\n displayScreen[x][y].setColor(newColor);\n\n // Pixel on left\n paintFill(displayScreen, x-1, y, originalColor, newColor);\n\n // On right\n paintFill(displayScreen, x+1, y, originalColor, newColor);\n\n // On top and bottom\n paintFill(displayScreen, x, y+1, originalColor, newColor);\n paintFill(displayScreen, x, y-1, originalColor, newColor);\n }\n\n\n }", "public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }", "public void setColor(Color c) {\n\t\tthis.color = c;\n\t}", "@Override\r\n public void setPixel(int size, int x, int y, Color c) {\r\n int color = c.getRGB();\r\n\r\n for (int i = 0; i < size; i++) {\r\n for (int j = 0; j < size; j++) {\r\n canvas.setRGB(x + i, y + j, color);\r\n }\r\n }\r\n\r\n repaint();\r\n }", "public void fill(Color color)\n {\n Graphics2D g = (Graphics2D)getGraphics();\n g.setColor(color);\n g.fillRect(0, 0, width, height);\n }", "public void setColor(Color c) {\n color = c;\n }", "public void setColor(String c)\n { \n color = c;\n draw();\n }", "@Override\n\tpublic void setShapeColor(Color color) {\n\t\tthis.currentColor = color;\n\t}", "public void setColor(Color color) {\n this.color = color;\r\n }", "private void drawColor(Canvas canvas, int color, Rect rect){\n if(color != 0){\n mPaint.setColor(color);\n canvas.drawRect(rect, mPaint);\n }\n }", "public void setColor(int color);", "public void setColor(int color);", "public void setColor(int c) {\n paint.setColor(c);\n invalidate();\n }", "public void red() {\n g2.setPaint(Color.red);\r\n }", "@Override\n public void redCell() {\n gCell.setFill(Color.ORANGERED);\n }", "private void setToBackground(Color color) {\n\t\tfor (Loc l : currentPiece.getLocation()) {\n\t\t\tif (l.isOnBoard()) {\n\t\t\t\tboardTiles[l.row][l.col] = color;\n\t\t\t}\n\t\t}\n\t}", "public void setColor(int r, int g, int b);", "public abstract void draw(Graphics g, Color color);", "public abstract void setCurBackground(Color colr);", "@Override\n\t\tpublic Color color() { return color; }", "public void fill(Color color){\n fill(color.rgba());\n }", "public void setColor(Color color) {\n this.color = color;\n }", "@Override\n public void paintComponent() {\n Graphics2D graphics = gameInstance.getGameGraphics();\n graphics.setColor(Color.ORANGE);\n\n final int diff = (PacmanGame.GRID_SIZE/2) - pointCircleRadius;\n graphics.fill(new Ellipse2D.Double(this.x + diff, this.y + diff, pointCircleRadius*2, pointCircleRadius*2));\n }", "public abstract void drawFill();", "public void Color() {\n\t\t\r\n\t}", "public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }", "public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}", "public void setDrawingColor(int color){\n mPaintLine.setColor(color);\n }", "private void paintPointInColor(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}", "public void fill(int color)\n {\n fill(new Color(color));\n }", "@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }", "public void setColor(int color){\n this.color = color;\n }", "public void setColor(Color color) {\n for (int i = 0; i < this.size(); i++) {\n DrawEvent event = (DrawEvent) this.elementAt(i);\n event.getShape().setColor(color);\n }\n }", "@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}", "@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}", "public void green() {\n g2.setPaint(Color.green);\r\n }", "private static void clearGridPositionColor(int pos, int color) {\n for (int f = 0; f < ColorFrames.FRAMES_DIM; ++f) {\n int cl = pieces[pos - 1][f];\n if (cl == color) {\n clearGridPositionFrame(pos, f);\n }\n }\n }", "void setColor(final java.awt.Color color);", "@Override\n\tpublic void setShapeColor(Color color) {\n\t\tthis.decorateComponent.setShapeColor(color);\n\t}", "public void setColor(int color) {\n this.color = color;\n }", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public abstract void setColor(Color color);", "public abstract void setColor(Color color);", "public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }", "public void paint () {\n\t\tPaint.clear();\n\t\t\n\t\tPaint.setColor(Color.WHITE);\n\t\tPaint.fillRect(0,0,numcols_ * cellsize_,numrows_ * cellsize_);\n\t\tPaint.setColor(Color.GRAY);\n\t\tPaint.drawRect(0,0,numcols_ * cellsize_ - 1,numrows_ * cellsize_ - 1);\n\n\t\tfor ( int row = 0 ; row < numrows_ ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < numcols_ ; col++ ) {\n\t\t\t\tint x = col * cellsize_;\n\t\t\t\tint y = row * cellsize_;\n\n\t\t\t\tThing thing = at(row,col);\n\t\t\t\tif ( thing != null ) {\n\t\t\t\t\tthing.paint(x,y,cellsize_,cellsize_);\n\t\t\t\t}\n\t\t\t\tPaint.setColor(Color.GRAY);\n\t\t\t\tPaint.drawRect(x,y,cellsize_,cellsize_);\n\t\t\t}\n\t\t}\n\n\t}", "public void setColor(Color color) \n\t{\n\t\tthis.color = color;\n\t}", "@Override\n\tprotected char getColor(int position) {\n\t\treturn color;\n\t}", "public Paint getBlockColor() {\n return rectangle.getFill();\n }", "public void setColor(Color newColor)\n {\n this.color = newColor;\n conditionallyRepaint();\n }", "public void color(Color the_color) {\n \n }", "@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}", "public void setBlockColor(Color color) {\n rectangle.setFill(color);\n int a = 0;\n }", "public void setColor (Color color)\n {\n this.color = color;\n repaint();\n }", "Cell(int x, int y, Color color, boolean flooded) {\r\n this.x = x;\r\n this.y = y;\r\n this.color = color;\r\n this.flooded = flooded;\r\n this.left = null;\r\n this.top = null;\r\n this.right = null;\r\n this.bottom = null;\r\n }", "private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }", "public void setColor(int color){\r\n\t\tthis.color=color;\r\n\t}", "@Override\n public void setColor(Color color) {\n this.color = color;\n }", "void fill(int rgb);", "void setColorWithRedraw(@ColorInt int color) {\n/* 167 */ this.mPaint.setColor(color);\n/* 168 */ onRedrawIfInitialized();\n/* */ }", "@Override\n\tprotected void display(Coordination c) {\n\t\tSystem.out.println(\"白棋,颜色是:\" + color + \"位置是:\" + c.getX() + \"--\" + c.getY());\n\t}", "void setColor(int r, int g, int b);", "public void changeColor (Color color){\n ((Label) _node).setTextFill(color);\n }", "private void paintField() {\r\n // one brick length\r\n int brickLength = (getHeight() - (BRICKS_PER_ROW + 1) * BRICK_SEP) / BRICKS_PER_ROW;\r\n // x coordinate for creating one brick\r\n int x1;\r\n // y coordinates for creating one brick\r\n int y1, y2 = 0;\r\n Brick brick;\r\n for (int i = 0; i < BRICKS_PER_ROW; i++) {\r\n y1 = y2 + BRICK_SEP;\r\n y2 = y1 + brickLength;\r\n\r\n for (int j = 0; j < BRICKS_PER_ROW; j++) {\r\n x1 = BRICK_SEP + brickLength * j + BRICK_SEP * j;\r\n brick = new Brick(x1, y1, brickLength, brickLength);\r\n brick.setFilled(true);\r\n brick.setColor(Color.WHITE);\r\n brick.setBrickColor(Color.WHITE);\r\n add(brick);\r\n bricks[i][j] = brick;\r\n }\r\n }\r\n }", "private void renderGoalCell(Graphics g, GridLocation goalCell, GridLocation gridPosition){\n g.setColor(Color.YELLOW);\n g.fillRect(gridPosition.getX() + goalCell.getX()*CELL_SIZE, gridPosition.getY() + goalCell.getY()*CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }", "private void sliceSetColor(int colorPosition) {\n ArrayList<Integer> newPattern = new ArrayList<>(Collections.nCopies(slice.size(), colorPosition)); // Build a new pattern based on this color\n\n // Save the new color\n patternBasic = colorPosition;\n\n // Set the new pattern to slice\n setSlice(newPattern);\n }", "void setGreen(int x, int y, int value);", "@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }", "public void fillColor() {\n\t\tSystem.out.println(\"Blue color\");\n\t}", "public PointDetails setColor(IntSupplier color){\n\t\t\tthis.color = color;\n\t\t\treturn this;\n\t\t}", "public void drawFill(int[] rgb) {\n\t\tparent.fill(rgb[0], rgb[1], rgb[2]);\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "public void setColor(Color color) {\n\t\tthis.color = color;\n\t}", "public void setColor( Color color ) {\n\t\tgraphics.setColor( color );\n\t}", "public void setColor(int color) {\r\n\t\tthis.color = color;\r\n\t}", "@Override\n public Color getColor() {\n return color;\n }", "public static void caja(int x, int y,String cadena,Color color,Graphics g){\n \n g.setColor(color); \n g.fillRect(x, y, 200, 50);\n //rectangulo color contorno\n int blue = color.getBlue();\n color = new Color(color.getRed(),color.getGreen(),color.getBlue(),color.getAlpha()-50);\n g.setColor(color); \n g.drawRect(x, y, 200, 50);\n \n \n //g.setColor( new Color(33,107,255,100));\n g.setColor(Color.white);\n g.setFont(new java.awt.Font(\"Monospaced\", 0, 18));\n g.drawString(cadena, 50+x, 25+y);\n }" ]
[ "0.66273385", "0.66151935", "0.6413133", "0.6389872", "0.6373847", "0.6276412", "0.6209587", "0.62048453", "0.6178581", "0.6129899", "0.60777706", "0.6073209", "0.60701674", "0.6037371", "0.5989808", "0.59895116", "0.5966076", "0.5938612", "0.5932688", "0.5918677", "0.5908782", "0.59075284", "0.585458", "0.58456063", "0.58356154", "0.58291465", "0.58258057", "0.5822056", "0.58199644", "0.5818615", "0.5816589", "0.58151245", "0.58109164", "0.5808423", "0.5808396", "0.5797121", "0.5797121", "0.5782568", "0.5757182", "0.5753599", "0.5753231", "0.57328093", "0.57248753", "0.57248694", "0.5722771", "0.57141197", "0.5707706", "0.57014173", "0.56998974", "0.5699274", "0.5698482", "0.5695854", "0.56902707", "0.56872106", "0.5684932", "0.56727916", "0.56718516", "0.5671647", "0.5671605", "0.56713796", "0.56607175", "0.56555593", "0.56533164", "0.56505257", "0.56502867", "0.56446475", "0.564096", "0.564096", "0.56399125", "0.56380063", "0.56268984", "0.56222373", "0.5618479", "0.56179094", "0.56165487", "0.5602893", "0.5599927", "0.5598484", "0.55977285", "0.559647", "0.5593433", "0.55929774", "0.5590629", "0.5583366", "0.5575958", "0.5575722", "0.5566859", "0.5564777", "0.55600107", "0.5551545", "0.55485135", "0.55484086", "0.55472624", "0.5544843", "0.5544117", "0.55436647", "0.55436647", "0.55328906", "0.55312896", "0.5530572", "0.55303806" ]
0.0
-1
The field view component needs to be redisplayed. Copy the internal image to screen.
public void paintComponent(Graphics g) { if(fieldImage != null) { Dimension currentSize = getSize(); if(size.equals(currentSize)) { g.drawImage(fieldImage, 0, 0, null); } else { // Rescale the previous image. g.drawImage(fieldImage, 0, 0, currentSize.width, currentSize.height, null); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actionViewOriginalImage ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint imagIndex = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\t//---- Get path to the original image\r\n\t\t\t\tString filePath = DataController.getTable().getElement(imagIndex).getDataFile().getFilePath();\r\n\r\n\t\t\t\t//---- Load the image into the image viewer\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\r\n\t\t\t\t//---- Change button icon\r\n\t\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_ORIGINAL_IMAGE);\r\n\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setIcon(iconButton);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setActionCommand(FormMainHandlerCommands.AC_VIEW_CELL);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setToolTipText(\"View cells\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected void userDefinedViewUpdate() {\r\n\t\tvideoUtil.captureVideoImage();\r\n\t\tgetModel()._readFromViewAfterUpdate();\r\n\t}", "public void updateObjectImage() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.redrawImageCanvas();\r\n\t}", "public void paintComponent(Graphics g)\n {\n if(fieldImage != null) {\n Dimension currentSize = getSize();\n if(size.equals(currentSize)) {\n g.drawImage(fieldImage, 0, 0, null);\n }\n else {\n // Rescale the previous image.\n g.drawImage(fieldImage, 0, 0, currentSize.width, currentSize.height, null);\n }\n }\n }", "private void helperDisplayInputImage()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//---- Get currently selected file index in the combo box\r\n\t\t\tint index = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t//---- Check the index if the action is invoked by image deletion then causes error\r\n\t\t\tint imageCount = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (index >= 0 && index < imageCount)\r\n\t\t\t{\r\n\t\t\t\t//---- Get file path of the table\r\n\r\n\t\t\t\tString filePath = DataController.getTable().getElement(index).getDataFile().getFilePath();\r\n\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "@Override\r\n public void onClick(View arg0) {\n popWindow.setVisibility(View.INVISIBLE);\r\n mBottomBar.setVisibility(View.VISIBLE);\r\n mEditLayout.setVisibility(View.INVISIBLE);\r\n mFaceEditor.updateImage(false);\r\n\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.getDisplayImage());\r\n\r\n\r\n }", "@Override\r\n public void onClick(View arg0) {\n popWindow.setVisibility(View.INVISIBLE);\r\n mBottomBar.setVisibility(View.VISIBLE);\r\n mEditLayout.setVisibility(View.INVISIBLE);\r\n mFaceEditor.updateImage(true);\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.getDisplayImage());\r\n }", "private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}", "@Override\n protected void paintComponent(final Graphics g) {\n super.paintComponent(g);\n g.drawImage(image, 0, 0, this);\n }", "private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }", "public void affiche() {\n\t\tcontroller.image.repaint();\n\t}", "public void displayNewImage() {\n\t\tthis.canvas.display();\n\t}", "private void displayCurrentPicture() {\r\n\t\tglobalContainer.setWidget(0, 0, getCurrentPicture());\r\n\t}", "public void updateLayer() {\n bufferedImage = null;\n repaint();\n panelResized();\n }", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }", "@Override\n public void componentHidden(ComponentEvent e) {\n IImage img = fc.imageSelection.getSelectedImage();\n fc.imageSelection.removeComponentListener(this);\n \n if(img == null){\n image.setImage(null);\n imgName = null;\n imgDir = null;\n }else{\n image.setImage(img.getImage());\n imgName = img.getName();\n imgDir = img.getDir();\n }\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n g.drawImage(img, 0, 0, null);\n }", "public synchronized void method_219() {\n if(this.field_730 != null) {\n this.field_730.setPixels(0, 0, this.field_723, this.field_724, this.field_728, this.pixels, 0, this.field_723);\n this.field_730.imageComplete(2);\n }\n }", "@Override\n public void run() {\n Mat frame = grabFrame();\n // convert and show the frame\n Image imageToShow = FXDIPUtils.mat2Image(frame);\n updateImageView(getCurrentFrame(), imageToShow);\n }", "public void saveAsImage(){\n\t\tif(currentView == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open before an image can be saved\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.saveAsImage();\r\n\t}", "public void act() {\n setImage(myGif.getCurrentImage());\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "protected void onReloadImage() {\n String url = DataProvider.SCREEN + DataProvider.SCREEN_INDEX + mScreenId + \"&time=\" + System.currentTimeMillis();\n image.setUrl(url); //just to avoid caching\n loadTree();\n }", "private void actionResetView ()\r\n\t{\r\n\t\thelperSwitchSelectOff();\r\n\t\thelperSwitchMoveOff();\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().resetImagePosition();\r\n\t\t}\r\n\r\n\t}", "@Override\r\n\tpublic void pictureUpdated() {\r\n\t\tif(mDialog != null)\r\n\t\t\tmDialog.loadPicture();\r\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n\n photoStorage.addImage(currentLabel, currentVisibleImagePath);\n addImage.setEnabled(false);\n }", "public void redraw() {\n\t\timgDisplay = null;\n\t\trepaint();\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMat frame = grabFrame();\n\t\t\t\t\t\t// convert and show the frame\n\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\n\t\t\t\t\t\tupdateImageView(imgPanel, imageToShow);\n\t\t\t\t\t}", "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = fieldView.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }", "private void m57186g() {\n setClipChildren(false);\n setVisibility(8);\n this.f41186b = ViewDragHelper.create(this, 1.0f, new C10484a());\n this.f41185a = LayoutInflater.from(getContext()).inflate(mo64140f(), (ViewGroup) null, false);\n this.f41185a.setVisibility(4);\n addView(this.f41185a);\n this.f41193i = 70;\n }", "public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}", "@Override\n public void onScreenUpdated(BufferedImage image) {\n RemoteMachineConfig.SCREEN = image;\n panel1.repaint();\n panel1.setSize(1020,600);\n }", "public void update() {\r\n if(selectedImage == null) {\r\n xStartProperty.setText(\"\");\r\n yStartProperty.setText(\"\");\r\n xEndProperty.setText(\"\");\r\n yEndProperty.setText(\"\");\r\n rotationProperty.setText(\"\");\r\n } else {\r\n xStartProperty.setText(String.valueOf(selectedImage.getXStart()));\r\n yStartProperty.setText(String.valueOf(selectedImage.getYStart()));\r\n xEndProperty.setText(String.valueOf(selectedImage.getXEnd()));\r\n yEndProperty.setText(String.valueOf(selectedImage.getYEnd()));\r\n rotationProperty.setText(String.valueOf(selectedImage.getRotation()));\r\n }\r\n }", "private void changeToPhotoIdleView(boolean bl) {\n this.changeLayoutTo(DefaultLayoutPattern.PREVIEW);\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.changeScreenButtonImage(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY, false);\n if (bl) {\n this.mFocusRectangles.clearExceptTouchFocus();\n } else {\n this.mFocusRectangles.onUiComponentRemoved();\n }\n this.mFocusRectangles.onRecordingStop();\n if (this.mCameraDevice.getCameraId() == 0) {\n super.setSceneIndicatorVisibleAllNotificationIndicators(1);\n }\n this.getBaseLayout().showLeftIconContainer();\n this.setOrientation(this.getOrientation());\n }", "private void previewCapturedImage() {\n try {\n imageProfile.setVisibility(View.VISIBLE);\n Log.d(\"preview\", currentPhotoPath);\n final Bitmap bitmap = CameraUtils.scaleDownAndRotatePic(currentPhotoPath);\n imageProfile.setImageBitmap(bitmap);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "private void clearField(){\n passwordField.setText(\"\");\n mailField.setText(\"\");\n stateImg.setImage( crossImg);\n stateImg.setVisible(false);\n\n }", "public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}", "@Override\r\n\tpublic void render(GameContainer gc, Graphics g) {\n\r\n\t\tg.drawImage(image, drawX - 16, drawY - 24); \r\n\t}", "public void panelGone() {\n\t\tdisplayPanel.removeImage(this);\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void jMenuItem5ActionPerformed(ActionEvent evt) {\n\t\tif (!entry.isDisabled && entry.RedoImages.size() > 0) {\n\n\t\t\tImage tmg = createImage(((Image) entry.RedoImages.peek()).getWidth(this), ((Image) entry.RedoImages.peek()).getHeight(this));\n\t\t\tGraphics tg = tmg.getGraphics();\n\t\t\ttg.drawImage((Image) entry.RedoImages.peek(), 0, 0, null);\n\t\t\tentry.showImage(tmg);\n\t\t\tentry.SavedImages.push(entry.RedoImages.pop());\n\n\t\t\tentry.setPreferredSize(new Dimension(entryImage.getWidth(this), entryImage.getHeight(this)));\n\t\t\tint w = Math.min(entryImage.getWidth(this) + 3, getContentPane().getWidth());\n\t\t\tint h = Math.min(entryImage.getHeight(this) + 3, getContentPane().getHeight());\n\t\t\tpictureScrollPane.setBounds((getContentPane().getWidth() - w) / 2, (getContentPane().getHeight() - h) / 2, w, h);\n\t\t\tpictureScrollPane.setViewportView(entry);\n\t\t}\n\t}", "public void repaintImagePreviewPane(Graphics g) {\r\n\t\tGraphics2D g2d = (Graphics2D) g;\r\n\t\tg2d.setBackground(XONImageMaker.m_PanelColor);\r\n\t\tRectangle visibleRect = m_ThumbnailPane.getVisibleRect();\r\n\t\tDimension panelSize = new Dimension((int) visibleRect.getWidth(),\r\n\t\t\t\t(int) visibleRect.getHeight());\r\n\t\tg.clearRect(0, 0, panelSize.width, panelSize.height);\r\n\t\t// RGPTLogger.logToConsole(\"Panel Size: \"+panelSize);\r\n\t\tint panelWt = RGPTParams.getIntVal(\"ImageMakerEastPanelWidth\");\r\n\t\tint thumbImgWt = RGPTParams.getIntVal(\"ThumbviewImageWidth\");\r\n\t\tint thumbImgHt = RGPTParams.getIntVal(\"ThumbviewImageHeight\");\r\n\t\tint vGap = RGPTParams.getIntVal(\"ThumbviewVerticalGap\");\r\n\t\tint arc = RGPTParams.getIntVal(\"ThumbviewRoundRectArc\");\r\n\t\tint frameMargin = RGPTParams.getIntVal(\"FrameMargin\");\r\n\t\tif (THUMB_SCALED_IMAGE_MAKER_ICON == null) {\r\n\t\t\tTHUMB_SCALED_IMAGE_MAKER_ICON = ImageUtils.scaleImage(\r\n\t\t\t\t\tTHUMB_IMAGE_MAKER_ICON, thumbImgWt, thumbImgHt, true);\r\n\t\t\tTHUMB_SCALED_IMAGE_MAKER_ICON = ImageUtils.fillTransparentPixels(\r\n\t\t\t\t\tTHUMB_SCALED_IMAGE_MAKER_ICON, Color.WHITE);\r\n\t\t}\r\n\t\tBufferedImage thumbImg = THUMB_SCALED_IMAGE_MAKER_ICON;\r\n\t\tint y = vGap, w = thumbImg.getWidth(), h = thumbImg.getHeight();\r\n\t\tdouble x = (double) (panelSize.width - w) / (double) 2;\r\n\t\tif (m_ShowXONImagePane == SHOW_XON_ICON) {\r\n\t\t\tdrawImagePreview(g2d, thumbImg, x, y);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if (m_ShowXONImagePane == SHOW_IMAGE_PANEL)\r\n\t\t// Displaying the main Image\r\n\t\tthumbImg = (BufferedImage) m_OrigImageHolder.m_ThumbviewImage;\r\n\t\ty = vGap;\r\n\t\tw = thumbImg.getWidth();\r\n\t\th = thumbImg.getHeight();\r\n\t\tx = (double) (panelSize.width - w) / (double) 2;\r\n\t\tRectangle imgRect = drawImagePreview(g2d, thumbImg, x, y);\r\n\r\n\t\t// Displaying the transformed images\r\n\t\tImageTransformHolder imtTransHldr = null;\r\n\t\tVector<ImageTransformHolder> imgTransHldrList = null;\r\n\t\timgTransHldrList = m_OrigImageHolder.m_ImageTransformHolder;\r\n\t\tfor (int i = 0; i < imgTransHldrList.size(); i++) {\r\n\t\t\timtTransHldr = imgTransHldrList.elementAt(i);\r\n\t\t\ty = (int) imgRect.height + vGap + 2 * frameMargin;\r\n\t\t\tthumbImg = imtTransHldr.m_ThumbPreviewImage;\r\n\t\t\tw = thumbImg.getWidth();\r\n\t\t\th = thumbImg.getHeight();\r\n\t\t\tx = (double) (panelSize.width - w) / (double) 2;\r\n\t\t\timgRect = drawImagePreview(g2d, thumbImg, x, y);\r\n\t\t\timtTransHldr.m_ScreenRect = imgRect;\r\n\t\t}\r\n\t}", "private void dragPaint() {\n\n\t\t//buffer die image ooit\n\t\tinvalidate();\n\t\trepaint();\n\t}", "public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }", "private void screenshotView() {\n // Only take a screenshot if the activity is not finishing\n if (getContext() instanceof Activity && ((Activity) getContext()).isFinishing()) return;\n\n Bitmap screenshot = getScreenshotBitmap();\n if (screenshot == null) return;\n\n screenshotView = new ImageView(getContext());\n screenshotView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n screenshotView.setClickable(true);\n screenshotView.setImageBitmap(screenshot);\n screenshotOrientation = getOrientation();\n\n addView(screenshotView);\n\n TurbolinksLog.d(\"Screenshot taken\");\n }", "public void update(ImagePlus imp) {\n if (this.isVisible()) {\n if (imp == null) {\n imageMetadataModel_.setMetadata(null);\n summaryCommentsTextArea.setText(null);\n } else {\n AcquisitionVirtualStack stack = getAcquisitionStack(imp);\n if (stack != null) {\n int slice = imp.getCurrentSlice();\n TaggedImage taggedImg = stack.getTaggedImage(slice);\n if (taggedImg == null) {\n imageMetadataModel_.setMetadata(null);\n } else {\n Map<String,String> md = stack.getTaggedImage(slice).tags;\n if (!showUnchangingKeys_)\n md = selectChangingTags(md);\n imageMetadataModel_.setMetadata(md);\n }\n if (imp instanceof CompositeImage) {\n CompositeImage cimp = (CompositeImage) imp;\n displayModeCombo.setSelectedIndex(cimp.getMode()-1);\n }\n } else {\n imageMetadataModel_.setMetadata(null);\n }\n \n }\n }\n }", "@Override\r\n\tpublic void onMapElementCreated(MapElement mapElement) {\r\n\t\tfields.put(mapElement, new UIElement(mapElement.getCoord(), UIUtility.getImage(mapElement.getImagePath())));\r\n\r\n\t\tUILogger.log(mapElement + \" changed\");\r\n\r\n\t\t// Notify the GamePanel that its contents need to be repainted\r\n\t\tparent.repaint();\r\n\t\tUILogger.log(\"GamePanel.repaint()\");\r\n\t}", "public void updateOnCtWindowChange() {\n int[] displayImageData = resolveRaw(imgData[currentLayer]);\n raster.setPixels(0, 0, imgWidth, imgHeight, displayImageData);\n image.setData(raster);\n }", "protected void setPic() {\n }", "public void displayGivenImage() {\n\t\tthis.image.display();\n\t}", "private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }", "public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }", "public synchronized void clearImage()\r\n\t{\r\n\t\treferenceImage.clearImage();\r\n\t\tdisplayedImage.clearImage();\r\n\t}", "void resetDragImage();", "@Override\r\n\tpublic void render(Graphics g) {\n\t\timg.setPosition(x - cam.getX(), y - cam.getY());\r\n\t\timg.render(g);\r\n\t}", "@Override\n public void onPutCupRaised() {\n if (!theFSM.getCupPlaced()) {\n BufferedImage myPicture = null;\n try {\n myPicture = ImageIO.read(new File(\"./picts/gobeletPolluant.jpg\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n currentPicture.setIcon(new ImageIcon(myPicture));\n takeCupButton.setVisible(false);\n }\n }", "public final void mo25939d() {\n if (this.f75886e != -1) {\n View view = (View) this.f75884c.get(this.f75886e);\n if (view != null) {\n view.setVisibility(8);\n }\n setVisibility(8);\n this.f75886e = -1;\n }\n }", "public void renderInputImageManager()\n {\n background(background);\n if(resized != null)\n {\n imageMode(CENTER);\n image(resized,(width-150)/2+140,height/2);\n imageMode(CORNERS);\n }\n }", "public void opdaterfaktura() {\n jPanel_Visfaktura.revalidate();\n }", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "@Override\n public void onUpdated(Preview.PreviewOutput output){\n ViewGroup parent = (ViewGroup) textureView.getParent();\n parent.removeView(textureView);\n parent.addView(textureView, 0);\n\n textureView.setSurfaceTexture(output.getSurfaceTexture());\n }", "public void updateDisplay() {\n imageCutLevels.updateDisplay();\n }", "@Override\n protected void commitProperties() {\n if (imageLoadTypeChanged) {\n imageLoadTypeChanged = false;\n frontPageView.setImageLoadType(imageLoadType);\n backPageView.setImageLoadType(imageLoadType);\n }\n }", "private void updateDevicePreview() {\n int selectedIndex = myDevicesComboBox.getSelectedIndex();\n if (selectedIndex < 0) {\n selectedIndex = 0;\n myDevicesComboBox.setSelectedIndex(0);\n }\n\n mySelectedDevice = myMatchingDevices.get(selectedIndex);\n if (mySelectedDevice == null) {\n myDeviceFrame = null;\n return;\n }\n if (myImageCache.containsKey(mySelectedDevice.getId())) {\n myDeviceFrame = myImageCache.get(mySelectedDevice.getId());\n myPreviewPanel.repaint();\n }\n else {\n myDeviceFrame = null;\n myPreviewPanel.repaint();\n final DeviceArtPainter deviceArtPainter = DeviceArtPainter.getInstance();\n if (deviceArtPainter.hasDeviceFrame(mySelectedDevice)) {\n new Thread(() -> {\n try {\n myDeviceFrame = deviceArtPainter.createFrame(\n myImage, mySelectedDevice, myScreenOrientation,\n true /*show effect*/, 1, null);\n }\n catch (IllegalStateException artDescriptorException) {\n LOGGER.warn(artDescriptorException);\n myDeviceFrame = myImage;\n }\n finally {\n UIUtil.invokeLaterIfNeeded(\n () -> myPreviewPanel.repaint());\n }\n }).start();\n }\n else {\n myDeviceFrame = myImage;\n }\n }\n }", "@Override\n public void updateScreen() {\n if (dirty) {\n Alkahestry.logger.info(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// String name = String.valueOf(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 0x404040);\n// fontRenderer.drawString(playerInv.getDisplayName().getUnformattedText(), 8, ySize - 94, 0x404040);\n dirty = false;\n }\n// ((ContainerMoleculeSplitter) container)\n// .moleculeSplitterTileEntity\n// .\n super.updateScreen();\n }", "protected BufferedImage snapshot() {\n\t\tBufferedImage bi = new BufferedImage(window.getContentPane().getWidth(), window.getContentPane().getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\twindow.getContentPane().paint(bi.getGraphics());\n\t\treturn bi;\n\t}", "public ImageIcon takeSnapShot(Component panel){\r\n // BufferedImage bufImage = new BufferedImage(panel.getSize().width, panel.getSize().height,BufferedImage.TYPE_INT_RGB);\r\n BufferedImage bufImage = new BufferedImage(2250, 2250,BufferedImage.TYPE_INT_RGB);\r\n panel.paint(bufImage.createGraphics());\r\n ImageIcon imageIcon = new ImageIcon(bufImage);\r\n String snapshotLocation = FileSystemView.getFileSystemView().getDefaultDirectory().toString() + \"\\\\spaceGUI\\\\yourImage.jpeg\";\r\n File fc = new File(snapshotLocation.substring(0,snapshotLocation.indexOf(\"yourImage.jpeg\")));\r\n if(!fc.exists()) {\r\n fc.mkdir();\r\n }\r\n File imageFile = new File(snapshotLocation);\r\n try{\r\n imageFile.createNewFile();\r\n ImageIO.write(bufImage, \"jpeg\", imageFile);\r\n System.out.println(\"Created picture\");\r\n \r\n }catch(Exception ex){\r\n System.out.println(\"Did not create picture\");\r\n } \r\n return imageIcon;\r\n }", "public void run() {\n\t\tbyte data[] = getData();\n\t\tEncodedImage image = null;\n\t\tBitmapField bitmapField = null;\n\t\tif (data != null) {\n\t\t\ttry {\n\t\t\t\timage = EncodedImage.createEncodedImage(data, 0, -1,\"image/png\");\n\t\t\t\tbitmapField = new BitmapField();\n\t\t\t\t// The dimensions for a image to display well 170 width x 90 height\n\t\t\t\tbitmapField.setImage(image);\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t}\n\t\t}\n\t\tthis.bitmapField = bitmapField;\n\t}", "private void screenshot() {\n final JComponent active = this.active;\n if (active != null && active.isValid()) {\n final BufferedImage image = new BufferedImage(active.getWidth(), active.getHeight(), BufferedImage.TYPE_INT_RGB);\n final Graphics2D handler = image.createGraphics();\n active.print(handler);\n handler.dispose();\n File file = new File(Preferences.userNodeForPackage(DesktopPane.class).get(SCREENSHOT_DIRECTORY_PREFS, \".\"));\n file = new File(file, getTitle(active.getClass()) + \".png\");\n try {\n assertTrue(ImageIO.write(image, \"png\", file));\n file = file.getParentFile();\n Desktop.getDesktop().open(file);\n } catch (IOException e) {\n JOptionPane.showInternalMessageDialog(active, e.getLocalizedMessage(),\n e.getClass().getSimpleName(), JOptionPane.ERROR_MESSAGE);\n }\n } else {\n JOptionPane.showInternalMessageDialog(this, \"No active window.\", \"Screenshot\", JOptionPane.WARNING_MESSAGE);\n }\n }", "public void m2262J() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageResource(17170445);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.removeDefaultCloseButton\", e.getMessage(), \"\");\n }\n }", "private void refreshFieldsVisibility()\n {\n \n }", "abstract void snapshotLayout();", "public void UpdateView(){\n\t\tStageArray[CurrentStage].Update();\r\n\t\t//updateUI will activate the Draw function\r\n\t\tStageArray[CurrentStage].updateUI();\r\n\t\t//this completely refreshes totalGUI and removes and mouse listener it had\r\n\t\tif(CardMain.frame.getContentPane()!=StageArray[CurrentStage]){\r\n\t\t\tCardMain.frame.setContentPane(StageArray[CurrentStage]);\r\n\t\t}\r\n\t}", "public void recallPaint() { advw.showResearchersPanel();}", "public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }", "private void displayReceiptPhoto() {\n\t\tif (mForm == null)\n\t\t\treturn;\n\t\tif (mReceipt == null)\n\t\t\treturn;\n\t\timageWidget().displayPhoto(getRBuddyActivity().photoStore(),\n\t\t\t\tmReceipt.getId(),\n\t\t\t\tmReceipt.getPhotoId());\n\t}", "@Override\n public void onUpdated(Preview.PreviewOutput output){\n ViewGroup parent = (ViewGroup) textureView.getParent();\n parent.removeView(textureView);\n parent.addView(textureView, 0);\n\n textureView.setSurfaceTexture(output.getSurfaceTexture());\n updateTransform();\n }", "protected void copy(){\n\t\tthis.model.copy(this.color.getBackground());\n\t}", "@Override\n protected void onPreExecute() {\n imgPlaceDetail.setImageBitmap(getBitmapFromAssets(\"no_image_backdrop.png\"));\n //imgPlaceDetail.setImageResource(R.drawable.no_image_backdrop);\n //imgPlaceDetail.invalidate();\n\n }", "public void update() {\n if (this.active) {\n GameObject.processing.image(this.image, this.xPosition, this.yPosition);\n }\n }", "@Override\n public void onClick(View arg0) {\n try {\n mPreview.captureImage();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "private void showImageDetail() {\n }", "@Override\npublic void rebuildPanel() {\n\t\n}", "private void refreshSettingsFields() {\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\txPos.setText(Float.toString(mediaSrc.getActiveCamera().getxPos()));\r\n\t\t\tyPos.setText(Float.toString(mediaSrc.getActiveCamera().getyPos()));\r\n\t\t\tzPos.setText(Float.toString(mediaSrc.getActiveCamera().getzPos()));\r\n\t\t\thOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getHorOrientation()));\r\n\t\t\tvOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getVerOrientation()));\r\n\t\t\tfov.setText(Float.toString(mediaSrc.getActiveCamera().getFov()));\r\n\t\t}\r\n\t\t\r\n\t\txPos.setBackground(Color.WHITE);\r\n\t\tyPos.setBackground(Color.WHITE);\r\n\t\tzPos.setBackground(Color.WHITE);\r\n\t\thOrientation.setBackground(Color.WHITE);\r\n\t\tvOrientation.setBackground(Color.WHITE);\r\n\t\tfov.setBackground(Color.WHITE);\r\n\t}", "public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}", "public void updateScreen()\n {\n super.updateScreen();\n }", "public void takeScreenShot() {\r\n \t\tgraph.clearSelection();\r\n \t\tgraph.showScreenShotDialog();\r\n \t}", "@Override\n public void render() {\n DepictedItem item = getContent();\n checkedView.setChecked(item.isSelected());\n depictsLabel.setText(item.getName());\n description.setText(item.getDescription());\n final String imageUrl = item.getImageUrl();\n if (TextUtils.isEmpty(imageUrl)) {\n imageView.setImageURI(UriUtil.getUriForResourceId(R.drawable.ic_wikidata_logo_24dp));\n } else {\n imageView.setImageURI(Uri.parse(imageUrl));\n }\n }", "private void takePicture() {\n lockFocus();\n }", "@Override\n protected void freeUpdate()\n {\n if (raceStarted)\n dragRacePanel.updateGameImage();\n\n /* Repaint panel */\n dragRacePanel.repaint();\n }", "public void redisplay();", "protected void updateDisplay() {\n\t\t\t// this is called when upload is completed\n\n\t\t\tString filename = getLastFileName();\n\t\t\tfor (SetupMapViewListener listener : listeners)\n\t\t\t\tlistener.shapeFileUploadedEvent(filename, new ByteArrayInputStream((byte[]) getValue()));\n\t\t}", "private void changeToPhotoDialogView(BaseFastViewFinder.UiComponentKind var1) {\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n this.mFocusRectangles.onUiComponentOverlaid();\n switch (.$SwitchMap$com$sonyericsson$android$camera$fastcapturing$view$BaseFastViewFinder$UiComponentKind[var1.ordinal()]) {\n case 1: {\n if (this.isCapturingModeSelectorOpened()) {\n this.changeLayoutTo(DefaultLayoutPattern.MODE_SELECTOR);\n this.getBaseLayout().hideLeftIconContainer();\n ** break;\n }\n if (this.mSettingDialogStack.isDialogOpened()) {\n this.changeLayoutTo(DefaultLayoutPattern.SETTING);\n }\n }\nlbl12: // 5 sources:\n default: {\n ** GOTO lbl17\n }\n case 2: \n }\n this.changeLayoutTo(DefaultLayoutPattern.CLEAR);\n this.getBaseLayout().hideLeftIconContainer();\nlbl17: // 2 sources:\n super.setSceneNotificationIndicatorsInvisible(false);\n }", "public void setTempImage()\n {\n URL url = this.getClass().getResource(lastselection.getImage());\n\t\tImage image = Toolkit.getDefaultToolkit().getImage(url);\n\t\ttempImage = new PImage(image);\n\t\ttempImage.setBounds(0,0,65,170);\n\t\ttempImage.setTransparency(0);\n\t\tlayer.addChild(tempImage);\n\t}", "private void drawImage(Graphics g) {\n ProxyModel proxyModel = ProxyModel.instance();\n ClassLoader cl = this.getClass().getClassLoader();\n Graphics2D g2d = (Graphics2D) g;\n InputStream url = cl.getResourceAsStream(\"title.png\");\n BufferedImage img = null;\n\n try {\n img = ImageIO.read(url);\n } catch (IOException e) {\n e.printStackTrace();\n return;\n }\n\n Font font = new Font(\"Serif\", Font.PLAIN, 24);\n g2d.drawImage(img, 0, 0, 600, 600, null);\n g2d.setColor(new Color(20, 20, 20));\n g2d.setFont(font);\n g2d.drawString(\"SANTORINI BOARD GAME GUI SIMULATION\", 15, 640);\n\n /*\n g2d.drawImage(img, 0, 0, 600, 600, null);\n JTextField textField = new JTextField(\"Nickname\",20);\n textField.setFont(font);\n this.add(textField);\n\n */\n\n }", "@Override\n protected void paintBackground(Graphics2D g) {\n g.drawImage(image, 0, 0, this);\n }" ]
[ "0.6593957", "0.6585085", "0.61562794", "0.6079478", "0.60649776", "0.6023956", "0.5999681", "0.59868944", "0.59795696", "0.5955198", "0.5952044", "0.59287035", "0.5915656", "0.5878062", "0.58532125", "0.58438337", "0.5804568", "0.5802795", "0.57999456", "0.5793895", "0.577648", "0.5773817", "0.57364434", "0.57268924", "0.56842417", "0.56723773", "0.5668379", "0.56679034", "0.56161493", "0.560912", "0.5607754", "0.5600413", "0.5597804", "0.55961543", "0.5591405", "0.5588904", "0.55777436", "0.5553725", "0.55533916", "0.555323", "0.55445397", "0.5532077", "0.5504772", "0.55006295", "0.54992163", "0.54905134", "0.5489978", "0.5481191", "0.5475038", "0.5471817", "0.54718065", "0.5467473", "0.54665947", "0.5465467", "0.5461884", "0.54418814", "0.5439751", "0.5430199", "0.542626", "0.5420865", "0.5417786", "0.5414965", "0.5410441", "0.54038465", "0.5383132", "0.5377546", "0.53717726", "0.5370626", "0.5368973", "0.5367228", "0.53650343", "0.53617287", "0.53545886", "0.5347408", "0.5341351", "0.533287", "0.5326054", "0.5325136", "0.53243697", "0.53221774", "0.5316765", "0.53149843", "0.5314264", "0.53141934", "0.53116035", "0.5310763", "0.53106576", "0.5303928", "0.53013504", "0.5300613", "0.52989686", "0.5296473", "0.52959764", "0.5295493", "0.5294265", "0.5293563", "0.5292626", "0.52829796", "0.5280843", "0.52775216" ]
0.6170464
2
/ JADX WARNING: Code restructure failed: missing block: B:2:0x0005, code lost: if ((r4 instanceof com.facebook.react.bridge.WritableNativeArray) != false) goto L_0x0007;
public void putArray(String str, A1e a1e) { boolean z; if (a1e != null) { z = false; } z = true; AnonymousClass0FY.A03(z, "Illegal type provided"); putNativeArray(str, (WritableNativeArray) a1e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "@java.lang.Deprecated\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static synchronized void m13804a(android.content.Context r3, com.facebook.C6787r.C6788a r4) {\n /*\n java.lang.Class<com.facebook.r> r0 = com.facebook.C6787r.class\n monitor-enter(r0)\n java.lang.Boolean r1 = f12487s // Catch:{ all -> 0x0088 }\n boolean r1 = r1.booleanValue() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0012\n if (r4 == 0) goto L_0x0010\n r4.mo20141a() // Catch:{ all -> 0x0088 }\n L_0x0010:\n monitor-exit(r0)\n return\n L_0x0012:\n java.lang.String r1 = \"applicationContext\"\n com.facebook.internal.C6697T.m13461a(r3, r1) // Catch:{ all -> 0x0088 }\n r1 = 0\n com.facebook.internal.C6697T.m13460a(r3, r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6697T.m13466b(r3, r1) // Catch:{ all -> 0x0088 }\n android.content.Context r1 = r3.getApplicationContext() // Catch:{ all -> 0x0088 }\n f12481m = r1 // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n m13810b(r1) // Catch:{ all -> 0x0088 }\n java.lang.String r1 = f12472d // Catch:{ all -> 0x0088 }\n boolean r1 = com.facebook.internal.C6694S.m13436b(r1) // Catch:{ all -> 0x0088 }\n if (r1 != 0) goto L_0x0080\n r1 = 1\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r1) // Catch:{ all -> 0x0088 }\n f12487s = r1 // Catch:{ all -> 0x0088 }\n boolean r1 = m13817g() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0041\n m13812c() // Catch:{ all -> 0x0088 }\n L_0x0041:\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n boolean r1 = r1 instanceof android.app.Application // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n boolean r1 = com.facebook.C6557O.m12974e() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n android.app.Application r1 = (android.app.Application) r1 // Catch:{ all -> 0x0088 }\n java.lang.String r2 = f12472d // Catch:{ all -> 0x0088 }\n com.facebook.p127a.p130b.C6602h.m13083a(r1, r2) // Catch:{ all -> 0x0088 }\n L_0x0056:\n com.facebook.internal.C6670D.m13313f() // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6678J.m13355d() // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6712c.m13522a(r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.G r1 = new com.facebook.internal.G // Catch:{ all -> 0x0088 }\n com.facebook.o r2 = new com.facebook.o // Catch:{ all -> 0x0088 }\n r2.<init>() // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n f12480l = r1 // Catch:{ all -> 0x0088 }\n java.util.concurrent.FutureTask r1 = new java.util.concurrent.FutureTask // Catch:{ all -> 0x0088 }\n com.facebook.p r2 = new com.facebook.p // Catch:{ all -> 0x0088 }\n r2.<init>(r4, r3) // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n java.util.concurrent.Executor r2 = m13822l() // Catch:{ all -> 0x0088 }\n r2.execute(r1) // Catch:{ all -> 0x0088 }\n monitor-exit(r0)\n return\n L_0x0080:\n com.facebook.FacebookException r1 = new com.facebook.FacebookException // Catch:{ all -> 0x0088 }\n java.lang.String r2 = \"A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.\"\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n throw r1 // Catch:{ all -> 0x0088 }\n L_0x0088:\n r3 = move-exception\n monitor-exit(r0)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.C6787r.m13804a(android.content.Context, com.facebook.r$a):void\");\n }", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "public static com.airbnb.lottie.C0955d m4067a(android.util.JsonReader r28) {\n /*\n r0 = r28;\n r1 = com.airbnb.lottie.p036d.C0954f.m4101a();\n r8 = new android.support.v4.f.f;\n r8.<init>();\n r7 = new java.util.ArrayList;\n r7.<init>();\n r9 = new java.util.HashMap;\n r9.<init>();\n r10 = new java.util.HashMap;\n r10.<init>();\n r12 = new java.util.HashMap;\n r12.<init>();\n r11 = new android.support.v4.f.n;\n r11.<init>();\n r13 = new com.airbnb.lottie.d;\n r13.<init>();\n r28.beginObject();\n r2 = 0;\n r2 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r14 = 0;\n L_0x0032:\n r15 = r28.hasNext();\n if (r15 == 0) goto L_0x0138;\n L_0x0038:\n r15 = r28.nextName();\n r16 = -1;\n r17 = r15.hashCode();\n r18 = 2;\n r19 = 1;\n switch(r17) {\n case -1408207997: goto L_0x00a7;\n case -1109732030: goto L_0x009d;\n case 104: goto L_0x0093;\n case 118: goto L_0x0089;\n case 119: goto L_0x007f;\n case 3276: goto L_0x0075;\n case 3367: goto L_0x006b;\n case 3553: goto L_0x0061;\n case 94623709: goto L_0x0056;\n case 97615364: goto L_0x004b;\n default: goto L_0x0049;\n };\n L_0x0049:\n goto L_0x00b1;\n L_0x004b:\n r3 = \"fonts\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0053:\n r3 = 8;\n goto L_0x00b2;\n L_0x0056:\n r3 = \"chars\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x005e:\n r3 = 9;\n goto L_0x00b2;\n L_0x0061:\n r3 = \"op\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0069:\n r3 = 3;\n goto L_0x00b2;\n L_0x006b:\n r3 = \"ip\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0073:\n r3 = 2;\n goto L_0x00b2;\n L_0x0075:\n r3 = \"fr\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x007d:\n r3 = 4;\n goto L_0x00b2;\n L_0x007f:\n r3 = \"w\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0087:\n r3 = 0;\n goto L_0x00b2;\n L_0x0089:\n r3 = \"v\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0091:\n r3 = 5;\n goto L_0x00b2;\n L_0x0093:\n r3 = \"h\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x009b:\n r3 = 1;\n goto L_0x00b2;\n L_0x009d:\n r3 = \"layers\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x00a5:\n r3 = 6;\n goto L_0x00b2;\n L_0x00a7:\n r3 = \"assets\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x00af:\n r3 = 7;\n goto L_0x00b2;\n L_0x00b1:\n r3 = -1;\n L_0x00b2:\n switch(r3) {\n case 0: goto L_0x012a;\n case 1: goto L_0x0120;\n case 2: goto L_0x0116;\n case 3: goto L_0x0107;\n case 4: goto L_0x00fd;\n case 5: goto L_0x00ce;\n case 6: goto L_0x00ca;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c2;\n case 9: goto L_0x00be;\n default: goto L_0x00b5;\n };\n L_0x00b5:\n r27 = r11;\n r26 = r12;\n r28.skipValue();\n goto L_0x0132;\n L_0x00be:\n com.airbnb.lottie.p035c.C0944t.m4068a(r0, r13, r11);\n goto L_0x0102;\n L_0x00c2:\n com.airbnb.lottie.p035c.C0944t.m4071a(r0, r12);\n goto L_0x0102;\n L_0x00c6:\n com.airbnb.lottie.p035c.C0944t.m4070a(r0, r13, r9, r10);\n goto L_0x0102;\n L_0x00ca:\n com.airbnb.lottie.p035c.C0944t.m4069a(r0, r13, r7, r8);\n goto L_0x0102;\n L_0x00ce:\n r3 = r28.nextString();\n r15 = \"\\\\.\";\n r3 = r3.split(r15);\n r15 = 0;\n r16 = r3[r15];\n r20 = java.lang.Integer.parseInt(r16);\n r15 = r3[r19];\n r21 = java.lang.Integer.parseInt(r15);\n r3 = r3[r18];\n r22 = java.lang.Integer.parseInt(r3);\n r23 = 4;\n r24 = 4;\n r25 = 0;\n r3 = com.airbnb.lottie.p036d.C0954f.m4108a(r20, r21, r22, r23, r24, r25);\n if (r3 != 0) goto L_0x0102;\n L_0x00f7:\n r3 = \"Lottie only supports bodymovin >= 4.4.0\";\n r13.m4112a(r3);\n goto L_0x0102;\n L_0x00fd:\n r14 = r28.nextDouble();\n r14 = (float) r14;\n L_0x0102:\n r27 = r11;\n r26 = r12;\n goto L_0x0132;\n L_0x0107:\n r27 = r11;\n r26 = r12;\n r11 = r28.nextDouble();\n r3 = (float) r11;\n r6 = 1008981770; // 0x3c23d70a float:0.01 double:4.9850323E-315;\n r6 = r3 - r6;\n goto L_0x0132;\n L_0x0116:\n r27 = r11;\n r26 = r12;\n r11 = r28.nextDouble();\n r5 = (float) r11;\n goto L_0x0132;\n L_0x0120:\n r27 = r11;\n r26 = r12;\n r3 = r28.nextInt();\n r4 = r3;\n goto L_0x0132;\n L_0x012a:\n r27 = r11;\n r26 = r12;\n r2 = r28.nextInt();\n L_0x0132:\n r12 = r26;\n r11 = r27;\n goto L_0x0032;\n L_0x0138:\n r27 = r11;\n r26 = r12;\n r28.endObject();\n r0 = (float) r2;\n r0 = r0 * r1;\n r0 = (int) r0;\n r2 = (float) r4;\n r2 = r2 * r1;\n r1 = (int) r2;\n r3 = new android.graphics.Rect;\n r2 = 0;\n r3.<init>(r2, r2, r0, r1);\n r2 = r13;\n r4 = r5;\n r5 = r6;\n r6 = r14;\n r2.m4111a(r3, r4, r5, r6, r7, r8, r9, r10, r11, r12);\n return r13;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.lottie.c.t.a(android.util.JsonReader):com.airbnb.lottie.d\");\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "private void tryInitializeHandlerForReactRootView(int r5) {\n /*\n r4 = this;\n com.facebook.react.bridge.ReactApplicationContext r0 = r4.getReactApplicationContext()\n java.lang.Class<com.facebook.react.uimanager.UIManagerModule> r1 = com.facebook.react.uimanager.UIManagerModule.class\n com.facebook.react.bridge.NativeModule r0 = r0.getNativeModule(r1)\n com.facebook.react.uimanager.UIManagerModule r0 = (com.facebook.react.uimanager.UIManagerModule) r0\n int r1 = r0.resolveRootTagFromReactTag(r5)\n if (r1 <= 0) goto L_0x005e\n java.util.List<com.swmansion.gesturehandler.react.g> r2 = r4.mRoots\n monitor-enter(r2)\n r5 = 0\n L_0x0016:\n java.util.List<com.swmansion.gesturehandler.react.g> r3 = r4.mRoots // Catch:{ all -> 0x005b }\n int r3 = r3.size() // Catch:{ all -> 0x005b }\n if (r5 >= r3) goto L_0x0033\n java.util.List<com.swmansion.gesturehandler.react.g> r3 = r4.mRoots // Catch:{ all -> 0x005b }\n java.lang.Object r3 = r3.get(r5) // Catch:{ all -> 0x005b }\n com.swmansion.gesturehandler.react.g r3 = (com.swmansion.gesturehandler.react.g) r3 // Catch:{ all -> 0x005b }\n com.facebook.react.ReactRootView r3 = r3.f78820a // Catch:{ all -> 0x005b }\n int r3 = r3.getRootViewTag() // Catch:{ all -> 0x005b }\n if (r3 != r1) goto L_0x0030\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n return\n L_0x0030:\n int r5 = r5 + 1\n goto L_0x0016\n L_0x0033:\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n java.util.List<java.lang.Integer> r5 = r4.mEnqueuedRootViewInit\n monitor-enter(r5)\n java.util.List<java.lang.Integer> r2 = r4.mEnqueuedRootViewInit // Catch:{ all -> 0x0058 }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r1) // Catch:{ all -> 0x0058 }\n boolean r2 = r2.contains(r3) // Catch:{ all -> 0x0058 }\n if (r2 == 0) goto L_0x0045\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n return\n L_0x0045:\n java.util.List<java.lang.Integer> r2 = r4.mEnqueuedRootViewInit // Catch:{ all -> 0x0058 }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r1) // Catch:{ all -> 0x0058 }\n r2.add(r3) // Catch:{ all -> 0x0058 }\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n com.swmansion.gesturehandler.react.RNGestureHandlerModule$2 r5 = new com.swmansion.gesturehandler.react.RNGestureHandlerModule$2\n r5.<init>(r1)\n r0.addUIBlock(r5)\n return\n L_0x0058:\n r0 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n throw r0\n L_0x005b:\n r5 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n throw r5\n L_0x005e:\n com.facebook.react.bridge.JSApplicationIllegalArgumentException r0 = new com.facebook.react.bridge.JSApplicationIllegalArgumentException\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n java.lang.String r2 = \"Could find root view for a given ancestor with tag \"\n r1.<init>(r2)\n r1.append(r5)\n java.lang.String r5 = r1.toString()\n r0.<init>(r5)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.swmansion.gesturehandler.react.RNGestureHandlerModule.tryInitializeHandlerForReactRootView(int):void\");\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "private final com.google.android.play.p179a.p352a.C6210u m28673b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[]\");\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "public static java.lang.String m5217a() {\n /*\n r0 = f4109a;\n monitor-enter(r0);\n r1 = f4109a;\t Catch:{ all -> 0x003e }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x003e }\n if (r1 == 0) goto L_0x000f;\n L_0x000b:\n r1 = \"\";\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n return r1;\n L_0x000f:\n r1 = new java.util.ArrayList;\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r1.<init>(r2);\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r2.clear();\t Catch:{ all -> 0x003e }\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n r0 = new org.json.JSONArray;\n r0.<init>();\n r1 = r1.iterator();\n L_0x0025:\n r2 = r1.hasNext();\n if (r2 == 0) goto L_0x0039;\n L_0x002b:\n r2 = r1.next();\n r2 = (com.facebook.ads.internal.p047k.C1481b) r2;\n r2 = r2.m5216a();\n r0.put(r2);\n goto L_0x0025;\n L_0x0039:\n r0 = r0.toString();\n return r0;\n L_0x003e:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.k.c.a():java.lang.String\");\n }", "final void d(android.support.v7.widget.RecyclerView.t r13, int r14) {\n /*\n r12 = this;\n r0 = r12.XG;\n if (r13 != r0) goto L_0x0009;\n L_0x0004:\n r0 = r12.XQ;\n if (r14 != r0) goto L_0x0009;\n L_0x0008:\n return;\n L_0x0009:\n r0 = -9223372036854775808;\n r12.Yb = r0;\n r4 = r12.XQ;\n r0 = 1;\n r12.a(r13, r0);\n r12.XQ = r14;\n r0 = 2;\n if (r14 != r0) goto L_0x0034;\n L_0x0018:\n r0 = r13.SU;\n r12.XX = r0;\n r0 = android.os.Build.VERSION.SDK_INT;\n r1 = 21;\n if (r0 >= r1) goto L_0x0034;\n L_0x0022:\n r0 = r12.RJ;\n if (r0 != 0) goto L_0x002d;\n L_0x0026:\n r0 = new android.support.v7.widget.a.a$5;\n r0.<init>(r12);\n r12.RJ = r0;\n L_0x002d:\n r0 = r12.Sa;\n r1 = r12.RJ;\n r0.setChildDrawingOrderCallback(r1);\n L_0x0034:\n r0 = 1;\n r1 = r14 * 8;\n r1 = r1 + 8;\n r0 = r0 << r1;\n r11 = r0 + -1;\n r0 = 0;\n r1 = r12.XG;\n if (r1 == 0) goto L_0x00d1;\n L_0x0041:\n r2 = r12.XG;\n r1 = r2.SU;\n r1 = r1.getParent();\n if (r1 == 0) goto L_0x017d;\n L_0x004b:\n r0 = 2;\n if (r4 == r0) goto L_0x0132;\n L_0x004e:\n r0 = r12.XQ;\n r1 = 2;\n if (r0 == r1) goto L_0x0132;\n L_0x0053:\n r0 = r12.XP;\n r0 = r0.hm();\n r1 = r12.Sa;\n r1 = android.support.v4.view.z.I(r1);\n r0 = android.support.v7.widget.a.a.a.ap(r0, r1);\n r1 = 65280; // 0xff00 float:9.1477E-41 double:3.22526E-319;\n r0 = r0 & r1;\n r0 = r0 >> 8;\n if (r0 == 0) goto L_0x0132;\n L_0x006b:\n r1 = r12.XL;\n r1 = java.lang.Math.abs(r1);\n r3 = r12.XM;\n r3 = java.lang.Math.abs(r3);\n r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r1 <= 0) goto L_0x0135;\n L_0x007b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x012c;\n L_0x0081:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0085:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n L_0x008f:\n r12.hl();\n switch(r9) {\n case 1: goto L_0x0163;\n case 2: goto L_0x0163;\n case 4: goto L_0x0151;\n case 8: goto L_0x0151;\n case 16: goto L_0x0151;\n case 32: goto L_0x0151;\n default: goto L_0x0095;\n };\n L_0x0095:\n r7 = 0;\n r8 = 0;\n L_0x0097:\n r0 = 2;\n if (r4 != r0) goto L_0x0175;\n L_0x009a:\n r3 = 8;\n L_0x009c:\n r0 = r12.XF;\n r12.c(r0);\n r0 = r12.XF;\n r1 = 0;\n r5 = r0[r1];\n r0 = r12.XF;\n r1 = 1;\n r6 = r0[r1];\n r0 = new android.support.v7.widget.a.a$3;\n r1 = r12;\n r10 = r2;\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r12.Sa;\n r2 = android.support.v7.widget.a.a.a.f(r1, r3);\n r1 = r0.Yo;\n r1.setDuration(r2);\n r1 = r12.XS;\n r1.add(r0);\n r1 = r0.Sh;\n r2 = 0;\n r1.T(r2);\n r0 = r0.Yo;\n r0.start();\n r0 = 1;\n L_0x00ce:\n r1 = 0;\n r12.XG = r1;\n L_0x00d1:\n r1 = r0;\n if (r13 == 0) goto L_0x0101;\n L_0x00d4:\n r0 = r12.Sa;\n r0 = android.support.v7.widget.a.a.a.B(r0);\n r0 = r0 & r11;\n r2 = r12.XQ;\n r2 = r2 * 8;\n r0 = r0 >> r2;\n r12.XR = r0;\n r0 = r13.SU;\n r0 = r0.getLeft();\n r0 = (float) r0;\n r12.XN = r0;\n r0 = r13.SU;\n r0 = r0.getTop();\n r0 = (float) r0;\n r12.XO = r0;\n r12.XG = r13;\n r0 = 2;\n if (r14 != r0) goto L_0x0101;\n L_0x00f9:\n r0 = r12.XG;\n r0 = r0.SU;\n r2 = 0;\n r0.performHapticFeedback(r2);\n L_0x0101:\n r0 = r12.Sa;\n r2 = r0.getParent();\n if (r2 == 0) goto L_0x0111;\n L_0x0109:\n r0 = r12.XG;\n if (r0 == 0) goto L_0x018b;\n L_0x010d:\n r0 = 1;\n L_0x010e:\n r2.requestDisallowInterceptTouchEvent(r0);\n L_0x0111:\n if (r1 != 0) goto L_0x011c;\n L_0x0113:\n r0 = r12.Sa;\n r0 = r0.getLayoutManager();\n r1 = 1;\n r0.Sc = r1;\n L_0x011c:\n r0 = r12.XP;\n r1 = r12.XG;\n r2 = r12.XQ;\n r0.e(r1, r2);\n r0 = r12.Sa;\n r0.invalidate();\n goto L_0x0008;\n L_0x012c:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x0132:\n r9 = 0;\n goto L_0x008f;\n L_0x0135:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x013b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x0132;\n L_0x0141:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0145:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n goto L_0x008f;\n L_0x0151:\n r8 = 0;\n r0 = r12.XL;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getWidth();\n r1 = (float) r1;\n r7 = r0 * r1;\n goto L_0x0097;\n L_0x0163:\n r7 = 0;\n r0 = r12.XM;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getHeight();\n r1 = (float) r1;\n r8 = r0 * r1;\n goto L_0x0097;\n L_0x0175:\n if (r9 <= 0) goto L_0x017a;\n L_0x0177:\n r3 = 2;\n goto L_0x009c;\n L_0x017a:\n r3 = 4;\n goto L_0x009c;\n L_0x017d:\n r1 = r2.SU;\n r12.bx(r1);\n r1 = r12.XP;\n r3 = r12.Sa;\n r1.c(r3, r2);\n goto L_0x00ce;\n L_0x018b:\n r0 = 0;\n goto L_0x010e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.a.a.d(android.support.v7.widget.RecyclerView$t, int):void\");\n }", "public final int mo115441d(java.lang.String r9, java.lang.Object[] r10, com.tencent.wcdb.support.C46443a r11) {\n /*\n r8 = this;\n if (r9 == 0) goto L_0x0091\n r0 = 0\n com.tencent.wcdb.database.SQLiteConnection$b r1 = r8.f119474e\n java.lang.String r2 = \"executeForChangedRowCount\"\n com.tencent.wcdb.database.SQLiteConnection$a r1 = r1.mo115446a(r2, r9, r10)\n int r2 = r1.f119496h\n com.tencent.wcdb.database.SQLiteConnection$c r3 = r8.m145774e(r9) // Catch:{ RuntimeException -> 0x005d }\n int r4 = r3.f119507e // Catch:{ RuntimeException -> 0x005d }\n r1.f119497i = r4 // Catch:{ RuntimeException -> 0x005d }\n r8.m145770c(r3) // Catch:{ all -> 0x0056 }\n r8.m145765a(r3, r10) // Catch:{ all -> 0x0056 }\n r8.m145768b(r11) // Catch:{ all -> 0x0056 }\n long r4 = r8.f119482o // Catch:{ all -> 0x0051 }\n long r6 = r3.f119505c // Catch:{ all -> 0x0051 }\n int r10 = nativeExecuteForChangedRowCount(r4, r6) // Catch:{ all -> 0x0051 }\n r8.mo115430a(r11) // Catch:{ all -> 0x004e }\n r8.mo115428a(r3) // Catch:{ RuntimeException -> 0x004b, all -> 0x0048 }\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e\n boolean r9 = r9.mo115451b(r2)\n if (r9 == 0) goto L_0x0047\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e\n java.lang.StringBuilder r11 = new java.lang.StringBuilder\n java.lang.String r0 = \"changedRows=\"\n r11.<init>(r0)\n r11.append(r10)\n java.lang.String r11 = r11.toString()\n r9.mo115450a(r2, r11)\n L_0x0047:\n return r10\n L_0x0048:\n r9 = move-exception\n r0 = r10\n goto L_0x0075\n L_0x004b:\n r11 = move-exception\n r0 = r10\n goto L_0x005e\n L_0x004e:\n r11 = move-exception\n r0 = r10\n goto L_0x0057\n L_0x0051:\n r10 = move-exception\n r8.mo115430a(r11) // Catch:{ all -> 0x0056 }\n throw r10 // Catch:{ all -> 0x0056 }\n L_0x0056:\n r11 = move-exception\n L_0x0057:\n r8.mo115428a(r3) // Catch:{ RuntimeException -> 0x005d }\n throw r11 // Catch:{ RuntimeException -> 0x005d }\n L_0x005b:\n r9 = move-exception\n goto L_0x0075\n L_0x005d:\n r11 = move-exception\n L_0x005e:\n boolean r10 = r11 instanceof com.tencent.wcdb.database.SQLiteDatabaseLockedException // Catch:{ all -> 0x005b }\n if (r10 != 0) goto L_0x0066\n boolean r10 = r11 instanceof com.tencent.wcdb.database.SQLiteTableLockedException // Catch:{ all -> 0x005b }\n if (r10 == 0) goto L_0x006f\n L_0x0066:\n com.tencent.wcdb.database.d r10 = r8.f119471b // Catch:{ all -> 0x005b }\n if (r10 == 0) goto L_0x006f\n com.tencent.wcdb.database.d r10 = r8.f119471b // Catch:{ all -> 0x005b }\n r10.mo115490a(r9) // Catch:{ all -> 0x005b }\n L_0x006f:\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e // Catch:{ all -> 0x005b }\n r9.mo115449a(r2, r11) // Catch:{ all -> 0x005b }\n throw r11 // Catch:{ all -> 0x005b }\n L_0x0075:\n com.tencent.wcdb.database.SQLiteConnection$b r10 = r8.f119474e\n boolean r10 = r10.mo115451b(r2)\n if (r10 == 0) goto L_0x0090\n com.tencent.wcdb.database.SQLiteConnection$b r10 = r8.f119474e\n java.lang.StringBuilder r11 = new java.lang.StringBuilder\n java.lang.String r1 = \"changedRows=\"\n r11.<init>(r1)\n r11.append(r0)\n java.lang.String r11 = r11.toString()\n r10.mo115450a(r2, r11)\n L_0x0090:\n throw r9\n L_0x0091:\n java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException\n java.lang.String r10 = \"sql must not be null.\"\n r9.<init>(r10)\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wcdb.database.SQLiteConnection.mo115441d(java.lang.String, java.lang.Object[], com.tencent.wcdb.support.a):int\");\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "public final boolean mo115451b(int r10) {\n /*\n r9 = this;\n com.tencent.wcdb.database.SQLiteConnection$a[] r0 = r9.f119500b\n monitor-enter(r0)\n com.tencent.wcdb.database.SQLiteConnection$a r10 = r9.m145808d(r10) // Catch:{ all -> 0x002d }\n if (r10 != 0) goto L_0x000c\n r10 = 0\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n return r10\n L_0x000c:\n boolean r1 = m145806a(r10) // Catch:{ all -> 0x002d }\n java.lang.String r2 = r10.f119492d // Catch:{ all -> 0x002d }\n java.lang.String r3 = r10.f119491c // Catch:{ all -> 0x002d }\n int r4 = r10.f119497i // Catch:{ all -> 0x002d }\n long r5 = r10.f119490b // Catch:{ all -> 0x002d }\n long r7 = r10.f119489a // Catch:{ all -> 0x002d }\n r10 = 0\n long r5 = r5 - r7\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n java.lang.String r10 = \"prepare\"\n boolean r10 = r10.equals(r3)\n if (r10 != 0) goto L_0x002c\n com.tencent.wcdb.database.SQLiteConnection r10 = com.tencent.wcdb.database.SQLiteConnection.this\n com.tencent.wcdb.database.d r10 = r10.f119471b\n r10.mo115492a(r2, r4, r5)\n L_0x002c:\n return r1\n L_0x002d:\n r10 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wcdb.database.SQLiteConnection.C46404b.mo115451b(int):boolean\");\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "@Override // kotlinx.coroutines.flow.FlowCollector\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1\n if (r0 == 0) goto L_0x0013\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.label = r1\n goto L_0x0018\n L_0x0013:\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1\n r0.<init>(r10)\n L_0x0018:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x005e\n if (r2 == r4) goto L_0x0044\n if (r2 != r3) goto L_0x003c\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r8 = r0.L$4\n kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8\n java.lang.Object r8 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r8\n java.lang.Object r8 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r8\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x009b\n L_0x003c:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.String r9 = \"call to 'resume' before 'invoke' with coroutine\"\n r8.<init>(r9)\n throw r8\n L_0x0044:\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r9 = r0.L$5\n java.lang.Object r2 = r0.L$4\n kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2\n java.lang.Object r4 = r0.L$3\n java.lang.Object r5 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r5 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r5\n java.lang.Object r6 = r0.L$1\n java.lang.Object r7 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r7 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r7\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0084\n L_0x005e:\n kotlin.ResultKt.throwOnFailure(r10)\n kotlinx.coroutines.flow.FlowCollector r10 = kotlinx.coroutines.flow.FlowCollector.this\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1 r2 = r2\n kotlin.jvm.functions.Function2 r2 = r2.$action$inlined\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r0\n r0.L$3 = r9\n r0.L$4 = r0\n r0.L$5 = r9\n r0.L$6 = r10\n r0.label = r4\n java.lang.Object r2 = r2.invoke(r9, r0)\n if (r2 != r1) goto L_0x007e\n return r1\n L_0x007e:\n r7 = r8\n r4 = r9\n r6 = r4\n r8 = r10\n r2 = r0\n r5 = r2\n L_0x0084:\n r0.L$0 = r7\n r0.L$1 = r6\n r0.L$2 = r5\n r0.L$3 = r4\n r0.L$4 = r2\n r0.L$5 = r9\n r0.L$6 = r8\n r0.label = r3\n java.lang.Object r10 = r8.emit(r9, r0)\n if (r10 != r1) goto L_0x009b\n return r1\n L_0x009b:\n return r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }", "public final void b(@org.jetbrains.annotations.Nullable java.lang.String r18) {\n /*\n r17 = this;\n r1 = 1\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r9 = 0\n r2[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r4 = f2610e\n java.lang.Class[] r7 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r3 = java.lang.String.class\n r7[r9] = r3\n java.lang.Class r8 = java.lang.Void.TYPE\n r5 = 0\n r6 = 21950(0x55be, float:3.0759E-41)\n r3 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x0032\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21950(0x55be, float:3.0759E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Void.TYPE\n r11 = r17\n com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n return\n L_0x0032:\n com.ss.android.ugc.aweme.antiaddic.lock.c r2 = com.ss.android.ugc.aweme.antiaddic.lock.c.f33443d\n boolean r2 = r2.e()\n if (r2 == 0) goto L_0x003e\n r17.c(r18)\n return\n L_0x003e:\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r2 = java.lang.String.class\n r15[r9] = r2\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r10, r11, r12, r13, r14, r15, r16)\n if (r2 == 0) goto L_0x0075\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r1 = r0.booleanValue()\n goto L_0x0096\n L_0x0075:\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n if (r2 == 0) goto L_0x0095\n r0 = r18\n java.lang.CharSequence r0 = (java.lang.CharSequence) r0\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n java.lang.String r3 = \"TimeLockRuler.getUserSetting()\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r2, r3)\n java.lang.String r2 = r2.getPassword()\n java.lang.CharSequence r2 = (java.lang.CharSequence) r2\n boolean r0 = android.text.TextUtils.equals(r0, r2)\n if (r0 == 0) goto L_0x0095\n goto L_0x0096\n L_0x0095:\n r1 = 0\n L_0x0096:\n if (r1 == 0) goto L_0x009c\n r17.b()\n return\n L_0x009c:\n android.content.Context r0 = com.ss.android.ugc.aweme.base.utils.d.a()\n r1 = 2131564680(0x7f0d1888, float:1.8754852E38)\n com.bytedance.ies.dmt.ui.d.a r0 = com.bytedance.ies.dmt.ui.d.a.b((android.content.Context) r0, (int) r1)\n r0.a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.antiaddic.lock.ui.fragment.AntiAddictionTipFragment.b(java.lang.String):void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public void m17237a(java.util.List<java.lang.Integer> r6) {\n /*\n r5 = this;\n r0 = 0;\n if (r6 == 0) goto L_0x0009;\n L_0x0003:\n r1 = r6.size();\n if (r1 != 0) goto L_0x000a;\n L_0x0009:\n return;\n L_0x000a:\n r1 = r5.f20994d;\n r1.lock();\n r2 = r5.m17234d();\n r1 = \"\";\n L_0x0016:\n r3 = r6.size();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 >= r3) goto L_0x003b;\n L_0x001c:\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r3.append(r1);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r6.get(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \",\";\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0 + 1;\n goto L_0x0016;\n L_0x003b:\n r0 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 <= 0) goto L_0x006e;\n L_0x0041:\n r0 = 0;\n r3 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r3 + -1;\n r0 = r1.substring(r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = \"result\";\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r4 = \"_id in (\";\n r3 = r3.append(r4);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r3.append(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \")\";\n r0 = r0.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = 0;\n r2.delete(r1, r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n L_0x006e:\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x0077:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00a0:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00c9:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00f2:\n r0 = move-exception;\n r2.close();\n r1 = r5.f20994d;\n r1.unlock();\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.a(java.util.List):void\");\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }", "public void mo5832b(android.content.Context r4) {\n /*\n r3 = this;\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n L_0x0008:\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n L_0x0010:\n r0 = 25\n java.lang.Long r1 = m3303w() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n long r1 = r1.longValue() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n r3.mo5829a(r0, r1) // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n L_0x001d:\n r0 = 24\n java.lang.String r1 = m3300d(r4) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n L_0x0026:\n return\n L_0x0027:\n r0 = move-exception\n goto L_0x0026\n L_0x0029:\n r0 = move-exception\n goto L_0x0026\n L_0x002b:\n r0 = move-exception\n goto L_0x001d\n L_0x002d:\n r0 = move-exception\n goto L_0x0010\n L_0x002f:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5832b(android.content.Context):void\");\n }", "AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }", "public void M(android.view.View r6) {\n /*\n r5 = this;\n r0 = \"v\";\n kotlin.jvm.internal.i.f(r6, r0);\n r6 = r5.this$0;\n r6 = r6.ayL;\n r0 = 0;\n if (r6 == 0) goto L_0x001a;\n L_0x000f:\n r6 = r6.Km();\n if (r6 == 0) goto L_0x001a;\n L_0x0015:\n r6 = r6.XA();\n goto L_0x001b;\n L_0x001a:\n r6 = r0;\n L_0x001b:\n if (r6 != 0) goto L_0x0020;\n L_0x001d:\n kotlin.jvm.internal.i.bnJ();\n L_0x0020:\n r1 = com.iqoption.deposit.light.menu.currency.c.cFb;\n r2 = new com.iqoption.deposit.c.a.b;\n r6 = (java.util.List) r6;\n r3 = r5.this$0;\n r3 = r3.cFE;\n if (r3 == 0) goto L_0x0037;\n L_0x002e:\n r3 = r3.getId();\n r3 = java.lang.Long.valueOf(r3);\n goto L_0x0038;\n L_0x0037:\n r3 = r0;\n L_0x0038:\n r2.<init>(r6, r3);\n r6 = r1.a(r2);\n r1 = com.iqoption.deposit.navigator.b.cGp;\n r2 = r5.this$0;\n r2 = (androidx.fragment.app.Fragment) r2;\n r1 = r1.P(r2);\n r2 = 0;\n r3 = 2;\n com.iqoption.core.ui.d.g.b(r1, r6, r2, r3, r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c$r.M(android.view.View):void\");\n }", "private static void m13381a(long r3, float r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "public final java.lang.String mo40211d_() {\n /*\n r6 = this;\n android.database.sqlite.SQLiteDatabase r0 = r6.mo40210c_()\n r1 = 0\n java.lang.String r2 = \"select app_id from queue order by has_realtime desc, rowid asc limit 1;\"\n android.database.Cursor r0 = r0.rawQuery(r2, r1) // Catch:{ SQLiteException -> 0x002b, all -> 0x0026 }\n boolean r2 = r0.moveToFirst() // Catch:{ SQLiteException -> 0x0024 }\n if (r2 == 0) goto L_0x001d\n r2 = 0\n java.lang.String r1 = r0.getString(r2) // Catch:{ SQLiteException -> 0x0024 }\n if (r0 == 0) goto L_0x001c\n r0.close()\n L_0x001c:\n return r1\n L_0x001d:\n if (r0 == 0) goto L_0x0023\n r0.close()\n L_0x0023:\n return r1\n L_0x0024:\n r2 = move-exception\n goto L_0x002d\n L_0x0026:\n r0 = move-exception\n r5 = r1\n r1 = r0\n r0 = r5\n goto L_0x0041\n L_0x002b:\n r2 = move-exception\n r0 = r1\n L_0x002d:\n com.google.android.gms.measurement.internal.zzez r3 = r6.zzr() // Catch:{ all -> 0x0040 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0040 }\n java.lang.String r4 = \"Database error getting next bundle app id\"\n r3.zza(r4, r2) // Catch:{ all -> 0x0040 }\n if (r0 == 0) goto L_0x003f\n r0.close()\n L_0x003f:\n return r1\n L_0x0040:\n r1 = move-exception\n L_0x0041:\n if (r0 == 0) goto L_0x0046\n r0.close()\n L_0x0046:\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.mo40211d_():java.lang.String\");\n }", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private static void m13385d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "void m5770d() throws C0841b;", "public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }", "public final void m18179a(java.lang.Throwable r4) {\n /*\n r3 = this;\n r0 = 0\n java.lang.Object[] r0 = new java.lang.Object[r0]\n java.lang.String r1 = \"Refresh Account failed\"\n p686n.p687a.Timber.m44528b(r4, r1, r0)\n g.e.b.d.r$b r4 = new g.e.b.d.r$b\n r4.<init>(r3)\n r3.updateState(r4)\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n boolean r4 = r4.mo13695j()\n if (r4 != 0) goto L_0x0051\n io.reactivex.disposables.Disposable r4 = r3.f12929a\n if (r4 != 0) goto L_0x0051\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n io.reactivex.Completable r4 = r4.mo13697n()\n g.n.a.c0 r0 = r3.getViewModelScope()\n g.n.a.h r0 = p163g.p503n.p504a.C11793e.m37930a(r0)\n java.lang.Object r4 = r4.mo30048a(r0)\n java.lang.String r0 = \"this.`as`(AutoDispose.au…isposable<Any>(provider))\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r4, r0)\n g.n.a.v r4 = (p163g.p503n.p504a.C11839v) r4\n g.e.b.d.r$c r0 = new g.e.b.d.r$c\n r0.<init>(r3)\n g.e.b.d.s r1 = new g.e.b.d.s\n r1.<init>(r0)\n g.e.b.d.r$d r0 = p163g.p201e.p203b.p204d.C5419r.C5423d.f12939c\n if (r0 == 0) goto L_0x0049\n g.e.b.d.t r2 = new g.e.b.d.t\n r2.<init>(r0)\n r0 = r2\n L_0x0049:\n io.reactivex.functions.Consumer r0 = (p520io.reactivex.functions.Consumer) r0\n io.reactivex.disposables.Disposable r4 = r4.mo29926a(r1, r0)\n r3.f12929a = r4\n L_0x0051:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163g.p201e.p203b.p204d.C5419r.m18179a(java.lang.Throwable):void\");\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n Type.getObjectType(\"The prefix must not be null\");\n Type type1 = Type.INT_TYPE;\n int[] intArray0 = new int[8];\n intArray0[0] = 6;\n intArray0[1] = 7;\n intArray0[2] = 2;\n intArray0[3] = 1;\n intArray0[4] = 2;\n intArray0[5] = 4;\n intArray0[6] = 9;\n intArray0[7] = 4;\n frame0.inputStack = intArray0;\n Item item0 = new Item();\n item0.hashCode = 1687;\n // Undeclared exception!\n try { \n frame0.execute(111, 164, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "public final void run() {\n /*\n r11 = this;\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n java.util.List r0 = r11.f7254\n java.util.Iterator r6 = r0.iterator()\n goto L_0x00fb\n L_0x000d:\n java.lang.Object r0 = r6.next()\n o.刴 r0 = (p004o.C1530) r0\n r5 = r0\n o.鑺 r7 = r11.f7255 // Catch:{ 櫂 -> 0x00f5 }\n r8 = r5\n java.lang.String r0 = \"consume\"\n r7.mo4508(r0) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r0 = r8.f7295 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = \"inapp\"\n boolean r0 = r0.equals(r1) // Catch:{ 櫂 -> 0x00f5 }\n if (r0 != 0) goto L_0x0045\n o.櫂 r0 = new o.櫂 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Items of type '\"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = r8.f7295 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"' can't be consumed.\"\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = -1010(0xfffffffffffffc0e, float:NaN)\n r0.<init>(r2, r1) // Catch:{ 櫂 -> 0x00f5 }\n throw r0 // Catch:{ 櫂 -> 0x00f5 }\n L_0x0045:\n java.lang.String r9 = r8.f7289 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r10 = r8.f7290 // Catch:{ RemoteException -> 0x00c2 }\n if (r9 == 0) goto L_0x0053\n java.lang.String r0 = \"\"\n boolean r0 = r9.equals(r0) // Catch:{ RemoteException -> 0x00c2 }\n if (r0 == 0) goto L_0x009d\n L_0x0053:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = \"Can't consume \"\n r0.<init>(r1) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r0 = r0.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = \". No token.\"\n java.lang.StringBuilder r0 = r0.append(r1) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r5 = r0.toString() // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r0 = r7.f8316 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"In-app billing error: \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r5) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n android.util.Log.e(r0, r1) // Catch:{ RemoteException -> 0x00c2 }\n o.櫂 r0 = new o.櫂 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"PurchaseInfo is missing token for sku: \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \" \"\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r8) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n r2 = -1007(0xfffffffffffffc11, float:NaN)\n r0.<init>(r2, r1) // Catch:{ RemoteException -> 0x00c2 }\n throw r0 // Catch:{ RemoteException -> 0x00c2 }\n L_0x009d:\n o.鷭 r0 = r7.f8308 // Catch:{ RemoteException -> 0x00c2 }\n android.content.Context r1 = r7.f8307 // Catch:{ RemoteException -> 0x00c2 }\n r1.getPackageName() // Catch:{ RemoteException -> 0x00c2 }\n int r7 = r0.mo4540() // Catch:{ RemoteException -> 0x00c2 }\n if (r7 == 0) goto L_0x00da\n p004o.C1782.m2448(r7) // Catch:{ RemoteException -> 0x00c2 }\n o.櫂 r0 = new o.櫂 // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r2 = \"Error consuming sku \"\n r1.<init>(r2) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.StringBuilder r1 = r1.append(r10) // Catch:{ RemoteException -> 0x00c2 }\n java.lang.String r1 = r1.toString() // Catch:{ RemoteException -> 0x00c2 }\n r0.<init>(r7, r1) // Catch:{ RemoteException -> 0x00c2 }\n throw r0 // Catch:{ RemoteException -> 0x00c2 }\n L_0x00c2:\n r9 = move-exception\n o.櫂 r0 = new o.櫂 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Remote exception while consuming. PurchaseInfo: \"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r8) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = -1001(0xfffffffffffffc17, float:NaN)\n r0.<init>(r2, r1, r9) // Catch:{ 櫂 -> 0x00f5 }\n throw r0 // Catch:{ 櫂 -> 0x00f5 }\n L_0x00da:\n o.ậ r0 = new o.ậ // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = \"Successful consume of sku \"\n r1.<init>(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r2 = r5.f7290 // Catch:{ 櫂 -> 0x00f5 }\n java.lang.StringBuilder r1 = r1.append(r2) // Catch:{ 櫂 -> 0x00f5 }\n java.lang.String r1 = r1.toString() // Catch:{ 櫂 -> 0x00f5 }\n r2 = 0\n r0.<init>(r2, r1) // Catch:{ 櫂 -> 0x00f5 }\n r4.add(r0) // Catch:{ 櫂 -> 0x00f5 }\n goto L_0x00fb\n L_0x00f5:\n r5 = move-exception\n o.ậ r0 = r5.f7614\n r4.add(r0)\n L_0x00fb:\n boolean r0 = r6.hasNext()\n if (r0 != 0) goto L_0x000d\n o.鑺 r5 = r11.f7255\n java.lang.String r0 = \"\"\n r5.f8306 = r0\n r0 = 0\n r5.f8310 = r0\n o.鑺$鷭 r0 = r11.f7253\n if (r0 == 0) goto L_0x011c\n android.os.Handler r0 = r11.f7252\n o.閇 r1 = new o.閇\n o.鑺$鷭 r2 = r11.f7253\n java.util.List r3 = r11.f7254\n r1.<init>(r11, r2, r3, r4)\n r0.post(r1)\n L_0x011c:\n o.鑺$if r0 = r11.f7251\n if (r0 == 0) goto L_0x012e\n android.os.Handler r0 = r11.f7252\n o.祽 r1 = new o.祽\n o.鑺$if r2 = r11.f7251\n java.util.List r3 = r11.f7254\n r1.<init>(r11, r2, r3, r4)\n r0.post(r1)\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p004o.C1509.run():void\");\n }", "AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "public /* bridge */ /* synthetic */ java.lang.Object createFromParcel(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.createFromParcel(android.os.Parcel):java.lang.Object\");\n }", "public final boolean mo3330c(android.content.Intent r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = \"com.google.firebase.messaging.NOTIFICATION_OPEN\";\n r1 = r3.getAction();\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x002c;\n L_0x000c:\n r0 = \"pending_intent\";\n r0 = r3.getParcelableExtra(r0);\n r0 = (android.app.PendingIntent) r0;\n if (r0 == 0) goto L_0x0021;\n L_0x0016:\n r0.send();\t Catch:{ CanceledException -> 0x001a }\n goto L_0x0021;\n L_0x001a:\n r0 = \"FirebaseMessaging\";\n r1 = \"Notification pending intent canceled\";\n android.util.Log.e(r0, r1);\n L_0x0021:\n r0 = com.google.firebase.messaging.C2609b.m12812e(r3);\n if (r0 == 0) goto L_0x002a;\n L_0x0027:\n com.google.firebase.messaging.C2609b.m12809b(r3);\n L_0x002a:\n r3 = 1;\n return r3;\n L_0x002c:\n r3 = 0;\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.messaging.FirebaseMessagingService.c(android.content.Intent):boolean\");\n }", "public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.CHAR_TYPE;\n Class<Integer> class0 = Integer.class;\n Class<Object> class1 = Object.class;\n Type.getType(class1);\n Type.getType(class0);\n Type.getObjectType(\"The prefix must not be null\");\n Type type1 = Type.INT_TYPE;\n int[] intArray0 = new int[6];\n intArray0[0] = 4;\n type1.getDescriptor();\n intArray0[1] = 2;\n intArray0[2] = 7;\n intArray0[3] = 4;\n intArray0[4] = 1;\n intArray0[5] = 0;\n frame0.inputStack = intArray0;\n Item item0 = classWriter0.newFieldItem(\"%B\\\"F$,FHLc-:\", \"The prefix must not be null\", \"The prefix must not be null\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n // Undeclared exception!\n try { \n frame0.execute(192, 4, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }", "public static void m2713y(android.content.Context r6, p000.C1129so r7) {\n /*\n oo r0 = new oo\n r0.<init>(r6)\n boolean r1 = p000.C0697ju.m2179b(r6)\n if (r1 == 0) goto L_0x0089\n ko r1 = r0.f3511b\n r1.getClass()\n r1 = 0\n android.bluetooth.BluetoothAdapter r2 = android.bluetooth.BluetoothAdapter.getDefaultAdapter() // Catch:{ Exception -> 0x0040 }\n java.util.Set r2 = r2.getBondedDevices() // Catch:{ Exception -> 0x0040 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ Exception -> 0x0040 }\n L_0x001d:\n boolean r3 = r2.hasNext() // Catch:{ Exception -> 0x0040 }\n if (r3 == 0) goto L_0x0059\n java.lang.Object r3 = r2.next() // Catch:{ Exception -> 0x0040 }\n android.bluetooth.BluetoothDevice r3 = (android.bluetooth.BluetoothDevice) r3 // Catch:{ Exception -> 0x0040 }\n int r4 = r3.getBondState() // Catch:{ Exception -> 0x0040 }\n r5 = 12\n if (r4 != r5) goto L_0x001d\n android.bluetooth.BluetoothClass r4 = r3.getBluetoothClass() // Catch:{ Exception -> 0x0040 }\n int r4 = r4.getMajorDeviceClass() // Catch:{ Exception -> 0x0040 }\n r5 = 1024(0x400, float:1.435E-42)\n r4 = r4 & r5\n if (r4 != r5) goto L_0x001d\n r1 = r3\n goto L_0x0059\n L_0x0040:\n r2 = move-exception\n r3 = -25751307244716(0xffffe8944e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n r4 = -25781372015788(0xffffe88d4e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n p000.C0550gu.m1819a(r3, r4)\n r2.printStackTrace()\n L_0x0059:\n if (r1 == 0) goto L_0x005d\n r1 = 1\n goto L_0x005e\n L_0x005d:\n r1 = 0\n L_0x005e:\n r2 = -24218003920044(0xffffe9f94e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n r4 = -24248068691116(0xffffe9f24e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n r3.append(r4)\n r3.append(r1)\n java.lang.String r3 = r3.toString()\n p000.C0550gu.m1820b(r2, r3)\n if (r1 == 0) goto L_0x0089\n so r1 = p000.C1129so.BLUETOOTH\n if (r7 == r1) goto L_0x0089\n goto L_0x00ab\n L_0x0089:\n yp r6 = p000.C1426yp.m3890b(r6)\n so r1 = p000.C1129so.USB\n if (r7 == r1) goto L_0x009b\n ko$b r2 = r6.mo5218a(r1)\n int r2 = r2.ordinal()\n if (r2 == 0) goto L_0x00ab\n L_0x009b:\n so r1 = p000.C1129so.HEADPHONES\n if (r7 == r1) goto L_0x00a9\n ko$b r6 = r6.mo5218a(r1)\n int r6 = r6.ordinal()\n if (r6 == 0) goto L_0x00ab\n L_0x00a9:\n so r1 = p000.C1129so.SPEAKER\n L_0x00ab:\n to r6 = new to\n r6.<init>(r1)\n r0.mo3866u(r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0936oo.m2713y(android.content.Context, so):void\");\n }", "public static org.json.JSONArray m5901a(org.json.JSONObject r1, java.lang.String r2, org.json.JSONArray r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = r1.has(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 == 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x0006:\n r0 = r1.isNull(r2);\t Catch:{ JSONException -> 0x0013 }\n if (r0 != 0) goto L_0x0011;\t Catch:{ JSONException -> 0x0013 }\n L_0x000c:\n r1 = r1.getJSONArray(r2);\t Catch:{ JSONException -> 0x0013 }\n goto L_0x0012;\n L_0x0011:\n r1 = 0;\n L_0x0012:\n return r1;\n L_0x0013:\n return r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.i.a(org.json.JSONObject, java.lang.String, org.json.JSONArray):org.json.JSONArray\");\n }", "private int handleStateTransition(int r18, int r19, java.lang.String r20, java.lang.String r21) {\n /*\n r17 = this;\n r1 = r17\n r0 = r18\n r2 = r19\n r3 = r20\n r4 = r21\n com.thoughtworks.xstream.core.util.FastStack r5 = r1.stack\n int r5 = r5.size()\n com.thoughtworks.xstream.core.util.FastStack r6 = r1.stack\n java.lang.Object r6 = r6.peek()\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r6 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r6\n java.lang.Class r6 = r6.type\n r7 = 0\n r8 = 1\n if (r5 <= r8) goto L_0x0026\n boolean r9 = r1.isArray(r6)\n if (r9 == 0) goto L_0x0026\n r9 = 1\n goto L_0x0027\n L_0x0026:\n r9 = 0\n L_0x0027:\n if (r5 <= r8) goto L_0x003c\n com.thoughtworks.xstream.core.util.FastStack r10 = r1.stack\n int r11 = r5 + -2\n java.lang.Object r10 = r10.get(r11)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r10 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r10\n java.lang.Class r10 = r10.type\n boolean r10 = r1.isArray(r10)\n if (r10 == 0) goto L_0x003c\n r7 = 1\n L_0x003c:\n r10 = 64\n r11 = 4\n if (r0 == r8) goto L_0x0353\n r13 = 128(0x80, float:1.794E-43)\n r14 = 2\n if (r0 == r14) goto L_0x0326\n r15 = 8\n r14 = 32\n r12 = 16\n r8 = 512(0x200, float:7.175E-43)\n if (r0 == r11) goto L_0x02c9\n java.lang.String r16 = \"@\"\n java.lang.String r11 = \"\"\n if (r0 == r15) goto L_0x01e9\n if (r0 == r12) goto L_0x01eb\n r12 = 256(0x100, float:3.59E-43)\n if (r0 == r14) goto L_0x01ca\n if (r0 == r10) goto L_0x0111\n if (r0 == r13) goto L_0x00b5\n if (r0 == r12) goto L_0x009c\n if (r0 != r8) goto L_0x0096\n r4 = 1\n if (r2 == r4) goto L_0x0087\n if (r2 == r13) goto L_0x007d\n if (r2 != r12) goto L_0x0077\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0076\n if (r9 == 0) goto L_0x0076\n r17.endArray()\n L_0x0076:\n return r2\n L_0x0077:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x007d:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0087:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0096:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x009c:\n r4 = 2\n if (r2 != r4) goto L_0x00af\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x00ae\n r17.endArray()\n r17.endArray()\n r17.endObject()\n L_0x00ae:\n return r2\n L_0x00af:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00b5:\n r10 = 1\n if (r2 == r10) goto L_0x0106\n r10 = 2\n if (r2 == r10) goto L_0x00d3\n r10 = 4\n if (r2 == r10) goto L_0x00d5\n if (r2 == r13) goto L_0x00d3\n if (r2 != r12) goto L_0x00cd\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 != 0) goto L_0x00cc\n if (r9 == 0) goto L_0x00cc\n r17.endArray()\n L_0x00cc:\n return r2\n L_0x00cd:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00d3:\n r3 = 0\n goto L_0x00f2\n L_0x00d5:\n r17.nextElement()\n if (r7 != 0) goto L_0x0111\n int r10 = r1.mode\n r14 = 4\n r10 = r10 & r14\n if (r10 != 0) goto L_0x0111\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n int r0 = r1.mode\n r0 = r0 & r14\n if (r0 != 0) goto L_0x00f1\n if (r9 == 0) goto L_0x00f1\n r17.startArray()\n L_0x00f1:\n return r2\n L_0x00f2:\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r10 = 2\n r1.handleStateTransition(r0, r10, r3, r3)\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0105\n if (r9 != 0) goto L_0x0105\n r17.endObject()\n L_0x0105:\n return r2\n L_0x0106:\n r3 = 0\n r10 = 2\n int r0 = r1.handleStateTransition(r0, r10, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0111:\n r10 = 2\n r14 = 4\n if (r2 == r14) goto L_0x0192\n if (r2 == r13) goto L_0x0182\n if (r2 == r12) goto L_0x0182\n if (r2 != r8) goto L_0x017c\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 == 0) goto L_0x012b\n if (r5 == r10) goto L_0x0123\n goto L_0x012b\n L_0x0123:\n com.thoughtworks.xstream.converters.ConversionException r0 = new com.thoughtworks.xstream.converters.ConversionException\n java.lang.String r2 = \"Single value cannot be root element\"\n r0.<init>((java.lang.String) r2)\n throw r0\n L_0x012b:\n if (r4 != 0) goto L_0x0148\n java.lang.Class<com.thoughtworks.xstream.mapper.Mapper$Null> r0 = com.thoughtworks.xstream.mapper.Mapper.Null.class\n if (r6 != r0) goto L_0x0139\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.NULL\n java.lang.String r3 = \"null\"\n r1.addValue(r3, r0)\n goto L_0x017b\n L_0x0139:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x017b\n if (r9 != 0) goto L_0x017b\n r17.startObject()\n r17.endObject()\n goto L_0x017b\n L_0x0148:\n int r0 = r1.mode\n r0 = r0 & r15\n if (r0 == 0) goto L_0x0174\n java.lang.Class r0 = java.lang.Long.TYPE\n if (r6 == r0) goto L_0x0155\n java.lang.Class<java.lang.Long> r0 = java.lang.Long.class\n if (r6 != r0) goto L_0x0174\n L_0x0155:\n long r7 = java.lang.Long.parseLong(r21)\n r9 = 9007199254740992(0x20000000000000, double:4.450147717014403E-308)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 > 0) goto L_0x016e\n r9 = -9007199254740992(0xffe0000000000000, double:-8.98846567431158E307)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 >= 0) goto L_0x0166\n goto L_0x016e\n L_0x0166:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x016e:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x0174:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n L_0x017b:\n return r2\n L_0x017c:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0182:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0191\n if (r9 == 0) goto L_0x018e\n r17.endArray()\n goto L_0x0191\n L_0x018e:\n r17.endObject()\n L_0x0191:\n return r2\n L_0x0192:\n int r0 = r1.mode\n r6 = 1\n r0 = r0 & r6\n if (r0 == 0) goto L_0x019e\n r0 = 2\n if (r5 <= r0) goto L_0x019c\n goto L_0x019e\n L_0x019c:\n r3 = 4\n goto L_0x01bf\n L_0x019e:\n if (r7 == 0) goto L_0x01a6\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x01b6\n L_0x01a6:\n boolean r0 = r11.equals(r4)\n if (r0 != 0) goto L_0x01af\n r17.startObject()\n L_0x01af:\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n L_0x01b6:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x01bf\n r17.startArray()\n L_0x01bf:\n int r0 = r1.mode\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01c9\n if (r9 == 0) goto L_0x01c9\n r17.startArray()\n L_0x01c9:\n return r2\n L_0x01ca:\n r4 = 2\n if (r2 == r4) goto L_0x01df\n if (r2 != r10) goto L_0x01d9\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01e8\n r17.nextElement()\n goto L_0x01e8\n L_0x01d9:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x01df:\n r0 = 0\n int r3 = r1.handleStateTransition(r10, r12, r0, r0)\n r4 = 2\n r1.handleStateTransition(r3, r4, r0, r0)\n L_0x01e8:\n return r2\n L_0x01e9:\n if (r2 == r12) goto L_0x02a0\n L_0x01eb:\n r5 = 1\n if (r2 == r5) goto L_0x0291\n r5 = 4\n if (r2 == r5) goto L_0x01f9\n if (r2 == r12) goto L_0x0220\n if (r2 == r14) goto L_0x020b\n if (r2 == r13) goto L_0x0201\n if (r2 != r8) goto L_0x01fb\n L_0x01f9:\n r5 = 0\n goto L_0x0250\n L_0x01fb:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0201:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x020b:\n int r3 = r1.mode\n r4 = 4\n r3 = r3 & r4\n if (r3 == 0) goto L_0x021f\n if (r0 != r12) goto L_0x0216\n r17.endObject()\n L_0x0216:\n r17.endArray()\n r17.nextElement()\n r17.startArray()\n L_0x021f:\n return r2\n L_0x0220:\n if (r9 == 0) goto L_0x0229\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x024f\n goto L_0x022a\n L_0x0229:\n r5 = 4\n L_0x022a:\n r17.nextElement()\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r6 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x0239\n r11 = r16\n L_0x0239:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x024f:\n return r2\n L_0x0250:\n int r0 = r1.handleStateTransition(r0, r14, r5, r5)\n int r0 = r1.handleStateTransition(r0, r10, r5, r5)\n r5 = 2\n if (r2 == r5) goto L_0x0287\n r5 = 4\n if (r2 == r5) goto L_0x027c\n if (r2 == r8) goto L_0x0261\n goto L_0x0290\n L_0x0261:\n int r3 = r1.mode\n r3 = r3 & r5\n if (r3 != 0) goto L_0x026f\n java.lang.String r3 = \"$\"\n java.lang.String r3 = r1.encodeNode(r3)\n r1.addLabel(r3)\n L_0x026f:\n r3 = 0\n r1.handleStateTransition(r0, r8, r3, r4)\n int r0 = r1.mode\n r0 = r0 & r5\n if (r0 != 0) goto L_0x0290\n r17.endObject()\n goto L_0x0290\n L_0x027c:\n int r4 = r1.mode\n r4 = r4 & r5\n if (r4 != 0) goto L_0x0282\n goto L_0x0283\n L_0x0282:\n r11 = 0\n L_0x0283:\n r1.handleStateTransition(r0, r5, r3, r11)\n goto L_0x0290\n L_0x0287:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r8, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n L_0x0290:\n return r2\n L_0x0291:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x02a0:\n if (r3 == 0) goto L_0x02c8\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r5 = r1.mode\n r6 = 4\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02af\n r11 = r16\n L_0x02af:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n r17.startObject()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x02c8:\n return r2\n L_0x02c9:\n r5 = 1\n if (r2 == r5) goto L_0x02f9\n r6 = 4\n if (r2 == r6) goto L_0x02fa\n if (r2 == r15) goto L_0x02f0\n if (r2 == r12) goto L_0x02de\n if (r2 == r13) goto L_0x02fa\n if (r2 != r8) goto L_0x02d8\n goto L_0x02fa\n L_0x02d8:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x02de:\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02e7\n if (r9 != 0) goto L_0x02e6\n goto L_0x02e7\n L_0x02e6:\n return r6\n L_0x02e7:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r12, r3, r4)\n return r2\n L_0x02f0:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 == 0) goto L_0x02f8\n r17.startArray()\n L_0x02f8:\n return r2\n L_0x02f9:\n r6 = 4\n L_0x02fa:\n if (r7 == 0) goto L_0x0304\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 == 0) goto L_0x0302\n goto L_0x0304\n L_0x0302:\n r5 = 0\n goto L_0x030c\n L_0x0304:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r14, r5, r5)\n L_0x030c:\n r0 = 1\n if (r2 == r0) goto L_0x031e\n if (r2 == r6) goto L_0x031a\n if (r2 == r13) goto L_0x031e\n if (r2 == r8) goto L_0x0316\n goto L_0x0325\n L_0x0316:\n r1.handleStateTransition(r10, r8, r5, r4)\n goto L_0x0325\n L_0x031a:\n r1.handleStateTransition(r10, r6, r3, r5)\n goto L_0x0325\n L_0x031e:\n int r0 = r1.handleStateTransition(r10, r8, r5, r5)\n r1.handleStateTransition(r0, r2, r5, r5)\n L_0x0325:\n return r2\n L_0x0326:\n r6 = 4\n r4 = 1\n if (r2 == r4) goto L_0x0341\n if (r2 == r6) goto L_0x0338\n if (r2 != r13) goto L_0x0332\n r17.nextElement()\n return r2\n L_0x0332:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0338:\n r4 = 0\n int r0 = r1.handleStateTransition(r0, r13, r4, r4)\n r1.handleStateTransition(r0, r6, r3, r4)\n return r2\n L_0x0341:\n int r0 = r1.mode\n r3 = 1\n r0 = r0 & r3\n if (r0 == 0) goto L_0x034a\n r0 = 2\n if (r5 <= r0) goto L_0x0352\n L_0x034a:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 != 0) goto L_0x0352\n r17.endObject()\n L_0x0352:\n return r2\n L_0x0353:\n r6 = 4\n if (r2 != r6) goto L_0x035b\n r0 = 0\n r1.handleStateTransition(r10, r6, r3, r0) // Catch:{ Throwable -> 0x0361 }\n return r2\n L_0x035b:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0361:\n r0 = move-exception\n r2 = r0\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.thoughtworks.xstream.io.json.AbstractJsonWriter.handleStateTransition(int, int, java.lang.String, java.lang.String):int\");\n }", "public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }", "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.location.GpsClock.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.1.newArray(int):java.lang.Object[]\");\n }", "void m5768b() throws C0841b;", "public final synchronized void b(android.content.Context r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x007b }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x007b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x007b }\n r4 = 0\n r5 = 16791(0x4197, float:2.3529E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x007b }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r6[r9] = r2 // Catch:{ all -> 0x007b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x007b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x007b }\n r1[r9] = r11 // Catch:{ all -> 0x007b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x007b }\n r4 = 0\n r5 = 16791(0x4197, float:2.3529E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x007b }\n java.lang.Class<android.content.Context> r0 = android.content.Context.class\n r6[r9] = r0 // Catch:{ all -> 0x007b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x007b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x007b }\n monitor-exit(r10)\n return\n L_0x0032:\n java.lang.String r1 = \"window\"\n java.lang.Object r0 = r11.getSystemService(r1) // Catch:{ all -> 0x007b }\n android.view.WindowManager r0 = (android.view.WindowManager) r0 // Catch:{ all -> 0x007b }\n android.view.Display r0 = r0.getDefaultDisplay() // Catch:{ all -> 0x007b }\n int r0 = r0.getRotation() // Catch:{ all -> 0x007b }\n switch(r0) {\n case 0: goto L_0x004e;\n case 1: goto L_0x004c;\n case 2: goto L_0x0049;\n case 3: goto L_0x0046;\n default: goto L_0x0045;\n } // Catch:{ all -> 0x007b }\n L_0x0045:\n goto L_0x004e\n L_0x0046:\n r9 = 270(0x10e, float:3.78E-43)\n goto L_0x004e\n L_0x0049:\n r9 = 180(0xb4, float:2.52E-43)\n goto L_0x004e\n L_0x004c:\n r9 = 90\n L_0x004e:\n java.lang.Object r1 = r10.s // Catch:{ all -> 0x007b }\n monitor-enter(r1) // Catch:{ all -> 0x007b }\n com.ss.android.medialib.camera.IESCameraInterface r0 = r10.f29527c // Catch:{ all -> 0x0078 }\n int r0 = r0.b((int) r9) // Catch:{ all -> 0x0078 }\n monitor-exit(r1) // Catch:{ all -> 0x0078 }\n r10.h = r0 // Catch:{ all -> 0x007b }\n com.ss.android.medialib.presenter.b r1 = r10.f29528d // Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0076\n java.lang.String r1 = \"IESCameraManager\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x007b }\n java.lang.String r3 = \"摄像头偏转角度: \"\n r2.<init>(r3) // Catch:{ all -> 0x007b }\n r2.append(r0) // Catch:{ all -> 0x007b }\n java.lang.String r2 = r2.toString() // Catch:{ all -> 0x007b }\n com.ss.android.vesdk.y.a(r1, r2) // Catch:{ all -> 0x007b }\n com.ss.android.medialib.presenter.b r1 = r10.f29528d // Catch:{ all -> 0x007b }\n r1.b(r0) // Catch:{ all -> 0x007b }\n L_0x0076:\n monitor-exit(r10)\n return\n L_0x0078:\n r0 = move-exception\n monitor-exit(r1) // Catch:{ all -> 0x0078 }\n throw r0 // Catch:{ all -> 0x007b }\n L_0x007b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(android.content.Context):void\");\n }", "AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "static synchronized void a(android.content.Context r18) {\n /*\n java.lang.Class<com.ss.android.common.applog.n> r1 = com.ss.android.common.applog.n.class\n monitor-enter(r1)\n r2 = 1\n java.lang.Object[] r3 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r10 = 0\n r3[r10] = r18 // Catch:{ all -> 0x0085 }\n r4 = 0\n com.meituan.robust.ChangeQuickRedirect r5 = f28180a // Catch:{ all -> 0x0085 }\n r6 = 1\n r7 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r8 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r9 = android.content.Context.class\n r8[r10] = r9 // Catch:{ all -> 0x0085 }\n java.lang.Class r9 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9) // Catch:{ all -> 0x0085 }\n if (r3 == 0) goto L_0x0036\n java.lang.Object[] r11 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r11[r10] = r18 // Catch:{ all -> 0x0085 }\n r12 = 0\n com.meituan.robust.ChangeQuickRedirect r13 = f28180a // Catch:{ all -> 0x0085 }\n r14 = 1\n r15 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r0[r10] = r2 // Catch:{ all -> 0x0085 }\n java.lang.Class r17 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n r16 = r0\n com.meituan.robust.PatchProxy.accessDispatch(r11, r12, r13, r14, r15, r16, r17) // Catch:{ all -> 0x0085 }\n monitor-exit(r1)\n return\n L_0x0036:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r3 >= 0) goto L_0x003d\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x003d:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n r4 = 500(0x1f4, float:7.0E-43)\n if (r3 >= r4) goto L_0x0045\n monitor-exit(r1)\n return\n L_0x0045:\n java.util.LinkedList<java.io.File> r3 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r3 != 0) goto L_0x004c\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x004c:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r0 != 0) goto L_0x0052\n monitor-exit(r1)\n return\n L_0x0052:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 <= r4) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n int r0 = r0.size() // Catch:{ Throwable -> 0x0083 }\n if (r0 <= 0) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n java.lang.Object r0 = r0.removeFirst() // Catch:{ Throwable -> 0x0083 }\n java.io.File r0 = (java.io.File) r0 // Catch:{ Throwable -> 0x0083 }\n r0.delete() // Catch:{ Throwable -> 0x0083 }\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n int r0 = r0 - r2\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n goto L_0x0052\n L_0x006f:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 >= 0) goto L_0x0076\n r0 = -1\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0076:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n boolean r0 = r0.isEmpty() // Catch:{ Throwable -> 0x0083 }\n if (r0 == 0) goto L_0x0081\n r0 = 0\n f28182c = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0081:\n monitor-exit(r1)\n return\n L_0x0083:\n monitor-exit(r1)\n return\n L_0x0085:\n r0 = move-exception\n monitor-exit(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.common.applog.n.a(android.content.Context):void\");\n }", "private void b(int r14) {\n /*\n r13 = this;\n java.lang.Integer r0 = r13.w\n if (r0 != 0) goto L_0x000b\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14)\n r13.w = r14\n goto L_0x005b\n L_0x000b:\n java.lang.Integer r0 = r13.w\n int r0 = r0.intValue()\n if (r0 == r14) goto L_0x005b\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r14 = a(r14)\n java.lang.String r14 = java.lang.String.valueOf(r14)\n java.lang.Integer r1 = r13.w\n int r1 = r1.intValue()\n java.lang.String r1 = a(r1)\n java.lang.String r1 = java.lang.String.valueOf(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n java.lang.String r3 = java.lang.String.valueOf(r14)\n int r3 = r3.length()\n int r3 = r3 + 51\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r3 = r3 + r4\n r2.<init>(r3)\n java.lang.String r3 = \"Cannot use sign-in mode: \"\n r2.append(r3)\n r2.append(r14)\n java.lang.String r14 = \". Mode was already set to \"\n r2.append(r14)\n r2.append(r1)\n java.lang.String r14 = r2.toString()\n r0.<init>(r14)\n throw r0\n L_0x005b:\n com.google.android.gms.internal.zzqy r14 = r13.l\n if (r14 == 0) goto L_0x0060\n return\n L_0x0060:\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r14 = r13.c\n java.util.Collection r14 = r14.values()\n java.util.Iterator r14 = r14.iterator()\n r0 = 0\n r1 = 0\n L_0x006c:\n boolean r2 = r14.hasNext()\n if (r2 == 0) goto L_0x0088\n java.lang.Object r2 = r14.next()\n com.google.android.gms.common.api.Api$zze r2 = (com.google.android.gms.common.api.Api.zze) r2\n boolean r3 = r2.zzahd()\n r4 = 1\n if (r3 == 0) goto L_0x0080\n r0 = 1\n L_0x0080:\n boolean r2 = r2.zzahs()\n if (r2 == 0) goto L_0x006c\n r1 = 1\n goto L_0x006c\n L_0x0088:\n java.lang.Integer r14 = r13.w\n int r14 = r14.intValue()\n switch(r14) {\n case 1: goto L_0x00ae;\n case 2: goto L_0x0092;\n case 3: goto L_0x00c2;\n default: goto L_0x0091;\n }\n L_0x0091:\n goto L_0x00c2\n L_0x0092:\n if (r0 == 0) goto L_0x00c2\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r3 = r13\n com.google.android.gms.internal.zzqh r14 = com.google.android.gms.internal.zzqh.a(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n L_0x00ab:\n r13.l = r14\n return\n L_0x00ae:\n if (r0 != 0) goto L_0x00b8\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"SIGN_IN_MODE_REQUIRED cannot be used on a GoogleApiClient that does not contain any authenticated APIs. Use connect() instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00b8:\n if (r1 == 0) goto L_0x00c2\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"Cannot use SIGN_IN_MODE_REQUIRED with GOOGLE_SIGN_IN_API. Use connect(SIGN_IN_MODE_OPTIONAL) instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00c2:\n com.google.android.gms.internal.zzqr r14 = new com.google.android.gms.internal.zzqr\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r1 = r14\n r3 = r13\n r12 = r13\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)\n goto L_0x00ab\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzqp.b(int):void\");\n }", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "void m1864a() {\r\n }", "@androidx.annotation.Nullable\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static com.inmobi.media.C2336dl m4847a(@androidx.annotation.NonNull java.lang.String r3, @androidx.annotation.Nullable com.inmobi.media.C2600j r4, @androidx.annotation.Nullable java.lang.String r5, boolean r6) {\n /*\n com.iab.omid.library.inmobi.adsession.AdSessionContext r4 = m4846a(r4, r5)\n int r5 = r3.hashCode()\n r0 = -284840886(0xffffffffef05ac4a, float:-4.136979E28)\n r1 = 3\n r2 = 2\n if (r5 == r0) goto L_0x002e\n r0 = 112202875(0x6b0147b, float:6.6233935E-35)\n if (r5 == r0) goto L_0x0024\n r0 = 1425678798(0x54fa21ce, float:8.5944718E12)\n if (r5 == r0) goto L_0x001a\n goto L_0x0038\n L_0x001a:\n java.lang.String r5 = \"nonvideo\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 2\n goto L_0x0039\n L_0x0024:\n java.lang.String r5 = \"video\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 3\n goto L_0x0039\n L_0x002e:\n java.lang.String r5 = \"unknown\"\n boolean r3 = r3.equals(r5)\n if (r3 == 0) goto L_0x0038\n r3 = 1\n goto L_0x0039\n L_0x0038:\n r3 = -1\n L_0x0039:\n if (r3 == r2) goto L_0x0047\n if (r3 == r1) goto L_0x003f\n r3 = 0\n goto L_0x004e\n L_0x003f:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_video_ad\"\n r3.<init>(r5, r4, r6)\n goto L_0x004e\n L_0x0047:\n com.inmobi.media.dm r3 = new com.inmobi.media.dm\n java.lang.String r5 = \"html_display_ad\"\n r3.<init>(r5, r4)\n L_0x004e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.inmobi.media.C2341dp.m4847a(java.lang.String, com.inmobi.media.j, java.lang.String, boolean):com.inmobi.media.dl\");\n }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "public void writeToParcel(Parcel parcel, int flags) {\n/* 1845 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void handleMessage(android.os.Message r5) {\n /*\n r4 = this;\n r0 = r5.what;\t Catch:{ Exception -> 0x001d }\n switch(r0) {\n case 0: goto L_0x0009;\n case 1: goto L_0x0022;\n case 2: goto L_0x0033;\n default: goto L_0x0005;\n };\n L_0x0005:\n super.handleMessage(r5);\n return;\n L_0x0009:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r1 = 0;\n r1 = r0[r1];\t Catch:{ Exception -> 0x001d }\n r1 = (android.content.Context) r1;\t Catch:{ Exception -> 0x001d }\n r2 = 1;\n r0 = r0[r2];\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.String) r0;\t Catch:{ Exception -> 0x001d }\n com.tencent.smtt.utils.s.b(r1, r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n L_0x001d:\n r0 = move-exception;\n r0.printStackTrace();\n goto L_0x0005;\n L_0x0022:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r1 = r4.a;\t Catch:{ Exception -> 0x001d }\n r2 = 0;\n r0 = r0[r2];\t Catch:{ Exception -> 0x001d }\n r0 = (android.content.Context) r0;\t Catch:{ Exception -> 0x001d }\n r1.c(r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n L_0x0033:\n r0 = r5.obj;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.Object[]) r0;\t Catch:{ Exception -> 0x001d }\n r2 = r4.a;\t Catch:{ Exception -> 0x001d }\n r1 = 0;\n r1 = r0[r1];\t Catch:{ Exception -> 0x001d }\n r1 = (android.content.Context) r1;\t Catch:{ Exception -> 0x001d }\n r3 = 1;\n r0 = r0[r3];\t Catch:{ Exception -> 0x001d }\n r0 = (java.lang.String) r0;\t Catch:{ Exception -> 0x001d }\n r2.e(r1, r0);\t Catch:{ Exception -> 0x001d }\n goto L_0x0005;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.smtt.utils.t.handleMessage(android.os.Message):void\");\n }", "private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }", "@Test(timeout = 4000)\n public void test111() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n Type type0 = Type.INT_TYPE;\n Type type1 = Type.VOID_TYPE;\n Type type2 = Type.BOOLEAN_TYPE;\n Type type3 = Type.FLOAT_TYPE;\n Type type4 = Type.SHORT_TYPE;\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type[] typeArray0 = new Type[2];\n typeArray0[0] = type4;\n typeArray0[1] = type0;\n frame0.initInputFrame(classWriter1, 10, typeArray0, 1431);\n classWriter1.newLong((-1L));\n ClassWriter classWriter2 = new ClassWriter(4);\n Edge edge0 = new Edge();\n Label label0 = edge0.successor;\n // Undeclared exception!\n try { \n frame0.merge(classWriter0, frame0, 5);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public static void m9105b(com.facebook.api.feedcache.db.FeedDbMutationService r5) {\n /*\n L_0x0000:\n r1 = r5.f5242q;\n monitor-enter(r1);\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.isEmpty();\t Catch:{ all -> 0x004d }\n if (r0 == 0) goto L_0x0010;\n L_0x000b:\n r0 = 0;\n r5.f5240o = r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n return;\n L_0x0010:\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.removeFirst();\t Catch:{ all -> 0x004d }\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbRequest) r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n r1 = \"FeedDbMutationService(%s)\";\n r2 = r0.getClass();\n r2 = r2.getSimpleName();\n r3 = -341619410; // 0xffffffffeba34d2e float:-3.9483876E26 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1, r2, r3);\n r1 = -243934633; // 0xfffffffff175da57 float:-1.21740455E30 double:NaN;\n r1 = com.facebook.tools.dextr.runtime.detour.LoomLoggerDetour.a(r1);\n r2 = \"FeedDbMutationService\";\n r3 = r0.getClass();\n r3 = r3.getSimpleName();\n com.facebook.loom.logger.api.LoomLogger.a(r1, r2, r3);\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest;\t Catch:{ all -> 0x0134 }\n if (r1 == 0) goto L_0x0050;\n L_0x0041:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest) r0;\t Catch:{ all -> 0x0134 }\n r5.m9111a(r0);\t Catch:{ all -> 0x0134 }\n r0 = 1514815075; // 0x5a4a3e63 float:1.42316351E16 double:7.484180884E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x004d:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n L_0x0050:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0060;\n L_0x0054:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest) r0;\t Catch:{ }\n r5.m9100a(r0);\t Catch:{ }\n r0 = 32841027; // 0x1f51d43 float:9.0040775E-38 double:1.6225623E-316;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0060:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0070;\n L_0x0064:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest) r0;\t Catch:{ }\n r5.m9103a(r0);\t Catch:{ }\n r0 = -150761083; // 0xfffffffff7039185 float:-2.668525E33 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0070:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0080;\n L_0x0074:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest) r0;\t Catch:{ }\n r5.m9097a(r0);\t Catch:{ }\n r0 = -1582673432; // 0xffffffffa1aa51e8 float:-1.1541328E-18 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0080:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0091;\n L_0x0084:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest) r0;\t Catch:{ }\n r5.m9101a(r0);\t Catch:{ }\n r0 = -1051379810; // 0xffffffffc155379e float:-13.326078 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0091:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00a2;\n L_0x0095:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest) r0;\t Catch:{ }\n r5.m9094a(r0);\t Catch:{ }\n r0 = -521547659; // 0xffffffffe0e9d075 float:-1.3478476E20 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00a2:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00b3;\n L_0x00a6:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest) r0;\t Catch:{ }\n r5.m9093a(r0);\t Catch:{ }\n r0 = -495910365; // 0xffffffffe2710223 float:-1.1114548E21 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00b3:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00c4;\n L_0x00b7:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest) r0;\t Catch:{ }\n r5.m9102a(r0);\t Catch:{ }\n r0 = 1956524893; // 0x749e335d float:1.0027157E32 double:9.66651735E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00c4:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00d5;\n L_0x00c8:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest) r0;\t Catch:{ }\n r5.m9095a(r0);\t Catch:{ }\n r0 = 1671584920; // 0x63a25c98 float:5.990089E21 double:8.25872683E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00d5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00e6;\n L_0x00d9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest) r0;\t Catch:{ }\n r5.m9096a(r0);\t Catch:{ }\n r0 = -696100424; // 0xffffffffd68259b8 float:-7.1660925E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00e6:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbVpvOmnistoreSyncRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00f5;\n L_0x00ea:\n r5.m9106c();\t Catch:{ }\n r0 = -1045059660; // 0xffffffffc1b5a7b4 float:-22.706886 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00f5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0106;\n L_0x00f9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest) r0;\t Catch:{ }\n r5.m9098a(r0);\t Catch:{ }\n r0 = 759596755; // 0x2d4686d3 float:1.1284934E-11 double:3.752906613E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0106:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0117;\n L_0x010a:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest) r0;\t Catch:{ }\n r5.m9099a(r0);\t Catch:{ }\n r0 = -1270711073; // 0xffffffffb4427cdf float:-1.8113086E-7 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0117:\n r1 = \"FeedDbMutationService\";\n r2 = \"Mutation request is not supported: %s\";\n r3 = 1;\n r3 = new java.lang.Object[r3];\t Catch:{ }\n r4 = 0;\n r0 = r0.getClass();\t Catch:{ }\n r0 = r0.getSimpleName();\t Catch:{ }\n r3[r4] = r0;\t Catch:{ }\n com.facebook.debug.log.BLog.c(r1, r2, r3);\t Catch:{ }\n r0 = 492192568; // 0x1d564338 float:2.8357415E-21 double:2.43175439E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0134:\n r0 = move-exception;\n r1 = -693974918; // 0xffffffffd6a2c87a float:-8.9490962E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.api.feedcache.db.FeedDbMutationService.b(com.facebook.api.feedcache.db.FeedDbMutationService):void\");\n }", "private static void a(com.bytedance.crash.nativecrash.c r10) {\n /*\n java.lang.String r0 = \".info\"\n java.io.File r10 = r10.a((java.lang.String) r0)\n boolean r0 = r10.isFile()\n if (r0 == 0) goto L_0x009b\n java.util.Properties r0 = new java.util.Properties\n r0.<init>()\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0094 }\n r2.<init>(r10) // Catch:{ Throwable -> 0x0094 }\n r0.load(r2) // Catch:{ Throwable -> 0x0093 }\n r2.close() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = \"alogJsonGenerated\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 != 0) goto L_0x009b\n java.lang.String r2 = \"aloglogdir\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 == 0) goto L_0x009b\n java.lang.String r3 = \"crash_time\"\n java.lang.String r3 = r0.getProperty(r3)\n r4 = 0\n if (r3 == 0) goto L_0x0042\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ NumberFormatException -> 0x0041 }\n long r6 = r3.longValue() // Catch:{ NumberFormatException -> 0x0041 }\n r4 = r6\n goto L_0x0042\n L_0x0041:\n L_0x0042:\n java.lang.String r3 = \"process_name\"\n java.lang.String r3 = r0.getProperty(r3)\n if (r3 != 0) goto L_0x004c\n java.lang.String r3 = \"\"\n L_0x004c:\n com.bytedance.crash.a.e r6 = new com.bytedance.crash.a.e\n r6.<init>(r3)\n java.util.List r2 = r6.a(r2, r4)\n com.bytedance.crash.e.d r2 = com.bytedance.crash.a.a.a((java.util.List<java.lang.String>) r2)\n boolean r3 = com.bytedance.crash.a.a.a((com.bytedance.crash.e.d) r2)\n if (r3 != 0) goto L_0x0060\n return\n L_0x0060:\n android.content.Context r3 = com.bytedance.crash.j.d()\n java.io.File r4 = com.bytedance.crash.i.h.c(r3)\n java.lang.String r5 = com.bytedance.crash.i.h.a()\n java.lang.String r6 = r2.f19427e\n java.lang.String r7 = r2.f19428f\n java.lang.String r8 = r2.g\n java.util.List<java.lang.String> r9 = r2.h\n com.bytedance.crash.i.d.a((java.io.File) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.util.List<java.lang.String>) r9)\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x008d }\n r2.<init>(r10) // Catch:{ Throwable -> 0x008d }\n java.lang.String r10 = \"alogJsonGenerated\"\n java.lang.String r1 = \"true\"\n r0.setProperty(r10, r1) // Catch:{ Throwable -> 0x008c }\n java.lang.String r10 = \"\"\n r0.store(r2, r10) // Catch:{ Throwable -> 0x008c }\n r2.close() // Catch:{ Throwable -> 0x008c }\n return\n L_0x008c:\n r1 = r2\n L_0x008d:\n if (r1 == 0) goto L_0x009b\n r1.close() // Catch:{ Throwable -> 0x009b }\n return\n L_0x0093:\n r1 = r2\n L_0x0094:\n if (r1 == 0) goto L_0x009a\n r1.close() // Catch:{ Throwable -> 0x009a }\n return\n L_0x009a:\n return\n L_0x009b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c):void\");\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final com.google.android.gms.internal.ads.zzafx mo4170d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19705f;\n monitor-enter(r0);\n r1 = r2.f19706g;\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n r1 = r1.m26175a();\t Catch:{ IllegalStateException -> 0x000d, IllegalStateException -> 0x000d }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x000b:\n r1 = move-exception;\t Catch:{ all -> 0x000b }\n goto L_0x0010;\t Catch:{ all -> 0x000b }\n L_0x000d:\n r1 = 0;\t Catch:{ all -> 0x000b }\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n return r1;\t Catch:{ all -> 0x000b }\n L_0x0010:\n monitor-exit(r0);\t Catch:{ all -> 0x000b }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzafn.d():com.google.android.gms.internal.ads.zzafx\");\n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(16777267);\n Class<Object> class0 = Object.class;\n Type.getType(class0);\n Type type0 = Type.BYTE_TYPE;\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"xzO!>TX45 #n,Nt&W\";\n classWriter0.visit(10, 3042, \"xzO!>TX45 #n,Nt&W\", \"xzO!>TX45 #n,Nt&W\", \"\", stringArray0);\n Item item0 = classWriter0.newLong(10);\n Item item1 = new Item(158, item0);\n Type type1 = Type.SHORT_TYPE;\n Class<String> class1 = String.class;\n Type type2 = Type.getType(class1);\n Type type3 = Type.BYTE_TYPE;\n Type[] typeArray0 = new Type[5];\n typeArray0[0] = type3;\n typeArray0[1] = type1;\n typeArray0[4] = type1;\n typeArray0[4] = type2;\n // Undeclared exception!\n try { \n frame0.initInputFrame(classWriter0, 196, typeArray0, 1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0097\n java.lang.String r1 = com.tencent.wxop.stat.d.h // Catch:{ all -> 0x0099 }\n r2 = 0\n long r4 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r1, (long) r2) // Catch:{ all -> 0x0099 }\n java.lang.String r1 = \"2.0.4\"\n long r6 = com.tencent.wxop.stat.a.n.b((java.lang.String) r1) // Catch:{ all -> 0x0099 }\n r1 = 1\n r8 = 0\n int r9 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))\n if (r9 > 0) goto L_0x003b\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r10 = \"MTA is disable for current version:\"\n r9.<init>(r10) // Catch:{ all -> 0x0099 }\n r9.append(r6) // Catch:{ all -> 0x0099 }\n java.lang.String r6 = \",wakeup version:\"\n r9.append(r6) // Catch:{ all -> 0x0099 }\n r9.append(r4) // Catch:{ all -> 0x0099 }\n java.lang.String r4 = r9.toString() // Catch:{ all -> 0x0099 }\n r1.d(r4) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x003b:\n java.lang.String r4 = com.tencent.wxop.stat.d.i // Catch:{ all -> 0x0099 }\n long r2 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r4, (long) r2) // Catch:{ all -> 0x0099 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 <= 0) goto L_0x0069\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \"MTA is disable for current time:\"\n r4.<init>(r5) // Catch:{ all -> 0x0099 }\n long r5 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n r4.append(r5) // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \",wakeup time:\"\n r4.append(r5) // Catch:{ all -> 0x0099 }\n r4.append(r2) // Catch:{ all -> 0x0099 }\n java.lang.String r2 = r4.toString() // Catch:{ all -> 0x0099 }\n r1.d(r2) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x0069:\n com.tencent.wxop.stat.d.a((boolean) r1) // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0070\n monitor-exit(r0)\n return\n L_0x0070:\n android.content.Context r11 = r11.getApplicationContext() // Catch:{ all -> 0x0099 }\n t = r11 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = new com.tencent.wxop.stat.a.f // Catch:{ all -> 0x0099 }\n r1.<init>() // Catch:{ all -> 0x0099 }\n g = r1 // Catch:{ all -> 0x0099 }\n java.lang.String r1 = com.tencent.wxop.stat.a.n.a((int) r8) // Catch:{ all -> 0x0099 }\n l = r1 // Catch:{ all -> 0x0099 }\n long r1 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n long r3 = com.tencent.wxop.stat.d.p // Catch:{ all -> 0x0099 }\n r5 = 0\n long r1 = r1 + r3\n f79893b = r1 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.am r2 = new com.tencent.wxop.stat.am // Catch:{ all -> 0x0099 }\n r2.<init>(r11) // Catch:{ all -> 0x0099 }\n r1.a(r2) // Catch:{ all -> 0x0099 }\n L_0x0097:\n monitor-exit(r0)\n return\n L_0x0099:\n r11 = move-exception\n monitor-exit(r0)\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wxop.stat.g.e(android.content.Context):void\");\n }", "public static void m14696c(com.facebook.appevents.AppEventsLogger.FlushReason r4) {\n /*\n r1 = f14526i;\n monitor-enter(r1);\n r0 = f14524g;\t Catch:{ all -> 0x0048 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r1);\t Catch:{ all -> 0x0048 }\n L_0x0008:\n return;\n L_0x0009:\n r0 = 1;\n f14524g = r0;\t Catch:{ all -> 0x0048 }\n r2 = new java.util.HashSet;\t Catch:{ all -> 0x0048 }\n r0 = f14521d;\t Catch:{ all -> 0x0048 }\n r0 = r0.keySet();\t Catch:{ all -> 0x0048 }\n r2.<init>(r0);\t Catch:{ all -> 0x0048 }\n monitor-exit(r1);\t Catch:{ all -> 0x0048 }\n m14700j();\n r0 = 0;\n r0 = m14688a(r4, r2);\t Catch:{ Exception -> 0x004b }\n L_0x0020:\n r1 = f14526i;\n monitor-enter(r1);\n r2 = 0;\n f14524g = r2;\t Catch:{ all -> 0x0054 }\n monitor-exit(r1);\t Catch:{ all -> 0x0054 }\n if (r0 == 0) goto L_0x0008;\n L_0x0029:\n r1 = new android.content.Intent;\n r2 = \"com.facebook.sdk.APP_EVENTS_FLUSHED\";\n r1.<init>(r2);\n r2 = \"com.facebook.sdk.APP_EVENTS_NUM_EVENTS_FLUSHED\";\n r3 = r0.f14508a;\n r1.putExtra(r2, r3);\n r2 = \"com.facebook.sdk.APP_EVENTS_FLUSH_RESULT\";\n r0 = r0.f14509b;\n r1.putExtra(r2, r0);\n r0 = f14525h;\n r0 = android.support.v4.content.LocalBroadcastManager.a(r0);\n r0.a(r1);\n goto L_0x0008;\n L_0x0048:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n L_0x004b:\n r1 = move-exception;\n r2 = f14520a;\n r3 = \"Caught unexpected exception while flushing: \";\n com.facebook.internal.Utility.m25340a(r2, r3, r1);\n goto L_0x0020;\n L_0x0054:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.appevents.AppEventsLogger.c(com.facebook.appevents.AppEventsLogger$FlushReason):void\");\n }", "public final /* synthetic */ java.lang.Object mo13031b(java.lang.String r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r13 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0967d\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$d r0 = (p008c.p009a.p024e.p026b.C0963b.C0967d) r0\n int r1 = r0.f1060b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1060b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$d r0 = new c.a.e.b.b$d\n r0.<init>(r13, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1059a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1060b\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0059\n if (r2 == r4) goto L_0x0049\n if (r2 != r3) goto L_0x0041\n java.lang.Object r14 = r0.f1066h\n org.mobileid.time_key.util.TimeKeyParams r14 = (org.mobileid.time_key.util.TimeKeyParams) r14\n java.lang.Object r14 = r0.f1065g\n org.mobileid.requester.web_service.Response r14 = (org.mobileid.requester.web_service.Response) r14\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1063e\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1062d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00c0\n L_0x0041:\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r15 = \"call to 'resume' before 'invoke' with coroutine\"\n r14.<init>(r15)\n throw r14\n L_0x0049:\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r2 = r0.f1063e\n java.lang.String r2 = (java.lang.String) r2\n java.lang.Object r5 = r0.f1062d\n c.a.e.b.b r5 = (p008c.p009a.p024e.p026b.C0963b) r5\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x0085\n L_0x0059:\n kotlin.ResultKt.throwOnFailure(r15)\n c.a.e.c.a r15 = r13.f1032c\n java.lang.String r15 = r15.mo13035a()\n if (r15 == 0) goto L_0x00c3\n org.mobileid.time_key.web_service.TimeKeyWebService r2 = r13.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r11 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n r8 = 0\n r9 = 4\n r10 = 0\n r5 = r11\n r6 = r14\n r7 = r15\n r5.<init>(r6, r7, r8, r9, r10)\n r0.f1062d = r13\n r0.f1063e = r14\n r0.f1064f = r15\n r0.f1060b = r4\n java.lang.Object r2 = r2.deactivateKey(r11, r0)\n if (r2 != r1) goto L_0x0080\n return r1\n L_0x0080:\n r5 = r13\n r12 = r2\n r2 = r14\n r14 = r15\n r15 = r12\n L_0x0085:\n org.mobileid.requester.web_service.Response r15 = (org.mobileid.requester.web_service.Response) r15\n java.lang.Object r6 = r15.getResult()\n java.lang.Boolean r6 = (java.lang.Boolean) r6\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n r4 = r4 ^ r6\n if (r4 == 0) goto L_0x009b\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x009b:\n org.mobileid.time_key.util.TimeKeyParams$a r4 = org.mobileid.time_key.util.TimeKeyParams.Companion\n android.content.Context r6 = r5.f1030a\n org.mobileid.time_key.util.TimeKeyParams r4 = r4.mo60138a(r6)\n kotlinx.coroutines.MainCoroutineDispatcher r6 = kotlinx.coroutines.Dispatchers.getMain()\n c.a.e.b.b$e r7 = new c.a.e.b.b$e\n r8 = 0\n r7.<init>(r5, r4, r8)\n r0.f1062d = r5\n r0.f1063e = r2\n r0.f1064f = r14\n r0.f1065g = r15\n r0.f1066h = r4\n r0.f1060b = r3\n java.lang.Object r14 = kotlinx.coroutines.BuildersKt.withContext(r6, r7, r0)\n if (r14 != r1) goto L_0x00c0\n return r1\n L_0x00c0:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x00c3:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13031b(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public final android.os.Bundle a(java.lang.String r10, android.os.Bundle r11, @android.support.annotation.Nullable java.util.List<java.lang.String> r12, boolean r13, boolean r14) {\n /*\n r9 = this;\n r0 = 0;\n if (r11 == 0) goto L_0x0174;\n L_0x0003:\n r7 = new android.os.Bundle;\n r7.<init>(r11);\n r0 = 0;\n r1 = r11.keySet();\n r8 = r1.iterator();\n r6 = r0;\n L_0x0012:\n r0 = r8.hasNext();\n if (r0 == 0) goto L_0x0173;\n L_0x0018:\n r2 = r8.next();\n r2 = (java.lang.String) r2;\n r0 = 0;\n if (r12 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r12.contains(r2);\n if (r1 != 0) goto L_0x003d;\n L_0x0027:\n if (r13 == 0) goto L_0x0032;\n L_0x0029:\n r0 = \"event param\";\n r0 = r9.a(r0, r2);\n if (r0 != 0) goto L_0x005b;\n L_0x0031:\n r0 = 3;\n L_0x0032:\n if (r0 != 0) goto L_0x003d;\n L_0x0034:\n r0 = \"event param\";\n r0 = r9.c(r0, r2);\n if (r0 != 0) goto L_0x0075;\n L_0x003c:\n r0 = 3;\n L_0x003d:\n if (r0 == 0) goto L_0x008f;\n L_0x003f:\n r1 = a(r7, r0);\n if (r1 == 0) goto L_0x0057;\n L_0x0045:\n r1 = 40;\n r3 = 1;\n r1 = a(r2, r1, r3);\n r3 = \"_ev\";\n r7.putString(r3, r1);\n r1 = 3;\n if (r0 != r1) goto L_0x0057;\n L_0x0054:\n a(r7, r2);\n L_0x0057:\n r7.remove(r2);\n goto L_0x0012;\n L_0x005b:\n r0 = \"event param\";\n r1 = 0;\n r0 = r9.a(r0, r1, r2);\n if (r0 != 0) goto L_0x0067;\n L_0x0064:\n r0 = 14;\n goto L_0x0032;\n L_0x0067:\n r0 = \"event param\";\n r1 = 40;\n r0 = r9.a(r0, r1, r2);\n if (r0 != 0) goto L_0x0073;\n L_0x0071:\n r0 = 3;\n goto L_0x0032;\n L_0x0073:\n r0 = 0;\n goto L_0x0032;\n L_0x0075:\n r0 = \"event param\";\n r1 = 0;\n r0 = r9.a(r0, r1, r2);\n if (r0 != 0) goto L_0x0081;\n L_0x007e:\n r0 = 14;\n goto L_0x003d;\n L_0x0081:\n r0 = \"event param\";\n r1 = 40;\n r0 = r9.a(r0, r1, r2);\n if (r0 != 0) goto L_0x008d;\n L_0x008b:\n r0 = 3;\n goto L_0x003d;\n L_0x008d:\n r0 = 0;\n goto L_0x003d;\n L_0x008f:\n r4 = r11.get(r2);\n r9.c();\n if (r14 == 0) goto L_0x00f4;\n L_0x0098:\n r1 = \"param\";\n r0 = r4 instanceof android.os.Parcelable[];\n if (r0 == 0) goto L_0x00e4;\n L_0x009e:\n r0 = r4;\n r0 = (android.os.Parcelable[]) r0;\n r0 = r0.length;\n L_0x00a2:\n r3 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n if (r0 <= r3) goto L_0x00f2;\n L_0x00a6:\n r3 = r9.zzge();\n r3 = r3.u();\n r5 = \"Parameter array is too long; discarded. Value kind, name, array length\";\n r0 = java.lang.Integer.valueOf(r0);\n r3.a(r5, r1, r2, r0);\n r0 = 0;\n L_0x00b8:\n if (r0 != 0) goto L_0x00f4;\n L_0x00ba:\n r0 = 17;\n L_0x00bc:\n if (r0 == 0) goto L_0x012d;\n L_0x00be:\n r1 = \"_ev\";\n r1 = r1.equals(r2);\n if (r1 != 0) goto L_0x012d;\n L_0x00c6:\n r0 = a(r7, r0);\n if (r0 == 0) goto L_0x00df;\n L_0x00cc:\n r0 = 40;\n r1 = 1;\n r0 = a(r2, r0, r1);\n r1 = \"_ev\";\n r7.putString(r1, r0);\n r0 = r11.get(r2);\n a(r7, r0);\n L_0x00df:\n r7.remove(r2);\n goto L_0x0012;\n L_0x00e4:\n r0 = r4 instanceof java.util.ArrayList;\n if (r0 == 0) goto L_0x00f0;\n L_0x00e8:\n r0 = r4;\n r0 = (java.util.ArrayList) r0;\n r0 = r0.size();\n goto L_0x00a2;\n L_0x00f0:\n r0 = 1;\n goto L_0x00b8;\n L_0x00f2:\n r0 = 1;\n goto L_0x00b8;\n L_0x00f4:\n r0 = r9.o();\n r1 = r9.f();\n r1 = r1.s();\n r0 = r0.f(r1);\n if (r0 == 0) goto L_0x010c;\n L_0x0106:\n r0 = h(r10);\n if (r0 != 0) goto L_0x0112;\n L_0x010c:\n r0 = h(r2);\n if (r0 == 0) goto L_0x0120;\n L_0x0112:\n r1 = \"param\";\n r3 = 256; // 0x100 float:3.59E-43 double:1.265E-321;\n r0 = r9;\n r5 = r14;\n r0 = r0.a(r1, r2, r3, r4, r5);\n L_0x011c:\n if (r0 == 0) goto L_0x012b;\n L_0x011e:\n r0 = 0;\n goto L_0x00bc;\n L_0x0120:\n r1 = \"param\";\n r3 = 100;\n r0 = r9;\n r5 = r14;\n r0 = r0.a(r1, r2, r3, r4, r5);\n goto L_0x011c;\n L_0x012b:\n r0 = 4;\n goto L_0x00bc;\n L_0x012d:\n r0 = a(r2);\n if (r0 == 0) goto L_0x016f;\n L_0x0133:\n r0 = r6 + 1;\n r1 = 25;\n if (r0 <= r1) goto L_0x0170;\n L_0x0139:\n r1 = 48;\n r3 = new java.lang.StringBuilder;\n r3.<init>(r1);\n r1 = \"Event can't contain more than 25 params\";\n r1 = r3.append(r1);\n r1 = r1.toString();\n r3 = r9.zzge();\n r3 = r3.r();\n r4 = r9.k();\n r4 = r4.a(r10);\n r5 = r9.k();\n r5 = r5.a(r11);\n r3.a(r1, r4, r5);\n r1 = 5;\n a(r7, r1);\n r7.remove(r2);\n r6 = r0;\n goto L_0x0012;\n L_0x016f:\n r0 = r6;\n L_0x0170:\n r6 = r0;\n goto L_0x0012;\n L_0x0173:\n r0 = r7;\n L_0x0174:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.ie.a(java.lang.String, android.os.Bundle, java.util.List, boolean, boolean):android.os.Bundle\");\n }" ]
[ "0.6101716", "0.5965922", "0.5938419", "0.591178", "0.5818039", "0.5733515", "0.57272667", "0.570834", "0.562194", "0.5615949", "0.55838025", "0.55822015", "0.5570542", "0.5569524", "0.55453706", "0.54661286", "0.5423178", "0.54011685", "0.5399989", "0.53927416", "0.5382527", "0.5359198", "0.5351829", "0.5351069", "0.5324407", "0.5297639", "0.52810377", "0.52595866", "0.5252245", "0.52487594", "0.5247233", "0.5224514", "0.5214393", "0.5213234", "0.5212313", "0.51996344", "0.51986814", "0.51935494", "0.5190932", "0.5189373", "0.51746833", "0.51728374", "0.5160431", "0.5157014", "0.5154541", "0.514098", "0.51402575", "0.51385736", "0.51243424", "0.5113037", "0.51120424", "0.510614", "0.50833064", "0.5071189", "0.5064714", "0.50607914", "0.50595284", "0.5053599", "0.50504065", "0.504605", "0.50426656", "0.50384885", "0.5035494", "0.5033209", "0.5029602", "0.5028333", "0.5026612", "0.50224197", "0.5020977", "0.5015834", "0.50147223", "0.50136715", "0.5012615", "0.50117165", "0.50087506", "0.5002704", "0.4993565", "0.49919873", "0.49902138", "0.49771827", "0.49711272", "0.49665126", "0.49604514", "0.495215", "0.49514896", "0.49438956", "0.49432322", "0.49104062", "0.4904138", "0.48976287", "0.48909912", "0.48816046", "0.4880242", "0.48754942", "0.4870685", "0.48706847", "0.48697767", "0.4864364", "0.48639244", "0.4859663", "0.4854223" ]
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:2:0x0005, code lost: if ((r4 instanceof com.facebook.react.bridge.WritableNativeMap) != false) goto L_0x0007;
public void putMap(String str, C23043A0y a0y) { boolean z; if (a0y != null) { z = false; } z = true; AnonymousClass0FY.A03(z, "Illegal type provided"); putNativeMap(str, (WritableNativeMap) a0y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "@java.lang.Deprecated\n /* renamed from: a */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static synchronized void m13804a(android.content.Context r3, com.facebook.C6787r.C6788a r4) {\n /*\n java.lang.Class<com.facebook.r> r0 = com.facebook.C6787r.class\n monitor-enter(r0)\n java.lang.Boolean r1 = f12487s // Catch:{ all -> 0x0088 }\n boolean r1 = r1.booleanValue() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0012\n if (r4 == 0) goto L_0x0010\n r4.mo20141a() // Catch:{ all -> 0x0088 }\n L_0x0010:\n monitor-exit(r0)\n return\n L_0x0012:\n java.lang.String r1 = \"applicationContext\"\n com.facebook.internal.C6697T.m13461a(r3, r1) // Catch:{ all -> 0x0088 }\n r1 = 0\n com.facebook.internal.C6697T.m13460a(r3, r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6697T.m13466b(r3, r1) // Catch:{ all -> 0x0088 }\n android.content.Context r1 = r3.getApplicationContext() // Catch:{ all -> 0x0088 }\n f12481m = r1 // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n m13810b(r1) // Catch:{ all -> 0x0088 }\n java.lang.String r1 = f12472d // Catch:{ all -> 0x0088 }\n boolean r1 = com.facebook.internal.C6694S.m13436b(r1) // Catch:{ all -> 0x0088 }\n if (r1 != 0) goto L_0x0080\n r1 = 1\n java.lang.Boolean r1 = java.lang.Boolean.valueOf(r1) // Catch:{ all -> 0x0088 }\n f12487s = r1 // Catch:{ all -> 0x0088 }\n boolean r1 = m13817g() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0041\n m13812c() // Catch:{ all -> 0x0088 }\n L_0x0041:\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n boolean r1 = r1 instanceof android.app.Application // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n boolean r1 = com.facebook.C6557O.m12974e() // Catch:{ all -> 0x0088 }\n if (r1 == 0) goto L_0x0056\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n android.app.Application r1 = (android.app.Application) r1 // Catch:{ all -> 0x0088 }\n java.lang.String r2 = f12472d // Catch:{ all -> 0x0088 }\n com.facebook.p127a.p130b.C6602h.m13083a(r1, r2) // Catch:{ all -> 0x0088 }\n L_0x0056:\n com.facebook.internal.C6670D.m13313f() // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6678J.m13355d() // Catch:{ all -> 0x0088 }\n android.content.Context r1 = f12481m // Catch:{ all -> 0x0088 }\n com.facebook.internal.C6712c.m13522a(r1) // Catch:{ all -> 0x0088 }\n com.facebook.internal.G r1 = new com.facebook.internal.G // Catch:{ all -> 0x0088 }\n com.facebook.o r2 = new com.facebook.o // Catch:{ all -> 0x0088 }\n r2.<init>() // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n f12480l = r1 // Catch:{ all -> 0x0088 }\n java.util.concurrent.FutureTask r1 = new java.util.concurrent.FutureTask // Catch:{ all -> 0x0088 }\n com.facebook.p r2 = new com.facebook.p // Catch:{ all -> 0x0088 }\n r2.<init>(r4, r3) // Catch:{ all -> 0x0088 }\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n java.util.concurrent.Executor r2 = m13822l() // Catch:{ all -> 0x0088 }\n r2.execute(r1) // Catch:{ all -> 0x0088 }\n monitor-exit(r0)\n return\n L_0x0080:\n com.facebook.FacebookException r1 = new com.facebook.FacebookException // Catch:{ all -> 0x0088 }\n java.lang.String r2 = \"A valid Facebook app id must be set in the AndroidManifest.xml or set by calling FacebookSdk.setApplicationId before initializing the sdk.\"\n r1.<init>(r2) // Catch:{ all -> 0x0088 }\n throw r1 // Catch:{ all -> 0x0088 }\n L_0x0088:\n r3 = move-exception\n monitor-exit(r0)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.C6787r.m13804a(android.content.Context, com.facebook.r$a):void\");\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public final /* synthetic */ java.lang.Object mo13028a(java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>> r11, java.lang.String r12, java.util.List<java.lang.String> r13, boolean r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r10 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0964a\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$a r0 = (p008c.p009a.p024e.p026b.C0963b.C0964a) r0\n int r1 = r0.f1034b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1034b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$a r0 = new c.a.e.b.b$a\n r0.<init>(r10, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1033a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1034b\n r3 = 1\n if (r2 == 0) goto L_0x005c\n if (r2 != r3) goto L_0x0054\n java.lang.Object r11 = r0.f1046n\n org.mobileid.access.key.TimeKey r11 = (org.mobileid.access.key.TimeKey) r11\n java.lang.Object r11 = r0.f1044l\n java.util.Iterator r11 = (java.util.Iterator) r11\n java.lang.Object r12 = r0.f1043k\n java.lang.Iterable r12 = (java.lang.Iterable) r12\n java.lang.Object r13 = r0.f1042j\n java.util.List r13 = (java.util.List) r13\n java.lang.Object r14 = r0.f1041i\n java.util.List r14 = (java.util.List) r14\n java.lang.Object r2 = r0.f1040h\n java.util.Map r2 = (java.util.Map) r2\n boolean r4 = r0.f1047o\n java.lang.Object r5 = r0.f1039g\n java.util.List r5 = (java.util.List) r5\n java.lang.Object r6 = r0.f1038f\n java.lang.String r6 = (java.lang.String) r6\n java.lang.Object r7 = r0.f1037e\n java.util.Map r7 = (java.util.Map) r7\n java.lang.Object r8 = r0.f1036d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00e2\n L_0x0054:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n java.lang.String r12 = \"call to 'resume' before 'invoke' with coroutine\"\n r11.<init>(r12)\n throw r11\n L_0x005c:\n kotlin.ResultKt.throwOnFailure(r15)\n java.util.LinkedHashMap r2 = new java.util.LinkedHashMap\n r2.<init>()\n java.util.Set r15 = r11.entrySet()\n java.util.Iterator r15 = r15.iterator()\n L_0x006c:\n boolean r4 = r15.hasNext()\n if (r4 == 0) goto L_0x00a1\n java.lang.Object r4 = r15.next()\n java.util.Map$Entry r4 = (java.util.Map.Entry) r4\n java.lang.Object r5 = r4.getValue()\n java.util.Map r5 = (java.util.Map) r5\n java.lang.String r6 = \"status\"\n java.lang.Object r5 = r5.get(r6)\n java.lang.String r5 = (java.lang.String) r5\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r12)\n java.lang.Boolean r5 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n boolean r5 = r5.booleanValue()\n if (r5 == 0) goto L_0x006c\n java.lang.Object r5 = r4.getKey()\n java.lang.Object r4 = r4.getValue()\n r2.put(r5, r4)\n goto L_0x006c\n L_0x00a1:\n java.util.List r15 = r10.mo13029a((java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>>) r2)\n java.util.ArrayList r4 = new java.util.ArrayList\n r4.<init>()\n r5 = r15\n java.util.ArrayList r5 = (java.util.ArrayList) r5\n java.util.Iterator r5 = r5.iterator()\n L_0x00b1:\n boolean r6 = r5.hasNext()\n if (r6 == 0) goto L_0x00d5\n java.lang.Object r6 = r5.next()\n r7 = r6\n org.mobileid.access.key.TimeKey r7 = (org.mobileid.access.key.TimeKey) r7\n java.lang.String r7 = r7.getId()\n boolean r7 = r13.contains(r7)\n r7 = r7 ^ r3\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r7)\n boolean r7 = r7.booleanValue()\n if (r7 == 0) goto L_0x00b1\n r4.add(r6)\n goto L_0x00b1\n L_0x00d5:\n java.util.Iterator r5 = r4.iterator()\n r8 = r10\n r7 = r11\n r6 = r12\n r12 = r4\n r11 = r5\n r5 = r13\n r13 = r12\n r4 = r14\n r14 = r15\n L_0x00e2:\n boolean r15 = r11.hasNext()\n if (r15 == 0) goto L_0x0110\n java.lang.Object r15 = r11.next()\n r9 = r15\n org.mobileid.access.key.TimeKey r9 = (org.mobileid.access.key.TimeKey) r9\n r0.f1036d = r8\n r0.f1037e = r7\n r0.f1038f = r6\n r0.f1039g = r5\n r0.f1047o = r4\n r0.f1040h = r2\n r0.f1041i = r14\n r0.f1042j = r13\n r0.f1043k = r12\n r0.f1044l = r11\n r0.f1045m = r15\n r0.f1046n = r9\n r0.f1034b = r3\n java.lang.Object r15 = r8.mo13024a((org.mobileid.access.key.TimeKey) r9, (kotlin.coroutines.Continuation<? super kotlin.Unit>) r0)\n if (r15 != r1) goto L_0x00e2\n return r1\n L_0x0110:\n kotlin.Unit r11 = kotlin.Unit.INSTANCE\n return r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13028a(java.util.Map, java.lang.String, java.util.List, boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public static com.airbnb.lottie.C0955d m4067a(android.util.JsonReader r28) {\n /*\n r0 = r28;\n r1 = com.airbnb.lottie.p036d.C0954f.m4101a();\n r8 = new android.support.v4.f.f;\n r8.<init>();\n r7 = new java.util.ArrayList;\n r7.<init>();\n r9 = new java.util.HashMap;\n r9.<init>();\n r10 = new java.util.HashMap;\n r10.<init>();\n r12 = new java.util.HashMap;\n r12.<init>();\n r11 = new android.support.v4.f.n;\n r11.<init>();\n r13 = new com.airbnb.lottie.d;\n r13.<init>();\n r28.beginObject();\n r2 = 0;\n r2 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r14 = 0;\n L_0x0032:\n r15 = r28.hasNext();\n if (r15 == 0) goto L_0x0138;\n L_0x0038:\n r15 = r28.nextName();\n r16 = -1;\n r17 = r15.hashCode();\n r18 = 2;\n r19 = 1;\n switch(r17) {\n case -1408207997: goto L_0x00a7;\n case -1109732030: goto L_0x009d;\n case 104: goto L_0x0093;\n case 118: goto L_0x0089;\n case 119: goto L_0x007f;\n case 3276: goto L_0x0075;\n case 3367: goto L_0x006b;\n case 3553: goto L_0x0061;\n case 94623709: goto L_0x0056;\n case 97615364: goto L_0x004b;\n default: goto L_0x0049;\n };\n L_0x0049:\n goto L_0x00b1;\n L_0x004b:\n r3 = \"fonts\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0053:\n r3 = 8;\n goto L_0x00b2;\n L_0x0056:\n r3 = \"chars\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x005e:\n r3 = 9;\n goto L_0x00b2;\n L_0x0061:\n r3 = \"op\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0069:\n r3 = 3;\n goto L_0x00b2;\n L_0x006b:\n r3 = \"ip\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0073:\n r3 = 2;\n goto L_0x00b2;\n L_0x0075:\n r3 = \"fr\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x007d:\n r3 = 4;\n goto L_0x00b2;\n L_0x007f:\n r3 = \"w\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0087:\n r3 = 0;\n goto L_0x00b2;\n L_0x0089:\n r3 = \"v\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x0091:\n r3 = 5;\n goto L_0x00b2;\n L_0x0093:\n r3 = \"h\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x009b:\n r3 = 1;\n goto L_0x00b2;\n L_0x009d:\n r3 = \"layers\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x00a5:\n r3 = 6;\n goto L_0x00b2;\n L_0x00a7:\n r3 = \"assets\";\n r3 = r15.equals(r3);\n if (r3 == 0) goto L_0x00b1;\n L_0x00af:\n r3 = 7;\n goto L_0x00b2;\n L_0x00b1:\n r3 = -1;\n L_0x00b2:\n switch(r3) {\n case 0: goto L_0x012a;\n case 1: goto L_0x0120;\n case 2: goto L_0x0116;\n case 3: goto L_0x0107;\n case 4: goto L_0x00fd;\n case 5: goto L_0x00ce;\n case 6: goto L_0x00ca;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c2;\n case 9: goto L_0x00be;\n default: goto L_0x00b5;\n };\n L_0x00b5:\n r27 = r11;\n r26 = r12;\n r28.skipValue();\n goto L_0x0132;\n L_0x00be:\n com.airbnb.lottie.p035c.C0944t.m4068a(r0, r13, r11);\n goto L_0x0102;\n L_0x00c2:\n com.airbnb.lottie.p035c.C0944t.m4071a(r0, r12);\n goto L_0x0102;\n L_0x00c6:\n com.airbnb.lottie.p035c.C0944t.m4070a(r0, r13, r9, r10);\n goto L_0x0102;\n L_0x00ca:\n com.airbnb.lottie.p035c.C0944t.m4069a(r0, r13, r7, r8);\n goto L_0x0102;\n L_0x00ce:\n r3 = r28.nextString();\n r15 = \"\\\\.\";\n r3 = r3.split(r15);\n r15 = 0;\n r16 = r3[r15];\n r20 = java.lang.Integer.parseInt(r16);\n r15 = r3[r19];\n r21 = java.lang.Integer.parseInt(r15);\n r3 = r3[r18];\n r22 = java.lang.Integer.parseInt(r3);\n r23 = 4;\n r24 = 4;\n r25 = 0;\n r3 = com.airbnb.lottie.p036d.C0954f.m4108a(r20, r21, r22, r23, r24, r25);\n if (r3 != 0) goto L_0x0102;\n L_0x00f7:\n r3 = \"Lottie only supports bodymovin >= 4.4.0\";\n r13.m4112a(r3);\n goto L_0x0102;\n L_0x00fd:\n r14 = r28.nextDouble();\n r14 = (float) r14;\n L_0x0102:\n r27 = r11;\n r26 = r12;\n goto L_0x0132;\n L_0x0107:\n r27 = r11;\n r26 = r12;\n r11 = r28.nextDouble();\n r3 = (float) r11;\n r6 = 1008981770; // 0x3c23d70a float:0.01 double:4.9850323E-315;\n r6 = r3 - r6;\n goto L_0x0132;\n L_0x0116:\n r27 = r11;\n r26 = r12;\n r11 = r28.nextDouble();\n r5 = (float) r11;\n goto L_0x0132;\n L_0x0120:\n r27 = r11;\n r26 = r12;\n r3 = r28.nextInt();\n r4 = r3;\n goto L_0x0132;\n L_0x012a:\n r27 = r11;\n r26 = r12;\n r2 = r28.nextInt();\n L_0x0132:\n r12 = r26;\n r11 = r27;\n goto L_0x0032;\n L_0x0138:\n r27 = r11;\n r26 = r12;\n r28.endObject();\n r0 = (float) r2;\n r0 = r0 * r1;\n r0 = (int) r0;\n r2 = (float) r4;\n r2 = r2 * r1;\n r1 = (int) r2;\n r3 = new android.graphics.Rect;\n r2 = 0;\n r3.<init>(r2, r2, r0, r1);\n r2 = r13;\n r4 = r5;\n r5 = r6;\n r6 = r14;\n r2.m4111a(r3, r4, r5, r6, r7, r8, r9, r10, r11, r12);\n return r13;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.lottie.c.t.a(android.util.JsonReader):com.airbnb.lottie.d\");\n }", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "public final /* synthetic */ java.lang.Object mo13032b(java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>> r17, java.lang.String r18, java.util.List<java.lang.String> r19, boolean r20, kotlin.coroutines.Continuation<? super kotlin.Unit> r21) {\n /*\n r16 = this;\n r0 = r16\n r1 = r21\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0969f\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$f r2 = (p008c.p009a.p024e.p026b.C0963b.C0969f) r2\n int r3 = r2.f1071b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1071b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$f r2 = new c.a.e.b.b$f\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1070a\n java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r4 = r2.f1071b\n r5 = 1\n if (r4 == 0) goto L_0x0060\n if (r4 != r5) goto L_0x0058\n java.lang.Object r4 = r2.f1083n\n org.mobileid.access.key.TimeKey r4 = (org.mobileid.access.key.TimeKey) r4\n java.lang.Object r4 = r2.f1081l\n java.util.Iterator r4 = (java.util.Iterator) r4\n java.lang.Object r6 = r2.f1080k\n java.lang.Iterable r6 = (java.lang.Iterable) r6\n java.lang.Object r7 = r2.f1079j\n java.util.List r7 = (java.util.List) r7\n java.lang.Object r8 = r2.f1078i\n java.util.List r8 = (java.util.List) r8\n java.lang.Object r9 = r2.f1077h\n java.util.Map r9 = (java.util.Map) r9\n boolean r10 = r2.f1084o\n java.lang.Object r11 = r2.f1076g\n java.util.List r11 = (java.util.List) r11\n java.lang.Object r12 = r2.f1075f\n java.lang.String r12 = (java.lang.String) r12\n java.lang.Object r13 = r2.f1074e\n java.util.Map r13 = (java.util.Map) r13\n java.lang.Object r14 = r2.f1073d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00eb\n L_0x0058:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0060:\n kotlin.ResultKt.throwOnFailure(r1)\n java.util.LinkedHashMap r9 = new java.util.LinkedHashMap\n r9.<init>()\n java.util.Set r1 = r17.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0070:\n boolean r4 = r1.hasNext()\n if (r4 == 0) goto L_0x00a7\n java.lang.Object r4 = r1.next()\n java.util.Map$Entry r4 = (java.util.Map.Entry) r4\n java.lang.Object r6 = r4.getValue()\n java.util.Map r6 = (java.util.Map) r6\n java.lang.String r7 = \"status\"\n java.lang.Object r6 = r6.get(r7)\n java.lang.String r6 = (java.lang.String) r6\n r7 = r18\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n java.lang.Boolean r6 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r6)\n boolean r6 = r6.booleanValue()\n if (r6 == 0) goto L_0x0070\n java.lang.Object r6 = r4.getKey()\n java.lang.Object r4 = r4.getValue()\n r9.put(r6, r4)\n goto L_0x0070\n L_0x00a7:\n r7 = r18\n java.util.List r8 = r0.mo13029a((java.util.Map<java.lang.String, ? extends java.util.Map<java.lang.String, java.lang.String>>) r9)\n java.util.ArrayList r6 = new java.util.ArrayList\n r6.<init>()\n r1 = r8\n java.util.ArrayList r1 = (java.util.ArrayList) r1\n java.util.Iterator r1 = r1.iterator()\n L_0x00b9:\n boolean r4 = r1.hasNext()\n if (r4 == 0) goto L_0x00de\n java.lang.Object r4 = r1.next()\n r10 = r4\n org.mobileid.access.key.TimeKey r10 = (org.mobileid.access.key.TimeKey) r10\n java.lang.String r10 = r10.getId()\n r11 = r19\n boolean r10 = r11.contains(r10)\n java.lang.Boolean r10 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r10)\n boolean r10 = r10.booleanValue()\n if (r10 == 0) goto L_0x00b9\n r6.add(r4)\n goto L_0x00b9\n L_0x00de:\n r11 = r19\n java.util.Iterator r4 = r6.iterator()\n r13 = r17\n r10 = r20\n r14 = r0\n r12 = r7\n r7 = r6\n L_0x00eb:\n boolean r1 = r4.hasNext()\n if (r1 == 0) goto L_0x0120\n java.lang.Object r1 = r4.next()\n r15 = r1\n org.mobileid.access.key.TimeKey r15 = (org.mobileid.access.key.TimeKey) r15\n java.lang.String r5 = r15.getId()\n r2.f1073d = r14\n r2.f1074e = r13\n r2.f1075f = r12\n r2.f1076g = r11\n r2.f1084o = r10\n r2.f1077h = r9\n r2.f1078i = r8\n r2.f1079j = r7\n r2.f1080k = r6\n r2.f1081l = r4\n r2.f1082m = r1\n r2.f1083n = r15\n r1 = 1\n r2.f1071b = r1\n java.lang.Object r5 = r14.mo13023a(r5, r10, r2)\n if (r5 != r3) goto L_0x011e\n return r3\n L_0x011e:\n r5 = 1\n goto L_0x00eb\n L_0x0120:\n kotlin.Unit r1 = kotlin.Unit.INSTANCE\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13032b(java.util.Map, java.lang.String, java.util.List, boolean, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "private final com.google.android.play.p179a.p352a.C6210u m28673b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }", "private void tryInitializeHandlerForReactRootView(int r5) {\n /*\n r4 = this;\n com.facebook.react.bridge.ReactApplicationContext r0 = r4.getReactApplicationContext()\n java.lang.Class<com.facebook.react.uimanager.UIManagerModule> r1 = com.facebook.react.uimanager.UIManagerModule.class\n com.facebook.react.bridge.NativeModule r0 = r0.getNativeModule(r1)\n com.facebook.react.uimanager.UIManagerModule r0 = (com.facebook.react.uimanager.UIManagerModule) r0\n int r1 = r0.resolveRootTagFromReactTag(r5)\n if (r1 <= 0) goto L_0x005e\n java.util.List<com.swmansion.gesturehandler.react.g> r2 = r4.mRoots\n monitor-enter(r2)\n r5 = 0\n L_0x0016:\n java.util.List<com.swmansion.gesturehandler.react.g> r3 = r4.mRoots // Catch:{ all -> 0x005b }\n int r3 = r3.size() // Catch:{ all -> 0x005b }\n if (r5 >= r3) goto L_0x0033\n java.util.List<com.swmansion.gesturehandler.react.g> r3 = r4.mRoots // Catch:{ all -> 0x005b }\n java.lang.Object r3 = r3.get(r5) // Catch:{ all -> 0x005b }\n com.swmansion.gesturehandler.react.g r3 = (com.swmansion.gesturehandler.react.g) r3 // Catch:{ all -> 0x005b }\n com.facebook.react.ReactRootView r3 = r3.f78820a // Catch:{ all -> 0x005b }\n int r3 = r3.getRootViewTag() // Catch:{ all -> 0x005b }\n if (r3 != r1) goto L_0x0030\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n return\n L_0x0030:\n int r5 = r5 + 1\n goto L_0x0016\n L_0x0033:\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n java.util.List<java.lang.Integer> r5 = r4.mEnqueuedRootViewInit\n monitor-enter(r5)\n java.util.List<java.lang.Integer> r2 = r4.mEnqueuedRootViewInit // Catch:{ all -> 0x0058 }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r1) // Catch:{ all -> 0x0058 }\n boolean r2 = r2.contains(r3) // Catch:{ all -> 0x0058 }\n if (r2 == 0) goto L_0x0045\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n return\n L_0x0045:\n java.util.List<java.lang.Integer> r2 = r4.mEnqueuedRootViewInit // Catch:{ all -> 0x0058 }\n java.lang.Integer r3 = java.lang.Integer.valueOf(r1) // Catch:{ all -> 0x0058 }\n r2.add(r3) // Catch:{ all -> 0x0058 }\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n com.swmansion.gesturehandler.react.RNGestureHandlerModule$2 r5 = new com.swmansion.gesturehandler.react.RNGestureHandlerModule$2\n r5.<init>(r1)\n r0.addUIBlock(r5)\n return\n L_0x0058:\n r0 = move-exception\n monitor-exit(r5) // Catch:{ all -> 0x0058 }\n throw r0\n L_0x005b:\n r5 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x005b }\n throw r5\n L_0x005e:\n com.facebook.react.bridge.JSApplicationIllegalArgumentException r0 = new com.facebook.react.bridge.JSApplicationIllegalArgumentException\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n java.lang.String r2 = \"Could find root view for a given ancestor with tag \"\n r1.<init>(r2)\n r1.append(r5)\n java.lang.String r5 = r1.toString()\n r0.<init>(r5)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.swmansion.gesturehandler.react.RNGestureHandlerModule.tryInitializeHandlerForReactRootView(int):void\");\n }", "public static java.lang.String m5217a() {\n /*\n r0 = f4109a;\n monitor-enter(r0);\n r1 = f4109a;\t Catch:{ all -> 0x003e }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x003e }\n if (r1 == 0) goto L_0x000f;\n L_0x000b:\n r1 = \"\";\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n return r1;\n L_0x000f:\n r1 = new java.util.ArrayList;\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r1.<init>(r2);\t Catch:{ all -> 0x003e }\n r2 = f4109a;\t Catch:{ all -> 0x003e }\n r2.clear();\t Catch:{ all -> 0x003e }\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n r0 = new org.json.JSONArray;\n r0.<init>();\n r1 = r1.iterator();\n L_0x0025:\n r2 = r1.hasNext();\n if (r2 == 0) goto L_0x0039;\n L_0x002b:\n r2 = r1.next();\n r2 = (com.facebook.ads.internal.p047k.C1481b) r2;\n r2 = r2.m5216a();\n r0.put(r2);\n goto L_0x0025;\n L_0x0039:\n r0 = r0.toString();\n return r0;\n L_0x003e:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x003e }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.k.c.a():java.lang.String\");\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }", "public void m2108c() {\n /*\n r3 = this;\n r0 = \"Calling this from your main thread can lead to deadlock\";\n com.google.android.gms.common.internal.C1305x.m6628c(r0);\n monitor-enter(r3);\n r0 = r3.f1274g;\t Catch:{ all -> 0x002a }\n if (r0 == 0) goto L_0x000e;\n L_0x000a:\n r0 = r3.f1268a;\t Catch:{ all -> 0x002a }\n if (r0 != 0) goto L_0x0010;\n L_0x000e:\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n L_0x000f:\n return;\n L_0x0010:\n r0 = r3.f1270c;\t Catch:{ IllegalArgumentException -> 0x002d }\n if (r0 == 0) goto L_0x001f;\n L_0x0014:\n r0 = com.google.android.gms.common.stats.C1530b.m6956a();\t Catch:{ IllegalArgumentException -> 0x002d }\n r1 = r3.f1274g;\t Catch:{ IllegalArgumentException -> 0x002d }\n r2 = r3.f1268a;\t Catch:{ IllegalArgumentException -> 0x002d }\n r0.m6963a(r1, r2);\t Catch:{ IllegalArgumentException -> 0x002d }\n L_0x001f:\n r0 = 0;\n r3.f1270c = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1269b = r0;\t Catch:{ all -> 0x002a }\n r0 = 0;\n r3.f1268a = r0;\t Catch:{ all -> 0x002a }\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n goto L_0x000f;\n L_0x002a:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x002a }\n throw r0;\n L_0x002d:\n r0 = move-exception;\n r1 = \"AdvertisingIdClient\";\n r2 = \"AdvertisingIdClient unbindService failed.\";\n android.util.Log.i(r1, r2, r0);\t Catch:{ all -> 0x002a }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.c.a.c():void\");\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "public void mo5832b(android.content.Context r4) {\n /*\n r3 = this;\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n L_0x0008:\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n L_0x0010:\n r0 = 25\n java.lang.Long r1 = m3303w() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n long r1 = r1.longValue() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n r3.mo5829a(r0, r1) // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n L_0x001d:\n r0 = 24\n java.lang.String r1 = m3300d(r4) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n L_0x0026:\n return\n L_0x0027:\n r0 = move-exception\n goto L_0x0026\n L_0x0029:\n r0 = move-exception\n goto L_0x0026\n L_0x002b:\n r0 = move-exception\n goto L_0x001d\n L_0x002d:\n r0 = move-exception\n goto L_0x0010\n L_0x002f:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5832b(android.content.Context):void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "public final void b(@org.jetbrains.annotations.Nullable java.lang.String r18) {\n /*\n r17 = this;\n r1 = 1\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r9 = 0\n r2[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r4 = f2610e\n java.lang.Class[] r7 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r3 = java.lang.String.class\n r7[r9] = r3\n java.lang.Class r8 = java.lang.Void.TYPE\n r5 = 0\n r6 = 21950(0x55be, float:3.0759E-41)\n r3 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x0032\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21950(0x55be, float:3.0759E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Void.TYPE\n r11 = r17\n com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n return\n L_0x0032:\n com.ss.android.ugc.aweme.antiaddic.lock.c r2 = com.ss.android.ugc.aweme.antiaddic.lock.c.f33443d\n boolean r2 = r2.e()\n if (r2 == 0) goto L_0x003e\n r17.c(r18)\n return\n L_0x003e:\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r2 = java.lang.String.class\n r15[r9] = r2\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r10, r11, r12, r13, r14, r15, r16)\n if (r2 == 0) goto L_0x0075\n java.lang.Object[] r10 = new java.lang.Object[r1]\n r10[r9] = r18\n com.meituan.robust.ChangeQuickRedirect r12 = f2610e\n r13 = 0\n r14 = 21953(0x55c1, float:3.0763E-41)\n java.lang.Class[] r15 = new java.lang.Class[r1]\n java.lang.Class<java.lang.String> r0 = java.lang.String.class\n r15[r9] = r0\n java.lang.Class r16 = java.lang.Boolean.TYPE\n r11 = r17\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r10, r11, r12, r13, r14, r15, r16)\n java.lang.Boolean r0 = (java.lang.Boolean) r0\n boolean r1 = r0.booleanValue()\n goto L_0x0096\n L_0x0075:\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n if (r2 == 0) goto L_0x0095\n r0 = r18\n java.lang.CharSequence r0 = (java.lang.CharSequence) r0\n com.ss.android.ugc.aweme.antiaddic.lock.entity.TimeLockUserSetting r2 = com.ss.android.ugc.aweme.antiaddic.lock.TimeLockRuler.getUserSetting()\n java.lang.String r3 = \"TimeLockRuler.getUserSetting()\"\n kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r2, r3)\n java.lang.String r2 = r2.getPassword()\n java.lang.CharSequence r2 = (java.lang.CharSequence) r2\n boolean r0 = android.text.TextUtils.equals(r0, r2)\n if (r0 == 0) goto L_0x0095\n goto L_0x0096\n L_0x0095:\n r1 = 0\n L_0x0096:\n if (r1 == 0) goto L_0x009c\n r17.b()\n return\n L_0x009c:\n android.content.Context r0 = com.ss.android.ugc.aweme.base.utils.d.a()\n r1 = 2131564680(0x7f0d1888, float:1.8754852E38)\n com.bytedance.ies.dmt.ui.d.a r0 = com.bytedance.ies.dmt.ui.d.a.b((android.content.Context) r0, (int) r1)\n r0.a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.antiaddic.lock.ui.fragment.AntiAddictionTipFragment.b(java.lang.String):void\");\n }", "public final boolean mo115451b(int r10) {\n /*\n r9 = this;\n com.tencent.wcdb.database.SQLiteConnection$a[] r0 = r9.f119500b\n monitor-enter(r0)\n com.tencent.wcdb.database.SQLiteConnection$a r10 = r9.m145808d(r10) // Catch:{ all -> 0x002d }\n if (r10 != 0) goto L_0x000c\n r10 = 0\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n return r10\n L_0x000c:\n boolean r1 = m145806a(r10) // Catch:{ all -> 0x002d }\n java.lang.String r2 = r10.f119492d // Catch:{ all -> 0x002d }\n java.lang.String r3 = r10.f119491c // Catch:{ all -> 0x002d }\n int r4 = r10.f119497i // Catch:{ all -> 0x002d }\n long r5 = r10.f119490b // Catch:{ all -> 0x002d }\n long r7 = r10.f119489a // Catch:{ all -> 0x002d }\n r10 = 0\n long r5 = r5 - r7\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n java.lang.String r10 = \"prepare\"\n boolean r10 = r10.equals(r3)\n if (r10 != 0) goto L_0x002c\n com.tencent.wcdb.database.SQLiteConnection r10 = com.tencent.wcdb.database.SQLiteConnection.this\n com.tencent.wcdb.database.d r10 = r10.f119471b\n r10.mo115492a(r2, r4, r5)\n L_0x002c:\n return r1\n L_0x002d:\n r10 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002d }\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wcdb.database.SQLiteConnection.C46404b.mo115451b(int):boolean\");\n }", "private void b(int r14) {\n /*\n r13 = this;\n java.lang.Integer r0 = r13.w\n if (r0 != 0) goto L_0x000b\n java.lang.Integer r14 = java.lang.Integer.valueOf(r14)\n r13.w = r14\n goto L_0x005b\n L_0x000b:\n java.lang.Integer r0 = r13.w\n int r0 = r0.intValue()\n if (r0 == r14) goto L_0x005b\n java.lang.IllegalStateException r0 = new java.lang.IllegalStateException\n java.lang.String r14 = a(r14)\n java.lang.String r14 = java.lang.String.valueOf(r14)\n java.lang.Integer r1 = r13.w\n int r1 = r1.intValue()\n java.lang.String r1 = a(r1)\n java.lang.String r1 = java.lang.String.valueOf(r1)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n java.lang.String r3 = java.lang.String.valueOf(r14)\n int r3 = r3.length()\n int r3 = r3 + 51\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r3 = r3 + r4\n r2.<init>(r3)\n java.lang.String r3 = \"Cannot use sign-in mode: \"\n r2.append(r3)\n r2.append(r14)\n java.lang.String r14 = \". Mode was already set to \"\n r2.append(r14)\n r2.append(r1)\n java.lang.String r14 = r2.toString()\n r0.<init>(r14)\n throw r0\n L_0x005b:\n com.google.android.gms.internal.zzqy r14 = r13.l\n if (r14 == 0) goto L_0x0060\n return\n L_0x0060:\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r14 = r13.c\n java.util.Collection r14 = r14.values()\n java.util.Iterator r14 = r14.iterator()\n r0 = 0\n r1 = 0\n L_0x006c:\n boolean r2 = r14.hasNext()\n if (r2 == 0) goto L_0x0088\n java.lang.Object r2 = r14.next()\n com.google.android.gms.common.api.Api$zze r2 = (com.google.android.gms.common.api.Api.zze) r2\n boolean r3 = r2.zzahd()\n r4 = 1\n if (r3 == 0) goto L_0x0080\n r0 = 1\n L_0x0080:\n boolean r2 = r2.zzahs()\n if (r2 == 0) goto L_0x006c\n r1 = 1\n goto L_0x006c\n L_0x0088:\n java.lang.Integer r14 = r13.w\n int r14 = r14.intValue()\n switch(r14) {\n case 1: goto L_0x00ae;\n case 2: goto L_0x0092;\n case 3: goto L_0x00c2;\n default: goto L_0x0091;\n }\n L_0x0091:\n goto L_0x00c2\n L_0x0092:\n if (r0 == 0) goto L_0x00c2\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r3 = r13\n com.google.android.gms.internal.zzqh r14 = com.google.android.gms.internal.zzqh.a(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11)\n L_0x00ab:\n r13.l = r14\n return\n L_0x00ae:\n if (r0 != 0) goto L_0x00b8\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"SIGN_IN_MODE_REQUIRED cannot be used on a GoogleApiClient that does not contain any authenticated APIs. Use connect() instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00b8:\n if (r1 == 0) goto L_0x00c2\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r0 = \"Cannot use SIGN_IN_MODE_REQUIRED with GOOGLE_SIGN_IN_API. Use connect(SIGN_IN_MODE_OPTIONAL) instead.\"\n r14.<init>(r0)\n throw r14\n L_0x00c2:\n com.google.android.gms.internal.zzqr r14 = new com.google.android.gms.internal.zzqr\n android.content.Context r2 = r13.n\n java.util.concurrent.locks.Lock r4 = r13.j\n android.os.Looper r5 = r13.o\n com.google.android.gms.common.GoogleApiAvailability r6 = r13.t\n java.util.Map<com.google.android.gms.common.api.Api$zzc<?>, com.google.android.gms.common.api.Api$zze> r7 = r13.c\n com.google.android.gms.common.internal.zzh r8 = r13.e\n java.util.Map<com.google.android.gms.common.api.Api<?>, java.lang.Integer> r9 = r13.f\n com.google.android.gms.common.api.Api$zza<? extends com.google.android.gms.internal.zzwz, com.google.android.gms.internal.zzxa> r10 = r13.g\n java.util.ArrayList<com.google.android.gms.internal.zzqf> r11 = r13.v\n r1 = r14\n r3 = r13\n r12 = r13\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)\n goto L_0x00ab\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzqp.b(int):void\");\n }", "public java.util.Map<java.lang.String, java.util.ArrayList> m17238b() {\n /*\n r18 = this;\n r3 = new java.util.HashMap;\n r3.<init>();\n r4 = new java.util.ArrayList;\n r4.<init>();\n r5 = new java.util.ArrayList;\n r5.<init>();\n r0 = r18;\n r2 = r0.f20995e;\n r2.lock();\n r6 = r18.m17234d();\n r2 = \"select * from result limit 0,500\";\n r7 = 0;\n r7 = r6.rawQuery(r2, r7);\n L_0x0022:\n r2 = r7.moveToNext();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n if (r2 == 0) goto L_0x0106;\n L_0x0028:\n r2 = new org.json.JSONObject;\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r2.<init>();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r8 = \"_id\";\n r8 = r7.getColumnIndex(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r8 = r7.getInt(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"time\";\n r9 = r7.getColumnIndex(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = r7.getString(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r10 = \"code\";\n r10 = r7.getColumnIndex(r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r10 = r7.getInt(r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r11 = \"cmd_type\";\n r11 = r7.getColumnIndex(r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r11 = r7.getInt(r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r12 = \"cmd_id\";\n r12 = r7.getColumnIndex(r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r12 = r7.getInt(r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r13 = \"result\";\n r13 = r7.getColumnIndex(r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r13 = r7.getString(r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r14 = \"time\";\n r16 = java.lang.Long.parseLong(r9);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r0 = r16;\n r2.put(r14, r0);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"error_code\";\n r2.put(r9, r10);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n if (r10 != 0) goto L_0x0095;\n L_0x0083:\n r9 = \"cmd_type\";\n r2.put(r9, r11);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"cmd_id\";\n r2.put(r9, r12);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r9 = \"voice_to_text_result\";\n r2.put(r9, r13);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n L_0x0095:\n r8 = java.lang.Integer.valueOf(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r5.add(r8);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n r4.add(r2);\t Catch:{ JSONException -> 0x00a0, Exception -> 0x00d3, SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9 }\n goto L_0x0022;\n L_0x00a0:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n goto L_0x0022;\n L_0x00a6:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n L_0x00d2:\n return r3;\n L_0x00d3:\n r2 = move-exception;\n r2.printStackTrace();\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n goto L_0x0022;\n L_0x00d9:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x0106:\n r2 = \"listId\";\n r3.put(r2, r5);\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r2 = \"list\";\n r3.put(r2, r4);\t Catch:{ SQLiteException -> 0x00a6, IllegalStateException -> 0x00d9, Exception -> 0x0120 }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x0120:\n r2 = move-exception;\n r4 = \"SynthesizeResultDb\";\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x014d }\n r5.<init>();\t Catch:{ all -> 0x014d }\n r8 = \"exception:\";\n r5 = r5.append(r8);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n r2 = r5.append(r2);\t Catch:{ all -> 0x014d }\n r2 = r2.toString();\t Catch:{ all -> 0x014d }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r4, r2);\t Catch:{ all -> 0x014d }\n r7.close();\n r6.close();\n r0 = r18;\n r2 = r0.f20995e;\n r2.unlock();\n goto L_0x00d2;\n L_0x014d:\n r2 = move-exception;\n r7.close();\n r6.close();\n r0 = r18;\n r3 = r0.f20995e;\n r3.unlock();\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.b():java.util.Map<java.lang.String, java.util.ArrayList>\");\n }", "public final synchronized com.google.firebase.iid.C18332bc mo47207b(java.lang.String r3) {\n /*\n r2 = this;\n monitor-enter(r2)\n java.util.Map<java.lang.String, com.google.firebase.iid.bc> r0 = r2.f49753d // Catch:{ all -> 0x002c }\n java.lang.Object r0 = r0.get(r3) // Catch:{ all -> 0x002c }\n com.google.firebase.iid.bc r0 = (com.google.firebase.iid.C18332bc) r0 // Catch:{ all -> 0x002c }\n if (r0 == 0) goto L_0x000d\n monitor-exit(r2)\n return r0\n L_0x000d:\n com.google.firebase.iid.bb r0 = r2.f49752c // Catch:{ e -> 0x0016 }\n android.content.Context r1 = r2.f49751b // Catch:{ e -> 0x0016 }\n com.google.firebase.iid.bc r0 = r0.mo47243a(r1, r3) // Catch:{ e -> 0x0016 }\n goto L_0x0025\n L_0x0016:\n com.google.firebase.iid.FirebaseInstanceId r0 = com.google.firebase.iid.FirebaseInstanceId.m60321a() // Catch:{ all -> 0x002c }\n r0.mo47194h() // Catch:{ all -> 0x002c }\n com.google.firebase.iid.bb r0 = r2.f49752c // Catch:{ all -> 0x002c }\n android.content.Context r1 = r2.f49751b // Catch:{ all -> 0x002c }\n com.google.firebase.iid.bc r0 = r0.mo47244b(r1, r3) // Catch:{ all -> 0x002c }\n L_0x0025:\n java.util.Map<java.lang.String, com.google.firebase.iid.bc> r1 = r2.f49753d // Catch:{ all -> 0x002c }\n r1.put(r3, r0) // Catch:{ all -> 0x002c }\n monitor-exit(r2)\n return r0\n L_0x002c:\n r3 = move-exception\n monitor-exit(r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.firebase.iid.C18303aa.mo47207b(java.lang.String):com.google.firebase.iid.bc\");\n }", "final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }", "final boolean m23214b(long r12) {\n /*\n r11 = this;\n r2 = 1;\n r1 = 0;\n r4 = r11.f25574e;\n monitor-enter(r4);\n r0 = r11.f25573d;\t Catch:{ all -> 0x0062 }\n r3 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r3 = r3.f25567l;\t Catch:{ all -> 0x0062 }\n r0 = r0.get(r3);\t Catch:{ all -> 0x0062 }\n r0 = (java.util.Map) r0;\t Catch:{ all -> 0x0062 }\n if (r0 != 0) goto L_0x00a1;\n L_0x0015:\n r0 = new java.util.HashMap;\t Catch:{ all -> 0x0062 }\n r0.<init>();\t Catch:{ all -> 0x0062 }\n r3 = r11.f25573d;\t Catch:{ all -> 0x0062 }\n r5 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r5 = r5.f25567l;\t Catch:{ all -> 0x0062 }\n r3.put(r5, r0);\t Catch:{ all -> 0x0062 }\n r3 = r0;\n L_0x0026:\n r0 = r11.f25571b;\t Catch:{ all -> 0x0062 }\n r5 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r5 = r5.f25558c;\t Catch:{ all -> 0x0062 }\n if (r0 < r5) goto L_0x0065;\n L_0x0030:\n r0 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r0 = r0.f25560e;\t Catch:{ all -> 0x0062 }\n if (r0 != 0) goto L_0x0065;\n L_0x0038:\n r0 = r11.f25571b;\t Catch:{ all -> 0x0062 }\n r2 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r2 = r2.f25558c;\t Catch:{ all -> 0x0062 }\n if (r0 != r2) goto L_0x0059;\n L_0x0042:\n r2 = \"Counters\";\n r3 = \"exceeded sample count in \";\n r0 = r11.f25570a;\t Catch:{ all -> 0x0062 }\n r0 = java.lang.String.valueOf(r0);\t Catch:{ all -> 0x0062 }\n r5 = r0.length();\t Catch:{ all -> 0x0062 }\n if (r5 == 0) goto L_0x005c;\n L_0x0052:\n r0 = r3.concat(r0);\t Catch:{ all -> 0x0062 }\n L_0x0056:\n android.util.Log.i(r2, r0);\t Catch:{ all -> 0x0062 }\n L_0x0059:\n monitor-exit(r4);\t Catch:{ all -> 0x0062 }\n r0 = r1;\n L_0x005b:\n return r0;\n L_0x005c:\n r0 = new java.lang.String;\t Catch:{ all -> 0x0062 }\n r0.<init>(r3);\t Catch:{ all -> 0x0062 }\n goto L_0x0056;\n L_0x0062:\n r0 = move-exception;\n monitor-exit(r4);\t Catch:{ all -> 0x0062 }\n throw r0;\n L_0x0065:\n r0 = r11.f25571b;\t Catch:{ all -> 0x0062 }\n r0 = r0 + 1;\n r11.f25571b = r0;\t Catch:{ all -> 0x0062 }\n r0 = java.lang.Long.valueOf(r12);\t Catch:{ all -> 0x0062 }\n r0 = r3.get(r0);\t Catch:{ all -> 0x0062 }\n r0 = (long[]) r0;\t Catch:{ all -> 0x0062 }\n if (r0 != 0) goto L_0x0086;\n L_0x0077:\n r0 = 1;\n r0 = new long[r0];\t Catch:{ all -> 0x0062 }\n r5 = 0;\n r6 = 0;\n r0[r5] = r6;\t Catch:{ all -> 0x0062 }\n r5 = java.lang.Long.valueOf(r12);\t Catch:{ all -> 0x0062 }\n r3.put(r5, r0);\t Catch:{ all -> 0x0062 }\n L_0x0086:\n r3 = 0;\n r6 = r0[r3];\t Catch:{ all -> 0x0062 }\n r8 = 1;\n r6 = r6 + r8;\n r0[r3] = r6;\t Catch:{ all -> 0x0062 }\n r0 = r11.f25575f;\t Catch:{ all -> 0x0062 }\n r0 = r0.f25560e;\t Catch:{ all -> 0x0062 }\n if (r0 == 0) goto L_0x009f;\n L_0x0096:\n r0 = r11.f25571b;\t Catch:{ all -> 0x0062 }\n r3 = r11.f25572c;\t Catch:{ all -> 0x0062 }\n if (r0 < r3) goto L_0x009f;\n L_0x009c:\n r0 = r2;\n L_0x009d:\n monitor-exit(r4);\t Catch:{ all -> 0x0062 }\n goto L_0x005b;\n L_0x009f:\n r0 = r1;\n goto L_0x009d;\n L_0x00a1:\n r3 = r0;\n goto L_0x0026;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.clearcut.h.b(long):boolean\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "void m1864a() {\r\n }", "public void onFinalImageSet(java.lang.String r3, @javax.annotation.Nullable com.facebook.imagepipeline.image.ImageInfo r4, @javax.annotation.Nullable android.graphics.drawable.Animatable r5) {\r\n /*\r\n r2 = this;\r\n r3 = 0;\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x007e }\r\n r4 = r4.dataSource;\t Catch:{ all -> 0x007e }\r\n r4 = r4.getResult();\t Catch:{ all -> 0x007e }\r\n r4 = (com.facebook.common.references.CloseableReference) r4;\t Catch:{ all -> 0x007e }\r\n r3 = 1;\r\n if (r4 == 0) goto L_0x003b;\r\n L_0x0010:\r\n r5 = r4.get();\t Catch:{ all -> 0x0039 }\r\n r5 = (com.facebook.imagepipeline.image.CloseableImage) r5;\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0018:\r\n r0 = r5 instanceof com.facebook.imagepipeline.image.CloseableStaticBitmap;\t Catch:{ all -> 0x0039 }\r\n if (r0 == 0) goto L_0x003b;\r\n L_0x001c:\r\n r5 = (com.facebook.imagepipeline.image.CloseableStaticBitmap) r5;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.getUnderlyingBitmap();\t Catch:{ all -> 0x0039 }\r\n if (r5 == 0) goto L_0x003b;\r\n L_0x0024:\r\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ all -> 0x0039 }\r\n r5 = r5.copy(r0, r3);\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmap = r5;\t Catch:{ all -> 0x0039 }\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\t Catch:{ all -> 0x0039 }\r\n r5 = com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(r5);\t Catch:{ all -> 0x0039 }\r\n r0.iconBitmapDescriptor = r5;\t Catch:{ all -> 0x0039 }\r\n goto L_0x003b;\r\n L_0x0039:\r\n r3 = move-exception;\r\n goto L_0x0082;\r\n L_0x003b:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0049;\r\n L_0x0046:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0049:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0051:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.imageUri;\r\n if (r4 == 0) goto L_0x0078;\r\n L_0x0059:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4 = r4.markerManager;\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.imageUri;\r\n r4 = r4.getSharedIcon(r5);\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.iconBitmapDescriptor;\r\n r0 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r0 = r0.iconBitmap;\r\n r4.updateIcon(r5, r0);\r\n L_0x0078:\r\n r4 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r4.update(r3);\r\n return;\r\n L_0x007e:\r\n r4 = move-exception;\r\n r1 = r4;\r\n r4 = r3;\r\n r3 = r1;\r\n L_0x0082:\r\n r5 = com.airbnb.android.react.maps.AirMapMarker.this;\r\n r5 = r5.dataSource;\r\n r5.close();\r\n if (r4 == 0) goto L_0x0090;\r\n L_0x008d:\r\n com.facebook.common.references.CloseableReference.closeSafely(r4);\r\n L_0x0090:\r\n throw r3;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.airbnb.android.react.maps.AirMapMarker.1.onFinalImageSet(java.lang.String, com.facebook.imagepipeline.image.ImageInfo, android.graphics.drawable.Animatable):void\");\r\n }", "void m5770d() throws C0841b;", "public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }", "public static com.facebook.ads.internal.p081a.C1714d m6464a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r1);\n if (r0 == 0) goto L_0x0009;\n L_0x0006:\n r1 = NONE;\n return r1;\n L_0x0009:\n r0 = java.util.Locale.US;\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = r1.toUpperCase(r0);\t Catch:{ IllegalArgumentException -> 0x0014 }\n r1 = com.facebook.ads.internal.p081a.C1714d.valueOf(r1);\t Catch:{ IllegalArgumentException -> 0x0014 }\n return r1;\n L_0x0014:\n r1 = NONE;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.a.d.a(java.lang.String):com.facebook.ads.internal.a.d\");\n }", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void c(int r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r2 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16805(0x41a5, float:2.3549E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Integer.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((int) r11) // Catch:{ all -> 0x004b }\n r10.o = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.c(int):void\");\n }", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public static void m14696c(com.facebook.appevents.AppEventsLogger.FlushReason r4) {\n /*\n r1 = f14526i;\n monitor-enter(r1);\n r0 = f14524g;\t Catch:{ all -> 0x0048 }\n if (r0 == 0) goto L_0x0009;\n L_0x0007:\n monitor-exit(r1);\t Catch:{ all -> 0x0048 }\n L_0x0008:\n return;\n L_0x0009:\n r0 = 1;\n f14524g = r0;\t Catch:{ all -> 0x0048 }\n r2 = new java.util.HashSet;\t Catch:{ all -> 0x0048 }\n r0 = f14521d;\t Catch:{ all -> 0x0048 }\n r0 = r0.keySet();\t Catch:{ all -> 0x0048 }\n r2.<init>(r0);\t Catch:{ all -> 0x0048 }\n monitor-exit(r1);\t Catch:{ all -> 0x0048 }\n m14700j();\n r0 = 0;\n r0 = m14688a(r4, r2);\t Catch:{ Exception -> 0x004b }\n L_0x0020:\n r1 = f14526i;\n monitor-enter(r1);\n r2 = 0;\n f14524g = r2;\t Catch:{ all -> 0x0054 }\n monitor-exit(r1);\t Catch:{ all -> 0x0054 }\n if (r0 == 0) goto L_0x0008;\n L_0x0029:\n r1 = new android.content.Intent;\n r2 = \"com.facebook.sdk.APP_EVENTS_FLUSHED\";\n r1.<init>(r2);\n r2 = \"com.facebook.sdk.APP_EVENTS_NUM_EVENTS_FLUSHED\";\n r3 = r0.f14508a;\n r1.putExtra(r2, r3);\n r2 = \"com.facebook.sdk.APP_EVENTS_FLUSH_RESULT\";\n r0 = r0.f14509b;\n r1.putExtra(r2, r0);\n r0 = f14525h;\n r0 = android.support.v4.content.LocalBroadcastManager.a(r0);\n r0.a(r1);\n goto L_0x0008;\n L_0x0048:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n L_0x004b:\n r1 = move-exception;\n r2 = f14520a;\n r3 = \"Caught unexpected exception while flushing: \";\n com.facebook.internal.Utility.m25340a(r2, r3, r1);\n goto L_0x0020;\n L_0x0054:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.appevents.AppEventsLogger.c(com.facebook.appevents.AppEventsLogger$FlushReason):void\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public boolean mo3969a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "private void a(com.bytedance.crash.nativecrash.c r6, java.lang.String r7, boolean r8) {\n /*\n r5 = this;\n r0 = 0\n boolean r1 = r6.c() // Catch:{ Throwable -> 0x009a }\n if (r1 != 0) goto L_0x0008\n return\n L_0x0008:\n com.bytedance.crash.e.d r8 = a((com.bytedance.crash.nativecrash.c) r6, (boolean) r8) // Catch:{ Throwable -> 0x009a }\n if (r8 == 0) goto L_0x0099\n org.json.JSONObject r1 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n if (r1 == 0) goto L_0x0099\n java.io.File r1 = r6.f19496a // Catch:{ Throwable -> 0x009a }\n java.lang.String r2 = \".npth\"\n java.io.File r1 = com.bytedance.crash.i.h.a(r1, r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.db.a r2 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x009a }\n boolean r2 = r2.a((java.lang.String) r3) // Catch:{ Throwable -> 0x009a }\n if (r2 != 0) goto L_0x0096\n org.json.JSONObject r2 = r8.f19424b // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = \"upload_scene\"\n java.lang.String r4 = \"launch_scan\"\n r2.put(r3, r4) // Catch:{ Throwable -> 0x009a }\n if (r7 == 0) goto L_0x0038\n java.lang.String r3 = \"crash_uuid\"\n r2.put(r3, r7) // Catch:{ Throwable -> 0x009a }\n L_0x0038:\n com.bytedance.crash.d r7 = com.bytedance.crash.d.NATIVE // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.f19382f // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = com.bytedance.crash.event.b.a((com.bytedance.crash.d) r7, (java.lang.String) r3, (org.json.JSONObject) r2) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r7) // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.clone() // Catch:{ Throwable -> 0x009a }\n java.lang.String r3 = com.bytedance.crash.c.a.g // Catch:{ Throwable -> 0x009a }\n com.bytedance.crash.event.a r7 = r7.eventType(r3) // Catch:{ Throwable -> 0x009a }\n java.lang.String r0 = r8.f19423a // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = r2.toString() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19425c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.upload.h r8 = com.bytedance.crash.upload.b.a((java.lang.String) r0, (java.lang.String) r2, (java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n boolean r0 = r8.a() // Catch:{ Throwable -> 0x0093 }\n if (r0 == 0) goto L_0x0083\n boolean r6 = r6.e() // Catch:{ Throwable -> 0x0093 }\n if (r6 != 0) goto L_0x0074\n com.bytedance.crash.db.a r6 = com.bytedance.crash.db.a.a() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r0 = r1.getAbsolutePath() // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.db.a.a r0 = com.bytedance.crash.db.a.a.a(r0) // Catch:{ Throwable -> 0x0093 }\n r6.a((com.bytedance.crash.db.a.a) r0) // Catch:{ Throwable -> 0x0093 }\n L_0x0074:\n r6 = 0\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n org.json.JSONObject r8 = r8.f19589c // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((org.json.JSONObject) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x0099\n L_0x0083:\n int r6 = r8.f19587a // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r7.state(r6) // Catch:{ Throwable -> 0x0093 }\n java.lang.String r8 = r8.f19588b // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.a r6 = r6.errorInfo((java.lang.String) r8) // Catch:{ Throwable -> 0x0093 }\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6) // Catch:{ Throwable -> 0x0093 }\n goto L_0x00aa\n L_0x0093:\n r6 = move-exception\n r0 = r7\n goto L_0x009b\n L_0x0096:\n r6.e() // Catch:{ Throwable -> 0x009a }\n L_0x0099:\n return\n L_0x009a:\n r6 = move-exception\n L_0x009b:\n if (r0 == 0) goto L_0x00aa\n r7 = 211(0xd3, float:2.96E-43)\n com.bytedance.crash.event.a r7 = r0.state(r7)\n com.bytedance.crash.event.a r6 = r7.errorInfo((java.lang.Throwable) r6)\n com.bytedance.crash.event.c.a((com.bytedance.crash.event.a) r6)\n L_0x00aa:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c, java.lang.String, boolean):void\");\n }", "void m5768b() throws C0841b;", "public void M(android.view.View r6) {\n /*\n r5 = this;\n r0 = \"v\";\n kotlin.jvm.internal.i.f(r6, r0);\n r6 = r5.this$0;\n r6 = r6.ayL;\n r0 = 0;\n if (r6 == 0) goto L_0x001a;\n L_0x000f:\n r6 = r6.Km();\n if (r6 == 0) goto L_0x001a;\n L_0x0015:\n r6 = r6.XA();\n goto L_0x001b;\n L_0x001a:\n r6 = r0;\n L_0x001b:\n if (r6 != 0) goto L_0x0020;\n L_0x001d:\n kotlin.jvm.internal.i.bnJ();\n L_0x0020:\n r1 = com.iqoption.deposit.light.menu.currency.c.cFb;\n r2 = new com.iqoption.deposit.c.a.b;\n r6 = (java.util.List) r6;\n r3 = r5.this$0;\n r3 = r3.cFE;\n if (r3 == 0) goto L_0x0037;\n L_0x002e:\n r3 = r3.getId();\n r3 = java.lang.Long.valueOf(r3);\n goto L_0x0038;\n L_0x0037:\n r3 = r0;\n L_0x0038:\n r2.<init>(r6, r3);\n r6 = r1.a(r2);\n r1 = com.iqoption.deposit.navigator.b.cGp;\n r2 = r5.this$0;\n r2 = (androidx.fragment.app.Fragment) r2;\n r1 = r1.P(r2);\n r2 = 0;\n r3 = 2;\n com.iqoption.core.ui.d.g.b(r1, r6, r2, r3, r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c$r.M(android.view.View):void\");\n }", "static synchronized void a(android.content.Context r18) {\n /*\n java.lang.Class<com.ss.android.common.applog.n> r1 = com.ss.android.common.applog.n.class\n monitor-enter(r1)\n r2 = 1\n java.lang.Object[] r3 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r10 = 0\n r3[r10] = r18 // Catch:{ all -> 0x0085 }\n r4 = 0\n com.meituan.robust.ChangeQuickRedirect r5 = f28180a // Catch:{ all -> 0x0085 }\n r6 = 1\n r7 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r8 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r9 = android.content.Context.class\n r8[r10] = r9 // Catch:{ all -> 0x0085 }\n java.lang.Class r9 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9) // Catch:{ all -> 0x0085 }\n if (r3 == 0) goto L_0x0036\n java.lang.Object[] r11 = new java.lang.Object[r2] // Catch:{ all -> 0x0085 }\n r11[r10] = r18 // Catch:{ all -> 0x0085 }\n r12 = 0\n com.meituan.robust.ChangeQuickRedirect r13 = f28180a // Catch:{ all -> 0x0085 }\n r14 = 1\n r15 = 15558(0x3cc6, float:2.1801E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2] // Catch:{ all -> 0x0085 }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r0[r10] = r2 // Catch:{ all -> 0x0085 }\n java.lang.Class r17 = java.lang.Void.TYPE // Catch:{ all -> 0x0085 }\n r16 = r0\n com.meituan.robust.PatchProxy.accessDispatch(r11, r12, r13, r14, r15, r16, r17) // Catch:{ all -> 0x0085 }\n monitor-exit(r1)\n return\n L_0x0036:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r3 >= 0) goto L_0x003d\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x003d:\n int r3 = f28181b // Catch:{ Throwable -> 0x0083 }\n r4 = 500(0x1f4, float:7.0E-43)\n if (r3 >= r4) goto L_0x0045\n monitor-exit(r1)\n return\n L_0x0045:\n java.util.LinkedList<java.io.File> r3 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r3 != 0) goto L_0x004c\n b(r18) // Catch:{ Throwable -> 0x0083 }\n L_0x004c:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n if (r0 != 0) goto L_0x0052\n monitor-exit(r1)\n return\n L_0x0052:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 <= r4) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n int r0 = r0.size() // Catch:{ Throwable -> 0x0083 }\n if (r0 <= 0) goto L_0x006f\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n java.lang.Object r0 = r0.removeFirst() // Catch:{ Throwable -> 0x0083 }\n java.io.File r0 = (java.io.File) r0 // Catch:{ Throwable -> 0x0083 }\n r0.delete() // Catch:{ Throwable -> 0x0083 }\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n int r0 = r0 - r2\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n goto L_0x0052\n L_0x006f:\n int r0 = f28181b // Catch:{ Throwable -> 0x0083 }\n if (r0 >= 0) goto L_0x0076\n r0 = -1\n f28181b = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0076:\n java.util.LinkedList<java.io.File> r0 = f28182c // Catch:{ Throwable -> 0x0083 }\n boolean r0 = r0.isEmpty() // Catch:{ Throwable -> 0x0083 }\n if (r0 == 0) goto L_0x0081\n r0 = 0\n f28182c = r0 // Catch:{ Throwable -> 0x0083 }\n L_0x0081:\n monitor-exit(r1)\n return\n L_0x0083:\n monitor-exit(r1)\n return\n L_0x0085:\n r0 = move-exception\n monitor-exit(r1)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.common.applog.n.a(android.content.Context):void\");\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "@Override // kotlinx.coroutines.flow.FlowCollector\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Object emit(java.lang.Object r9, kotlin.coroutines.Continuation r10) {\n /*\n r8 = this;\n boolean r0 = r10 instanceof kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1\n if (r0 == 0) goto L_0x0013\n r0 = r10\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r0\n int r1 = r0.label\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.label = r1\n goto L_0x0018\n L_0x0013:\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r0 = new kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1\n r0.<init>(r10)\n L_0x0018:\n java.lang.Object r10 = r0.result\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.label\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x005e\n if (r2 == r4) goto L_0x0044\n if (r2 != r3) goto L_0x003c\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r8 = r0.L$4\n kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8\n java.lang.Object r8 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r8\n java.lang.Object r8 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r8 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r8\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x009b\n L_0x003c:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.String r9 = \"call to 'resume' before 'invoke' with coroutine\"\n r8.<init>(r9)\n throw r8\n L_0x0044:\n java.lang.Object r8 = r0.L$6\n kotlinx.coroutines.flow.FlowCollector r8 = (kotlinx.coroutines.flow.FlowCollector) r8\n java.lang.Object r9 = r0.L$5\n java.lang.Object r2 = r0.L$4\n kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2\n java.lang.Object r4 = r0.L$3\n java.lang.Object r5 = r0.L$2\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2$1 r5 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.AnonymousClass1) r5\n java.lang.Object r6 = r0.L$1\n java.lang.Object r7 = r0.L$0\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2 r7 = (kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2) r7\n kotlin.ResultKt.throwOnFailure(r10)\n goto L_0x0084\n L_0x005e:\n kotlin.ResultKt.throwOnFailure(r10)\n kotlinx.coroutines.flow.FlowCollector r10 = kotlinx.coroutines.flow.FlowCollector.this\n kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1 r2 = r2\n kotlin.jvm.functions.Function2 r2 = r2.$action$inlined\n r0.L$0 = r8\n r0.L$1 = r9\n r0.L$2 = r0\n r0.L$3 = r9\n r0.L$4 = r0\n r0.L$5 = r9\n r0.L$6 = r10\n r0.label = r4\n java.lang.Object r2 = r2.invoke(r9, r0)\n if (r2 != r1) goto L_0x007e\n return r1\n L_0x007e:\n r7 = r8\n r4 = r9\n r6 = r4\n r8 = r10\n r2 = r0\n r5 = r2\n L_0x0084:\n r0.L$0 = r7\n r0.L$1 = r6\n r0.L$2 = r5\n r0.L$3 = r4\n r0.L$4 = r2\n r0.L$5 = r9\n r0.L$6 = r8\n r0.label = r3\n java.lang.Object r10 = r8.emit(r9, r0)\n if (r10 != r1) goto L_0x009b\n return r1\n L_0x009b:\n return r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1.AnonymousClass2.emit(java.lang.Object, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public void zzg(java.util.Map<java.lang.String, java.lang.String> r13) {\n /*\n r12 = this;\n r4 = -1;\n r5 = 1;\n r3 = 0;\n r6 = r12.zznh;\n monitor-enter(r6);\n r1 = r12.zztn;\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x0011;\n L_0x000a:\n r1 = \"Not an activity context. Cannot resize.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n L_0x0010:\n return;\n L_0x0011:\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r1 = r1.zzad();\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x0023;\n L_0x0019:\n r1 = \"Webview is not yet available, size is not set.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0020:\n r1 = move-exception;\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n throw r1;\n L_0x0023:\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r1 = r1.zzad();\t Catch:{ all -> 0x0020 }\n r1 = r1.zzpb;\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0034;\n L_0x002d:\n r1 = \"Is interstitial. Cannot resize an interstitial.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0034:\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r1 = r1.zzeK();\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0043;\n L_0x003c:\n r1 = \"Cannot resize an expanded banner.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0043:\n r12.zzf(r13);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzcN();\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x0053;\n L_0x004c:\n r1 = \"Invalid width and height options. Cannot resize.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0053:\n r1 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r7 = r1.getWindow();\t Catch:{ all -> 0x0020 }\n if (r7 == 0) goto L_0x0061;\n L_0x005b:\n r1 = r7.getDecorView();\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x0068;\n L_0x0061:\n r1 = \"Activity context is not ready, cannot get window or decor view.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0068:\n r8 = r12.zzcO();\t Catch:{ all -> 0x0020 }\n if (r8 != 0) goto L_0x0075;\n L_0x006e:\n r1 = \"Resize location out of screen or close button is not visible.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x0075:\n r1 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ all -> 0x0020 }\n r2 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r9 = r12.zzli;\t Catch:{ all -> 0x0020 }\n r9 = r1.zzb(r2, r9);\t Catch:{ all -> 0x0020 }\n r1 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ all -> 0x0020 }\n r2 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r10 = r12.zzlj;\t Catch:{ all -> 0x0020 }\n r10 = r1.zzb(r2, r10);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r1 = r1.getWebView();\t Catch:{ all -> 0x0020 }\n r2 = r1.getParent();\t Catch:{ all -> 0x0020 }\n if (r2 == 0) goto L_0x01d5;\n L_0x0099:\n r1 = r2 instanceof android.view.ViewGroup;\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x01d5;\n L_0x009d:\n r0 = r2;\n r0 = (android.view.ViewGroup) r0;\t Catch:{ all -> 0x0020 }\n r1 = r0;\n r11 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r11 = r11.getWebView();\t Catch:{ all -> 0x0020 }\n r1.removeView(r11);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztr;\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x01ce;\n L_0x00ae:\n r2 = (android.view.ViewGroup) r2;\t Catch:{ all -> 0x0020 }\n r12.zztt = r2;\t Catch:{ all -> 0x0020 }\n r1 = com.google.android.gms.internal.zzab.zzaM();\t Catch:{ all -> 0x0020 }\n r2 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = r2.getWebView();\t Catch:{ all -> 0x0020 }\n r1 = r1.zzh(r2);\t Catch:{ all -> 0x0020 }\n r2 = new android.widget.ImageView;\t Catch:{ all -> 0x0020 }\n r11 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r2.<init>(r11);\t Catch:{ all -> 0x0020 }\n r12.zzto = r2;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzto;\t Catch:{ all -> 0x0020 }\n r2.setImageBitmap(r1);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r1 = r1.zzad();\t Catch:{ all -> 0x0020 }\n r12.zzsF = r1;\t Catch:{ all -> 0x0020 }\n r1 = r12.zztt;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzto;\t Catch:{ all -> 0x0020 }\n r1.addView(r2);\t Catch:{ all -> 0x0020 }\n L_0x00dd:\n r1 = new android.widget.RelativeLayout;\t Catch:{ all -> 0x0020 }\n r2 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r1.<init>(r2);\t Catch:{ all -> 0x0020 }\n r12.zzts = r1;\t Catch:{ all -> 0x0020 }\n r1 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r2 = 0;\n r1.setBackgroundColor(r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r2 = new android.view.ViewGroup$LayoutParams;\t Catch:{ all -> 0x0020 }\n r2.<init>(r9, r10);\t Catch:{ all -> 0x0020 }\n r1.setLayoutParams(r2);\t Catch:{ all -> 0x0020 }\n r1 = com.google.android.gms.internal.zzab.zzaM();\t Catch:{ all -> 0x0020 }\n r2 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r11 = 0;\n r1 = r1.zza(r2, r9, r10, r11);\t Catch:{ all -> 0x0020 }\n r12.zztr = r1;\t Catch:{ all -> 0x0020 }\n r1 = r12.zztr;\t Catch:{ all -> 0x0020 }\n r2 = 1;\n r1.setOutsideTouchable(r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztr;\t Catch:{ all -> 0x0020 }\n r2 = 1;\n r1.setTouchable(r2);\t Catch:{ all -> 0x0020 }\n r2 = r12.zztr;\t Catch:{ all -> 0x0020 }\n r1 = r12.zzti;\t Catch:{ all -> 0x0020 }\n if (r1 != 0) goto L_0x01dd;\n L_0x0115:\n r1 = r5;\n L_0x0116:\n r2.setClippingEnabled(r1);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = r2.getWebView();\t Catch:{ all -> 0x0020 }\n r9 = -1;\n r10 = -1;\n r1.addView(r2, r9, r10);\t Catch:{ all -> 0x0020 }\n r1 = new android.widget.LinearLayout;\t Catch:{ all -> 0x0020 }\n r2 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r1.<init>(r2);\t Catch:{ all -> 0x0020 }\n r12.zztp = r1;\t Catch:{ all -> 0x0020 }\n r2 = new android.widget.RelativeLayout$LayoutParams;\t Catch:{ all -> 0x0020 }\n r1 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ all -> 0x0020 }\n r9 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r10 = 50;\n r1 = r1.zzb(r9, r10);\t Catch:{ all -> 0x0020 }\n r9 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ all -> 0x0020 }\n r10 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r11 = 50;\n r9 = r9.zzb(r10, r11);\t Catch:{ all -> 0x0020 }\n r2.<init>(r1, r9);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzth;\t Catch:{ all -> 0x0020 }\n r9 = r1.hashCode();\t Catch:{ all -> 0x0020 }\n switch(r9) {\n case -1364013995: goto L_0x01f6;\n case -1012429441: goto L_0x01e0;\n case -655373719: goto L_0x0201;\n case 1163912186: goto L_0x0217;\n case 1288627767: goto L_0x020c;\n case 1755462605: goto L_0x01eb;\n default: goto L_0x0155;\n };\t Catch:{ all -> 0x0020 }\n L_0x0155:\n r1 = r4;\n L_0x0156:\n switch(r1) {\n case 0: goto L_0x0222;\n case 1: goto L_0x022e;\n case 2: goto L_0x023a;\n case 3: goto L_0x0241;\n case 4: goto L_0x024d;\n case 5: goto L_0x0259;\n default: goto L_0x0159;\n };\t Catch:{ all -> 0x0020 }\n L_0x0159:\n r1 = 10;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 11;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n L_0x0163:\n r1 = r12.zztp;\t Catch:{ all -> 0x0020 }\n r3 = new com.google.android.gms.internal.zzeb$1;\t Catch:{ all -> 0x0020 }\n r3.<init>(r12);\t Catch:{ all -> 0x0020 }\n r1.setOnClickListener(r3);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztp;\t Catch:{ all -> 0x0020 }\n r3 = \"Close button\";\n r1.setContentDescription(r3);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r3 = r12.zztp;\t Catch:{ all -> 0x0020 }\n r1.addView(r3, r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztr;\t Catch:{ RuntimeException -> 0x0265 }\n r2 = r7.getDecorView();\t Catch:{ RuntimeException -> 0x0265 }\n r3 = 0;\n r4 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ RuntimeException -> 0x0265 }\n r5 = r12.zztn;\t Catch:{ RuntimeException -> 0x0265 }\n r7 = 0;\n r7 = r8[r7];\t Catch:{ RuntimeException -> 0x0265 }\n r4 = r4.zzb(r5, r7);\t Catch:{ RuntimeException -> 0x0265 }\n r5 = com.google.android.gms.internal.zzbe.zzbD();\t Catch:{ RuntimeException -> 0x0265 }\n r7 = r12.zztn;\t Catch:{ RuntimeException -> 0x0265 }\n r9 = 1;\n r9 = r8[r9];\t Catch:{ RuntimeException -> 0x0265 }\n r5 = r5.zzb(r7, r9);\t Catch:{ RuntimeException -> 0x0265 }\n r1.showAtLocation(r2, r3, r4, r5);\t Catch:{ RuntimeException -> 0x0265 }\n r1 = 0;\n r1 = r8[r1];\t Catch:{ all -> 0x0020 }\n r2 = 1;\n r2 = r8[r2];\t Catch:{ all -> 0x0020 }\n r12.zzc(r1, r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = new com.google.android.gms.internal.zzba;\t Catch:{ all -> 0x0020 }\n r3 = r12.zztn;\t Catch:{ all -> 0x0020 }\n r4 = new com.google.android.gms.ads.AdSize;\t Catch:{ all -> 0x0020 }\n r5 = r12.zzli;\t Catch:{ all -> 0x0020 }\n r7 = r12.zzlj;\t Catch:{ all -> 0x0020 }\n r4.<init>(r5, r7);\t Catch:{ all -> 0x0020 }\n r2.<init>(r3, r4);\t Catch:{ all -> 0x0020 }\n r1.zza(r2);\t Catch:{ all -> 0x0020 }\n r1 = 0;\n r1 = r8[r1];\t Catch:{ all -> 0x0020 }\n r2 = 1;\n r2 = r8[r2];\t Catch:{ all -> 0x0020 }\n r12.zzd(r1, r2);\t Catch:{ all -> 0x0020 }\n r1 = \"resized\";\n r12.zzJ(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x01ce:\n r1 = r12.zztr;\t Catch:{ all -> 0x0020 }\n r1.dismiss();\t Catch:{ all -> 0x0020 }\n goto L_0x00dd;\n L_0x01d5:\n r1 = \"Webview is detached, probably in the middle of a resize or expand.\";\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n L_0x01dd:\n r1 = r3;\n goto L_0x0116;\n L_0x01e0:\n r5 = \"top-left\";\n r1 = r1.equals(r5);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x01e8:\n r1 = r3;\n goto L_0x0156;\n L_0x01eb:\n r3 = \"top-center\";\n r1 = r1.equals(r3);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x01f3:\n r1 = r5;\n goto L_0x0156;\n L_0x01f6:\n r3 = \"center\";\n r1 = r1.equals(r3);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x01fe:\n r1 = 2;\n goto L_0x0156;\n L_0x0201:\n r3 = \"bottom-left\";\n r1 = r1.equals(r3);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x0209:\n r1 = 3;\n goto L_0x0156;\n L_0x020c:\n r3 = \"bottom-center\";\n r1 = r1.equals(r3);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x0214:\n r1 = 4;\n goto L_0x0156;\n L_0x0217:\n r3 = \"bottom-right\";\n r1 = r1.equals(r3);\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x0155;\n L_0x021f:\n r1 = 5;\n goto L_0x0156;\n L_0x0222:\n r1 = 10;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 9;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x022e:\n r1 = 10;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 14;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x023a:\n r1 = 13;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x0241:\n r1 = 12;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 9;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x024d:\n r1 = 12;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 14;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x0259:\n r1 = 12;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n r1 = 11;\n r2.addRule(r1);\t Catch:{ all -> 0x0020 }\n goto L_0x0163;\n L_0x0265:\n r1 = move-exception;\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0020 }\n r2.<init>();\t Catch:{ all -> 0x0020 }\n r3 = \"Cannot show popup window: \";\n r2 = r2.append(r3);\t Catch:{ all -> 0x0020 }\n r1 = r1.getMessage();\t Catch:{ all -> 0x0020 }\n r1 = r2.append(r1);\t Catch:{ all -> 0x0020 }\n r1 = r1.toString();\t Catch:{ all -> 0x0020 }\n r12.zzH(r1);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzts;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = r2.getWebView();\t Catch:{ all -> 0x0020 }\n r1.removeView(r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztt;\t Catch:{ all -> 0x0020 }\n if (r1 == 0) goto L_0x02a8;\n L_0x028f:\n r1 = r12.zztt;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzto;\t Catch:{ all -> 0x0020 }\n r1.removeView(r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zztt;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = r2.getWebView();\t Catch:{ all -> 0x0020 }\n r1.addView(r2);\t Catch:{ all -> 0x0020 }\n r1 = r12.zzmu;\t Catch:{ all -> 0x0020 }\n r2 = r12.zzsF;\t Catch:{ all -> 0x0020 }\n r1.zza(r2);\t Catch:{ all -> 0x0020 }\n L_0x02a8:\n monitor-exit(r6);\t Catch:{ all -> 0x0020 }\n goto L_0x0010;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzeb.zzg(java.util.Map):void\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "private static void a(com.bytedance.crash.nativecrash.c r10) {\n /*\n java.lang.String r0 = \".info\"\n java.io.File r10 = r10.a((java.lang.String) r0)\n boolean r0 = r10.isFile()\n if (r0 == 0) goto L_0x009b\n java.util.Properties r0 = new java.util.Properties\n r0.<init>()\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Throwable -> 0x0094 }\n r2.<init>(r10) // Catch:{ Throwable -> 0x0094 }\n r0.load(r2) // Catch:{ Throwable -> 0x0093 }\n r2.close() // Catch:{ Throwable -> 0x0093 }\n java.lang.String r2 = \"alogJsonGenerated\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 != 0) goto L_0x009b\n java.lang.String r2 = \"aloglogdir\"\n java.lang.String r2 = r0.getProperty(r2)\n if (r2 == 0) goto L_0x009b\n java.lang.String r3 = \"crash_time\"\n java.lang.String r3 = r0.getProperty(r3)\n r4 = 0\n if (r3 == 0) goto L_0x0042\n java.lang.Long r3 = java.lang.Long.valueOf(r3) // Catch:{ NumberFormatException -> 0x0041 }\n long r6 = r3.longValue() // Catch:{ NumberFormatException -> 0x0041 }\n r4 = r6\n goto L_0x0042\n L_0x0041:\n L_0x0042:\n java.lang.String r3 = \"process_name\"\n java.lang.String r3 = r0.getProperty(r3)\n if (r3 != 0) goto L_0x004c\n java.lang.String r3 = \"\"\n L_0x004c:\n com.bytedance.crash.a.e r6 = new com.bytedance.crash.a.e\n r6.<init>(r3)\n java.util.List r2 = r6.a(r2, r4)\n com.bytedance.crash.e.d r2 = com.bytedance.crash.a.a.a((java.util.List<java.lang.String>) r2)\n boolean r3 = com.bytedance.crash.a.a.a((com.bytedance.crash.e.d) r2)\n if (r3 != 0) goto L_0x0060\n return\n L_0x0060:\n android.content.Context r3 = com.bytedance.crash.j.d()\n java.io.File r4 = com.bytedance.crash.i.h.c(r3)\n java.lang.String r5 = com.bytedance.crash.i.h.a()\n java.lang.String r6 = r2.f19427e\n java.lang.String r7 = r2.f19428f\n java.lang.String r8 = r2.g\n java.util.List<java.lang.String> r9 = r2.h\n com.bytedance.crash.i.d.a((java.io.File) r4, (java.lang.String) r5, (java.lang.String) r6, (java.lang.String) r7, (java.lang.String) r8, (java.util.List<java.lang.String>) r9)\n java.io.FileOutputStream r2 = new java.io.FileOutputStream // Catch:{ Throwable -> 0x008d }\n r2.<init>(r10) // Catch:{ Throwable -> 0x008d }\n java.lang.String r10 = \"alogJsonGenerated\"\n java.lang.String r1 = \"true\"\n r0.setProperty(r10, r1) // Catch:{ Throwable -> 0x008c }\n java.lang.String r10 = \"\"\n r0.store(r2, r10) // Catch:{ Throwable -> 0x008c }\n r2.close() // Catch:{ Throwable -> 0x008c }\n return\n L_0x008c:\n r1 = r2\n L_0x008d:\n if (r1 == 0) goto L_0x009b\n r1.close() // Catch:{ Throwable -> 0x009b }\n return\n L_0x0093:\n r1 = r2\n L_0x0094:\n if (r1 == 0) goto L_0x009a\n r1.close() // Catch:{ Throwable -> 0x009a }\n return\n L_0x009a:\n return\n L_0x009b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.crash.runtime.d.a(com.bytedance.crash.nativecrash.c):void\");\n }", "private void zzbJ(int r6) {\n /*\n r5 = this;\n r0 = 8;\n if (r6 != r0) goto L_0x0035;\n L_0x0004:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n if (r0 == 0) goto L_0x0030;\n L_0x000b:\n r2 = mTwiceBaseCache;\t Catch:{ all -> 0x0067 }\n r5.mArray = r2;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0067 }\n mTwiceBaseCache = r0;\t Catch:{ all -> 0x0067 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0067 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0067 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0067 }\n r2[r0] = r4;\t Catch:{ all -> 0x0067 }\n r0 = mTwiceBaseCacheSize;\t Catch:{ all -> 0x0067 }\n r0 = r0 + -1;\n mTwiceBaseCacheSize = r0;\t Catch:{ all -> 0x0067 }\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n L_0x002f:\n return;\n L_0x0030:\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n r0 = com.google.android.gms.internal.zzkq.a;\t Catch:{ ClassCastException -> 0x006a }\n if (r0 == 0) goto L_0x006d;\n L_0x0035:\n r0 = 4;\n if (r6 != r0) goto L_0x006d;\n L_0x0038:\n r1 = com.google.android.gms.internal.zzld.class;\n monitor-enter(r1);\n r0 = mBaseCache;\t Catch:{ all -> 0x0064 }\n if (r0 == 0) goto L_0x006c;\n L_0x003f:\n r2 = mBaseCache;\t Catch:{ all -> 0x0064 }\n r5.mArray = r2;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (java.lang.Object[]) r0;\t Catch:{ all -> 0x0064 }\n mBaseCache = r0;\t Catch:{ all -> 0x0064 }\n r0 = 1;\n r0 = r2[r0];\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r0 = (int[]) r0;\t Catch:{ all -> 0x0064 }\n r5.mHashes = r0;\t Catch:{ all -> 0x0064 }\n r0 = 0;\n r3 = 1;\n r4 = 0;\n r2[r3] = r4;\t Catch:{ all -> 0x0064 }\n r2[r0] = r4;\t Catch:{ all -> 0x0064 }\n r0 = mBaseCacheSize;\t Catch:{ all -> 0x0064 }\n r0 = r0 + -1;\n mBaseCacheSize = r0;\t Catch:{ all -> 0x0064 }\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n goto L_0x002f;\n L_0x0064:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n throw r0;\n L_0x0067:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0067 }\n throw r0;\n L_0x006a:\n r0 = move-exception;\n throw r0;\n L_0x006c:\n monitor-exit(r1);\t Catch:{ all -> 0x0064 }\n L_0x006d:\n r0 = new int[r6];\n r5.mHashes = r0;\n r0 = r6 << 1;\n r0 = new java.lang.Object[r0];\n r5.mArray = r0;\n goto L_0x002f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.zzbJ(int):void\");\n }", "AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public final int mo115441d(java.lang.String r9, java.lang.Object[] r10, com.tencent.wcdb.support.C46443a r11) {\n /*\n r8 = this;\n if (r9 == 0) goto L_0x0091\n r0 = 0\n com.tencent.wcdb.database.SQLiteConnection$b r1 = r8.f119474e\n java.lang.String r2 = \"executeForChangedRowCount\"\n com.tencent.wcdb.database.SQLiteConnection$a r1 = r1.mo115446a(r2, r9, r10)\n int r2 = r1.f119496h\n com.tencent.wcdb.database.SQLiteConnection$c r3 = r8.m145774e(r9) // Catch:{ RuntimeException -> 0x005d }\n int r4 = r3.f119507e // Catch:{ RuntimeException -> 0x005d }\n r1.f119497i = r4 // Catch:{ RuntimeException -> 0x005d }\n r8.m145770c(r3) // Catch:{ all -> 0x0056 }\n r8.m145765a(r3, r10) // Catch:{ all -> 0x0056 }\n r8.m145768b(r11) // Catch:{ all -> 0x0056 }\n long r4 = r8.f119482o // Catch:{ all -> 0x0051 }\n long r6 = r3.f119505c // Catch:{ all -> 0x0051 }\n int r10 = nativeExecuteForChangedRowCount(r4, r6) // Catch:{ all -> 0x0051 }\n r8.mo115430a(r11) // Catch:{ all -> 0x004e }\n r8.mo115428a(r3) // Catch:{ RuntimeException -> 0x004b, all -> 0x0048 }\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e\n boolean r9 = r9.mo115451b(r2)\n if (r9 == 0) goto L_0x0047\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e\n java.lang.StringBuilder r11 = new java.lang.StringBuilder\n java.lang.String r0 = \"changedRows=\"\n r11.<init>(r0)\n r11.append(r10)\n java.lang.String r11 = r11.toString()\n r9.mo115450a(r2, r11)\n L_0x0047:\n return r10\n L_0x0048:\n r9 = move-exception\n r0 = r10\n goto L_0x0075\n L_0x004b:\n r11 = move-exception\n r0 = r10\n goto L_0x005e\n L_0x004e:\n r11 = move-exception\n r0 = r10\n goto L_0x0057\n L_0x0051:\n r10 = move-exception\n r8.mo115430a(r11) // Catch:{ all -> 0x0056 }\n throw r10 // Catch:{ all -> 0x0056 }\n L_0x0056:\n r11 = move-exception\n L_0x0057:\n r8.mo115428a(r3) // Catch:{ RuntimeException -> 0x005d }\n throw r11 // Catch:{ RuntimeException -> 0x005d }\n L_0x005b:\n r9 = move-exception\n goto L_0x0075\n L_0x005d:\n r11 = move-exception\n L_0x005e:\n boolean r10 = r11 instanceof com.tencent.wcdb.database.SQLiteDatabaseLockedException // Catch:{ all -> 0x005b }\n if (r10 != 0) goto L_0x0066\n boolean r10 = r11 instanceof com.tencent.wcdb.database.SQLiteTableLockedException // Catch:{ all -> 0x005b }\n if (r10 == 0) goto L_0x006f\n L_0x0066:\n com.tencent.wcdb.database.d r10 = r8.f119471b // Catch:{ all -> 0x005b }\n if (r10 == 0) goto L_0x006f\n com.tencent.wcdb.database.d r10 = r8.f119471b // Catch:{ all -> 0x005b }\n r10.mo115490a(r9) // Catch:{ all -> 0x005b }\n L_0x006f:\n com.tencent.wcdb.database.SQLiteConnection$b r9 = r8.f119474e // Catch:{ all -> 0x005b }\n r9.mo115449a(r2, r11) // Catch:{ all -> 0x005b }\n throw r11 // Catch:{ all -> 0x005b }\n L_0x0075:\n com.tencent.wcdb.database.SQLiteConnection$b r10 = r8.f119474e\n boolean r10 = r10.mo115451b(r2)\n if (r10 == 0) goto L_0x0090\n com.tencent.wcdb.database.SQLiteConnection$b r10 = r8.f119474e\n java.lang.StringBuilder r11 = new java.lang.StringBuilder\n java.lang.String r1 = \"changedRows=\"\n r11.<init>(r1)\n r11.append(r0)\n java.lang.String r11 = r11.toString()\n r10.mo115450a(r2, r11)\n L_0x0090:\n throw r9\n L_0x0091:\n java.lang.IllegalArgumentException r9 = new java.lang.IllegalArgumentException\n java.lang.String r10 = \"sql must not be null.\"\n r9.<init>(r10)\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wcdb.database.SQLiteConnection.mo115441d(java.lang.String, java.lang.Object[], com.tencent.wcdb.support.a):int\");\n }", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "private final boolean updateState(java.lang.Object r7, java.lang.Object r8) {\n /*\n // Method dump skipped, instructions count: 101\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.StateFlowImpl.updateState(java.lang.Object, java.lang.Object):boolean\");\n }", "private static void m14201a(Map<String, String> r13, JSONArray r14, JSONArray r15) {\n /*\n r0 = 1\n r1 = 0\n r2 = 0\n r3 = 1\n L_0x0004:\n int r4 = r14.length() // Catch:{ all -> 0x0242 }\n r5 = 0\n r6 = 2\n if (r2 >= r4) goto L_0x01da\n java.lang.Object r4 = r14.get(r2) // Catch:{ all -> 0x0242 }\n org.json.JSONObject r4 = (org.json.JSONObject) r4 // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x001d\n int r7 = r4.length() // Catch:{ all -> 0x0242 }\n if (r7 >= r6) goto L_0x001d\n L_0x001a:\n r3 = 0\n goto L_0x01da\n L_0x001d:\n java.lang.String r7 = \"fld\"\n java.lang.String r7 = r4.optString(r7) // Catch:{ all -> 0x0242 }\n java.lang.String r8 = \"val\"\n java.lang.String r8 = r4.optString(r8) // Catch:{ all -> 0x0242 }\n java.lang.String r9 = \"opc\"\n java.lang.String r4 = r4.optString(r9) // Catch:{ all -> 0x0242 }\n if (r7 == 0) goto L_0x001a\n if (r8 == 0) goto L_0x001a\n if (r4 != 0) goto L_0x0036\n goto L_0x001a\n L_0x0036:\n com.efs.sdk.base.a.c.a r9 = com.efs.sdk.base.p176a.p181d.C1682a.m14214a() // Catch:{ all -> 0x0242 }\n android.content.Context r10 = r9.f11299c // Catch:{ all -> 0x0242 }\n java.util.Map r9 = r9.mo9636a() // Catch:{ all -> 0x0242 }\n java.lang.String r11 = \"ver\"\n boolean r11 = r11.equals(r7) // Catch:{ all -> 0x0242 }\n if (r11 == 0) goto L_0x004d\n java.lang.String r9 = com.efs.sdk.base.p176a.p187h.C1730f.m14314a(r10) // Catch:{ all -> 0x0242 }\n goto L_0x0089\n L_0x004d:\n java.lang.String r11 = \"datetime\"\n boolean r11 = r11.equals(r7) // Catch:{ all -> 0x0242 }\n if (r11 == 0) goto L_0x0068\n java.text.SimpleDateFormat r9 = f11331a // Catch:{ all -> 0x0242 }\n java.util.Date r10 = new java.util.Date // Catch:{ all -> 0x0242 }\n com.efs.sdk.base.p176a.p177a.C1651a.m14131a() // Catch:{ all -> 0x0242 }\n long r11 = com.efs.sdk.base.p176a.p177a.C1651a.m14134b() // Catch:{ all -> 0x0242 }\n r10.<init>(r11) // Catch:{ all -> 0x0242 }\n java.lang.String r9 = r9.format(r10) // Catch:{ all -> 0x0242 }\n goto L_0x0089\n L_0x0068:\n java.lang.String r11 = \"pkg\"\n boolean r11 = r11.equals(r7) // Catch:{ all -> 0x0242 }\n if (r11 == 0) goto L_0x0075\n java.lang.String r9 = r10.getPackageName() // Catch:{ all -> 0x0242 }\n goto L_0x0089\n L_0x0075:\n boolean r10 = r9.isEmpty() // Catch:{ all -> 0x0242 }\n if (r10 != 0) goto L_0x0088\n boolean r10 = r9.containsKey(r7) // Catch:{ all -> 0x0242 }\n if (r10 == 0) goto L_0x0088\n java.lang.Object r9 = r9.get(r7) // Catch:{ all -> 0x0242 }\n java.lang.String r9 = (java.lang.String) r9 // Catch:{ all -> 0x0242 }\n goto L_0x0089\n L_0x0088:\n r9 = r5\n L_0x0089:\n if (r9 != 0) goto L_0x0094\n java.lang.String r7 = \"isNull\"\n boolean r4 = r7.equals(r4) // Catch:{ all -> 0x0242 }\n if (r4 != 0) goto L_0x01d6\n goto L_0x001a\n L_0x0094:\n r10 = -1\n int r11 = r4.hashCode() // Catch:{ all -> 0x0242 }\n switch(r11) {\n case -1555538761: goto L_0x0135;\n case -1295482945: goto L_0x012a;\n case -567445985: goto L_0x011f;\n case 33: goto L_0x0115;\n case 60: goto L_0x010b;\n case 62: goto L_0x0101;\n case 1084: goto L_0x00f7;\n case 1921: goto L_0x00ed;\n case 1922: goto L_0x00e3;\n case 1952: goto L_0x00d9;\n case 1983: goto L_0x00ce;\n case 257797441: goto L_0x00c2;\n case 840862003: goto L_0x00b6;\n case 1743158238: goto L_0x00aa;\n case 2058039875: goto L_0x009e;\n default: goto L_0x009c;\n } // Catch:{ all -> 0x0242 }\n L_0x009c:\n goto L_0x013f\n L_0x009e:\n java.lang.String r11 = \"isEmpty\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 13\n goto L_0x013f\n L_0x00aa:\n java.lang.String r11 = \"endsWith\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 9\n goto L_0x013f\n L_0x00b6:\n java.lang.String r11 = \"matches\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 14\n goto L_0x013f\n L_0x00c2:\n java.lang.String r11 = \"equalsIgnoreCase\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 12\n goto L_0x013f\n L_0x00ce:\n java.lang.String r11 = \">=\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 3\n goto L_0x013f\n L_0x00d9:\n java.lang.String r11 = \"==\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 0\n goto L_0x013f\n L_0x00e3:\n java.lang.String r11 = \"<>\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 7\n goto L_0x013f\n L_0x00ed:\n java.lang.String r11 = \"<=\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 4\n goto L_0x013f\n L_0x00f7:\n java.lang.String r11 = \"!=\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 6\n goto L_0x013f\n L_0x0101:\n java.lang.String r11 = \">\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 1\n goto L_0x013f\n L_0x010b:\n java.lang.String r11 = \"<\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 2\n goto L_0x013f\n L_0x0115:\n java.lang.String r11 = \"!\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 5\n goto L_0x013f\n L_0x011f:\n java.lang.String r11 = \"contains\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 10\n goto L_0x013f\n L_0x012a:\n java.lang.String r11 = \"equals\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 11\n goto L_0x013f\n L_0x0135:\n java.lang.String r11 = \"startsWith\"\n boolean r4 = r4.equals(r11) // Catch:{ all -> 0x0242 }\n if (r4 == 0) goto L_0x013f\n r10 = 8\n L_0x013f:\n r4 = -100\n switch(r10) {\n case 0: goto L_0x01c4;\n case 1: goto L_0x01b4;\n case 2: goto L_0x01a4;\n case 3: goto L_0x0194;\n case 4: goto L_0x0184;\n case 5: goto L_0x0170;\n case 6: goto L_0x0170;\n case 7: goto L_0x0170;\n case 8: goto L_0x016a;\n case 9: goto L_0x0164;\n case 10: goto L_0x015e;\n case 11: goto L_0x0158;\n case 12: goto L_0x0152;\n case 13: goto L_0x014c;\n case 14: goto L_0x0146;\n default: goto L_0x0144;\n } // Catch:{ all -> 0x0242 }\n L_0x0144:\n goto L_0x01d4\n L_0x0146:\n boolean r3 = r9.matches(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x014c:\n boolean r3 = r9.isEmpty() // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x0152:\n boolean r3 = r9.equalsIgnoreCase(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x0158:\n boolean r3 = r9.equals(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x015e:\n boolean r3 = r9.contains(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x0164:\n boolean r3 = r9.endsWith(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x016a:\n boolean r3 = r9.startsWith(r8) // Catch:{ all -> 0x0242 }\n goto L_0x01d4\n L_0x0170:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x0181\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 == 0) goto L_0x017f\n L_0x017c:\n r3 = 1\n goto L_0x01d4\n L_0x017f:\n r3 = 0\n goto L_0x01d4\n L_0x0181:\n if (r3 == 0) goto L_0x017f\n goto L_0x017c\n L_0x0184:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x0191\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 > 0) goto L_0x017f\n goto L_0x017c\n L_0x0191:\n if (r3 > 0) goto L_0x017f\n goto L_0x017c\n L_0x0194:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x01a1\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 < 0) goto L_0x017f\n goto L_0x017c\n L_0x01a1:\n if (r3 < 0) goto L_0x017f\n goto L_0x017c\n L_0x01a4:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x01b1\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 >= 0) goto L_0x017f\n goto L_0x017c\n L_0x01b1:\n if (r3 >= 0) goto L_0x017f\n goto L_0x017c\n L_0x01b4:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x01c1\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 <= 0) goto L_0x017f\n goto L_0x017c\n L_0x01c1:\n if (r3 <= 0) goto L_0x017f\n goto L_0x017c\n L_0x01c4:\n int r3 = m14200a(r7, r9, r8) // Catch:{ all -> 0x0242 }\n if (r3 != r4) goto L_0x01d1\n int r3 = r9.compareTo(r8) // Catch:{ all -> 0x0242 }\n if (r3 != 0) goto L_0x017f\n goto L_0x017c\n L_0x01d1:\n if (r3 != 0) goto L_0x017f\n goto L_0x017c\n L_0x01d4:\n if (r3 == 0) goto L_0x01da\n L_0x01d6:\n int r2 = r2 + 1\n goto L_0x0004\n L_0x01da:\n if (r3 != 0) goto L_0x01dd\n return\n L_0x01dd:\n int r14 = r15.length() // Catch:{ all -> 0x0242 }\n if (r1 >= r14) goto L_0x0241\n java.lang.Object r14 = r15.get(r1) // Catch:{ all -> 0x0242 }\n org.json.JSONObject r14 = (org.json.JSONObject) r14 // Catch:{ all -> 0x0242 }\n if (r14 == 0) goto L_0x023e\n int r0 = r14.length() // Catch:{ all -> 0x0242 }\n if (r0 < r6) goto L_0x023e\n java.lang.String r0 = \"opt\"\n java.lang.String r0 = r14.optString(r0) // Catch:{ all -> 0x0242 }\n java.lang.String r2 = \"set\"\n java.lang.Object r2 = r14.opt(r2) // Catch:{ all -> 0x0242 }\n if (r0 == 0) goto L_0x023e\n if (r2 == 0) goto L_0x023e\n java.lang.String r3 = \"lt\"\n java.lang.String r3 = r14.optString(r3, r5) // Catch:{ all -> 0x0242 }\n java.lang.String r4 = \"net\"\n java.lang.String r14 = r14.optString(r4, r5) // Catch:{ all -> 0x0242 }\n java.lang.String r4 = \"_\"\n if (r3 == 0) goto L_0x0223\n java.lang.StringBuilder r7 = new java.lang.StringBuilder // Catch:{ all -> 0x0242 }\n r7.<init>() // Catch:{ all -> 0x0242 }\n r7.append(r0) // Catch:{ all -> 0x0242 }\n r7.append(r4) // Catch:{ all -> 0x0242 }\n r7.append(r3) // Catch:{ all -> 0x0242 }\n java.lang.String r0 = r7.toString() // Catch:{ all -> 0x0242 }\n L_0x0223:\n if (r14 == 0) goto L_0x0237\n java.lang.StringBuilder r3 = new java.lang.StringBuilder // Catch:{ all -> 0x0242 }\n r3.<init>() // Catch:{ all -> 0x0242 }\n r3.append(r0) // Catch:{ all -> 0x0242 }\n r3.append(r4) // Catch:{ all -> 0x0242 }\n r3.append(r14) // Catch:{ all -> 0x0242 }\n java.lang.String r0 = r3.toString() // Catch:{ all -> 0x0242 }\n L_0x0237:\n java.lang.String r14 = java.lang.String.valueOf(r2) // Catch:{ all -> 0x0242 }\n r13.put(r0, r14) // Catch:{ all -> 0x0242 }\n L_0x023e:\n int r1 = r1 + 1\n goto L_0x01dd\n L_0x0241:\n return\n L_0x0242:\n r13 = move-exception\n java.lang.String r14 = \"efs.config\"\n java.lang.String r15 = \"updateConfigCond error\"\n com.efs.sdk.base.p176a.p187h.C1728d.m14309b(r14, r15, r13)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.efs.sdk.base.p176a.p179c.p180a.C1677d.m14201a(java.util.Map, org.json.JSONArray, org.json.JSONArray):void\");\n }", "public final synchronized void b(android.content.Context r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x007b }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x007b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x007b }\n r4 = 0\n r5 = 16791(0x4197, float:2.3529E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x007b }\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r6[r9] = r2 // Catch:{ all -> 0x007b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x007b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x007b }\n r1[r9] = r11 // Catch:{ all -> 0x007b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x007b }\n r4 = 0\n r5 = 16791(0x4197, float:2.3529E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x007b }\n java.lang.Class<android.content.Context> r0 = android.content.Context.class\n r6[r9] = r0 // Catch:{ all -> 0x007b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x007b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x007b }\n monitor-exit(r10)\n return\n L_0x0032:\n java.lang.String r1 = \"window\"\n java.lang.Object r0 = r11.getSystemService(r1) // Catch:{ all -> 0x007b }\n android.view.WindowManager r0 = (android.view.WindowManager) r0 // Catch:{ all -> 0x007b }\n android.view.Display r0 = r0.getDefaultDisplay() // Catch:{ all -> 0x007b }\n int r0 = r0.getRotation() // Catch:{ all -> 0x007b }\n switch(r0) {\n case 0: goto L_0x004e;\n case 1: goto L_0x004c;\n case 2: goto L_0x0049;\n case 3: goto L_0x0046;\n default: goto L_0x0045;\n } // Catch:{ all -> 0x007b }\n L_0x0045:\n goto L_0x004e\n L_0x0046:\n r9 = 270(0x10e, float:3.78E-43)\n goto L_0x004e\n L_0x0049:\n r9 = 180(0xb4, float:2.52E-43)\n goto L_0x004e\n L_0x004c:\n r9 = 90\n L_0x004e:\n java.lang.Object r1 = r10.s // Catch:{ all -> 0x007b }\n monitor-enter(r1) // Catch:{ all -> 0x007b }\n com.ss.android.medialib.camera.IESCameraInterface r0 = r10.f29527c // Catch:{ all -> 0x0078 }\n int r0 = r0.b((int) r9) // Catch:{ all -> 0x0078 }\n monitor-exit(r1) // Catch:{ all -> 0x0078 }\n r10.h = r0 // Catch:{ all -> 0x007b }\n com.ss.android.medialib.presenter.b r1 = r10.f29528d // Catch:{ all -> 0x007b }\n if (r1 == 0) goto L_0x0076\n java.lang.String r1 = \"IESCameraManager\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x007b }\n java.lang.String r3 = \"摄像头偏转角度: \"\n r2.<init>(r3) // Catch:{ all -> 0x007b }\n r2.append(r0) // Catch:{ all -> 0x007b }\n java.lang.String r2 = r2.toString() // Catch:{ all -> 0x007b }\n com.ss.android.vesdk.y.a(r1, r2) // Catch:{ all -> 0x007b }\n com.ss.android.medialib.presenter.b r1 = r10.f29528d // Catch:{ all -> 0x007b }\n r1.b(r0) // Catch:{ all -> 0x007b }\n L_0x0076:\n monitor-exit(r10)\n return\n L_0x0078:\n r0 = move-exception\n monitor-exit(r1) // Catch:{ all -> 0x0078 }\n throw r0 // Catch:{ all -> 0x007b }\n L_0x007b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(android.content.Context):void\");\n }", "private final void zaa(java.lang.StringBuilder r10, java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>> r11, android.os.Parcel r12) {\n /*\n r9 = this;\n android.util.SparseArray r0 = new android.util.SparseArray\n r0.<init>()\n java.util.Set r11 = r11.entrySet()\n java.util.Iterator r11 = r11.iterator()\n L_0x000d:\n boolean r1 = r11.hasNext()\n if (r1 == 0) goto L_0x0027\n java.lang.Object r1 = r11.next()\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1\n java.lang.Object r2 = r1.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r2 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r2\n int r2 = r2.getSafeParcelableFieldId()\n r0.put(r2, r1)\n goto L_0x000d\n L_0x0027:\n r11 = 123(0x7b, float:1.72E-43)\n r10.append(r11)\n int r11 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.validateObjectHeader(r12)\n r1 = 1\n r2 = 0\n r3 = 0\n L_0x0033:\n int r4 = r12.dataPosition()\n if (r4 >= r11) goto L_0x0262\n int r4 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readHeader(r12)\n int r5 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.getFieldId(r4)\n java.lang.Object r5 = r0.get(r5)\n java.util.Map$Entry r5 = (java.util.Map.Entry) r5\n if (r5 == 0) goto L_0x0033\n if (r3 == 0) goto L_0x0050\n java.lang.String r3 = \",\"\n r10.append(r3)\n L_0x0050:\n java.lang.Object r3 = r5.getKey()\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r5 = r5.getValue()\n com.google.android.gms.common.server.response.FastJsonResponse$Field r5 = (com.google.android.gms.common.server.response.FastJsonResponse.Field) r5\n java.lang.String r6 = \"\\\"\"\n r10.append(r6)\n r10.append(r3)\n java.lang.String r3 = \"\\\":\"\n r10.append(r3)\n boolean r3 = r5.zacn()\n if (r3 == 0) goto L_0x010a\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x00f9;\n case 1: goto L_0x00f4;\n case 2: goto L_0x00eb;\n case 3: goto L_0x00e2;\n case 4: goto L_0x00d9;\n case 5: goto L_0x00d4;\n case 6: goto L_0x00cb;\n case 7: goto L_0x00c6;\n case 8: goto L_0x00c1;\n case 9: goto L_0x00c1;\n case 10: goto L_0x0097;\n case 11: goto L_0x008f;\n default: goto L_0x0074;\n }\n L_0x0074:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n int r11 = r5.zapt\n r12 = 36\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>(r12)\n java.lang.String r12 = \"Unknown field out type = \"\n r0.append(r12)\n r0.append(r11)\n java.lang.String r11 = r0.toString()\n r10.<init>(r11)\n throw r10\n L_0x008f:\n java.lang.IllegalArgumentException r10 = new java.lang.IllegalArgumentException\n java.lang.String r11 = \"Method does not accept concrete type.\"\n r10.<init>(r11)\n throw r10\n L_0x0097:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.HashMap r4 = new java.util.HashMap\n r4.<init>()\n java.util.Set r6 = r3.keySet()\n java.util.Iterator r6 = r6.iterator()\n L_0x00a8:\n boolean r7 = r6.hasNext()\n if (r7 == 0) goto L_0x00bc\n java.lang.Object r7 = r6.next()\n java.lang.String r7 = (java.lang.String) r7\n java.lang.String r8 = r3.getString(r7)\n r4.put(r7, r8)\n goto L_0x00a8\n L_0x00bc:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r4)\n goto L_0x0105\n L_0x00c1:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n goto L_0x0101\n L_0x00c6:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n goto L_0x0101\n L_0x00cb:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n goto L_0x0101\n L_0x00d4:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0101\n L_0x00d9:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n java.lang.Double r3 = java.lang.Double.valueOf(r3)\n goto L_0x0101\n L_0x00e2:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n java.lang.Float r3 = java.lang.Float.valueOf(r3)\n goto L_0x0101\n L_0x00eb:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n java.lang.Long r3 = java.lang.Long.valueOf(r3)\n goto L_0x0101\n L_0x00f4:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n goto L_0x0101\n L_0x00f9:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n L_0x0101:\n java.lang.Object r3 = zab(r5, (java.lang.Object) r3)\n L_0x0105:\n r9.zab((java.lang.StringBuilder) r10, (com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>) r5, (java.lang.Object) r3)\n goto L_0x025f\n L_0x010a:\n boolean r3 = r5.zapu\n if (r3 == 0) goto L_0x0188\n java.lang.String r3 = \"[\"\n r10.append(r3)\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x017d;\n case 1: goto L_0x0175;\n case 2: goto L_0x016d;\n case 3: goto L_0x0165;\n case 4: goto L_0x015d;\n case 5: goto L_0x0158;\n case 6: goto L_0x0150;\n case 7: goto L_0x0148;\n case 8: goto L_0x0140;\n case 9: goto L_0x0140;\n case 10: goto L_0x0140;\n case 11: goto L_0x0120;\n default: goto L_0x0118;\n }\n L_0x0118:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out.\"\n r10.<init>(r11)\n throw r10\n L_0x0120:\n android.os.Parcel[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcelArray(r12, r4)\n int r4 = r3.length\n r6 = 0\n L_0x0126:\n if (r6 >= r4) goto L_0x0184\n if (r6 <= 0) goto L_0x012f\n java.lang.String r7 = \",\"\n r10.append(r7)\n L_0x012f:\n r7 = r3[r6]\n r7.setDataPosition(r2)\n java.util.Map r7 = r5.zacq()\n r8 = r3[r6]\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r7, (android.os.Parcel) r8)\n int r6 = r6 + 1\n goto L_0x0126\n L_0x0140:\n java.lang.UnsupportedOperationException r10 = new java.lang.UnsupportedOperationException\n java.lang.String r11 = \"List of type BASE64, BASE64_URL_SAFE, or STRING_MAP is not supported\"\n r10.<init>(r11)\n throw r10\n L_0x0148:\n java.lang.String[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createStringArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeStringArray(r10, r3)\n goto L_0x0184\n L_0x0150:\n boolean[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBooleanArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (boolean[]) r3)\n goto L_0x0184\n L_0x0158:\n java.math.BigDecimal[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimalArray(r12, r4)\n goto L_0x0179\n L_0x015d:\n double[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createDoubleArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (double[]) r3)\n goto L_0x0184\n L_0x0165:\n float[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createFloatArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (float[]) r3)\n goto L_0x0184\n L_0x016d:\n long[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createLongArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (long[]) r3)\n goto L_0x0184\n L_0x0175:\n java.math.BigInteger[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigIntegerArray(r12, r4)\n L_0x0179:\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (T[]) r3)\n goto L_0x0184\n L_0x017d:\n int[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createIntArray(r12, r4)\n com.google.android.gms.common.util.ArrayUtils.writeArray((java.lang.StringBuilder) r10, (int[]) r3)\n L_0x0184:\n java.lang.String r3 = \"]\"\n goto L_0x0227\n L_0x0188:\n int r3 = r5.zapt\n switch(r3) {\n case 0: goto L_0x0258;\n case 1: goto L_0x0250;\n case 2: goto L_0x0248;\n case 3: goto L_0x0240;\n case 4: goto L_0x0238;\n case 5: goto L_0x0233;\n case 6: goto L_0x022b;\n case 7: goto L_0x0215;\n case 8: goto L_0x0207;\n case 9: goto L_0x01f9;\n case 10: goto L_0x01a5;\n case 11: goto L_0x0195;\n default: goto L_0x018d;\n }\n L_0x018d:\n java.lang.IllegalStateException r10 = new java.lang.IllegalStateException\n java.lang.String r11 = \"Unknown field type out\"\n r10.<init>(r11)\n throw r10\n L_0x0195:\n android.os.Parcel r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createParcel(r12, r4)\n r3.setDataPosition(r2)\n java.util.Map r4 = r5.zacq()\n r9.zaa((java.lang.StringBuilder) r10, (java.util.Map<java.lang.String, com.google.android.gms.common.server.response.FastJsonResponse.Field<?, ?>>) r4, (android.os.Parcel) r3)\n goto L_0x025f\n L_0x01a5:\n android.os.Bundle r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBundle(r12, r4)\n java.util.Set r4 = r3.keySet()\n r4.size()\n java.lang.String r5 = \"{\"\n r10.append(r5)\n java.util.Iterator r4 = r4.iterator()\n r5 = 1\n L_0x01ba:\n boolean r6 = r4.hasNext()\n if (r6 == 0) goto L_0x01f6\n java.lang.Object r6 = r4.next()\n java.lang.String r6 = (java.lang.String) r6\n if (r5 != 0) goto L_0x01cd\n java.lang.String r5 = \",\"\n r10.append(r5)\n L_0x01cd:\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r10.append(r6)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = \":\"\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n java.lang.String r5 = r3.getString(r6)\n java.lang.String r5 = com.google.android.gms.common.util.JsonUtils.escapeString(r5)\n r10.append(r5)\n java.lang.String r5 = \"\\\"\"\n r10.append(r5)\n r5 = 0\n goto L_0x01ba\n L_0x01f6:\n java.lang.String r3 = \"}\"\n goto L_0x0227\n L_0x01f9:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encodeUrlSafe(r3)\n goto L_0x0222\n L_0x0207:\n byte[] r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createByteArray(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.Base64Utils.encode(r3)\n goto L_0x0222\n L_0x0215:\n java.lang.String r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createString(r12, r4)\n java.lang.String r4 = \"\\\"\"\n r10.append(r4)\n java.lang.String r3 = com.google.android.gms.common.util.JsonUtils.escapeString(r3)\n L_0x0222:\n r10.append(r3)\n java.lang.String r3 = \"\\\"\"\n L_0x0227:\n r10.append(r3)\n goto L_0x025f\n L_0x022b:\n boolean r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readBoolean(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0233:\n java.math.BigDecimal r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigDecimal(r12, r4)\n goto L_0x0254\n L_0x0238:\n double r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readDouble(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0240:\n float r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readFloat(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0248:\n long r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readLong(r12, r4)\n r10.append(r3)\n goto L_0x025f\n L_0x0250:\n java.math.BigInteger r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.createBigInteger(r12, r4)\n L_0x0254:\n r10.append(r3)\n goto L_0x025f\n L_0x0258:\n int r3 = com.google.android.gms.common.internal.safeparcel.SafeParcelReader.readInt(r12, r4)\n r10.append(r3)\n L_0x025f:\n r3 = 1\n goto L_0x0033\n L_0x0262:\n int r0 = r12.dataPosition()\n if (r0 != r11) goto L_0x026e\n r11 = 125(0x7d, float:1.75E-43)\n r10.append(r11)\n return\n L_0x026e:\n com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException r10 = new com.google.android.gms.common.internal.safeparcel.SafeParcelReader$ParseException\n r0 = 37\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Overread allowed size end=\"\n r1.append(r0)\n r1.append(r11)\n java.lang.String r11 = r1.toString()\n r10.<init>(r11, r12)\n throw r10\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.server.response.SafeParcelResponse.zaa(java.lang.StringBuilder, java.util.Map, android.os.Parcel):void\");\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "final void d(android.support.v7.widget.RecyclerView.t r13, int r14) {\n /*\n r12 = this;\n r0 = r12.XG;\n if (r13 != r0) goto L_0x0009;\n L_0x0004:\n r0 = r12.XQ;\n if (r14 != r0) goto L_0x0009;\n L_0x0008:\n return;\n L_0x0009:\n r0 = -9223372036854775808;\n r12.Yb = r0;\n r4 = r12.XQ;\n r0 = 1;\n r12.a(r13, r0);\n r12.XQ = r14;\n r0 = 2;\n if (r14 != r0) goto L_0x0034;\n L_0x0018:\n r0 = r13.SU;\n r12.XX = r0;\n r0 = android.os.Build.VERSION.SDK_INT;\n r1 = 21;\n if (r0 >= r1) goto L_0x0034;\n L_0x0022:\n r0 = r12.RJ;\n if (r0 != 0) goto L_0x002d;\n L_0x0026:\n r0 = new android.support.v7.widget.a.a$5;\n r0.<init>(r12);\n r12.RJ = r0;\n L_0x002d:\n r0 = r12.Sa;\n r1 = r12.RJ;\n r0.setChildDrawingOrderCallback(r1);\n L_0x0034:\n r0 = 1;\n r1 = r14 * 8;\n r1 = r1 + 8;\n r0 = r0 << r1;\n r11 = r0 + -1;\n r0 = 0;\n r1 = r12.XG;\n if (r1 == 0) goto L_0x00d1;\n L_0x0041:\n r2 = r12.XG;\n r1 = r2.SU;\n r1 = r1.getParent();\n if (r1 == 0) goto L_0x017d;\n L_0x004b:\n r0 = 2;\n if (r4 == r0) goto L_0x0132;\n L_0x004e:\n r0 = r12.XQ;\n r1 = 2;\n if (r0 == r1) goto L_0x0132;\n L_0x0053:\n r0 = r12.XP;\n r0 = r0.hm();\n r1 = r12.Sa;\n r1 = android.support.v4.view.z.I(r1);\n r0 = android.support.v7.widget.a.a.a.ap(r0, r1);\n r1 = 65280; // 0xff00 float:9.1477E-41 double:3.22526E-319;\n r0 = r0 & r1;\n r0 = r0 >> 8;\n if (r0 == 0) goto L_0x0132;\n L_0x006b:\n r1 = r12.XL;\n r1 = java.lang.Math.abs(r1);\n r3 = r12.XM;\n r3 = java.lang.Math.abs(r3);\n r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r1 <= 0) goto L_0x0135;\n L_0x007b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x012c;\n L_0x0081:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0085:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n L_0x008f:\n r12.hl();\n switch(r9) {\n case 1: goto L_0x0163;\n case 2: goto L_0x0163;\n case 4: goto L_0x0151;\n case 8: goto L_0x0151;\n case 16: goto L_0x0151;\n case 32: goto L_0x0151;\n default: goto L_0x0095;\n };\n L_0x0095:\n r7 = 0;\n r8 = 0;\n L_0x0097:\n r0 = 2;\n if (r4 != r0) goto L_0x0175;\n L_0x009a:\n r3 = 8;\n L_0x009c:\n r0 = r12.XF;\n r12.c(r0);\n r0 = r12.XF;\n r1 = 0;\n r5 = r0[r1];\n r0 = r12.XF;\n r1 = 1;\n r6 = r0[r1];\n r0 = new android.support.v7.widget.a.a$3;\n r1 = r12;\n r10 = r2;\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r12.Sa;\n r2 = android.support.v7.widget.a.a.a.f(r1, r3);\n r1 = r0.Yo;\n r1.setDuration(r2);\n r1 = r12.XS;\n r1.add(r0);\n r1 = r0.Sh;\n r2 = 0;\n r1.T(r2);\n r0 = r0.Yo;\n r0.start();\n r0 = 1;\n L_0x00ce:\n r1 = 0;\n r12.XG = r1;\n L_0x00d1:\n r1 = r0;\n if (r13 == 0) goto L_0x0101;\n L_0x00d4:\n r0 = r12.Sa;\n r0 = android.support.v7.widget.a.a.a.B(r0);\n r0 = r0 & r11;\n r2 = r12.XQ;\n r2 = r2 * 8;\n r0 = r0 >> r2;\n r12.XR = r0;\n r0 = r13.SU;\n r0 = r0.getLeft();\n r0 = (float) r0;\n r12.XN = r0;\n r0 = r13.SU;\n r0 = r0.getTop();\n r0 = (float) r0;\n r12.XO = r0;\n r12.XG = r13;\n r0 = 2;\n if (r14 != r0) goto L_0x0101;\n L_0x00f9:\n r0 = r12.XG;\n r0 = r0.SU;\n r2 = 0;\n r0.performHapticFeedback(r2);\n L_0x0101:\n r0 = r12.Sa;\n r2 = r0.getParent();\n if (r2 == 0) goto L_0x0111;\n L_0x0109:\n r0 = r12.XG;\n if (r0 == 0) goto L_0x018b;\n L_0x010d:\n r0 = 1;\n L_0x010e:\n r2.requestDisallowInterceptTouchEvent(r0);\n L_0x0111:\n if (r1 != 0) goto L_0x011c;\n L_0x0113:\n r0 = r12.Sa;\n r0 = r0.getLayoutManager();\n r1 = 1;\n r0.Sc = r1;\n L_0x011c:\n r0 = r12.XP;\n r1 = r12.XG;\n r2 = r12.XQ;\n r0.e(r1, r2);\n r0 = r12.Sa;\n r0.invalidate();\n goto L_0x0008;\n L_0x012c:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x0132:\n r9 = 0;\n goto L_0x008f;\n L_0x0135:\n r9 = r12.bT(r0);\n if (r9 > 0) goto L_0x008f;\n L_0x013b:\n r9 = r12.bS(r0);\n if (r9 <= 0) goto L_0x0132;\n L_0x0141:\n r0 = r9 & 0;\n if (r0 != 0) goto L_0x008f;\n L_0x0145:\n r0 = r12.Sa;\n r0 = android.support.v4.view.z.I(r0);\n r9 = android.support.v7.widget.a.a.a.ao(r9, r0);\n goto L_0x008f;\n L_0x0151:\n r8 = 0;\n r0 = r12.XL;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getWidth();\n r1 = (float) r1;\n r7 = r0 * r1;\n goto L_0x0097;\n L_0x0163:\n r7 = 0;\n r0 = r12.XM;\n r0 = java.lang.Math.signum(r0);\n r1 = r12.Sa;\n r1 = r1.getHeight();\n r1 = (float) r1;\n r8 = r0 * r1;\n goto L_0x0097;\n L_0x0175:\n if (r9 <= 0) goto L_0x017a;\n L_0x0177:\n r3 = 2;\n goto L_0x009c;\n L_0x017a:\n r3 = 4;\n goto L_0x009c;\n L_0x017d:\n r1 = r2.SU;\n r12.bx(r1);\n r1 = r12.XP;\n r3 = r12.Sa;\n r1.c(r3, r2);\n goto L_0x00ce;\n L_0x018b:\n r0 = 0;\n goto L_0x010e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.widget.a.a.d(android.support.v7.widget.RecyclerView$t, int):void\");\n }", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "public final java.lang.String mo40211d_() {\n /*\n r6 = this;\n android.database.sqlite.SQLiteDatabase r0 = r6.mo40210c_()\n r1 = 0\n java.lang.String r2 = \"select app_id from queue order by has_realtime desc, rowid asc limit 1;\"\n android.database.Cursor r0 = r0.rawQuery(r2, r1) // Catch:{ SQLiteException -> 0x002b, all -> 0x0026 }\n boolean r2 = r0.moveToFirst() // Catch:{ SQLiteException -> 0x0024 }\n if (r2 == 0) goto L_0x001d\n r2 = 0\n java.lang.String r1 = r0.getString(r2) // Catch:{ SQLiteException -> 0x0024 }\n if (r0 == 0) goto L_0x001c\n r0.close()\n L_0x001c:\n return r1\n L_0x001d:\n if (r0 == 0) goto L_0x0023\n r0.close()\n L_0x0023:\n return r1\n L_0x0024:\n r2 = move-exception\n goto L_0x002d\n L_0x0026:\n r0 = move-exception\n r5 = r1\n r1 = r0\n r0 = r5\n goto L_0x0041\n L_0x002b:\n r2 = move-exception\n r0 = r1\n L_0x002d:\n com.google.android.gms.measurement.internal.zzez r3 = r6.zzr() // Catch:{ all -> 0x0040 }\n com.google.android.gms.measurement.internal.zzfb r3 = r3.zzf() // Catch:{ all -> 0x0040 }\n java.lang.String r4 = \"Database error getting next bundle app id\"\n r3.zza(r4, r2) // Catch:{ all -> 0x0040 }\n if (r0 == 0) goto L_0x003f\n r0.close()\n L_0x003f:\n return r1\n L_0x0040:\n r1 = move-exception\n L_0x0041:\n if (r0 == 0) goto L_0x0046\n r0.close()\n L_0x0046:\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.measurement.internal.zzad.mo40211d_():java.lang.String\");\n }", "private static void mapAwb(android.hardware.camera2.impl.CameraMetadataNative r1, android.hardware.Camera.Parameters r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.hardware.camera2.legacy.LegacyResultMapper.mapAwb(android.hardware.camera2.impl.CameraMetadataNative, android.hardware.Camera$Parameters):void\");\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap\");\n }", "public java.lang.Object put(java.lang.Object r9, java.lang.Object r10) {\n /*\n r8 = this;\n r0 = 8;\n r1 = 4;\n r3 = 0;\n if (r9 != 0) goto L_0x000e;\n L_0x0006:\n r2 = r8.indexOfNull();\n r4 = com.google.android.gms.internal.zzkq.a;\n if (r4 == 0) goto L_0x0016;\n L_0x000e:\n r3 = r9.hashCode();\n r2 = r8.indexOf(r9, r3);\n L_0x0016:\n if (r2 < 0) goto L_0x0025;\n L_0x0018:\n r0 = r2 << 1;\n r1 = r0 + 1;\n r0 = r8.mArray;\n r0 = r0[r1];\n r2 = r8.mArray;\n r2[r1] = r10;\n L_0x0024:\n return r0;\n L_0x0025:\n r2 = r2 ^ -1;\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x0096 }\n r5 = r8.mHashes;\t Catch:{ ClassCastException -> 0x0096 }\n r5 = r5.length;\t Catch:{ ClassCastException -> 0x0096 }\n if (r4 < r5) goto L_0x005a;\n L_0x002e:\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n if (r4 < r0) goto L_0x009a;\n L_0x0032:\n r0 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n r1 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n r1 = r1 >> 1;\n r0 = r0 + r1;\n L_0x0039:\n r1 = r8.mHashes;\n r4 = r8.mArray;\n r8.zzbJ(r0);\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = r0.length;\t Catch:{ ClassCastException -> 0x00a2 }\n if (r0 <= 0) goto L_0x0055;\n L_0x0045:\n r0 = 0;\n r5 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a2 }\n r6 = 0;\n r7 = r1.length;\t Catch:{ ClassCastException -> 0x00a2 }\n java.lang.System.arraycopy(r1, r0, r5, r6, r7);\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = 0;\n r5 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a2 }\n r6 = 0;\n r7 = r4.length;\t Catch:{ ClassCastException -> 0x00a2 }\n java.lang.System.arraycopy(r4, r0, r5, r6, r7);\t Catch:{ ClassCastException -> 0x00a2 }\n L_0x0055:\n r0 = r8.mSize;\n zza(r1, r4, r0);\n L_0x005a:\n r0 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n if (r2 >= r0) goto L_0x007c;\n L_0x005e:\n r0 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a4 }\n r1 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a4 }\n r4 = r2 + 1;\n r5 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n r5 = r5 - r2;\n java.lang.System.arraycopy(r0, r2, r1, r4, r5);\t Catch:{ ClassCastException -> 0x00a4 }\n r0 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a4 }\n r1 = r2 << 1;\n r4 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a4 }\n r5 = r2 + 1;\n r5 = r5 << 1;\n r6 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n r6 = r6 - r2;\n r6 = r6 << 1;\n java.lang.System.arraycopy(r0, r1, r4, r5, r6);\t Catch:{ ClassCastException -> 0x00a4 }\n L_0x007c:\n r0 = r8.mHashes;\n r0[r2] = r3;\n r0 = r8.mArray;\n r1 = r2 << 1;\n r0[r1] = r9;\n r0 = r8.mArray;\n r1 = r2 << 1;\n r1 = r1 + 1;\n r0[r1] = r10;\n r0 = r8.mSize;\n r0 = r0 + 1;\n r8.mSize = r0;\n r0 = 0;\n goto L_0x0024;\n L_0x0096:\n r0 = move-exception;\n throw r0;\t Catch:{ ClassCastException -> 0x0098 }\n L_0x0098:\n r0 = move-exception;\n throw r0;\n L_0x009a:\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a0 }\n if (r4 >= r1) goto L_0x0039;\n L_0x009e:\n r0 = r1;\n goto L_0x0039;\n L_0x00a0:\n r0 = move-exception;\n throw r0;\n L_0x00a2:\n r0 = move-exception;\n throw r0;\n L_0x00a4:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.put(java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "private int handleStateTransition(int r18, int r19, java.lang.String r20, java.lang.String r21) {\n /*\n r17 = this;\n r1 = r17\n r0 = r18\n r2 = r19\n r3 = r20\n r4 = r21\n com.thoughtworks.xstream.core.util.FastStack r5 = r1.stack\n int r5 = r5.size()\n com.thoughtworks.xstream.core.util.FastStack r6 = r1.stack\n java.lang.Object r6 = r6.peek()\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r6 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r6\n java.lang.Class r6 = r6.type\n r7 = 0\n r8 = 1\n if (r5 <= r8) goto L_0x0026\n boolean r9 = r1.isArray(r6)\n if (r9 == 0) goto L_0x0026\n r9 = 1\n goto L_0x0027\n L_0x0026:\n r9 = 0\n L_0x0027:\n if (r5 <= r8) goto L_0x003c\n com.thoughtworks.xstream.core.util.FastStack r10 = r1.stack\n int r11 = r5 + -2\n java.lang.Object r10 = r10.get(r11)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r10 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r10\n java.lang.Class r10 = r10.type\n boolean r10 = r1.isArray(r10)\n if (r10 == 0) goto L_0x003c\n r7 = 1\n L_0x003c:\n r10 = 64\n r11 = 4\n if (r0 == r8) goto L_0x0353\n r13 = 128(0x80, float:1.794E-43)\n r14 = 2\n if (r0 == r14) goto L_0x0326\n r15 = 8\n r14 = 32\n r12 = 16\n r8 = 512(0x200, float:7.175E-43)\n if (r0 == r11) goto L_0x02c9\n java.lang.String r16 = \"@\"\n java.lang.String r11 = \"\"\n if (r0 == r15) goto L_0x01e9\n if (r0 == r12) goto L_0x01eb\n r12 = 256(0x100, float:3.59E-43)\n if (r0 == r14) goto L_0x01ca\n if (r0 == r10) goto L_0x0111\n if (r0 == r13) goto L_0x00b5\n if (r0 == r12) goto L_0x009c\n if (r0 != r8) goto L_0x0096\n r4 = 1\n if (r2 == r4) goto L_0x0087\n if (r2 == r13) goto L_0x007d\n if (r2 != r12) goto L_0x0077\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0076\n if (r9 == 0) goto L_0x0076\n r17.endArray()\n L_0x0076:\n return r2\n L_0x0077:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x007d:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0087:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0096:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x009c:\n r4 = 2\n if (r2 != r4) goto L_0x00af\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x00ae\n r17.endArray()\n r17.endArray()\n r17.endObject()\n L_0x00ae:\n return r2\n L_0x00af:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00b5:\n r10 = 1\n if (r2 == r10) goto L_0x0106\n r10 = 2\n if (r2 == r10) goto L_0x00d3\n r10 = 4\n if (r2 == r10) goto L_0x00d5\n if (r2 == r13) goto L_0x00d3\n if (r2 != r12) goto L_0x00cd\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 != 0) goto L_0x00cc\n if (r9 == 0) goto L_0x00cc\n r17.endArray()\n L_0x00cc:\n return r2\n L_0x00cd:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00d3:\n r3 = 0\n goto L_0x00f2\n L_0x00d5:\n r17.nextElement()\n if (r7 != 0) goto L_0x0111\n int r10 = r1.mode\n r14 = 4\n r10 = r10 & r14\n if (r10 != 0) goto L_0x0111\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n int r0 = r1.mode\n r0 = r0 & r14\n if (r0 != 0) goto L_0x00f1\n if (r9 == 0) goto L_0x00f1\n r17.startArray()\n L_0x00f1:\n return r2\n L_0x00f2:\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r10 = 2\n r1.handleStateTransition(r0, r10, r3, r3)\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0105\n if (r9 != 0) goto L_0x0105\n r17.endObject()\n L_0x0105:\n return r2\n L_0x0106:\n r3 = 0\n r10 = 2\n int r0 = r1.handleStateTransition(r0, r10, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0111:\n r10 = 2\n r14 = 4\n if (r2 == r14) goto L_0x0192\n if (r2 == r13) goto L_0x0182\n if (r2 == r12) goto L_0x0182\n if (r2 != r8) goto L_0x017c\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 == 0) goto L_0x012b\n if (r5 == r10) goto L_0x0123\n goto L_0x012b\n L_0x0123:\n com.thoughtworks.xstream.converters.ConversionException r0 = new com.thoughtworks.xstream.converters.ConversionException\n java.lang.String r2 = \"Single value cannot be root element\"\n r0.<init>((java.lang.String) r2)\n throw r0\n L_0x012b:\n if (r4 != 0) goto L_0x0148\n java.lang.Class<com.thoughtworks.xstream.mapper.Mapper$Null> r0 = com.thoughtworks.xstream.mapper.Mapper.Null.class\n if (r6 != r0) goto L_0x0139\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.NULL\n java.lang.String r3 = \"null\"\n r1.addValue(r3, r0)\n goto L_0x017b\n L_0x0139:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x017b\n if (r9 != 0) goto L_0x017b\n r17.startObject()\n r17.endObject()\n goto L_0x017b\n L_0x0148:\n int r0 = r1.mode\n r0 = r0 & r15\n if (r0 == 0) goto L_0x0174\n java.lang.Class r0 = java.lang.Long.TYPE\n if (r6 == r0) goto L_0x0155\n java.lang.Class<java.lang.Long> r0 = java.lang.Long.class\n if (r6 != r0) goto L_0x0174\n L_0x0155:\n long r7 = java.lang.Long.parseLong(r21)\n r9 = 9007199254740992(0x20000000000000, double:4.450147717014403E-308)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 > 0) goto L_0x016e\n r9 = -9007199254740992(0xffe0000000000000, double:-8.98846567431158E307)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 >= 0) goto L_0x0166\n goto L_0x016e\n L_0x0166:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x016e:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x0174:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n L_0x017b:\n return r2\n L_0x017c:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0182:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0191\n if (r9 == 0) goto L_0x018e\n r17.endArray()\n goto L_0x0191\n L_0x018e:\n r17.endObject()\n L_0x0191:\n return r2\n L_0x0192:\n int r0 = r1.mode\n r6 = 1\n r0 = r0 & r6\n if (r0 == 0) goto L_0x019e\n r0 = 2\n if (r5 <= r0) goto L_0x019c\n goto L_0x019e\n L_0x019c:\n r3 = 4\n goto L_0x01bf\n L_0x019e:\n if (r7 == 0) goto L_0x01a6\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x01b6\n L_0x01a6:\n boolean r0 = r11.equals(r4)\n if (r0 != 0) goto L_0x01af\n r17.startObject()\n L_0x01af:\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n L_0x01b6:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x01bf\n r17.startArray()\n L_0x01bf:\n int r0 = r1.mode\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01c9\n if (r9 == 0) goto L_0x01c9\n r17.startArray()\n L_0x01c9:\n return r2\n L_0x01ca:\n r4 = 2\n if (r2 == r4) goto L_0x01df\n if (r2 != r10) goto L_0x01d9\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01e8\n r17.nextElement()\n goto L_0x01e8\n L_0x01d9:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x01df:\n r0 = 0\n int r3 = r1.handleStateTransition(r10, r12, r0, r0)\n r4 = 2\n r1.handleStateTransition(r3, r4, r0, r0)\n L_0x01e8:\n return r2\n L_0x01e9:\n if (r2 == r12) goto L_0x02a0\n L_0x01eb:\n r5 = 1\n if (r2 == r5) goto L_0x0291\n r5 = 4\n if (r2 == r5) goto L_0x01f9\n if (r2 == r12) goto L_0x0220\n if (r2 == r14) goto L_0x020b\n if (r2 == r13) goto L_0x0201\n if (r2 != r8) goto L_0x01fb\n L_0x01f9:\n r5 = 0\n goto L_0x0250\n L_0x01fb:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0201:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x020b:\n int r3 = r1.mode\n r4 = 4\n r3 = r3 & r4\n if (r3 == 0) goto L_0x021f\n if (r0 != r12) goto L_0x0216\n r17.endObject()\n L_0x0216:\n r17.endArray()\n r17.nextElement()\n r17.startArray()\n L_0x021f:\n return r2\n L_0x0220:\n if (r9 == 0) goto L_0x0229\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x024f\n goto L_0x022a\n L_0x0229:\n r5 = 4\n L_0x022a:\n r17.nextElement()\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r6 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x0239\n r11 = r16\n L_0x0239:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x024f:\n return r2\n L_0x0250:\n int r0 = r1.handleStateTransition(r0, r14, r5, r5)\n int r0 = r1.handleStateTransition(r0, r10, r5, r5)\n r5 = 2\n if (r2 == r5) goto L_0x0287\n r5 = 4\n if (r2 == r5) goto L_0x027c\n if (r2 == r8) goto L_0x0261\n goto L_0x0290\n L_0x0261:\n int r3 = r1.mode\n r3 = r3 & r5\n if (r3 != 0) goto L_0x026f\n java.lang.String r3 = \"$\"\n java.lang.String r3 = r1.encodeNode(r3)\n r1.addLabel(r3)\n L_0x026f:\n r3 = 0\n r1.handleStateTransition(r0, r8, r3, r4)\n int r0 = r1.mode\n r0 = r0 & r5\n if (r0 != 0) goto L_0x0290\n r17.endObject()\n goto L_0x0290\n L_0x027c:\n int r4 = r1.mode\n r4 = r4 & r5\n if (r4 != 0) goto L_0x0282\n goto L_0x0283\n L_0x0282:\n r11 = 0\n L_0x0283:\n r1.handleStateTransition(r0, r5, r3, r11)\n goto L_0x0290\n L_0x0287:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r8, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n L_0x0290:\n return r2\n L_0x0291:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x02a0:\n if (r3 == 0) goto L_0x02c8\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r5 = r1.mode\n r6 = 4\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02af\n r11 = r16\n L_0x02af:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n r17.startObject()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x02c8:\n return r2\n L_0x02c9:\n r5 = 1\n if (r2 == r5) goto L_0x02f9\n r6 = 4\n if (r2 == r6) goto L_0x02fa\n if (r2 == r15) goto L_0x02f0\n if (r2 == r12) goto L_0x02de\n if (r2 == r13) goto L_0x02fa\n if (r2 != r8) goto L_0x02d8\n goto L_0x02fa\n L_0x02d8:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x02de:\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02e7\n if (r9 != 0) goto L_0x02e6\n goto L_0x02e7\n L_0x02e6:\n return r6\n L_0x02e7:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r12, r3, r4)\n return r2\n L_0x02f0:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 == 0) goto L_0x02f8\n r17.startArray()\n L_0x02f8:\n return r2\n L_0x02f9:\n r6 = 4\n L_0x02fa:\n if (r7 == 0) goto L_0x0304\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 == 0) goto L_0x0302\n goto L_0x0304\n L_0x0302:\n r5 = 0\n goto L_0x030c\n L_0x0304:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r14, r5, r5)\n L_0x030c:\n r0 = 1\n if (r2 == r0) goto L_0x031e\n if (r2 == r6) goto L_0x031a\n if (r2 == r13) goto L_0x031e\n if (r2 == r8) goto L_0x0316\n goto L_0x0325\n L_0x0316:\n r1.handleStateTransition(r10, r8, r5, r4)\n goto L_0x0325\n L_0x031a:\n r1.handleStateTransition(r10, r6, r3, r5)\n goto L_0x0325\n L_0x031e:\n int r0 = r1.handleStateTransition(r10, r8, r5, r5)\n r1.handleStateTransition(r0, r2, r5, r5)\n L_0x0325:\n return r2\n L_0x0326:\n r6 = 4\n r4 = 1\n if (r2 == r4) goto L_0x0341\n if (r2 == r6) goto L_0x0338\n if (r2 != r13) goto L_0x0332\n r17.nextElement()\n return r2\n L_0x0332:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0338:\n r4 = 0\n int r0 = r1.handleStateTransition(r0, r13, r4, r4)\n r1.handleStateTransition(r0, r6, r3, r4)\n return r2\n L_0x0341:\n int r0 = r1.mode\n r3 = 1\n r0 = r0 & r3\n if (r0 == 0) goto L_0x034a\n r0 = 2\n if (r5 <= r0) goto L_0x0352\n L_0x034a:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 != 0) goto L_0x0352\n r17.endObject()\n L_0x0352:\n return r2\n L_0x0353:\n r6 = 4\n if (r2 != r6) goto L_0x035b\n r0 = 0\n r1.handleStateTransition(r10, r6, r3, r0) // Catch:{ Throwable -> 0x0361 }\n return r2\n L_0x035b:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0361:\n r0 = move-exception\n r2 = r0\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.thoughtworks.xstream.io.json.AbstractJsonWriter.handleStateTransition(int, int, java.lang.String, java.lang.String):int\");\n }", "AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public void m17237a(java.util.List<java.lang.Integer> r6) {\n /*\n r5 = this;\n r0 = 0;\n if (r6 == 0) goto L_0x0009;\n L_0x0003:\n r1 = r6.size();\n if (r1 != 0) goto L_0x000a;\n L_0x0009:\n return;\n L_0x000a:\n r1 = r5.f20994d;\n r1.lock();\n r2 = r5.m17234d();\n r1 = \"\";\n L_0x0016:\n r3 = r6.size();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 >= r3) goto L_0x003b;\n L_0x001c:\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r3.append(r1);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r6.get(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \",\";\n r1 = r1.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = r1.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0 + 1;\n goto L_0x0016;\n L_0x003b:\n r0 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n if (r0 <= 0) goto L_0x006e;\n L_0x0041:\n r0 = 0;\n r3 = r1.length();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = r3 + -1;\n r0 = r1.substring(r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r1 = \"result\";\n r3 = new java.lang.StringBuilder;\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3.<init>();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r4 = \"_id in (\";\n r3 = r3.append(r4);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r3.append(r0);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = \")\";\n r0 = r0.append(r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r0 = r0.toString();\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n r3 = 0;\n r2.delete(r1, r0, r3);\t Catch:{ SQLiteException -> 0x0077, IllegalStateException -> 0x00a0, Exception -> 0x00c9 }\n L_0x006e:\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x0077:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00a0:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00c9:\n r0 = move-exception;\n r1 = \"SynthesizeResultDb\";\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<init>();\t Catch:{ all -> 0x00f2 }\n r4 = \"exception:\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n r0 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r0 = r0.toString();\t Catch:{ all -> 0x00f2 }\n com.baidu.tts.chainofresponsibility.logger.LoggerProxy.m17001d(r1, r0);\t Catch:{ all -> 0x00f2 }\n r2.close();\n r0 = r5.f20994d;\n r0.unlock();\n goto L_0x0009;\n L_0x00f2:\n r0 = move-exception;\n r2.close();\n r1 = r5.f20994d;\n r1.unlock();\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.baidu.tts.e.c.a(java.util.List):void\");\n }", "private static synchronized void e(android.content.Context r11) {\n /*\n java.lang.Class<com.tencent.wxop.stat.g> r0 = com.tencent.wxop.stat.g.class\n monitor-enter(r0)\n if (r11 != 0) goto L_0x0007\n monitor-exit(r0)\n return\n L_0x0007:\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0097\n java.lang.String r1 = com.tencent.wxop.stat.d.h // Catch:{ all -> 0x0099 }\n r2 = 0\n long r4 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r1, (long) r2) // Catch:{ all -> 0x0099 }\n java.lang.String r1 = \"2.0.4\"\n long r6 = com.tencent.wxop.stat.a.n.b((java.lang.String) r1) // Catch:{ all -> 0x0099 }\n r1 = 1\n r8 = 0\n int r9 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))\n if (r9 > 0) goto L_0x003b\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r9 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r10 = \"MTA is disable for current version:\"\n r9.<init>(r10) // Catch:{ all -> 0x0099 }\n r9.append(r6) // Catch:{ all -> 0x0099 }\n java.lang.String r6 = \",wakeup version:\"\n r9.append(r6) // Catch:{ all -> 0x0099 }\n r9.append(r4) // Catch:{ all -> 0x0099 }\n java.lang.String r4 = r9.toString() // Catch:{ all -> 0x0099 }\n r1.d(r4) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x003b:\n java.lang.String r4 = com.tencent.wxop.stat.d.i // Catch:{ all -> 0x0099 }\n long r2 = com.tencent.wxop.stat.a.r.a((android.content.Context) r11, (java.lang.String) r4, (long) r2) // Catch:{ all -> 0x0099 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n int r6 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r6 <= 0) goto L_0x0069\n com.tencent.wxop.stat.a.b r1 = r // Catch:{ all -> 0x0099 }\n java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \"MTA is disable for current time:\"\n r4.<init>(r5) // Catch:{ all -> 0x0099 }\n long r5 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n r4.append(r5) // Catch:{ all -> 0x0099 }\n java.lang.String r5 = \",wakeup time:\"\n r4.append(r5) // Catch:{ all -> 0x0099 }\n r4.append(r2) // Catch:{ all -> 0x0099 }\n java.lang.String r2 = r4.toString() // Catch:{ all -> 0x0099 }\n r1.d(r2) // Catch:{ all -> 0x0099 }\n r1 = 0\n L_0x0069:\n com.tencent.wxop.stat.d.a((boolean) r1) // Catch:{ all -> 0x0099 }\n if (r1 != 0) goto L_0x0070\n monitor-exit(r0)\n return\n L_0x0070:\n android.content.Context r11 = r11.getApplicationContext() // Catch:{ all -> 0x0099 }\n t = r11 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = new com.tencent.wxop.stat.a.f // Catch:{ all -> 0x0099 }\n r1.<init>() // Catch:{ all -> 0x0099 }\n g = r1 // Catch:{ all -> 0x0099 }\n java.lang.String r1 = com.tencent.wxop.stat.a.n.a((int) r8) // Catch:{ all -> 0x0099 }\n l = r1 // Catch:{ all -> 0x0099 }\n long r1 = java.lang.System.currentTimeMillis() // Catch:{ all -> 0x0099 }\n long r3 = com.tencent.wxop.stat.d.p // Catch:{ all -> 0x0099 }\n r5 = 0\n long r1 = r1 + r3\n f79893b = r1 // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.a.f r1 = g // Catch:{ all -> 0x0099 }\n com.tencent.wxop.stat.am r2 = new com.tencent.wxop.stat.am // Catch:{ all -> 0x0099 }\n r2.<init>(r11) // Catch:{ all -> 0x0099 }\n r1.a(r2) // Catch:{ all -> 0x0099 }\n L_0x0097:\n monitor-exit(r0)\n return\n L_0x0099:\n r11 = move-exception\n monitor-exit(r0)\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.wxop.stat.g.e(android.content.Context):void\");\n }", "public final /* synthetic */ java.lang.Object mo13031b(java.lang.String r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r13 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0967d\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$d r0 = (p008c.p009a.p024e.p026b.C0963b.C0967d) r0\n int r1 = r0.f1060b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1060b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$d r0 = new c.a.e.b.b$d\n r0.<init>(r13, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1059a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1060b\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0059\n if (r2 == r4) goto L_0x0049\n if (r2 != r3) goto L_0x0041\n java.lang.Object r14 = r0.f1066h\n org.mobileid.time_key.util.TimeKeyParams r14 = (org.mobileid.time_key.util.TimeKeyParams) r14\n java.lang.Object r14 = r0.f1065g\n org.mobileid.requester.web_service.Response r14 = (org.mobileid.requester.web_service.Response) r14\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1063e\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1062d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00c0\n L_0x0041:\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r15 = \"call to 'resume' before 'invoke' with coroutine\"\n r14.<init>(r15)\n throw r14\n L_0x0049:\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r2 = r0.f1063e\n java.lang.String r2 = (java.lang.String) r2\n java.lang.Object r5 = r0.f1062d\n c.a.e.b.b r5 = (p008c.p009a.p024e.p026b.C0963b) r5\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x0085\n L_0x0059:\n kotlin.ResultKt.throwOnFailure(r15)\n c.a.e.c.a r15 = r13.f1032c\n java.lang.String r15 = r15.mo13035a()\n if (r15 == 0) goto L_0x00c3\n org.mobileid.time_key.web_service.TimeKeyWebService r2 = r13.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r11 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n r8 = 0\n r9 = 4\n r10 = 0\n r5 = r11\n r6 = r14\n r7 = r15\n r5.<init>(r6, r7, r8, r9, r10)\n r0.f1062d = r13\n r0.f1063e = r14\n r0.f1064f = r15\n r0.f1060b = r4\n java.lang.Object r2 = r2.deactivateKey(r11, r0)\n if (r2 != r1) goto L_0x0080\n return r1\n L_0x0080:\n r5 = r13\n r12 = r2\n r2 = r14\n r14 = r15\n r15 = r12\n L_0x0085:\n org.mobileid.requester.web_service.Response r15 = (org.mobileid.requester.web_service.Response) r15\n java.lang.Object r6 = r15.getResult()\n java.lang.Boolean r6 = (java.lang.Boolean) r6\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n r4 = r4 ^ r6\n if (r4 == 0) goto L_0x009b\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x009b:\n org.mobileid.time_key.util.TimeKeyParams$a r4 = org.mobileid.time_key.util.TimeKeyParams.Companion\n android.content.Context r6 = r5.f1030a\n org.mobileid.time_key.util.TimeKeyParams r4 = r4.mo60138a(r6)\n kotlinx.coroutines.MainCoroutineDispatcher r6 = kotlinx.coroutines.Dispatchers.getMain()\n c.a.e.b.b$e r7 = new c.a.e.b.b$e\n r8 = 0\n r7.<init>(r5, r4, r8)\n r0.f1062d = r5\n r0.f1063e = r2\n r0.f1064f = r14\n r0.f1065g = r15\n r0.f1066h = r4\n r0.f1060b = r3\n java.lang.Object r14 = kotlinx.coroutines.BuildersKt.withContext(r6, r7, r0)\n if (r14 != r1) goto L_0x00c0\n return r1\n L_0x00c0:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x00c3:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13031b(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "public void mo2485a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private final java.lang.String B(java.util.Map<java.lang.String, ? extends java.lang.Object> r11) {\n /*\n r10 = this;\n r11 = r11.entrySet();\n r11 = (java.lang.Iterable) r11;\n r0 = new java.util.ArrayList;\n r0.<init>();\n r0 = (java.util.Collection) r0;\n r11 = r11.iterator();\n L_0x0011:\n r1 = r11.hasNext();\n if (r1 == 0) goto L_0x004e;\n L_0x0017:\n r1 = r11.next();\n r2 = r1;\n r2 = (java.util.Map.Entry) r2;\n r3 = r2.getKey();\n r3 = (java.lang.CharSequence) r3;\n r3 = r3.length();\n r4 = 1;\n r5 = 0;\n if (r3 <= 0) goto L_0x002e;\n L_0x002c:\n r3 = 1;\n goto L_0x002f;\n L_0x002e:\n r3 = 0;\n L_0x002f:\n if (r3 == 0) goto L_0x0047;\n L_0x0031:\n r2 = r2.getValue();\n r2 = r2.toString();\n r2 = (java.lang.CharSequence) r2;\n r2 = r2.length();\n if (r2 <= 0) goto L_0x0043;\n L_0x0041:\n r2 = 1;\n goto L_0x0044;\n L_0x0043:\n r2 = 0;\n L_0x0044:\n if (r2 == 0) goto L_0x0047;\n L_0x0046:\n goto L_0x0048;\n L_0x0047:\n r4 = 0;\n L_0x0048:\n if (r4 == 0) goto L_0x0011;\n L_0x004a:\n r0.add(r1);\n goto L_0x0011;\n L_0x004e:\n r0 = (java.util.List) r0;\n r1 = r0;\n r1 = (java.lang.Iterable) r1;\n r11 = \"&\";\n r2 = r11;\n r2 = (java.lang.CharSequence) r2;\n r3 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r11 = com.iqoption.core.connect.http.Http$urlEncode$2.baR;\n r7 = r11;\n r7 = (kotlin.jvm.a.b) r7;\n r8 = 30;\n r9 = 0;\n r11 = kotlin.collections.u.a(r1, r2, r3, r4, r5, r6, r7, r8, r9);\n r11 = r10.ft(r11);\n return r11;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.core.connect.http.c.B(java.util.Map):java.lang.String\");\n }", "private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public /* synthetic */ void lambda$createView$6(android.view.View r24) {\n /*\n r23 = this;\n r1 = r23\n org.telegram.ui.ActionBar.Theme$ThemeInfo r0 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n boolean r2 = r1.isBlurred\n r3 = 0\n java.lang.String r2 = r0.generateWallpaperName(r3, r2)\n boolean r4 = r1.isBlurred\n r5 = 0\n if (r4 == 0) goto L_0x0018\n java.lang.String r0 = r0.generateWallpaperName(r3, r5)\n r4 = r0\n goto L_0x0019\n L_0x0018:\n r4 = r2\n L_0x0019:\n java.io.File r6 = new java.io.File\n java.io.File r0 = org.telegram.messenger.ApplicationLoader.getFilesDirFixed()\n r6.<init>(r0, r2)\n java.lang.Object r0 = r1.currentWallpaper\n boolean r7 = r0 instanceof org.telegram.tgnet.TLRPC$TL_wallPaper\n java.lang.String r8 = \"jpg\"\n java.lang.String r10 = \"t\"\n r11 = 87\n r12 = 1\n if (r7 == 0) goto L_0x008e\n android.graphics.Bitmap r0 = r1.originalBitmap\n if (r0 == 0) goto L_0x0049\n java.io.FileOutputStream r0 = new java.io.FileOutputStream // Catch:{ Exception -> 0x0044 }\n r0.<init>(r6) // Catch:{ Exception -> 0x0044 }\n android.graphics.Bitmap r7 = r1.originalBitmap // Catch:{ Exception -> 0x0044 }\n android.graphics.Bitmap$CompressFormat r13 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ Exception -> 0x0044 }\n r7.compress(r13, r11, r0) // Catch:{ Exception -> 0x0044 }\n r0.close() // Catch:{ Exception -> 0x0044 }\n L_0x0042:\n r0 = 1\n goto L_0x0075\n L_0x0044:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x005c\n L_0x0049:\n org.telegram.ui.Components.BackupImageView r0 = r1.backgroundImage\n org.telegram.messenger.ImageReceiver r0 = r0.getImageReceiver()\n boolean r7 = r0.hasNotThumb()\n if (r7 != 0) goto L_0x005e\n boolean r7 = r0.hasStaticThumb()\n if (r7 == 0) goto L_0x005c\n goto L_0x005e\n L_0x005c:\n r0 = 0\n goto L_0x0075\n L_0x005e:\n android.graphics.Bitmap r0 = r0.getBitmap()\n java.io.FileOutputStream r7 = new java.io.FileOutputStream // Catch:{ Exception -> 0x0070 }\n r7.<init>(r6) // Catch:{ Exception -> 0x0070 }\n android.graphics.Bitmap$CompressFormat r13 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ Exception -> 0x0070 }\n r0.compress(r13, r11, r7) // Catch:{ Exception -> 0x0070 }\n r7.close() // Catch:{ Exception -> 0x0070 }\n goto L_0x0042\n L_0x0070:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x005c\n L_0x0075:\n if (r0 != 0) goto L_0x012d\n java.lang.Object r0 = r1.currentWallpaper\n org.telegram.tgnet.TLRPC$TL_wallPaper r0 = (org.telegram.tgnet.TLRPC$TL_wallPaper) r0\n org.telegram.tgnet.TLRPC$Document r0 = r0.document\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToAttach(r0, r12)\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r0, (java.io.File) r6) // Catch:{ Exception -> 0x0087 }\n goto L_0x012d\n L_0x0087:\n r0 = move-exception\n r7 = r0\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r7)\n goto L_0x0186\n L_0x008e:\n boolean r7 = r0 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r7 == 0) goto L_0x012f\n org.telegram.tgnet.TLRPC$TL_wallPaper r7 = r1.selectedPattern\n if (r7 == 0) goto L_0x012c\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r0 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r0 // Catch:{ all -> 0x0127 }\n org.telegram.ui.Components.BackupImageView r0 = r1.backgroundImage // Catch:{ all -> 0x0127 }\n org.telegram.messenger.ImageReceiver r0 = r0.getImageReceiver() // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap r0 = r0.getBitmap() // Catch:{ all -> 0x0127 }\n int r7 = r0.getWidth() // Catch:{ all -> 0x0127 }\n int r13 = r0.getHeight() // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap$Config r14 = android.graphics.Bitmap.Config.ARGB_8888 // Catch:{ all -> 0x0127 }\n android.graphics.Bitmap r7 = android.graphics.Bitmap.createBitmap(r7, r13, r14) // Catch:{ all -> 0x0127 }\n android.graphics.Canvas r13 = new android.graphics.Canvas // Catch:{ all -> 0x0127 }\n r13.<init>(r7) // Catch:{ all -> 0x0127 }\n int r14 = r1.backgroundGradientColor2 // Catch:{ all -> 0x0127 }\n r15 = 2\n if (r14 == 0) goto L_0x00bb\n goto L_0x00e8\n L_0x00bb:\n int r14 = r1.backgroundGradientColor1 // Catch:{ all -> 0x0127 }\n if (r14 == 0) goto L_0x00e3\n android.graphics.drawable.GradientDrawable r14 = new android.graphics.drawable.GradientDrawable // Catch:{ all -> 0x0127 }\n int r3 = r1.backgroundRotation // Catch:{ all -> 0x0127 }\n android.graphics.drawable.GradientDrawable$Orientation r3 = org.telegram.ui.Components.BackgroundGradientDrawable.getGradientOrientation(r3) // Catch:{ all -> 0x0127 }\n int[] r11 = new int[r15] // Catch:{ all -> 0x0127 }\n int r9 = r1.backgroundColor // Catch:{ all -> 0x0127 }\n r11[r5] = r9 // Catch:{ all -> 0x0127 }\n int r9 = r1.backgroundGradientColor1 // Catch:{ all -> 0x0127 }\n r11[r12] = r9 // Catch:{ all -> 0x0127 }\n r14.<init>(r3, r11) // Catch:{ all -> 0x0127 }\n int r3 = r7.getWidth() // Catch:{ all -> 0x0127 }\n int r9 = r7.getHeight() // Catch:{ all -> 0x0127 }\n r14.setBounds(r5, r5, r3, r9) // Catch:{ all -> 0x0127 }\n r14.draw(r13) // Catch:{ all -> 0x0127 }\n goto L_0x00e8\n L_0x00e3:\n int r3 = r1.backgroundColor // Catch:{ all -> 0x0127 }\n r13.drawColor(r3) // Catch:{ all -> 0x0127 }\n L_0x00e8:\n android.graphics.Paint r3 = new android.graphics.Paint // Catch:{ all -> 0x0127 }\n r3.<init>(r15) // Catch:{ all -> 0x0127 }\n android.graphics.PorterDuffColorFilter r9 = new android.graphics.PorterDuffColorFilter // Catch:{ all -> 0x0127 }\n int r11 = r1.patternColor // Catch:{ all -> 0x0127 }\n android.graphics.PorterDuff$Mode r14 = r1.blendMode // Catch:{ all -> 0x0127 }\n r9.<init>(r11, r14) // Catch:{ all -> 0x0127 }\n r3.setColorFilter(r9) // Catch:{ all -> 0x0127 }\n r9 = 1132396544(0x437var_, float:255.0)\n float r11 = r1.currentIntensity // Catch:{ all -> 0x0127 }\n float r11 = java.lang.Math.abs(r11) // Catch:{ all -> 0x0127 }\n float r11 = r11 * r9\n int r9 = (int) r11 // Catch:{ all -> 0x0127 }\n r3.setAlpha(r9) // Catch:{ all -> 0x0127 }\n r9 = 0\n r13.drawBitmap(r0, r9, r9, r3) // Catch:{ all -> 0x0127 }\n java.io.FileOutputStream r0 = new java.io.FileOutputStream // Catch:{ all -> 0x0127 }\n r0.<init>(r6) // Catch:{ all -> 0x0127 }\n int r3 = r1.backgroundGradientColor2 // Catch:{ all -> 0x0127 }\n if (r3 == 0) goto L_0x011c\n android.graphics.Bitmap$CompressFormat r3 = android.graphics.Bitmap.CompressFormat.PNG // Catch:{ all -> 0x0127 }\n r9 = 100\n r7.compress(r3, r9, r0) // Catch:{ all -> 0x0127 }\n goto L_0x0123\n L_0x011c:\n android.graphics.Bitmap$CompressFormat r3 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ all -> 0x0127 }\n r9 = 87\n r7.compress(r3, r9, r0) // Catch:{ all -> 0x0127 }\n L_0x0123:\n r0.close() // Catch:{ all -> 0x0127 }\n goto L_0x012c\n L_0x0127:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n goto L_0x0186\n L_0x012c:\n r0 = 1\n L_0x012d:\n r7 = 0\n goto L_0x0188\n L_0x012f:\n boolean r3 = r0 instanceof org.telegram.ui.WallpapersListActivity.FileWallpaper\n if (r3 == 0) goto L_0x015f\n org.telegram.ui.WallpapersListActivity$FileWallpaper r0 = (org.telegram.ui.WallpapersListActivity.FileWallpaper) r0\n int r3 = r0.resId\n if (r3 != 0) goto L_0x012c\n java.lang.String r3 = r0.slug\n boolean r3 = r10.equals(r3)\n if (r3 == 0) goto L_0x0142\n goto L_0x012c\n L_0x0142:\n java.io.File r3 = r0.originalPath // Catch:{ Exception -> 0x0158 }\n if (r3 == 0) goto L_0x0147\n goto L_0x0149\n L_0x0147:\n java.io.File r3 = r0.path // Catch:{ Exception -> 0x0158 }\n L_0x0149:\n boolean r7 = r3.equals(r6) // Catch:{ Exception -> 0x0158 }\n if (r7 == 0) goto L_0x0151\n r0 = 1\n goto L_0x0188\n L_0x0151:\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r3, (java.io.File) r6) // Catch:{ Exception -> 0x0156 }\n goto L_0x0188\n L_0x0156:\n r0 = move-exception\n goto L_0x015a\n L_0x0158:\n r0 = move-exception\n r7 = 0\n L_0x015a:\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n r0 = 0\n goto L_0x0188\n L_0x015f:\n boolean r3 = r0 instanceof org.telegram.messenger.MediaController.SearchImage\n if (r3 == 0) goto L_0x0186\n org.telegram.messenger.MediaController$SearchImage r0 = (org.telegram.messenger.MediaController.SearchImage) r0\n org.telegram.tgnet.TLRPC$Photo r3 = r0.photo\n if (r3 == 0) goto L_0x0176\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r0 = r3.sizes\n int r3 = r1.maxWallpaperSize\n org.telegram.tgnet.TLRPC$PhotoSize r0 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r0, r3, r12)\n java.io.File r0 = org.telegram.messenger.FileLoader.getPathToAttach(r0, r12)\n goto L_0x017c\n L_0x0176:\n java.lang.String r0 = r0.imageUrl\n java.io.File r0 = org.telegram.messenger.ImageLoader.getHttpFilePath(r0, r8)\n L_0x017c:\n boolean r0 = org.telegram.messenger.AndroidUtilities.copyFile((java.io.File) r0, (java.io.File) r6) // Catch:{ Exception -> 0x0181 }\n goto L_0x012d\n L_0x0181:\n r0 = move-exception\n r3 = r0\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r3)\n L_0x0186:\n r0 = 0\n goto L_0x012d\n L_0x0188:\n boolean r3 = r1.isBlurred\n if (r3 == 0) goto L_0x01ad\n java.io.File r0 = new java.io.File // Catch:{ all -> 0x01a8 }\n java.io.File r3 = org.telegram.messenger.ApplicationLoader.getFilesDirFixed() // Catch:{ all -> 0x01a8 }\n r0.<init>(r3, r4) // Catch:{ all -> 0x01a8 }\n java.io.FileOutputStream r3 = new java.io.FileOutputStream // Catch:{ all -> 0x01a8 }\n r3.<init>(r0) // Catch:{ all -> 0x01a8 }\n android.graphics.Bitmap r0 = r1.blurredBitmap // Catch:{ all -> 0x01a8 }\n android.graphics.Bitmap$CompressFormat r9 = android.graphics.Bitmap.CompressFormat.JPEG // Catch:{ all -> 0x01a8 }\n r11 = 87\n r0.compress(r9, r11, r3) // Catch:{ all -> 0x01a8 }\n r3.close() // Catch:{ all -> 0x01a8 }\n r0 = 1\n goto L_0x01ad\n L_0x01a8:\n r0 = move-exception\n org.telegram.messenger.FileLog.e((java.lang.Throwable) r0)\n r0 = 0\n L_0x01ad:\n r3 = 45\n java.lang.Object r9 = r1.currentWallpaper\n boolean r11 = r9 instanceof org.telegram.tgnet.TLRPC$TL_wallPaper\n java.lang.String r13 = \"c\"\n java.lang.String r14 = \"d\"\n if (r11 == 0) goto L_0x01c4\n org.telegram.tgnet.TLRPC$TL_wallPaper r9 = (org.telegram.tgnet.TLRPC$TL_wallPaper) r9\n java.lang.String r8 = r9.slug\n L_0x01bd:\n r9 = 0\n r11 = 0\n r15 = 0\n L_0x01c0:\n r17 = 0\n goto L_0x0221\n L_0x01c4:\n boolean r11 = r9 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r11 == 0) goto L_0x01ed\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r9 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r9\n java.lang.String r8 = r9.slug\n boolean r8 = r14.equals(r8)\n if (r8 == 0) goto L_0x01d4\n r8 = r14\n goto L_0x01bd\n L_0x01d4:\n org.telegram.tgnet.TLRPC$TL_wallPaper r3 = r1.selectedPattern\n if (r3 == 0) goto L_0x01db\n java.lang.String r3 = r3.slug\n goto L_0x01dc\n L_0x01db:\n r3 = r13\n L_0x01dc:\n int r8 = r1.backgroundColor\n int r9 = r1.backgroundGradientColor1\n int r11 = r1.backgroundGradientColor2\n int r15 = r1.backgroundGradientColor3\n int r5 = r1.backgroundRotation\n r22 = r8\n r8 = r3\n r3 = r5\n r5 = r22\n goto L_0x01c0\n L_0x01ed:\n boolean r5 = r9 instanceof org.telegram.ui.WallpapersListActivity.FileWallpaper\n if (r5 == 0) goto L_0x01fe\n org.telegram.ui.WallpapersListActivity$FileWallpaper r9 = (org.telegram.ui.WallpapersListActivity.FileWallpaper) r9\n java.lang.String r8 = r9.slug\n java.io.File r5 = r9.path\n L_0x01f7:\n r17 = r5\n r5 = 0\n r9 = 0\n r11 = 0\n r15 = 0\n goto L_0x0221\n L_0x01fe:\n boolean r5 = r9 instanceof org.telegram.messenger.MediaController.SearchImage\n if (r5 == 0) goto L_0x021e\n org.telegram.messenger.MediaController$SearchImage r9 = (org.telegram.messenger.MediaController.SearchImage) r9\n org.telegram.tgnet.TLRPC$Photo r5 = r9.photo\n if (r5 == 0) goto L_0x0215\n java.util.ArrayList<org.telegram.tgnet.TLRPC$PhotoSize> r5 = r5.sizes\n int r8 = r1.maxWallpaperSize\n org.telegram.tgnet.TLRPC$PhotoSize r5 = org.telegram.messenger.FileLoader.getClosestPhotoSizeWithSize(r5, r8, r12)\n java.io.File r5 = org.telegram.messenger.FileLoader.getPathToAttach(r5, r12)\n goto L_0x021b\n L_0x0215:\n java.lang.String r5 = r9.imageUrl\n java.io.File r5 = org.telegram.messenger.ImageLoader.getHttpFilePath(r5, r8)\n L_0x021b:\n java.lang.String r8 = \"\"\n goto L_0x01f7\n L_0x021e:\n r8 = r14\n r5 = 0\n goto L_0x01bd\n L_0x0221:\n org.telegram.ui.ActionBar.Theme$OverrideWallpaperInfo r12 = new org.telegram.ui.ActionBar.Theme$OverrideWallpaperInfo\n r12.<init>()\n r12.fileName = r4\n r12.originalFileName = r2\n r12.slug = r8\n boolean r2 = r1.isBlurred\n r12.isBlurred = r2\n boolean r2 = r1.isMotion\n r12.isMotion = r2\n r12.color = r5\n r12.gradientColor1 = r9\n r12.gradientColor2 = r11\n r12.gradientColor3 = r15\n r12.rotation = r3\n float r2 = r1.currentIntensity\n r12.intensity = r2\n java.lang.Object r2 = r1.currentWallpaper\n boolean r4 = r2 instanceof org.telegram.ui.WallpapersListActivity.ColorWallpaper\n if (r4 == 0) goto L_0x02b0\n org.telegram.ui.WallpapersListActivity$ColorWallpaper r2 = (org.telegram.ui.WallpapersListActivity.ColorWallpaper) r2\n boolean r4 = r13.equals(r8)\n if (r4 != 0) goto L_0x025e\n boolean r4 = r10.equals(r8)\n if (r4 != 0) goto L_0x025e\n boolean r4 = r14.equals(r8)\n if (r4 != 0) goto L_0x025e\n r4 = r8\n goto L_0x025f\n L_0x025e:\n r4 = 0\n L_0x025f:\n float r13 = r2.intensity\n r14 = 0\n int r14 = (r13 > r14 ? 1 : (r13 == r14 ? 0 : -1))\n if (r14 >= 0) goto L_0x0274\n org.telegram.ui.ActionBar.Theme$ThemeInfo r14 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n boolean r14 = r14.isDark()\n if (r14 != 0) goto L_0x0274\n r14 = -1082130432(0xffffffffbvar_, float:-1.0)\n float r13 = r13 * r14\n L_0x0274:\n org.telegram.tgnet.TLRPC$WallPaper r14 = r2.parentWallpaper\n if (r14 == 0) goto L_0x02b0\n int r14 = r2.color\n if (r14 != r5) goto L_0x02b0\n int r5 = r2.gradientColor1\n if (r5 != r9) goto L_0x02b0\n int r5 = r2.gradientColor2\n if (r5 != r11) goto L_0x02b0\n int r5 = r2.gradientColor3\n if (r5 != r15) goto L_0x02b0\n java.lang.String r5 = r2.slug\n boolean r4 = android.text.TextUtils.equals(r5, r4)\n if (r4 == 0) goto L_0x02b0\n int r4 = r2.gradientRotation\n if (r4 != r3) goto L_0x02b0\n org.telegram.tgnet.TLRPC$TL_wallPaper r3 = r1.selectedPattern\n if (r3 == 0) goto L_0x02a6\n float r3 = r1.currentIntensity\n float r13 = r13 - r3\n float r3 = java.lang.Math.abs(r13)\n r4 = 981668463(0x3a83126f, float:0.001)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 >= 0) goto L_0x02b0\n L_0x02a6:\n org.telegram.tgnet.TLRPC$WallPaper r2 = r2.parentWallpaper\n long r3 = r2.id\n r12.wallpaperId = r3\n long r2 = r2.access_hash\n r12.accessHash = r2\n L_0x02b0:\n int r2 = r1.currentAccount\n org.telegram.messenger.MessagesController r2 = org.telegram.messenger.MessagesController.getInstance(r2)\n if (r8 == 0) goto L_0x02bb\n r19 = 1\n goto L_0x02bd\n L_0x02bb:\n r19 = 0\n L_0x02bd:\n r20 = 0\n r16 = r2\n r18 = r12\n r16.saveWallpaperToServer(r17, r18, r19, r20)\n if (r0 == 0) goto L_0x0307\n java.lang.String r0 = \"chat_serviceBackground\"\n int r0 = org.telegram.ui.ActionBar.Theme.getColor(r0)\n org.telegram.ui.ActionBar.Theme.serviceMessageColorBackup = r0\n java.lang.String r0 = r12.slug\n boolean r0 = r10.equals(r0)\n if (r0 == 0) goto L_0x02da\n r3 = 0\n goto L_0x02db\n L_0x02da:\n r3 = r12\n L_0x02db:\n org.telegram.ui.ActionBar.Theme$ThemeInfo r0 = org.telegram.ui.ActionBar.Theme.getActiveTheme()\n r0.setOverrideWallpaper(r3)\n org.telegram.ui.ActionBar.Theme.reloadWallpaper()\n if (r7 != 0) goto L_0x0307\n org.telegram.messenger.ImageLoader r0 = org.telegram.messenger.ImageLoader.getInstance()\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = r6.getAbsolutePath()\n java.lang.String r3 = org.telegram.messenger.ImageLoader.getHttpFileName(r3)\n r2.append(r3)\n java.lang.String r3 = \"@100_100\"\n r2.append(r3)\n java.lang.String r2 = r2.toString()\n r0.removeImage(r2)\n L_0x0307:\n org.telegram.ui.ThemePreviewActivity$WallpaperActivityDelegate r0 = r1.delegate\n if (r0 == 0) goto L_0x030e\n r0.didSetNewBackground()\n L_0x030e:\n r23.finishFragment()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.ThemePreviewActivity.lambda$createView$6(android.view.View):void\");\n }", "public final void mo91715d() {\n }", "public final void m18179a(java.lang.Throwable r4) {\n /*\n r3 = this;\n r0 = 0\n java.lang.Object[] r0 = new java.lang.Object[r0]\n java.lang.String r1 = \"Refresh Account failed\"\n p686n.p687a.Timber.m44528b(r4, r1, r0)\n g.e.b.d.r$b r4 = new g.e.b.d.r$b\n r4.<init>(r3)\n r3.updateState(r4)\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n boolean r4 = r4.mo13695j()\n if (r4 != 0) goto L_0x0051\n io.reactivex.disposables.Disposable r4 = r3.f12929a\n if (r4 != 0) goto L_0x0051\n com.bamtechmedia.dominguez.core.d r4 = r3.f12932d\n io.reactivex.Completable r4 = r4.mo13697n()\n g.n.a.c0 r0 = r3.getViewModelScope()\n g.n.a.h r0 = p163g.p503n.p504a.C11793e.m37930a(r0)\n java.lang.Object r4 = r4.mo30048a(r0)\n java.lang.String r0 = \"this.`as`(AutoDispose.au…isposable<Any>(provider))\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r4, r0)\n g.n.a.v r4 = (p163g.p503n.p504a.C11839v) r4\n g.e.b.d.r$c r0 = new g.e.b.d.r$c\n r0.<init>(r3)\n g.e.b.d.s r1 = new g.e.b.d.s\n r1.<init>(r0)\n g.e.b.d.r$d r0 = p163g.p201e.p203b.p204d.C5419r.C5423d.f12939c\n if (r0 == 0) goto L_0x0049\n g.e.b.d.t r2 = new g.e.b.d.t\n r2.<init>(r0)\n r0 = r2\n L_0x0049:\n io.reactivex.functions.Consumer r0 = (p520io.reactivex.functions.Consumer) r0\n io.reactivex.disposables.Disposable r4 = r4.mo29926a(r1, r0)\n r3.f12929a = r4\n L_0x0051:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163g.p201e.p203b.p204d.C5419r.m18179a(java.lang.Throwable):void\");\n }", "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "private void m5930a(@javax.annotation.Nullable android.graphics.Bitmap r15) {\n /*\n r14 = this;\n r7 = 0;\n r0 = r14.f6211d;\n r1 = r14.f6208a;\n r1 = r1.i;\n r2 = r14.f6209b;\n r4 = r14.f6208a;\n r4 = r4.d;\n r6 = r14.f6208a;\n r6 = r6.b;\n r1 = r0.a(r1, r2, r4, r6);\n r0 = r14.f6211d;\n r2 = r14.f6209b;\n r4 = r14.f6208a;\n r4 = r4.f;\n r2 = r0.a(r2, r4);\n r0 = r14.f6208a;\n r3 = r0.a;\n r0 = r14.f6208a;\n r4 = r0.b;\n r0 = r14.f6208a;\n r0 = r0.h;\n r5 = com.facebook.messaging.notify.MissedCallNotification.MissCallType.CONFERENCE_ON_GOING;\n if (r0 != r5) goto L_0x0143;\n L_0x0031:\n r0 = r14.f6211d;\n r5 = r14.f6208a;\n r5 = r5.i;\n r6 = r14.f6208a;\n r6 = r6.f;\n r8 = r0.H;\n r9 = \"RTC_JOIN_CONFERENCE_CALL_ACTION\";\n r8 = r8.a(r9);\n r9 = new android.content.Intent;\n r9.<init>(r8);\n r8 = r0.r;\n r8 = r8.a(r5);\n if (r8 != 0) goto L_0x0146;\n L_0x0050:\n r8 = \"DefaultMessagingNotificationHandler\";\n r9 = \"createPendingIntentForJoinConferenceCall cannot fetch threadSummary\";\n com.facebook.debug.log.BLog.a(r8, r9);\n r8 = 0;\n L_0x0058:\n r0 = r8;\n if (r0 == 0) goto L_0x0143;\n L_0x005b:\n r5 = new android.support.v4.app.NotificationCompat$Builder;\n r6 = r14.f6211d;\n r6 = r6.b;\n r5.<init>(r6);\n r3 = r5.a(r3);\n r3 = r3.b(r4);\n r4 = r14.f6210c;\n r3 = r3.a(r4);\n r3.d = r0;\n r3 = r3;\n r2 = r3.b(r2);\n r3 = 2;\n r2.j = r3;\n r2 = r2;\n r3 = r14.f6208a;\n r4 = r3.d;\n r2 = r2.a(r4);\n r3 = r14.f6211d;\n r3 = r3.b;\n r3 = r3.getResources();\n r4 = 2131362510; // 0x7f0a02ce float:1.8344803E38 double:1.053032995E-314;\n r3 = r3.getColor(r4);\n r2.y = r3;\n r2 = r2;\n r3 = 1;\n r2 = r2.c(r3);\n if (r15 == 0) goto L_0x00a0;\n L_0x009e:\n r2.g = r15;\n L_0x00a0:\n r3 = r14.f6208a;\n r3 = r3.e;\n r3 = r3.booleanValue();\n if (r3 == 0) goto L_0x00e1;\n L_0x00aa:\n r3 = r14.f6211d;\n r3 = r3.B;\n r3 = r3.h();\n r4 = com.facebook.config.application.Product.MESSENGER;\n if (r3 != r4) goto L_0x00e1;\n L_0x00b6:\n r3 = com.facebook.messaging.appspecific.AppGlyphResolver.a();\n r4 = r14.f6211d;\n r4 = r4.b;\n r5 = 2131232101; // 0x7f080565 float:1.8080302E38 double:1.0529685644E-314;\n r4 = r4.getString(r5);\n r2.a(r3, r4, r1);\n r1 = r14.f6208a;\n r1 = r1.h;\n r3 = com.facebook.messaging.notify.MissedCallNotification.MissCallType.CONFERENCE_ON_GOING;\n if (r1 != r3) goto L_0x0110;\n L_0x00d0:\n r1 = 2130843998; // 0x7f02195e float:1.7293135E38 double:1.052776816E-314;\n r3 = r14.f6211d;\n r3 = r3.b;\n r4 = 2131231995; // 0x7f0804fb float:1.8080087E38 double:1.052968512E-314;\n r3 = r3.getString(r4);\n r2.a(r1, r3, r0);\n L_0x00e1:\n r0 = r14.f6211d;\n r0 = r0.f;\n r1 = r14.f6208a;\n r1 = r1.g;\n r3 = 0;\n r4 = r14.f6208a;\n r4 = r4.i;\n r0.a(r2, r1, r3, r4);\n r0 = r14.f6211d;\n r1 = r0.d;\n r0 = r14.f6208a;\n r0 = r0.h;\n r3 = com.facebook.messaging.notify.MissedCallNotification.MissCallType.P2P;\n if (r0 != r3) goto L_0x0136;\n L_0x00fd:\n r0 = r14.f6208a;\n r0 = r0.c;\n L_0x0101:\n r3 = 10010; // 0x271a float:1.4027E-41 double:4.9456E-320;\n r2 = r2.c();\n r1.a(r0, r3, r2);\n r0 = r14.f6208a;\n r0.i();\n return;\n L_0x0110:\n r0 = r14.f6208a;\n r0 = r0.a();\n if (r0 != 0) goto L_0x00e1;\n L_0x0118:\n r0 = r14.f6211d;\n r4 = r14.f6209b;\n r1 = r14.f6208a;\n r1 = r1.f;\n r0 = r0.a(r4, r7, r1);\n r1 = 2130843998; // 0x7f02195e float:1.7293135E38 double:1.052776816E-314;\n r3 = r14.f6211d;\n r3 = r3.b;\n r4 = 2131232032; // 0x7f080520 float:1.8080162E38 double:1.0529685303E-314;\n r3 = r3.getString(r4);\n r2.a(r1, r3, r0);\n goto L_0x00e1;\n L_0x0136:\n r0 = r14.f6208a;\n r0 = r0.i;\n r4 = r0.i();\n r0 = java.lang.Long.toString(r4);\n goto L_0x0101;\n L_0x0143:\n r0 = r1;\n goto L_0x005b;\n L_0x0146:\n r10 = \"THREAD_SUMMARY\";\n r8 = r9.putExtra(r10, r8);\n r10 = \"IS_CONFERENCE_CALL\";\n r11 = 1;\n r8 = r8.putExtra(r10, r11);\n r10 = \"IS_VIDEO_CALL\";\n r8 = r8.putExtra(r10, r7);\n r10 = \"CALLBACK_NOTIF_TIME\";\n r11 = r0.w;\n r12 = r11.a();\n r8 = r8.putExtra(r10, r12);\n r10 = \"trigger\";\n r8.putExtra(r10, r6);\n r8 = r0.l;\n r8 = r8.nextInt();\n r10 = r0.b;\n r11 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r8 = com.facebook.content.SecurePendingIntent.b(r10, r8, r9, r11);\n goto L_0x0058;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.orca.notify.DefaultMessagingNotificationHandler$5.a(android.graphics.Bitmap):void\");\n }", "public static void m5813a(java.lang.String r2, java.lang.String r3, java.lang.String r4, boolean r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = new com.crashlytics.android.answers.PurchaseEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r0.putItemId(r2);\n r0.putItemType(r3);\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = java.math.BigDecimal.valueOf(r2);\t Catch:{ Exception -> 0x0021 }\n r0.putItemPrice(r2);\t Catch:{ Exception -> 0x0021 }\n L_0x0021:\n r0.putSuccess(r5);\n r2 = com.crashlytics.android.answers.Answers.getInstance();\n r2.logPurchase(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String, boolean):void\");\n }", "@java.lang.Deprecated\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public zzp(int r9, byte[] r10, java.util.Map<java.lang.String, java.lang.String> r11, boolean r12, long r13) {\n /*\n r8 = this;\n if (r11 != 0) goto L_0x0005\n r0 = 0\n L_0x0003:\n r4 = r0\n goto L_0x0042\n L_0x0005:\n boolean r0 = r11.isEmpty()\n if (r0 == 0) goto L_0x0010\n java.util.List r0 = java.util.Collections.emptyList()\n goto L_0x0003\n L_0x0010:\n java.util.ArrayList r0 = new java.util.ArrayList\n int r1 = r11.size()\n r0.<init>(r1)\n java.util.Set r1 = r11.entrySet()\n java.util.Iterator r1 = r1.iterator()\n L_0x0021:\n boolean r2 = r1.hasNext()\n if (r2 == 0) goto L_0x0003\n java.lang.Object r2 = r1.next()\n java.util.Map$Entry r2 = (java.util.Map.Entry) r2\n com.google.android.gms.internal.ads.zzl r3 = new com.google.android.gms.internal.ads.zzl\n java.lang.Object r4 = r2.getKey()\n java.lang.String r4 = (java.lang.String) r4\n java.lang.Object r2 = r2.getValue()\n java.lang.String r2 = (java.lang.String) r2\n r3.<init>(r4, r2)\n r0.add(r3)\n goto L_0x0021\n L_0x0042:\n r0 = r8\n r1 = r9\n r2 = r10\n r3 = r11\n r5 = r12\n r6 = r13\n r0.<init>(r1, r2, r3, r4, r5, r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzp.<init>(int, byte[], java.util.Map, boolean, long):void\");\n }", "public void mo3613a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "public synchronized boolean OnRendererCoreReleased(miui.maml.RendererCore r9) {\r\n /*\r\n r8 = this;\r\n monitor-enter(r8);\r\n r0 = \"RendererCoreCache\";\r\n r1 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0049 }\r\n r1.<init>();\t Catch:{ all -> 0x0049 }\r\n r2 = \"OnRendererCoreReleased: \";\r\n r1.append(r2);\t Catch:{ all -> 0x0049 }\r\n r1.append(r9);\t Catch:{ all -> 0x0049 }\r\n r1 = r1.toString();\t Catch:{ all -> 0x0049 }\r\n android.util.Log.d(r0, r1);\t Catch:{ all -> 0x0049 }\r\n r0 = r8.mCaches;\t Catch:{ all -> 0x0049 }\r\n r0 = r0.keySet();\t Catch:{ all -> 0x0049 }\r\n r0 = r0.iterator();\t Catch:{ all -> 0x0049 }\r\n L_0x0021:\r\n r1 = r0.hasNext();\t Catch:{ all -> 0x0049 }\r\n r2 = 0;\r\n if (r1 == 0) goto L_0x0047;\r\n L_0x0028:\r\n r1 = r0.next();\t Catch:{ all -> 0x0049 }\r\n r3 = r8.mCaches;\t Catch:{ all -> 0x0049 }\r\n r3 = r3.get(r1);\t Catch:{ all -> 0x0049 }\r\n r3 = (miui.maml.util.RendererCoreCache.RendererCoreInfo) r3;\t Catch:{ all -> 0x0049 }\r\n r4 = r3.r;\t Catch:{ all -> 0x0049 }\r\n if (r4 != r9) goto L_0x0046;\r\n L_0x0038:\r\n r8.release(r1);\t Catch:{ all -> 0x0049 }\r\n r4 = r3.cacheTime;\t Catch:{ all -> 0x0049 }\r\n r6 = 0;\r\n r0 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1));\r\n if (r0 != 0) goto L_0x0044;\r\n L_0x0043:\r\n r2 = 1;\r\n L_0x0044:\r\n monitor-exit(r8);\r\n return r2;\r\n L_0x0046:\r\n goto L_0x0021;\r\n L_0x0047:\r\n monitor-exit(r8);\r\n return r2;\r\n L_0x0049:\r\n r9 = move-exception;\r\n monitor-exit(r8);\r\n throw r9;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: miui.maml.util.RendererCoreCache.OnRendererCoreReleased(miui.maml.RendererCore):boolean\");\r\n }", "public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "void m5771e() throws C0841b;", "public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }", "private void m50366E() {\n }", "public void run() {\n /*\n r6 = this;\n com.android.camera.imageprocessor.FrameProcessor r0 = com.android.camera.imageprocessor.FrameProcessor.this\n java.lang.Object r0 = r0.mAllocationLock\n monitor-enter(r0)\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n boolean r1 = r1.mIsActive // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0011\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0011:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n if (r1 != 0) goto L_0x0027\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n int r2 = r6.stride // Catch:{ all -> 0x0077 }\n int r3 = r6.height // Catch:{ all -> 0x0077 }\n int r4 = r6.stride // Catch:{ all -> 0x0077 }\n int r5 = r6.width // Catch:{ all -> 0x0077 }\n int r4 = r4 - r5\n r1.createAllocation(r2, r3, r4) // Catch:{ all -> 0x0077 }\n L_0x0027:\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mInputAllocation // Catch:{ all -> 0x0077 }\n byte[] r2 = r6.yvuBytes // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_rotator r1 = r1.mRsRotator // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mInputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_rotate90andMerge(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.ScriptC_YuvToRgb r1 = r1.mRsYuvToRGB // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.forEach_nv21ToRgb(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.ioSend() // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n if (r1 == 0) goto L_0x0075\n com.android.camera.imageprocessor.FrameProcessor r1 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r1 = r1.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r2 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r2 = r2.mOutputAllocation // Catch:{ all -> 0x0077 }\n r1.copyFrom(r2) // Catch:{ all -> 0x0077 }\n com.android.camera.imageprocessor.FrameProcessor r6 = com.android.camera.imageprocessor.FrameProcessor.this // Catch:{ all -> 0x0077 }\n android.renderscript.Allocation r6 = r6.mVideoOutputAllocation // Catch:{ all -> 0x0077 }\n r6.ioSend() // Catch:{ all -> 0x0077 }\n L_0x0075:\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n return\n L_0x0077:\n r6 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0077 }\n throw r6\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.camera.imageprocessor.FrameProcessor.ProcessingTask.run():void\");\n }", "private final com.google.wireless.android.finsky.dfe.p513g.p514a.C7467r m35669b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 10: goto L_0x000f;\n case 18: goto L_0x001c;\n case 26: goto L_0x0029;\n case 34: goto L_0x003c;\n case 42: goto L_0x0050;\n case 50: goto L_0x0064;\n case 82: goto L_0x0078;\n case 98: goto L_0x008e;\n case 138: goto L_0x00a4;\n case 146: goto L_0x00b9;\n case 152: goto L_0x00c7;\n case 162: goto L_0x0106;\n case 170: goto L_0x011c;\n case 178: goto L_0x012e;\n case 184: goto L_0x0143;\n case 192: goto L_0x0151;\n case 218: goto L_0x015f;\n case 226: goto L_0x0171;\n case 234: goto L_0x0187;\n case 258: goto L_0x019d;\n case 266: goto L_0x01b3;\n case 274: goto L_0x01c8;\n case 290: goto L_0x01de;\n case 298: goto L_0x021e;\n case 306: goto L_0x022c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r0 = r8.m33564f();\n r7.f37912d = r0;\n r0 = r7.f37911c;\n r0 = r0 | 1;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x001c:\n r0 = r8.m33564f();\n r7.f37914f = r0;\n r0 = r7.f37911c;\n r0 = r0 | 4;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0029:\n r0 = r7.f37916h;\n if (r0 != 0) goto L_0x0034;\n L_0x002d:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.c;\n r0.<init>();\n r7.f37916h = r0;\n L_0x0034:\n r0 = r7.f37916h;\n r8.m33552a(r0);\n r7.f37910a = r1;\n goto L_0x0001;\n L_0x003c:\n r0 = r7.f37917i;\n if (r0 != 0) goto L_0x0047;\n L_0x0040:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.z;\n r0.<init>();\n r7.f37917i = r0;\n L_0x0047:\n r0 = r7.f37917i;\n r8.m33552a(r0);\n r0 = 1;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0050:\n r0 = r7.f37919k;\n if (r0 != 0) goto L_0x005b;\n L_0x0054:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.f;\n r0.<init>();\n r7.f37919k = r0;\n L_0x005b:\n r0 = r7.f37919k;\n r8.m33552a(r0);\n r0 = 3;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0064:\n r0 = r7.f37922n;\n if (r0 != 0) goto L_0x006f;\n L_0x0068:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.o;\n r0.<init>();\n r7.f37922n = r0;\n L_0x006f:\n r0 = r7.f37922n;\n r8.m33552a(r0);\n r0 = 6;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0078:\n r0 = r7.f37924p;\n if (r0 != 0) goto L_0x0083;\n L_0x007c:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.d;\n r0.<init>();\n r7.f37924p = r0;\n L_0x0083:\n r0 = r7.f37924p;\n r8.m33552a(r0);\n r0 = 8;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x008e:\n r0 = r7.f37926r;\n if (r0 != 0) goto L_0x0099;\n L_0x0092:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.n;\n r0.<init>();\n r7.f37926r = r0;\n L_0x0099:\n r0 = r7.f37926r;\n r8.m33552a(r0);\n r0 = 10;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00a4:\n r0 = r7.f37923o;\n if (r0 != 0) goto L_0x00af;\n L_0x00a8:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.q;\n r0.<init>();\n r7.f37923o = r0;\n L_0x00af:\n r0 = r7.f37923o;\n r8.m33552a(r0);\n r0 = 7;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00b9:\n r0 = r8.m33565g();\n r7.f37931w = r0;\n r0 = r7.f37911c;\n r0 = r0 | 16;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x00c7:\n r2 = r7.f37911c;\n r2 = r2 | 2;\n r7.f37911c = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n switch(r3) {\n case 0: goto L_0x00fc;\n case 101: goto L_0x00fc;\n case 102: goto L_0x00fc;\n case 103: goto L_0x00fc;\n case 105: goto L_0x00fc;\n case 106: goto L_0x00fc;\n case 107: goto L_0x00fc;\n case 108: goto L_0x00fc;\n case 109: goto L_0x00fc;\n case 111: goto L_0x00fc;\n case 112: goto L_0x00fc;\n case 113: goto L_0x00fc;\n case 114: goto L_0x00fc;\n case 115: goto L_0x00fc;\n case 116: goto L_0x00fc;\n case 117: goto L_0x00fc;\n case 118: goto L_0x00fc;\n case 119: goto L_0x00fc;\n case 120: goto L_0x00fc;\n case 201: goto L_0x00fc;\n case 202: goto L_0x00fc;\n case 203: goto L_0x00fc;\n case 204: goto L_0x00fc;\n case 205: goto L_0x00fc;\n case 206: goto L_0x00fc;\n case 207: goto L_0x00fc;\n case 209: goto L_0x00fc;\n case 210: goto L_0x00fc;\n case 211: goto L_0x00fc;\n case 212: goto L_0x00fc;\n case 213: goto L_0x00fc;\n case 214: goto L_0x00fc;\n case 215: goto L_0x00fc;\n case 217: goto L_0x00fc;\n case 218: goto L_0x00fc;\n case 219: goto L_0x00fc;\n case 220: goto L_0x00fc;\n case 221: goto L_0x00fc;\n case 222: goto L_0x00fc;\n case 223: goto L_0x00fc;\n case 224: goto L_0x00fc;\n case 301: goto L_0x00fc;\n case 302: goto L_0x00fc;\n case 304: goto L_0x00fc;\n case 305: goto L_0x00fc;\n case 307: goto L_0x00fc;\n case 309: goto L_0x00fc;\n case 310: goto L_0x00fc;\n case 311: goto L_0x00fc;\n case 312: goto L_0x00fc;\n case 313: goto L_0x00fc;\n case 314: goto L_0x00fc;\n case 316: goto L_0x00fc;\n case 317: goto L_0x00fc;\n case 318: goto L_0x00fc;\n case 319: goto L_0x00fc;\n case 320: goto L_0x00fc;\n case 321: goto L_0x00fc;\n case 322: goto L_0x00fc;\n case 323: goto L_0x00fc;\n case 324: goto L_0x00fc;\n case 325: goto L_0x00fc;\n case 326: goto L_0x00fc;\n case 327: goto L_0x00fc;\n case 328: goto L_0x00fc;\n case 401: goto L_0x00fc;\n case 402: goto L_0x00fc;\n case 403: goto L_0x00fc;\n case 404: goto L_0x00fc;\n case 405: goto L_0x00fc;\n case 406: goto L_0x00fc;\n case 407: goto L_0x00fc;\n case 408: goto L_0x00fc;\n case 409: goto L_0x00fc;\n case 410: goto L_0x00fc;\n case 411: goto L_0x00fc;\n case 412: goto L_0x00fc;\n case 501: goto L_0x00fc;\n case 502: goto L_0x00fc;\n case 503: goto L_0x00fc;\n case 504: goto L_0x00fc;\n case 505: goto L_0x00fc;\n case 506: goto L_0x00fc;\n case 507: goto L_0x00fc;\n case 508: goto L_0x00fc;\n case 509: goto L_0x00fc;\n case 510: goto L_0x00fc;\n case 511: goto L_0x00fc;\n case 512: goto L_0x00fc;\n case 513: goto L_0x00fc;\n case 514: goto L_0x00fc;\n case 515: goto L_0x00fc;\n case 601: goto L_0x00fc;\n case 701: goto L_0x00fc;\n case 702: goto L_0x00fc;\n case 703: goto L_0x00fc;\n case 704: goto L_0x00fc;\n case 705: goto L_0x00fc;\n case 706: goto L_0x00fc;\n case 707: goto L_0x00fc;\n case 708: goto L_0x00fc;\n case 709: goto L_0x00fc;\n case 710: goto L_0x00fc;\n case 711: goto L_0x00fc;\n case 801: goto L_0x00fc;\n case 802: goto L_0x00fc;\n case 803: goto L_0x00fc;\n case 804: goto L_0x00fc;\n case 805: goto L_0x00fc;\n case 806: goto L_0x00fc;\n case 807: goto L_0x00fc;\n case 808: goto L_0x00fc;\n case 809: goto L_0x00fc;\n case 810: goto L_0x00fc;\n case 811: goto L_0x00fc;\n case 812: goto L_0x00fc;\n case 901: goto L_0x00fc;\n case 902: goto L_0x00fc;\n case 903: goto L_0x00fc;\n case 904: goto L_0x00fc;\n case 905: goto L_0x00fc;\n case 906: goto L_0x00fc;\n case 907: goto L_0x00fc;\n case 908: goto L_0x00fc;\n case 909: goto L_0x00fc;\n case 910: goto L_0x00fc;\n case 911: goto L_0x00fc;\n case 912: goto L_0x00fc;\n case 913: goto L_0x00fc;\n case 914: goto L_0x00fc;\n case 915: goto L_0x00fc;\n case 916: goto L_0x00fc;\n case 1001: goto L_0x00fc;\n case 1002: goto L_0x00fc;\n default: goto L_0x00d8;\n };\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00d8:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = 44;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = \" is not a valid enum RelationType\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00f3:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x00fc:\n r7.f37913e = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r7.f37911c;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3 | 2;\n r7.f37911c = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n goto L_0x0001;\n L_0x0106:\n r0 = r7.f37927s;\n if (r0 != 0) goto L_0x0111;\n L_0x010a:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.m;\n r0.<init>();\n r7.f37927s = r0;\n L_0x0111:\n r0 = r7.f37927s;\n r8.m33552a(r0);\n r0 = 11;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x011c:\n r0 = r7.f37932x;\n if (r0 != 0) goto L_0x0127;\n L_0x0120:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.ag;\n r0.<init>();\n r7.f37932x = r0;\n L_0x0127:\n r0 = r7.f37932x;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x012e:\n r0 = r7.f37920l;\n if (r0 != 0) goto L_0x0139;\n L_0x0132:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.t;\n r0.<init>();\n r7.f37920l = r0;\n L_0x0139:\n r0 = r7.f37920l;\n r8.m33552a(r0);\n r0 = 4;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0143:\n r0 = r8.m33560d();\n r7.f37933y = r0;\n r0 = r7.f37911c;\n r0 = r0 | 32;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0151:\n r0 = r8.m33560d();\n r7.f37934z = r0;\n r0 = r7.f37911c;\n r0 = r0 | 64;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x015f:\n r0 = r7.f37908A;\n if (r0 != 0) goto L_0x016a;\n L_0x0163:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.k;\n r0.<init>();\n r7.f37908A = r0;\n L_0x016a:\n r0 = r7.f37908A;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x0171:\n r0 = r7.f37929u;\n if (r0 != 0) goto L_0x017c;\n L_0x0175:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.y;\n r0.<init>();\n r7.f37929u = r0;\n L_0x017c:\n r0 = r7.f37929u;\n r8.m33552a(r0);\n r0 = 13;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0187:\n r0 = r7.f37928t;\n if (r0 != 0) goto L_0x0192;\n L_0x018b:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.b;\n r0.<init>();\n r7.f37928t = r0;\n L_0x0192:\n r0 = r7.f37928t;\n r8.m33552a(r0);\n r0 = 12;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x019d:\n r0 = r7.f37925q;\n if (r0 != 0) goto L_0x01a8;\n L_0x01a1:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.e;\n r0.<init>();\n r7.f37925q = r0;\n L_0x01a8:\n r0 = r7.f37925q;\n r8.m33552a(r0);\n r0 = 9;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01b3:\n r0 = r7.f37921m;\n if (r0 != 0) goto L_0x01be;\n L_0x01b7:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.h;\n r0.<init>();\n r7.f37921m = r0;\n L_0x01be:\n r0 = r7.f37921m;\n r8.m33552a(r0);\n r0 = 5;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01c8:\n r0 = r7.f37930v;\n if (r0 != 0) goto L_0x01d3;\n L_0x01cc:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.x;\n r0.<init>();\n r7.f37930v = r0;\n L_0x01d3:\n r0 = r7.f37930v;\n r8.m33552a(r0);\n r0 = 14;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01de:\n r0 = 290; // 0x122 float:4.06E-43 double:1.433E-321;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37909B;\n if (r0 != 0) goto L_0x020a;\n L_0x01e8:\n r0 = r1;\n L_0x01e9:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p513g.p514a.C7468s[r2];\n if (r0 == 0) goto L_0x01f3;\n L_0x01ee:\n r3 = r7.f37909B;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x01f3:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x020e;\n L_0x01f8:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x01f3;\n L_0x020a:\n r0 = r7.f37909B;\n r0 = r0.length;\n goto L_0x01e9;\n L_0x020e:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37909B = r2;\n goto L_0x0001;\n L_0x021e:\n r0 = r8.m33564f();\n r7.f37915g = r0;\n r0 = r7.f37911c;\n r0 = r0 | 8;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x022c:\n r0 = r7.f37918j;\n if (r0 != 0) goto L_0x0237;\n L_0x0230:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.w;\n r0.<init>();\n r7.f37918j = r0;\n L_0x0237:\n r0 = r7.f37918j;\n r8.m33552a(r0);\n r0 = 2;\n r7.f37910a = r0;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.g.a.r.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.g.a.r\");\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }" ]
[ "0.6294083", "0.61152625", "0.60382754", "0.6014341", "0.5999233", "0.58967143", "0.5630207", "0.5626563", "0.5622984", "0.55957353", "0.5540373", "0.54828966", "0.54756397", "0.5450596", "0.5426057", "0.5423928", "0.53713536", "0.53619224", "0.5356788", "0.5321571", "0.5317794", "0.5309291", "0.5296342", "0.5239842", "0.5237525", "0.5235361", "0.5230023", "0.5220337", "0.5219079", "0.5218249", "0.5217456", "0.5205499", "0.5194452", "0.5188622", "0.517194", "0.51472867", "0.5134591", "0.5116402", "0.51121485", "0.5105334", "0.50977916", "0.50950724", "0.509431", "0.509211", "0.5082714", "0.5081549", "0.5071232", "0.50687814", "0.5060114", "0.5047367", "0.50367403", "0.5036447", "0.50227904", "0.50179666", "0.501015", "0.5006518", "0.49993175", "0.498562", "0.4979364", "0.49784297", "0.49771714", "0.49771693", "0.49730867", "0.4972539", "0.49721918", "0.49720666", "0.49693635", "0.49574012", "0.4951586", "0.49490955", "0.49404073", "0.49381763", "0.49362722", "0.4928423", "0.4927243", "0.49255085", "0.4924415", "0.49228698", "0.49205562", "0.49119604", "0.4909738", "0.49082774", "0.49044994", "0.49024993", "0.4900298", "0.48991054", "0.48958924", "0.48876584", "0.48836103", "0.48800623", "0.48763973", "0.4875029", "0.4874223", "0.48711056", "0.48631918", "0.48617628", "0.4859941", "0.48587734", "0.48555118", "0.4853379", "0.4847993" ]
0.0
-1
region PAGE SELECTION Called when a new page is selected. Updates the view.
private void onPageSelected(int position) { mSearchField.setVisibility(position == 0 ? View.VISIBLE : View.INVISIBLE); mHistoryButton.setSelected(position == 0); mStatementButton.setSelected(position == 1); mPieChartButton.setSelected(position == 2); if (position == 0) { mAccountHistory.updateView(); } else if (position == 1) { mAccountStatement.updateView(); } else if (position == 2) { mAccountPieChart.updateView(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPageSelected(int pageSelected) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void onPageSelected(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void onPageSelected(int arg0) {\n }", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\r\n\tpublic void onPageSelected() {\n\t\tif (mRoomDropDownAdapter != null) {\r\n\t\t\tmRoomDropDownAdapter.setSelected(mUiEngine.getRoomCurrentIndex());\r\n\t\t\trefreshListByPosition(mRoomDropDownAdapter.getSelected());\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\t\n \t\t\t\tupdatePageComplete();\n \t\t\t}", "@Override\r\n\t\tpublic void onPageSelected(int position) {\n\t\t\t\r\n\t\t}", "public void onPageSelected(int position) {\n\t\t\n\t}", "public void onPageSelected(int position) {\n \t\n }", "@Override\n public void onPageSelected(int position) {\n }", "@Override\n public void onPageSelected(int position) {\n }", "@Override\n public void onPageSelected(int position) {\n }", "@Override\n public void onPageSelected(int position)\n {\n\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tchecked(arg0);\n\t\t\tmPager.setCurrentItem(arg0);\n\t\t}", "@Override\n public void onPageSelected(int position)\n {\n super.onPageSelected(position);\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tif(arg0!=curIndex)\n\t\t\t{\n\t\t\t\tLog.i(\"VpWithRpFragment\",\"VpWithRpFragment.onPageSelected\");\n\t\t\t\tsetNewRoundPoint(arg0);\n\t\t\t}\n\t\t}", "@Override\r\n public void onPageSelected(int position) {\r\n switchPoint(position);\r\n }", "@Override\n public void changePage(int newPage) {\n\n if ( (newPage >= 0) && (newPage< bookInitial.getListAllTextToDisplay().size()))\n {\n\n if (isManual)\n {\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n }else\n {\n int a = bookInitial.getCurrentPage();\n bookInitial.setCurrentPage(newPage);\n updateCurrentPage();\n displayPage();\n updateAutoWPop(a);\n }\n\n\n }\n\n\n }", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tsetTextViewBG(arg0);\n\t\t}", "@Override\n\tpublic void onPageSelected(int position) {\n\t\tselectTab(position);\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t\tmPosition = arg0;\n\t\t\t}", "@Override\n public void onPageSelected(int arg0) {\n mCurrentItem = arg0;\n }", "public void onPageSelected(int position) {\n\t\t\tcurrentItem = position;\n\t\t\toldPosition = position;\n\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tLog.i(\"\", \"Enter hereeeeeeeeeeeeeeeeeeeee(onPageSelected!!!\");\n\t\t\t\t\n\t\t\t\t//adapter.instantiateItem(pager, arg0);\n\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t}", "@Override\n public void onPageSelected(int arg0) {\n current = arg0;\n // title.setText(content[current]);\n\n //\tToast.makeText(LearningActivity.this, \"Current = \"+arg0, Toast.LENGTH_SHORT).show();\n\n }", "@Override\r\n\tprotected void pageChange(int pageIndex) {\r\n\t\tsuper.pageChange(pageIndex);\r\n\r\n\t\tif (contentOutlinePage != null) {\r\n\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());\r\n\t\t}\r\n\t}", "public void setPage(Page page) {this.page = page;}", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: \"+position);\n }", "@Override\n public void onPageSelected(int position) {\n tljr_txt_page.setText(position + 1 + \"/\" + uList.size());\n currentPosition = position;\n }", "public void onPageChanged() {\n if (cbxPage != null && (cbxPage.getSelectedIndex() != (_pageIndex))) {\n cbxPage.setSelectedIndex(_pageIndex);\n }\n if (_dispatchEvents)\n dispatchEvent(new ExtendedFilterPageSortChangeEvent(ExtendedFilterPageSortChangeEvent.PAGE_CHANGE, null, false, false));\n }", "@Override\n public void onPageSelected(int arg0) {\n switch (arg0) {\n \n case 0:\n \t//在这里准备数据源,然后加载到控件中\n \tsetid(imagess, 0);\n break;\n case 1:\n \tsetid(imagess, 1);\n break;\n case 2:\n \tsetid(imagess, 2);\n break;\n case 3:\n \tsetid(imagess, 3);\n break;\n case 4:\n \tsetid(imagess, 4);\n break;\n }\n }", "@Override\n public void onClick(View view) {\n ((Page) Page.activity).selectPage(list.get(position) + 1);\n ((BookmarksActivity) context).finish();\n }", "@Override\n public void onPageSelected(int position) {\n Toast.makeText(TeamViewActivity.this,\n \"Selected page position: \" + position, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onPageSelected(int position) {\n setPage(tabLayout, position);\n }", "public void onPageSelected(int position) {\n\t\t\tcurrentItem = position;\n\t\t\tdots.get(oldPosition).setBackgroundResource(R.drawable.dot_normal);\n\t\t\tdots.get(position).setBackgroundResource(R.drawable.dot_focused);\n\t\t\toldPosition = position;\n\t\t}", "@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tbasicButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tuploadButton.setChecked(true);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "@Override\r\n public void onPageSelected(int index) {\n clearIconState();\r\n setIconState(index);\r\n }", "@Override\n public void onPageSelected(int position) {\n setAddButtonVisibility(getCurrentlyVisibleEditorTab().requestsAddButton());\n }", "public void updateSelection() {\n\t\t\n\t}", "@Override\n public void onPageSelected(int position) {\n mViewPager.setCurrentItem(position);\n selectTab(position);\n }", "public void setPage(Page page) {\n this.page=page;\n }", "public void setPage(Page page) {\n this.page=page;\n }", "@Override\n\t\t\tpublic void onPageSelected(int position2) {\n\t\t\t\tnextPosition2 = position2;\n\t\t\t}", "@Override\n public void onPageChanged(int page, int pageCount) {\n }", "@Override\n public void onPageSelected(int position) {\n if (position == 0 || position == 1 || position == 2)\n getSupportActionBar().setSelectedNavigationItem(position);\n mDemoCollectionPagerAdapter.notifyDataSetChanged();\n }", "@Override\n public void onPageSelected(int position) {\n setTitle(mSectionsPagerAdapter.getPageTitle(position));\n\n updateControls(position);\n }", "public void onPageChange(int newPage){\n if(newPage == MediaReviewerPagerActivity.MEDIA_PAGE){\n onEnterPage();\n } else {\n onExitPage();\n }\n }", "@Override\n public void onPageSelected(int position) {\n Log.d(TAG, \"onPageSelected: Position:\" + position);\n\n //update the current view pager position\n viewPagerPosition = position;\n\n //set the toolbar title\n updateToolbarTitle(position);\n }", "@FXML\n private void callCourseSelectPage(ActionEvent e) {\n\n CourseSelectPage.selectForRecordMode= false;\n\n Pageloader loader = new Pageloader();\n Parent root = loader.getPage(\"GUIcourseSelectPage\");\n Stage stage = new Stage();\n stage.setTitle(\"Add record for student\");\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }", "@Override\n\tpublic void changePage() {\n\t\tprimaryStage.setScene(balancer);\n\t}", "@Override\n public void onPageSelected(int position) {\n curPosition = position;\n if(datas.get(position).picked) {\n pickButton.setBackgroundResource(R.drawable.pick_yellow);\n }\n else {\n pickButton.setBackgroundResource(R.drawable.pick_gray);\n }\n }", "void onPageChanged(int position);", "@Override\r\n\tpublic void onPageSelected(int newPosition) {\n\t\tLog.e(TAG, \"onpageselected=\" + newPosition);\r\n\t\tFragmentLifeCycle fragmentToShow = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(newPosition);\r\n\t\tfragmentToShow.onResumeFragment();\r\n\r\n\t\tFragmentLifeCycle fragmentToHide = (FragmentLifeCycle) mAdapter\r\n\t\t\t\t.getItem(currentPosition);\r\n\t\tfragmentToHide.onPauseFragment();\r\n\r\n\t\tcurrentPosition = newPosition;\r\n\t}", "@objid (\"186f4f3d-207c-40ea-baf3-eb495e1b88c4\")\n private void selectUrl(UrlEntry selectedUrlEntry) {\n this.viewer.refresh();\n \n // Pack all columns, to avoid them being too small\n for (TableColumn col : this.viewer.getTable().getColumns()) {\n col.pack();\n }\n \n if (selectedUrlEntry != null) {\n this.viewer.setSelection(new StructuredSelection(selectedUrlEntry));\n } else {\n this.viewer.setSelection(new StructuredSelection());\n }\n }", "@Override\n public void onPageSelected(int position) {\n mTitle.setText(titles.get(position));\n\n }", "public void setPage(int page) {\n this.page = page;\n }", "@Override\n public void onPageSelected(int page) {\n \n Multimedia m = multimediaList.get(page);\n \n if(m.getMas_info() == null || m.getMas_info().trim().equals(\"\"))\n {\n moreInfoButton.setVisibility(View.GONE);\n }\n else\n {\n moreInfoButton.setVisibility(View.VISIBLE);\n }\n \n\n if(m.getTipo() != MMType.Video){\n continuarButton.setVisibility(View.GONE);\n }\n else\n {\n continuarButton.setVisibility(View.VISIBLE);\n }\n }", "@Override\n public void onPageSelected(int arg0) {\n currentPosition = arg0;\n tv_count.setText((arg0 + 1) + \"/\" + imageBigs.size());\n\n }", "public void onPageChanged(View currentView) {\n mCurrentView = currentView;\n requestLayout();\n }", "public void setCurrentPage(int pageNumber) {\n\t\t\n\t}", "@Override\n public void onPageSelected(int position) {\n if (position != MEETUP_LIST_FRAG_POS) {\n meetupListFragment.resetMeetupList();\n }\n\n submitViewPagerAnalytics(position);\n }", "@Override\n public void onPageSelected(int n) {\n actionBar.setSelectedNavigationItem(n);\n }", "public void changePage(Page page) {\n currentClient.changePage(page);\n this.page = currentClient.getCurrentPage();\n this.refresh();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic void refreshItemSelection() {\n\t\tif (mSeverityListPager == null)\n\t\t\treturn;\n\t\tBaseSeverityFilterListPage<T> currentPage = (BaseSeverityFilterListPage<T>) mSeverityListPagerAdapter\n\t\t\t\t.instantiateItem(mSeverityListPager,\n\t\t\t\t\t\tmSeverityListPager.getCurrentItem());\n\t\tif (currentPage != null)\n\t\t\tcurrentPage.refreshItemSelection();\n\t}", "public interface OnChangePageButtonClick {\n void selectPage(int page);\n}", "@FXML\n private void viewSelected() {\n if (selectedAccount == null) {\n // Warn user if no account was selected.\n noAccountSelectedAlert(\"View DonorReceiver\");\n } else {\n ViewProfilePaneController.setAccount(selectedAccount);\n PageNav.loadNewPage(PageNav.VIEW);\n }\n }", "public void setPage(Page page) {\n\t\tthis.page = page;\n\t}", "@Override\n public void onPageSelected(int position) {\n switch (position) {\n case 0:\n setHeadColor(inprogressTv);\n break;\n case 1:\n setHeadColor(completedTv);\n break;\n default:\n break;\n }\n }", "@Override\n public void onPageSelected(int position) {\n tabHost.setSelectedNavigationItem(position);\n }", "public void onPageSelected(int position) {\n\t\t\t\tmCurrPage = position;\n\t\t\t\tfor(int i=0; i<mNumPages; i++){\n\t\t\t\t\tif( i == position )\n\t\t\t\t\t\tmPageIndicators[i].setImageBitmap( mImgCurrPage );\n\t\t\t\t\telse\n\t\t\t\t\t\tmPageIndicators[i].setImageBitmap( mImgDimPage );\n\t\t\t\t}\n\t\t\t\tsetPagerButtons(position);\n\t\t\t}", "@Subscribe\n public void handlePhotoGalleryPageSelected(OnPhotoGalleryPhotoSelect event) {\n displayPhoto(event.getPhotoDisplayInfo());\n }", "@Override\n public void onPageSelected(int position) {\n textViewImageName.setText(galleryItems.get(position).imageName);\n }", "public void reloadPages(String selectedName, int selectedPos) {\n thingsForReview = (db.getAllWithName(selectedName));\n\n pagerAdapter = new ViewPagerAdapterReviewByName(thingsForReview, getActivity(), db, this, selectedPos);\n pager.setAdapter(pagerAdapter);\n\n }", "public void onSelectionChanged();", "public void updatePage(IGenModel genModel) {\n\t\t\n\t\t//tree.removeAll();\n\t\tif (!updated) {\n\t\t\tautomata = ((Automaton) genModel.getTarget()).getModule().getAutomata();\n\t\t\tfor (Automaton automaton : automata) {\n\t\t\t\tTreeItem item = new TreeItem(tree, SWT.NORMAL);\n\t\t\t\tString name = automaton.getName();\n\t\t\t\tif (name==null || \"\".equals(name)) name = \"Unnamed automaton\";\n\t\t\t\titem.setText(name + \" (\" + automaton.getStates().size() + \" states)\");\n\t\t\t\t\n\t\t\t\t//default: select the first element\n\t\t\t\tif (automata.get(0).equals(automaton)) {\n\t\t\t\t\titem.setChecked(true);\n\t\t\t\t}\n\t\t\t\titem.setImage((Image) null);\n\t\t\t}\n\t\t\ttree.addSelectionListener(this);\n\t\t\twidgetSelected(null);\n\t\t\tupdated = true;\n\t\t}\n\t}", "private void updateContent(int pageIndex) {\n if(mCategoriesController == null){\n mCategoriesController = CategoriesController.getInstance();\n }\n switch (pageIndex) {\n case RADIOS_VIEW_INDEX:\n updateRadioList(mCategoriesController.getLastSelectedCategory().getRadioList());\n break;\n default:\n updateCategories(mCategoriesController.getCategories());\n }\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "void onSelect(MessageCreateEvent event, Message paginateMessage, T itemSelected, int arrow, Paginator<T> paginator);", "@Override\n public void onPageSelected(int position) {\n viewPager.getAdapter().notifyDataSetChanged();\n Log.d(\"ADebugTag\", \"***************notifyDataSetChanged*************** \");\n\n }", "@Override\n\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\n\t\tSystem.out.printf(\"OutlinePageHost.selectionChanged: %s\\n\", event);\n\t}", "@Override\r\n\t\t\tpublic void onPageSelected(final int arg0) {\n\t\t\t\tmCurrentItem = arg0 % items.size();\r\n\t\t\t\tpager.setCurrentItem(mCurrentItem);\r\n\t\t\t\tmGroup.check(radioButtonID[mCurrentItem]);\r\n\t\t\t\titems.get(arg0).findViewById(R.id.tuijian_header_img)\r\n\t\t\t\t\t\t.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View v) { // 在这获取用户单击了哪个图片,然后将这个图片的名字传递到另外一个activity,在那个activity进行线程处理\r\n//\t\t\t\t\t\t\t\tToast.makeText(getActivity(),\r\n//\t\t\t\t\t\t\t\t\t\targ0 + \"img=\" + imgString[arg0], 1000)\r\n//\t\t\t\t\t\t\t\t\t\t.show();\r\n//\t\t\t\t\t\t\t\tIntent in = new Intent();\r\n//\t\t\t\t\t\t\t\tin.putExtra(\"img_name\", imgString[arg0]);\r\n//\t\t\t\t\t\t\t\tin.putExtra(\"method\", \"home_viewpg\");\r\n//\t\t\t\t\t\t\t\tSystem.out.println(imgString[arg0]);\r\n//\t\t\t\t\t\t\t\tin.setClass(getActivity(), OneSop_click.class);\r\n//\t\t\t\t\t\t\t\tgetActivity().startActivity(in);\r\n//\t\t\t\t\t\t\t\tToast.makeText(getActivity(), imgString[arg0], duration)\r\n\t\t\t\t\t\t\t\tshop_NetUtil.getHome_ViewPage(getActivity(),imgString[arg0], fm);\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t}", "public void onPageSelected(int position) {\n if (position == 0) {\n getStarted.setBackground(getResources().getDrawable(R.drawable.rectangle_blue_white));\n getStarted.setTextColor(getResources().getColor(R.color.white));\n } else {\n getStarted.setBackground(\n getResources().getDrawable(R.drawable.rectangle_black_white));\n getStarted.setTextColor(getResources().getColor(R.color.colorPrimary));\n }\n }", "public void setPage(View view){\n //page is always the great grand parent\n linearLayoutBody = (LinearLayout) view.getParent().getParent().getParent();\n currentPage = (TemplatePage) linearLayoutBody.getTag();\n }", "public void onPageSelected(int position) {\n// currentItem = position;\n// dots.get(oldPosition).setBackgroundResource(R.drawable.dot_normal);\n// dots.get(position).setBackgroundResource(R.drawable.dot_focused);\n// oldPosition = position;\n LogUtils.e(\"dots.size()\" + dots.size());\n if (dots.size() > 0) {\n currentItem = position % imageViews.size();\n dots.get(oldPosition).setBackgroundResource(R.drawable.dot_normal);\n dots.get(position % imageViews.size()).setBackgroundResource(R.drawable.dot_focused);\n oldPosition = position % imageViews.size();\n }\n\n }", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "@Override\n public void onPageChanged(int position) {\n }", "public void setPage(Integer page) {\n this.page = page;\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tactionBar.setSelectedNavigationItem(arg0);\n\t\t\t}", "public void setPage(Page page)\r\n {\r\n this.pageId = page.getId();\r\n }", "@Override\r\n public void onPageSelected(int position) {\n invalidateOptionsMenu();\r\n }", "public void showPage(BasePage page) {\n if (currentPage != null) {\n if (page.getClass() == currentPage.getClass()) {\n return;\n }\n\n currentPage.onRemoved();\n mainLayout.getChildren().remove(currentPage);\n }\n\n this.currentPage = page;\n mainLayout.getChildren().add(currentPage);\n AnchorPane.setBottomAnchor(currentPage, 0d);\n AnchorPane.setRightAnchor(currentPage, 0d);\n AnchorPane.setTopAnchor(currentPage, 0d);\n AnchorPane.setLeftAnchor(currentPage, 0d);\n\n if (page.shouldShowSideBarMenu()) {\n if (!mainLayout.getChildren().contains(sideMenu)) {\n mainLayout.getChildren().add(sideMenu);\n sideMenu.position();\n AnchorPane.setLeftAnchor(currentPage, SideMenu.AMOUNT_SHOWN_WHEN_COLLAPSED);\n }\n } else {\n if (mainLayout.getChildren().contains(sideMenu)) {\n mainLayout.getChildren().remove(sideMenu);\n }\n }\n\n page.onLoaded();\n }" ]
[ "0.7431873", "0.7330823", "0.73175144", "0.7316258", "0.7316258", "0.7288505", "0.71719754", "0.7162176", "0.7162176", "0.71184444", "0.71184444", "0.71061045", "0.7075379", "0.7034118", "0.7005593", "0.6911294", "0.6879645", "0.68566966", "0.68566966", "0.68566966", "0.6750889", "0.66531533", "0.6595265", "0.65823275", "0.65643764", "0.64951015", "0.64829427", "0.6473493", "0.6441758", "0.6439694", "0.6404233", "0.63704795", "0.63382745", "0.63206625", "0.6282194", "0.62818956", "0.62673664", "0.6209009", "0.620221", "0.6187396", "0.6137801", "0.61346644", "0.60666406", "0.60298604", "0.6021519", "0.6011363", "0.5978552", "0.5969316", "0.5946145", "0.59390503", "0.59390503", "0.59372455", "0.5934", "0.5921085", "0.59202254", "0.59120065", "0.5872854", "0.58687705", "0.58671165", "0.5861539", "0.58612233", "0.58518344", "0.58490133", "0.58464634", "0.58102727", "0.58088213", "0.5806117", "0.5772393", "0.57553923", "0.57384765", "0.5737274", "0.57346135", "0.5734075", "0.57262087", "0.5722543", "0.5714962", "0.57076037", "0.5701944", "0.57003146", "0.56970274", "0.5682426", "0.5675662", "0.5673761", "0.5664755", "0.5657612", "0.5645036", "0.5642777", "0.56276876", "0.5621006", "0.5614063", "0.5612196", "0.5609274", "0.5602662", "0.5598475", "0.55916274", "0.5583443", "0.5574472", "0.5574273", "0.5571266", "0.55378014" ]
0.6680639
21
endregion Clear focus of any edit text when the user click next to it.
@Override public boolean dispatchTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { View v = getCurrentFocus(); if (v instanceof EditText) { Rect outRect = new Rect(); v.getGlobalVisibleRect(outRect); if (!outRect.contains((int)event.getRawX(), (int)event.getRawY())) { v.clearFocus(); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(v.getWindowToken(), 0); } } } return super.dispatchTouchEvent(event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetFocus();", "void resetFocus();", "void removeFocus();", "void txtClear () {\r\n\r\n\t\ttxtNo.setText (\"\");\r\n\t\ttxtName.setText (\"\");\r\n\t\ttxtDeposit.setText (\"\");\r\n\t\ttxtNo.requestFocus ();\r\n\r\n\t}", "public void resetFocus() {\n toSetFocus = null;\n focusOn = null;\n }", "private void unfocusedAll() {\n this.nameTextField.setFocusTraversable(false);\n this.surnameTextField.setFocusTraversable(false);\n this.addressTextField.setFocusTraversable(false);\n this.postalCodeTextField.setFocusTraversable(false);\n }", "public void clearEditMode()\n\t{\n\t\tpromptTarget = \"\";\n\t\tpromptType = \"\";\n\t\tcs = lastCs;\n\t}", "@Override\n public void clear() {\n view.setText(\"\");\n view.setSelection(view.getText().length());\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_eve.isFocused()) {\n et_eve.setText(null);\n et_eve.requestFocus();\n\n }\n\n }", "public void clearEditTextBoxes()\n {\n \ttaskName.setText(\"\");\n \ttaskDetails.setText(\"\");\n \ttaskId.setText(\"\");\n \t//TODO Add alarm stuff here\n }", "private void quitAllFocus() {\n\t\ttry {\n\t\t\tquitFocus(txtContacto);\n\t\t\tquitFocus(txtDescripcion);\n\t\t\tquitFocus(txtNombre);\n\t\t} catch (Exception e) {}\n\t}", "private void clearTextInput() {\n\t\ttextInput.setText(\"\");\n\t}", "private void clear() {\r\n\t\tareaTexto.setText(\"\");\r\n\t}", "public void clearSelection() {\n getElement().clearSelection();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField_1.setText(\"\");\r\n\t\t\t\ttextField.setText(\"\");\r\n\t\t\t}", "public void reset() {\n txtReferredBy.setText(\"\");\n txtReferredBy.setBackground(theAppMgr.getBackgroundColor());\n //txtReferredBy.setEditable(false);\n //txtReferredBy.setBackground(Color.lightGray);\n if (cbxProfession.getItemCount() > 0)\n cbxProfession.setSelectedIndex(0);\n if (cbxEducation.getItemCount() > 0)\n cbxEducation.setSelectedIndex(0);\n txtNotes1.setText(\"\");\n txtNotes2.setText(\"\");\n txtPartFamName.setText(\"\");\n txtPartName.setText(\"\");\n txtBirthPlc.setText(\"\");\n if (cbxSpcEvt.getItemCount() > 0)\n cbxSpcEvt.setSelectedIndex(0);\n txtSpclDate.setText(\"\");\n txtChildNames.setText(\"\");\n txtNumChildren.setText(\"\");\n }", "public void setFocus(){\n\t\ttxtText.setFocus(true);\n\t\ttxtText.selectAll();\n\t}", "public void clearBtn(View view){\n formula.editText(\"$$ $$\", 3);\r\n //formula.cursPosition = 3;\r\n refresh();\r\n\r\n }", "@Override\n public void onClick(View v) {\n searchET.setText(\"\");\n //hide keyboard\n Utils.hideKeyboard(getActivity());\n }", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_mrng.isFocused()) {\n et_mrng.setText(null);\n et_mrng.requestFocus();\n\n }\n\n }", "protected void ACTION_ON_CLEAR(ActionEvent arg0) {\n\t\ttextArea_1.setText(\"\");\r\n\t}", "@Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (et_aftn.isFocused()) {\n et_aftn.setText(null);\n et_aftn.requestFocus();\n\n }\n\n }", "@Override\n public void focusGained(FocusEvent e) {\n JTextField source = (JTextField) e.getComponent();\n if (source.getText().equals(defaultText))//if default text is there, our program clearing it.\n source.setText(\"\");\n source.removeFocusListener(this);\n }", "public void focus() {}", "public static void clear() {\n doEdit();\n mEditor.clear();\n doCommit();\n }", "@Override \n\tpublic void focusGained(FocusEvent e){\n\t\tif(this.getText().equals(this.texto)){\n\t\t\tthis.setText(\"\");\n\t\t\tthis.setForeground(Color.BLACK);\n\t\t}\n\t}", "public void clearText() {\n this.mBinding.text.setText(\"\");\n }", "public void focusGained(FocusEvent e) {\n highlightText(0);\n }", "public void setFocus() {\n\t}", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "void setFocus();", "private void toClear()\n {\n tfPaintId.setText(\"\");\n tfName.setText(\"\");\n tfPrice.setText(\"\");\n tfColor.setText(\"\");\n rwCombo.setSelectedIndex(0);\n bCombo.setSelectedIndex(0);\n typeCombo.setSelectedIndex(0);\n tfQuantity.setText(\"\");\n bg.clearSelection();\n \n }", "public void actionPerformed(ActionEvent e) {\n\t\t\treplaceSelection(\"\");\n\t\t}", "private void getClearButtonSemantics() {\n //TODO implement method\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getResultsTextArea().setText(\"\");\n searchView.getSearchValueTextField().requestFocus();\n }", "public void text_clear()\n {\n C_ID.setText(\"\");\n C_Name.setText(\"\");\n C_NIC.setText(\"\");\n C_P_Id.setText(\"\");\n C_P_Name.setText(\"\");\n C_Address.setText(\"\");\n C_TelNo.setText(\"\");\n C_Age.setText(\"\");\n }", "@FXML\n\tprivate void onClearClicked(){\n\t\ttextArea.clear();\n\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_accno.getText().contains(\"xxx\")){\n jtxt_accno.setText(\"\");\n }\n }", "public void clearEditMode() {\n\t\tmIsEditMode = false;\n\t\tmDeList.clear();\n\t}", "public void setFocus();", "private void btClearActionPerformed(java.awt.event.ActionEvent evt) {\n if(tbphieuphat.isEnabled())\n txMaPM.setText(\"\");\n /*if(EditOrSearch==0){\n tf.setText(\"\");\n txSoLuongMax.setText(\"\");\n txDonGiaMax.setText(\"\");\n }*/\n txMaPM.setText(\"\");\n txTongTien.setText(\"\");\n }", "protected void stopEnterText()\n\t{ if (text.getText().length() > 0) text.setText(text.getText().substring(0, text.getText().length() - 1)); }", "private void clearButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearButtonActionPerformed\n textArea.setText(null);\n }", "public void setFocus() {\n }", "protected void resetFocus() {\n passwordPF.requestFocusInWindow();\n }", "final void clearMostRecentFocusOwnerOnHide() {\n /* do nothing */\n }", "public static void clearFocus() {\n\t\tfor(Square s : BOARD_SQUARES) {\n\t\t\ts.setTempBackgroundColor((s).getBackgroundColor());\n\t\t\tif(s.hasPiece()) {\n\t\t\t\ts.getPiece().setFocus(false);\n\t\t\t}\n\t\t}\n\t}", "public void clear() {\n\t\ttextArea.setText(\"\");\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\ttextArea.getDocument().remove(0,\n\t\t\t\t\t\t\ttextArea.getDocument().getLength());\n\t\t\t\t\tstandardOut.println(\"Text area cleared\");\n\t\t\t\t} catch (BadLocationException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "@FXML\n public void limpaCidade(){\n \ttxtNome.setText(\"\");\n \ttxtUf.getSelectionModel().clearSelection();\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_createCurrentAccPIN.getText().contains(\"xxx\")){\n jtxt_createCurrentAccPIN.setText(\"\");\n }\n }", "private void clear() {//将文本框等状态置零\n\t\tusername.setText(\"\");\n\t\tpass.setText(\"\");\n\t\tname.setText(\"\");\n\t\tsex1.setSelected(true);\n\t\ttel.setText(\"\");\n\t\taddr.setText(\"\");\n\t\trole.setSelectedIndex(0);\n\t\tusername.grabFocus();\n\t}", "public void clear()\n{\n\ttextArea().setText(\"\");\n}", "private void ClearFields() {\n txtGRNNO.setText(null);\n dccGRNDate.setCalendar(null);\n\n txtGRNNO.requestFocus();\n }", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "private void blank() {\r\n txt_name.requestFocus();\r\n txt_id.setText(null);\r\n txt_name.setText(null);\r\n txt_bagian.setText(null);\r\n txt_telp.setText(null);\r\n txt_address.setText(null);\r\n\r\n }", "private void jtxtbrand_code_frFocusGained(java.awt.event.FocusEvent evt) {\n jtxtbrand_code_fr.setSelectionStart(0);\n jtxtbrand_code_fr.setSelectionEnd(jtxtbrand_code_fr.getText().length());\n}", "private void jTextField_tagMouseClicked(java.awt.event.MouseEvent evt) {\n jTextField_tag.setText(\"\");\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tchat_field.setText(\"\");\n\t\t\t}", "public void clearText(){\n EditText userIdEntry = findViewById(R.id.userIDEntry);\n userIdEntry.getText().clear();\n }", "void clearSelection();", "private void clearTextBox(){\n txtBox.setText(\"\");\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jTextField_Create_Savings_Acc_acchol.getText().contains(\"xxx\")){\n jTextField_Create_Savings_Acc_acchol.setText(\"\");\n }\n }", "public void clearTextFields() {\n placeBidField.setText(\"\");\n }", "private void clear()\n\t{\n\t\tComponent[] comp = contentPanel.getComponents();\n\t\tfor(Component c:comp)\n\t\t{\n\t\t\tif(c instanceof JTextField)\n\t\t\t\t((JTextField)c).setText(\"\");\n\t\t}\n\t\t\n\t}", "public void delete() {\n\t if (input.getSelectedText() != null){\n\t input.setText(input.getText().replace(\n\t input.getSelectedText(), \"\"));}\n\t}", "public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "public void getClearButtonSemantics() {\r\n JTextField bodyTextField = addTweet.getBodyTextField();\r\n bodyTextField.setText(\"\");\r\n bodyTextField.requestFocus();\r\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n textField1.setText(\"\");\n textField3.setText(\"\");\n }", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n public void setFocus() {\n }", "public void clearTextFields(){\n //Clears all text from the EditText\n textInputEditText_full_name.setText(\"\");\n textInputEditText_student_id.setText(\"\");\n textInputEditText_pin.setText(\"\");\n textInputEditText_confirm_pin.setText(\"\");\n }", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\n public void limpiar() {\n txtIdioma.setText(\"\");\n txtBusqueda.setText(\"\");\n }", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "void resetTextFields();", "public void clear() {\n\t\tdestName.setText(\"\");\n\t\tedtTextZip.setText(\"\");\n\t\tedtTextMemos.setText(\"\");\n\t\tedtTextStreetAdress.setText(\"\");\n\t\tedtTextCity.setText(\"\");\n\t}", "@Override\n public void onClick(ClickEvent event) {\n if (input.getValue().equals(PlaceholderHTML4.this.placeholder)) {\n input.cursorAt(0);\n } else {\n input.selectAll();\n }\n }", "private void clearTextField() {\n txtOrder.setText(\"\");\n txtName.setText(\"\");\n txtWeight.setText(\"\");\n txtGallon.setText(\"\");\n txtPersent.setText(\"\");\n txtPrice.setText(\"\");\n \n }", "protected void resetFocus() {\r\n passwordField.requestFocusInWindow();\r\n }", "public void endFocus() {\n\t\tlog.fine(\"Ending focus\");\n\t\tthis.placeTime = Calendar.getInstance().getTimeInMillis();\n\t\tthis.focusTime = 0;\n\t\tthis.focused = false;\n\t\tthis.userId = -1;\n\t}", "public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }", "public void deselectFocusedNode(){\r\n \tfocusOut();\r\n }", "protected void onFocusGained()\n {\n ; // do nothing. \n }", "private void Clear() {\n AAccLevel_AdEdRe_TextF_AccLevelID.setText(\"\");\n AAccLevel_AdEdRe_TextF_AccLevelName.setText(\"\");\n AAccLevel_AdEdRe_TextA_Discription.setText(\"\");\n }", "public void loseFocus(){\r\n\t//\tthis.setId(\"single-image-widget\");\r\n//\t\t((ColumnViewPane) this.getParent()).refresh();\r\n\t\thasFocus = false;\r\n\t}", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_holderName.getText().contains(\"xxx\")){\n jtxt_holderName.setText(\"\");\n }\n }", "protected void doSetFocus() {\n \t\tif (getText() != null) {\n \t\t\tgetText().selectAll();\n \t\t\tgetText().setFocus();\n \t\t\tcheckSelection();\n \t\t\tcheckDeleteable();\n \t\t\tcheckSelectable();\n \t\t}\n \t}", "public void onClick(View v) {\n editText1.setInputType(InputType.TYPE_NULL);\n InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n mgr.hideSoftInputFromWindow(editText1.getWindowToken(),InputMethodManager.HIDE_IMPLICIT_ONLY);\n }", "private void schowajKlawiature() {\n View view = this.getActivity().getCurrentFocus(); //inside a fragment you should use getActivity()\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }", "@Override\n public void clearCategoryOtherEditTextField() {\n mEditTextProductCategoryOther.setText(\"\");\n }", "@Override\n public void focusGained(FocusEvent arg0) {\n if(jtxt_balance.getText().contains(\"000\")){\n jtxt_balance.setText(\"\");\n }\n }" ]
[ "0.75229996", "0.75229996", "0.7511572", "0.713828", "0.70244765", "0.6996279", "0.68754077", "0.68534666", "0.6645395", "0.66265774", "0.6527941", "0.6518484", "0.6469386", "0.64406115", "0.6439252", "0.64333516", "0.6404592", "0.63775235", "0.63769114", "0.63692486", "0.6362061", "0.6359953", "0.63591385", "0.6350848", "0.6350229", "0.63372153", "0.63323444", "0.6305966", "0.6301924", "0.62955344", "0.62884676", "0.6283815", "0.62836653", "0.6277959", "0.6262511", "0.62609714", "0.624583", "0.6240832", "0.62391335", "0.6227868", "0.62181044", "0.62147605", "0.6199708", "0.61987853", "0.6194763", "0.6189427", "0.6182225", "0.6180657", "0.6179981", "0.6179892", "0.6169664", "0.6168954", "0.6167595", "0.61654073", "0.61521596", "0.61435574", "0.61408675", "0.61383164", "0.6136423", "0.6135237", "0.6134797", "0.6125227", "0.6124535", "0.61117196", "0.6109194", "0.6108749", "0.61030924", "0.60937357", "0.60937357", "0.60937357", "0.60937357", "0.60937357", "0.608684", "0.60855573", "0.6083748", "0.6083748", "0.6083748", "0.6083748", "0.6076392", "0.607576", "0.6070939", "0.60707206", "0.60696954", "0.6067883", "0.60561556", "0.60503215", "0.6049295", "0.6045807", "0.60413253", "0.6036335", "0.6029028", "0.6024271", "0.6023887", "0.6017733", "0.60158765", "0.60142845", "0.6012509", "0.6010658", "0.6008866", "0.60075533", "0.6000288" ]
0.0
-1
Show a popup with different checkbox allowing the user to select which type he wants to keep in the history of expenses/credits.
private void showTypeSelectionDialog() { // Initialize an alert dialog AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(""); // Set popup content view LayoutInflater inflater = getLayoutInflater(); View alertView = inflater.inflate(R.layout.check_account_type, null); final LinearLayout expenseTypesGrid = (LinearLayout) alertView.findViewById(R.id.expenses_grid); final LinearLayout creditTypesGrid = (LinearLayout) alertView.findViewById(R.id.credits_grid); String[] expenseTypes = getResources().getStringArray(R.array.expense_types); String[] creditTypes = getResources().getStringArray(R.array.credit_types); // Set up the layout to use LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); // Populate expenses grid for (int i = 0; i < expenseTypes.length; ++i) { // Create the new checkbox CheckBox checkBox = new CheckBox(this); checkBox.setText(expenseTypes[i]); checkBox.setChecked(mExpenseTypesSelected[i]); checkBox.setLayoutParams(layoutParams); // Add the view expenseTypesGrid.addView(checkBox); } // Populate credits grid for (int i = 0; i < creditTypes.length; ++i) { // Create the new checkbox CheckBox checkBox = new CheckBox(this); checkBox.setText(creditTypes[i]); checkBox.setChecked(mCreditTypesSelected[i]); checkBox.setLayoutParams(layoutParams); // Add the view creditTypesGrid.addView(checkBox); } // Add listeners to buttons present in the view final Button selectAllButton = (Button) alertView.findViewById(R.id.select_all); Button selectNothingButton = (Button) alertView.findViewById(R.id.select_nothing); Button selectExpensesButton = (Button) alertView.findViewById(R.id.select_expenses); Button selectCreditsButton = (Button) alertView.findViewById(R.id.select_credits); selectAllButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setCheckBoxesState(expenseTypesGrid, true); setCheckBoxesState(creditTypesGrid, true); } }); selectNothingButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setCheckBoxesState(expenseTypesGrid, false); setCheckBoxesState(creditTypesGrid, false); } }); selectExpensesButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setCheckBoxesState(expenseTypesGrid, true); setCheckBoxesState(creditTypesGrid, false); } }); selectCreditsButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { setCheckBoxesState(expenseTypesGrid, false); setCheckBoxesState(creditTypesGrid, true); } }); builder.setView(alertView); // Set up the buttons Resources res = getResources(); builder.setNegativeButton(res.getString(R.string.cancel), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); builder.setPositiveButton(res.getString(R.string.apply), new DialogInterface.OnClickListener(){ @Override public void onClick(DialogInterface dialog, int which) { updateSelectedTypes(expenseTypesGrid, creditTypesGrid); for (int i = 0; i < onTypesUpdatedListeners.size(); ++i) onTypesUpdatedListeners.get(i).run(); dialog.dismiss(); } }); builder.setNeutralButton(res.getString(R.string.reset), new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { selectAllButton.performClick(); updateSelectedTypes(expenseTypesGrid, creditTypesGrid); for (int i = 0; i < onTypesUpdatedListeners.size(); ++i) onTypesUpdatedListeners.get(i).run(); dialog.dismiss(); } }); // Show alert dialog builder.create().show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "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 }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif(miseEnRelation.isSelected()) {\n\t\t\t\t\ttypeEmploi.setVisible(true);\n\t\t\t\tchampPlus.setText(\"Type emploi\");}\n\t\t\t\telse\n\t\t\t\t\ttypeEmploi.setVisible(false);\n\t\t\t}", "public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }", "private void handleInsuranceTypeChange() {\n\t\tString insurance = cbInsurance.getText();\n\n\t\tif (optionA[1].equals(insurance))\n\t\t\tbtnInsurancePop.setEnabled(true);\n\t\telse {\n\t\t\tbtnInsurancePop.setEnabled(false);\n\t\t}\n\t}", "boolean isPopUpOpened();", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "public boolean showPopupChoice(WMSEvent evt, Icon icon, String choiceOne, String choiceTwo) {\n JPanel target = mainPanel;\n JPanel panel = null;\n String[] options = new String[2];\n options[0] = choiceOne;\n options[1] = choiceTwo;\n\n boolean result = false;\n try {\n panel = JPanel.class.cast(evt.getSource());\n } catch (ClassCastException e) {\n// log.write(\"Exception: \" + e.getMessage());\n }\n if (panel != null) {\n target = this.mainPanel;\n }\n\n if (JOptionPane.showOptionDialog(target, evt.getUserMessage(), afMgr.getProductName() + \"Question ?\", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, icon, options, 0) == 0) {\n result = true;\n }\n return result;\n }", "private void changedChoiceBox(){\n\t\thideLackUserPermissionsLabel();\n\t\thideShowCheckBoxes();\n\t}", "private void showListSelectCheckBox(){\n DisplayListWithCheckBox();\n //wordList.setSelection(FirstVisiblePosition);\n\n FloatingActionButton fab_plus = findViewById(R.id.fab_plus);\n fab_plus.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_play = findViewById(R.id.fab_play);\n fab_play.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_delete = findViewById(R.id.fab_delete);\n fab_delete.setVisibility(View.VISIBLE);\n }", "@Override\r\n\tpublic void onClick(View v) {\r\n\t\tif (v == okButton){\r\n\t\t\tif(dontShow.isChecked()){\r\n\t\t\tAlertDialog builder2 = new AlertDialog.Builder(this.parentcontext)\r\n .setTitle(\"Confirmation\")\r\n .setMessage(\"Are you sure about disabling instruction from next use\")\r\n .setPositiveButton(\"Submit\", new Dialog.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n // Mark this version as read.\r\n \t\r\n \t\t\t\tSharedPreferences.Editor editor = prefs.edit();\r\n editor.putBoolean(CustomizeDialog.this.key, true);\r\n editor.commit();\r\n //dialogInterface.dismiss();\r\n \t\t\t}\r\n \r\n })\r\n .setNegativeButton(\"Cancel\", new Dialog.OnClickListener() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t// Close the activity as they have declined the EULA\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n \t\r\n })\r\n .show();}\t\t\t\r\n\t\t\r\n\t\t\tdismiss();\r\n\t\t}\r\n\t}", "private void showUnsavedChnageDialog(DialogInterface.OnClickListener discardButtonClickListener) {\r\n //create an alert dialog box and set a message for the user\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.unsaved_changes_message);\r\n builder.setPositiveButton(R.string.discard_button, discardButtonClickListener);\r\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n //user has clicked the keep editing button\r\n if (dialogInterface != null) {\r\n dialogInterface.dismiss();\r\n }\r\n }\r\n });\r\n //create dialog\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "private void popupModify2te() {\n\t\tRolle rolle = (Rolle) this;\n\t\taufzugschacht.mainFrameShowOptionsFrame(rolle.getRolle2teUmschlingung(), true);\n\t}", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif(achatVente.isSelected()) {\n\t\t\t\t\tquantity.setVisible(true);\n\t\t\t\t\tchampPlus.setText(\"Quantité\");\n\t\t\t\t\t}\n\t\t\t\telse quantity.setVisible(false);\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(cb_show.isChecked()){\r\n\t\t\t\t\tSharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, \"ldss_show\", false);\r\n\t\t\t\t\tOpenActivityFinsh(JshWdjLdssSetActivity.class);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, \"ldss_show\", true);\r\n\t\t\t\t\tOpenActivity(JshWdjLdssSetActivity.class);\r\n\t\t\t\t}\r\n\t\t\t}", "private void showUnsavedChangesDialog() {\n // Create an AlertDialog.Builder and set the message and click listeners for the positive\n // and negative buttons.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.you_have_unsaved_messages_dialog);\n\n // Leave the page if user clicks \"Leave\"\n builder.setPositiveButton(R.string.leave, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n\n // Stay on the page if user clicks \"Stay\"\n builder.setNegativeButton(R.string.stay, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (!isEdit) {\r\n\t\t\t\t\txb_popup.showAsDropDown(xbet, 0, 1, xbet.getWidth(),\r\n\t\t\t\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\t\t\t}\r\n\t\t\t}", "private void showPopuopForDebitAndCredit(int flowSelected) {\n String languageCode = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode);\n Utility.getInstance().localisation(getActivity(), languageCode);\n this.flowSelected = flowSelected;\n dialog = new Dialog(mContext);\n if (!dialog.isShowing()) {\n dialog.setCancelable(false);\n dialog.getWindow().addFlags(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setContentView(R.layout.popup_debit);\n RelativeLayout relativeParentPopUp = dialog.findViewById(R.id.relativeParentPopUp);\n RelativeLayout parentRelative = dialog.findViewById(R.id.parentRelative);\n ImageView imageviewCross = dialog.findViewById(R.id.imageviewCross);\n CardView cardviewCreditDebitOk = dialog.findViewById(R.id.cardviewCreditDebitOk);\n edittextDebitcustomerName = dialog.findViewById(R.id.edittextDebitcustomerName);\n edittextdebitAmount = dialog.findViewById(R.id.edittextdebitAmount);\n edittextdebitPurpose = dialog.findViewById(R.id.edittextdebitPurpose);\n edittextdebitLitre = dialog.findViewById(R.id.edittextdebitLitre);\n textviewsremark_enter_Litre = dialog.findViewById(R.id.textviewsremark_enter_Litre);\n textview_notFound = dialog.findViewById(R.id.textview_notFound);\n imageviewOutsnadingProfile = dialog.findViewById(R.id.imageviewOutsnadingProfile);\n textviewOustandingId = dialog.findViewById(R.id.textviewOustandingId);\n textviewOustandingName = dialog.findViewById(R.id.textviewOustandingName);\n textviewOustandingAmount = dialog.findViewById(R.id.textviewOustandingAmount);\n relativelayoutOustandingProfile = dialog.findViewById(R.id.relativelayoutProfile);\n edittextCreditDebitDate = dialog.findViewById(R.id.edittextCreditDebitDate);\n ImageView imageviewMicDebitLitre = dialog.findViewById(R.id.imageviewMicDebitLitre);\n imageviewMicCustomerDebit = dialog.findViewById(R.id.imageviewMicCustomerDebit);\n ImageView imageviewMicDebitAmount = dialog.findViewById(R.id.imageviewMicDebitAmount);\n ImageView imageviewMicDebitPurpose = dialog.findViewById(R.id.imageviewMicDebitPurpose);\n imageviewMicSaveCancel = dialog.findViewById(R.id.imageviewMicSaveCancel);\n CardView cardviewCreditDebitCancel = dialog.findViewById(R.id.cardviewCreditDebitCancel);\n ImageView imageviewCreditDebitDate = dialog.findViewById(R.id.imageviewCreditDebitDate);\n TextView textviewTitle = dialog.findViewById(R.id.textviewTitle);\n TextView textviewamount = dialog.findViewById(R.id.textviewsaleReport);\n\n SharedPreferences sharedPreferences = Utility.getInstance().getSharedPReference(mContext);\n textviewOustandingAmount.setVisibility(View.GONE);\n\n if (flowSelected == 2) {\n\n textviewTitle.setText(getString(R.string.menu_sale));\n textviewamount.setText(getString(R.string.sale_amount));\n\n //textviewTitle.setTextColor(getResources().getColor(R.color.lightRed));\n final int sdk = android.os.Build.VERSION.SDK_INT;\n if (sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) {\n // relativeParentPopUp.setBackgroundDrawable(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_popup));\n parentRelative.setBackgroundDrawable(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_popup));\n } else {\n // relativeParentPopUp.setBackground(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_popup));\n parentRelative.setBackground(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_popup));\n }\n\n\n // relativeParentPopUp.setBackgroundColor(getResources().getColor(R.color.lightredbackground));\n if (sharedPreferences.getString(\"BusinessId\", \"\").matches(\"4\")) {\n //Dairytype\n edittextdebitLitre.setVisibility(View.GONE);\n textviewsremark_enter_Litre.setVisibility(View.GONE);\n imageviewMicDebitLitre.setVisibility(View.GONE);\n }\n } else {\n final int sdk = android.os.Build.VERSION.SDK_INT;\n if (sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) {\n // relativeParentPopUp.setBackgroundDrawable(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_green_popup));\n parentRelative.setBackgroundDrawable(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_green_popup));\n } else {\n// relativeParentPopUp.setBackground(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_green_popup));\n parentRelative.setBackground(ContextCompat.getDrawable(mContext, R.drawable.rounded_corner_green_popup));\n }\n //relativeParentPopUp.setBackgroundColor(getResources().getColor(R.color.lightgreenbackground));\n textviewTitle.setText(getString(R.string.amount_received));\n textviewamount.setText(getString(R.string.amount_receive));\n\n // textviewTitle.setTextColor(getResources().getColor(R.color.colorGreen));\n }\n\n int currentMonth = dob_currentDate.get(Calendar.MONTH) + 1;\n edittextCreditDebitDate.setText(dob_currentDate.get(Calendar.DAY_OF_MONTH) + \"/\" + currentMonth + \"/\" + dob_currentDate.get(dob_currentDate.YEAR));\n\n edittextCreditDebitDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextCreditDebitDate.setError(null);\n DatePickerDialog datePickerDialog = new DatePickerDialog(mContext, R.style.DialogTheme, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n edittextCreditDebitDate.setText(dayOfMonth + \"/\" + month + \"/\" + year);\n boolean valueStatus = validateCreditDebit(flowSelected);\n if (valueStatus) {\n speak(getString(R.string.please_say_save_or_cancel), \"\");\n new Handler().postDelayed(() -> {\n if (flowSelected == 1) {\n speechToTextFuncVoice(mContext, null, 3, imageviewMicSaveCancel, 2);\n } else {\n speechToTextFuncVoice(mContext, null, 4, imageviewMicSaveCancel, 2);\n }\n }, 3000);\n }\n }\n }, dob_currentDate.get(dob_currentDate.YEAR), dob_currentDate.get(Calendar.MONTH), dob_currentDate.get(Calendar.DAY_OF_MONTH));\n// datePickerDialog.setTitle(\"Select Date\");\n datePickerDialog.getDatePicker().setMaxDate(System.currentTimeMillis());\n datePickerDialog.show();\n }\n });\n\n\n imageviewCreditDebitDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextCreditDebitDate.setError(null);\n DatePickerDialog datePickerDialog = new DatePickerDialog(mContext, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n edittextCreditDebitDate.setText(dayOfMonth + \"/\" + month + \"/\" + year);\n boolean valueStatus = validateCreditDebit(flowSelected);\n if (valueStatus) {\n speak(getString(R.string.please_say_save_or_cancel), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (flowSelected == 1) {\n speechToTextFuncVoice(mContext, null, 3, imageviewMicSaveCancel, 2);\n } else {\n speechToTextFuncVoice(mContext, null, 4, imageviewMicSaveCancel, 2);\n }\n }\n }, 3000);\n }\n }\n }, dob_currentDate.get(dob_currentDate.YEAR), dob_currentDate.get(Calendar.MONTH), dob_currentDate.get(Calendar.DAY_OF_MONTH));\n// datePickerDialog.setTitle(\"Select Date\");\n datePickerDialog.getDatePicker().setMaxDate(System.currentTimeMillis());\n datePickerDialog.show();\n }\n });\n\n\n textWatcherDebitCutomerName = 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 (edittextDebitcustomerName.hasFocus()) {\n if (Utility.getInstance().isOnline(mContext)) {\n checkOustandingData(s.toString(), false);\n }\n }\n }\n };\n\n edittextDebitcustomerName.addTextChangedListener(textWatcherDebitCutomerName);\n\n\n imageviewCross.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n dialog.dismiss();\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n imageviewDevitMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewMicCredit.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n }\n });\n cardviewCreditDebitOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean valueStatus = validateCreditDebit(flowSelected);\n if (valueStatus) {\n saveCreditandDebit(flowSelected);\n }\n }\n });\n\n imageviewMicSaveCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean valueStatus = validateCreditDebit(flowSelected);\n if (valueStatus) {\n speak(getString(R.string.please_say_save_or_cancel), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (flowSelected == 1) {\n speechToTextFuncVoice(mContext, null, 3, imageviewMicSaveCancel, 2);\n } else {\n speechToTextFuncVoice(mContext, null, 4, imageviewMicSaveCancel, 2);\n }\n }\n }, 3000);\n }\n }\n });\n\n edittextDebitcustomerName.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 (edittextDebitcustomerName.hasFocus()) {\n edittextDebitcustomerName.setError(null);\n edittextdebitAmount.setError(null);\n edittextdebitPurpose.setError(null);\n edittextdebitLitre.setError(null);\n }\n }\n });\n\n edittextdebitAmount.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n Log.e(TAG, \"beforeTextChanged: \");\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n Log.e(TAG, \"beforeTextChanged: \");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n Log.e(TAG, \"beforeTextChanged: \");\n edittextDebitcustomerName.setError(null);\n edittextdebitAmount.setError(null);\n edittextdebitPurpose.setError(null);\n edittextdebitLitre.setError(null);\n }\n });\n\n edittextdebitPurpose.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 edittextDebitcustomerName.setError(null);\n edittextdebitAmount.setError(null);\n edittextdebitPurpose.setError(null);\n edittextdebitLitre.setError(null);\n }\n });\n edittextdebitLitre.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n Log.e(TAG, \"beforeTextChanged: \");\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n Log.e(TAG, \"onTextChanged: \");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n edittextDebitcustomerName.setError(null);\n edittextdebitAmount.setError(null);\n edittextdebitPurpose.setError(null);\n edittextdebitLitre.setError(null);\n }\n });\n\n cardviewCreditDebitCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n dialog.dismiss();\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n Toast.makeText(mContext, getString(R.string.transaction_cancelled), Toast.LENGTH_SHORT).show();\n speak(getString(R.string.transaction_cancelled), \"\");\n imageviewDevitMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewMicCredit.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n }\n });\n\n imageviewMicDebitLitre.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextdebitLitre.setError(null);\n speak(getString(R.string.please_tell_liter), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n edittextdebitLitre.requestFocus();\n speechToTextFuncVoice(mContext, edittextdebitLitre, 2, imageviewMicDebitLitre, 2);\n }\n }, 2000);\n\n }\n });\n\n imageviewMicCustomerDebit.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextDebitcustomerName.setError(null);\n speak(getString(R.string.please_tell_customer_name), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n edittextDebitcustomerName.requestFocus();\n speechToTextFuncVoice(mContext, edittextDebitcustomerName, 1, imageviewMicCustomerDebit, 2);\n }\n }, 3000);\n\n }\n });\n\n imageviewMicDebitAmount.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextdebitAmount.setError(null);\n if (flowSelected == 2) {\n speak(getString(R.string.enter_sale_amount), \"\");\n } else {\n speak(getString(R.string.enter_amount_receive), \"\");\n }\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n edittextdebitAmount.requestFocus();\n speechToTextFuncVoice(mContext, edittextdebitAmount, 2, imageviewMicDebitAmount, 2);\n }\n }, 2000);\n }\n });\n\n imageviewMicDebitPurpose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextdebitPurpose.setError(null);\n speak(getString(R.string.please_tell_purpose), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n edittextdebitPurpose.requestFocus();\n speechToTextFuncVoice(mContext, edittextdebitPurpose, 1, imageviewMicDebitPurpose, 2);\n }\n }, 2000);\n }\n });\n\n if (!dialog.isShowing()) {\n String languageCode2 = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode2);\n Utility.getInstance().localisation(getActivity(), languageCode2);\n dialog.show();\n/* Window window = dialog.getWindow();\n window.setLayout(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);*/\n dialog.getWindow().setGravity(Gravity.TOP | Gravity.RIGHT);\n WindowManager.LayoutParams layoutParams = dialog.getWindow().getAttributes();\n layoutParams.x = 100; // right margin\n layoutParams.y = 170; // top margin\n dialog.getWindow().setAttributes(layoutParams);\n // e.g. bottom + left margins:\n dialog.getWindow().setGravity(Gravity.BOTTOM | Gravity.LEFT);\n WindowManager.LayoutParams layoutParams1 = dialog.getWindow().getAttributes();\n layoutParams1.x = 100; // left margin\n layoutParams1.y = 170; // bottom margin\n dialog.getWindow().setAttributes(layoutParams1);\n }\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n if (chckbxNewCheckBox.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox_1.setSelected(false);\r\n // enable the combox box drop down\r\n comboBox.setEnabled(true);\r\n // disable the textfield for the user input\r\n textField_3.setEnabled(false);\r\n textField_3.setText(\"\");\r\n // enable the refresh rooms button\r\n btnNewButton.setEnabled(true);\r\n }\r\n }", "private void saveOption() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n SharedPreferences.Editor editor = filterSetting.edit();\n editor.putBoolean(\"myMostRecent\",myMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"myDisplayAll\",myDisplayAllCheckbox.isChecked());\n editor.putBoolean(\"foMostRecent\",foMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"foDisplayAll\",foDisplayAllCheckbox.isChecked());\n editor.putString(\"myReason\",myReasonEditText.getText().toString());\n editor.putString(\"foReason\",foReasonEditText.getText().toString());\n editor.putInt(\"mySpinner\",myEmotionalStateSpinner.getSelectedItemPosition());\n editor.putInt(\"foSpinner\",foEmotionalStateSpinner.getSelectedItemPosition());\n\n editor.commit();\n }", "private void showUnsavedChangesDialog() {\n //create the builder\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n //add message and button functionality\n builder.setMessage(\"Discard your changes and quit?\")\n .setPositiveButton(\"Discard\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //make the sdiscard boolean false and go to back pressed to follow normal hierarchical back\n unsavedChanges = false;\n //continue with back button\n onBackPressed();\n }\n })\n .setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //close the dialog\n dialog.dismiss();\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == Constants.DATA_ENTERED) { //check if data entered\n if (resultCode == RESULT_OK) { //if the result code is ok\n boolean checked = data.getBooleanExtra(Constants.SELECT, false); //checked or not checked boolean\n\n //if checkbox is checked\n if (checked) {\n Toast.makeText(ActivityOne.this, Constants.AGREE, Toast.LENGTH_LONG).show(); //display toast on activity one\n } else {\n Toast.makeText(this, Constants.DISAGREE, Toast.LENGTH_LONG).show(); //display toast on activity one\n }\n }\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n if (chckbxNewCheckBox_1.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox.setSelected(false);\r\n // disable the combox box drop down\r\n comboBox.setEnabled(false);\r\n // enable the textfield for the user input\r\n textField_3.setEnabled(true);\r\n textField_3.setText(\"\");\r\n // disable the refresh rooms button\r\n btnNewButton.setEnabled(false);\r\n }\r\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\tprefs.edit().putBoolean(\"reject\", reject.isChecked()).commit();\n\t\t\t\tif(isChecked)\n\t\t\t\t{\n\t \t\t\tchoose.setVisibility(View.VISIBLE);\n\t \t\t\tmessageCheck.setVisibility(View.VISIBLE);\n\t \t\t\tif(messageCheck.isChecked())\n\t \t\t\t{\n\t\t\t\t\tmessage.setVisibility(View.VISIBLE);\n\t\t\t\t\tsave.setVisibility(View.VISIBLE);\n\t \t\t\t}\n\t\t\t\t\tif(choose.getSelectedItemId()!=0)\n\t\t \t\t\tcontacts.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t \t\t\tmessageCheck.setVisibility(View.GONE);\n\t \t\t\tchoose.setVisibility(View.GONE);\n\t \t\t\tmessage.setVisibility(View.GONE);\n\t\t\t\t\tsave.setVisibility(View.GONE);\n\t\t\t\t\tcontacts.setVisibility(View.GONE);\n\t \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }", "JButton saveButton() {\r\n JButton button = new JButton(\"Save\");\r\n Font buttonsFront = new Font(\"Serif\", Font.PLAIN, 17);\r\n button.setFont(buttonsFront);\r\n button.setPreferredSize(new Dimension(80,30));\r\n\r\n button.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n int flag = 0;\r\n for(int i =0;i<CHACK.length;i++){\r\n if(CHACK[i] == 0)\r\n flag = 1;\r\n }\r\n if(flag == 0){\r\n // TODO Auto-generated method stub\r\n Object[] options ={ \"Yes\", \"No\" };\r\n //yes = 0 no = 1\r\n int m = JOptionPane.showOptionDialog(null, \"Save?\", \"tips\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n System.out.println(m);\r\n if (m==0) {\r\n getCompanyInfoFromText(); //write in\r\n //go back to Init Page\r\n frame.dispose();\r\n new init();\r\n\r\n }\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Place make sure every input is already checked! \", \"Warning\",JOptionPane.WARNING_MESSAGE);\r\n }\r\n\r\n }\r\n });\r\n return button;\r\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n switch(id) {\r\n //noinspection SimplifiableIfStatement\r\n case R.id.action_settings:\r\n return true;\r\n\r\n case R.id.ajouter_aliment_au_rayon:\r\n\r\n // custom dialog\r\n final Dialog dialog = new Dialog(this);\r\n dialog.setContentView(R.layout.layout_ajout_aliment_au_rayon);\r\n dialog.setTitle(\"Mettre en rayon\");\r\n dialog.show();\r\n return true;\r\n\r\n case R.id.check_aliments:\r\n ArrayList<Aliment> allAliments= dataAdapter.allAliments; //recuperation de tous les aliments\r\n //recuperation des aliments non coches\r\n ArrayList<Integer> alimentsRestants= new ArrayList<Integer>();\r\n for(int i= 0 ; i < allAliments.size(); ++i){\r\n Aliment al= allAliments.get(i);\r\n if(!al.isSelected()){\r\n alimentsRestants.add(i);\r\n }\r\n }\r\n StringBuffer responseText = new StringBuffer();\r\n int nb_aliments_manquants= alimentsRestants.size();\r\n if(nb_aliments_manquants == 0){\r\n responseText.append(\"Votre liste est complete, a la caisse !\");\r\n } else if(nb_aliments_manquants == 1) {\r\n responseText.append(\"Il vous manque cet aliment : \" + allAliments.get(alimentsRestants.get(0)).getNom());\r\n } else {\r\n responseText.append(\"Il vous manque ces \" + alimentsRestants.size() + \" aliments :\\n\");\r\n for(int i= 0 ; i < alimentsRestants.size(); ++i){\r\n Integer indice_aliment_restant= alimentsRestants.get(i);\r\n Aliment al= allAliments.get(indice_aliment_restant);\r\n responseText.append(\"\\n\" + al.getNom());\r\n }\r\n }\r\n\r\n Toast.makeText(getApplicationContext(),\r\n responseText, Toast.LENGTH_LONG).show();\r\n return true;\r\n\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "public void checkDefaults(){\n \t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(Options.this);\n \t\tboolean defaultOn = prefs.getBoolean(\"checkbox_default\", true);\n \t\t//Toast.makeText(this, \"Default: \" + defaultOn, Toast.LENGTH_SHORT).show();\n \t\tif(defaultOn){\n \t\t\t//Code Here\n \t\t\ttry{\n \t\t\t\tPreferenceCategory aCategory = (PreferenceCategory)findPreference(\"category_appearance\");\n \t\t\t\tPreferenceScreen tScreen = (PreferenceScreen)findPreference(\"pref_screen_transactions\");\n \t\t\t\tPreferenceScreen aScreen = (PreferenceScreen)findPreference(\"pref_screen_accounts\");\n \t\t\t\taCategory.setSelectable(false);\n \t\t\t\taCategory.setEnabled(false);\n \t\t\t\ttScreen.setEnabled(false);\n \t\t\t\ttScreen.setSelectable(false);\n \t\t\t\taScreen.setEnabled(false);\n \t\t\t\taScreen.setSelectable(false);\n \t\t\t}\n \t\t\tcatch(Exception e){\n \t\t\t\tToast.makeText(Options.this, \"ERROR PREFERENCES\\n\" + e.toString(), Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\t//Code Here\n \t\t\ttry{\n \t\t\t\tPreferenceCategory aCategory = (PreferenceCategory)findPreference(\"category_appearance\");\n \t\t\t\tPreferenceScreen tScreen = (PreferenceScreen)findPreference(\"pref_screen_transactions\");\n \t\t\t\tPreferenceScreen aScreen = (PreferenceScreen)findPreference(\"pref_screen_accounts\");\n \t\t\t\taCategory.setSelectable(true);\n \t\t\t\taCategory.setEnabled(true);\n \t\t\t\ttScreen.setEnabled(true);\n \t\t\t\ttScreen.setSelectable(true);\n \t\t\t\taScreen.setEnabled(true);\n \t\t\t\taScreen.setSelectable(true);\n \t\t\t}\n \t\t\tcatch(Exception e){\n \t\t\t\tToast.makeText(Options.this, \"ERROR PREFERENCES\\n\" + e.toString(), Toast.LENGTH_LONG).show();\n \t\t\t}\n \t\t}\n \n \t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, final View view , int position,long id) {\n\t\t\t\tpopupWindow.showAtLocation(root, Gravity.TOP, 0, 0);\r\n\t\t\t\tcancelpop.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\tif (popupWindow.isShowing())\r\n\t\t\t\t\t\tpopupWindow.dismiss();\r\n\t\t\t\t\t\tnum_pop.setText(\"\");\r\n\t\t\t\t\t\tunitprice_pop.setText(\"\");\r\n\t\t\t\t\t\tremark_pop.setText(\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tsavepop.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\tif (popupWindow.isShowing())\r\n\t\t\t\t\t\t\tpopupWindow.dismiss();\r\n\t\t\t\t\t\tTextView tv =(TextView) view.findViewById(R.id.Alreadybought_tv);\r\n\t\t\t\t\t\ttv.setTextColor(getResources().getColor(R.color.rgb_33ff00));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}", "private void showCategoryMenu() {\n if(CategoryMenu == null) {\n CategoryMenu = new PopupMenu(getActivity(), CategoryExpand);\n CategoryMenu.setOnMenuItemClickListener(this);\n\n MenuInflater inflater = CategoryMenu.getMenuInflater();\n inflater.inflate(R.menu.category_menu, CategoryMenu.getMenu());\n }\n\n if(Equival.isChecked()){\n Toaster toaster = new Toaster(getContext());\n toaster.standardToast(getText(R.string.err_modify_category).toString());\n }\n else CategoryMenu.show();\n setFromCategoryTitleToMenu();\n }", "private void closeDeathPopup(ComboBox<String> choose, DatePicker date, CheckBox yes) {\n if (choose.getSelectionModel().getSelectedItem().equals(deathOption)) {\n LocalDate dOD = date.getValue();\n removeOrganDeceased(dOD);\n } else if (choose.getSelectionModel().getSelectedItem().equals(curedOption)) {\n if (yes.isSelected()) {\n try {\n removeOrganCured(\"Yes\");\n } catch (IOException exception) {\n openSelectedProfileError();\n }\n } else {\n try {\n removeOrganCured(\"No\");\n } catch (IOException exception) {\n openSelectedProfileError();\n }\n }\n } else {\n removeOrganMistake();\n }\n }", "public void showVerifyTravelExpenseDialog() {\n\n\t\t\tverifyTravelExpenseDialogBox = new DialogBox(true);\n\t\t\tverifyTravelExpenseDialogBox.setGlassEnabled(true);\n\t\t\tverifyTravelExpenseDialogBox.setText(\"Comprobación de Viáticos.\");\n\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"400px\", \"100px\");\n\t\t\tverifyTravelExpenseDialogBox.setWidget(vp);\n\n\t\t\tUiRequisitionCheekingCostsForm uiRequisitionCheekingCostsForm = new UiRequisitionCheekingCostsForm(getUiParams(), vp, bmoRequisition);\n\t\t\tuiRequisitionCheekingCostsForm.show();\n\n\t\t\tverifyTravelExpenseDialogBox.center();\n\t\t\tverifyTravelExpenseDialogBox.show();\n\t\t}", "private void showUnsavedChangesDialog(DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Discard your changes and quit editing?\");\n builder.setPositiveButton(\"Discard\", discardButtonClickListener);\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (isDetailed) {\n\t\t\t\t\tcloseDetail();\n\t\t\t\t} else {\n\t\t\t\t\tshowDetail();\n\t\t\t\t}\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id){\n case R.id.calculator:\n startActivity(new Intent(this,Calc.class));\n return true;\n case R.id.categoriesNewGD:\n LayoutInflater li = LayoutInflater.from(GoalDisActivity.this);\n View promptsCategoryView = li.inflate(R.layout.category_layout, null);\n build = new AlertDialog.Builder(GoalDisActivity.this);\n build.setTitle(\"New Category\");\n build.setMessage(\"Please Enter new Category\");\n build.setView(promptsCategoryView);\n CatgyValue = (EditText) promptsCategoryView.findViewById(R.id.CategoryEnter1);\n //PayValue.isFocused();\n CatgyValue.setFocusableInTouchMode(true);\n CatgyValue.setFocusable(true);\n CatgyValue.requestFocus();\n //InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n //imm.showSoftInput(PayValue, InputMethodManager.SHOW_IMPLICIT);\n build.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (CatgyValue.getText().toString().isEmpty() || CatgyValue.getText().toString().equals(\" \")) {// check is textbox is empty or Not\n Toast.makeText(getApplicationContext(), \"Enter a category and click\", Toast.LENGTH_LONG).show();\n } else {\n dataBase = cHelper.getWritableDatabase();\n Cursor gCursor;\n String str = Character.toUpperCase(CatgyValue.getText().toString().charAt(0)) + CatgyValue.getText().toString().substring(1).toLowerCase();//capitalize the string\n if (Build.VERSION.SDK_INT > 15) {\n gCursor = dataBase.rawQuery(\"SELECT * FROM \" + DbHelperCategory.TABLE_NAME + \" WHERE \" + DbHelperCategory.CAT_TYPE + \"=?\", new String[]{str}, null);\n } else {\n gCursor = dataBase.rawQuery(\"SELECT * FROM \" + DbHelperCategory.TABLE_NAME, null);\n }\n String dbData = null;\n int catgyFlag = 0;\n if (gCursor.getCount() > 0) {\n Toast.makeText(getApplicationContext(), \"Data present\", Toast.LENGTH_LONG).show();\n catgyFlag = 1;\n }\n //gCursor.close();\n //dataBase.close();\n if (catgyFlag == 1) {\n Toast.makeText(getApplicationContext(), \"Sorry, this option is already present\", Toast.LENGTH_LONG).show();\n gCursor.close();\n dataBase.close();\n } else {\n ContentValues values = new ContentValues();\n values.put(DbHelperCategory.CAT_TYPE, str);\n dataBase.insert(DbHelperCategory.TABLE_NAME, null, values);\n dataBase.close();\n //setContentView(R.layout.activity_goal);\n //categoryFunc();// to update the Category Spinner\n Toast.makeText(getApplication(), CatgyValue.getText().toString(), Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }\n }\n }\n });\n\n build.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplication(), \"New Category Cancelled\", Toast.LENGTH_SHORT).show();\n dialog.cancel();\n }\n });\n\n alert = build.create();\n alert.show();\n alert.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n return true;\n }\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "protected void do_chckbxOther_actionPerformed(ActionEvent arg0) {\n\t\tif(chckbxOther.isSelected())\n\t\t\tcheckOtherTF.setVisible(true);\n\t\telse if(! chckbxOther.isSelected())\n\t\t\tcheckOtherTF.setVisible(false);\n\t\t\t\n\t}", "private void showPopup(View view) {\n PopupMenu popupMenu = new PopupMenu(context, view);\n final DataResult dataResult = (DataResult) view.getTag();\n MenuInflater menuInflater = popupMenu.getMenuInflater();\n menuInflater.inflate(R.menu.popup_data_result, popupMenu.getMenu());\n if (dataResult.isIs_clouded()) {\n popupMenu.getMenu().getItem(1).setEnabled(false);\n }\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.open_csv_data_result:\n openCSVDataResult(dataResult);\n break;\n case R.id.cloud_saved_data_result:\n cloudSavedDataResult(dataResult);\n break;\n case R.id.delete_data_result:\n deleteDataResult(dataResult);\n break;\n }\n return true;\n }\n });\n popupMenu.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t if(item.isChecked()){\n item.setChecked(false);\n \t \t isHintOn = false;\n \t \t Toast.makeText(getApplicationContext(), \"Game Hint is OFF\", Toast.LENGTH_SHORT).show();\n \t \t }\n else{\n item.setChecked(true);\n \t isHintOn = true;\n \t Toast.makeText(getApplicationContext(), \"Game Hint is ON\", Toast.LENGTH_SHORT).show();\n }\n \t return true;\n }", "public boolean onLongClick(View v) {\n isMulChoice = true;\n selectid.clear();\n layout.setVisibility(View.VISIBLE);\n for(int i=0;i<list.size();i++)\n {\n linelayout.setVisibility(View.INVISIBLE);\n adapter.visiblecheck.put(i, CheckBox.VISIBLE);\n }\n adapter = new AdapterRecord(context,list);\n listview.setAdapter(adapter);\n return true;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUICheckCustomer check = new GUICheckCustomer();\n\t\t\t\tcloseFrame();\n\t\t\t}", "public void actionPerformed(ActionEvent e)\n {\n JCheckBoxMenuItem item = (JCheckBoxMenuItem)e.getSource();\n \n if (item.getName().equals(\"typingNotifications\"))\n { \n ConfigurationManager.setSendTypingNotifications(item.isSelected());\n }\n else if (item.getName().equals(\"sendingMessageCommand\"))\n { \n chatWindow.getCurrentChatPanel().getChatWritePanel()\n .changeSendCommand(!item.isSelected());\n \n if(!item.isSelected())\n ConfigurationManager.setSendMessageCommand(\n ConfigurationManager.ENTER_COMMAND);\n else\n ConfigurationManager.setSendMessageCommand(\n ConfigurationManager.CTRL_ENTER_COMMAND);\n }\n else if (item.getName().equals(\"autopopup\"))\n {\n ConfigurationManager.setAutoPopupNewMessage(item.isSelected());\n }\n }", "private void showUnsavedChangesDialog(\r\n DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"Discard your changes and quit editing?\");\r\n builder.setPositiveButton(\"Discard\", discardButtonClickListener);\r\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n // User clicked the \"Keep editing\" button, so dismiss the dialog\r\n // and continue editing the pet.\r\n if (dialog != null) {\r\n dialog.dismiss();\r\n }\r\n }\r\n });\r\n\r\n // Create and show the AlertDialog\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }", "public void checkDefaultData() {\n mListForCurrencyDialog.clear();\n mListForOrganizationsDialog.clear();\n\n mPositionOfCurInList = -1;\n mPositionOfOrgInList = -1;\n for (int i = 0; i < mMainListForActions.size(); i++) {\n if (mMainListForActions.get(i).getCurrency().getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mPositionOfCurInList = i;\n List<OrganizationsEntity> org = mMainListForActions.get(i).getOrganizations();\n for (int j = 0; j < org.size(); j++) {\n if (org.get(j).getId().equals(mOrganizationId)) {\n mPositionOfOrgInList = j;\n }\n }\n }\n mListForCurrencyDialog.add(new RecyclerViewDataDialogList(false,\n mMainListForActions.get(i).getCurrency().getTitleUkr(),\n mMainListForActions.get(i).getCurrency().getTitleRus(),\n mMainListForActions.get(i).getCurrency().getTitleEng()));\n }\n\n if (mPositionOfCurInList == -1) {\n mPositionOfCurInList = 0;\n mCurrencyShortForm = mMainListForActions.get(0).getCurrency().getShortTitle().toUpperCase();\n }\n if (mPositionOfOrgInList == -1) {\n mPositionOfOrgInList = 0;\n mOrganizationId = mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getId();\n }\n mPreferenceManager.setConverterCurrencyShortForm(mCurrencyShortForm);\n mPreferenceManager.setConverterOrganizationId(mOrganizationId);\n mListForCurrencyDialog.get(mPositionOfCurInList).setChecked(true);\n List<OrganizationsEntity> org = mMainListForActions.get(mPositionOfCurInList).getOrganizations();\n for (int i = 0; i < org.size(); i++) {\n boolean isChecked = false;\n if (mPositionOfOrgInList == i) {\n isChecked = true;\n }\n for (CurrenciesEntity cur : org.get(i).getCurrencies()) {\n if (cur.getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mListForOrganizationsDialog.add(new RecyclerViewDataDialogListOrganizations(isChecked,\n org.get(i), cur));\n }\n }\n }\n getPurchaseAndSaleValue(mPositionOfCurInList, mPositionOfOrgInList);\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 }", "private void showUnsavedChangesDialog(DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener){\n //Create an AlertDialog.Builder and set the message, and click listeners\n //for the positive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Discard your changes and quit editing?\");\n builder.setPositiveButton(\"Discard\", discardButtonClickListener);\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id) {\n //User clicked the \"Keep editing\" button, so dismiss the dialog\n //and continue editing the item.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n //Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "public boolean showPopup(View v){\n TextView txtclose;\n Button btnSort;\n\n if(getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT)\n sortDialog.setContentView(R.layout.pop_up_sort_v);\n else sortDialog.setContentView(R.layout.pop_up_sort_h);\n LinearLayout linearLayout = sortDialog.findViewById(R.id.popUpSortLayout);\n linearLayout.setBackgroundResource(R.drawable.background);\n txtclose = (TextView) sortDialog.findViewById(R.id.txtclose);\n btnSort = (Button) sortDialog.findViewById(R.id.btnSort);\n\n all = sortDialog.findViewById(R.id.myWatchListAll);\n notWatched = sortDialog.findViewById(R.id.myWatchListNotWatched);\n watched = sortDialog.findViewById(R.id.myWatchListWatched);\n alphabet = sortDialog.findViewById(R.id.myWatchListAlphabet);\n date = sortDialog.findViewById(R.id.myWatchListDate);\n rating = sortDialog.findViewById(R.id.myWatchListRating);\n ascending = sortDialog.findViewById(R.id.myWatchListAscending);\n descending = sortDialog.findViewById(R.id.myWatchListDesceding);\n\n if(show.equals(\"all\"))\n all.setChecked(true);\n else if(show.equals(\"notWatched\"))\n notWatched.setChecked(true);\n else watched.setChecked(true);\n\n if(orderBy.equals(\"alphabet\"))\n alphabet.setChecked(true);\n else if(orderBy.equals(\"date\"))\n date.setChecked(true);\n else rating.setChecked(true);\n\n if(orderType)\n ascending.setChecked(true);\n else descending.setChecked(true);\n\n txtclose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n sortDialog.dismiss();\n }\n });\n btnSort.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(all.isChecked())\n show = \"all\";\n else if(notWatched.isChecked())\n show = \"notWatched\";\n else show = \"watched\";\n\n if(alphabet.isChecked())\n orderBy = \"alphabet\";\n else if(date.isChecked())\n orderBy = \"date\";\n else orderBy = \"rating\";\n\n if(ascending.isChecked())\n orderType = true;\n else orderType = false;\n\n sortDialog.dismiss();\n sort();\n }\n });\n sortDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n sortDialog.show();\n return true;\n }", "public void onClick(View v) {\n if(v.getId()== R.id.btn_price){\n Message message = Message.obtain();\n message.what = 8;\n Bundle bundle = new Bundle();\n bundle.putInt(\"payType\",payType);\n message.setData(bundle);\n mHandler.sendMessage(message);\n dismiss();\n }\n if(v.getId()== R.id.ll_weixin){\n payType=1;\n iv_checked.setVisibility(View.VISIBLE);\n iv_zhifubao_checked.setVisibility(View.GONE);\n\n }\n if(v.getId()== R.id.ll_zhifubao){\n payType=2;\n iv_checked.setVisibility(View.GONE);\n iv_zhifubao_checked.setVisibility(View.VISIBLE);\n }\n\n }", "public void handleSmartPopup(int type) {\n if(type == 2 && itemFocused != UISettings.RENAMETEXTBOX)\n return;\n iCustomPopup.handleSmartPopup(type);\n }", "@Override\n\t\tpublic boolean onLongClick(View arg0) {\n \t\tshowSave(TOP); \n\t\t\treturn true;\n\t\t}", "@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle, mListForActionDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n if (position == 0) {\n mAction = ConstantsManager.CONVERTER_ACTION_PURCHASE;\n } else {\n mAction = ConstantsManager.CONVERTER_ACTION_SALE;\n }\n mPreferenceManager.setConverterAction(mAction);\n mDialog.getDialog().dismiss();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }", "public void showHistorySwitchAction() {\n\t\tanimalsListPanel.switchToPast();\n\t}", "private void confirmPopUp(Boolean equalUnits, final int indexDup, final Ingredient ing) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(\"An item with this name already exists\");\n //message text based on options\n if (equalUnits) {\n builder.setMessage(\"Do you want to replace it, combine them or cancel?\");\n } else {\n builder.setMessage(\"Do you want to replace it or cancel?\");\n }\n\n //buttons\n builder.setPositiveButton(\"Replace\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //replace it in the list\n ingredientList.set(indexDup, ing);\n\n //update list\n RecyclerView recyclerView = findViewById(R.id.recycler_grocery_list);\n recyclerView.getAdapter().notifyDataSetChanged();\n }\n });\n //if units are the same allow for merge\n if (equalUnits) {\n builder.setNeutralButton(\"Combine\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //add up the two amounts\n ingredientList.get(indexDup).setAmount(ingredientList.get(indexDup).getAmount() + ing.getAmount());\n\n RecyclerView recyclerView = findViewById(R.id.recycler_grocery_list);\n recyclerView.getAdapter().notifyDataSetChanged();\n }\n });\n }\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //doNothing\n }\n });\n\n //show pop up\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\r\n\tpublic boolean onPreferenceClick(Preference preference) {\n\t\tif(preference==facebooklog)\t\r\n\t\t{\r\n\t\t\tif(facebooklog.isChecked())\r\n\t\t\t{\r\n\t\t\t\t AlertDialog.Builder dg = new Builder(getActivity());\r\n \t\t\t\t dg.setMessage(\"Are you sure to log out FaceBook?\");\r\n \t\t\t\t dg.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t\t @Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\tfacebooklog.setChecked(false);\r\n \t\t\t\t\t\tmcallback.onReturnFromPreFragment(1);\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n \t\t\t\t \t@Override\r\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\r\n \t\t\t\t\t\t// TODO Auto-generated method stub\r\n \t\t\t\t\t}\r\n \t\t\t\t })\r\n \t\t\t\t .show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{ mcallback.onReturnFromPreFragment(2);\r\n\t\t\t\tfacebooklog.setChecked(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void whippedCreamToast(View view) {\n\n CheckBox checkBox1 = (CheckBox) findViewById(R.id.checkbox_cream);\n boolean hasWhippedCream = checkBox1.isChecked();\n if (hasWhippedCream) {\n Toast.makeText(this, \"Price of \" + quantity + \" coffee increased by \" + quantity * 1 + \" zł.\", Toast.LENGTH_SHORT).show();\n /**\n * można dodać nowe pole txt które wyświetli aktualną cenę kawy z dodatkami lub bez\n * do tego drugi pole txt w którm wpiszemy cenę samej kawy\n *displayItemPrice(itemPrice + 1);\n **/\n }\n }", "private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }", "private void buttonToSetExpenseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToSetExpenseMouseClicked\n this.updateData(\"-\");\n this.setVisible(false);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMoneyManagement moneyManagement = new MoneyManagement();\n\t\t\t\tmoneyManagement.setModal(true);\n\t\t\t\tmoneyManagement.setVisible(true);\n\t\t\t}", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "private void popupWindowOfOptions(View v) {\n \t \n \t\tOrderManager.clearOption();\n \t\t\n \t\tint nOrderBoardTextId = v.getId();\n \tOrder _Order = (Order) ResourceManager.get(nOrderBoardTextId);\n \tint nMenuDbId = _Order.MENU_ID;\n \tint nMenuResourceId = MenuManager.getResourceIdByDbId(nMenuDbId);\n \tMenu mMenu = MenuManager.getMenuByResourceId(nMenuResourceId);\n \t\n \tint nTempIdForCurrentOrder = IdManager.getRandomId();\n \tIdManager.setTemporaryId(nTempIdForCurrentOrder);\n \tResourceManager.put(nTempIdForCurrentOrder, _Order);\n \t\n try {\n \t\n \tint nPopupHeight = 760;\n \t\tint nPopupWith = 520;\n \t\n \tint nSubTitleHeight = 40;\n \tint nOptionListLayoutHeight = 210;\n \t\n \tString strMenuNameEng = mMenu.NAME_ENG;\n \tString strMenuNameOth = mMenu.NAME_OTH;\n \t\n \t// Popup layout\n LinearLayout popLayout = new LinearLayout(this);\n popLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));\n popLayout.setGravity(Gravity.CENTER);\n popLayout.setBackgroundColor(0x22000000);\n \n \t // Inner layout\n \t LinearLayout innerLayout = new LinearLayout(this);\n \t innerLayout.setLayoutParams(new LayoutParams(nPopupWith-20,nPopupHeight-20));\n \t innerLayout.setPadding(10,10,10,10);\n \t innerLayout.setOrientation(LinearLayout.VERTICAL);\n \t innerLayout.setGravity(Gravity.CENTER);\n \t innerLayout.setBackgroundColor(0xddffffff);\n \t\t \n \t\t // title eng\n \t\t TextView tvTitleEng = new TextView(this);\n \t\t tvTitleEng.setGravity(Gravity.CENTER);\n \t\t tvTitleEng.setText(strMenuNameEng);\n \t\t tvTitleEng.setTextColor(0xff000000);\n \t\t tvTitleEng.setTextSize(23);\n \t\t tvTitleEng.setHeight(50);\n \t\t tvTitleEng.setWidth(470);\n \t\t \n \t\t // title oth\n \t\t TextView tvTitleOth = new TextView(this);\n \t\t tvTitleOth.setGravity(Gravity.TOP|Gravity.CENTER);\n \t\t tvTitleOth.setText(strMenuNameOth);\n \t\t tvTitleOth.setTextColor(0xff000000);\n \t\t tvTitleOth.setTextSize(13);\n \t\t tvTitleOth.setHeight(55);\n \t\t tvTitleOth.setWidth(470);\n \t\t \n \t\t // common option title\n \t\t TextView tvCO = new TextView(this);\n \t\t tvCO.setText(\"* Common Option\");\n \t\t tvCO.setPadding(10,0,0,0);\n \t\t tvCO.setTextSize(15);\n \t\t tvCO.setTextColor(0xff5f2d09);\n \t\t tvCO.setHeight(nSubTitleHeight);\n \t\t tvCO.setWidth(470);\n \t\t \n \t\t // common option layout\n \t\t ScrollView svCO = new ScrollView(this);\n \t\t svCO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llCO = new LinearLayout(this);\n \t\t llCO.setLayoutParams(new LayoutParams(470,LayoutParams.WRAP_CONTENT));\n \t\t llCO.setPadding(15,10,10,10);\n \t\t llCO.setOrientation(LinearLayout.VERTICAL);\n \t\t llCO.setGravity(Gravity.TOP);\n \t\t \n \t\t showCommonOptions (mMenu, llCO);\n \t\t \t\n \t\t \tsvCO.addView(llCO);\n \t\t \t\n \t\t\t // specific option title\n \t\t\t \n \t\t TextView tvSO = new TextView(this);\n \t\t tvSO.setPadding(10,0,0,0);\n \t\t tvSO.setText(\"* Specific Option\");\n \t\t tvSO.setTextSize(15);\n \t\t tvSO.setTextColor(0xff5f2d09);\n \t\t tvSO.setHeight(nSubTitleHeight);\n \t\t tvSO.setWidth(470);\n \t \n \t\t ScrollView svSO = new ScrollView(this);\n \t\t svSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llSO = new LinearLayout(this);\n \t\t llSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t llSO.setPadding(15,10,10,10);\n \t\t llSO.setOrientation(LinearLayout.VERTICAL);\n \t\t llSO.setGravity(Gravity.TOP);\n \t\n \t\t showSpecificOptions (mMenu, llSO);\n \t\t \n \t\t svSO.addView(llSO);\n \t\t \n \t\t // button group\n \t\t \n \t\t int nButtonHeight = 50;\n \t\t int nButtonWidth = 100;\n \t\t \n \t\t LinearLayout llButtonGroup = new LinearLayout(this);\n \t\t llButtonGroup.setLayoutParams(new LayoutParams(470,80));\n \t\t llButtonGroup.setPadding(10, 0, 10, 4);\n \t\t llButtonGroup.setOrientation(LinearLayout.HORIZONTAL);\n \t\t llButtonGroup.setGravity(Gravity.CENTER|Gravity.BOTTOM);\n \t\t \n \t\t // confirm button\n \t \n \t \tint nConfirmId = IdManager.getRandomId();\n \t\t Button btnConfirm = new Button(this);\n \t\t btnConfirm.setId(nConfirmId);\n \t\t btnConfirm.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnConfirm.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnConfirm.setText(CaptionManager.getCaption().CONFIRM);\n \t\t btnConfirm.setTextSize(13);\n \t\t \n \t\t // add options to an order\n \t\t btnConfirm.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \t\n \t\t\t \tOrder currentOrder = (Order)ResourceManager.get(IdManager.getTemporaryId());\n \t\t\t \t\n \t\t\t \tArrayList<Order> orderList = addOptionsToOrder(currentOrder);\n \t\t\t \tOrderManager.requestUpdateOptions(currentOrder,orderList);\n \t \t\t\t\tloadOrderBoard();\n \t \t\t\t\tOrderManager.clearOption();\n \t \t\t\t\t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // cancel button\n \t\t Button btnCancel = new Button(this);\n \t\t btnCancel.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnCancel.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnCancel.setText(CaptionManager.getCaption().CANCEL);\n \t\t btnCancel.setTextSize(13);\n \t\t btnCancel.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \tOrderManager.clearOption();\n \t\t\t \t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // detail button\n \t\t final int nTempId = 808080;\n \t\t Mapper.put(Integer.valueOf(nTempId), mMenu);\n \t\t \n \t\t Button btnDetail = new Button(this);\n \t\t btnDetail.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnDetail.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnDetail.setText(CaptionManager.getCaption().DETAIL);\n \t\t btnDetail.setTextSize(13);\n \t\t btnDetail.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \n \t\t\t \tMenu menu = (Menu)Mapper.get(Integer.valueOf(808080));\n \t\t\t \tint nMenuRscId = menu.RESOURCE_ID;\n \t\t\t \tpopupWindowDetail(nMenuRscId);\n \t\t\t }\n \t\t });\n \t\t\t \n \t llButtonGroup.addView(btnConfirm);\n \t llButtonGroup.addView(btnCancel);\n \t llButtonGroup.addView(btnDetail);\n \t \n \t\t innerLayout.addView(tvTitleEng);\n \t innerLayout.addView(tvTitleOth);\n \t innerLayout.addView(tvCO);\n \t innerLayout.addView(svCO);\n \t innerLayout.addView(tvSO);\n \t innerLayout.addView(svSO);\n \t innerLayout.addView(llButtonGroup);\n \t \n popLayout.addView(innerLayout);\n\n // show popup\n _PopupWindowOfOptions = new PopupWindow(popLayout, nPopupWith, nPopupHeight, true);\n _PopupWindowOfOptions.showAtLocation(popLayout, Gravity.CENTER, 0, 0);\n \t\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void onClick(View v)\n {\n LayoutInflater li = LayoutInflater.from(context);\n View promptsView = li.inflate(R.layout.prompt_statusfilter, null);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n context);\n\n\n alertDialogBuilder.setView(promptsView);\n\n final EditText userInput = (EditText) promptsView\n .findViewById(R.id.editTextDialogUserInput);\n\n final CheckBox chkFinalizadas = (CheckBox) promptsView\n .findViewById(R.id.chkFinalizadas);\n\n final CheckBox chkReporte = (CheckBox) promptsView\n .findViewById(R.id.chkConReporte);\n\n final CheckBox chkAsignadas = (CheckBox) promptsView\n .findViewById(R.id.chkAsignadas);\n\n\n alertDialogBuilder\n .setCancelable(false)\n .setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n // get user input and set it to result\n // edit text\n //result.setText(userInput.getText());\n\n StatusListTmp=\"\";\n\n if (chkFinalizadas.isChecked()){\n StatusListTmp=\"2\";\n\n }\n if(chkAsignadas.isChecked()){\n StatusListTmp=StatusListTmp+\",0\";\n\n }\n if(chkReporte.isChecked()){\n StatusListTmp=StatusListTmp+\",1\";\n\n }\n\n StatusListTmp = StatusListTmp.startsWith(\",\") ? StatusListTmp.substring(1) : StatusListTmp;\n StatusListTmp = StatusListTmp.endsWith(\",\") ? StatusListTmp.substring(1) : StatusListTmp;\n\n Log.d(\"FILTRO\",StatusListTmp);\n StatusList=StatusListTmp;\n\n mAuthTask = new getTaskDetail(useremail,\"\");\n\n mAuthTask.execute((Void) null);\n\n }\n })\n .setNegativeButton(\"Cancelar\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }\n });\n\n // create alert dialog\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n // show it\n alertDialog.show();\n /*fin*/\n\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif(location.isSelected()) {\n\t\t\t\t\tduree.setVisible(true);\n\t\t\t\t\tchampPlus.setText(\"Durée\");}\n\t\t\t\telse\n\t\t\t\t\tduree.setVisible(false);\n\t\t\t}", "private void butProcTools_Click(Object sender, EventArgs e) throws Exception {\n FormProcTools FormP = new FormProcTools();\n FormP.ShowDialog();\n if (FormP.Changed)\n {\n changed = true;\n fillCats();\n fillGrid();\n }\n \n }", "public static void showPreviousSelectedGameType() {\r\n\t\tGameSetup.threeHanded.setState(Main.isThreeHanded);\r\n\t\tGameSetup.fourHandedSingle.setState(Main.isFourHandedSingle);\r\n\t\tGameSetup.fourHandedTeams.setState(Main.isFourHandedTeams);\r\n\t}", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(mContext, holder.tv_option_menu);\n //inflating menu from xml resource\n popup.inflate(R.menu.menu_options);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu1:\n shareStories(headlinesList.get(position).getUrl());\n return true;\n case R.id.menu2:\n //handle menu2 click\n db.insertNote(headlinesList.get(position));\n return true;\n default:\n return false;\n }\n }\n });\n //displaying the popup\n popup.show();\n\n }", "public ModifyTemplate(java.awt.Component parent, boolean modal,String tname,TemplatesPanel tp) {\r\n \tsuper(MainFrame.getMainInstance(), modal);\r\n \tfatherFrame = (JDialog) parent;\r\n \ttpp = tp;\r\n mName = tname;\r\n initComponents();\r\n jButton4.setEnabled(false);\r\n jComboBox1.setEnabled(false);\r\n ItemListener itemListener = new ItemListener(){\r\n \t\tpublic void itemStateChanged(ItemEvent e) {\r\n \t\t\tObject obj=e.getItem();\r\n \t\t\t\r\n if(obj.equals(jCheckBox3)){ \r\n if(jCheckBox3.isSelected()){ \r\n \tjCheckBox1.setSelected(false);\r\n \tjCheckBox2.setSelected(false);\r\n \tjComboBox1.setEnabled(false);\r\n \tjTextField5.setEnabled(false);\r\n \tjButton4.setEnabled(false);\r\n \tjPanel7.setBackground(new Color(204, 204, 204));\r\n \tjTextField5.setBackground(new Color(204, 204, 204));\r\n }\r\n }else if(obj.equals(jCheckBox1)){\r\n \tif(jCheckBox1.isSelected()){\r\n\t \tjCheckBox2.setSelected(false);\r\n\t \tjCheckBox3.setSelected(false);\r\n\t \tjTextField5.setEnabled(false);\r\n\t \tjButton4.setEnabled(false);\r\n\t \tjComboBox1.setEnabled(true);\r\n\t \tjPanel7.setBackground(new Color(244, 244, 244));\r\n\t \tjTextField5.setBackground(new Color(204, 204, 204));\r\n \t}\r\n }else if(obj.equals(jCheckBox2)){ \r\n \tif(jCheckBox2.isSelected()){\r\n\t \tjCheckBox1.setSelected(false);\r\n\t \tjCheckBox3.setSelected(false);\r\n\t \tjComboBox1.setEnabled(false);\r\n\t \tjTextField5.setEnabled(true);\r\n\t \tjButton4.setEnabled(true);\r\n\t \tjPanel7.setBackground(new Color(244, 244, 244));\r\n\t \tjTextField5.setBackground(Color.WHITE);\r\n } \r\n }\r\n \t\t}\r\n \r\n };\r\n \r\n jCheckBox1.addItemListener(itemListener);\r\n jCheckBox2.addItemListener(itemListener);\r\n jCheckBox3.addItemListener(itemListener);\r\n \r\n jCheckBox1.addMouseListener(new MouseAdapter(){\r\n \t@Override\r\n \tpublic void mouseClicked(MouseEvent e) {\r\n \t\tsuper.mouseClicked(e);\r\n \t\tJCheckBox jc = (JCheckBox) e.getSource();\r\n \t\tif(!jc.isSelected()){\r\n \t\t\tjc.setSelected(true);\r\n \t\t\treturn;\r\n \t\t}\r\n \t}\r\n });\r\n jCheckBox2.addMouseListener(new MouseAdapter(){\r\n \t@Override\r\n \tpublic void mouseClicked(MouseEvent e) {\r\n \t\tsuper.mouseClicked(e);\r\n \t\tJCheckBox jc = (JCheckBox) e.getSource();\r\n \t\tif(!jc.isSelected()){\r\n \t\t\tjc.setSelected(true);\r\n \t\t\treturn;\r\n \t\t}\r\n \t}\r\n });\r\n jCheckBox3.addMouseListener(new MouseAdapter(){\r\n \t@Override\r\n \tpublic void mouseClicked(MouseEvent e) {\r\n \t\tsuper.mouseClicked(e);\r\n \t\tJCheckBox jc = (JCheckBox) e.getSource();\r\n \t\tif(!jc.isSelected()){\r\n \t\t\tjc.setSelected(true);\r\n \t\t\treturn;\r\n \t\t}\r\n \t}\r\n });\r\n }", "public void showCloseConfirmPopup(RamAbstractScene<?> parent, ConfirmPopup.SelectionListener listener) {\n String message = Strings.MODEL_CONCERN + \" \" + concern.getName() + Strings.POPUP_MODIFIED_SAVE;\n ConfirmPopup saveConfirmPopup = new ConfirmPopup(message, ConfirmPopup.OptionType.YES_NO_CANCEL);\n saveConfirmPopup.setListener(listener);\n\n parent.displayPopup(saveConfirmPopup);\n }", "private void showRecipeSaved() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Recipe has been saved in MyRecipes!\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Complete!\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}", "@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, pwd);\n }", "protected void do_owndershipComboBox_actionPerformed(ActionEvent arg0) {\n\t\tif(ownershipComboBox.getSelectedItem().toString().equals(\"Lease\")){\n\t\t\tlblLeaseExpirationDate.setVisible(true);\n\t\t\tleaseMonthComboBox.setVisible(true);\n\t\t\tLeaseDayComboBox.setVisible(true);\n\t\t\tLeaseYearComboBox.setVisible(true);\n\t\t}\n\t\telse if(ownershipComboBox.getSelectedItem().toString().equals(\"Own\")){\n\t\t\tlblLeaseExpirationDate.setVisible(false);\n\t\t\tleaseMonthComboBox.setVisible(false);\n\t\t\tLeaseDayComboBox.setVisible(false);\n\t\t\tLeaseYearComboBox.setVisible(false);\n\t\t}\n\t}", "public boolean loadMessageBox(){\n boolean isMessagebox = true;\n byte tempType = CustomCanvas.msgType;\n CustomCanvas.msgType = -1;\n \n if(tempType == 0){\n tempType = 1;\n } else if(tempType == 20) {\n tempType = 16;\n }\n if (tempType == 1 || tempType == 2 || tempType == 3 || tempType == 16) {\n isMessagebox = false;\n }\n handleSmartPopup(tempType);\n return isMessagebox;\n }", "public void showHistoryAction(boolean selected) {\n\t\tif (selected == true) {\n\t\t\tanimalDetailPanel.showHistoryShiftPane();\n\t\t\tfillAnimalDetailTable();\n\t\t}\n\t}", "public void triggerPopup();", "private void advancedClicked()\r\n {\r\n if (advancedBox.isSelected() == false)\r\n {\r\n putWizardData(\"UsingBlackList\", \"false\");\r\n saveButton.setEnabled(false);\r\n whiteLabel.setEnabled(false);\r\n blackWords.setEnabled(false);\r\n blackWords.setOpaque(false);\r\n btnLoad.setEnabled(false);\r\n btnSave.setEnabled(false); \r\n }\r\n if (advancedBox.isSelected() == true)\r\n {\r\n putWizardData(\"UsingBlackList\", \"true\");\r\n \r\n // Reset the state \"saved\" in the wizard to false\r\n putWizardData(\"blacksaved\", \"false\");\r\n saveButton.setEnabled(true);\r\n whiteLabel.setEnabled(true);\r\n blackWords.setEnabled(true);\r\n blackWords.setOpaque(true);\r\n btnLoad.setEnabled(true);\r\n btnSave.setEnabled(true); \r\n }\r\n }", "public void checkboxaddClicked(View view) {\n flag++;\n mRlNote.setVisibility(View.GONE);\n mRlAddItem.setVisibility(View.VISIBLE);\n }", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }", "private void showUnsavedChangesDialog( DialogInterface.OnClickListener discardButtonClickListener ) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\n public void onClick(View view) {\n PopupMenu popup = new PopupMenu(context, holder.threeDots);\n popup.inflate(R.menu.popup_menu_options_edit_flashcard);\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.popupDelete:\n\n flashcardActivity.handleDeleteClick(p);\n break;\n\n case R.id.popupEdit:\n\n flashcardActivity.handleRenameClick(p);\n break;\n\n }\n return false;\n }\n });\n popup.show();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.additional_menu) {\n if (((LinearLayout) findViewById(R.id.additional_options)).getVisibility() == View.GONE) {\n ((LinearLayout) findViewById(R.id.additional_options)).setVisibility(View.VISIBLE);\n ((LinearLayout) findViewById(R.id.original_form)).setVisibility(View.GONE);\n ((LinearLayout) findViewById(R.id.button_pad)).setVisibility(View.GONE);\n ((LinearLayout) findViewById(R.id.pref_layout)).setVisibility(View.GONE);\n item.setTitle(\"Hide Advanced Options\");\n flag_back_pressed = true;\n\n\n\n } else {\n ((LinearLayout) findViewById(R.id.additional_options)).setVisibility(View.GONE);\n ((LinearLayout) findViewById(R.id.original_form)).setVisibility(View.VISIBLE);\n ((LinearLayout) findViewById(R.id.button_pad)).setVisibility(View.VISIBLE);\n item.setTitle(\"Show Advanced Options\");\n flag_back_pressed = false;\n\n }\n return true;\n }\n\n if (id == R.id.About){\n Builder build = new Builder(this);\n\n TextView myMsg = new TextView(this);\n myMsg.setText(\"Developed by Jay Jodiwal for\\nNSS BITS Pilani\\n\\nIf any bugs please report to\\n7737138973\");\n myMsg.setGravity(Gravity.CENTER_HORIZONTAL);\n myMsg.setTextSize(20);\n myMsg.setTextColor(getResources().getColor(R.color.black));\n myMsg.setPadding(5,50,5,50);\n\n build.setView(myMsg);\n build.show();\n return true;\n }\n\n if (id == R.id.change_recruiter){\n Intent open_main_activity = new Intent(MyApp.this, recruiter_details.class);\n startActivity(open_main_activity);\n return true;\n }\n\n if (id == R.id.update){\n new update(this,db,\"https://docs.google.com/a/pilani.bits-pilani.ac.in/forms/d/1V7GS1ru_nRHRj2x1tlpORRFXlblthu3eExMtmXl4NvA/formResponse\",\n \"entry.220388873\",\"entry.1382612937\",\"entry.250070762\",\"entry.1685555165\", \"entry.968458520\",\n \"entry.1662346156\",\"entry.504405416\",\"entry.1266177918\",\n \"entry.1053345656\",\n \"entry.1811733873\");\n\n /*Cursor c = db.rawQuery(\"SELECT * FROM student\", null);\n Boolean flag = false;\n while (c.moveToNext()) {\n if(!jay.postData(c.getString(0),c.getString(1))){\n flag = true;\n break;\n\n }\n }*/\n\n\n /*if(!flag){\n c = db.rawQuery(\"SELECT * FROM student\", null);\n while (c.moveToNext()) {\n db.execSQL(\"DELETE FROM student WHERE rollno='\" + c.getString(0) + \"'\");\n\n }\n }*/\n\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) {\n if (!isChecked) {\n //show password of door\n type3.setTransformationMethod(PasswordTransformationMethod.getInstance());\n new1.setTransformationMethod(PasswordTransformationMethod.getInstance());\n } else {\n //hide password of door\n type3.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n new1.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n }\n }", "@Override\n public void dismiss() {\n if(chk.isChecked()){\n //make file languageFixed.txt\n File setting = null;\n setting = makeDirectory(external_path+\"/OurMenu/setting/\");\n makeFile(setting, external_path+\"/OurMenu/setting/tutorialNo.txt\");\n }\n\n super.dismiss();\n }", "private void initializePopupWindow(View view, final int position) {\n\n //Inflate the view\n View popupView = getLayoutInflater().inflate(R.layout.popupwindow, null);\n popupWindow = new PopupWindow(popupView, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n //Set Popup Variables\n deleteButton = (Button) popupView.findViewById(R.id.deleteButton);\n saveButton = (Button) popupView.findViewById(R.id.saveButton);\n description = (EditText) popupView.findViewById(R.id.description);\n groceryItemName = (EditText) popupView.findViewById(R.id.groceryItemName);\n quantity = (EditText) popupView.findViewById(R.id.quantity);\n checkBox = (CheckBox) popupView.findViewById(R.id.checkbox);\n\n //Popup Window needs to be focusable in order to interact with it\n popupWindow.setFocusable(true);\n\n //Overshadow the current Activity with the popup window\n int[] location = new int[2];\n view.getLocationOnScreen(location);\n popupWindow.showAtLocation(view, Gravity.NO_GRAVITY, location[0], location[1] + view.getHeight());\n\n //Manipulation of the UI elements\n final String item = groceryItems.get(position);\n grocery = index.get(item);\n groceryItemName.setText(grocery.name);\n if (grocery.description != null) {\n description.setText(grocery.description);\n }\n quantity.setText(Integer.toString(grocery.quantity));\n checkBox.setChecked(grocery.isChecked);\n\n saveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n grocery.setName(groceryItemName.getText().toString());\n grocery.setDescription(description.getText().toString());\n grocery.setQuantity(Integer.parseInt(quantity.getText().toString()));\n grocery.setChecked(checkBox.isChecked());\n groceryItems.set(position, grocery.name);\n index.remove(item);\n index.put(grocery.name, grocery);\n Toast.makeText(getApplication().getBaseContext(), grocery.name + \" modified!\",\n Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n onResume();\n }\n });\n\n deleteButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n groceryItems.remove(position);\n Toast.makeText(getApplication().getBaseContext(), grocery.name + \" removed!\",\n Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n onResume();\n }\n });\n }", "private void showCredits() {\n //show credit information\n //source: https://stackoverflow.com/questions/6264694/how-to-add-message-box-with-ok-button\n final AlertDialog.Builder dlgAlert = new AlertDialog.Builder(context);\n dlgAlert.setMessage(R.string.credits);\n dlgAlert.setTitle(\"Credits\");\n dlgAlert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //for dismissing the dialog there is no action necessary\n }\n });\n dlgAlert.setCancelable(true);\n dlgAlert.create().show();\n }", "private void createPickBox() {\n\t\tfinal Coin[] coins = CHFStore.getSortedCoinTab();\n\t\tString coinsStr[] = new String[coins.length];\n\t\tint i = 0;\n\t\tfor (Coin c : coins) {\n\t\t\tcoinsStr[i++] = c.getDisplay();\n\t\t}\n\t\tbuilder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Value of coin\");\n\t\tbuilder.setItems(coinsStr, new OnClickListener() {\n\n\t\t\t// as soon as a value is selected for a coin\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tif (circleIndex >= 0) {\n\t\t\t\t\tCoin selected = coins[which];\n\t\t\t\t\tMyCircle selectedCircle = circlesList.get(circleIndex);\n\t\t\t\t\t// launch calculation process and display it in a toast\n\t\t\t\t\t double monneySum = calculateMonneySum(selected, selectedCircle);\n\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\"You own \" + String.format(\"%.2f\", monneySum)\n\t\t\t\t\t\t\t\t\t+ \" CHF\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the Product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "@FXML\n void selectMoneyMarket(ActionEvent event) {\n \tdirectDep.setSelected(false);\n \tisLoyal.setSelected(false);\n \tdirectDep.setDisable(true);\n \tisLoyal.setDisable(true);\n }", "public boolean isCustomPopupState(){\n boolean isPopupState = false;\n\n if(CustomCanvas.isNotificationGoto>-1){\n isPopupState = true;\n showNotification();\n } else if(CustomCanvas.msgType>-1){\n isPopupState = loadMessageBox();\n }\n\n if(CustomCanvas.isShowMessageSendSprit){\n CustomCanvas.isShowMessageSendSprit = false;\n setMessageSendSpritTimer();\n }\n\n if(CustomCanvas.isChatNotification){\n CustomCanvas.isChatNotification = false;\n CustomCanvas.startChatNotificationTimer();\n }\n\n return isPopupState;\n }", "@Override\n public void payeeInputVisible(boolean yes) {\n\t\n }", "boolean getVisible(ActionEvent event) {\n JCheckBox box = (JCheckBox) event.getSource();\n return box.isSelected();\n }", "private void butEditCategories_Click(Object sender, EventArgs e) throws Exception {\n ArrayList selected = new ArrayList();\n for (int i = 0;i < listCategories.SelectedIndices.Count;i++)\n {\n selected.Add(CatList[listCategories.SelectedIndices[i]].DefNum);\n }\n FormDefinitions FormD = new FormDefinitions(DefCat.ProcCodeCats);\n FormD.ShowDialog();\n DataValid.setInvalid(InvalidType.Defs);\n changed = true;\n fillCats();\n for (int i = 0;i < CatList.Length;i++)\n {\n if (selected.Contains(CatList[i].DefNum))\n {\n listCategories.SetSelected(i, true);\n }\n \n }\n //we need to move security log to within the definition window for more complete tracking\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Definitions\");\n fillGrid();\n }", "public void onClick(View v) {\n \t\t\t\tif(manageButton.getText().toString().contains(\"管理\"))\n \t\t\t\t{\n \t\t\t\t\tshowCheckBox();\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tMultiDeleteBL();\n \t\t\t\t}\n \t\t\t}", "void showPopuopForPurchaseAndPurchasePaid(int flowpurchaseReceivedOrPaid) {\n this.flowpurchaseReceivedOrPaid = flowpurchaseReceivedOrPaid;\n String languageCode = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode);\n Utility.getInstance().localisation(getActivity(), languageCode);\n dialog = new Dialog(mContext);\n if (!dialog.isShowing()) {\n dialog.setCancelable(false);\n /* dialog.getWindow().addFlags(Window.FEATURE_NO_TITLE);*/\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setContentView(R.layout.popup_purchase_received_paid);\n TextView textviewTitle = dialog.findViewById(R.id.textviewTitle);\n editextPurchaseSupplierName = dialog.findViewById(R.id.editextPurchaseSupplierName);\n ImageView imageviewMicSupplierName = dialog.findViewById(R.id.imageviewMicSupplierName);\n edittextPurchaseAmount = dialog.findViewById(R.id.edittextPurchaseAmount);\n ImageView imageviewMicPurchaseAmount = dialog.findViewById(R.id.imageviewMicPurchaseAmount);\n edittextPurchasePurpose = dialog.findViewById(R.id.edittextPurchasePurpose);\n ImageView imageviewMicPurchasePurpose = dialog.findViewById(R.id.imageviewMicPurchasePurpose);\n edittextPuchaseDate = dialog.findViewById(R.id.edittextPuchaseDate);\n imageviewMicSaveCancel = dialog.findViewById(R.id.imageviewMicSaveCancel);\n ImageView imageviewPurchaseDate = dialog.findViewById(R.id.imageviewPurchaseDate);\n CardView cardviewPurchaseCancel = dialog.findViewById(R.id.cardviewPurchaseCancel);\n CardView cardviewPurchaseOk = dialog.findViewById(R.id.cardviewPurchaseOk);\n ImageView imageviewCross = dialog.findViewById(R.id.imageviewCross);\n ImageView imageviewMicSaveCancel = dialog.findViewById(R.id.imageviewMicSaveCancel);\n imageviewSOutsnadingProfile = dialog.findViewById(R.id.imageviewOutsnadingProfile);\n textviewSOustandingId = dialog.findViewById(R.id.textviewOustandingId);\n textviewSOustandingName = dialog.findViewById(R.id.textviewOustandingName);\n textviewSOustandingAmount = dialog.findViewById(R.id.textviewOustandingAmount);\n relativelayoutSOustandingProfile = dialog.findViewById(R.id.relativelayoutProfile);\n textview_notFound = dialog.findViewById(R.id.textview_notFound);\n TextView textviewamount = dialog.findViewById(R.id.textviewsaleReport);\n\n textviewSOustandingAmount.setVisibility(View.GONE);\n\n setClickPuchaseElements(imageviewMicSupplierName, editextPurchaseSupplierName, getString(R.string.please_tell_supplier_name), 1);\n if (flowpurchaseReceivedOrPaid == 1) {\n setClickPuchaseElements(imageviewMicPurchaseAmount, edittextPurchaseAmount, getString(R.string.please_tell_purchase_amount), 2);\n setClickPuchaseElements(imageviewMicPurchasePurpose, edittextPurchasePurpose, getString(R.string.please_tell_purchase_purpose), 1);\n\n } else {\n setClickPuchaseElements(imageviewMicPurchaseAmount, edittextPurchaseAmount, getString(R.string.please_tell_paid_amount), 2);\n setClickPuchaseElements(imageviewMicPurchasePurpose, edittextPurchasePurpose, getString(R.string.please_tell_amount_paid_purpose), 1);\n\n }\n setClickPuchaseElements(imageviewMicSaveCancel, null, getString(R.string.please_say_save_or_cancel), 1);\n int currentMonth = dob_currentDate.get(Calendar.MONTH) + 1;\n edittextPuchaseDate.setText(dob_currentDate.get(Calendar.DAY_OF_MONTH) + \"/\" + currentMonth + \"/\" + dob_currentDate.get(dob_currentDate.YEAR));\n if (flowpurchaseReceivedOrPaid == 1) {\n textviewTitle.setText(getString(R.string.menu_purchase));\n } else {\n textviewTitle.setText(getString(R.string.menu_purchasePaid));\n textviewamount.setText(getString(R.string.menu_purchasePaid));\n// textviewSOustandingId.setVisibility(View.INVISIBLE);\n }\n\n textWatcherPurchaseSupplierName = 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 (editextPurchaseSupplierName.hasFocus()) {\n if (dialog.isShowing()) {\n //checkOustandingData(s.toString(), true);\n if (Utility.getInstance().isOnline(mContext)) {\n checkSupplierData(s.toString(), true);\n }\n }\n }\n }\n };\n\n\n editextPurchaseSupplierName.addTextChangedListener(textWatcherPurchaseSupplierName);\n/* editextPurchaseSupplierName.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 Log.e(TAG, \"onTextChanged: \");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n Log.e(TAG, \"onTextChanged: \");\n if (dialog.isShowing()) {\n //checkOustandingData(s.toString(), true);\n checkSupplierData(s.toString(), true);\n }\n }\n });*/\n\n cardviewPurchaseCancel.setOnClickListener(v -> {\n if (dialog != null) {\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n speak(getString(R.string.transaction_cancelled), \"\");\n Toast.makeText(mContext, \"\" + getString(R.string.transaction_cancelled), Toast.LENGTH_SHORT).show();\n }\n });\n\n cardviewPurchaseOk.setOnClickListener(v -> {\n boolean valueStatus = validatePuchase();\n if (valueStatus) {\n createPurchaseRequest(flowpurchaseReceivedOrPaid);\n }\n });\n\n imageviewCross.setOnClickListener(v -> {\n if (dialog != null) {\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n }\n });\n\n imageviewPurchaseDate.setOnClickListener(v -> {\n edittextPuchaseDate.setError(null);\n DatePickerDialog datePickerDialog = new DatePickerDialog(mContext, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n edittextPuchaseDate.setText(dayOfMonth + \"/\" + month + \"/\" + year);\n boolean valueStatus = validatePuchase();\n if (valueStatus) {\n speak(getString(R.string.please_say_save_or_cancel), \"\");\n new Handler().postDelayed(() -> {\n speechToTextFuncVoiceForPurchase(mContext, null, 3, imageviewMicSaveCancel, 2);\n }, 3000);\n }\n }\n }, dob_currentDate.get(dob_currentDate.YEAR), dob_currentDate.get(Calendar.MONTH), dob_currentDate.get(Calendar.DAY_OF_MONTH));\n// datePickerDialog.setTitle(\"Select Date\");\n datePickerDialog.getDatePicker().setMaxDate(System.currentTimeMillis());\n datePickerDialog.show();\n });\n\n\n if (!dialog.isShowing()) {\n String languageCode2 = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode2);\n Utility.getInstance().localisation(getActivity(), languageCode2);\n dialog.show();\n\n\n/* WindowManager.LayoutParams params = dialog.getWindow().getAttributes(); // change this to your dialog.\n\n params.y = -100; // Here is the param to set your dialog position. Same with params.x\n dialog.getWindow().setAttributes(params);*/\n\n dialog.getWindow().setGravity(Gravity.TOP | Gravity.RIGHT);\n WindowManager.LayoutParams layoutParams = dialog.getWindow().getAttributes();\n layoutParams.x = 100; // right margin\n layoutParams.y = 170; // top margin\n dialog.getWindow().setAttributes(layoutParams);\n // e.g. bottom + left margins:\n dialog.getWindow().setGravity(Gravity.BOTTOM | Gravity.LEFT);\n WindowManager.LayoutParams layoutParams1 = dialog.getWindow().getAttributes();\n layoutParams1.x = 100; // left margin\n layoutParams1.y = 170; // bottom margin\n dialog.getWindow().setAttributes(layoutParams1);\n\n\n/* Window window = dialog.getWindow();\n\n\n\n window.setLayout(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT);*/\n }\n/* speak(getString(R.string.please_tell_supplier_name), \"\");\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n editextPurchaseSupplierName.requestFocus();\n speechToTextFuncVoiceForPurchase(mContext, editextPurchaseSupplierName, 1, imageviewMicSupplierName, 2);\n }\n }, 3000);*/\n\n }\n }", "@Override\n public void onClick(final View view) {\n PopupMenu popupMenu = new PopupMenu(getBaseContext(), view);\n popupMenu.getMenuInflater().inflate(R.menu.popup_menu,popupMenu.getMenu());\n popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem menuItem) {\n Snackbar.make(view, menuItem.getTitle()+\" is selected\",Snackbar.LENGTH_SHORT).show();\n return true;\n }\n });\n popupMenu.show();\n }", "private void handleGSCTypeChange() {\n\t\tString gsc = cbGSC.getText();\n\n\t\tif (optionA[1].equals(gsc))\n\t\t\tbtnGSCPop.setEnabled(true);\n\t\telse {\n\t\t\tbtnGSCPop.setEnabled(false);\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n Object[] options ={ \"Yes\", \"No\" };\r\n //yes = 0 no = 1\r\n int m = JOptionPane.showOptionDialog(null, \"Go Back?\", \"tips\",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);\r\n\r\n if (m == 0)\r\n {\r\n frame.dispose();\r\n new init();\r\n }\r\n }" ]
[ "0.6225142", "0.58118755", "0.56588197", "0.554036", "0.55329484", "0.5491201", "0.5377037", "0.5357023", "0.53555006", "0.5342197", "0.53280234", "0.5318729", "0.531183", "0.53117114", "0.5298949", "0.5290768", "0.5288165", "0.5279072", "0.52767706", "0.52224076", "0.5221607", "0.5200193", "0.51874316", "0.5184303", "0.5177007", "0.51753414", "0.51714694", "0.5162596", "0.51620674", "0.5153509", "0.51519746", "0.5142193", "0.5138688", "0.5129766", "0.51272994", "0.51231325", "0.5108223", "0.5103071", "0.509791", "0.50969476", "0.509431", "0.50904024", "0.5087688", "0.50808096", "0.5078834", "0.50735486", "0.507309", "0.5066306", "0.5060176", "0.50573164", "0.5051308", "0.5049781", "0.5048984", "0.5044682", "0.50416666", "0.5040345", "0.5037873", "0.5034175", "0.50315404", "0.5029071", "0.50264543", "0.5022765", "0.5021775", "0.50147074", "0.5012717", "0.5012271", "0.50121385", "0.50070035", "0.5006993", "0.50023186", "0.49963707", "0.4992632", "0.49904525", "0.49888858", "0.49887702", "0.498751", "0.49874985", "0.4986388", "0.49858382", "0.4985645", "0.49835742", "0.49825546", "0.49785906", "0.49735564", "0.49708125", "0.4962164", "0.49567956", "0.49561718", "0.49548447", "0.49491274", "0.49482474", "0.4948014", "0.49478456", "0.4946105", "0.4943631", "0.4940014", "0.49380922", "0.49362504", "0.4934587", "0.49310973" ]
0.6240314
0
Update private fields using checkbox in grid layouts.
private void updateSelectedTypes(LinearLayout expenseTypes, LinearLayout creditTypes) { for (int i = 0; i < expenseTypes.getChildCount(); ++i) mExpenseTypesSelected[i] = ((CheckBox) expenseTypes.getChildAt(i)).isChecked(); for (int i = 0; i < creditTypes.getChildCount(); ++i) mCreditTypesSelected[i] = ((CheckBox) creditTypes.getChildAt(i)).isChecked(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshFieldsVisibility()\n {\n \n }", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }", "private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }", "private void setMembershipPanelEditableTrue() {\n \n accountNrTF.setEditable(true);\n fromDateTF.setEditable(true);\n groupTrainingCB.setEnabled(true);\n monthPayTF.setEditable(true);\n pbsDateTF.setEditable(true);\n pbsNumberTF.setEditable(true);\n regNrTF.setEditable(true);\n balanceTF.setEditable(true);\n poolsCB.setEnabled(true);\n timeLimitCB.setEnabled(true);\n endDateTF.setEditable(true);\n membershipDropD.setEnabled(true);\n }", "public void updateNonDynamicFields() {\n\n\t}", "private void updateData() {\n // store if checkbox is enabled and update the label accordingly\n updateOneItem(jcbMaxTracks, jsMaxTracks, jnMaxTracks, Variable.MAXTRACKS,\n Variable.MAXTRACKS_ENABLED);\n updateOneItem(jcbMaxSize, jsMaxSize, jnMaxSize, Variable.MAXSIZE, Variable.MAXSIZE_ENABLED);\n updateOneItem(jcbMaxLength, jsMaxLength, jnMaxLength, Variable.MAXLENGTH,\n Variable.MAXLENGTH_ENABLED);\n if (jcbOneMedia.isSelected()) {\n data.put(Variable.ONE_MEDIA, jcbMedia.getSelectedItem());\n data.put(Variable.ONE_MEDIA_ENABLED, Boolean.TRUE);\n } else {\n // keep old value... data.remove(Variable.KEY_MEDIA);\n data.put(Variable.ONE_MEDIA_ENABLED, Boolean.FALSE);\n }\n data.put(Variable.CONVERT_MEDIA, jcbConvertMedia.isSelected());\n data.put(Variable.RATING_LEVEL, jsRatingLevel.getValue());\n data.put(Variable.NORMALIZE_FILENAME, jcbNormalizeFilename.isSelected());\n }", "protected void updateFields(String dataset) \r\n {\n \tString text, hostname=\"localhost\", port=\"5621\";\r\n \ttext=dbIPTextField.getText();\r\n \tif (!text.equals(\"\"))\r\n \t{\r\n \t\thostname = text;\r\n \t}\r\n \ttext=dbPortTextField.getText();\r\n \tif (!text.equals(\"\"))\r\n \t{\r\n \t\tport = text;\r\n \t}\r\n \t\r\n //select fields name from dataset\r\n \tnames = new ArrayList<String>();\r\n \tnames=GUI.getInstance().solrQueryFieldNames(hostname, port);\r\n \t\r\n \tcheckBoxPanel.removeAll();\r\n \tcheckBoxPanel.setVisible(false);\r\n \t\r\n \tqueryPanel.removeAll();\r\n \tqueryPanel.setVisible(false);\r\n \t\r\n \tif (names.size() > 0)\r\n \t{\r\n \tcolumnNames = new String[names.size()];\r\n \t//checkBoxPanel.setLayout(new BoxLayout(checkBoxPanel,BoxLayout.LINE_AXIS));\r\n \t// add checkbox according to names\r\n \tbuttons=new ArrayList<JCheckBox>();\r\n \tfor (int j=0; j<names.size(); j++)\r\n \t\t{\r\n \t\tJCheckBox button = new JCheckBox(names.get(j));\r\n button.setSelected(false);\r\n button.addItemListener(this);\r\n \t\tbuttons.add(j, button);\r\n \t\tcheckBoxPanel.add(button);\r\n \t\tcolumnNames[j]=names.get(j);\r\n \t\t}\r\n \t\r\n \tcheckBoxPanel.setVisible(true);\r\n \t\r\n \tconnectButton.setEnabled(false);\r\n \r\n \tGUI.getInstance().enableMenus();\r\n \t}\r\n \t\r\n }", "public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "@Override\n public void onClick(View v) {\n if (chkPrivate != null) {\n chkPublic.setChecked(false);\n }\n chkPrivate.setChecked(true);\n }", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "@Override\n public void onClick(View v) {\n if (chkPublic != null) {\n chkPrivate.setChecked(false);\n }\n chkPublic.setChecked(true);\n }", "private void UpdateChecboxes()\r\n\t{\n\t\tfor (Iterator<CheckBox> iterator = this.CBlist.iterator(); iterator.hasNext();) \r\n\t\t{\r\n\t\t\t// for the next CheckBox\r\n\t\t\tCheckBox currChBox = iterator.next();\r\n\t\t\t\r\n\t\t\t// if the matching tag is true - \r\n\t\t\tif (this.hmTags.get(currChBox.getText()) == true)\r\n\t\t\t{\r\n\t\t\t\t// Check it\r\n\t\t\t\tcurrChBox.setChecked(true);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "@Override\n public void checkEditing() {\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setEditable(boolean isEditable) {\n\t\tint size = lnr_form.getChildCount();\n\t\tif (isEditable) {\n\t\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\t\tView v = lnr_form.getChildAt(i);\n\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) v.getTag();\n\t\t\t\tif (((LinearLayout) v.findViewById(R.id.lnrGgroup)).getVisibility() == View.VISIBLE) {\n\n\t\t\t\t} else {\n\t\t\t\t\tif (row.get(TYPE).equals(TEXT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEdit)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditArea)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(DATE)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TIME)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(SELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrSpin)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.VISIBLE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(LABEL)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrLabel)).setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrReadOnly)).setVisibility(View.GONE);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = 0; i < size; i++) {\n\n\t\t\t\tView v = lnr_form.getChildAt(i);\n\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) v.getTag();\n\t\t\t\tif (((LinearLayout) v.findViewById(R.id.lnrGgroup)).getVisibility() == View.VISIBLE) {\n\n\t\t\t\t} else {\n\t\t\t\t\tif (row.get(TYPE).equals(TEXT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(DATE)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(TIME)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(SELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t\t\t} else if (row.get(TYPE).equals(LABEL)) {\n\t\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\t\t\t\t\t}\n\n\t\t\t\t\t((LinearLayout) v.findViewById(R.id.lnrReadOnly)).setVisibility(View.VISIBLE);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "private void DisableOrEnableFields(){\n for (Node node:super.newAppointmentView.getChildren()) {\n if (node instanceof GridPane){\n GridPane gridpane = (GridPane)node;\n for (Node node1:gridpane.getChildren()) {\n if(node1 instanceof TextField || node1 instanceof ComboBox){\n node1.setDisable(isDisabled);\n }\n }\n }\n\n }\n isDisabled = !isDisabled;\n }", "private void setMemberInformationPanelEditableFalse() {\n \n fNameTF.setEditable(false);\n lNameTF.setEditable(false);\n cprTF.setEditable(false);\n cityTF.setEditable(false);\n adressTF.setEditable(false);\n emailTF.setEditable(false);\n memberIdTF.setEditable(false);\n fNameTF.setEditable(false);\n phoneTF.setEditable(false);\n postalCodeTF.setEditable(false);\n adressNrTF.setEditable(false);\n changePictureBTN.setEnabled(false);\n }", "@Override\n\tpublic void update(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}", "public void editEnabled(boolean enabled){\n }", "private void changeFieldsState(boolean state){\t\n\t\tmarcaText.setEnabled(state);\n\t\tmodeloText.setEnabled(state);\n\t\titvText.setEnabled(state);\n\t\testadoBox.setEnabled(state);\n\t\ttipoBox.setEnabled(state);\n\t\tanioText.setEnabled(state);\n\t}", "public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }", "private void enableFields() {\n\t\ttxtStockCenterName.setEnabled(false);\n\t\trdBtnPreferredNo.setEnabled(false);\n\t\trdBtnPreferredYes.setEnabled(false);\n\n\t\t//disable Facility Details fields\n\t\ttxtPharmacyName.setEnabled(false);\n\t\ttxtStreetAdd.setEnabled(false);\n\t\ttxtCity.setEnabled(false);\n\t\ttxtTel.setEnabled(false);\n\t\ttxtPharmacistName1.setEnabled(false);\n\t\ttxtPharmacyAssistant.setEnabled(false);\n\t\tgrpLabel.setEnabled(false);\n\n\t\tif(rdBtnAddStockCenter.getSelection()) {\n\t\t\ttxtStockCenterName.setEnabled(true);\n\t\t\tbtnSearch.setVisible(false);\n\t\t}\n\t\telse if(rdBtnUpdateStockCenter.getSelection()) {\n\t\t\ttxtStockCenterName.setEnabled(true);\n\t\t\tbtnSearch.setVisible(true);\n\t\t\tbtnSearch.setEnabled(true);\n\t\t}\n\t\telse {\n\t\t\ttxtPharmacyName.setEnabled(true);\n\t\t\ttxtStreetAdd.setEnabled(true);\n\t\t\ttxtCity.setEnabled(true);\n\t\t\ttxtTel.setEnabled(true);\n\t\t\ttxtPharmacistName1.setEnabled(true);\n\t\t\ttxtPharmacyAssistant.setEnabled(true);\n\t\t\tgrpLabel.setEnabled(true);\n\t\t\tbtnSearch.setVisible(false);\n\t\t}\n\n\t\t//}\n\t}", "private void updateFields() {\n\t\tsetNumComboBox();\n\t\tquestionNoList.setSelectedIndex(questionNo - 1);\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tques.setText(testGenerator.getQuestionText(questionNo));\n\t\tans1.setText(testGenerator.getAnswerText(questionNo, 1));\n\t\tans2.setText(testGenerator.getAnswerText(questionNo, 2));\n\t\tanswer1.setSelected(testGenerator.isAnswerCorrect(questionNo, 1));\n\t\tanswer2.setSelected(testGenerator.isAnswerCorrect(questionNo, 2));\n\t\tdisableThreeAndFour();\n\n\t\tif(numAnswers >= 3) {\n\t\t\tans3.setText(testGenerator.getAnswerText(questionNo, 3));\n\t\t\tanswer3.setSelected(testGenerator.isAnswerCorrect(questionNo, 3));\n\t\t\tenableThreeDisableFour();\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tanswer4.setSelected(testGenerator.isAnswerCorrect(questionNo, 4));\n\t\t\tans4.setText(testGenerator.getAnswerText(questionNo, 4));\n\t\t\tenableThreeAndFour();\n\t\t}\n\n\t\tif(questionNo < getNumQuestions()) \n\t\t\tnextQuestion.setEnabled(true);\n\t\telse\n\t\t\tnextQuestion.setEnabled(false);\n\n\t\tif(questionNo == 1) \n\t\t\tprevQuestion.setEnabled(false);\n\t\telse\n\t\t\tprevQuestion.setEnabled(true);\n\t}", "final void refreshCheckBoxes() {\r\n\r\n logger.entering(this.getClass().getName(), \"refreshCheckBoxes\");\r\n\r\n for (MicroSensorDataType msdt : this.msdtFilterMap.keySet()) {\r\n if (this.msdtFilterMap.get(msdt) == Boolean.TRUE) {\r\n this.chkMsdtSelection.get(msdt).setSelected(false);\r\n } else {\r\n this.chkMsdtSelection.get(msdt).setSelected(true);\r\n }\r\n\r\n }\r\n\r\n logger.exiting(this.getClass().getName(), \"refreshCheckBoxes\");\r\n }", "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}", "private void enableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(true);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(true);\n\n\t\t\t\t\t}", "public void updateField() {\n\n boolean[][] tempField = new boolean[getLength()][getHeight()];\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n tempField[x][y] = checkSurrounding(x, y);\n }\n }\n setFields(tempField);\n }", "void setUserIsActiveEditable(boolean b);", "CheckboxInfo getCheckboxInfo(int row);", "private void enableFieldBasedOnUpdateMethod() {\r\n if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.ALVAREZ_SQUIRE) {\r\n tfSynpaseDecayPercent.setEnabled(true);\r\n } else if (updateMethod.getSelectedItem() == CompetitiveGroup.UpdateMethod.RUMM_ZIPSER) {\r\n tfSynpaseDecayPercent.setEnabled(false);\r\n }\r\n }", "@Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) {\n if (!isChecked) {\n //show password of door\n type3.setTransformationMethod(PasswordTransformationMethod.getInstance());\n new1.setTransformationMethod(PasswordTransformationMethod.getInstance());\n } else {\n //hide password of door\n type3.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n new1.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n }\n }", "private void setUpCheckBox(final int flag, CheckBox checkBox, LinearLayout llCheckBox) {\n if ((movie.getAvailableExtras() & flag) != 0) {\n checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n flagsApplied = flagsApplied ^ flag;\n updatePriceAndSaving();\n }\n });\n } else {\n llCheckBox.setVisibility(View.GONE);\n }\n }", "@FXML\n public void updateFields() {\n try {\n Worker currentWorker = workerAdaptor.getWorker(userIDComboBox.getValue());\n passwordTextField.setText(currentWorker.getPassword().strip());\n workerTypeComboBox.getSelectionModel().select(currentWorker.getWorkerType());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }", "private void setComponents() throws SQLException {\n switch (this.pStatus) {\n case View:\n tblContacts.setEnabled(true);\n fillContactsTable();\n txtFirstName.setEnabled(false);\n txtMiddleName.setEnabled(false);\n txtLastName.setEnabled(false);\n dtpBirthday.setEnabled(false);\n rdoMale.setEnabled(false);\n rdoFemale.setEnabled(false);\n rdoUndefined.setEnabled(false);\n txtStreet.setEnabled(false);\n txtPostcode.setEnabled(false);\n txtCity.setEnabled(false);\n txtCountry.setEnabled(false);\n txtAvailability.setEnabled(false);\n txtComment.setEnabled(false);\n btnSave.setEnabled(false);\n btnNew.setEnabled(true);\n if (getRowCount() > 0) {\n btnEdit.setEnabled(true);\n btnDelete.setEnabled(true);\n } else {\n btnEdit.setEnabled(false);\n btnDelete.setEnabled(false);\n }\n btnCancel.setEnabled(false);\n break;\n case New:\n case Modify:\n tblContacts.setEnabled(false);\n txtFirstName.setEnabled(true);\n txtMiddleName.setEnabled(true);\n txtLastName.setEnabled(true);\n dtpBirthday.setEnabled(true);\n rdoMale.setEnabled(true);\n rdoFemale.setEnabled(true);\n rdoUndefined.setEnabled(true);\n txtStreet.setEnabled(true);\n txtPostcode.setEnabled(true);\n txtCity.setEnabled(true);\n txtCountry.setEnabled(true);\n txtAvailability.setEnabled(true);\n txtComment.setEnabled(true);\n btnSave.setEnabled(true);\n btnNew.setEnabled(false);\n btnEdit.setEnabled(false);\n btnDelete.setEnabled(false);\n btnCancel.setEnabled(true);\n break;\n }\n }", "private void putEditables(boolean b) {\r\n\t\ttxUsuario.setEditable(b);\r\n\t\ttxPassword.setEditable(b);\r\n\t\tcheckAdmin.setDisable(!b);\r\n\t\tcheckTPV.setDisable(!b);\r\n\t}", "private void adjustFields( Flow f ) {\n boolean lockedByUser = isLockedByUser( f );\n\n nameField.setEnabled( lockedByUser && f.canSetNameAndElements() );\n intentChoice.setEnabled( lockedByUser && f.canSetNameAndElements() );\n askedForButtons.setEnabled( lockedByUser && f.canSetAskedFor() );\n allField.setVisible( isSend() && f.canGetAll() );\n allField.setEnabled( lockedByUser && isSend() && f.canSetAll() );\n significanceToTargetLabel.setVisible( f.canGetSignificanceToTarget() );\n significanceToTargetChoice.setEnabled(\n lockedByUser && f.canSetSignificanceToTarget() );\n channelRow.setVisible( f.canGetChannels() );\n this.timingContainer.setVisible( f.canGetMaxDelay() );\n delayPanel.enable( lockedByUser && f.canSetMaxDelay() );\n significanceToSourceContainer.setVisible( f.canGetSignificanceToSource() );\n triggersSourceContainer.setVisible( ( !isSend() || f.isAskedFor() ) && f.canGetTriggersSource() );\n triggersSourceCheckBox.setEnabled( lockedByUser && f.canSetTriggersSource() );\n terminatesSourceContainer.setVisible( f.canGetTerminatesSource() );\n terminatesSourceCheckBox.setEnabled( lockedByUser && f.canSetTerminatesSource() );\n otherChoice.setEnabled( lockedByUser );\n restrictedCheckBox.setEnabled( lockedByUser );\n flowDescription.setEnabled(\n ( isSend() && f.isNotification() || !isSend() && f.isAskedFor() ) && isLockedByUser( getFlow() ) );\n makeVisible( issuesPanel, getAnalyst().hasIssues( getQueryService(), getFlow(), false ) );\n makeVisible( ifTaskFailsContainer, canGetIfTaskFails() );\n ifTaskFailsCheckBox.setEnabled( canSetIfTaskFails() );\n makeVisible( prohibitedContainer, f.canGetProhibited() );\n prohibitedCheckBox.setEnabled( lockedByUser && f.canSetProhibited() );\n makeVisible( referencesEventPhaseContainer, f.canGetReferencesEventPhase() );\n makeVisible( canBypassIntermediateContainer, !isShowSimpleForm() && f.canGetCanBypassIntermediate() );\n makeVisible( receiptConfirmationRequestedContainer, !isShowSimpleForm() && f.canGetReceiptConfirmationRequested() );\n referencesEventPhaseCheckBox.setEnabled( lockedByUser && f.canSetReferencesEventPhase() );\n canBypassIntermediateCheckBox.setEnabled( lockedByUser && f.canSetCanBypassIntermediate() );\n receiptConfirmationRequestedCheckBox.setEnabled( lockedByUser && f.canSetReceiptConfirmationRequested() );\n }", "void setPersonalInfoBooleanBinding() {\r\n\t\tBooleanBinding booleanBind;\r\n\t\tbooleanBind = (tfFirstName.textProperty().isEmpty()).or(tfLastName.textProperty().isEmpty()).or(tfEmail.textProperty().isEmpty()).or(tfphone.textProperty().isEmpty());\r\n\t\tbtnSave.disableProperty().bind(booleanBind);\r\n\t}", "@Override\n\tpublic void onClick(ClickEvent event) {\n\t\tif (event.getSource() == select) {\n\t\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\t\tif (cb == null) {Window.alert(\"select \" + row);}\n\t\t\t\tcb.setValue(true);\n\t\t\t}\n\t\t}\n\t\telse if (event.getSource() == remove) {\n\t\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\t\tif (cb == null) {Window.alert(\"remove \" + row);}\n\t\t\t\tcb.setValue(false);\n\t\t\t}\t\t\t\n\t\t}\n\t\telse if (isEnabled()) {\n\t\t\tHTMLTable.Cell cell = field.getCellForEvent(event);\n\t\t\tint selectedRow = cell.getRowIndex();\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(selectedRow, 2);\n\t\t\tcb.setValue (!cb.getValue());\n\t\t\tfireChange(this);\n\t\t}\n\t}", "@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}", "private void togglePostControls(boolean hidePostFields)\n {\n }", "public abstract void checkEditing();", "private void setFields(boolean disabled){\n\t\tuserNameField.setDisable(disabled);\n\t\tuserLastNameField.setDisable(disabled);\n\t\tuserLoginField.setDisable(disabled);\n\t\tuserPermissionsBox.setDisable(disabled);\n\t\teditingCheck.setDisable(disabled);\n\t\treminderCheck.setDisable(disabled);\n\t\tchangeCancelButton.setDisable(disabled);\n\t\tsaveUser.setDisable(disabled);\n\t\tdeleteMenuItem.setDisable(disabled);\n\t}", "private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }", "public void setup(){\n\t\tgui.getCenter().setText(\"No book info is yet available. Submit some!\");\n\t\tconstrain(gui.getGroups());\n\t\t\n\t\tgui.getMasterCheck().selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t @Override\n\t\t public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n\t\t for (InputGroup group: gui.getGroups()){\n\t\t \tgroup.getCheck().setSelected(newValue);\n\t\t }\n\t\t }\n\t\t});\n\t}", "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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n jScrollPane1 = new javax.swing.JScrollPane();\n properties = new javax.swing.JList();\n cbGetters = new javax.swing.JCheckBox();\n cbSetters = new javax.swing.JCheckBox();\n cbBoolean = new javax.swing.JCheckBox();\n cbJavaDoc = new javax.swing.JCheckBox();\n cbDomainClass = new javax.swing.JCheckBox();\n\n setLayout(new java.awt.GridBagLayout());\n\n jScrollPane1.setViewportView(properties);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.ipadx = 350;\n gridBagConstraints.ipady = 109;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(12, 10, 0, 10);\n add(jScrollPane1, gridBagConstraints);\n\n cbGetters.setMnemonic('G');\n cbGetters.setText(\"Getters\"); // NOI18N\n cbGetters.setToolTipText(\"Generate Setters according to Ujo Keys\"); // NOI18N\n cbGetters.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbGettersActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(0, 22, 0, 0);\n add(cbGetters, gridBagConstraints);\n\n cbSetters.setMnemonic('S');\n cbSetters.setText(\"Setters\"); // NOI18N\n cbSetters.setToolTipText(\"Generate Setters according to Ujo Keys\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(0, 22, 0, 0);\n add(cbSetters, gridBagConstraints);\n\n cbBoolean.setMnemonic('B');\n cbBoolean.setText(\"IsBoolean\"); // NOI18N\n cbBoolean.setToolTipText(\"Generate Setters according to Ujo Keys\"); // NOI18N\n cbBoolean.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbBooleanActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(0, 22, 0, 0);\n add(cbBoolean, gridBagConstraints);\n\n cbJavaDoc.setMnemonic('C');\n cbJavaDoc.setText(\"Copy JavaDoc form Keys to new methods\"); // NOI18N\n cbJavaDoc.setToolTipText(\"\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.ipadx = 60;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(4, 22, 0, 10);\n add(cbJavaDoc, gridBagConstraints);\n\n cbDomainClass.setMnemonic('D');\n cbDomainClass.setText(\"Generate a Domain class before Keys\"); // NOI18N\n cbDomainClass.setToolTipText(\"\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;\n gridBagConstraints.ipadx = 60;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(4, 22, 0, 10);\n add(cbDomainClass, gridBagConstraints);\n }", "private void UpdateTagsList()\r\n\t{ \r\n\t\t // for every element in our checkboxes from the view array\r\n\t\t for (CheckBox checkBox : this.CBlist) \r\n\t\t {\r\n\t\t\t // if it is checked\r\n\t\t\t if(checkBox.isChecked())\r\n\t\t\t {\r\n\t\t\t\t // Update the values on the local indication array\r\n\t\t\t\t hmTags.put(checkBox.getText().toString(), true);\r\n\t\t\t }\r\n\t\t }\t\t\t\r\n\t}", "public void editButtonClicked() {\n setButtonsDisabled(false, true, true);\n setAllFieldsAndSliderDisabled(false);\n }", "public void setIsFromMassUpdate (boolean IsFromMassUpdate);", "@Override\n public void toggle() {\n checkBox.toggle();\n }", "@FXML\r\n\tvoid enableEdit(ActionEvent event) {\r\n\t\tupdateUser.setText(\"Update\");\r\n\t\tboxFn.setDisable(false);\r\n\t\tboxLn.setDisable(false);\r\n\t\tdatePicker.setDisable(false);\r\n\t\tcalorieCount.setDisable(false);\r\n \t}", "private void setTagEditable(boolean bool){\n \t\teditTag.setVisible(!bool);\r\n \t\teditTag.setVisible(bool); //actually we want editTag visible false\r\n \t\t\r\n \t\tviewTag.setVisible(bool);\r\n \t\tviewTag.setVisible(!bool); //actually we want viewTag visible true\r\n \t}", "@FXML\n private void enableFields(ActionEvent e) {\n if (txfFirstName.isDisabled()) {\n txfFirstName.setDisable(false);\n txfLastName.setDisable(false);\n txfAddress.setDisable(false);\n txfZIP.setDisable(false);\n txfZIPloc.setDisable(false);\n txfEmail.setDisable(false);\n txfPhone.setDisable(false);\n } else{\n txfFirstName.setDisable(true);\n txfLastName.setDisable(true);\n txfAddress.setDisable(true);\n txfZIP.setDisable(true);\n txfZIPloc.setDisable(true);\n txfEmail.setDisable(true);\n txfPhone.setDisable(true);\n }\n }", "private void moikhoatextfield(boolean b) {\n\t\ttxtmakhhm.setEditable(b);\n\t\ttxtGhichu.setEditable(b);\n\t\ttxtTinhtrang.setEditable(b);\n\t\tjdcNgaytra.setEnabled(b);\n\t\tckTra.setEnabled(b);\n\t}", "public void updateVisible (Connection conn) throws SQLException {\r\n\r\n\t\tString query = \r\n\t\t\t\"update gene_list_analyses \"+\r\n\t\t\t\"set visible = 1 \"+\r\n\t\t\t\"where analysis_id = ?\";\r\n\r\n\t\tlog.debug(\"in updateVisible. analysis = \"+this.getDescription());\r\n \t\tPreparedStatement pstmt = conn.prepareStatement(query, \r\n\t\t\t\t\t\tResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\t\t\tResultSet.CONCUR_UPDATABLE);\r\n\t\tpstmt.setInt(1, this.getAnalysis_id());\t\r\n\t\tpstmt.executeUpdate();\r\n\t}", "public void setEditOnIngredientsBrowseFields(Boolean state){\n ingredCalorieInputBrowse.setEditable(state);\n ingredSugarInputBrowse.setEditable(state);\n ingredFatInputBrowse.setEditable(state);\n ingredProteinInputBrowse.setEditable(state);\n ingredCarbsInputBrowse.setEditable(state);\n ingredFiberInputBrowse.setEditable(state);\n ingredQuantityNameInputBrowse.setEditable(state);\n ingredQuantityAmountInputBrowse.setEditable(state);\n updateIngredsBtn.setDisable(!state);\n }", "@Override\n protected void updateModelFromUi(@Nullable Selection<DataType> selection) {\n try {\n selection.setSelected(theCheckBox.isChecked());\n Logger.debug(\"Updated selection: \" + selection.toString());\n\n } catch (Exception e) {\n Logger.error(\"Failed to update selection\", e);\n }\n }", "private void setMembershipPanelEdiableFalse() {\n \n accountNrTF.setEditable(false);\n fromDateTF.setEditable(false);\n groupTrainingCB.setEnabled(false);\n monthPayTF.setEditable(false);\n pbsDateTF.setEditable(false);\n pbsNumberTF.setEditable(false);\n regNrTF.setEditable(false);\n balanceTF.setEditable(false);\n poolsCB.setEnabled(false);\n timeLimitCB.setEnabled(false);\n endDateTF.setEditable(false);\n membershipDropD.setEnabled(false);\n }", "public void setFieldReadAccess() {\n\n\t\tif (!AccessManager.canReadPersonnelIdentification())\n\t\t\tpersonnel_nomFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadCentreDiagTraitDescription())\n\t\t\tcdt_nomFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadCandidatureFormationRegionApprobation())\n\t\t\tapprouveeRegionFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadCandidatureFormationGtcApprobation())\n\t\t\tapprouveeGTCFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadDistrictSanteDescription())\n\t\t\tdistrictsante_nomFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.isAdmin())\n\t\t\tdeletedEntityBoxFilterBox.setVisible(false);\n\t}", "public void setFieldReadAccess() {\n\n\t\tif (!AccessManager.canReadSmsPredefiniDescription())\n\t\t\ttypeFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadSmsPredefiniDescription())\n\t\t\tobjetFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.canReadSmsPredefiniDescription())\n\t\t\tmessageFilterBox.setVisible(false);\n\n\t\tif (!AccessManager.isAdmin())\n\t\t\tdeletedEntityBoxFilterBox.setVisible(false);\n\t}", "static void setNotEdit(){isEditing=false;}", "public void setCValueEditable(boolean status);", "@Override\r\n\t\t\t\t\tpublic void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2) {\n\t\t\t\t\t\tproducts.setIs_activated(arg2);\r\n\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET is_activated='\"+arg2+\"' WHERE id=\"+products.getId())>0) {\r\n\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "@Override\n\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean selected) {\n\t\t\tEditor ed = sp.edit();\n\t\t\tif(selected){\n\t\t\t\ted.putBoolean(\"reget_password\", true);\n\t\t\t}else{\n\t\t\t\ted.putBoolean(\"reget_password\", false);\n\t\t\t}\n\t\t\ted.commit();\n\t\t}", "private void updateState() {\n \t\tfor (Map.Entry<FunctionParameter, Pair<Text, Button>> entry : inputFields.entries())\n \t\t\tif (entry.getKey().getValidator() != null\n \t\t\t\t\t&& entry.getKey().getValidator().validate(entry.getValue().getFirst().getText()) != null) {\n \t\t\t\tsetPageComplete(false);\n \t\t\t\treturn;\n \t\t\t}\n \t\tsetPageComplete(true);\n \t}", "private void setFields(boolean[][] fields) {\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n if (this.fields[x][y] != fields[x][y]) {\n this.fields[x][y] = fields[x][y];\n }\n }\n }\n setChanged();\n notifyObservers();\n }", "protected void updateEnabled() {\n\t\tFieldGroup control = getUIControl();\n\t\tif (control != null) {\n\t\t\tCollection<? extends IRidget> ridgets = getRidgets();\n\t\t\tfor (IRidget ridget : ridgets) {\n\t\t\t\tridget.setEnabled(isEnabled());\n\t\t\t}\n\t\t\tcontrol.setEnabled(isEnabled());\n\t\t}\n\t}", "private EditingStatus() {\n // Class values\n className = \"\";\n editedClassName = \"\";\n associationClass = false;\n editedClass = false;\n\n // Relationship values\n openEditing = false;\n editedRel = false;\n deletedRels = false;\n relName = \"\";\n editedRelName = \"\";\n delRelationships = FXCollections.observableArrayList();\n }", "@Override\r\n\t\t// public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\tpublic void onClick(View v) {\n\t\t\tboolean arg1 = ((CheckBox) v).isChecked();\r\n\t\t\tif (arg1 == true) {\r\n\t\t\t\tHashMap<String, Long> cMap = null;\r\n\t\t\t\tif (cList == null) {\r\n\t\t\t\t\tcList = new ArrayList<HashMap<String, Long>>();\r\n\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcMap = getC(idx);\r\n\t\t\t\t\tif (cMap == null) {\r\n\t\t\t\t\t\tcMap = new HashMap<String, Long>();\r\n\t\t\t\t\t\tcMap.put(\"idx\", (long) idx);\r\n\t\t\t\t\t\tcMap.put(\"cId\", (long) cId);\r\n\t\t\t\t\t\tcList.add(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = true;\r\n\t\t\t} else {\r\n\t\t\t\tif (cList != null) {\r\n\t\t\t\t\tHashMap<String, Long> cMap = getC(idx);\r\n\t\t\t\t\tif (cMap != null) {\r\n\t\t\t\t\t\tcList.remove(cMap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t((LvItemCbAttribute) list.get(idx).get(\"liscli_isChecked\")).isChecked = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"cb--i-->\" + idx);\r\n\t\t\tiatclAdapter.notifyDataSetChanged();\r\n\t\t}", "public void setEditButtonVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n cb_editar = new javax.swing.JCheckBox();\n jPanel2 = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n });\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n });\n\n jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.LINE_AXIS));\n\n cb_editar.setText(\"Editar\");\n cb_editar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cb_editarActionPerformed(evt);\n }\n });\n jPanel1.add(cb_editar);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_END);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 682, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 580, Short.MAX_VALUE)\n );\n\n getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "@Override\n public void onClick(View v) {\n boolean enable = true;\n if(nextPhysicianAvailableCheckbox.isChecked()) {\n enable = false;\n }\n for (int i = 0; i < nearbyPhysicianListLayout.getChildCount(); i++) {\n nearbyPhysicianListLayout.getChildAt(i).setEnabled(enable);\n }\n }", "@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\t\t\t\tboolean isChecked) {\n\t\t\t\t\t\tint position = ((Integer) buttonView.getTag())\n\t\t\t\t\t\t\t\t.intValue();\n\n\t\t\t\t\t\tif (isChecked) {\n\t\t\t\t\t\t\t// myItems.put(position,\n\t\t\t\t\t\t\t// Caption.getText().toString());\n\n\t\t\t\t\t\t\tif (holderMain.editTextParametername.getText()\n\t\t\t\t\t\t\t\t\t.toString().equalsIgnoreCase(\"\")) {\n\n\t\t\t\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\t\t\t\t\"Please Enter Parameter Name\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\tholderMain.buttonDone.setTextOff(\"Done\");\n\t\t\t\t\t\t\t\tholderMain.buttonDone.toggle();\n\n\t\t\t\t\t\t\t} else if (holderMain.editTextParameterValue\n\t\t\t\t\t\t\t\t\t.getText().toString().equalsIgnoreCase(\"\")) {\n\n\t\t\t\t\t\t\t\tToast.makeText(activity,\n\t\t\t\t\t\t\t\t\t\t\"Please Enter Parameter Value\",\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\tholderMain.buttonDone.toggle();\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tholderMain.buttonDone.setTextOn(\"Edit\");\n\n\t\t\t\t\t\t\t\tLog.d(\"parameter name values\", \"\"\n\t\t\t\t\t\t\t\t\t\t+ holderMain.editTextParametername\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t\t\tLog.d(\"paratmeter values\", \"\"\n\t\t\t\t\t\t\t\t\t\t+ holderMain.editTextParameterValue\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\n\t\t\t\t\t\t\t\t// objClinicModel.setUserNames(holderMain.autoTextView.getText().toString());\n\t\t\t\t\t\t\t\tobjParameterModel.setPatameters(\n\t\t\t\t\t\t\t\t\t\tholderMain.editTextParametername\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString(),\n\t\t\t\t\t\t\t\t\t\tholderMain.editTextParameterValue\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t\t\tm.setParametername(holderMain.editTextParametername\n\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t\t\tm.setParameterValue(holderMain.editTextParameterValue\n\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\n\t\t\t\t\t\t\t\tp = Prescription.get(activity);\n\n\t\t\t\t\t\t\t\tint historyId = p.getHistoryId();\n\t\t\t\t\t\t\t\tpc = new PrescriptionController(activity);\n\n\t\t\t\t\t\t\t\tint parameterId = pc.saveParameter(historyId,\n\t\t\t\t\t\t\t\t\t\tholderMain.editTextParametername\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString(),\n\t\t\t\t\t\t\t\t\t\tholderMain.editTextParameterValue\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t\t\tp.getParameters().add(\n\t\t\t\t\t\t\t\t\t\tpc.getParameter(parameterId));\n\n\t\t\t\t\t\t\t\tdisableFields();\n\t\t\t\t\t\t\t\tLog.d(\"get array\",\n\t\t\t\t\t\t\t\t\t\t\"\" + objParameterModel.getparameters());\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tenableFields();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onCheckedChanged(CompoundButton button,\n boolean isChecked) {\n if (isChecked) {\n\n show_hide_password.setText(R.string.hide_pwd);// change\n // checkbox\n // text\n\n password.setInputType(InputType.TYPE_CLASS_TEXT);\n password.setTransformationMethod(HideReturnsTransformationMethod\n .getInstance());// show password\n } else {\n show_hide_password.setText(R.string.show_pwd);// change\n // checkbox\n // text\n\n password.setInputType(InputType.TYPE_CLASS_TEXT\n | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n password.setTransformationMethod(PasswordTransformationMethod\n .getInstance());// hide password\n\n }\n\n }", "private void enableFields(boolean enability){\n txtReference.setEditable(enability);\n txtItem.setEditable(enability);\n txtDescription.setEditable(enability);\n txtBrand.setEditable(enability);\n txtModel.setEditable(enability);\n txtQuantity.setEditable(enability);\n txtUnit.setEditable(enability);\n txtProductDate.setEnabled(enability);\n txtOrigPrice.setEditable(enability);\n txtAgent.setEditable(enability);\n txtCurrency.setEditable(enability);\n txtCurrency.setEnabled(enability);\n txtContactPerson.setEnabled(enability);\n \n }", "private void configureFields() {\n\t\ttargetDiastolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_DIASTOLIC_LIMIT,UPPER_DIASTOLIC_LIMIT));\n\t\ttargetDiastolic.setEditable(true);\n\t\ttargetSystolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_SYSTOLIC_LIMIT,UPPER_SYSTOLIC_LIMIT));\n\t\ttargetSystolic.setEditable(true);\n\t\tdiastolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(DIASTOLIC_ALARM_LOWER, DIASTOLIC_ALARM_HIGHER));\n\t\tdiastolicAlarm.setEditable(true);\n\t\tsystolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(SYSTOLIC_ALARM_LOWER, SYSTOLIC_ALARM_HIGHER));\n\t\tsystolicAlarm.setEditable(true);\n\t\tSpinnerValueFactory.DoubleSpinnerValueFactory rateFactory=new SpinnerValueFactory.DoubleSpinnerValueFactory(MIN_FLOW_RATE, MAX_FLOW_RATE);\n\t\trateFactory.setAmountToStepBy(0.1);\n\t\tinfusionRate.setValueFactory(rateFactory);\n\t\t\n\t\t/*\n\t\t * We use bindBidirectional here because systolicProperty and diastolicProperty and numbers,\n\t\t * but the text field is a String, and bindBidrectional allows us to specify a converter\n\t\t * to handle the change between the two.\n\t\t */\n\t\tcurrentSystolic.textProperty().bindBidirectional(systolicProperty, new NumberStringConverter());\n\t\tcurrentDiastolic.textProperty().bindBidirectional(diastolicProperty, new NumberStringConverter());\n\t\t\n\t\tcurrentSystolic.setEditable(false);\n\t\tcurrentDiastolic.setEditable(false);\n\t\t\n\n\t\toperatingMode.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Toggle> ov, Toggle oldToggle, Toggle newToggle) {\n\t\t\t\tif(newToggle.equals(openRadio)) {\n\t\t\t\t\tbpVBox.setVisible(false);\n\t\t\t\t\tbpVBox.setManaged(false);\n\t\t\t\t} else {\n\t\t\t\t\tbpVBox.setManaged(true);\n\t\t\t\t\tbpVBox.setVisible(true);\n\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}", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }", "public void setUpdateData() {\n if (updateTypestr.equalsIgnoreCase(\"Family\")) {\n addStudentScreenBinding.familyNameLinear.setVisibility(View.GONE);\n addStudentScreenBinding.addStudentTxt.setText(\"Update Family\");\n addStudentScreenBinding.classTypeGroup.setVisibility(View.GONE);\n addStudentScreenBinding.emailEdt.setVisibility(View.VISIBLE);\n addStudentScreenBinding.emailEdt.setText(eAstr);\n addStudentScreenBinding.emailEdt.setEnabled(false);\n addStudentScreenBinding.phoneNoEdt.setVisibility(View.VISIBLE);\n addStudentScreenBinding.phoneNoEdt.setText(pNstr);\n\n } else {\n addStudentScreenBinding.addStudentTxt.setText(\"Update Contact\");\n addStudentScreenBinding.firstNameEdt.setText(fNstr);\n addStudentScreenBinding.lastNameEdt.setText(lNstr);\n addStudentScreenBinding.familynameTxt.setText(familyNameStr);\n addStudentScreenBinding.dateOfBirthEdt.setText(dobstr);\n if (cnIdstr.equalsIgnoreCase(\"Child\")) {\n addStudentScreenBinding.childChk.setChecked(true);\n } else if (cnIdstr.equalsIgnoreCase(\"Spouse\")) {\n addStudentScreenBinding.spouseChk.setChecked(true);\n }\n addStudentScreenBinding.lastNameEdt.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\n if (i == EditorInfo.IME_ACTION_NEXT) {\n InputMethodManager imm = (InputMethodManager) textView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(textView.getWindowToken(), 0);\n\n addStudentScreenBinding.dateOfBirthEdt.requestFocus();\n }\n return false;\n }\n });\n }\n addStudentScreenBinding.registerBtn.setText(\"Update\");\n addStudentScreenBinding.firstNameEdt.setText(fNstr);\n addStudentScreenBinding.lastNameEdt.setText(lNstr);\n String[] splitdate = dobstr.split(\"\\\\s+\");\n addStudentScreenBinding.dateOfBirthEdt.setText(splitdate[0]);\n\n if (gIdstr.equalsIgnoreCase(\"1\")) {\n addStudentScreenBinding.maleChk.setChecked(true);\n } else {\n addStudentScreenBinding.femaleChk.setChecked(true);\n }\n }", "private void updateOneItem(JCheckBox cb, JSlider slider, JLabel label, Variable key,\n Variable keyOn) {\n if (cb.isSelected()) {\n if (!slider.getValueIsAdjusting()) {\n data.put(key, slider.getValue());\n data.put(keyOn, Boolean.TRUE);\n }\n label.setText(Integer.toString(slider.getValue()));\n } else {\n if (!slider.getValueIsAdjusting()) {\n // keep value... data.remove(key);\n data.put(keyOn, Boolean.FALSE);\n }\n label.setText(NO_VALUE);\n }\n }", "public void updateUI() {\n mSendButton.setEnabled(isSignedIn());\n mMessageEdit.setEnabled(isSignedIn());\n }", "public void updateVisible(){\n if (serviceManager.isCustomerQueMode() == true && serviceManager.isManagerMode() == false) {\n this.setVisible(true);\n } else {\n this.setVisible(false);\n }\n// System.out.println(serviceManager.isCustomerQueMode());\n }", "@Override\n public void update(Observable o, Object arg) {\n\n if (arg != null) {\n if (arg.equals(\"maakAllesLeegNaWijziging\")) {\n grid.setVisible(false);\n lblTitelDetail.setVisible(false);\n btnFoto.setVisible(false);\n btnAnnuleer.setVisible(false);\n btnVerwijderen.setVisible(false);\n btnToevoegenAnnuleren.setVisible(false);\n btnWijzigen.setVisible(false);\n btnLeegmaken.setVisible(false);\n btnVoegProductToe.setVisible(false);\n lblOnbeschikbaar.setVisible(false);\n txtOnbeschikbaar.setVisible(false);\n }\n\n if (!arg.equals(\"maakAllesLeegNaWijziging\")) {\n\n boolean isToevoeging = false;\n if (dc.getHuidigProduct() == null\n && (!txtAantal.getText().equalsIgnoreCase(\"\")\n || !txtArtikelnummer.getText().equalsIgnoreCase(\"\")\n || !txtEmailFirma.getText().equalsIgnoreCase(\"\")\n || !txtFirma.getText().equalsIgnoreCase(\"\")\n || !txtNaam.getText().equalsIgnoreCase(\"\")\n || !txtOmschrijving.getText().equalsIgnoreCase(\"\")\n || !txtPlaats.getText().equalsIgnoreCase(\"\")\n || !txtPrijs.getText().equalsIgnoreCase(\"\"))) {\n isToevoeging = true;\n\n } else {\n grid.setVisible(true);\n lblTitelDetail.setVisible(true);\n btnFoto.setVisible(true);\n btnAnnuleer.setVisible(true);\n btnVerwijderen.setVisible(true);\n btnToevoegenAnnuleren.setVisible(false);\n btnWijzigen.setVisible(true);\n btnLeegmaken.setVisible(false);\n btnVoegProductToe.setVisible(false);\n lblOnbeschikbaar.setVisible(true);\n txtOnbeschikbaar.setVisible(true);\n }\n\n //binnenkomend product\n dc.setCancelled(false);\n\n try {\n if (this.wijziging) {\n resetWaardenprivate();\n btnWijzigen.setDisable(true);\n\n btnVerwijderen.setDisable(true);\n btnVoegProductToe.setVisible(false);\n btnToevoegenAnnuleren.setVisible(false);\n lblOnbeschikbaar.setVisible(true);\n txtOnbeschikbaar.setVisible(true);\n dc.setNieuwHuidigProduct(null);\n } else {\n //binnenkomend product\n dc.setCancelled(false);\n\n Product product = (Product) arg;\n\n // we gaan in deze klasse een huidigProduct moeten maken\n //eerst controleren of deze null is, zo ja dan wordt het product dat binnen komt het huidigProduct\n //als deze niet nul is (we hebben dus al een product geselecteerd en klikken nu op een ander)\n // dan controleren we of de attributen (alles wat in de tekstvelden staat) van ons huidigproduct anders zijn \n //dan de attributen van dat product die opgeslaan zijn in de database\n if (dc.getHuidigProduct() != null || isToevoeging) {\n if (dc.getHuidigProduct() != null) {\n oudProduct = dc.getProductById(dc.getHuidigProduct().getId());\n }\n\n if (dc.getHuidigProduct() == null || (!String.format(\"%s\", oudProduct.getAantal()).equals(txtAantal.getText())\n || !String.format(\"%s\", oudProduct.getArtikelnummer()).equals(txtArtikelnummer.getText())\n //|| opgeslagenProduct.getDoelgroepen()!= opgeslagenProduct.getDoelgroepen()\n || !oudProduct.getFirma().getNaam().equalsIgnoreCase(txtFirma.getText())\n //|| opgeslagenProduct.getFoto() != foto\n //|| opgeslagenProduct.getLeergebieden()!= huidigProduct.getLeergebieden()\n || !oudProduct.getNaam().equalsIgnoreCase(txtNaam.getText())\n || !oudProduct.getOmschrijving().equalsIgnoreCase(txtOmschrijving.getText())\n || !oudProduct.getPlaats().equalsIgnoreCase(txtPlaats.getText())\n || !String.format(\"%s\", oudProduct.getAantalOnbeschikbaar()).equals(txtOnbeschikbaar.getText())\n || !String.format(\"%.2f\", oudProduct.getPrijs()).replace(\",\", \".\").equals(txtPrijs.getText()))) {\n\n Stage stage = new Stage();\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmatie\");\n alert.setHeaderText(\"Niet opgeslagen wijzigingen gevonden\");\n alert.setContentText(\"OK om ze te verwerpen, Cancel om ze aan te passen\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK) {\n // OK wijzigingen verwerpen\n\n dc.setCancelled(false);\n dc.setNieuwHuidigProduct(product);\n\n grid.setVisible(true);\n lblTitelDetail.setVisible(true);\n btnFoto.setVisible(true);\n btnAnnuleer.setVisible(true);\n btnVerwijderen.setVisible(true);\n btnToevoegenAnnuleren.setVisible(false);\n btnWijzigen.setVisible(true);\n btnLeegmaken.setVisible(false);\n btnVoegProductToe.setVisible(false);\n lblOnbeschikbaar.setVisible(true);\n txtOnbeschikbaar.setVisible(true);\n\n // stage.close();\n } else {\n // Niet OK\n\n dc.setCancelled(true);\n\n // dc.setNieuwHuidigProduct(oudProduct);\n throw new IllegalArgumentException(\"Gelieve uw wijzigingen te bevestigen of te annuleren\");\n\n }\n\n stage.close();\n\n }\n }\n\n //}\n if (!dc.getCancelled() || dc.getHuidigProduct() == null) {\n dc.setNieuwHuidigProduct(product);\n\n lblError.setText(\"\");\n maakLabelsTerugNormaal();\n\n // Product product = (Product) arg;\n txtAantal.setText(Integer.toString(product.getAantal()));\n txtArtikelnummer.setText(Integer.toString(product.getArtikelnummer()));\n txtFirma.setText(product.getFirma().getNaam());\n txtEmailFirma.setText(product.getFirma().getEmailContactPersoon());\n txtOnbeschikbaar.setText(Integer.toString(product.getAantalOnbeschikbaar()));\n //String format = String.format(\"%.2f\", product.getPrijs());\n txtPrijs.setText(String.format(\"%.2f\", product.getPrijs()).replace(\",\", \".\"));\n txtNaam.setText(product.getNaam());\n txtOmschrijving.setText(product.getOmschrijving());\n txtPlaats.setText(product.getPlaats());\n listLeergebieden.setItems(dc.getVoorlopigeLeergebieden());\n listDoelgroepen.setItems(dc.getVoorlopigeDoelgroepen());\n //alles terug enablen als er iets geselcteerd wordt\n btnVerwijderen.setDisable(false);\n btnAnnuleer.setDisable(false);\n btnWijzigen.setDisable(false);\n btnLeegmaken.setVisible(false);\n\n if (product.getFoto() != null) {\n try {\n BufferedImage img = ImageIO.read(product.getFoto());\n Image image = SwingFXUtils.toFXImage(img, null);\n imgViewFoto.setImage(image);\n } catch (IOException ex) {\n Logger.getLogger(ProductDetailController.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n imgViewFoto.setImage(null);\n }\n btnSelecteerDoelgroep.setDisable(false);\n listDoelgroepen.setDisable(false);\n\n /*} else {\n ongewijzigdProductBevestiging();\n }*/\n }\n }\n dc.setCancelled(false);\n this.wijziging = false;\n } catch (IllegalArgumentException e) {\n lblError.setText(e.getMessage());\n }\n }\n }\n }", "public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n\n QueryRow row = (QueryRow) adapterView.getItemAtPosition(position);\n Document document = row.getDocument();\n Map<String, Object> newProperties = new HashMap<String, Object>(document.getProperties());\n\n boolean checked = ((Boolean) newProperties.get(\"check\")).booleanValue();\n newProperties.put(\"check\", !checked);\n\n try {\n document.putProperties(newProperties);\n grocerySyncArrayAdapter.notifyDataSetChanged();\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error updating database, see logs for details\", Toast.LENGTH_LONG).show();\n Log.e(TAG, \"Error updating database\", e);\n }\n\n }", "@DataProvider(name = \"updateDirtyFieldsDataProvider\")\n public static Object[][] updateDirtyFieldsDataProvider() throws Exception {\n return new Object[][]\n {\n {true},\n {false},\n };\n }", "@Override\n\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\tboolean isChecked) {\n\t\t\tif (isChecked) {\n\t\t\t\taddinfobt.setVisibility(View.VISIBLE);\n\t\t\t\tnameinfoinput.setVisibility(View.VISIBLE);\n\t\t\t\tinfolist.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\taddinfobt.setVisibility(View.GONE);\n\t\t\t\tnameinfoinput.setVisibility(View.GONE);\n\t\t\t\tinfolist.setVisibility(View.GONE);\n\t\t\t}\n\t\t}", "@Override\n public void onCheckedChanged(CompoundButton button,\n boolean isChecked) {\n if (isChecked) {\n show_hide_password.setText(R.string.hide_pwd);// change\n // checkbox\n // text\n password.setInputType(InputType.TYPE_CLASS_TEXT);\n password.setTransformationMethod(HideReturnsTransformationMethod\n .getInstance());// show password\n } else {\n show_hide_password.setText(R.string.show_pwd);// change\n // checkbox\n // text\n password.setInputType(InputType.TYPE_CLASS_TEXT\n | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n password.setTransformationMethod(PasswordTransformationMethod\n .getInstance());// hide password\n }\n }", "public abstract void setVisible(boolean visible);", "public void setField(boolean value, int x, int y) {\n if (fields[x][y] != value) {\n fields[x][y] = value;\n setChanged();\n notifyObservers();\n }\n }", "private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }", "@FXML\n public void checkMail() throws IOException {\n if (SameAddressRadioButton.isSelected()) {\n Name9Field.setEditable(false);\n Name9Field.setDisable(true);\n Name9Field.setText(\"\");\n State9ComboBox.setDisable(true);\n State9ComboBox.setPromptText(\"State\");\n Address9Field.setEditable(false);\n Address9Field.setText(\"\");\n Address9Field.setDisable(true);\n City9Field.setEditable(false);\n City9Field.setText(\"\");\n City9Field.setDisable(true);\n Zip9Field.setEditable(false);\n Zip9Field.setText(\"\");\n Zip9Field.setDisable(true);\n } else {\n Name9Field.setEditable(true);\n Name9Field.setDisable(false);\n State9ComboBox.setDisable(false);\n State9ComboBox.setPromptText(\"State\");\n Address9Field.setEditable(true);\n Address9Field.setDisable(false);\n City9Field.setEditable(true);\n City9Field.setDisable(false);\n Zip9Field.setEditable(true);\n Zip9Field.setDisable(false);\n }\n }", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCheckBox1 = new javax.swing.JCheckBox();\n jPanel3 = new javax.swing.JPanel();\n panel1 = new java.awt.Panel();\n jLabel1 = new javax.swing.JLabel();\n label2 = new java.awt.Label();\n textField1 = new java.awt.TextField();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n bilangan1 = new javax.swing.JTextField();\n bilangan2 = new javax.swing.JTextField();\n hitung = new javax.swing.JButton();\n reset = new javax.swing.JButton();\n keluar = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n hasil = new javax.swing.JTextField();\n\n jCheckBox1.setText(\"jCheckBox1\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(102, 255, 102));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n panel1.setBackground(new java.awt.Color(153, 255, 153));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"Penjumlahan Bilangan\");\n\n label2.setText(\"label2\");\n\n textField1.setText(\"textField1\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 153));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"BILANGAN 1 :\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"BILANGAN 2 :\");\n\n bilangan1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bilangan1ActionPerformed(evt);\n }\n });\n\n bilangan2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bilangan2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bilangan1)\n .addComponent(bilangan2, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(bilangan1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(bilangan2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(13, Short.MAX_VALUE))\n );\n\n hitung.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n hitung.setText(\"HITUNG\");\n hitung.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hitungActionPerformed(evt);\n }\n });\n\n reset.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n reset.setText(\"RESET\");\n reset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resetActionPerformed(evt);\n }\n });\n\n keluar.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n keluar.setText(\"KELUAR\");\n keluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n keluarActionPerformed(evt);\n }\n });\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 51));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel4.setText(\"HASIL :\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addGap(66, 66, 66)\n .addComponent(hasil)\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(21, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(hasil, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);\n panel1.setLayout(panel1Layout);\n panel1Layout.setHorizontalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panel1Layout.createSequentialGroup()\n .addComponent(hitung)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(reset)\n .addGap(37, 37, 37)\n .addComponent(keluar))\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(88, 88, 88)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 264, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 156, Short.MAX_VALUE))\n );\n panel1Layout.setVerticalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(reset)\n .addComponent(keluar)\n .addComponent(hitung))\n .addGap(41, 41, 41))\n );\n\n getContentPane().add(panel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 400, 300));\n\n pack();\n }", "boolean updateVisibility() {\n boolean honorsVisibility;\n if (this.honorsVisibility == null) {\n honorsVisibility = GroupLayout.this.getHonorsVisibility();\n } else {\n honorsVisibility = this.honorsVisibility;\n }\n boolean newVisible = (honorsVisibility) ?\n component.isVisible() : true;\n if (visible != newVisible) {\n visible = newVisible;\n return true;\n }\n return false;\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 jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n apellido = new javax.swing.JTextField();\n nombre = new javax.swing.JTextField();\n carrera = new javax.swing.JTextField();\n carnet = new javax.swing.JTextField();\n contra = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n contra1 = new javax.swing.JTextField();\n change = new javax.swing.JCheckBox();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 1, 36)); // NOI18N\n jLabel1.setText(\"Edita tus Datos\");\n\n jLabel2.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel2.setText(\"Nombre:\");\n\n jLabel3.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel3.setText(\"Apellido:\");\n\n jLabel4.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel4.setText(\"Carrera:\");\n\n jLabel5.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n jLabel5.setText(\"Carnet:\");\n\n jLabel6.setText(\"Contraseña Anterior:\");\n\n carnet.setEditable(false);\n\n contra.setEditable(false);\n\n jButton1.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // 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\n jLabel8.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n jLabel8.setText(\"Cambiar Contraseña:\");\n\n jLabel9.setText(\"Contraseña Nueva:\");\n\n contra1.setEditable(false);\n\n change.setText(\" Cambiar\");\n change.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n changeActionPerformed(evt);\n }\n });\n\n jButton3.setForeground(new java.awt.Color(255, 51, 51));\n jButton3.setText(\"Eliminar Cuenta\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(18, 18, 18)\n .addComponent(change)))\n .addGap(0, 70, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(carnet, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(carrera, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)\n .addComponent(nombre, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)\n .addComponent(apellido, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(108, 108, 108)\n .addComponent(jButton1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel9))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(contra1)\n .addComponent(contra))))\n .addGap(38, 38, 38))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton3)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(apellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(jLabel4))\n .addComponent(carrera, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(carnet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(change))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(contra, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(contra1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3)\n .addContainerGap(13, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n\t\t\tprotected void updateEnabled() {\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jCheckBox6 = new javax.swing.JCheckBox();\n jPanel1 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n plithosEmField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n plithosApField = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n idLabel = new javax.swing.JLabel();\n idField = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n isxysEmField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n isxysApField = new javax.swing.JTextField();\n\n jCheckBox6.setText(\"jCheckBox6\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel3.setText(\" Πλήθος Εμπ:\");\n\n plithosEmField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n plithosEmFieldActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Πλήθος Απ:\");\n\n jButton1.setText(\"Αποθήκευση\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Έξοδος\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n idLabel.setText(\"ID:\");\n\n idField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n idFieldActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\" Ισχύς Εμπ:\");\n\n jLabel6.setText(\" Ισχύς Απ:\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(79, 79, 79))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3)\n .addComponent(idLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(idField, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(plithosEmField, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(plithosApField, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(30, 30, 30)\n .addComponent(isxysApField, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(30, 30, 30)\n .addComponent(isxysEmField, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(48, 48, 48)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(idField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(idLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(plithosEmField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(plithosApField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isxysEmField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isxysApField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(22, 22, 22)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(28, Short.MAX_VALUE))\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 .addComponent(jPanel1, 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 .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}", "@Override\r\n\t\tpublic void update(ViewerCell cell) {\n\t\t\tUser user=(User) cell.getElement();\r\n\t\t\tif(cell.getColumnIndex()==0){\r\n\t\t\t\tcell.setText(user.getId()+\"\");\r\n\t\t\t}else if(cell.getColumnIndex()==1){\r\n\t\t\t\tcell.setText(user.getName());\r\n\t\t\t}\r\n\t\t\tsuper.update(cell);\r\n\t\t}", "public abstract void setCheck(Boolean check);", "public void ckbxChanged(CheckBox box,JFXTextField field){\n if(box.isSelected()){\n //unblur and set editable\n unblur(field);\n field.setEditable(true);\n }else{\n //blur and make uneditable\n blur(field);\n field.setEditable(false);\n }\n }" ]
[ "0.63518643", "0.6034186", "0.5993262", "0.59478223", "0.5887609", "0.5874932", "0.5819789", "0.5801471", "0.5790028", "0.57755125", "0.5770907", "0.57615274", "0.5694093", "0.5611937", "0.5577037", "0.5549184", "0.55489296", "0.55435073", "0.5512362", "0.5496154", "0.54834497", "0.5482822", "0.54678917", "0.5406174", "0.53825355", "0.5375068", "0.5352087", "0.5349984", "0.5347648", "0.5345827", "0.5311724", "0.530988", "0.5309193", "0.5304034", "0.5303951", "0.52966726", "0.52929103", "0.5278083", "0.5274784", "0.52563846", "0.5253559", "0.52432305", "0.524144", "0.52376467", "0.523655", "0.5234321", "0.5212475", "0.52069604", "0.5204427", "0.5196597", "0.5194061", "0.5188148", "0.5184548", "0.5173366", "0.5173113", "0.5172508", "0.5162823", "0.5157522", "0.5149085", "0.5146868", "0.5142216", "0.51397157", "0.5139489", "0.51280916", "0.5127979", "0.51265377", "0.5119434", "0.5109282", "0.51065755", "0.51059693", "0.51056004", "0.5100478", "0.509703", "0.5074855", "0.50673425", "0.5063616", "0.50616324", "0.5057128", "0.5053538", "0.5052876", "0.50522834", "0.5051895", "0.50387627", "0.5031706", "0.50201863", "0.50195026", "0.5015685", "0.5012932", "0.50122", "0.5009893", "0.5001079", "0.5000243", "0.4995174", "0.4991684", "0.49906084", "0.4988872", "0.4983866", "0.4975361", "0.4975035", "0.4973417", "0.49714017" ]
0.0
-1
Browse expenses and credits grid layout to find selected types.
public String buildInClauseFromSelectedTypes() { String inClause = ""; boolean isFirst = true; for (int i = 0; i < mExpenseTypesSelected.length; ++i) { if (mExpenseTypesSelected[i]) { inClause += (isFirst ? "" : ",") + i; isFirst = false; } } for (int i = 0; i < mCreditTypesSelected.length; ++i) { if (mCreditTypesSelected[i]) { inClause += (isFirst ? "" : ",") + (-i - 1); isFirst = false; } } return "(" + inClause + ")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showTypeSelectionDialog() {\n // Initialize an alert dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"\");\n // Set popup content view\n LayoutInflater inflater = getLayoutInflater();\n View alertView = inflater.inflate(R.layout.check_account_type, null);\n final LinearLayout expenseTypesGrid = (LinearLayout) alertView.findViewById(R.id.expenses_grid);\n final LinearLayout creditTypesGrid = (LinearLayout) alertView.findViewById(R.id.credits_grid);\n String[] expenseTypes = getResources().getStringArray(R.array.expense_types);\n String[] creditTypes = getResources().getStringArray(R.array.credit_types);\n // Set up the layout to use\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n // Populate expenses grid\n for (int i = 0; i < expenseTypes.length; ++i) {\n // Create the new checkbox\n CheckBox checkBox = new CheckBox(this);\n checkBox.setText(expenseTypes[i]);\n checkBox.setChecked(mExpenseTypesSelected[i]);\n checkBox.setLayoutParams(layoutParams);\n // Add the view\n expenseTypesGrid.addView(checkBox);\n }\n // Populate credits grid\n for (int i = 0; i < creditTypes.length; ++i) {\n // Create the new checkbox\n CheckBox checkBox = new CheckBox(this);\n checkBox.setText(creditTypes[i]);\n checkBox.setChecked(mCreditTypesSelected[i]);\n checkBox.setLayoutParams(layoutParams);\n // Add the view\n creditTypesGrid.addView(checkBox);\n }\n // Add listeners to buttons present in the view\n final Button selectAllButton = (Button) alertView.findViewById(R.id.select_all);\n Button selectNothingButton = (Button) alertView.findViewById(R.id.select_nothing);\n Button selectExpensesButton = (Button) alertView.findViewById(R.id.select_expenses);\n Button selectCreditsButton = (Button) alertView.findViewById(R.id.select_credits);\n selectAllButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, true);\n setCheckBoxesState(creditTypesGrid, true);\n }\n });\n selectNothingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, false);\n setCheckBoxesState(creditTypesGrid, false);\n }\n });\n selectExpensesButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, true);\n setCheckBoxesState(creditTypesGrid, false);\n }\n });\n selectCreditsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n setCheckBoxesState(expenseTypesGrid, false);\n setCheckBoxesState(creditTypesGrid, true);\n }\n });\n builder.setView(alertView);\n // Set up the buttons\n Resources res = getResources();\n builder.setNegativeButton(res.getString(R.string.cancel),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.setPositiveButton(res.getString(R.string.apply),\n new DialogInterface.OnClickListener(){\n @Override\n public void onClick(DialogInterface dialog, int which) {\n updateSelectedTypes(expenseTypesGrid, creditTypesGrid);\n for (int i = 0; i < onTypesUpdatedListeners.size(); ++i)\n onTypesUpdatedListeners.get(i).run();\n dialog.dismiss();\n }\n });\n builder.setNeutralButton(res.getString(R.string.reset),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n selectAllButton.performClick();\n updateSelectedTypes(expenseTypesGrid, creditTypesGrid);\n for (int i = 0; i < onTypesUpdatedListeners.size(); ++i)\n onTypesUpdatedListeners.get(i).run();\n dialog.dismiss();\n }\n });\n // Show alert dialog\n builder.create().show();\n }", "private void updateSelectedTypes(LinearLayout expenseTypes, LinearLayout creditTypes) {\n for (int i = 0; i < expenseTypes.getChildCount(); ++i)\n mExpenseTypesSelected[i] = ((CheckBox) expenseTypes.getChildAt(i)).isChecked();\n for (int i = 0; i < creditTypes.getChildCount(); ++i)\n mCreditTypesSelected[i] = ((CheckBox) creditTypes.getChildAt(i)).isChecked();\n }", "private void fillPreview(List<WeatherType> weatherTypes) throws ExecutionException, InterruptedException {\n List<Gender> genders = extractGenders();\n Transport transport = extractTransport();\n thingSelectListener = new ThingSelectListener(this, transport);\n LinearLayout parent = findViewById(R.id.layout_preview);\n addGroup(parent, getResources().getString(R.string.need), \"need\", genders, weatherTypes);\n\n for (Category entry : extractTargets()) {\n addGroup(parent, entry.getCategoryName(), entry.getCategoryNameEn(), genders, weatherTypes);\n }\n }", "private void createContents() {\r\n\t\tshlFilter = new Shell(getParent(), getStyle());\r\n\t\tshlFilter.setSize(450, 246);\r\n\t\tshlFilter.setText(\"Filter\");\r\n\t\t\r\n\t\tTabFolder tabFolder = new TabFolder(shlFilter, SWT.NONE);\r\n\t\ttabFolder.setBounds(10, 10, 424, 158);\r\n\t\t\r\n\t\tTabItem tbtmByDate = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttbtmByDate.setText(\"by Date\");\r\n\t\t\r\n\t\tGroup group = new Group(tabFolder, SWT.NONE);\r\n\t\ttbtmByDate.setControl(group);\r\n\t\t\r\n\t\tLabel dateLableDayOfMonth = new Label(group, SWT.NONE);\r\n\t\tdateLableDayOfMonth.setBounds(89, 28, 82, 15);\r\n\t\tdateLableDayOfMonth.setText(\"Day of Month\");\r\n\t\t\r\n\t\tdayOfMonthSelector = new Spinner(group, SWT.BORDER);\r\n\t\tdayOfMonthSelector.setEnabled(false);\r\n\t\tdayOfMonthSelector.setMaximum(31);\r\n\t\tdayOfMonthSelector.setMinimum(1);\r\n\t\tdayOfMonthSelector.setBounds(299, 28, 47, 22);\r\n\t\t\r\n\t\tdateEnabler = new Button(group, SWT.CHECK);\r\n\t\tdateEnabler.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tboolean val = dateEnabler.getSelection();\r\n\t\t\t\tdayOfMonthSelector.setEnabled(val);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdateEnabler.setBounds(20, 30, 63, 16);\r\n\t\tdateEnabler.setText(\"Enable\");\r\n\t\t\r\n\t\tdateSearchMode = new CCombo(group, SWT.BORDER);\r\n\t\tdateSearchMode.setText(\"equals\");\r\n\t\tdateSearchMode.setItems(new String[] {\"equals\", \"contains\", \"not equals\", \"not contains\"});\r\n\t\tdateSearchMode.setEnabled(false);\r\n\t\tdateSearchMode.setBounds(177, 28, 116, 21);\r\n\t\t\r\n\t\tTabItem tbtmByName = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttbtmByName.setText(\"by Name\");\r\n\t\t\r\n\t\tGroup group_1 = new Group(tabFolder, SWT.NONE);\r\n\t\ttbtmByName.setControl(group_1);\r\n\t\t\r\n\t\tnameEnabler = new Button(group_1, SWT.CHECK);\r\n\t\tnameEnabler.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tboolean val = nameEnabler.getSelection();\r\n\t\t\t\tnameSearchMode.setEnabled(val);\r\n\t\t\t\tnameSearchText.setEnabled(val);\r\n\t\t\t}\r\n\t\t});\r\n\t\tnameEnabler.setBounds(10, 25, 68, 16);\r\n\t\tnameEnabler.setText(\"Enabled\");\r\n\t\t\r\n\t\tnameSearchMode = new CCombo(group_1, SWT.BORDER);\r\n\t\tnameSearchMode.setEnabled(false);\r\n\t\tnameSearchMode.setText(\"equals\");\r\n\t\tnameSearchMode.setItems(new String[] {\"equals\", \"contains\", \"not equals\", \"not contains\"});\r\n\t\tnameSearchMode.setBounds(84, 25, 116, 21);\r\n\t\t\r\n\t\tnameSearchText = new Text(group_1, SWT.BORDER);\r\n\t\tnameSearchText.setEnabled(false);\r\n\t\tnameSearchText.setBounds(206, 25, 200, 21);\r\n\t\t\r\n\t\tButton btnOk = new Button(shlFilter, SWT.NONE);\r\n\t\tbtnOk.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n//\t\t\t\tif (dateEnabler.getSelection()){\r\n//\t\t\t\t\tString selection = nameSearchMode.getText();\r\n//\t\t\t\t\tomega1001.task_spector_analyzer.gui.filter.impl.DateFilter.Criteria criterium = null;\r\n//\t\t\t\t\tif (selection.equals(\"equals\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n//\t\t\t\t\telse if (selection.equals(\"contains\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.CONTAINS;\r\n//\t\t\t\t\telse if (selection.equals(\"not equals\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.NOT_EQUALS;\r\n//\t\t\t\t\telse if (selection.equals(\"not contains\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.NOT_CONTAINS;\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n//\t\t\t\t\tresult.add(new DateFilter(dayOfMonthSelector.getSelection(),criterium));\r\n//\t\t\t\t}\r\n\t\t\t\tif (nameEnabler.getSelection()){\r\n\t\t\t\t\tString selection = nameSearchMode.getText();\r\n\t\t\t\t\tCriteria criterium = null;\r\n\t\t\t\t\tif (selection.equals(\"equals\"))\r\n\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n\t\t\t\t\telse if (selection.equals(\"contains\"))\r\n\t\t\t\t\t\tcriterium = Criteria.CONTAINS;\r\n\t\t\t\t\telse if (selection.equals(\"not equals\"))\r\n\t\t\t\t\t\tcriterium = Criteria.NOT_EQUALS;\r\n\t\t\t\t\telse if (selection.equals(\"not contains\"))\r\n\t\t\t\t\t\tcriterium = Criteria.NOT_CONTAINS;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n\t\t\t\t\tresult.add(new NameFilter(criterium, nameSearchText.getText()));\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\tshlFilter.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(10, 183, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\r\n\t}", "@Test()\n public void testGetExpensesByTypeAll() {\n\tString type = \"all types\";\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByType(type);\n\tassertEquals(4, expensesForDisplay.size(), 0);\n }", "void fillInnerParts() {\n // TODO: change the method to get each category panel\n adminPanel = new CategoryPanel(logic.getUiTaskList().getAdminList(), \"Admin\");\n categoryPanelPlaceholder.getChildren().add(adminPanel.getRoot());\n topicPanel = new CategoryPanel(logic.getUiTaskList().getTopicList(), \"Topic\");\n categoryPanelPlaceholder.getChildren().add(topicPanel.getRoot());\n ipPanel = new CategoryPanel(logic.getUiTaskList().getIpList(), \"Ip\");\n categoryPanelPlaceholder.getChildren().add(ipPanel.getRoot());\n tpPanel = new CategoryPanel(logic.getUiTaskList().getTpList(), \"Tp\");\n categoryPanelPlaceholder.getChildren().add(tpPanel.getRoot());\n refreshTitle();\n\n int currentWeekNumber = AppUtil.getCurrentWeekNumber().getWeekValueInt();\n Double num = (double) currentWeekNumber / (double) 13;\n progressBar.setProgress(num);\n\n weekDisplay = new WeekDisplay(currentWeekNumber);\n\n weekDisplayPlaceholder.getChildren().add(weekDisplay.getRoot());\n\n feedbackBox = new FeedbackBox();\n feedbackBoxPlaceholder.getChildren().add(feedbackBox.getRoot());\n CommandBox commandBox = new CommandBox(this::executeCommand); // bottom of Ace CS2103/T\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n }", "@Test()\n public void testGetExpensesByType() {\n\tString type = \"YEARLY\";\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByType(type);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "public void fillInnerParts() {\n //retrieve the filtered list of module or event.\n listPanel = new ListPanel(logic.getFilteredFocusedList(), this);\n listPanelPlaceholder.getChildren().add(listPanel.getRoot());\n\n resultDisplay = new ResultDisplay();\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getModuloFilePath());\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\n rightPanel = new RightPanel(logic.getFocusedDisplayable(), this);\n slideWindowListPlaceholder.getChildren().add(rightPanel.getRoot());\n\n commandBox = new CommandBox(this::executeCommand);\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\n if (logic.getFilteredFocusedList().size() == 0) {\n moduleButton.getStyleClass().add(\"active\");\n resultDisplay.setFeedbackToUser(\"Use the module command to get started!\");\n } else if (logic.getFilteredFocusedList().get(0) instanceof Event) {\n eventButton.getStyleClass().add(\"active\");\n } else {\n moduleButton.getStyleClass().add(\"active\");\n }\n\n }", "@Test(groups = \"suite1-1\")\n\tpublic void browseItems() {\n\n\t\tWebElement treasuryLink = driver.findElement(By\n\t\t\t\t.linkText(TREASURY_LINK_TEXT));\n\t\ttreasuryLink.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/INPUT[@name=\\\"search_query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"bag\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement numResults = driver.findElement(By\n\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[1]/H1\"));\n\n\t\tassertNotEquals(numResults.getText().trim().substring(0, 1), \"0\",\n\t\t\t\t\"Results expected for given key\");\n\n\t\tWebElement gallery = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[2]/UL/LI[1]/DIV[4]/A[1]/IMG\")));\n\t\t// Click should be done without errors\n\t\tgallery.click();\n\n\t}", "private void showResult(TYPE type){\r\n\t\tString brand = \"\";//brand\r\n\t\tString sub = \"\";//sub brand\r\n\t\tString area = \"\";//area\r\n\t\tString cus = \"\";//customer name\r\n\t\tString time = \"\";//time in second level\r\n\t\tKIND kind = null;//profit or shipment \r\n\t\t\r\n\t\tif(item1.getExpanded()){\r\n\t\t\tkind = KIND.SHIPMENT;\r\n\t\t\tbrand = combo_brand_shipment.getText();\r\n\t\t\tsub = combo_sub_shipment.getText();\r\n\t\t\tarea = combo_area_shipment.getText();\r\n\t\t\tcus = combo_cus_shipment.getText();\r\n\t\t}else if(item2.getExpanded()){\r\n\t\t\tkind = KIND.PROFIT;\r\n\t\t\tbrand = combo_brand_profit.getText();\r\n\t\t\tsub = combo_sub_profit.getText();\r\n\t\t\tarea = combo_area_profit.getText();\r\n\t\t\tcus = combo_cus_profit.getText();\r\n\t\t}else{//either item1 & item2 are not expanded\r\n\t\t\t//show a message?\r\n\t\t\tkind = KIND.NONE;\r\n\t\t}\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n\t\ttime = formatter.format(new Date());\r\n\t\tfinal Map<String, Object> args = new HashMap<String ,Object>();\r\n\t\targs.put(\"brand\", brand);\r\n\t\targs.put(\"sub_brand\", sub);\r\n\t\targs.put(\"area\", area);\r\n\t\targs.put(\"customer\", cus);\r\n\t\targs.put(\"time\", time);\r\n\t\targs.put(\"kind\", kind.toString());\r\n\t\targs.put(\"type\", type.toString());\r\n\t\t//call engine to get the data\t\r\n\t\t\r\n\t\tProgressMonitorDialog progressDialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());\r\n\t\tIRunnableWithProgress runnable = new IRunnableWithProgress() { \r\n\t\t public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { \r\n\t\t \t\r\n\t\t Display.getDefault().asyncExec(new Runnable() { \r\n\t\t public void run() { \r\n\t\t monitor.beginTask(\"正在进行更新,请勿关闭系统...\", 100); \r\n\t\t \r\n\t\t monitor.worked(25); \r\n\t monitor.subTask(\"收集数据\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tro.getMap().clear();\r\n\t\t\t\t\tro=statistic.startAnalyzing(args, monitor);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\t\t\tmbox.open();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tmonitor.worked(100); \r\n\t monitor.subTask(\"分析完成\");\r\n\t \r\n\t\t monitor.done();\r\n\t\t }\r\n\t\t \t });\r\n\t\t } \r\n\t\t}; \r\n\t\t \r\n\t\ttry { \r\n\t\t progressDialog.run(true,/*是否开辟另外一个线程*/ \r\n\t\t false,/*是否可执行取消操作的线程*/ \r\n\t\t runnable/*线程所执行的具体代码*/ \r\n\t\t ); \r\n\t\t} catch (InvocationTargetException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t} catch (InterruptedException e) { \r\n\t\t\tMessageBox mbox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t\t\tmbox.setMessage(\"分析数据失败,请重试\");\r\n\t\t\tmbox.open();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(ro.getMap().isEmpty())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tPagination page1 = (Pagination) ro.get(\"table1\");\r\n\t\tPagination page2 = (Pagination) ro.get(\"table2\");\r\n\t\tPagination page3 = (Pagination) ro.get(\"table3\");\r\n\t\tList<Object> res1 = new ArrayList<Object>();\r\n\t\tList<Object> res2 = new ArrayList<Object>();\r\n\t\tList<Object> res3 = new ArrayList<Object>();\r\n\t\tif(page1 != null)\r\n\t\t\tres1 = (List<Object>)page1.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres2 = (List<Object>)page2.getItems();\r\n\t\tif(page2 != null)\r\n\t\t\tres3 = (List<Object>)page3.getItems();\r\n\t\t\r\n\t\tif(res1.size()==0 && res2.size()==0 && res3.size()==0){\r\n\t\t\tMessageBox messageBox = new MessageBox(MainUI.getMainUI_Instance(Display.getDefault()));\r\n\t \tmessageBox.setMessage(\"没有满足查询条件的数据可供分析,请查询其他条件\");\r\n\t \tmessageBox.open();\r\n\t \treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//this if/else can be optimized, since it looks better in this way, leave it\t\t\r\n\t\t//case 1: brand ratio, area ratio, trend\r\n\t\tif(brand.equals(AnalyzerConstants.ALL_BRAND) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\t\t\t\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \t\t\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\r\n\t\t}\r\n\t\t//case 2: brand ratio, customer ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 3: brand ratio, trend\r\n\t\telse if(brand.equals(AnalyzerConstants.ALL_BRAND) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(true);//all brands\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 4: sub brand ratio, area ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 5: sub brand ratio, customer ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n \r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//area\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 6: sub brand ratio, trend\r\n\t\telse if(sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) && !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//sub brand ratio\r\n\t\t\tRatioBlock rb = new RatioBlock();\r\n\t\t\trb.setBrand_sub(false);//all brands\r\n\t\t\trb.setBrand(brand);\r\n\t\t\trb.setKind(kind);\r\n\t\t\trb.setBrand_area(true);//brand\r\n\t\t\tRatioResultList rrl = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl.initilByQuery(res1, 1);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc = new RatioComposite(composite_content, 0, rb, rrl); \r\n \t\talys.add(bc);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 7: area ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && area.equals(AnalyzerConstants.ALL_AREA)){\r\n \t\t//area ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(true);//all areas\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 8: customer ratio, trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n \t\t//customer ratio\r\n \t\tRatioBlock rb2 = new RatioBlock();\r\n \t\trb2.setArea_customer(false);//all areas\r\n \t\trb2.setArea(area);\r\n \t\trb2.setKind(kind);\r\n \t\trb2.setBrand_area(false);//brand\r\n\t\t\tRatioResultList rrl2 = new RatioResultList();\r\n\t\t\t//we should notice that, all the table can not be modified!\r\n\t\t\trrl2.initilByQuery(res2, 2);//the input arg is the query result from Engine\t\t\t\r\n\t\t\tRatioComposite bc2 = new RatioComposite(composite_content, 0, rb2, rrl2); \r\n \t\talys.add(bc2);\r\n \t\tcomposite_content.setLayout(layout_content);\r\n composite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t//case 9: trend\r\n\t\telse if(!brand.equals(AnalyzerConstants.ALL_BRAND) && !sub.equals(AnalyzerConstants.ALL_SUB) && !area.equals(AnalyzerConstants.ALL_AREA) & !cus.equals(AnalyzerConstants.ALL_CUSTOMER)){\r\n\t\t\t//now, just trend, do nothing here\r\n\t\t}\r\n\t\tif(!kind.equals(KIND.NONE)){\r\n\t\t\t//trend, always has the trend graph \t\r\n\t\t\tTrendDataSet ts = new TrendDataSet();\r\n\t\t\tts.setKind(kind);\t\r\n\t\t\tts.setType(type);\r\n\t\t\tTrendComposite tc = new TrendComposite(composite_content, 0, ts, res3); \r\n\t\t\talys.add(tc);\r\n\t\t\tcomposite_content.setLayout(layout_content);\r\n\t\t\tcomposite_scroll.setMinSize(composite_content.computeSize(SWT.DEFAULT, SWT.DEFAULT));\r\n\t\t}\r\n\t\t\t\t\r\n\t}", "void fillInnerParts() {\n browserPanel = new BrowserPanel();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"129\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"browserPanel\", \"VariableName: \",\"BrowserPanel\");\n browserPlaceholder.getChildren().add(browserPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"130\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n personListPanel = new PersonListPanel(logic.getFilteredPersonList());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"132\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n personListPanelPlaceholder.getChildren().add(personListPanel.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"133\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n ResultDisplay resultDisplay = new ResultDisplay();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"135\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"ResultDisplay\", \"VariableName: \",\"resultDisplay\", \"VariableName: \",\"ResultDisplay\");\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"136\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(prefs.getAddressBookFilePath());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"138\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"139\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n\n CommandBox commandBox = new CommandBox(logic);\n\t\tTemplateClass.instrum(\"LineNumber: \",\"141\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"commandBox\", \"VariableName: \",\"CommandBox\", \"VariableName: \",\"logic\");\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"142\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"fillInnerParts\", \"Class: \",\"MainWindow\");\n }", "private void showNetworksDialog() {\n\n final MainPanel panel = mFileSystemController.getActivePanel();\n \n if (panel == null || panel.getActivity() == null) {\n // very weired situation; try to avoid crash.\n return;\n }\n\n final Dialog dialog = new Dialog(panel.getActivity(), R.style.Action_Dialog);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n View dialogView = View.inflate(App.sInstance.getApplicationContext(), R.layout.network_type_chooser, null);\n\n final ListView networks = (ListView) dialogView.findViewById(R.id.network_types);\n final NetworkChooserAdapter adapter = new NetworkChooserAdapter();\n networks.setAdapter(adapter);\n\n dialogView.findViewById(R.id.cancel).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n networks.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n NetworkEnum network = (NetworkEnum) view.getTag();\n\n switch (network) {\n case FTP:\n openFTP(panel);\n break;\n case SFTP:\n openSFTP(panel);\n break;\n case SMB:\n openSmb(panel);\n break;\n case Dropbox:\n openDropbox(panel);\n break;\n case SkyDrive:\n openSkyDrive(panel);\n break;\n case YandexDisk:\n openYandexDisk(panel);\n break;\n case GoogleDrive:\n openGoogleDrive(panel);\n break;\n case MediaFire:\n openMediaFire(panel);\n break;\n case WebDav:\n openWebDav(panel);\n break;\n }\n\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n }\n });\n\n dialog.setContentView(dialogView);\n dialog.show();\n\n adjustDialogSize(dialog, panel);\n }", "public interface InventoryPageOR {\n\n String inventoryPage = \"xpath= //div[@class='NavMenuTitle']//span[text()='Inventory']\";\n String aD_type = \"xpath= //select[contains(@id,'AdType_DropDownList1')]\";\n String mediaGroupField = \"xpath= //select[contains(@id,'MediumGroup_DropDownList1')]\";\n String Mediabox = \"xpath= //select[contains(@id,'Media_ListBox1')]\";\n String selection = \"xpath= //select[contains(@id, 'Section_ListBox1')]\";\n String inventory_placement = \"xpath= //select[contains(@id, 'Inventory_ListBox1')]\";\n String period = \"xpath= //select[contains(@id,'BkingPeriod_ddlPeriod')]\";\n String pages = \"xpath= //input[contains(@id,'blInventoryView_1')]\";\n String matrix = \"xpath= //input[@id='ctl00_cphMain_srch03_rblInventoryView_0']\";\n String list = \"css= #ctl00_cphMain_srch02_rblInventoryView_2\";\n String Adsize = \"xpath= //select[contains(@id,'AdSize_DropDownList1')]\";\n String get_inventory = \"xpath= //input[contains(@id,'btnGetInventory')]\";\n String mediatype = \"xpath= //select[@id='ctl00_cphMain_srch01_lbMedia_ListBox1']//option[@value='GAZE']\";\n String newSearch = \"css= input[value='New Search']\";\n String screenlock = \"css= .inv_wait\";\n String selectplusiconforbydate = \"xpath= //td[@class='%s']/../..//input[@class='InvResultCol Select linkButton new']\";\n String housingGarden = \"css= tr [title = 'www.houseandgarden.com']\";\n String startAndEnddate = \"xpath= //tr[@title = 'www.houseandgarden.com']/..//tr[@title='www.houseandgarden.com - Run of Site']/td[%d]\";\n String startAndEnddateofbridge = \"xpath= //tr[@title = 'www.bridesmagazine.com']/..//tr[@title='www.bridesmagazine.com - Run of Site']/td[%d]\";\n String verifyIteminCart = \"css= #tabs-li-cart a#acart\";\n String addtoCart = \"xpath= //li//a[contains(text(), 'Add to cart')]\";\n String torange = \"css= #ctl00_cphMain_srch02_ucBkingPeriod_dteRangeTo_iwdcDate_input\";\n String customer = \"css= #ctl00_cphMain_ucCart_btnCustomer\";\n String companyName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerCompany_btnModal\";\n String contactName = \"css= #ctl00_cphMain_ucCustomer_ctlModalBuyerContact_btnModal\";\n String companyNameField = \"css= #Search_FieldSelect0_txtValue1\";\n String searchButton = \"css= #Search_GoButton\";\n String selectCompany = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenSite\";\n String selectContact = \"css= .ig_5aac757b_rcb1112.SelectionSearch.btnOpenContact\";\n\n\n}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlinePink.setVisibility(View.VISIBLE);\n\t\t\t\tlineBlue.setVisibility(View.INVISIBLE);\n\n\t\t\t\tConstants.exType = \"exhibition\";\n\t\t\t\t\n\t\t\t\tif(Constants.flag.equalsIgnoreCase(\"venueWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetVenueWiseExb();\n\t\t\t\t}\n\t\t\t\telse if(Constants.flag.equalsIgnoreCase(\"cityWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetCityWisePaging();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgetCategorizedData();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }", "private void reportType() {\n\t\tVerticalLayout vReportLayout = new VerticalLayout();\n\t\tvReportLayout.addStyleName(Reindeer.PANEL_LIGHT);\n\t\tvReportLayout.setWidth(\"150px\");\n\t\tVerticalLayout bSpace = new VerticalLayout();\n\t\tbSpace.setHeight(\"25px\");\n\t\troot.addComponent(bSpace);\n\t\t\n\t\tButton todayButton = new Button(\"TODAY\");\n\t\ttodayButton.setWidth(\"100%\");\n\t\ttodayButton.addClickListener(new Button.ClickListener() {\n\t\t /**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t //Notification.show(event.getButton().getCaption());\n\t\t \tif (event.getButton().getCaption() != null) {\n\t\t\t\t\tupdateReportLayout(event.getButton().getCaption());\n\t\t\t\t}\n\t\t \n\t\t }\n\t\t \n\t\t});\n\t\tvReportLayout.addComponent(todayButton);\n\t\t\n\t\tButton last30DaysButton = new Button(\"LAST 30 DAYS\");\n\t\tlast30DaysButton.setWidth(\"100%\");\n\t\tlast30DaysButton.addClickListener(new Button.ClickListener() {\n\t\t /**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t \tif (event.getButton().getCaption() != null) {\n\t\t\t\t\tupdateReportLayout(event.getButton().getCaption());\n\t\t\t\t}\n\t\t \n\t\t }\n\t\t \n\t\t});\n\t\tvReportLayout.addComponent(last30DaysButton);\n\t\t\n\t\ttReportPanel.setContent(vReportLayout);\n\t\ttReportPanel.addStyleName(Reindeer.PANEL_LIGHT);\n\t\thorLayout.addComponent(tReportPanel);\n\t\troot.addComponent(horLayout);\n\t}", "private void butEditCategories_Click(Object sender, EventArgs e) throws Exception {\n ArrayList selected = new ArrayList();\n for (int i = 0;i < listCategories.SelectedIndices.Count;i++)\n {\n selected.Add(CatList[listCategories.SelectedIndices[i]].DefNum);\n }\n FormDefinitions FormD = new FormDefinitions(DefCat.ProcCodeCats);\n FormD.ShowDialog();\n DataValid.setInvalid(InvalidType.Defs);\n changed = true;\n fillCats();\n for (int i = 0;i < CatList.Length;i++)\n {\n if (selected.Contains(CatList[i].DefNum))\n {\n listCategories.SetSelected(i, true);\n }\n \n }\n //we need to move security log to within the definition window for more complete tracking\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Definitions\");\n fillGrid();\n }", "public void fillCategoryGrid(){\n grid = (GridView) findViewById(R.id.category_grid);\n categoriesAdapter = new GridArrayAdapter(this, R.layout.categories_grid_button, categories);\n grid.setAdapter(categoriesAdapter);\n }", "private void setAllFields(){\n Expense retrievedExpense = db.getExpenseWithId(bundle.getInt(EXPENSE_TABLE_COLUMN_ID));\n label.setText(retrievedExpense.getLabel());\n\n // Get adapter from category array\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.expense_category, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n // Get position where it matches the category name retrieved with the category array\n int spinnerPosition = adapter.getPosition(retrievedExpense.getCategory());\n\n // Set category spinner\n category.setSelection(spinnerPosition);\n\n cost.setText(String.format(\"%.2f \",retrievedExpense.getCost()));\n paid.setChecked(retrievedExpense.isWasItPaid());\n dateDue.setText(retrievedExpense.getDueDate());\n\n }", "public static void loadDeskPane()\n {\n \n final String sumIncomesQUERY = \"SELECT SUM(FinalPrice) FROM Sells\";\n incomesLabel.setText(String.valueOf(new DeskDatabase().sumMoney(sumIncomesQUERY)+\" €\"));\n \n // START storageInfosPane \n final String countProductsQUERY = \"SELECT COUNT(*) FROM Products\";\n productsLabel.setText(String.valueOf(new DeskDatabase().countRecords(countProductsQUERY)));\n final String sumSellingPriceQUERY = \"SELECT SUM(SellingPrice*Stock) FROM Products WHERE Stock > 0\";\n finalIncomesLabel.setText(String.valueOf(new DeskDatabase().sumMoney(sumSellingPriceQUERY))+\" €\");\n final String lowStockQUERY = \"SELECT COUNT(*) FROM Products WHERE Stock < 10\";\n lowStockLabel.setText(String.valueOf(new DeskDatabase().countRecords(lowStockQUERY)));\n // END storageInfosPane \n \n // START outcomesPane\n final String countPurchasesQUERY = \"SELECT COUNT(*) FROM Purchases\";\n purchasesLabel.setText(String.valueOf(new DeskDatabase().countRecords(countPurchasesQUERY)));\n final String sumOutcomesQUERY = \"SELECT SUM(PurchasePrice*Stock) FROM Products WHERE Stock > 0\";\n finalOutcomesLabel.setText(String.valueOf(new DeskDatabase().sumMoney(sumOutcomesQUERY))+\" €\");\n final String countSuppliersQUERY = \"SELECT COUNT(*) FROM Suppliers\";\n suppliersLabel.setText(String.valueOf(new DeskDatabase().countRecords(countSuppliersQUERY)));\n // END outcomesPane\n \n // START incomesPane\n final String countSalesQUERY = \"SELECT COUNT(*) FROM Sells\";\n salesLabel.setText(String.valueOf(new DeskDatabase().countRecords(countSalesQUERY)));\n final String sumProfitQUERY = \"SELECT SUM(SellingPrice*Stock)-SUM(PurchasePrice*Stock) FROM Products WHERE Stock >0\";\n profitLabel.setText(String.valueOf(new DeskDatabase().sumMoney(sumProfitQUERY))+\" €\");\n final String countClientsQUERY = \"SELECT COUNT(*) FROM Clients\";\n clientsLabel.setText(String.valueOf(new DeskDatabase().countRecords(countClientsQUERY)));\n // END incomesPane\n }", "public Viewemployeeexpenditure() {\n initComponents();\n view1();\n \n }", "private void findViews() {\n tvPercentFirstPlace = findViewById(R.id.tvPercentFirstPlace);\n tvPercentSecondPlace = findViewById(R.id.tvPercentSecondPlace);\n tvPercentThirdPlace = findViewById(R.id.tvPercentThirdPlace);\n tvMainPrizeWon = findViewById(R.id.tvMainPrizeWon);\n tvMainPrizeWonText = findViewById(R.id.tvMainPrizeWonText);\n tvPrizeWonFirstPlace = findViewById(R.id.tvPrizeWonFirstPlace);\n tvPrizeWonSecondPlace = findViewById(R.id.tvPrizeWonSecondPlace);\n tvPrizeWonThirdPlace = findViewById(R.id.tvPrizeWonThirdPlace);\n tvPlatformFee = findViewById(R.id.tvPlatformFee);\n tvPrizeSum = findViewById(R.id.tvPrizeSum);\n tvPrizeSumText = findViewById(R.id.tvPrizeSumText);\n tvMainPrizeWon.setText(String.valueOf(mainPrize));\n btnChange = findViewById(R.id.btnChange);\n btnNext = findViewById(R.id.btnNext);\n }", "private void inizialiteViews() {\n tvDirectionStore = findViewById(R.id.tvDirectionStore);\n tvNameOwner = findViewById(R.id.tvNameOwnerView);\n tvNameStore = findViewById(R.id.tvNameStoreView);\n tvPhonestore = findViewById(R.id.tvPhoneNumberOwner);\n editStore = findViewById(R.id.btnEditStore);\n imageViewStore = findViewById(R.id.imageStore);\n }", "@Test\r\n\tpublic static void PointOfViewVisualTest() throws Exception\r\n\t{\n\t\tCommonTestStepActions.GoToExpensePage(); // #2\r\n\t\tCommonTestStepActions.VerifyMonthPullDownFormat(); // #1\r\n\t\t\r\n\t\t// #3 Switch the month selector through various selections - Thirteen descending months are available for selection.\r\n\t\tCommonTestStepActions.VerifyMonthPullDownSelectionsAndContent();\r\n\t\t\r\n\t\t// #4\r\n\t\t// verify the countries and the vendors for each country are in alphabetical order.\r\n\t\tCommonTestStepActions.VerifyCountryAndVendorListSorted();\r\n\t\t\r\n\t\tDebugTimeout(9999, \"DONE\");\t\t\r\n\t\t\r\n\r\n\t\t// drilling down into controls.\r\n\t\t//WebElement web;\r\n\t\t// //web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*/..[@class='highcharts-axis-labels highcharts-xaxis-labels']\"));\r\n\t\t// //web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*\"));\r\n\t\t//web = driver.findElement(By.xpath(\"//div[@id='highcharts-2']/*/*/*/..\"));\r\n\t\t//web = driver.findElement(By.xpath(\"(//div[@id='highcharts-2']/*/*/*/..)[8]\"));\r\n\t\t//String [] strArray= driver.findElement(By.xpath(\"(//div[@id='highcharts-2']/*/*/*/..)[8]\")).getText().split(\"\\n\");\r\n\t\t//ShowArray(strArray); \r\n\t\t//strArray= driver.findElement(By.xpath(\".//*[@id='highcharts-0']/*/*[@class='highcharts-legend']\")).getText().split(\"\\n\");\r\n\t\t//ShowArray(strArray);\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "private Collection<View> selectViewsByType(Collection<View> views, String type) {\n\t\tArrayList<View> result = new ArrayList<View>();\n\t\tfor (View nextView : views) {\n\t\t\tif (type.equals(nextView.getType()) && isOwnView(nextView)) {\n\t\t\t\tresult.add(nextView);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void plannerDisplayComboBoxs(){\n Days dm = weekList.getSelectionModel().getSelectedItem();\n if (dm.isBreakfastSet()){\n //find Recipe set for breakfast in the Days in the comboBox and display it in the comboBox\n Recipe breakfast = findRecipeFromID(dm.getBreakfast().getId(), breakfastCombo);\n breakfastCombo.getSelectionModel().select(breakfast);\n }\n\n if (dm.isLunchSet()){\n //find Recipe set for lunch in the Days in the comboBox and display it in the comboBox\n Recipe lunch = findRecipeFromID(dm.getLunch().getId(), lunchCombo);\n lunchCombo.getSelectionModel().select(lunch);\n }\n\n if (dm.isDinnerSet()){\n //find Recipe set for dinner in the Days in the comboBox and display it in the comboBox\n Recipe dinner = findRecipeFromID(dm.getDinner().getId(), dinnerCombo);\n dinnerCombo.getSelectionModel().select(dinner);\n }\n }", "public void ProcessFields(int rowNum, String clientType, int iteratorCount, String sheetName, String signType, String paymentType) {\n\t\t\n\t\tString currentURL =\"\";\n\t\tcurrentURL = driver.getCurrentUrl();\n\t\t\n\t\tbeneficiariesPage = new BeneficiariesPage();\n\t\n\t\t\n\t\t\n\t\ttry{\n\t\t\tinputData = ProductUtil.GetInputData(sheetName, 129, 5);\n\t\t\t//agentWebHomePage = new AgentWebHomePage();\n\t\n\t\t\tint formFlag = 0;\n\t\t\tint checkboxFlag = 0;\n\t\t\tint buttonFlag = 0;\n\t\t\tint dropDownFlag = 0;\n\t\t\tint autoSuggFlag = 0;\n\t\t\tint datePickerFlag = 0;\n\t\t\tint googleAutoCompleteFlag = 0;\n\t\t\tint i = 0;\n\t\t\tint counter = 0;\n\t\t\tBy byFormL = null;\n\t\t\tBy byFormF = null;\n\t\t\tBy byGoogleAutoCompleteL = null;\n\t\t\tBy byGoogleAutoCompleteF = null;\n\t\t\tBy byButtonL = null;\n\t\t\tBy byButtonF = null;\n\t\t\tBy byNoButtonF = null;\n\t\t\tBy byAutoSuggL = null;\n\t\t\tBy byautoSuggF = null;\n\t\t\tBy byDropdownF = null;\n\t\t\tBy byDropdownL = null;\n\t\t\tBy byCheckboxL = null;\n\t\t\tBy byCheckboxF = null;\n\t\t\tBy byDatepickerL = null;\n\t\t\tBy byDatepickerF = null;\n\t\t\tString fieldFlag = null;\n\t\t\tboolean doneFlag = false;\n\t\t\tboolean agentFlag = false;\n\t\t\tboolean flowFlag = false;\n\t\t\t//String currentURL =\"\";\n\t\t\t\n\t\n\t\t\tbyFormL = By.cssSelector(\".form-group\");\n\t\t\tbyFormF = By.cssSelector(\".form-group .field .form-control\");\n\t\t\t\n\t\t\t\n\t\t\tbyGoogleAutoCompleteL = By.cssSelector(\".form-group\");\n\t\t\tbyGoogleAutoCompleteF = By.cssSelector(\".form-group .field .google-autocomplete-input-container\");\t\t\n\t\t\t\n\t\n\t\t\tbyButtonL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\"); // class\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// btn\n\t\t\tbyButtonF = By.cssSelector(\".single-select-btn-container .c-button-default\");\n\t\t\tbyNoButtonF = By.cssSelector(\"button[class='c-button-default circular single-select-btn btn btn-default']\");\n\t\n\t\t\tbyAutoSuggL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\"); // auto\n\t\t\tbyautoSuggF = By.xpath(\"//input[@autocomplete='off']\");\n\t\n\t\t\tbyDropdownL = By.cssSelector(\".c-subheader-text.fs18\"); // select\n\t\t\tbyDropdownF = By.cssSelector(\".Select-placeholder\");\n\t\t\t\n\t\t\tbyCheckboxL = By.cssSelector(\".custom-checkbox-container\");\n\t\t\tbyCheckboxF = By.cssSelector(\".custom-checkbox-container .custom-checkbox-checkmark\");\n\t\n\t\t\tbyDatepickerL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\");\n\t\t\tbyDatepickerF = By.cssSelector(\".react-datepicker-wrapper\");\n\t\n\t\t\tHashMap<String, Integer> ele = FindElements();\n\t\n\t\t\tfor (Entry eleType : ele.entrySet()) {\n\t\n\t\t\t\tString line = eleType.getKey() + \" \" + eleType.getValue();\n\t\t\t\tSystem.out.println(\"Fields: \" + line);\n\t\n\t\t\t\tfieldFlag = eleType.getKey().toString();\n\t\n\t\t\t\tswitch (fieldFlag) {\n\t\n\t\t\t\tcase \"googleAutoCompleteFlag\":\n\t\t\t\t\tbyGoogleAutoCompleteL = By.cssSelector(\".form-group\");\n\t\t\t\t\tbyGoogleAutoCompleteF = By.cssSelector(\".form-group .field .google-autocomplete-input-container\");\n\t\t\t\t\t//byFormF = By.cssSelector(\".form-group .field\");\n\t\t\t\t\tformFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"formFlag\":\n\t\t\t\t\tbyFormL = By.cssSelector(\".form-group\");\n\t\t\t\t\tbyFormF = By.cssSelector(\".form-group .field .form-control\");\n\t\t\t\t\t//byFormF = By.cssSelector(\".form-group .field\");\n\t\t\t\t\tformFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"buttonFlag\":\n\t\t\t\t\tbyButtonL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\"); // class\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// btn\n\t\t\t\t\tbyButtonF = By.cssSelector(\".single-select-btn-container .c-button-default\");\n\t\t\t\t\tbyNoButtonF = By\n\t\t\t\t\t\t\t.cssSelector(\"button[class='c-button-default circular single-select-btn btn btn-default']\");\n\t\t\t\t\tbuttonFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"autoSuggFlag\":\n\t\t\t\t\tbyAutoSuggL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\"); // auto\n\t\t\t\t\tbyautoSuggF = By.xpath(\"//input[@autocomplete='off']\");\n\t\t\t\t\tautoSuggFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dropDownFlag\":\n\t\t\t\t\tbyDropdownF = By.cssSelector(\".Select-placeholder\");\n\t\t\t\t\tbyDropdownL = By.cssSelector(\".c-subheader-text.fs18\"); // select\n\t\t\t\t\tdropDownFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"checkboxFlag\":\n\t\t\t\t\tbyCheckboxL = By.cssSelector(\".custom-checkbox-container\");\n\t\t\t\t\tbyCheckboxF = By.cssSelector(\".custom-checkbox-container .custom-checkbox-checkmark\");\n\t\t\t\t\tcheckboxFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"datePickerFlag\":\n\t\t\t\t\tbyDatepickerL = By.cssSelector(\".c-subheader-text.fs18.col-sm-12\");\n\t\t\t\t\tbyDatepickerF = By.cssSelector(\".react-datepicker-wrapper\");\n\t\t\t\t\tdatePickerFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\n\t\t\t\t}\n\t\n\t\t\t\tSystem.out.println(line);\n\t\n\t\t\t}\n\t\n\t\t\tString pageType = \"def\";\n\t\t\tboolean flag = false, breakFlag = true, errorFlag = false, beneficiaryFlag = true;\n\t\n\t\t\tdo {\n\t\n\t\t\t\t\n\t\t\t\tcurrentURL = driver.getCurrentUrl();\n\t\t\t\t//Testutil.updateResult(Testutil.resultSheet, \"URL\", rowNum, currentURL);\n\t\t\t\tif (i == iteratorCount) {\n\t\t\t\t\tSystem.out.println(\"Iterator Limit\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*formFlag = 0;\n\t\t\t\tcheckboxFlag = 0;\n\t\t\t\tbuttonFlag = 0;\n\t\t\t\tdropDownFlag = 0;\n\t\t\t\tautoSuggFlag = 0;\n\t\t\t\tdatePickerFlag = 0;*/\n\t\t\t\t\n\t\n\t\t\t\tif (autoSuggFlag > 0) {\n\t\t\t\t\tpageType = \"autoSugg\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\t// checkPage(CheckNextElement(byautoSuggF),\n\t\t\t\t\t// byautoSuggF,pageType);\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(autoSuggFlag, byAutoSuggL),\n\t\t\t\t\t\t\tCheckNextElement(autoSuggFlag, byautoSuggF), byAutoSuggL, byautoSuggF, pageType, sheetName);\n\t\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\n\t\t\t\tif (datePickerFlag > 0) {\n\t\t\t\t\tpageType = \"datepicker\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\t// checkPage(CheckNextElement(byDatepickerF),\n\t\t\t\t\t// byDatepickerF,pageType);\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(datePickerFlag, byDatepickerL),\n\t\t\t\t\t\t\tCheckNextElement(datePickerFlag, byDatepickerF), byDatepickerL, byDatepickerF, pageType, sheetName);\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\t\t\tif (checkboxFlag > 0) {\n\t\t\t\t\tpageType = \"checkbox\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(checkboxFlag, byCheckboxL),\n\t\t\t\t\t\t\tCheckNextElement(checkboxFlag, byCheckboxF), byCheckboxL, byCheckboxF, pageType, sheetName);\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\t\t\tif (formFlag > 0) {\n\t\t\t\t\tpageType = \"form\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(formFlag, byFormL), CheckNextElement(formFlag, byFormF), byFormL,\n\t\t\t\t\t\t\tbyFormF, pageType, sheetName);\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\t\t\tif (buttonFlag > 0) {\n\t\t\t\t\tpageType = \"button\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\t// checkPage(CheckNextElement(byButtonF), byButtonF, pageType);\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(buttonFlag, byButtonL), CheckNextElement(buttonFlag, byButtonF),\n\t\t\t\t\t\t\tbyButtonL, byButtonF, pageType, sheetName);\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\t\t\tif (dropDownFlag > 0) {\n\t\t\t\t\tpageType = \"dropdown\";\n\t\t\t\t\tSystem.out.println(\"This is a page filled with \" + pageType);\n\t\t\t\t\t\n\t\t\t\t\tbreakFlag = checkPage(CheckNextElement(dropDownFlag, byDropdownL),\n\t\t\t\t\t\t\tCheckNextElement(dropDownFlag, byDropdownF), byDropdownL, byDropdownF, pageType, sheetName);\n\t\t\t\t\tif (!breakFlag) {\n\t\t\t\t\t\tSystem.out.println(\"Break point\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\tboolean singlebutton = false;\n\t\n\t\t\t\tif (formFlag == 0 && checkboxFlag == 0 && buttonFlag == 0 && dropDownFlag == 0 && autoSuggFlag == 0\n\t\t\t\t\t\t&& datePickerFlag == 0) {\n\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tflowFlag = true;\n\t\t\t\t\t\tdoneFlag = beneficiariesPage.addBeneficiaries(rowNum, clientType, signType, paymentType);\t\t\t\t\t\n\t\t\t\t\t\t//errorFlag = true;\n\t\t\t\t\t\tSystem.out.println(\"completed\");\n\t\t\t\t\t\tsinglebutton = true;\n\t\n\t\t\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\t\t\tSystem.out.println(e.getStackTrace());\n\t\t\t\t\t\tSystem.out.println(\"issue with sign-up/beneficiary not reached\");\n\t\t\t\t\t\terrorFlag = true;\n\t\t\t\t\t\tsinglebutton = true;\n\t\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Fail\");\n\t\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"URL\", rowNum, currentURL);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.getStackTrace());\n\t\t\t\t\t\tSystem.out.println(\"other exception in addBeneficiaries\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t\tboolean singlebuttonFlag = false;\n\t\n\t\t\t\tif (formFlag == 0 && checkboxFlag == 0 && buttonFlag == 1 && dropDownFlag == 0 && autoSuggFlag == 0\n\t\t\t\t\t\t&& datePickerFlag == 0){\n\t\t\t\t\tsinglebutton = true;\n\t\t\t\t\tsinglebuttonFlag = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean doubleButton = false;\n\t\n\t\t\t\tif (Testutil.doubleButtosFlag && singlebuttonFlag){\n\t\t\t\t\tsinglebutton = false;\n\t\t\t\t\tdoubleButton = true;\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\tboolean completeFlag = false;\n\t\t\t\t\n\t\t\t\tif(doubleButton && !Testutil.doubleButtosFlag ) completeFlag = true;\n\t\t\t\t\n\t\t\t\tif(clientType.equalsIgnoreCase(\"agent\") && doneFlag) agentFlag = true;\t\n\t\t\t\t\n\t\t\t\tif(flag || agentFlag){\n\t\t\t\t\tSystem.out.println(\"execution completed for agent type\");\n\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Pass\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!doneFlag && flowFlag){\n\t\t\t\t\tSystem.out.println(\"something went wrong\");\n\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Fail\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (singlebutton || completeFlag || agentFlag) {\n\t\t\t\t\tSystem.out.println(\"only button with single page \" + i + \", auto load\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"All submited in page \" + i + \", going to next page. Clicking on Next button\");\n\t\n\t\t\t\t\tdriver.findElement(By.xpath(\"//button[@class='c-button-default circular action btn btn-default']\"))\n\t\t\t\t\t\t\t.click();\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tProductUtil.CheckElementDoNotExists(\".fa.fa-circle-o-notch\", true);\t\t\t\n\t\n\t\t\t\tformFlag = 0;\n\t\t\t\tcheckboxFlag = 0;\n\t\t\t\tbuttonFlag = 0;\n\t\t\t\tdropDownFlag = 0;\n\t\t\t\tautoSuggFlag = 0;\n\t\t\t\tdatePickerFlag = 0;\n\t\n\t\t\t\tele = null;\n\t\n\t\t\t\tele = FindElements();\n\t\n\t\t\t\tfor (Entry eleType : ele.entrySet()) {\n\t\n\t\t\t\t\tString line = eleType.getKey() + \" \" + eleType.getValue();\n\t\t\t\t\tSystem.out.println(\"Fields: \" + line);\n\t\t\t\t\tfieldFlag = eleType.getKey().toString();\n\t\n\t\t\t\t\tswitch (fieldFlag) {\n\t\n\t\t\t\t\tcase \"formFlag\":\n\t\t\t\t\t\tformFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"buttonFlag\":\n\t\t\t\t\t\tbuttonFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"autoSuggFlag\":\n\t\t\t\t\t\tautoSuggFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"dropDownFlag\":\n\t\t\t\t\t\tdropDownFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"checkboxFlag\": // byCheckboxL =\n\t\t\t\t\t\tBy.cssSelector(\".custom-checkbox-container\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tcheckboxFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"datePickerFlag\": // byDatepickerL =\n\t\t\t\t\t\tBy.cssSelector(\".c-subheader-text.fs18.col-sm-12\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tdatePickerFlag = Integer.parseInt(eleType.getValue().toString());\n\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\n\t\t\t\t\t}\n\t\n\t\t\t\t\tSystem.out.println(line);\n\t\n\t\t\t\t}\n\t\n\t\t\t\t\n\t\n\t\t\t\tif (formFlag == 0 && checkboxFlag == 0 && buttonFlag == 0 && dropDownFlag == 0 && autoSuggFlag == 0\n\t\t\t\t\t\t&& datePickerFlag == 0) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tif (counter == 2)\n\t\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\n\t\t\t\tif (!breakFlag){\n\t\t\t\t\tSystem.out.println(\"break point stopped the execution\");\n\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Break\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif(flag || doneFlag){\n\t\t\t\t\tSystem.out.println(\"execution completed\");\n\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Pass\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\n\t\t\t\t\n\t\t\t\tif(errorFlag){\n\t\t\t\t\tSystem.out.println(\"execution completed with error\");\n\t\t\t\t\tTestutil.updateResult(Testutil.resultSheet, \"Questions\", rowNum, \"Fail\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\n\t\t\t} while (formFlag > 0 || checkboxFlag > 0 || buttonFlag > 0 || dropDownFlag > 0 || autoSuggFlag > 0\n\t\t\t\t\t|| datePickerFlag > 0 || beneficiaryFlag);\n\t\n\t\t\t//while (formFlag > 0 || checkboxFlag > 0 || buttonFlag > 0 || dropDownFlag > 0 || autoSuggFlag > 0 \t|| datePickerFlag > 0 || flag || doneFlag || errorFlag);\n\t\t\t// return new PersonalPage();\n\t\t\t\n\t\t\t//Testutil.updateResult(Testutil.resultSheet, \"URL\", rowNum, currentURL);\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getStackTrace());\n\t\t\tSystem.out.println(\"other exception, Test failed/by passed\");\n\t\t\t\t\t\t\n\t\t}\n\n\t}", "@FXML\n void selectType() {\n \t//hide all errors\n \thideErrors();\n \t//get countries from /type/metadata.txt\n \t//Reset range string\n T3_startYear_ComboBox.setValue(\"\");\n T3_endYear_ComboBox.setValue(\"\");\n //update country list\n String type = T3_type_ComboBox.getValue(); // getting type\n countries.clear();\n for (String country: DatasetHandler.getCountries(type)){\n countries.add(country);\n }\n T3_country_ComboBox.setValue(\"\");\n //clearing the StartYear and EndYear values and lists\n }", "@Test(dataProviderClass = DataProviderUtils.class, dataProvider = \"excelDataReader\", groups = {\"Sprint25\", \"UI\"}, \r\n\t\t\tdescription = \"Vault general settings - Layout dropdown\")\r\n\tpublic void SprintTest25_10_2C(HashMap<String,String> dataValues, String driverType) throws Exception {\r\n\r\n\t\tdriver = null; \r\n\t\tConcurrentHashMap <String, String> dataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//1. Login to Configuration\r\n\t\t\t//--------------------------\r\n\r\n\r\n\t\t\tdriver = WebDriverUtils.getDriver();\r\n\r\n\t\t\tdataPool = new ConcurrentHashMap <String, String>(dataValues);\r\n\r\n\t\t\tdriver.get(configURL);\r\n\r\n\t\t\tLoginPage loginPage = new LoginPage(driver);\r\n\t\t\tConfigurationPage configurationPage = loginPage.loginToConfigurationUI(userName, password);\r\n\r\n\t\t\tLog.message(\"1. Logged in to Configuiration\");\r\n\r\n\t\t\t//2. Click the vault link \r\n\t\t\t//----------------------------\r\n\t\t\tconfigurationPage.treeView.clickTreeViewItem(\"Vault-specific settings>>\" + testVault);\r\n\r\n\r\n\t\t\tLog.message(\"2. Clicked the vault link.\");\r\n\r\n\t\t\t//Verification: To verify the caption \"Vault general settings 'Other [specify view ID]'\"for other views\r\n\t\t\t//------------------------------------------------------------------------------------------------------\r\n\t\t\tConfigurationPanel configSettingsPanel = new ConfigurationPanel(driver);\r\n\r\n\t\t\t/*//Variable Declaration\r\n\t\t\tList<WebElement> layoutOptions; //Stores the web element of the default view select box\r\n\t\t\tint optionCount; //Stores the number of options that are available in the list\r\n\t\t\tint itemIdx; //Stores the item index\r\n\t\t\tint count = 0;\r\n\r\n\t\t\tList<WebElement> vaultTableRows=driver.findElements(By.cssSelector(\"div[id='configvault'][style*='display: block;']>table[class='fullLength']\"));\r\n\t\t\tWebElement defaultViewRow = configSettingsPanel.getWebElement(vaultTableRows, \"Layout:\"); //Web Element of default view row\r\n\r\n\t\t\tlayoutOptions = defaultViewRow.findElements(By.cssSelector(\"select[id='ddlLayout']>option\")); //Web Element options of the default view list\r\n\r\n\t\t\toptionCount = layoutOptions.size(); //Number of available default view options in the list*/\r\n\t\t\tint i,j = 1;\r\n\t\t\tString[] expectedOptions = dataPool.get(\"Options\").split(\"\\n\");\r\n\t\t\tString[] actualOptions = new String[configSettingsPanel.getallLayouts().length];\r\n\t\t\tactualOptions = configSettingsPanel.getallLayouts();\r\n\t\t\tfor (int k=0; k < actualOptions.length ;k++)\r\n\t\t\t\tSystem.out.println(actualOptions[k]);\r\n\t\t\tArrays.sort(expectedOptions);\t\r\n\t\t\tArrays.sort(actualOptions);\t\r\n\r\n\t\t\t/*for (itemIdx=0; itemIdx<expectedOptions.length; itemIdx++) {//Loops to identify the web element of the default view to be selected\r\n\t\t\t\tfor(count = 0; count < optionCount; count++) {\r\n\t\t\t\t\tif(layoutOptions.get(count).getText().contains(expectedOptions[itemIdx]))\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif(count == optionCount)\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t}*/\r\n\r\n\t\t\tfor( i=0;i< actualOptions.length;i++)\r\n\t\t\t{\r\n\t\t\t\tif (!(actualOptions[i].equalsIgnoreCase(expectedOptions[i])))\r\n\t\t\t\t{\r\n\t\t\t\t\tj=0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tif(j !=0)\r\n\t\t\t\tLog.pass(\"Test Case Passed. The expected options were found in the layout dropdown box.\");\r\n\t\t\telse\r\n\t\t\t\tLog.fail(\"Test Case Failed. The expected option \" + expectedOptions[i] + \" was not found in the layout dropdown.\", driver);\r\n\r\n\t\t}\r\n\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLog.exception(e, driver);\r\n\t\t}\r\n\r\n\t\tfinally {\r\n\t\t\tUtility.quitDriver(driver);\r\n\t\t}\r\n\r\n\t}", "private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }", "private JScrollPane createInferenceHistoryOptionsPanel() {\n\n\t\tJPanel filterpanel = new JPanel();\n\t\t// filterpanel.setBackground(Color.BLUE);\n\t\tfilterpanel.setLayout(new BoxLayout(filterpanel, BoxLayout.Y_AXIS));\n\t\tfilterpanel.setBorder(new EmptyBorder(3, 10, 3, 10));\n\n\t\tJPanel panel_axiomtypecheckboxes_plus_label = createLabelledGridLayoutPanel(\"Filter Axiomtypes\",\n\t\t\t\ttypecheckboxpanel);\n\t\t// JPanel panel_group_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Grouping\", combo_group);\n\t\t// JPanel panel_renderer_plus_label =\n\t\t// getLabelledGridLayoutPanel(\"Renderer\", combo_renderer);\n\n\t\taxiomtypelist.addListSelectionListener(e -> {\n //updateConsequenceTables();\n //updateView();\n EventLogging.saveEvent(System.currentTimeMillis(), getOWLWorkspace().getSelectedTab().getId(),\n \"list_axiomtypes_selection\", \"NA\", \"wii\");\n });\n\n\t\tJPanel panel_axiomprio_plus_label = createLabelledGridLayoutPanel(\"Priority Table\",\n\t\t\t\ttable_axiom_pattern_priority);\n\n\t\ttable_axiom_pattern_priority.addMouseListener(new LoggingMouseListener(table_axiom_pattern_priority,\n\t\t\t\t\"table_axiom_pattern_priority_click\", getOWLWorkspace()));\n\n\t\tJPanel gl = new JPanel(new GridLayout(1, 2));\n\t\tgl.add(bt_entity_filter);\n\t\tgl.add(bt_entity_filter_reset);\n\t\tgl.setPreferredSize(new Dimension(0, 25));\n\t\tJPanel panel_entityfilter_plus_label = createLabelledGridLayoutPanel(\"Entity Filter\", gl);\n\n\t\t// JPanel panel_tautology_select_plus_label =\n\t\t// createTautologyCheckboxPanel(cl);\n\n\t\t// panel_axiomtypecheckboxes_plus_label.setMaximumSize(new\n\t\t// Dimension(0,10));\n\t\t// filterpanel.add(getMainLabel(\"Options\"));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 20)));\n\t\t// filterpanel.add(fontsize_panel);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\n\t\tJPanel tautologypanel = createTautologyCheckboxPanel();\n\n\t\tfilterpanel.add(panel_axiomtypecheckboxes_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(bt_axtypes_advanced);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(tautologypanel);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_at_advanced_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\t// filterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\t// filterpanel.add(panel_renderer_plus_label);\n\t\t// filterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_entityfilter_plus_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(entity_select_label);\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 10)));\n\t\tfilterpanel.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tfilterpanel.add(Box.createRigidArea(new Dimension(10, 5)));\n\t\tfilterpanel.add(panel_axiomprio_plus_label);\n\t\t// filterpanel.add(panel_tautology_select_plus_label);\n\n\t\treturn new JScrollPane(filterpanel);\n\t}", "private void setUpViews() {\n\n updateFooterCarInfo();\n updateFooterUsrInfo();\n\n\n setResultActionListener(new ResultActionListener() {\n @Override\n public void onResultAction(AppService.ActionType actionType) {\n if (ModelManager.getInstance().getGlobalInfo() != null) {\n GlobalInfo globalInfo = ModelManager.getInstance().getGlobalInfo();\n\n switch (actionType) {\n case CarInfo:\n updateFooterCarInfo();\n break;\n case UsrInfo:\n updateFooterUsrInfo();\n break;\n case Charger:\n updateChargeStationList();\n break;\n }\n }\n }\n });\n }", "public static BrowseIndex getItemBrowseIndex(String displayType) {\n if (\"item\".equals(displayType)) {\n return BrowseIndex.itemIndex;\n } else {\n return new BrowseIndex(\"bi_\" + displayType, displayType);\n }\n }", "public AccountTypeInfomation() {\n initComponents(); \n rbtnSelectAll.setSelected(false);\n btnCreate.setVisible(true);\n btnEdit.setVisible(false);\n btnRemove.setVisible(false);\n loadDefault();\n }", "@Override\n public void getHomepageElementList() {\n String elementTypes = firebaseRemoteConfig.getString(Constants.FIREBASE_ELEMENT_LIST);\n List<String> elementTypeArray = Arrays.asList(elementTypes.split(\",\"));\n\n List<ElementView> elementViewList = new ArrayList<>();\n for (String elementType : elementTypeArray) {\n ElementView elementView = elementViewFactory.convert(elementType);\n if (elementView != null) {\n elementViewList.add(elementView);\n }\n }\n\n homepageView.setupElementViewAdapter(elementViewList);\n }", "private void getSearchButtonSemantics() {\n //TODO implement method\n searchView.getResultsTextArea().setText(\"\");\n if (searchView.getFieldComboBox().getSelectedItem() == null) {\n JOptionPane.showMessageDialog(new JFrame(), \"Please select a field!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getFieldComboBox().requestFocus();\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"SKU\")) {\n Optional<Product> skuoptional = inventoryModel.searchBySku(searchView.getSearchValueTextField().getText());\n if (skuoptional.isPresent()) {//check if there is an inventory with that SKU\n searchView.getResultsTextArea().append(skuoptional.get().toString());\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified SKU was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Name\")) {\n List<Product> name = inventoryModel.searchByName(searchView.getSearchValueTextField().getText());\n if (!name.isEmpty()) {\n for (Product nameproduct : name) {\n searchView.getResultsTextArea().append(nameproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified name was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Wholesale price\")) {\n try {\n List<Product> wholesaleprice = inventoryModel.searchByWholesalePrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!wholesaleprice.isEmpty()) {//check if there is an inventory by that wholesale price\n for (Product wholesalepriceproduct : wholesaleprice) {\n searchView.getResultsTextArea().append(wholesalepriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified wholesale price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Retail price\")) {\n try {\n List<Product> retailprice = inventoryModel.searchByRetailPrice(Double.parseDouble(searchView.getSearchValueTextField().getText()));\n if (!retailprice.isEmpty()) {\n for (Product retailpriceproduct : retailprice) {\n searchView.getResultsTextArea().append(retailpriceproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified retail price is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } else if (searchView.getFieldComboBox().getSelectedItem().equals(\"Quantity\")) {\n try {\n List<Product> quantity = inventoryModel.searchByQuantity(Integer.parseInt(searchView.getSearchValueTextField().getText()));\n if (!quantity.isEmpty()) {\n for (Product quantityproduct : quantity) {\n searchView.getResultsTextArea().append(quantityproduct.toString() + \"\\n\\n\");\n }\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getFieldComboBox().requestFocus();\n } else {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity was not found!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n } catch (NumberFormatException nfe) {\n JOptionPane.showMessageDialog(new JFrame(),\n \"The specified quantity is not a vaild number!\",\n \"Product Inventory\", JOptionPane.ERROR_MESSAGE);\n searchView.getSearchValueTextField().requestFocus();\n }\n }\n }", "void populateProductLineTabs() {\n ArrayList<ItemType> typeNames = new ArrayList<ItemType>();\n\n for (ItemType typeValue : ItemType.values()) {\n typeNames.add(typeValue);\n }\n System.out.println(\"type array size = \" + typeNames.size());\n\n for (int i = 0; i < typeNames.size(); i++) {\n choiceType.getItems().add(i, typeNames.get(i));\n }\n choiceType.getSelectionModel().selectFirst();\n }", "private void buildGrid()\n {\n actions.setText(\"Select\");\n\n actions.setMenu(new MenuBuilder()\n .build(visit, icons.contact16())\n .build(delete, icons.delete16())\n .build(message, icons.mail16())\n .get());\n\n contactsColumnModel = new ColumnModel<ContactInfo>(new ColumnsBuilder<ContactInfo>()\n .build(\"\", props.name(), 50, true, new IconCell(icons.contact16()))\n .build(\"Name\", props.name(), 150, false)\n .build(\"Lastname1\", props.lastname1(), 150, false)\n .build(\"Lastname2\", props.lastname2(), 150, true)\n .build(\"Actions\", props.name(), 50, false, actions)\n .get());\n }", "public void openTheListOfGadgets(){\r\n\t\tdriver.findElement(By.xpath(\"\"+TODAY_WIN_XPATH+\"//button[contains(text(),'Add more..')]\")).click();\r\n\t\tReporter.log(\"List Of Gadgets Buttons is clicked\",true);\r\n\t}", "private JPanel createSelectDocTypePanel(){\n\t\tJPanel toReturn = new JPanel(new GridBagLayout());\n\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\t\n\t\t//add document type JLabel\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\ttoReturn.add(new JLabel(translator.getTranslation(Tags.SELECT_DOCUMENT_TYPE)) , gbc);\n\t\t\t\n\t\t//add comboBox\n\t\tgbc.gridx++;\n\t\tgbc.weightx = 1;\n\t\tgbc.anchor = GridBagConstraints.WEST;\n\t\tgbc.insets.left = 2;\n\t\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoReturn.add(combBoxDocumentTypes, gbc);\n\t\t\n\t\t//action for add button\n\t\tAction addDocTypeAction = new AbstractAction() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString docType = JOptionPane.showInputDialog(null, (Object)new JLabel(translator.getTranslation(Tags.INSERT_DOC_TYPE_LABEL)), \"\", \n\t\t\t\t\t\t JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tif(docType !=null && !docType.isEmpty()){\n\t\t\t\t\tcombBoxDocumentTypes.addItem(docType);\n\t\t\t\t\tcombBoxDocumentTypes.setSelectedItem(docType);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\t\taddDocumentTypeButton = new ToolbarButton(addDocTypeAction, false);\n\t\t\n\t\t// Get the image for toolbar button\n\t\tURL imageToLoad = getClass().getClassLoader().getResource(Images.ADD_ICON);\n\t\tif (imageToLoad != null) {\n\t\t\taddDocumentTypeButton.setText(\"\");\n\t\t\taddDocumentTypeButton.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t}\n\t\t\n\t\t//add the addButton\n\t\tgbc.gridx++;\n\t\tgbc.weightx = 0;\n\t\tgbc.insets.left = 0;\n\t\ttoReturn.add(addDocumentTypeButton,gbc);\n\t\t\n\t\t\n\t\t\n\t\t//action for remove button\n\t\t\tAction removeAction = new AbstractAction() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tcombBoxDocumentTypes.removeItem(combBoxDocumentTypes.getSelectedItem());\n\t\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\tremoveDocumentTypeButton = new ToolbarButton(removeAction, false);\n\t\t\t\n\t\t\t// Get the image for toolbar button\n\t\t\timageToLoad = getClass().getClassLoader().getResource(Images.REMOVE_ICON);\n\t\t\tif (imageToLoad != null) {\n\t\t\t\tremoveDocumentTypeButton.setText(\"\");\n\t\t\t\tremoveDocumentTypeButton.setIcon(ro.sync.ui.Icons.getIcon(imageToLoad.toString()));\n\t\t\t}\n\t\t\t\n\t\t\t//add the addButton\n\t\t\tgbc.gridx++;\n\t\t\ttoReturn.add(removeDocumentTypeButton,gbc);\n\t\t\n\t\t\n\t\treturn toReturn;\n\t\t\n\t}", "@Override\n public void mainPanel(String panelType) {\n\n if (getMainPanel() != null) {\n getMainPanel().removeAll();\n getMainPanel().revalidate();\n getMainPanel().repaint();\n }\n //Switch between the three options\n switch (panelType) {\n case \"Inventory\":\n if (inventory.getSize() < 1) {\n createPOPUP(\"Message\", \"Inventory is Empty\");\n } else {\n getMainPanel().setLayout(new GridLayout(5, 3, 10, 10));\n getMainPanel().setBorder(new EmptyBorder(10, 10, 10, 10));\n inventoryPanel();\n bottomPanel(\"Inventory\");\n //System.out.println(\"Number of products displayed: \" + getLastProductDisplayed());\n }\n break;\n case \"Shopping Cart\":\n getMainPanel().setLayout(new FlowLayout());\n shoppinCartPanel();\n bottomPanel(\"Checkout\");\n break;\n case \"Checkout\":\n getMainPanel().setLayout(new FlowLayout());\n createCheckoutView();\n bottomPanel(\"Submit Order\");\n break;\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tif (searchText.equals(\"Restaurants\")){\n\t\t\tsearchType=\"restaurant\";\t\n\t\t}\n\t\telse if (searchText.equals(\"Shopping Mall\")){\n\t\t\tsearchType=\"shopping_mall\";\n\t\t}\n\t\telse if (searchText.equals(\"ATM\")){\n\t\t\tsearchType=\"atm\";\n\t\t}\n\t\telse if (searchText.equals(\"Bank\")){\n\t\t\tsearchType=\"bank\";\n\t\t}\n\t\telse if (searchText.equals(\"Hospital\")){\n\t\t\tsearchType=\"hospital\";\n\t\t}\n\t\tloadPage();\n\t\t\n\t}", "public void coupleTypeAction() {\n\t\t\n\t\t//Get arrays of facets\n\t\tObject[] facets = myParent.jobItem.design.frames.toArray();\n\t\t\n\t\tfor (Object f : facets) {\n\t\t\t\n\t\t\t//Facet has vertical and horizontal mullions\n\t\t\tif (((Facet) f).bOpeningObject.mullions.size() > 0 || ((Facet) f).bOpeningObject.mullionsH.size() > 0) {\n\t\t\t\tthis.okToUse = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Facet has background opening internal and vertical and horizontal mullions\n\t\t\tif (((Facet) f).bOpeningObjectIn != null && (((Facet) f).bOpeningObjectIn.mullions.size() > 0 ||\n\t\t\t\t\t\t((Facet) f).bOpeningObjectIn.mullionsH.size() > 0)) {\n\t\t\t\tthis.okToUse = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Facet has background opening output and vertical and horizontal mullions\n\t\t\tif (((Facet) f).bOpeningObjectOut != null && (((Facet) f).bOpeningObjectOut.mullions.size() > 0 ||\n\t\t\t\t\t\t((Facet) f).bOpeningObjectOut.mullionsH.size() > 0)) {\n\t\t\t\tthis.okToUse = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Get array of frames from facet\n\t\t\tObject[] frames = ((Facet) f).frames.toArray();\n\t\t\t\n\t\t\tfor (Object ff : frames) {\n\t\t\t\t\n\t\t\t\t//Axis x columns or Axis y columns is more than one\n\t\t\t\tif (((Frame) ff).xCols > 1 || ((Frame) ff).yRows > 1) {\n\t\t\t\t\tthis.okToUse = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Get array of opening from frame\n\t\t\t\tObject[] os = ((Frame) ff).openings.toArray();\n\t\t\t\t\n\t\t\t\tfor (Object o : os) {\n\t\t\t\t\t\n\t\t\t\t\t//Content mid from opening is more than 1\n\t\t\t\t\tif (((OpeningObject) o).contentMid > 1) {\n\t\t\t\t\t\tthis.okToUse = false;\n\t\t\t\t\t}\n\t\t\t\t\t//Content in from opening is more than 1\n\t\t\t\t\tif (((OpeningObject) o).contentIn > 1) {\n\t\t\t\t\t\tthis.okToUse = false;\n\t\t\t\t\t}\n\t\t\t\t\t//Content out from opening is more than 1\n\t\t\t\t\tif (((OpeningObject) o).contentOut > 1) {\n\t\t\t\t\t\tthis.okToUse = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Setting default values configuration\n\t\tthis.divideFacet = false;\n\t\tthis.isFixedAngle = true;\n\t\tthis.angle = 180;\n\t\tthis.isPhantom = false;\n\t\t\n\t\t//Get selected coupler mullion selected\n\t\tTypeCouplerMullion typeCouplerMullion = (TypeCouplerMullion) couplerTypeC.getSelectedItem();\n\t\t\n\t\tthis.typeID = typeCouplerMullion.getId().getId();\n\t\t\n\t\t// Clean parts selected from coupler mullion controller\n\t\tcouplerMullionController.setPartsSelected(null);\n\t\tif(typeCouplerMullion.getType()==0){//Divider\n\t\t\tthis.selectedLevel = 0; \n\t\t\tthis.divideFacet = true; \n\t\t}else if(typeCouplerMullion.getType()==1){//Coupler\n\t\t\tthis.selectedLevel = 1; \n\t\t}else{\n\t\t\tthis.selectedLevel = 2; \n\t\t}\n\t\t\n\t\tif (typeCouplerMullion != null) {\n\t\t\t\n\t\t\t//Get angle from type coupler mullion\n\t\t\tthis.angle = typeCouplerMullion.getAngle();\n\t\t\t//Find parts for coupler selected option\n\t\t\tcouplerMullionController.findPartsForCouplerMullionSelected(typeCouplerMullion.getSupplierId(),\n typeCouplerMullion.getPartId(), typeCouplerMullion.isRemote());\n\t\t}\n\t\t\n\t\tif (divideFacet && (myParent.layoutP.bow.isSelected() || myParent.layoutP.bay.isSelected())) {\n\t\t\tthis.okToUse = false;\n\t\t}\n\t}", "public void openEmployeesPage() {\n // Navigate to HumanResources > Employees through the left menu\n driver.findElement(By.cssSelector(\"div.group-items>fuse-nav-vertical-collapsable:nth-child(5)\")).click();\n driver.findElement(By.cssSelector(\"fuse-nav-vertical-collapsable:nth-child(5)>div.children>fuse-nav-vertical-item:nth-child(2)\")).click();\n }", "private void loadSelectionPanels(){\n String[] panelClassNames = {\"SearchSelectionPanel\",\n \"RandomSelectionPanel\",\n \"IngredientMatchingSelectionPanel\"};\n\n String pkg = \"dk.tildeslash.cookbook.viewer.SelectionPanel\";\n for ( String className : panelClassNames ){\n try {\n @SuppressWarnings(\"unchecked\")\n Class<SelectionPanel> clazz = (Class<SelectionPanel>) Class.forName(pkg + '.' + className);\n String title = clazz.getConstructor().newInstance().getTitle();\n selectionPanels.put(title, clazz);\n } catch (ClassNotFoundException e) {\n String msg = \"Unable to find class for selection panel \" + className;\n showErrorMessage(msg, \"Unable to find class\");\n LOGGER.error(msg, e);\n } catch (ClassCastException | InvocationTargetException | NoSuchMethodException | InstantiationException | IllegalAccessException e){\n String msg = \"Unable to load selection panel of type \" + className;\n showErrorMessage(msg, \"Unable to load selection panel\");\n LOGGER.error(msg, e);\n }\n\n }\n }", "@Then(\"^I choose by ranking of occupated$\")\n public void i_choose_by_ranking_of_occupated() {\n onViewWithId(R.id.spinnerStatisticsType).click();\n onViewWithText(\"Ranking\").isDisplayed();\n onViewWithText(\"Ranking\").click();\n }", "public void setting() throws FileNotFoundException {\n try (\n Scanner read = new Scanner(new File(\"src/img/bg.txt\"));) {\n while (read.hasNext()) {\n counter = read.nextInt();\n counter--;\n }\n }\n\n inExBtn.setMaxWidth(75);\n inExBtn.setMinWidth(75);\n inExBtn.setTooltip(new Tooltip(\"Click for Expense List\"));\n\n incomeCombo.setItems(incomeCate);\n incomeCombo.getSelectionModel().selectFirst();\n incomeCombo.setMinWidth(MAX_WIDTH);\n\n expenseCombo.setItems(expenseCate);\n expenseCombo.getSelectionModel().selectFirst();\n expenseCombo.setMinWidth(MAX_WIDTH);\n\n all.getChildren().addAll(left, right);\n\n right.setMinWidth(500);\n right.setMaxWidth(500);\n dateCol.setMaxWidth(99);\n dateCol.setMinWidth(99);\n cateCol.setMaxWidth(200);\n cateCol.setMinWidth(200);\n amountCol.setMaxWidth(70);\n amountCol.setMinWidth(70);\n noteCol.setMaxWidth(129);\n noteCol.setMinWidth(129);\n right.getColumns().addAll(dateCol, cateCol, amountCol, noteCol);\n\n left.setAlignment(Pos.CENTER);\n left.getChildren().addAll(menuLine, sortedLine, balanceLine, dateLine, selectionLine,\n costLine, noteLine, recordLine, errorLine, color);\n\n menuLine.getChildren().addAll(newBtn, openBtn, saveBtn, importBtn);\n menuLine.setAlignment(Pos.CENTER);\n newBtn.setMaxWidth(MENU_BTN_WIDTH);\n newBtn.setMinWidth(MENU_BTN_WIDTH);\n openBtn.setMaxWidth(MENU_BTN_WIDTH);\n openBtn.setMinWidth(MENU_BTN_WIDTH);\n saveBtn.setMaxWidth(MENU_BTN_WIDTH);\n saveBtn.setMinWidth(MENU_BTN_WIDTH);\n importBtn.setMaxWidth(MENU_BTN_WIDTH);\n importBtn.setMinWidth(MENU_BTN_WIDTH);\n\n sortedLine.getChildren().addAll(showIncome, showExpense, sortBtn);\n sortedLine.setAlignment(Pos.CENTER);\n showIncome.setToggleGroup(showGroup);\n showExpense.setToggleGroup(showGroup);\n sortBtn.setMaxWidth(MENU_BTN_WIDTH);\n sortBtn.setMinWidth(MENU_BTN_WIDTH);\n showIncome.setMaxWidth(MENU_BTN_WIDTH * 2 - 27);\n showIncome.setMinWidth(MENU_BTN_WIDTH * 2 - 27);\n showExpense.setMaxWidth(MENU_BTN_WIDTH * 2 - 27);\n showExpense.setMinWidth(MENU_BTN_WIDTH * 2 - 27);\n\n balanceLine.getChildren().addAll(balanceLbl, balanceTf);\n balanceLine.setAlignment(Pos.CENTER);\n balanceLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n\n balanceTf.setMaxWidth(70);\n balanceTf.setEditable(false);\n balanceTf.setAlignment(Pos.CENTER);\n balanceTf.setText(String.valueOf(balance.value = 0));\n\n dateLine.getChildren().addAll(yearLbl, yearTf, monthLbl, monthTf, dayLbl, dayTf);\n yearLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n monthLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n dayLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n dateLine.setAlignment(Pos.CENTER);\n yearTf.setMaxWidth(50);\n monthTf.setMaxWidth(35);\n dayTf.setMaxWidth(35);\n yearTf.textProperty().addListener((ob, oldOb, newOb) -> {\n if (oldOb.length() < 4 && newOb.length() >= 4) {\n monthTf.requestFocus();\n }\n });\n monthTf.textProperty().addListener((ob, oldOb, newOb) -> {\n if (oldOb.length() < 2 && newOb.length() >= 2) {\n dayTf.requestFocus();\n }\n });\n dayTf.textProperty().addListener((ob, oldOb, newOb) -> {\n if (oldOb.length() < 2 && newOb.length() >= 2) {\n incomeCombo.requestFocus();\n expenseCombo.requestFocus();\n }\n });\n\n selectionLine.getChildren().addAll(inExBtn, incomeCombo);\n selectionLine.setAlignment(Pos.CENTER);\n\n costTf.setMaxWidth(MAX_WIDTH);\n costLine.getChildren().addAll(costLbl, costTf, new Label(\" \"));\n costLine.setAlignment(Pos.CENTER);\n costLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n\n noteTf.setMaxWidth(MAX_WIDTH);\n noteLine.getChildren().addAll(noteLbl, noteTf);\n noteLine.setAlignment(Pos.CENTER);\n noteLbl.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, 14));\n\n recordLine.setAlignment(Pos.CENTER);\n recordLine.getChildren().addAll(removeBtn, addBtn);\n\n errorLine.setTextFill(Color.RED);\n errorLine.setFont(Font.font(\"Arial\", FontWeight.EXTRA_BOLD, FontPosture.ITALIC, 14));\n\n color.setCenterX(5);\n color.setCenterY(5);\n color.setTranslateX(140);\n color.setTranslateY(25);\n color.setFill(Color.WHITE);\n color.setStroke(Color.GRAY);\n color.setOpacity(0.3);\n Tooltip bg = new Tooltip(\"Change Background\");\n Tooltip.install(color, bg);\n }", "public RunAction(UploadFileAction datasetInfo, SelectPrivacySettingsAction privacyInfo, \n\t\t\tSetExpenseAction expenseInfo, SelectClassifierAction classifierInfo) {\n\t\tsuper();\n\t\tthis.datasetInfo = datasetInfo;\n\t\tthis.privacyInfo = privacyInfo;\n\t\tthis.expenseInfo = expenseInfo;\n\t\tthis.classifierInfo = classifierInfo;\n\t\t\t\t\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWeights = new double[]{1.0};\n\t\tgridBagLayout.rowWeights = new double[]{0.0, 0.8, 0.2, 0.0};\n\t\tsetLayout(gridBagLayout);\n\t\t\n\t\tJLabel summaryLabel = new JLabel(\"<html><center><font size='5' color='#033e9e'>Summary</font></center></html>\");\n\t\tsummaryLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_summaryLabel = new GridBagConstraints();\n\t\tgbc_summaryLabel.insets = new Insets(5, 0, 5, 0);\n\t\tgbc_summaryLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_summaryLabel.gridx = 0;\n\t\tgbc_summaryLabel.gridy = 0;\n\t\tadd(summaryLabel, gbc_summaryLabel);\n\t\t\n\t\tJPanel summaryPanel = new JPanel();\n\t\tsummaryPanel.setOpaque(false);\n\t\tGridBagConstraints gbc_summaryPanel = new GridBagConstraints();\n\t\tgbc_summaryPanel.insets = new Insets(5, 5, 5, 0);\n\t\tgbc_summaryPanel.fill = GridBagConstraints.VERTICAL;\n\t\tgbc_summaryPanel.gridx = 0;\n\t\tgbc_summaryPanel.gridy = 1;\n\t\tadd(summaryPanel, gbc_summaryPanel);\n\t\tGridBagLayout gbl_summaryPanel = new GridBagLayout();\n\t\tgbl_summaryPanel.columnWeights = new double[]{1.0, 0.0};\n\t\tgbl_summaryPanel.rowWeights = new double[]{1.0, 1.0, 1.0, 1.0};\n\t\tsummaryPanel.setLayout(gbl_summaryPanel);\n\t\t\n\t\tJPanel datasetSection = new JPanel();\n\t\tdatasetSection.setOpaque(false);\n\t\tdatasetSection.setBorder(new LineBorder(Color.LIGHT_GRAY, 1));\n\t\tGridBagConstraints gbc_datasetSection = new GridBagConstraints();\n\t\tgbc_datasetSection.insets = new Insets(5, 5, 5, 5);\n\t\tgbc_datasetSection.fill = GridBagConstraints.BOTH;\n\t\tgbc_datasetSection.gridx = 0;\n\t\tgbc_datasetSection.gridy = 0;\n\t\tsummaryPanel.add(datasetSection, gbc_datasetSection);\n\t\tGridBagLayout gbl_datasetSection = new GridBagLayout();\n\t\tgbl_datasetSection.columnWeights = new double[]{0.0, 1.0};\n\t\tgbl_datasetSection.rowWeights = new double[]{0.0};\n\t\tdatasetSection.setLayout(gbl_datasetSection);\n\t\t\n\t\tJLabel infoLabel1 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Dataset File</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel1 = new GridBagConstraints();\n\t\tgbc_infoLabel1.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel1.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel1.insets = new Insets(5, 50, 0, 130);\n\t\tgbc_infoLabel1.gridx = 0;\n\t\tgbc_infoLabel1.gridy = 0;\n\t\tdatasetSection.add(infoLabel1, gbc_infoLabel1);\n\t\t\n\t\tdatasetLabel = new JLabel();\n\t\tGridBagConstraints gbc_datasetLabel = new GridBagConstraints();\n\t\tgbc_datasetLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datasetLabel.insets = new Insets(5, 5, 0, 50);\n\t\tgbc_datasetLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_datasetLabel.gridx = 1;\n\t\tgbc_datasetLabel.gridy = 0;\n\t\tdatasetSection.add(datasetLabel, gbc_datasetLabel);\n\t\t\n\t\tHyperlinkButton modifyDatabaseSectionLink = new HyperlinkButton(\"Change\");\n\t\tGridBagConstraints gbc_modifyDatabaseSectionLink = new GridBagConstraints();\n\t\tgbc_modifyDatabaseSectionLink.insets = new Insets(5, 10, 5, 10);\n\t\tgbc_modifyDatabaseSectionLink.anchor = GridBagConstraints.WEST;\n\t\tgbc_modifyDatabaseSectionLink.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_modifyDatabaseSectionLink.gridx = 1;\n\t\tgbc_modifyDatabaseSectionLink.gridy = 0;\n\t\tsummaryPanel.add(modifyDatabaseSectionLink, gbc_modifyDatabaseSectionLink);\n\t\tmodifyDatabaseSectionLink.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpcs.firePropertyChange(TAB_CHANGE_REQUEST_PROPERTY, null, PUTWb.LOAD_TAB);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel privacySection = new JPanel();\n\t\tprivacySection.setOpaque(false);\n\t\tprivacySection.setBorder(new LineBorder(Color.LIGHT_GRAY, 1));\n\t\tGridBagConstraints gbc_privacySection = new GridBagConstraints();\n\t\tgbc_privacySection.insets = new Insets(0, 5, 5, 5);\n\t\tgbc_privacySection.fill = GridBagConstraints.BOTH;\n\t\tgbc_privacySection.gridx = 0;\n\t\tgbc_privacySection.gridy = 1;\n\t\tsummaryPanel.add(privacySection, gbc_privacySection);\n\t\tGridBagLayout gbl_privacySection = new GridBagLayout();\n\t\tgbl_privacySection.columnWeights = new double[]{0.0, 1.0};\n\t\tgbl_privacySection.rowWeights = new double[]{1.0, 1.0, 1.0};\n\t\tprivacySection.setLayout(gbl_privacySection);\n\t\t\n\t\tJLabel infoLabel2 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>PUT Number</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel2 = new GridBagConstraints();\n\t\tgbc_infoLabel2.insets = new Insets(5, 50, 5, 5);\n\t\tgbc_infoLabel2.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel2.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel2.gridx = 0;\n\t\tgbc_infoLabel2.gridy = 0;\n\t\tprivacySection.add(infoLabel2, gbc_infoLabel2);\n\t\t\n\t\tputLabel = new JLabel();\n\t\tGridBagConstraints gbc_putLabel = new GridBagConstraints();\n\t\tgbc_putLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_putLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_putLabel.insets = new Insets(5, 5, 5, 50);\n\t\tgbc_putLabel.gridx = 1;\n\t\tgbc_putLabel.gridy = 0;\n\t\tprivacySection.add(putLabel, gbc_putLabel);\n\t\t\n\t\tJLabel infoLabel3 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Privacy Exceptions</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel3 = new GridBagConstraints();\n\t\tgbc_infoLabel3.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel3.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel3.insets = new Insets(0, 50, 5, 5);\n\t\tgbc_infoLabel3.gridx = 0;\n\t\tgbc_infoLabel3.gridy = 1;\n\t\tprivacySection.add(infoLabel3, gbc_infoLabel3);\n\t\t\n\t\tprivacyExceptionsLabel = new JLabel();\n\t\tGridBagConstraints gbc_privacyExceptionsLabel = new GridBagConstraints();\n\t\tgbc_privacyExceptionsLabel.insets = new Insets(0, 5, 5, 50);\n\t\tgbc_privacyExceptionsLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_privacyExceptionsLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_privacyExceptionsLabel.gridx = 1;\n\t\tgbc_privacyExceptionsLabel.gridy = 1;\n\t\tprivacySection.add(privacyExceptionsLabel, gbc_privacyExceptionsLabel);\n\t\t\n\t\tJLabel infoLabel4 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Security Exceptions</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel4 = new GridBagConstraints();\n\t\tgbc_infoLabel4.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel4.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel4.insets = new Insets(0, 50, 5, 65);\n\t\tgbc_infoLabel4.gridx = 0;\n\t\tgbc_infoLabel4.gridy = 2;\n\t\tprivacySection.add(infoLabel4, gbc_infoLabel4);\n\t\t\n\t\tutilityExceptionsLabel = new JLabel();\n\t\tGridBagConstraints gbc_utilityExceptionsLabel = new GridBagConstraints();\n\t\tgbc_utilityExceptionsLabel.insets = new Insets(0, 5, 5, 50);\n\t\tgbc_utilityExceptionsLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_utilityExceptionsLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_utilityExceptionsLabel.gridx = 1;\n\t\tgbc_utilityExceptionsLabel.gridy = 2;\n\t\tprivacySection.add(utilityExceptionsLabel, gbc_utilityExceptionsLabel);\n\t\t\n\t\tHyperlinkButton modifyPrivacySectionLink = new HyperlinkButton(\"Change\");\n\t\tGridBagConstraints gbc_modifyPrivacySectionLink = new GridBagConstraints();\n\t\tgbc_modifyPrivacySectionLink.insets = new Insets(5, 10, 5, 10);\n\t\tgbc_modifyPrivacySectionLink.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_modifyPrivacySectionLink.anchor = GridBagConstraints.WEST;\n\t\tgbc_modifyPrivacySectionLink.gridx = 1;\n\t\tgbc_modifyPrivacySectionLink.gridy = 1;\n\t\tsummaryPanel.add(modifyPrivacySectionLink, gbc_modifyPrivacySectionLink);\n\t\tmodifyPrivacySectionLink.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpcs.firePropertyChange(TAB_CHANGE_REQUEST_PROPERTY, null, PUTWb.PUT_TAB);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel expensePanel = new JPanel();\n\t\texpensePanel.setOpaque(false);\n\t\texpensePanel.setBorder(new LineBorder(Color.LIGHT_GRAY, 1));\n\t\tGridBagConstraints gbc_expensePanel = new GridBagConstraints();\n\t\tgbc_expensePanel.insets = new Insets(0, 5, 5, 5);\n\t\tgbc_expensePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_expensePanel.gridx = 0;\n\t\tgbc_expensePanel.gridy = 2;\n\t\tsummaryPanel.add(expensePanel, gbc_expensePanel);\n\t\tGridBagLayout gbl_expensePanel = new GridBagLayout();\n\t\tgbl_expensePanel.columnWeights = new double[]{0.0, 1.0};\n\t\tgbl_expensePanel.rowWeights = new double[]{0.0, 0.0};\n\t\texpensePanel.setLayout(gbl_expensePanel);\n\t\t\n\t\tJLabel infoLabel5 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Horizontal Expense</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel5 = new GridBagConstraints();\n\t\tgbc_infoLabel5.insets = new Insets(5, 50, 5, 70);\n\t\tgbc_infoLabel5.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel5.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel5.gridx = 0;\n\t\tgbc_infoLabel5.gridy = 0;\n\t\texpensePanel.add(infoLabel5, gbc_infoLabel5);\n\t\t\n\t\thorizontalExpenseLabel = new JLabel();\n\t\tGridBagConstraints gbc_horizontalExpenseLabel = new GridBagConstraints();\n\t\tgbc_horizontalExpenseLabel.insets = new Insets(5, 5, 5, 50);\n\t\tgbc_horizontalExpenseLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_horizontalExpenseLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_horizontalExpenseLabel.gridx = 1;\n\t\tgbc_horizontalExpenseLabel.gridy = 0;\n\t\texpensePanel.add(horizontalExpenseLabel, gbc_horizontalExpenseLabel);\n\t\t\n\t\tJLabel infoLabel6 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Vertical Expense</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel6 = new GridBagConstraints();\n\t\tgbc_infoLabel6.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel6.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel6.insets = new Insets(0, 50, 5, 5);\n\t\tgbc_infoLabel6.gridx = 0;\n\t\tgbc_infoLabel6.gridy = 1;\n\t\texpensePanel.add(infoLabel6, gbc_infoLabel6);\n\t\t\n\t\tverticalExpenseLabel = new JLabel();\n\t\tGridBagConstraints gbc_verticalExpenseLabel = new GridBagConstraints();\n\t\tgbc_verticalExpenseLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_verticalExpenseLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_verticalExpenseLabel.insets = new Insets(0, 5, 5, 50);\n\t\tgbc_verticalExpenseLabel.gridx = 1;\n\t\tgbc_verticalExpenseLabel.gridy = 1;\n\t\texpensePanel.add(verticalExpenseLabel, gbc_verticalExpenseLabel);\n\t\t\n\t\tHyperlinkButton modifyExpenseSectionLink = new HyperlinkButton(\"Change\");\n\t\tGridBagConstraints gbc_modifyExpenseSectionLink = new GridBagConstraints();\n\t\tgbc_modifyExpenseSectionLink.anchor = GridBagConstraints.WEST;\n\t\tgbc_modifyExpenseSectionLink.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_modifyExpenseSectionLink.insets = new Insets(5, 10, 5, 10);\n\t\tgbc_modifyExpenseSectionLink.gridx = 1;\n\t\tgbc_modifyExpenseSectionLink.gridy = 2;\n\t\tsummaryPanel.add(modifyExpenseSectionLink, gbc_modifyExpenseSectionLink);\n\t\tmodifyExpenseSectionLink.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpcs.firePropertyChange(TAB_CHANGE_REQUEST_PROPERTY, null, PUTWb.EXPENSE_TAB);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel classifierSection = new JPanel();\n\t\tclassifierSection.setOpaque(false);\n\t\tclassifierSection.setBorder(new LineBorder(Color.LIGHT_GRAY, 1));\n\t\tGridBagConstraints gbc_classifierSection = new GridBagConstraints();\n\t\tgbc_classifierSection.insets = new Insets(0, 5, 5, 5);\n\t\tgbc_classifierSection.fill = GridBagConstraints.BOTH;\n\t\tgbc_classifierSection.gridx = 0;\n\t\tgbc_classifierSection.gridy = 3;\n\t\tsummaryPanel.add(classifierSection, gbc_classifierSection);\n\t\tGridBagLayout gbl_classifierSection = new GridBagLayout();\n\t\tgbl_classifierSection.columnWeights = new double[]{0.0, 1.0};\n\t\tgbl_classifierSection.rowWeights = new double[]{1.0, 0.0};\n\t\tclassifierSection.setLayout(gbl_classifierSection);\n\t\t\n\t\tJLabel infoLabel7 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Classification Mechanism</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel7 = new GridBagConstraints();\n\t\tgbc_infoLabel7.insets = new Insets(5, 50, 5, 25);\n\t\tgbc_infoLabel7.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel7.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel7.gridx = 0;\n\t\tgbc_infoLabel7.gridy = 0;\n\t\tclassifierSection.add(infoLabel7, gbc_infoLabel7);\n\t\t\n\t\tclassifierLabel = new JLabel();\n\t\tGridBagConstraints gbc_classifierLabel = new GridBagConstraints();\n\t\tgbc_classifierLabel.insets = new Insets(5, 5, 5, 50);\n\t\tgbc_classifierLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_classifierLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_classifierLabel.gridx = 1;\n\t\tgbc_classifierLabel.gridy = 0;\n\t\tclassifierSection.add(classifierLabel, gbc_classifierLabel);\n\t\t\n\t\tJLabel infoLabel8 = new JLabel(\"<html><center><b><font size='4' color='#2d0c08'>Classifier Options</font><br></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel8 = new GridBagConstraints();\n\t\tgbc_infoLabel8.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel8.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel8.insets = new Insets(0, 50, 5, 5);\n\t\tgbc_infoLabel8.gridx = 0;\n\t\tgbc_infoLabel8.gridy = 1;\n\t\tclassifierSection.add(infoLabel8, gbc_infoLabel8);\n\t\t\n\t\tclassifierOptionsLabel = new JLabel();\n\t\tGridBagConstraints gbc_classifierOptionsLabel = new GridBagConstraints();\n\t\tgbc_classifierOptionsLabel.fill = GridBagConstraints.BOTH;\n\t\tgbc_classifierOptionsLabel.anchor = GridBagConstraints.WEST;\n\t\tgbc_classifierOptionsLabel.insets = new Insets(0, 5, 5, 50);\n\t\tgbc_classifierOptionsLabel.gridx = 1;\n\t\tgbc_classifierOptionsLabel.gridy = 1;\n\t\tclassifierSection.add(classifierOptionsLabel, gbc_classifierOptionsLabel);\n\t\t\n\t\tHyperlinkButton modifyClassifierSectionLink = new HyperlinkButton(\"Change\");\n\t\tGridBagConstraints gbc_modifyClassifierSectionLink = new GridBagConstraints();\n\t\tgbc_modifyClassifierSectionLink.anchor = GridBagConstraints.WEST;\n\t\tgbc_modifyClassifierSectionLink.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_modifyClassifierSectionLink.insets = new Insets(5, 10, 5, 10);\n\t\tgbc_modifyClassifierSectionLink.gridx = 1;\n\t\tgbc_modifyClassifierSectionLink.gridy = 3;\n\t\tsummaryPanel.add(modifyClassifierSectionLink, gbc_modifyClassifierSectionLink);\n\t\tmodifyClassifierSectionLink.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpcs.firePropertyChange(TAB_CHANGE_REQUEST_PROPERTY, null, PUTWb.CLASSIFIER_TAB);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJPanel otherInputsPanel = new JPanel();\n\t\totherInputsPanel.setOpaque(false);\n\t\tGridBagConstraints gbc_otherInputsPanel = new GridBagConstraints();\n\t\tgbc_otherInputsPanel.insets = new Insets(0, 0, 10, 0);\n\t\tgbc_otherInputsPanel.fill = GridBagConstraints.VERTICAL;\n\t\tgbc_otherInputsPanel.gridx = 0;\n\t\tgbc_otherInputsPanel.gridy = 2;\n\t\tadd(otherInputsPanel, gbc_otherInputsPanel);\n\t\tGridBagLayout gbl_crossValidationPanel = new GridBagLayout();\n\t\tgbl_crossValidationPanel.columnWeights = new double[]{0.0, 1.0};\n\t\tgbl_crossValidationPanel.rowWeights = new double[]{1.0, 1.0};\n\t\totherInputsPanel.setLayout(gbl_crossValidationPanel);\n\t\t\n\t\tkTextField = new JTextField();\n\t\tkTextField.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tkTextField.setColumns(2);\n\t\tkTextField.setText(\"5\");\n\t\tkTextField.addActionListener(this);\n\t\tGridBagConstraints gbc_kTextField = new GridBagConstraints();\n\t\tgbc_kTextField.insets = new Insets(0, 5, 0, 0);\n\t\tgbc_kTextField.gridx = 1;\n\t\tgbc_kTextField.gridy = 0;\n\t\totherInputsPanel.add(kTextField, gbc_kTextField);\n\t\t\n\t\tJLabel infoLabel10 = new JLabel(\"<html><center><font size='4' color='#9e1503'>The value of <b><i>k</i></b> to use for k-fold cross validation while collecting model statistics</font></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel10 = new GridBagConstraints();\n\t\tgbc_infoLabel10.anchor = GridBagConstraints.WEST;\n\t\tgbc_infoLabel10.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_infoLabel10.insets = new Insets(0, 0, 0, 0);\n\t\tgbc_infoLabel10.gridx = 0;\n\t\tgbc_infoLabel10.gridy = 0;\n\t\totherInputsPanel.add(infoLabel10, gbc_infoLabel10);\n\t\t\n\t\trandomGenerationAdvise = new JCheckBox();\n\t\trandomGenerationAdvise.setOpaque(false);\n\t\tGridBagConstraints gbc_randomGenerationAdvise = new GridBagConstraints();\n\t\tgbc_randomGenerationAdvise.anchor = GridBagConstraints.WEST;\n\t\tgbc_randomGenerationAdvise.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_randomGenerationAdvise.insets = new Insets(0, 5, 0, 5);\n\t\tgbc_randomGenerationAdvise.gridx = 1;\n\t\tgbc_randomGenerationAdvise.gridy = 1;\n\t\totherInputsPanel.add(randomGenerationAdvise, gbc_randomGenerationAdvise);\n\t\t\n\t\tJLabel infoLabel11 = new JLabel(\"<html><center><font size='4' color='#9e1503'>Advise using random generation method for generating attribute combinations</font></center></html>\");\n\t\tGridBagConstraints gbc_infoLabel11 = new GridBagConstraints();\n\t\tgbc_infoLabel11.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_infoLabel11.insets = new Insets(0, 0, 0, 0);\n\t\tgbc_infoLabel11.gridx = 0;\n\t\tgbc_infoLabel11.gridy = 1;\n\t\totherInputsPanel.add(infoLabel11, gbc_infoLabel11);\n\t\t\n\t\tstartTasksButton = new JButton(\" Start Tasks \");\n\t\tGridBagConstraints gbc_startTasksButton = new GridBagConstraints();\n\t\tgbc_startTasksButton.fill = GridBagConstraints.VERTICAL;\n\t\tgbc_startTasksButton.insets = new Insets(5, 0, 10, 0);\n\t\tgbc_startTasksButton.gridx = 0;\n\t\tgbc_startTasksButton.gridy = 3;\n\t\tadd(startTasksButton, gbc_startTasksButton);\n\t\tstartTasksButton.addActionListener(this);\n\t\t\n\t\tsetSummary();\n\t}", "private void handleBrowse() {\n\t\tContainerSelectionDialog dialog = new ContainerSelectionDialog(\n\t\t\t\tgetShell(), ResourcesPlugin.getWorkspace().getRoot(), false,\n\t\t\t\t\"Select new file container\");\n\t\tif (dialog.open() == ContainerSelectionDialog.OK) {\n\t\t\tObject[] result = dialog.getResult();\n\t\t\tif (result.length == 1) {\n\t\t\t\tcontainerSourceText.setText(((Path) result[0]).toString());\n\t\t\t}\n\t\t}\n\t}", "private void populate() {\n\n adapter = new DashboardRecyclerAdapter(getActivity(), getData());\n dashboardRecyclerView.setAdapter(adapter);\n dashboardRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));\n\n\n /*GridAdapter adapter = new GridAdapter(getActivity(), options);\n gridView.setAdapter(adapter);*/\n\n //setting up on click listener in gridview\n /*gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n switch (options[position]) {\n case \"Appliances\":\n startActivity(new Intent(getActivity(), AppliancesActivity.class));\n break;\n *//*case \"Electrical\":\n startActivity(new Intent(getActivity(), ElectricalActivity.class));\n break;*//*\n case \"Wiring\":\n startActivity(new Intent(getActivity(), WiringActivity.class));\n break;\n case \"Plumbing\":\n startActivity(new Intent(getActivity(), PlumbingActivity.class));\n break;\n }\n }\n\n });*/\n }", "public SetExpenseAction(Instances dataset, SelectPrivacySettingsAction privacyAction) {\n\t\tthis.privacyAction = privacyAction;\n\t\tnumOfAttributes = dataset.numAttributes() - 1;\n\t\tnumOfRows = dataset.numInstances();\n\t\tGridBagLayout gridBagLayout = new GridBagLayout();\n\t\tgridBagLayout.columnWeights = new double[]{1.0};\n\t\tgridBagLayout.rowWeights = new double[]{1.0, 0.0, 1.0};\n\t\tsetLayout(gridBagLayout);\n\t\t\n\t\tverticalExpensePanel = new JPanel();\n\t\tverticalExpensePanel.setOpaque(false);\n\t\tGridBagConstraints gbc_verticalExpensePanel = new GridBagConstraints();\n\t\tgbc_verticalExpensePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_verticalExpensePanel.gridx = 0;\n\t\tgbc_verticalExpensePanel.gridy = 0;\n\t\tadd(verticalExpensePanel, gbc_verticalExpensePanel);\n\t\tGridBagLayout gbl_verticalExpensePanel = new GridBagLayout();\n\t\tgbl_verticalExpensePanel.columnWeights = new double[]{1.0};\n\t\tgbl_verticalExpensePanel.rowWeights = new double[]{0.0, 0.0, 0.0};\n\t\tverticalExpensePanel.setLayout(gbl_verticalExpensePanel);\n\t\t\n\t\tsetupVExpenseSlider();\n\t\t\n\t\tJLabel infoLabel1 = new JLabel(\"<html><center><font size='4' color='#033e9e'>Choose Vertical expense budget</font></center></html>\");\n\t\tinfoLabel1.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_infoLabel1 = new GridBagConstraints();\n\t\tgbc_infoLabel1.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel1.anchor = GridBagConstraints.SOUTH;\n\t\tgbc_infoLabel1.insets = new Insets(0, 0, 10, 0);\n\t\tgbc_infoLabel1.gridx = 0;\n\t\tgbc_infoLabel1.gridy = 0;\n\t\tverticalExpensePanel.add(infoLabel1, gbc_infoLabel1);\n\t\t\n\t\tJLabel infoLabel2 = new JLabel(\"<html><center><font size='3' color='#033e9e'>Use this parameter to restrict the number of attribute combinations to try out</font></center></html>\");\n\t\tinfoLabel2.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_infoLabel2 = new GridBagConstraints();\n\t\tgbc_infoLabel2.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel2.anchor = GridBagConstraints.NORTH;\n\t\tgbc_infoLabel2.insets = new Insets(10, 0, 0, 0);\n\t\tgbc_infoLabel2.gridx = 0;\n\t\tgbc_infoLabel2.gridy = 2;\n\t\tverticalExpensePanel.add(infoLabel2, gbc_infoLabel2);\n\t\t\n\t\tJSeparator separator = new JSeparator();\n\t\tGridBagConstraints gbc_separator = new GridBagConstraints();\n\t\tgbc_separator.fill = GridBagConstraints.HORIZONTAL;\n\t\tgbc_separator.gridx = 0;\n\t\tgbc_separator.gridy = 1;\n\t\tadd(separator, gbc_separator);\n\t\t\n\t\tJPanel horizontalExpensePanel = new JPanel();\n\t\thorizontalExpensePanel.setOpaque(false);\n\t\tGridBagConstraints gbc_horizontalExpensePanel = new GridBagConstraints();\n\t\tgbc_horizontalExpensePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_horizontalExpensePanel.gridx = 0;\n\t\tgbc_horizontalExpensePanel.gridy = 2;\n\t\tadd(horizontalExpensePanel, gbc_horizontalExpensePanel);\n\t\tGridBagLayout gbl_horizontalExpensePanel = new GridBagLayout();\n\t\tgbl_horizontalExpensePanel.columnWeights = new double[]{1.0};\n\t\tgbl_horizontalExpensePanel.rowWeights = new double[]{0.0, 0.0, 0.0};\n\t\thorizontalExpensePanel.setLayout(gbl_horizontalExpensePanel);\n\t\t\n\t\tJLabel infoLabel3 = new JLabel(\"<html><center><font size='4' color='#033e9e'>Choose Horizontal expense budget</font></center></html>\");\n\t\tinfoLabel3.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_infoLabel3 = new GridBagConstraints();\n\t\tgbc_infoLabel3.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel3.anchor = GridBagConstraints.SOUTH;\n\t\tgbc_infoLabel3.insets = new Insets(0, 0, 10, 0);\n\t\tgbc_infoLabel3.gridx = 0;\n\t\tgbc_infoLabel3.gridy = 0;\n\t\thorizontalExpensePanel.add(infoLabel3, gbc_infoLabel3);\n\t\t\n\t\thorizontalExpenseSlider = new FloatingSliderPanel(0.0f, 1f, DEFAULT_HORIZONTAL_EXPENSE) {\n\t\t\tprotected void setDescriptionLabelText() {\n\t\t\t\tfloat currentValue = getCurrentValue();\n\t\t\t\tlong numOfRowsInFragmentedDataset = (long) Math.ceil(numOfRows * currentValue);\n\t\t\t\tif(numOfRowsInFragmentedDataset == 0) {\n\t\t\t\t\tif(!switchOffWarnings)\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"The number of rows cannot be 0 !!\", \"Error (0 rows)\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tfloat leastVal = numOfRows == 1 ? 1f : Math.nextUp(1f/numOfRows);\n\t\t\t\t\thorizontalExpenseSlider.setCurrentValue(leastVal);\n\t\t\t\t\thorizontalExpenseSlider.repaint();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString text = \"Use \" + numOfRowsInFragmentedDataset + \" rows out of \" + numOfRows;\n\t\t\t\tinfoLabel.setText(\"<html><center><font size='4' color='#2d0c08'>\" + text + \"</font></center></html>\");\n\t\t\t}\n\t\t};\n\t\tGridBagConstraints gbc_horizontalExpenseSlider = new GridBagConstraints();\n\t\tgbc_horizontalExpenseSlider.insets = new Insets(0, 10, 0, 10);\n\t\tgbc_horizontalExpenseSlider.fill = GridBagConstraints.BOTH;\n\t\tgbc_horizontalExpenseSlider.gridx = 0;\n\t\tgbc_horizontalExpenseSlider.gridy = 1;\n\t\thorizontalExpensePanel.add(horizontalExpenseSlider, gbc_horizontalExpenseSlider);\n\t\t\n\t\tJLabel infoLabel4 = new JLabel(\"<html><center><font size='3' color='#033e9e'>Use this parameter to restrict the number of tuples in each fragmented dataset</font></center></html>\");\n\t\tinfoLabel4.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tGridBagConstraints gbc_infoLabel4 = new GridBagConstraints();\n\t\tgbc_infoLabel4.insets = new Insets(10, 0, 0, 0);\n\t\tgbc_infoLabel4.fill = GridBagConstraints.BOTH;\n\t\tgbc_infoLabel4.anchor = GridBagConstraints.NORTH;\n\t\tgbc_infoLabel4.gridx = 0;\n\t\tgbc_infoLabel4.gridy = 2;\n\t\thorizontalExpensePanel.add(infoLabel4, gbc_infoLabel4);\n\t\t\n\t\tswitchOffWarnings = false;\n\t}", "private void populateContractEstimations(int supplierId, int companyId) {\n\t\t\tcontractEstimationListBox.clear();\n\t\t\tcontractEstimationListBox.clearFilters();\n\t\t\tsetContractEstimationFilters(supplierId, companyId);\n\t\t\tcontractEstimationListBox.populate(bmoRequisition.getContractEstimationId());\n\t\t}", "@SuppressWarnings(\"static-access\")\n private void fillBBSGui(BBSStep theBBSStep) {\n \n this.stepExplorerStepNameText.setText(theBBSStep.getName());\n BBSStepData stepData = BBSStepDataManager.getInstance().getStepData(theBBSStep.getName());\n BBSStepData inheritedData = BBSStepDataManager.getInstance().getInheritedStepData(theBBSStep);\n \n //sources\n stepExplorerNSources.setBackground(DEFAULT);\n this.fillList(this.stepExplorerNSourcesList,new ArrayList<String>());\n if(stepData.getSources() != null){\n if(stepData.getSources().size()>0){\n this.useAllSourcesCheckbox.setSelected(false);\n this.fillList(this.stepExplorerNSourcesList,stepData.getSources());\n \n }else{\n this.useAllSourcesCheckbox.setSelected(true);\n }\n stepExplorerNSources.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getSources() != null){\n \n if(inheritedData.getSources().size()>0){\n this.useAllSourcesCheckbox.setSelected(false);\n this.fillList(this.stepExplorerNSourcesList,inheritedData.getSources());\n \n }else{\n this.useAllSourcesCheckbox.setSelected(true);\n }\n stepExplorerNSources.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.useAllSourcesCheckbox.setSelected(false);\n stepExplorerNSources.setBackground(NOT_DEFINED);\n }\n }\n\n //instrument model \n stepExplorerInstrumentModel.setBackground(DEFAULT);\n this.fillList(this.stepExplorerInstrumentModelList,new ArrayList<String>());\n if(stepData.getInstrumentModel() != null){\n if(stepData.getInstrumentModel().size()>0){\n this.noInstrumentModelCheckbox.setSelected(false);\n this.fillList(this.stepExplorerInstrumentModelList,stepData.getInstrumentModel());\n \n }else{\n this.noInstrumentModelCheckbox.setSelected(true);\n }\n stepExplorerInstrumentModel.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getInstrumentModel() != null){\n \n if(inheritedData.getInstrumentModel().size()>0){\n this.noInstrumentModelCheckbox.setSelected(false);\n this.fillList(this.stepExplorerInstrumentModelList,inheritedData.getInstrumentModel());\n \n }else{\n this.noInstrumentModelCheckbox.setSelected(true);\n }\n stepExplorerInstrumentModel.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.noInstrumentModelCheckbox.setSelected(false);\n stepExplorerInstrumentModel.setBackground(NOT_DEFINED);\n }\n }\n\n// //extra sources\n// stepExplorerESources.setBackground(DEFAULT);\n// this.stepExplorerModifyESourceText.setText(\"\");\n// this.fillList(this.stepExplorerESourcesList,new ArrayList<String>());\n// if(stepData.getExtraSources() != null){\n// if(stepData.getExtraSources().size()>0){\n// this.useExtraSourcesCheckbox.setSelected(true);\n// this.fillList(this.stepExplorerESourcesList,stepData.getExtraSources());\n \n// }else{\n// this.useExtraSourcesCheckbox.setSelected(false);\n// }\n// stepExplorerESources.setBackground(NOT_INHERITED_FROM_PARENT);\n \n// }else{\n// if(inheritedData.getExtraSources() != null){\n// if(inheritedData.getExtraSources().size()>0){\n// this.useExtraSourcesCheckbox.setSelected(true);\n// this.fillList(this.stepExplorerESourcesList,inheritedData.getExtraSources());\n \n// }else{\n// this.useExtraSourcesCheckbox.setSelected(false);\n// }\n// stepExplorerESources.setBackground(INHERITED_FROM_PARENT);\n// }else{\n// this.useExtraSourcesCheckbox.setSelected(true);\n// stepExplorerESources.setBackground(NOT_DEFINED);\n// }\n// }\n //output data column\n \n this.stepExplorerOutputDataPanel.setBackground(DEFAULT);\n this.stepExplorerOutputDataText.setText(\"\");\n if(stepData.getOutputDataColumn() != null){\n if(!stepData.getOutputDataColumn().equals(\"\")){\n this.writeOutputCheckbox.setSelected(false);\n this.stepExplorerOutputDataText.setText(stepData.getOutputDataColumn());\n \n }else{\n this.writeOutputCheckbox.setSelected(true);\n }\n stepExplorerOutputDataPanel.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getOutputDataColumn() != null){\n if(!inheritedData.getOutputDataColumn().equals(\"\")){\n this.writeOutputCheckbox.setSelected(false);\n this.stepExplorerOutputDataText.setText(inheritedData.getOutputDataColumn());\n \n }else{\n this.writeOutputCheckbox.setSelected(true);\n }\n stepExplorerOutputDataPanel.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.writeOutputCheckbox.setSelected(false);\n stepExplorerOutputDataPanel.setBackground(NOT_DEFINED);\n }\n }\n\n \n //time\n this.integrationTimeText.setBackground(DEFAULT);\n if(stepData.getIntegrationTime() != -1.0){\n this.integrationTimeText.setText(\"\"+stepData.getIntegrationTime());\n this.integrationTimeText.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getIntegrationTime() != -1.0){\n this.integrationTimeText.setText(\"\"+inheritedData.getIntegrationTime());\n integrationTimeText.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.integrationTimeText.setText(\"\");\n integrationTimeText.setBackground(NOT_DEFINED);\n }\n }\n //frequency\n this.integrationFrequencyText.setBackground(DEFAULT);\n if(stepData.getIntegrationFrequency() != -1.0){\n this.integrationFrequencyText.setText(\"\"+stepData.getIntegrationFrequency());\n this.integrationFrequencyText.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getIntegrationFrequency() != -1.0){\n this.integrationFrequencyText.setText(\"\"+inheritedData.getIntegrationFrequency());\n integrationFrequencyText.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.integrationFrequencyText.setText(\"\");\n integrationFrequencyText.setBackground(NOT_DEFINED);\n }\n }\n\n //correlation\n //type\n this.stepExplorerCorrelationTypeList.setBackground(DEFAULT);\n if(stepData.getCorrelationType() != null){\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,stepData.getCorrelationType());\n this.stepExplorerCorrelationTypeList.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getCorrelationType() != null){\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,inheritedData.getCorrelationType());\n stepExplorerCorrelationTypeList.setBackground(INHERITED_FROM_PARENT);\n \n }else{\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,new ArrayList<String>());\n stepExplorerCorrelationTypeList.setBackground(NOT_DEFINED);\n }\n }\n //selection\n this.stepExplorerCorrelationSelectionBox.setBackground(DEFAULT);\n if(stepData.getCorrelationSelection() != null){\n this.stepExplorerCorrelationSelectionBox.setSelectedItem(stepData.getCorrelationSelection());\n this.stepExplorerCorrelationSelectionBox.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getCorrelationSelection() != null){\n this.stepExplorerCorrelationSelectionBox.setSelectedItem(inheritedData.getCorrelationSelection());\n stepExplorerCorrelationSelectionBox.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.stepExplorerCorrelationSelectionBox.setSelectedIndex(0);\n stepExplorerCorrelationSelectionBox.setBackground(NOT_DEFINED);\n }\n }\n //Baseline Selection\n this.BaselineSelectionPanel.setBackground(DEFAULT);\n this.baselineStation1Text.setText(\"\");\n this.baselineStation2Text.setText(\"\");\n this.fillBaselineTableFromArrayLists(new ArrayList<String>(),new ArrayList<String>());\n \n if(stepData.getStation1Selection() != null && stepData.getStation2Selection() != null){\n ArrayList<String> station1 = stepData.getStation1Selection();\n ArrayList<String> station2 = stepData.getStation2Selection();\n if(station1.size()>0 && station2.size()>0){\n this.baselineUseAllCheckbox.setSelected(false);\n this.fillBaselineTableFromArrayLists(station1,station2);\n }else{\n this.baselineUseAllCheckbox.setSelected(true);\n }\n this.BaselineSelectionPanel.setBackground(NOT_INHERITED_FROM_PARENT);\n }else{\n if(inheritedData.getStation1Selection() != null && inheritedData.getStation2Selection() != null){\n ArrayList<String> station1 = inheritedData.getStation1Selection();\n ArrayList<String> station2 = inheritedData.getStation2Selection();\n if(station1.size()>0 && station2.size()>0){\n this.baselineUseAllCheckbox.setSelected(false);\n this.fillBaselineTableFromArrayLists(station1,station2);\n }else{\n this.baselineUseAllCheckbox.setSelected(true);\n }\n BaselineSelectionPanel.setBackground(INHERITED_FROM_PARENT);\n }else{\n baselineStationsTable.clearSelection();\n this.baselineUseAllCheckbox.setSelected(false);\n this.BaselineSelectionPanel.setBackground(NOT_DEFINED);\n }\n }\n //Operation type\n \n this.stepExplorerOperationComboBox.setBackground(DEFAULT);\n if(stepData.getOperationName() == null){\n if(inheritedData.getOperationName() != null){\n this.stepExplorerOperationComboBox.setSelectedItem(inheritedData.getOperationName());\n stepExplorerOperationComboBox.setBackground(INHERITED_FROM_PARENT);\n this.loadStepOperationsPanel(this.stepOperationPanels.get(inheritedData.getOperationName()),stepData,inheritedData);\n }else{\n this.stepExplorerOperationComboBox.setSelectedItem(\"NOT DEFINED\");\n this.seOperationAttributesScrollPane.getViewport().removeAll();\n stepExplorerOperationComboBox.setBackground(NOT_DEFINED);\n }\n }else{\n this.stepExplorerOperationComboBox.setSelectedItem(stepData.getOperationName());\n this.stepExplorerOperationComboBox.setBackground(NOT_INHERITED_FROM_PARENT);\n this.loadStepOperationsPanel(this.stepOperationPanels.get(stepData.getOperationName()),stepData,inheritedData);\n \n }\n }", "@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }", "private static void addSelection(String type,\n JSONObject jsonSel,\n SenseiRequest req,\n final Map<String, String[]> facetInfoMap)\n throws Exception\n {\n\n BrowseSelection sel = null;\n if(RequestConverter2.SELECTIONS_TERM.equals(type))\n {\n Iterator<String> iter = jsonSel.keys();\n if(iter.hasNext()){\n String facet = iter.next();\n JSONObject jsonParams = jsonSel.optJSONObject(facet);\n String value = jsonParams.optString(RequestConverter2.SELECTIONS_TERM_VALUE, null);\n if(facet!= null && value != null)\n {\n sel = new BrowseSelection(facet);\n String[] vals = new String[1];\n vals[0] = value;\n sel.setValues(formatValues(facet, vals, facetInfoMap));\n updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM));\n req.addSelection(sel);\n }\n }\n }\n else if(RequestConverter2.SELECTIONS_TERMS.equals(type))\n {\n Iterator<String> iter = jsonSel.keys();\n if(iter.hasNext()){\n String facet = iter.next();\n JSONObject jsonParams = jsonSel.optJSONObject(facet);\n JSONArray values = jsonParams.optJSONArray(RequestConverter2.SELECTIONS_TERMS_VALUES);\n JSONArray excludes = jsonParams.optJSONArray(RequestConverter2.SELECTIONS_TERMS_EXCLUDES);\n String operator = jsonParams.optString(RequestConverter2.SELECTIONS_TERMS_OPERATOR, RequestConverter2.SELECTIONS_TERMS_OPERATOR_OR);\n if(facet!= null && (values != null || excludes != null))\n {\n sel = new BrowseSelection(facet);\n ValueOperation op = ValueOperation.ValueOperationOr;\n if(RequestConverter2.SELECTIONS_TERMS_OPERATOR_AND.equals(operator))\n op = ValueOperation.ValueOperationAnd;\n\n if(values != null && values.length()>0){\n sel.setValues(formatValues(facet, getStrings(values), facetInfoMap));\n }\n\n if(excludes != null && excludes.length()>0){\n sel.setNotValues(formatValues(facet, getStrings(excludes), facetInfoMap));\n }\n\n sel.setSelectionOperation(op);\n req.addSelection(sel);\n updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM));\n }\n }\n }\n else if(RequestConverter2.SELECTIONS_RANGE.equals(type))\n {\n Iterator<String> iter = jsonSel.keys();\n if(iter.hasNext()){\n String facet = iter.next();\n JSONObject jsonParams = jsonSel.optJSONObject(facet);\n\n String upper = jsonParams.optString(RequestConverter2.SELECTIONS_RANGE_TO, \"*\");\n String lower = jsonParams.optString(RequestConverter2.SELECTIONS_RANGE_FROM, \"*\");\n boolean includeUpper = jsonParams.optBoolean(RequestConverter2.SELECTIONS_RANGE_INCLUDE_UPPER, true);\n boolean includeLower = jsonParams.optBoolean(RequestConverter2.SELECTIONS_RANGE_INCLUDE_LOWER, true);\n String left = \"[\", right = \"]\";\n if(includeLower == false)\n left = \"(\";\n if(includeUpper == false)\n right = \")\";\n\n String range = left + lower + \" TO \" + upper + right;\n if(facet!= null )\n {\n sel = new BrowseSelection(facet);\n String[] vals = new String[1];\n vals[0] = range;\n sel.setValues(vals);\n req.addSelection(sel);\n updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM));\n }\n }\n }\n else if(RequestConverter2.SELECTIONS_PATH.equals(type))\n {\n Iterator<String> iter = jsonSel.keys();\n if(iter.hasNext()){\n String facet = iter.next();\n JSONObject jsonParams = jsonSel.optJSONObject(facet);\n\n String value = jsonParams.optString(RequestConverter2.SELECTIONS_PATH_VALUE, null);\n\n if(facet != null && value != null){\n sel = new BrowseSelection(facet);\n String[] vals = new String[1];\n vals[0] = value;\n sel.setValues(vals);\n\n if(jsonParams.has(RequestConverter2.SELECTIONS_PATH_STRICT)){\n boolean strict = jsonParams.optBoolean(RequestConverter2.SELECTIONS_PATH_STRICT, false);\n sel.getSelectionProperties().setProperty(PathFacetHandler.SEL_PROP_NAME_STRICT, String.valueOf(strict));\n }\n\n if(jsonParams.has(RequestConverter2.SELECTIONS_PATH_DEPTH)){\n int depth = jsonParams.optInt(RequestConverter2.SELECTIONS_PATH_DEPTH, 1);\n sel.getSelectionProperties().setProperty(PathFacetHandler.SEL_PROP_NAME_DEPTH, String.valueOf(depth));\n }\n\n req.addSelection(sel);\n updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM));\n }\n }\n }\n else if(RequestConverter2.SELECTIONS_CUSTOM.equals(type))\n {\n ;\n }\n else if(RequestConverter2.SELECTIONS_DEFAULT.equals(type))\n {\n ;\n }\n \n }", "private void findAll(View view) {\n facility_RGP_group = view.findViewById(R.id.search_RGP_facility);\n facility_EDT_value = view.findViewById(R.id.search_facility_EDT_value);\n facility_BTN_search = view.findViewById(R.id.search_facility_BTN_search);\n facility_RCV_result = view.findViewById(R.id.search_RCV_facilities);\n facility_LBL_results = view.findViewById(R.id.search_facility_LBL_results);\n }", "private void openPriceFormatOptionsList() {\n driver.findElement(By.xpath(\"//a[contains(@href, 'odds-format')]\")).click();\n TestHelper.waitForAjax();\n //could be replaced by better WaitFor method\n testHelper.sleep(1);\n }", "private void eventActions() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.addClickHandler(new GradeandSubjectFilter());\n\t\tlblStandards.addClickHandler(new StandardsFilter());\n\t\tlblGradesSubj.getElement().setAttribute(\"style\", \"background: #e5e5e5;\");\n\t\tstandardsPanel.setVisible(false);\n\t}", "@Override\n\tpublic void actionPerformed(ActionContext context) {\n\n\t\tif (!(context instanceof DataTypesActionContext)) {\n\t\t\tcollapseAll(plugin.getProvider().getGTree()); // on the toolbar or filter field--collapse all\n\t\t}\n\n\t\tDataTypesActionContext dataTypeContext = (DataTypesActionContext) context;\n\t\tif (dataTypeContext.isToolbarAction()) {\n\t\t\tcollapseAll(plugin.getProvider().getGTree()); // on the toolbar or filter field--collapse all\n\t\t}\n\t\telse {\n\t\t\tDataTypeArchiveGTree gtree = (DataTypeArchiveGTree) context.getContextObject();\n\t\t\tTreePath[] selectionPaths = gtree.getSelectionPaths();\n\t\t\tif (selectionPaths == null || selectionPaths.length != 1) {\n\t\t\t\t// no paths selected; close all paths\n\t\t\t\tcollapseAll(plugin.getProvider().getGTree());\n\t\t\t}\n\n\t\t\tif (selectionPaths != null) {\n\t\t\t\tfor (TreePath path : selectionPaths) {\n\t\t\t\t\tGTreeNode node = (GTreeNode) path.getLastPathComponent();\n\t\t\t\t\tif (node instanceof ArchiveRootNode) { // if the root is selected collapseAll\n\t\t\t\t\t\tcollapseAll(gtree);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tgtree.collapseAll(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void viewAll() {\n click(viewAllLink);\n }", "public void onViewBreakdownButtonClick(View view) {\n //get the list necessary\n ArrayList<Food> currentList = new ArrayList<Food>();\n int position = pager.getCurrentItem();\n\n switch (position) {\n case 0:\n currentList = TrackableList.getTodayFoods();\n break;\n case 1:\n currentList = TrackableList.getD2Foods();\n break;\n case 2:\n currentList = TrackableList.getD3Foods();\n break;\n case 3:\n currentList = TrackableList.getD4Foods();\n break;\n case 4:\n currentList = TrackableList.getD5Foods();\n break;\n case 5:\n currentList = TrackableList.getD6Foods();\n break;\n case 6:\n currentList = TrackableList.getD7Foods();\n break;\n default:\n break;\n\n }\n\n //put into intent today's foods and the current goal\n Intent i = new Intent(this, MealChart.class);\n i.putExtra(\"List\", currentList);\n startActivity(i);\n }", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "private BrowseIndex(String baseName, String type) {\n try {\n number = -1;\n tableBaseName = baseName;\n displayType = type;\n sortOption = SortOption.getDefaultSortOption();\n } catch (SortException se) {\n // FIXME Exception handling\n }\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "private void setGridOnCollectibleSelected() {\n showCardInfo(getNameFromID(selectedCollectibleID));\n setGridColor(Color.GOLD);\n for (int row = 0; row < Map.NUMBER_OF_ROWS; row++) {\n for (int column = 0; column < Map.NUMBER_OF_COLUMNS; column++) {\n ImageView interactor = getInteractor(row, column);\n int finalRow = row, finalColumn = column;\n interactor.setOnMouseClicked(e -> handleUseCollectible(finalRow, finalColumn, false));\n\n }\n }\n }", "@Test()\n public void testGetExpensesByTypeAndYear() {\n\tString type = \"WEEKLY\";\n\tYear year = Year.of(2015);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndYear(type, year);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "private void findViews(View view) {\n list = (RecyclerView)view.findViewById(R.id.listview);\n\n GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2);\n\n list.setLayoutManager(layoutManager);\n list.setHasFixedSize(true);\n\n// imageView = (PhotoDraweeView) view.findViewById(R.id.imageView);\n// imageGallery = (RelativeLayout) view.findViewById(R.id.imageGallery);\n// imageGallery.setVisibility(View.GONE);\n }", "private void findViewsByID() {\n dinnerName = (EditText) findViewById(R.id.add_dinner_edit_dinner_name);\n dinnerCategory = (EditText) findViewById(R.id.add_dinner_edit_category);\n dinnerDescription = (EditText) findViewById(R.id.add_dinner_edit_dinner_description);\n dinnerRating = (RatingBar) findViewById(R.id.add_dinner_edit_rating);\n dateText = (TextView) findViewById(R.id.add_dinner_date_chosen);\n dinnerPrice = (EditText) findViewById(R.id.add_dinner_edit_price);\n dinnerDate = Calendar.getInstance();\n //We want to set the date to the current date\n dateText.setText(new SimpleDateFormat(\"dd-MM-yyyy\", new Locale(\"da\", \"DK\"))\n .format(dinnerDate.getTime()));\n chooseDate = (Button) findViewById(R.id.add_dinner_choose_date_button);\n saveButton = (Button) findViewById(R.id.add_dinner_save_button);\n cancelButton = (Button) findViewById(R.id.add_dinner_cancel_button);\n chooseIngredientsButton = (Button) findViewById(R.id.add_dinner_choose_ingredients);\n gridView = (GridView) findViewById(R.id.add_dinner_ingredient_gridview);\n }", "@Test()\n public void testGetExpensesByTypeAndDay() {\n\tString type = \"DAILY\";\n\tLocalDate date = LocalDate.of(2015, 12, 2);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndDay(type, date);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "private void updateType() {\n /*\n r3 = this;\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getChildCount()\n if (r0 <= 0) goto L_0x0036\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n r1 = 0\n android.view.View r0 = r0.getChildAt(r1)\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n androidx.recyclerview.widget.RecyclerView$ViewHolder r2 = r2.findContainingViewHolder(r0)\n if (r2 == 0) goto L_0x0036\n int r2 = r2.getAdapterPosition()\n if (r2 == 0) goto L_0x0025\n org.telegram.ui.Components.RecyclerListView r0 = r3.gridView\n int r0 = r0.getPaddingTop()\n int r0 = -r0\n goto L_0x0031\n L_0x0025:\n org.telegram.ui.Components.RecyclerListView r2 = r3.gridView\n int r2 = r2.getPaddingTop()\n int r2 = -r2\n int r0 = r0.getTop()\n int r0 = r0 + r2\n L_0x0031:\n androidx.recyclerview.widget.GridLayoutManager r2 = r3.stickersLayoutManager\n r2.scrollToPositionWithOffset(r1, r0)\n L_0x0036:\n r0 = 1\n r3.checkDocuments(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.Components.StickerMasksAlert.updateType():void\");\n }", "private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true);\n } else {\n search_Attendance.setVisible(true);\n }\n }", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}", "@Override\n public void onClick(View v) {\n System.out.println(societyName + \"!!!!!!!!!!!!!!!!!!!!!!\");\n if (societyName == \"\" || societyName.equals(\"\")\n || societyName == \"null\" || societyName == null || sociList.isEmpty() || sociList.size() == 0) {\n Constants.showSnack(v,\n \"Select society!\",\n \"OK\");\n } else if (financialYr == \"\" || financialYr.equals(\"\")\n || financialYr == null || financialYr == \"null\") {\n Constants.showSnack(v,\n \"Select financial year!\",\n \"OK\");\n } else if (monthName == \"\" || monthName.equals(\"\")\n || monthName == null || monthName == \"null\") {\n Constants.showSnack(v,\n \"Select month!\",\n \"OK\");\n } else if (actionType == \"\" || actionType.equals(\"\")\n || actionType == null || actionType == \"null\") {\n Constants.showSnack(v,\n \"Select View/Upload!\",\n \"OK\");\n } else {\n\n if (actionType == \"Upload\" || actionType.equals(\"Upload\")) {\n if (selectedFile == null || selectedFile.toString() == \"null\") {\n Constants.showSnack(v,\n \"Select a file to upload!\",\n \"OK\");\n } else {\n new PostSocietyBill().execute();\n }\n\n\n } else if (actionType == \"View\"\n || actionType.equals(\"View\")) {\n System.out.println(actionType\n + \" ^^^^^^^^^^^^^^^^^^^^^^^^\");\n new ViewBill().execute();\n\n }\n }\n\n }", "private void buildElements() {\n JPanel mainPanel = new JPanel(new BorderLayout());\n\n String[] columnNames = {\n \"Id\",\n \"Number of transaction\",\n \"Transaction price\",\n \"Paid type\",\n \"Buyer\",\n \"Amazon SKU\",\n \"Action\",\n };\n\n Object[][] emptyData = {};\n\n providerTableModel = new DefaultTableModel(emptyData, columnNames);\n\n providerTable = new JTable(providerTableModel) {\n public TableCellRenderer getCellRenderer(int row, int column) {\n return new ProviderTableCellRenderer();\n }\n };\n\n providerTable.addMouseListener(new ProviderTableMouseListener());\n\n providerTable.getTableHeader().setReorderingAllowed(false);\n\n /*providerTable.getColumnModel().getColumn(6).setMinWidth(100);\n providerTable.getColumnModel().getColumn(6).setMaxWidth(100);\n providerTable.getColumnModel().getColumn(6).setPreferredWidth(100);*/\n\n // Set rows height for providerTable (for all rows).\n providerTable.setRowHeight(40);\n\n // Set 'Actions' column width. All buttons normally see.\n //TableColumnModel columnModel = providerTable.getColumnModel();\n //columnModel.getColumn(5).setPreferredWidth(120);\n\n JScrollPane tableScrollPane = new JScrollPane(providerTable);\n\n mainPanel.add(tableScrollPane, BorderLayout.CENTER);\n\n this.add(mainPanel);\n }", "public void load_grid(){\n RecyclerView moduleRecycler = (RecyclerView) findViewById(R.id.semestre_recycler);\n EtudiantSemestreRecycler adapter = new EtudiantSemestreRecycler(this, semestres);\n moduleRecycler.setAdapter(adapter);\n\n LinearLayoutManager manager = new LinearLayoutManager(this);\n manager.setOrientation(RecyclerView.VERTICAL);\n moduleRecycler.setLayoutManager(manager);\n }", "private void findViews() {\n // Buttons first\n closeBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()));\n shareBtn = (ImageButton) findViewById(getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()));\n\n //ProgressBar\n loadingBar = (ProgressBar) findViewById(getApplication().getResources().getIdentifier(\"loadingBar\", \"id\", getApplication().getPackageName()));\n // Image Container\n image = (TouchImageView) findViewById(getApplication().getResources().getIdentifier(\"imageView\", \"id\", getApplication().getPackageName()));\n \n\n // Title TextView\n titleTxt = (TextView) findViewById(getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()));\n }", "private void createTypeDialog(Context context) {\r\n\t\ttypeDialog = new DialogBase(context);\r\n\t\ttypeDialog.setContentView(R.layout.type);\r\n\t\ttypeDialog.setHeader(\"Channels\");\r\n\t\tfinal TextView txtVideos = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvVideos);\r\n\t\tfinal TextView txtChannels = (TextView) typeDialog\r\n\t\t\t\t.findViewById(R.id.tvChannels);\r\n\t\ttxtChannels.setVisibility(View.GONE);\r\n\t\ttxtVideos.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\ttypeDialog.dismiss();\r\n\t\t\t\tIntent i = new Intent(getApplicationContext(), MyVideosTabletActivity.class);\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public ListeSeancesAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n switch (viewType) {\n case 1 : return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_button_exporter, parent, false));\n default: return new ViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_seance, parent, false));\n }\n }", "private\n void\n createReportAndDisplayResults(Date start, Date end, TotalFilter filter)\n {\n CategoryReport report = CategoryReport.createReport(start, end, filter);\n IncomeExpenseTotal expenses = new IncomeExpenseTotal(EXPENSE_SUMMARY, TOTAL.toString());\n IncomeExpenseTotal income = new IncomeExpenseTotal(INCOME_SUMMARY, TOTAL.toString());\n\n // Add expense totals.\n for(IncomeExpenseTotal total : report.getExpenses())\n {\n getExpensePanel().getTable().add(total);\n\n // Combine all the expense totals into the total.\n expenses.setAmount(expenses.getAmount() + total.getAmount());\n }\n\n getExpensePanel().getTable().add(expenses);\n\n // Add income totals.\n for(IncomeExpenseTotal total : report.getIncome())\n {\n getIncomePanel().getTable().add(total);\n\n // Combine all the income totals into the total.\n income.setAmount(income.getAmount() + total.getAmount());\n }\n\n getIncomePanel().getTable().add(income);\n\n // Add transfer totals.\n for(TransferTotal total : report.getTransfers())\n {\n getTransferPanel().getTable().add(total);\n }\n\n // Display results.\n getExpensePanel().getTable().display();\n getIncomePanel().getTable().display();\n getTransferPanel().getTable().display();\n }", "@Test\n public void BrowseUser() {\n openActionBarOverflowOrOptionsMenu(getInstrumentation().getTargetContext());\n\n //Click search\n onView(withText(R.string.fetch_user))\n .perform(click());\n\n //Click hearth\n onView(withId(R.id.hearth_button))\n .perform(click());\n\n //Opens the overflow menu\n openActionBarOverflowOrOptionsMenu(getInstrumentation().getTargetContext());\n\n //Click search\n onView(withText(R.string.browse_local))\n .perform(click());\n\n //Click second element recycler\n onView(withRecyclerView(R.id.recycler)\n .atPositionOnView(1, R.id.img))\n .perform(click());\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlineBlue.setVisibility(View.VISIBLE);\n\t\t\t\tlinePink.setVisibility(View.INVISIBLE);\n\n\t\t\t\tConstants.exType = \"conference\";\n\t\t\t\t\n\t\t\t\tif(Constants.flag.equalsIgnoreCase(\"venueWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetVenueWiseExb();\n\t\t\t\t}\n\t\t\t\telse if(Constants.flag.equalsIgnoreCase(\"cityWise\"))\n\t\t\t\t{\n\t\t\t\t\tgetCityWisePaging();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tgetCategorizedData();\n\t\t\t\t}\n\t\t\t}", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "private void initElements() {\n unitImplementation = new UnitImplementation(EMF);\n supplierImplementation = new SupplierImplementation(EMF);\n personnelImplementation = new PersonnelImplementation(EMF);\n userImplementation = new UserImplementation(EMF);\n itemImplementation = new ItemImplementation(EMF);\n stockImplementation = new StockImplementation(EMF);\n salesImplementation = new SalesImplementation(EMF);\n dashboardImplementation = new DashboardImplementation(EMF);\n reportsImplementation = new ReportsImplementation(EMF);\n menuB1Active = MENU_B1_DASHBOARD;\n previousB1Button = b1DashboardButton;\n previousB2Button = b2DashboardButton;\n bigDecimalRenderer = new BigDecimalRenderer(new DecimalFormat(\"#,##0.00\"));\n\n // Set to default view.\n w2B2RadioButtonActionPerformed(null);\n b2DashboardButtonActionPerformed(null);\n w1B1RadioButtonActionPerformed(null);\n b1DashboardButtonActionPerformed(null);\n\n // Set reports date.\n reportsSalesFromDateChooser.setDate(DateUtil.current());\n reportsSalesToDateChooser.setDate(DateUtil.current());\n reportsStocksFromDateChooser.setDate(DateUtil.current());\n reportsStocksToDateChooser.setDate(DateUtil.current());\n reportsStockOutFromDateChooser.setDate(DateUtil.current());\n reportsStockOutToDateChooser.setDate(DateUtil.current());\n reportsSalesFromDateChooser1.setDate(DateUtil.current());\n reportsSalesToDateChooser1.setDate(DateUtil.current());\n reportsStocksFromDateChooser1.setDate(DateUtil.current());\n reportsStocksToDateChooser1.setDate(DateUtil.current());\n reportsStockOutFromDateChooser1.setDate(DateUtil.current());\n reportsStockOutToDateChooser1.setDate(DateUtil.current());\n\n // Set combo box.\n salesStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n stocksStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n stockOutStockComboBox.setModel(stockImplementation.getComboBoxModel(BODEGA_1));\n salesStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n stocksStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n stockOutStockComboBox1.setModel(stockImplementation.getComboBoxModel(BODEGA_2));\n\n // Generate default reports.\n b1GenerateSalesReport();\n b1GenerateStocksReport();\n b1GenerateStockOutReport();\n b2GenerateSalesReport();\n b2GenerateStocksReport();\n b2GenerateStockOutReport();\n\n // Set tables.\n b1SetUnitTable();\n b1SetPersonnelTable();\n b1SetUserTable();\n b1SetItemTable();\n b1SetStockTable();\n b1SetDashboardHotTable();\n b1SetDashboardAlmostOutOfStockTable();\n b2SetUnitTable();\n b2SetPersonnelTable();\n b2SetUserTable();\n b2SetItemTable();\n b2SetStockTable();\n b2SetDashboardHotTable();\n b2SetDashboardAlmostOutOfStockTable();\n\n b1UnitXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UnitXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1PersonnelXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1PersonnelXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UserXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UserXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1ItemXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1ItemXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n stockXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n stockXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardHotXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardHotXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardAlmostOutOfStockXTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardAlmostOutOfStockXTable.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UnitXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UnitXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1PersonnelXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1PersonnelXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1UserXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1UserXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n b1ItemXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n b1ItemXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n stockXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n stockXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardHotXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardHotXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n dashboardAlmostOutOfStockXTable1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n dashboardAlmostOutOfStockXTable1.setHighlighters(HighlighterFactory.createSimpleStriping(HighlighterFactory.CLASSIC_LINE_PRINTER));\n }", "private void showSelectAccountDialog(final NetworkEnum networkType, final MainPanel panel) {\n\n if (panel == null || panel.getActivity() == null) {\n // very weired situation; try to avoid crash.\n return;\n }\n\n final Dialog dialog = new Dialog(panel.getActivity(), R.style.Action_Dialog);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n View dialogView = View.inflate(App.sInstance.getApplicationContext(), R.layout.network_type_chooser, null);\n ((TextView) dialogView.findViewById(R.id.network_dialog_title)).setText(App.sInstance.getString(R.string.action_select_account));\n\n final ListView networks = (ListView) dialogView.findViewById(R.id.network_types);\n\n NetworkApi api = App.sInstance.getNetworkApi(networkType);\n\n final BaseAdapter adapter = new NetworkAccountChooserAdapter(api, new NetworkAccountChooserAdapter.OnDeleteItemListener() {\n @Override\n public void onAccountDelete(NetworkAccount account) {\n NetworkAccountDbAdapter.delete(account.getId());\n ((NetworkAccountChooserAdapter) networks.getAdapter()).dataSetChanged();\n }\n });\n\n networks.setAdapter(adapter);\n\n dialogView.findViewById(R.id.cancel).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n networks.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n openNetworkAccount((NetworkAccount) view.getTag(), null, panel);\n\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n }\n });\n\n dialog.setContentView(dialogView);\n dialog.show();\n\n adjustDialogSize(dialog, panel);\n }", "private void adaptView() {\n adapter = new ViewUserOrder_Adapter(ViewUserOrder.this, R.layout.order_element, listOrder);\n //adapter = new ViewUserOrder_Adapter(this, R.layout.order_element, userOrderList);\n gridView.setAdapter(adapter);\n //Toast.makeText(ViewUserOrder.this, \"Adapted data\", Toast.LENGTH_LONG).show();\n }", "private void selectFieldsToDisplay()\n\t{\n\t\t_X_A0.setEnabled(true);\n\t\t_Y_A0.setEnabled(true);\n\t\tif ( _downStream == ProjectData.CAMS_NO_DOWNSTREAM || \n\t\t _downStream == ProjectData.LEVER_NO_DOWNSTREAM || \n\t\t _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_X_d.setEnabled(false);\n\t\t\t_Y_d.setEnabled(false);\n\t\t}\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE || \n\t\t\t _downStream != ProjectData.LEVER_FOUR_JOIN)\n\t\t{\n\t\t\t_X_s.setEnabled(false);\n\t\t\t_Y_s.setEnabled(false);\n\t\t}\n\t\t_ro_min.setEnabled(true);\n\t\t_L3.setEnabled(true);\n\t\tif ( _camProfile != ProjectData.LEVER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.LEVER_BEAD_CAM &&\n\t\t\t _camProfile != ProjectData.SLIDER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.SLIDER_BEAD_CAM)\n\t\t{\n\t\t\t_L31.setEnabled(false);\n\t\t}\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE ||\n\t\t\t _camType == ProjectData.ROLLER_LEVER && _downStream == ProjectData.LEVER_NO_DOWNSTREAM)\n\t\t{\n\t\t\t_L3p.setEnabled(false);\n\t\t}\n\t\tif ( _downStream == ProjectData.CAMS_NO_DOWNSTREAM || \n\t\t\t _downStream == ProjectData.LEVER_NO_DOWNSTREAM || \n\t\t\t _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_L4.setEnabled(false);\n\t\t}\n\t\t/*On L5 easier to use opposite logic.*/\n\t\t_L5.setEnabled(false);\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE && _downStream == ProjectData.CAMS_CRANK \n\t\t\t\t||\n\t\t\t _camType == ProjectData.ROLLER_LEVER && _downStream == ProjectData.LEVER_FOUR_JOIN)\n\t\t{\n\t\t\t_L5.setEnabled(true);\n\t\t}\n\t\t_L1.setEnabled(false);\n\t\t_rR.setEnabled(true);\n\t\t_rG.setEnabled(true);\n\t\t/*On ep easier to use opposite logic.*/\n\t\t_ep.setEnabled(false);\n\t\tif ( _camProfile == ProjectData.SLIDER_DOUBLE_CAM )\n\t\t{\n\t\t\t_ep.setEnabled(true);\n\t\t}\n\t\t/*On y easier to use opposite logic.*/\n\t\t_y.setEnabled(false);\n\t\tif ( _camType == ProjectData.ROLLER_SLIDE || _downStream == ProjectData.LEVER_PUSHER_TUGS)\n\t\t{\n\t\t\t_y.setEnabled(true);\n\t\t}\n\t\tif ( _downStream == ProjectData.LEVER_NO_DOWNSTREAM ||\n\t\t\t _downStream == ProjectData.CAMS_CRANK)\n\t\t{\n\t\t\t_delta.setEnabled(false);\n\t\t}\n\t\tif ( _camProfile != ProjectData.LEVER_DOUBLE_CAM &&\n\t\t\t _camProfile != ProjectData.LEVER_BEAD_CAM )\t\n\t\t{\n\t\t\t_gama.setEnabled(false);\n\t\t}\n\t\t_miu_an_min.setEnabled(true);\n\t\t_miu_ab_min.setEnabled(true);\n\t\t_n.setEnabled(true);\n\t}", "public void intialiseControls()\n\t{\n\t\t//getting ids add_stock_inventory\n\t\tllOrderListView \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llordersheet);\n\t\tllItemHeader\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llItemHeader);\n\t\tllApproved\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llApproved);\n\t\tllCollectedQty\t \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llCollectedQty);\n\t\tivCollectedSep\t \t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivCollectedSep);\n\t\tivApprovedSep\t \t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivApprovedSep);\n\t\trlWareHouse\t\t\t\t=\t(RelativeLayout) llOrderSheet.findViewById(R.id.rlWareHouse);\n\t\tbtnOrdersheetVerify\t\t=\t(Button)llOrderSheet.findViewById(R.id.btnOrdersheetVerify);\n\t\tbtnPrint_stock_details\t\t=\t(Button)llOrderSheet.findViewById(R.id.btnPrint_stock_details);\n\t\tllOrdersheetVerify\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llOrdersheetVerify);\n\t\tllPrintStockDetail\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llPrintStockDetail);\n\t\tlvItems\t\t\t\t\t=\t(ListView)llOrderSheet.findViewById(R.id.lvItems);\n\t\t\n\t\ttvOrdersheetHeader\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvOrdersheetHeader);\n\t\ttvNoItemFoundBase\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvNoItemFound);\n\t\t\n\t\tllTopLayout\t\t\t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llTopLayout);\n\t\t\n\t\tetSearch\t\t\t=\t(EditText)llOrderSheet.findViewById(R.id.etSearch);\n\t\tetSearch.setHintTextColor(Color.WHITE);\n\t\tivSearchCross\t\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSearchCross);\n\t\t\n\t\tllHeader \t\t=\t(LinearLayout)llOrderSheet.findViewById(R.id.llHeader);\n\t\t\n\t\ttvTotalQtUN\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvTotalQtUN);\n\t\ttvVanQty\t\t=\t(TextView)llOrderSheet.findViewById(R.id.tvVanQty);\n\t\tivSeprator\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSeprator);\n\t\tivSepUN\t\t\t=\t(ImageView)llOrderSheet.findViewById(R.id.ivSepUN);\n\t\t\n\t\tllTopLayout.setVisibility(View.VISIBLE);\n\t\t\n\t\ttvOrdersheetHeader.setVisibility(View.VISIBLE);\n\t\tllPrintStockDetail.setVisibility(View.VISIBLE);\n\t\ttvOrdersheetHeader.setTypeface(AppConstants.Roboto_Condensed_Bold);\n\t\ttvDescription=(TextView) llOrderSheet.findViewById(R.id.tvDescription);\n\t\ttvQty= (TextView) llOrderSheet.findViewById(R.id.tvQty);\n\t\ttvApprovedQty=(TextView) llOrderSheet.findViewById(R.id.tvApprovedQty);\n\t\ttvCollectedQty=(TextView) llOrderSheet.findViewById(R.id.tvCollectedQty);\n\t\t\n refreshLoad();\n\t}", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n\n if(bean.getGroupType() != null && bean.getGroupType().equalsIgnoreCase(NetConstants.G_BOOKMARK_DEFAULT)) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }\n else {\n IntentUtil.openSingleDetailActivity(view.getContext(), NetConstants.G_DEFAULT_SECTIONS, bean, bean.getArticleLink());\n }\n\n\n }", "protected Widget createContents (Def[] defs)\n {\n final Map<Long, Def> byid = new HashMap<Long, Def>();\n for (Def def : defs) {\n byid.put(def.id, def);\n }\n \n FluentTable table = new FluentTable(5, 0, _styles.byname());\n FlowPanel types = null, details = null;\n char c = 0;\n for (final Def def : defs) {\n if (def.name.length() == 0) {\n continue; // skip blank types; TODO: better anonymous inner class handling\n }\n if (def.name.charAt(0) != c) {\n types = Widgets.newFlowPanel();\n details = Widgets.newFlowPanel();\n c = def.name.charAt(0);\n table.add().setText(String.valueOf(c), _styles.Letter()).alignTop().\n right().setWidget(Widgets.newFlowPanel(types, details));\n }\n if (types.getWidgetCount() > 0) {\n InlineLabel gap = new InlineLabel(\" \");\n gap.addStyleName(_styles.Gap());\n types.add(gap);\n }\n \n InlineLabel label = new InlineLabel(def.name);\n label.addClickHandler(new ClickHandler() {\n public void onClick (ClickEvent event) {\n if (_types.get(def.id).get()) {\n _types.get(def.id).update(false);\n } else {\n long outerId = def.id, innerId = 0L;\n Def d = def;\n while (d != null) {\n d = byid.get(d.parentId);\n if (d != null) {\n innerId = outerId;\n outerId = d.id;\n }\n }\n Link.go(Page.PROJECT, _projectId, ProjectPage.Detail.TPS, outerId, innerId);\n }\n }\n });\n new UsePopup.Popper(def.id, label, UsePopup.BY_TYPES, _defmap);\n types.add(label);\n \n // create and add the detail panel (hidden) and bind its visibility to a value\n TypeDetailPanel deets = new TypeDetailPanel(def.id, _defmap, _members);\n Bindings.bindVisible(_types.get(def.id), deets);\n details.add(deets);\n }\n return table;\n }", "@Override\n public int getViewTypeCount() {\n return 2;\n }", "public void checkDefaultData() {\n mListForCurrencyDialog.clear();\n mListForOrganizationsDialog.clear();\n\n mPositionOfCurInList = -1;\n mPositionOfOrgInList = -1;\n for (int i = 0; i < mMainListForActions.size(); i++) {\n if (mMainListForActions.get(i).getCurrency().getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mPositionOfCurInList = i;\n List<OrganizationsEntity> org = mMainListForActions.get(i).getOrganizations();\n for (int j = 0; j < org.size(); j++) {\n if (org.get(j).getId().equals(mOrganizationId)) {\n mPositionOfOrgInList = j;\n }\n }\n }\n mListForCurrencyDialog.add(new RecyclerViewDataDialogList(false,\n mMainListForActions.get(i).getCurrency().getTitleUkr(),\n mMainListForActions.get(i).getCurrency().getTitleRus(),\n mMainListForActions.get(i).getCurrency().getTitleEng()));\n }\n\n if (mPositionOfCurInList == -1) {\n mPositionOfCurInList = 0;\n mCurrencyShortForm = mMainListForActions.get(0).getCurrency().getShortTitle().toUpperCase();\n }\n if (mPositionOfOrgInList == -1) {\n mPositionOfOrgInList = 0;\n mOrganizationId = mMainListForActions.get(mPositionOfCurInList)\n .getOrganizations().get(mPositionOfOrgInList).getId();\n }\n mPreferenceManager.setConverterCurrencyShortForm(mCurrencyShortForm);\n mPreferenceManager.setConverterOrganizationId(mOrganizationId);\n mListForCurrencyDialog.get(mPositionOfCurInList).setChecked(true);\n List<OrganizationsEntity> org = mMainListForActions.get(mPositionOfCurInList).getOrganizations();\n for (int i = 0; i < org.size(); i++) {\n boolean isChecked = false;\n if (mPositionOfOrgInList == i) {\n isChecked = true;\n }\n for (CurrenciesEntity cur : org.get(i).getCurrencies()) {\n if (cur.getShortTitle().toUpperCase().equals(mCurrencyShortForm)) {\n mListForOrganizationsDialog.add(new RecyclerViewDataDialogListOrganizations(isChecked,\n org.get(i), cur));\n }\n }\n }\n getPurchaseAndSaleValue(mPositionOfCurInList, mPositionOfOrgInList);\n }", "public void comboselect(){\n int intPageNum = btnMenu.getSelectedIndex();\n if (intPageNum == 0)\n {\n new Main_menu().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 1)\n {\n new Content_p1().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 2)\n {\n new Content_p2().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 3)\n {\n new Content_p3().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 4)\n {\n new Content_p4().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 5)\n {\n new Content_p5().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 6)\n {\n new Content_p7().setVisible(true);\n this.setVisible(false);\n }\n if (intPageNum == 7)\n {\n new Wrap_Up().setVisible(true);\n this.setVisible(false);\n }\n }", "private void updateColumnSelections(FileType type) {\r\n\t\tswitch(type) {\r\n\t\t\tcase POS:\r\n\t\t\t\tthis.setPOSHeadersToTable();\r\n\t\t\t\tbreak;\r\n\t\t\tcase UNCAPTURED_AUTH:\r\n\t\t\t\tthis.loadUncapturedHeaders();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAPTURED:\r\n\t\t\t\tthis.loadCapturedHeaders();\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\tpublic int getViewTypeCount() {\n\t\treturn 2;\n\t}", "@Override\n\tpublic int getViewTypeCount() {\n\t\treturn 2;\n\t}", "private ElementSelection getSelectedElements()\n {\n final int[] rowViewIndexes = this.getSelectedRows();\n final NetPlan np = callback.getDesign();\n\n final List<NetworkElement> elementList = new ArrayList<>();\n final List<Pair<Demand, Link>> frList = new ArrayList<>();\n\n if (rowViewIndexes.length != 0)\n {\n final int maxValidRowIndex = model.getRowCount() - 1 - (hasAggregationRow() ? 1 : 0);\n final List<Integer> validRows = new ArrayList<Integer>();\n for (int a : rowViewIndexes) if ((a >= 0) && (a <= maxValidRowIndex)) validRows.add(a);\n\n if (networkElementType == NetworkElementType.FORWARDING_RULE)\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final String demandInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_DEMAND);\n final String linkInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_OUTGOINGLINK);\n final int demandIndex = Integer.parseInt(demandInfo.substring(0, demandInfo.indexOf(\"(\")).trim());\n final int linkIndex = Integer.parseInt(linkInfo.substring(0, linkInfo.indexOf(\"(\")).trim());\n frList.add(Pair.of(np.getDemand(demandIndex), np.getLink(linkIndex)));\n }\n } else\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final long id = (long) getModel().getValueAt(viewRowIndex, 0);\n elementList.add(np.getNetworkElement(id));\n }\n }\n }\n\n // Parse into ElementSelection\n final Pair<List<NetworkElement>, List<Pair<Demand, Link>>> selection = Pair.of(elementList, frList);\n final boolean nothingSelected = selection.getFirst().isEmpty() && selection.getSecond().isEmpty();\n\n // Checking for selection type\n final ElementSelection elementHolder;\n\n if (!nothingSelected)\n {\n if (!selection.getFirst().isEmpty())\n elementHolder = new ElementSelection(NetworkElementType.getType(selection.getFirst()), selection.getFirst());\n else if (!selection.getSecond().isEmpty())\n elementHolder = new ElementSelection(selection.getSecond());\n else elementHolder = new ElementSelection();\n } else\n {\n elementHolder = new ElementSelection();\n }\n\n return elementHolder;\n }", "@Override\n\t\tpublic int getViewTypeCount() {\n\t\t\treturn 2;\n\t\t}", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "protected void getPlotAndGridInfo(windowType iWinType) throws ModelException {\n GUIManager oManager = m_oDisturbanceBehaviors.getGUIManager();\n\n //Get the plot lengths\n Plot oPlot = oManager.getPlot();\n m_iPlotLengthX = (int) oPlot.getPlotXLength();\n m_iPlotLengthY = (int) oPlot.getPlotYLength();\n\n //Get the grid information\n Grid oGrid = null;\n if (windowType.harvest == iWinType) {\n oGrid = oManager.getGridByName(\"harvestmastercuts\");\n } else if (windowType.ep_mort == iWinType) {\n oGrid = oManager.getGridByName(\"mortepisodemastercuts\");\n } else if (windowType.plant == iWinType) {\n oGrid = oManager.getGridByName(\"Planting Results\");\n }\n if (oGrid == null) {\n \n m_fLengthXCells = Plot.CELL_LENGTH;\n m_fLengthYCells = Plot.CELL_LENGTH;\n m_iNumXCells = (int) Math.ceil(m_iPlotLengthX / Plot.CELL_LENGTH);\n m_iNumYCells = (int) Math.ceil(m_iPlotLengthY / Plot.CELL_LENGTH);\n \n } else {\n\n m_fLengthXCells = oGrid.getXCellLength();\n m_fLengthYCells = oGrid.getYCellLength();\n m_iNumXCells = (int) Math.ceil(m_iPlotLengthX / oGrid.getXCellLength());\n m_iNumYCells = (int) Math.ceil(m_iPlotLengthY / oGrid.getYCellLength());\n \n } \n }" ]
[ "0.60689867", "0.5363421", "0.5331586", "0.50590175", "0.5038632", "0.4974713", "0.49712548", "0.49263552", "0.49079567", "0.49010822", "0.4874371", "0.48582628", "0.48465702", "0.4816011", "0.48149714", "0.48115885", "0.48100552", "0.4791843", "0.47904494", "0.47689983", "0.47667226", "0.47586825", "0.47497836", "0.47180998", "0.471468", "0.46983612", "0.4697993", "0.46974865", "0.46793222", "0.46756086", "0.46728706", "0.46718794", "0.4670948", "0.4663642", "0.46600342", "0.46483782", "0.46288544", "0.46282014", "0.4623309", "0.4613812", "0.46080565", "0.45864457", "0.45851636", "0.45680785", "0.45648226", "0.4556709", "0.4551183", "0.4543632", "0.454082", "0.45370725", "0.45215654", "0.4520776", "0.4516383", "0.45121494", "0.45078036", "0.45065874", "0.4504851", "0.44980118", "0.44953877", "0.44922212", "0.44895646", "0.44837338", "0.44832438", "0.44830006", "0.44809347", "0.44799125", "0.4477254", "0.4476975", "0.44747883", "0.44742715", "0.44741473", "0.44726104", "0.44567585", "0.44540557", "0.4450305", "0.44460225", "0.44418496", "0.44394848", "0.44377372", "0.44339472", "0.44302845", "0.44302478", "0.4430079", "0.44295594", "0.44284892", "0.44279662", "0.44257307", "0.44225362", "0.4416975", "0.4416781", "0.4415455", "0.4415074", "0.44103017", "0.44056872", "0.44039214", "0.4403201", "0.4403201", "0.44024253", "0.439961", "0.43992522", "0.43965667" ]
0.0
-1
TODO Autogenerated method stub
public List<ProjectEntity> getProjectByName() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
we don't really have any other information to provide
@Override public Object getDetails() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void m50366E() {\n }", "@Override\n protected void getExras() {\n }", "public void method_4270() {}", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private void kk12() {\n\n\t}", "private stendhal() {\n\t}", "public void mo12628c() {\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n public int describeContents() {\r\n return 0;\r\n }", "public void identify() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "protected boolean func_70041_e_() { return false; }", "@Override\n\t\tpublic int describeContents() {\n\t\t\treturn 0;\n\t\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "private void verificaData() {\n\t\t\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "private void getStatus() {\n\t\t\n\t}", "private void parseData() {\n\t\t\r\n\t}", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract void mo70713b();", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "@Override\n public boolean isGivingInformation() {\n return true;\n }", "public void mo55254a() {\n }", "public abstract String mo13682d();", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public int characteristics() {\n/* 1680 */ return this.characteristics;\n/* */ }", "public static String getInfo() {\n/* 327 */ return \"\";\n/* */ }", "Information getInfo();", "public void mo12930a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }", "public int characteristics() {\n/* 1570 */ return this.characteristics;\n/* */ }", "@Override\n\tpublic void comer() {\n\t\t\n\t}" ]
[ "0.5777603", "0.5772989", "0.5747754", "0.56232285", "0.5591022", "0.5574144", "0.5568047", "0.55676574", "0.5543356", "0.55159855", "0.550813", "0.549134", "0.5486171", "0.5484739", "0.54827243", "0.54685146", "0.545561", "0.54352325", "0.5407114", "0.53868467", "0.5367079", "0.5367079", "0.5367079", "0.5367079", "0.5367079", "0.5367079", "0.5367079", "0.5365137", "0.5363942", "0.5342104", "0.5336458", "0.53333384", "0.5327175", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.531036", "0.5309459", "0.53035706", "0.5296408", "0.5292194", "0.52861255", "0.5280344", "0.5280344", "0.5277355", "0.5275667", "0.52461845", "0.52461845", "0.52461845", "0.52461845", "0.52461845", "0.5245286", "0.52423716", "0.52379125", "0.52205396", "0.52141714", "0.5206915", "0.5198164", "0.5194726", "0.5194726", "0.5184236", "0.51832813", "0.5182199", "0.5178018", "0.51747245", "0.5167453", "0.5165166", "0.5148612", "0.51436454", "0.5143282", "0.5136866", "0.5136688", "0.5135674", "0.5129304", "0.5126795" ]
0.0
-1
use the IPerson object as the principal
@Override public IPerson getPrincipal() { return this.person; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Principal getPrincipal();", "@Override\n public Principal getUserPrincipal() {\n return principal;\n }", "@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}", "@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}", "public String getPrincipal() {\n return principal;\n }", "public Principal getPrincipal() {\n return this.principal;\n }", "@Override\n public Object getPrincipal() {\n return null;\n }", "public Principal getUserPrincipal() {\n return userPrincipal;\n }", "public String getPrincipal() {\n\t\treturn this.principal;\n\t}", "@Override\n\tpublic Object getPrincipal() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic Principal getUserPrincipal() {\n\t\t\treturn null;\n\t\t}", "public boolean setPrincipal(Principal user);", "protected java.security.Principal getPrincipal()\r\n {\r\n return es.pode.dri.negocio.PrincipalStore.get();\r\n }", "@Override\n\tpublic Person findSelf() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\treturn p;\n\t}", "org.beangle.security.session.protobuf.Model.Account getPrincipal();", "private static Principal getPrincipal(String name) {\n return new Principal() {\n @Override\n public String getName() {\n return name;\n }\n };\n }", "@Override\n\tpublic Principal getUserPrincipal() {\n\t\treturn null;\n\t}", "public String getPrincipal() {\n String principal = properties.getProperty(MESOS_PRINCIPAL, DEFAULT_MESOS_PRINCIPAL);\n if (principal.isEmpty()) {\n return DEFAULT_MESOS_PRINCIPAL;\n }\n return principal;\n }", "public IAuthorizationPrincipal getPrincipal(IPermission permission)\n throws AuthorizationException;", "public PrincipalSinUsuario(Principal principal) {\n initComponents();\n this.principal = principal;\n }", "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "private String getPrincipal(){\n String userName = null;\n Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n if (principal instanceof UserDetails) {\n userName = ((UserDetails)principal).getUsername();\n } else {\n userName = principal.toString();\n }\n return userName;\n }", "@Override\n\tpublic BasePrincipal getPrincipal()\n\t{\n\t\treturn (this.getPrincipals().isEmpty() ? null : this.getPrincipals().get());\n\t}", "@Override\n\tpublic User auth()\n\t{\n\t\treturn this.user;\n\t}", "private String getPrincipal() {\r\n\t\tString userName = null;\r\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n\r\n\t\tif (principal instanceof UserDetails) {\r\n\t\t\tuserName = ((UserDetails) principal).getUsername();\r\n\t\t} else {\r\n\t\t\tuserName = principal.toString();\r\n\t\t}\r\n\t\treturn userName;\r\n\t}", "public double getPrincipal ()\n {\n return principal;\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Account getPrincipal() {\n return principal_ == null ? org.beangle.security.session.protobuf.Model.Account.getDefaultInstance() : principal_;\n }", "public Principal getEffectiveUserPrincipal() {\n if (this.loggedIn && this.userPrincipal != null) {\n return this.userPrincipal;\n }\n return EVERYONE;\n }", "private String getPrincipal() {\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails) {\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t} else {\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "@Override\r\n\tpublic Principal getOwner() {\n\t\treturn null;\r\n\t}", "protected abstract void applyPrinciple();", "void setPrincipal(@NotNull TBItem item) {\n synchronized (this) {\n NST.setPrincipal(myNativePeer, item.getUid());\n }\n }", "public void setPrincipal(String principal) {\n this.principal = principal == null ? null : principal.trim();\n }", "public JFramePrincipal() {\n initComponents();\n controladorPrincipal = new ControladorPrincipal(this);\n }", "@Test\n public void testAuthenticatedCall() throws Exception {\n final Callable<Void> callable = () -> {\n try {\n final Principal principal = whoAmIBean.getCallerPrincipal();\n Assert.assertNotNull(\"EJB 3.1 FR 17.6.5 The container must never return a null from the getCallerPrincipal method.\", principal);\n Assert.assertEquals(\"user1\", principal.getName());\n } catch (RuntimeException e) {\n e.printStackTrace();\n Assert.fail(((\"EJB 3.1 FR 17.6.5 The EJB container must provide the caller?s security context information during the execution of a business method (\" + (e.getMessage())) + \")\"));\n }\n return null;\n };\n Util.switchIdentitySCF(\"user1\", \"password1\", callable);\n }", "public Principal() {\r\n\t\tinitialize();\r\n\t}", "private void arrancaHiloPrincipal() {\n //Creo objeto hilo principal\n HiloPrincipal hilo = new HiloPrincipal(this);\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public Imperson getImperson()\n\t{\n\t\treturn imperson;\n\t}", "public Principal()\n {\n\n }", "public String getPrincipalId() {\n\t\treturn principalId;\n\t}", "public Principal getAuthorizationPrincipal() {\n return authorizationPrincipal;\n }", "@Override\n\tpublic void runAs(ISubject subject,Collection<String> principals) {\n\t\t((Subject)subject.getSubject()).runAs(new SimplePrincipalCollection(principals,getRealmName()));\n if(jvmSecurityManager!=null){\n \tjvmSecurityManager.setSubject(subject);\n }\n\n\t}", "@Override\r\n\tpublic Person authenticatePerson(String user, String password)\r\n\t\t\tthrows AuthenticationException {\n\t\treturn null;\r\n\t}", "@GetMapping(\"/oidcpricipal\")\n\tprivate OidcUser getoiduserprincipal(@AuthenticationPrincipal OidcUser pricipals) {\n\t\treturn pricipals;\n\n\t}", "public String getTrilhaPrincipal () {\n\t\treturn trilhaPrincipal;\n\t}", "public Person authenticateUser(Person person) {\n for (Person p: filteredPersons) {\n if (person.isSamePerson(p)) {\n p.login();\n return p;\n }\n }\n return person;\n }", "@RequestMapping(\"/user/myinfo\")\r\n public String myinfo(HttpServletRequest request, Principal principal) throws Exception {\r\n if (principal instanceof UsernamePasswordAuthenticationToken) {\r\n UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken) principal;\r\n CustomUserInfo cui = (CustomUserInfo) upat.getPrincipal();\r\n request.setAttribute(\"member\", cui.getMember());\r\n //Alternative approach,另外一種作法\r\n //request.setAttribute(\"member\", memberManager.findMemberByPrimaryKey(getPrincipalId(principal)));\r\n } else {\r\n request.setAttribute(\"member\", memberManager.findByPrimaryKey(getPrincipalId(principal)));\r\n }\r\n return \"index\";\r\n }", "@Override\n\tpublic String getLogin() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getLogin();\n\t\treturn w;\n\t}", "@Override\n\tpublic String getId() {\n\t\tString pName = ctx.getCallerPrincipal().getName();\n\t\tPerson p = userEJB.findPerson(pName);\n\t\tString id = p.getId()+\"\";\n\t\treturn id;\n\t\t\n\t}", "public Object getUserObject();", "public abstract User getOwner();", "People getObjUser();", "public Person getAccountManagerUser() {\n accountManagerUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(accountManagerSystemIdentifier, accountManagerUser);\n return accountManagerUser;\n }", "public Identity getIdentity()\r\n {\r\n return securityService.findLoggedInIdentity();\r\n }", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "boolean hasPrincipal();", "@Override\n\tpublic IUser getUser() {\n\t\treturn getInnerObject().getUser();\n\t}", "public abstract User getLoggedInUser();", "public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);", "@RequestMapping(\"/user\")\n public Principal user(Principal user) {\n return user;\n }", "public Principal() {\n initComponents();\n ab = new adminbarra(pg_Ordenes);\n }", "public JwtUserIdentity(final JwtPrincipal principal) {\n this.principal = principal;\n }", "private IPersonServiceLocal getPersonService() {\n\t\treturn _businessServicesLocator.getPersonServiceLocal();\n\t}", "public org.beangle.security.session.protobuf.Model.Account getPrincipal() {\n if (principalBuilder_ == null) {\n return principal_ == null ? org.beangle.security.session.protobuf.Model.Account.getDefaultInstance() : principal_;\n } else {\n return principalBuilder_.getMessage();\n }\n }", "public User getUser(){\n return this.getAccountController().getUser();\n }", "public IAuthorizationPrincipal newPrincipal(String key, Class type);", "public String getPrincipalString(IAuthorizationPrincipal principal);", "User getOwner();", "@Override\n\tpublic Person signInProfessor(Person admin) {\n\t\tProfessor pro=null;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tstmt=conn.prepareStatement(\"SELECT ssn,name,department,password FROM Professor WHERE ssn=? and password=?\");\n\t\t\tstmt.setString(1, admin.getSsn());\n\t\t\tstmt.setString(2, admin.getPassword());\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tpro=new Professor(rs.getString(\"name\"),rs.getString(\"ssn\"),\"\", rs.getString(\"department\"));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t}catch(SQLException e){\n\t\t\t\tex=e;\n\t\t\t}finally{\n\t\t\t\tif(conn!=null){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t}catch(SQLException e){\n\t\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\t\tex=e;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(ex!=null){\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t\t}\n\t\treturn pro;\n\t}", "ApplicationUser getUser();", "@RequestMapping(\"/getCurrentUser\")\n\tpublic User getCurrentUser(Principal principal) {\n\t\tUser user = new User();\n\t\tif (null != principal) {\n\t\t\tuser = userService.findByUsername(principal.getName());\n\t\t}\n\n\t\treturn user;\n\t}", "public User getLoggedUser();", "String managedBy();", "public interface IPersonController {\n\n /**\n * Vytvoří nového uživatele.\n *\n * @return boolean\n *\n * @param person\n */\n boolean addPerson(Person person);\n\n /**\n * Deaktivuje uživatele (na jeho účet se nepůjde přihlásit).\n *\n * @return boolean\n *\n * @param person\n */\n boolean deactivatePerson(Person person);\n\n /**\n * Vrátí všechny uživatele\n *\n * @return boolean\n */\n List getAllUsers();\n\n /**\n * Vrátí přihlášeného uživatele.\n *\n * @return\n */\n Person getLoggedPerson();\n\n /**\n * Vrátí uživatele podle ID.\n *\n * @return\n *\n * @param id\n */\n Person getPerson(int id);\n\n /**\n * Zkusí přihlásit uživatele s danými přihlašovacími údaji.\n *\n * @return boolean\n *\n * @param username\n * @param password\n */\n boolean loginPerson(String username, String password);\n\n /**\n * Odhlásí aktuálního uživatele.\n */\n void logout();\n\n /**\n * Odešle GUI pokyn k obnovení.\n */\n void refresh();\n\n}", "public interface AuthorizationMapping {\n\n /**\n * Returns true if the principal is explicity authorized to the JID\n *\n * @param principal The autheticated principal requesting authorization.\n * @return The name of the default username to use.\n */\n String map( String principal );\n\n /**\n * Returns the short name of the Policy\n *\n * @return The short name of the Policy\n */\n String name();\n\n /**\n * Returns a description of the Policy\n *\n * @return The description of the Policy.\n */\n String description();\n}", "public IUser getCurrentUser() {\n return currentUser;\n }", "public UserPrincipalImpl(ApplicationUser user) {\n this.user = user;\n }", "private String getPrincipalUsername()\n\t{\n\t\tString userName = null;\n\t\tObject principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n\t\tif (principal instanceof UserDetails)\n\t\t{\n\t\t\tuserName = ((UserDetails) principal).getUsername();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tuserName = principal.toString();\n\t\t}\n\t\treturn userName;\n\t}", "public String getPrincipalType(){\n return principalType;\n }", "UserDetails getCurrentUser();", "User getPassedUser();", "public interface UserAuthorityService extends AbstractService<UserAuthority, Long> {\n\n void grantNormalAuth(Long userId);\n}", "@Override\n public String getDomain() {\n // return this.userDomain;\n return null; // to support create principal for different domains\n }", "protected AuthenticatedUser getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n\n if (auth.getPrincipal() instanceof AuthenticatedUser) {\n return (AuthenticatedUser) auth.getPrincipal();\n }\n\n return null;\n }", "public PersonAndOrganization getOwningUser()\r\n\t{\r\n\t\treturn owningUser;\r\n\t}", "@Override\n public User getUser() {\n return user;\n }", "@Override\n public User getUser() {\n return user;\n }", "public FrameCadastroUsuario(Principal principal) {\n initComponents();\n\t\tthis.principal = principal;\n }", "People getUser();", "public abstract User getUser();", "public IUser getCreatorObject()\n throws OculusException;", "User getUser();", "User getUser();", "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }", "public String getName(Principal principal);", "@GetMapping\n public User getUserByUsername(Principal principal) {return userService.getUserByUsername(principal.getName()); }", "@java.lang.Override\n public boolean hasPrincipal() {\n return principal_ != null;\n }", "User getCurrentLoggedInUser();", "@Override\r\n\tpublic User getAuthenticatedUser()\r\n\t{\n\t\treturn userWpJauRestClientImpl.getUser().getUser();\r\n\t}", "void setUser(OSecurityUser user);" ]
[ "0.7485004", "0.73604834", "0.71900827", "0.71900827", "0.6823198", "0.6797746", "0.6661406", "0.65816396", "0.6520974", "0.6475304", "0.6333731", "0.6315466", "0.62319016", "0.6209367", "0.6160619", "0.6149247", "0.610552", "0.60651517", "0.6019319", "0.59910417", "0.5974304", "0.5974304", "0.5948846", "0.5878256", "0.58712274", "0.5869393", "0.5813416", "0.57827795", "0.57824254", "0.5777677", "0.57417005", "0.571452", "0.5703688", "0.56969607", "0.56444204", "0.56330246", "0.5631082", "0.56224036", "0.56190807", "0.55859464", "0.557407", "0.55576897", "0.5556748", "0.555198", "0.5529132", "0.55283934", "0.5519046", "0.5513705", "0.5512567", "0.55104476", "0.55042285", "0.5497851", "0.54892164", "0.5471135", "0.54537606", "0.5449984", "0.5449926", "0.54438525", "0.544234", "0.543592", "0.542304", "0.5410843", "0.5410556", "0.5404715", "0.53845155", "0.5379513", "0.5378978", "0.53775257", "0.53654635", "0.5357482", "0.5355222", "0.53526294", "0.53489363", "0.5344863", "0.53413874", "0.53356165", "0.53350335", "0.533242", "0.533046", "0.5324904", "0.53213435", "0.53144", "0.5311751", "0.52928925", "0.52829945", "0.5276925", "0.5276925", "0.52705806", "0.52664804", "0.5262908", "0.52572584", "0.5257186", "0.5257186", "0.5255892", "0.5252296", "0.5252103", "0.5250232", "0.5243873", "0.52405375", "0.5220766" ]
0.78510237
0
delegate to the portal to determine authentication state
@Override public boolean isAuthenticated() { return !person.isGuest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean authNeeded();", "boolean isAuthenticated();", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "boolean hasAuth();", "private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }", "public AuthenticationState getAuthenticationState() {\n return authenticationState;\n }", "private void userIsAuthenticated() {\n this.setResult(RC_USER_LOGGED_IN, null);\n this.finish();\n }", "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "public static String getCheckAuthentication() {\n\n\t\treturn baseURL + login_required_string + \"/rest/is-authenticated\";\n\t}", "private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }", "@Override\n public void onAuthenticationFailed() {\n }", "public void authenticate(LoginRequest loginRequest) {\n\n }", "@Override\n protected void afterAuthenticating() {\n }", "public abstract boolean isLoginRequired();", "boolean hasLoginResponse();", "@Override\r\n\tpublic int LoginState(Context _in_context) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int LoginState(Context _in_context) {\n\t\treturn 0;\r\n\t}", "public boolean hasLoginAdvice();", "@Override\n public void onAuthenticationFailed() {\n }", "boolean hasLoginRequest();", "@Override\n public JsonResponse duringAuthentication(String... params) {\n try {\n final String username = params[0];\n final String password = params[1];\n return RequestHandler.authenticate(this.getApplicationContext(), username, password);\n } catch (IOException e) {\n return null;\n }\n }", "boolean hasLogin();", "boolean hasLogin();", "public abstract boolean isLoggedIn();", "public boolean hasCredentials(){\r\n return state;\r\n }", "private AuthenticationSuccessHandler authenticationSuccessHandler() {\r\n return (HttpServletRequest request, HttpServletResponse response, Authentication auth) -> {\r\n auditLogger.logAccess((String) auth.getPrincipal(),\r\n AuditLogger.Areas.MGMT_UI,\r\n AuditLogger.Ops.LOGIN, null);\r\n prepareResponse(response, auth, HttpStatus.OK, null);\r\n };\r\n }", "boolean isLoginAvailable();", "public void setAuthenticated() {\n\t\tthis.state = State.AUTHENTICATED;\n\t}", "private void checkIfUserIsAuthenticated() {\n splashViewModel.checkIfUserIsAuthenticated();\n splashViewModel.getIsUserAuthenticated().observe(this, user -> {\n if (!user.isAuthenticated()) {\n startAuthActivity();\n finish();\n } else {\n getUserFromDatabase(user.getUid());\n }\n });\n }", "AuthenticationData getInitiatorAuthData();", "boolean hasLoginapiavgrtt();", "boolean isAuthenticate(String username, String password) throws UserDaoException;", "protected void onSuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, Authentication authResult) throws IOException {\n }", "int getLoginFlag();", "public boolean authenticationSucceeded() {\n\t\treturn authenticated;\n\t}", "public abstract boolean showLogin();", "@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}", "public boolean getDoAuthentication() {\n return doAuthentication;\n }", "protected boolean authenticate() {\n \tif (mConfig == null) {\n \t\tmConfig = getConfig();\n \t}\n \tString keys[] = getKeys();\n \tif (keys != null) {\n\t mConfig = api.authenticateToken(keys[0], keys[1], mConfig);\n\t if (mConfig != null) {\n\t return true;\n\t }\n \t}\n \tshowToast(\"Failed user authentication for stored login tokens.\");\n \tclearKeys();\n \tsetLoggedIn(false);\n \treturn false;\n }", "public boolean loginUser();", "@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }", "protected void login() {\n\t\t\r\n\t}", "public boolean isAuthenticated() {\n \t\treturn authenticated;\n \t}", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "public void authenticateUser() {\n\n String username = viewUsername.getText().toString();\n String password = viewPassword.getText().toString();\n\n Timber.v(\"authenticateUser called username: \" + username);\n activity.getOnboardingViewModel().authenticateUser(username, password);\n }", "@Override\n\tpublic boolean isAuthenticated() {\n\t\treturn isAuthenticated;\n\t}", "boolean hasLoggedIn();", "Boolean isLogIn();", "public boolean isUserLoggedIn();", "public User doAuthentication(String account, String password);", "public abstract void onLogin();", "public static void authenticate() {\n\n Stage window = new Stage();\n\n final String url = OAUTH_URL + getQuery();\n\n BorderPane borderPane = new BorderPane();\n WebView browser = new WebView();\n WebEngine webEngine = browser.getEngine();\n\n webEngine.load(url);\n borderPane.setCenter(browser);\n\n webEngine.setOnStatusChanged(event -> {\n if (event.getSource() instanceof WebEngine) {\n WebEngine we = (WebEngine) event.getSource();\n String location = we.getLocation();\n // If we are redirected to REDIRECT_URL we get contents, and send it to verify() to get access token\n if (location.startsWith(REDIRECT_URL) && location.contains(\"code\") && AUTH_OBECT == null) try {\n URL url1 = new URL(location);\n String[] params = url1.getQuery().split(\"&\");\n Map<String, String> map = new HashMap<>();\n for (String param : params) {\n String name = param.split(\"=\")[0];\n String value = param.split(\"=\")[1];\n map.put(name, value);\n }\n String code = map.get(\"code\");\n // We have code so we continue the flow\n verify(code);\n window.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // create scene\n window.setTitle(\"Authentication\");\n Scene scene = new Scene(borderPane, 750, 500);\n window.setScene(scene);\n window.showAndWait();\n }", "int authenticateUser(IDAOSession session, String userName, String password);", "@Override\n public void onAuthenticationSuccessful() {\n startActivity(new Intent(PinViewActivity.this, AuthenticatedActivity.class));\n finish();\n }", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "void onAuthenticationSucceeded(String token);", "public CheckAuthCommand() {\n this.authLevel = AUTH_LEVEL_LOGGED_IN;\n }", "@Override\n public void run() {\n PreferenceManager.getDefaultSharedPreferences(AuthenticatorExample.this)\n .edit().putBoolean(\"is_authenticated\", true).commit();\n // Notify the service that authentication is complete\n notifyAuthenticated();\n // Close the Activity\n finish();\n }", "@Override\n public void clientAuthenticate()\n throws HubIntegrationException {\n try {\n final ArrayList<String> segments = new ArrayList<>();\n segments.add(\"j_spring_security_check\");\n final HttpUrl httpUrl = createHttpUrl(segments, null);\n\n final Map<String, String> content = new HashMap<>();\n final String username = hubServerConfig.getGlobalCredentials().getUsername();\n String password = hubServerConfig.getGlobalCredentials().getEncryptedPassword();\n if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(password)) {\n try {\n password = hubServerConfig.getGlobalCredentials().getDecryptedPassword();\n\n content.put(\"j_username\", username);\n content.put(\"j_password\", password);\n final Request request = createPostRequest(httpUrl, createEncodedRequestBody(content));\n Response response = null;\n try {\n logRequestHeaders(request);\n response = getClient().newCall(request).execute();\n logResponseHeaders(response);\n if (!response.isSuccessful()) {\n throw new HubIntegrationException(response.message());\n }\n } finally {\n if (response != null) {\n response.close();\n }\n }\n } catch (IllegalArgumentException | EncryptionException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }\n } catch (final IOException e) {\n throw new HubIntegrationException(e.getMessage(), e);\n }\n }", "private void authenticate(String user, String pass) {\n }", "public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "public void authenticationProcedure(){\n\t\tthrow new UnsupportedOperationException(\"TODO: auto-generated method stub\");\r\n\t}", "private boolean authenticatedUser(String uName, String pass) {\n\t\treturn true;\n\t}", "int getLoginType();", "private AuthenticationCallback getAuthInteractiveCallback() {\n return new AuthenticationCallback() {\n @Override\n public void onSuccess(AuthenticationResult authenticationResult) {\n activeDirectoryOnSignInSuccess(authenticationResult);\n }\n\n @Override\n public void onError(MsalException exception) {\n // Failed to acquireToken\n Log.d(TAG, \"Interactive authentication failed: \" + exception.toString());\n activeDirectoryOnSignInError(exception);\n }\n\n @Override\n public void onCancel() {\n activeDirectoryOnSignInCancel();\n }\n };\n }", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "public boolean isLoggedin(){\n return STATE.equals(IN);\n }", "private void authenticateUserForSharing() {\n mWeHaveJustAuthenticated = true;\n mSessionData.setCurrentlyAuthenticatingProvider(mSelectedProvider);\n \n /* If the selected provider requires input from the user, go to the user landing view. Or if\n the user started on the user landing page, went back to the list of providers, then selected\n the same provider as their last-used provider, go back to the user landing view. */\n if (mSelectedProvider.requiresInput()) {\n JRUserInterfaceMaestro.getInstance().showUserLanding();\n } else { /* Otherwise, go straight to the web view. */\n JRUserInterfaceMaestro.getInstance().showWebView();\n }\n }", "public boolean auth() throws IOException {\r\n \treturn auth(false);\r\n }", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "EmployeeMaster authenticateUser(int employeeId, String password);", "public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }", "@Override\n public void onAuthenticationSuccess(HttpServletRequest request,\n HttpServletResponse response, Authentication authentication)\n throws IOException, ServletException {\n //TODO 登录成功处理\n\n// logger.error(\"CutomerAuthenticationSuccessHandler test ~~~~~~~~~~~~~~~\");\n\n super.onAuthenticationSuccess(request, response, authentication);\n }", "void loginDetails(LoginSuccess loginSuccess);", "public String getAuthentication() {\r\n return authentication;\r\n }", "public AuthenticationUserVO getAuthenticateVO()\n/* */ throws LoginInterruptedException\n/* */ {\n/* 383 */ AuthenticationUserVO userVO = new AuthenticationUserVO();\n/* 384 */ Map<String, String> extMap = new HashMap();\n/* 385 */ LfwView widget = getCurrentWidget();\n/* 386 */ TextComp userIdComp = (TextComp)widget.getViewComponents().getComponent(\"userid\");\n/* 387 */ TextComp randomImageComp = (TextComp)widget.getViewComponents().getComponent(\"randimg\");\n/* */ \n/* 389 */ ICpSysinitQry cpSysinitQry = PortalServiceUtil.getCpSysinitQry();\n/* 390 */ boolean enabledRandomImage = false;\n/* */ try {\n/* 392 */ String showRanImg = cpSysinitQry.getSysinitValueByCodeAndPkorg(\"randomimg\", null);\n/* 393 */ enabledRandomImage = UFBoolean.valueOf(showRanImg).booleanValue();\n/* */ } catch (CpbBusinessException e) {\n/* 395 */ PortalLogger.error(e.getMessage(), e);\n/* */ }\n/* 397 */ String userId = null;\n/* */ \n/* 399 */ AppLifeCycleContext pctx = AppLifeCycleContext.current();\n/* 400 */ HttpSession session = LfwRuntimeEnvironment.getWebContext().getRequest().getSession();\n/* 401 */ String signdata = pctx.getParameter(\"p_signdata\");\n/* 402 */ String sn = pctx.getParameter(\"p_sn\");\n/* 403 */ String tz = pctx.getParameter(\"p_tz\");\n/* 404 */ if (userIdComp != null) {\n/* 405 */ if (enabledRandomImage) {\n/* 406 */ String rand = null;\n/* 407 */ if (session != null) {\n/* 408 */ rand = (String)session.getAttribute(\"rand\");\n/* */ }\n/* 410 */ String ricv = randomImageComp.getValue();\n/* 411 */ if (!StringUtils.equals(rand, ricv)) {\n/* 412 */ throw new LoginInterruptedException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000006\"));\n/* */ }\n/* */ }\n/* 415 */ userId = userIdComp.getValue();\n/* 416 */ if ((userId == null) || (userId.equals(\"\"))) {\n/* 417 */ throw new LoginInterruptedException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000007\"));\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 422 */ TextComp passComp = (TextComp)widget.getViewComponents().getComponent(\"password\");\n/* 423 */ String passValue = null;\n/* 424 */ if (passComp != null) {\n/* 425 */ passValue = passComp.getValue();\n/* 426 */ if (passValue == null) {\n/* 427 */ passValue = \"\";\n/* */ }\n/* */ }\n/* */ \n/* 431 */ ComboBoxComp multiLanguageCombo = (ComboBoxComp)widget.getViewComponents().getComponent(\"multiLanguageCombo\");\n/* 432 */ String language = multiLanguageCombo.getValue();\n/* */ \n/* 434 */ userVO.setUserID(userId);\n/* 435 */ userVO.setPassword(passValue);\n/* 436 */ extMap.put(\"p_language\", language);\n/* 437 */ extMap.put(\"p_maxwin\", \"N\");\n/* 438 */ extMap.put(\"p_signdata\", signdata);\n/* 439 */ extMap.put(\"p_sn\", sn);\n/* */ \n/* 441 */ extMap.put(\"p_tz\", tz);\n/* 442 */ String challlid = (String)session.getAttribute(\"challlid\");\n/* 443 */ extMap.put(\"challlid\", challlid);\n/* 444 */ userVO.setExtInfo(extMap);\n/* 445 */ return userVO;\n/* */ }", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }", "boolean authenticate(String userName, String password);", "@Override\n public void onLoginSuccessful() {\n\n }", "private boolean authenticate(HttpServletRequest request, RouteAction route) {\n\t\tHttpSession session = request.getSession(false);\n\t\tif (session == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\n\t}", "void setAuthenticated(boolean b);", "private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }", "public abstract boolean isLoggedIn(String url);", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "@Override\n public void showAuthScreen() {\n }", "public boolean authenticate(String id, String password, String type) {\r\n\t\tmethodname = \"authenticate\" ;\r\n\t\tlogger.info(\"ENTRY---> methodname : \"+methodname);\r\n\t\t\r\n\t\tboolean flag = authDao.authenticate(id,password,type) ;\r\n\t\t\r\n\t\tlogger.info(\"EXIT---> methodname : \"+methodname);\r\n\t\treturn flag;\r\n\t}", "public interface LoginStateListener {\n\n\n void login();\n\n void directNext();\n\n void start();\n}", "public abstract I_Authenticate getSecurityCtx();", "public RestAuthenticationSuccessHandler() {\n }", "private void signIn() {\n }", "public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}", "public String authentification(){\r\n\t\t\r\n\t\tString v$navigation = null;\r\n\t\ttry {\r\n\t\t\tTabUsr\tusr = AdminSvcoDeleguate.getSvcoUsr().authenticate(defaultVue.getLogin(), defaultVue.getPassword());\r\n\t\t\tif(usr != null && usr.getCodUsr() != null && !usr.getPwdExpire()){\r\n\t\t\t\t// Navigation vers le formulaire d'acceuil\r\n\t\t\t\tdefaultVue.setUser(usr);\r\n\t\t\t\tv$navigation = \"AcceuilDeBase\";\r\n\t\t\t}else if(usr != null && usr.getPwdExpire()){\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Votre mot de passe a expiré : veuillez contacter l'administrateur\", \"Votre mot de passe a expiré : veuillez contacter l'administrateur\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Login/Mot de passe incorrect\", \"Login/Mot de passe incorrect\");\r\n\t\t\t}\r\n\t\t} catch (SysGehoAppException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ServiceLocatorException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn v$navigation;\r\n\t}", "@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\t\t System.err.println(\"URI -- \"+request.getRequestURL());\n\t\t if(request.getRequestURI()!=null &&\n\t\t (request.getRequestURI().contains(\"/self/login\"))) return true;\n\t\t \n\t\t \n\t\t String authHeader = request.getHeader(AUTH_HEADER);\n\t\t \n\t\t if (authHeader == null) { \n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t if (authHeader.contains(\"Basic \")) {\n\t\t \n\t\t String encodedUserNamePassword = authHeader.split(\"Basic \")[1]; String\n\t\t strValue = \"\";\n\t\t try\n\t\t { \n\t\t\t strValue = new String(java.util.Base64.getDecoder().decode(encodedUserNamePassword.getBytes(\n\t\t\t\t\t \t\t)), \"UTF-8\"); \n\t\t }\n\t\t catch (Exception e)\n\t\t { \n\t\t\t e.printStackTrace(); \n\t\t\t // TODO: handle exception return false; \n\t\t }\n\t\t \n\t\t String[] arrayOfString = strValue.split(\"\\\\:\");\n\t\t \n\t\t if (arrayOfString.length > 1) \n\t\t { \n\t\t\t \tString userName = arrayOfString[0]; String\n\t\t\t \tpassword = arrayOfString[1]; System.err.println(userName);\n\t\t\t \tSystem.err.println(password);\n\t\t \n\t\t\t \tpassword = Base64.getEncoder().encodeToString((password + \"\").getBytes(\"utf-8\")); \n\t\t\t \tUsernamePasswordAuthenticationToken\n\t\t\t \tusernamePasswordAuthenticationToken = new\n\t\t\t \tUsernamePasswordAuthenticationToken( userName, password);\n\t\t \n\t\t\t \tAuthentication authentication = null; \n\t\t\t \ttry { authentication =\n\t\t\t \t\t\tautheticationManager.authenticate(usernamePasswordAuthenticationToken);\n\t\t \n\t\t } catch (Exception ex) { \n\t\t\t ex.printStackTrace();\n\t\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes());\n\t\t \n\t\t\t return false; \n\t\t } \n\t\t if (authentication.isAuthenticated()) {\n\t\t\t SecurityContextHolder.getContext().setAuthentication(authentication);\n\t\t\t return true; \n\t\t } else { \n\t\t\t\n\t\t\tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); \n\t\t\t return false; \n\t\t\t } \n\t\t } else { \n\t\t\t String encodedValue = authHeader.split(\"Basic \")[1];\n\t\t \n\t\t\t if (isValidToken(encodedValue)) return true;\n\t\t \n\t\t \tresponse.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t \tresponse.getOutputStream().write(TOKEN_EXPIRE_MSG.getBytes()); return false;\n\t\t }\n\t\t \n\t\t } \n\t\t response.setContentType(JSON_HAL_CONTENT_TYPE);\n\t\t response.getOutputStream().write(UNAUTHORISED_ACCESS_MSG.getBytes()); return\n\t\t false;\n\t\t \n\t\t\n\t}", "public boolean isAuthenticationRequired() {\n\t\treturn true;\n\t}" ]
[ "0.7113672", "0.67934173", "0.66815054", "0.6623848", "0.65226036", "0.6496943", "0.63181674", "0.63082516", "0.6306477", "0.63055664", "0.6277628", "0.62762094", "0.62395793", "0.6224529", "0.6206902", "0.61847794", "0.61847794", "0.6179048", "0.61747485", "0.61726445", "0.61565727", "0.6155904", "0.6155904", "0.6138145", "0.6133281", "0.6125577", "0.61187416", "0.6112537", "0.60836756", "0.6082039", "0.60747415", "0.6071058", "0.6068362", "0.60520226", "0.5992628", "0.5979651", "0.5953799", "0.5932464", "0.59317195", "0.59305346", "0.5913948", "0.5900904", "0.5900619", "0.5900263", "0.58903795", "0.5877488", "0.5873506", "0.5871977", "0.5871235", "0.58551276", "0.58535063", "0.585103", "0.5850419", "0.5848155", "0.5844935", "0.5831839", "0.5823055", "0.58116317", "0.580262", "0.58015186", "0.5798138", "0.5796532", "0.57839507", "0.5779082", "0.5777551", "0.57704115", "0.5769402", "0.5757283", "0.5756105", "0.5756105", "0.5756105", "0.57553405", "0.57526946", "0.57522243", "0.57509804", "0.575066", "0.57407993", "0.57388645", "0.57372534", "0.5735479", "0.57294726", "0.5726813", "0.57175237", "0.57121664", "0.57019186", "0.5697765", "0.5686079", "0.5678165", "0.5676865", "0.56763613", "0.5673791", "0.5667528", "0.5667121", "0.5655886", "0.5654278", "0.5647846", "0.56342554", "0.5632938", "0.5630422", "0.5628255" ]
0.5737258
78
year Initialize a new date from the month, day, and year.
public Date(int month, int day, int year) { if (!isValid(month, day, year)) throw new IllegalArgumentException("Invalid date"); this.month = month; this.day = day; this.year = year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Year createYear();", "private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }", "public Date(String month, int year) {\n\t\t\tthis.weekday = 0;\n\t\t\tthis.day = 0;\n\t\t\tthis.month = notEmpty(month);\n\t\t\tthis.year = zeroOrMore(year);\n\t\t}", "public EventsCalendarYear() {\n initYear();\n }", "public void setYear(int year) {\n\t\tthis.date.setYear(year);\n\t}", "public void setYear(int _year) { year = _year; }", "public void setYear (int yr) {\n year = yr;\n }", "public EventsCalendarYear(Integer year) {\n initYear(year);\n }", "public ConcreteYear(int year) {\r\n if (year > 0) {\r\n this.year = year;\r\n }\r\n }", "public void setYear(int year) {\r\n this.year = year;\r\n }", "public void setYear(int value) {\r\n this.year = value;\r\n }", "public void setYear(int year)\r\n\t{\r\n\t\tthis.year = year;\r\n\t}", "public void setYear(int year) {\n this.year = year;\n }", "public void setYear(int year)\n {\n this.year = year;\n }", "public void setYear(int y){\n\t\tyear = y ; \n\t}", "public Date(int year, int month, int day) {\n this.year = year;\n this.day = day;\n this.month = month;\n }", "public Date(int day, int month, int year) {\r\n this.day = day;\r\n this.month = month;\r\n this.year = year;\r\n\r\n }", "public void setYear(int value) {\n\tthis.year = value;\n }", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year) \n\t{\n\t\tthis.year = year;\n\t}", "public void setYear(int year) {\n\tthis.year = year;\n}", "public final native double setFullYear(int year, int month, int day) /*-{\n this.setFullYear(year, month, day);\n return this.getTime();\n }-*/;", "public void setYear(String year) {\n this.year = year;\n }", "public void setYear(String year) {\n this.year = year;\n }", "public DueDateBuilder setYear(int year) {\n this.year = year;\n return this;\n }", "public void setYear(String year)\r\n {\r\n this.year = year; \r\n }", "public void setYear(final int year) {\n\t\tthis.year = year;\n\t}", "public Computus(int x){\n year = x;\n }", "int getYear();", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public void setYear(Integer year) {\r\n this.year = year;\r\n }", "public void setYear(String year) {\n\t\tthis.year = year;\n\t}", "public Date(int day, Month month, int year){\n\tif (day > 0 && day <= month.nbJours(year)){\n\t this.day = day;\n\t}\t\n\tthis.month = month;\n\tif (year > 0){\n\t this.year = year;\n\t}\n }", "public Builder setYear(final int year) {\n this.year = year;\n return this;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public void setYear(Integer year) {\n this.year = year;\n }", "public Value(int year, int month, int day) {\n\n // Construct the Calendar\n _calendar = Calendar.getInstance();\n _calendar.set(year, month - 1, day);\n }", "public Date(int y) {\r\n\r\n\t\tmonth = LAST_MONTH;\r\n\t\tday = DAYS[LAST_MONTH];\r\n\t\tyear = y;\r\n\t}", "public int getYear(){\r\n\t\treturn year;\r\n\t}", "public final int getYYYY()\n {\n return yyyy;\n }", "public MyDate(int month, int day, int year) {\n\t\tsetDate(month, day, year);\n\t}", "public Date(int month, int day, int year) {\r\n\t\t// check if month in range\r\n\t\tif (month <= 0 || month > 12)\r\n\t\t\tthrow new IllegalArgumentException(\"month (\" + month + \") must be 1-12\");\r\n\r\n\t\t// check if day in range for month\r\n\t\tif (day <= 0 || (day > daysPerMonth[month] && !(month == 2 && day == 29)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\t// check for leap year if month is 2 and day is 29\r\n\t\tif (month == 2 && day == 29 && !(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)))\r\n\t\t\tthrow new IllegalArgumentException(\"day (\" + day + \") out-of-range for the specified month and year\");\r\n\r\n\t\tthis.month = month;\r\n\t\tthis.day = day;\r\n\t\tthis.year = year;\r\n\r\n\t\tSystem.out.printf(\"Date object constructor for date %s%n\", this);\r\n\t}", "public void setYear(int Year) {\n\t this.year= Year;\n\t}", "public void setYear(String year) {\n this.put(\"year\", year);\n }", "public void setYear(int year) throws InvalidDateException {\r\n\t\tif (year <= 2100 & year >= 2000) {\r\n\t\t\tthis.year = year;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic year for the date (between 2000 and 2100) !\");\r\n\t\t}\r\n\t}", "public int getYear(){\n\t\treturn year; \n\t}", "public static Date newDate(final int year, final int month, final int day)\r\n\t{\r\n\t\treturn newDate(year, month, day, 0, 0, 0);\r\n\t}", "public void setCalendarYear(int year) {\r\n\t\tcalendar.setCalendarYear(year);\r\n\t}", "public int getYear() {\r\n\t\treturn year;\r\n\t}", "public int getYear() {\r\n return year;\r\n }", "public int getYear(){\n\t\treturn year;\n\t}", "public Date(int day, int month, int year) throws DateException{\n\t\tthis.year = year;\n\t\tif (month < 1 || month > 12) {\n\t\t\tthrow new DateException(\"Mes \" + month + \" no valido\" +\n\t\t\t\t\t\" Valores posibles entre 1 y 12.\");\n\t\t} else {\n\t\t\tthis.month = month;\n\t\t}\n\t\t\n\t\tswitch (this.month){\n\t\t\tcase 1:\n\t\t\tcase 3:\n\t\t\tcase 5:\n\t\t\tcase 7:\n\t\t\tcase 8:\n\t\t\tcase 10:\n\t\t\tcase 12:\n\t\t\t\tif(day<1 || day>31){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\tcase 6:\n\t\t\tcase 9:\n\t\t\tcase 11:\n\t\t\t\tif(day<1 || day>30){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(day<1 || day>28){\n\t\t\t\t\tthrow new DateException(\"Error. Fecha no valida. Dia \"+day+\" no valido en el mes \"+month+\".\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\tthis.day=day;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\n return year;\n }", "public void setYear(String value) {\n setAttributeInternal(YEAR, value);\n }", "public void setYear(short value) {\n this.year = value;\n }", "public int getYear() {\r\n return year;\r\n }", "public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}", "public int getYear() {\n\t return year;\n\t}", "public int getYear() {\n\treturn year;\n }", "public int getYear() {\n\t\treturn year; \n\t}", "public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }", "public int getStartingYear()\n {\n return 2013;\n }", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public int getYear() {\n\t\treturn year;\n\t}", "public void setYearToDate(Date value) {\r\n setAttributeInternal(YEARTODATE, value);\r\n }", "public void setYear(short value) {\n this.year = value;\n }", "public int getYear() \n\t{\n\t\treturn year;\n\t}", "public String getYear() {\n\t\treturn year;\r\n\t}", "public double getYear() {\n return year;\n }", "@Override\n\tpublic int getYear() {\n\t\treturn year;\n\t}", "public final native double setFullYear(int year, int month) /*-{\n this.setFullYear(year, month);\n return this.getTime();\n }-*/;", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\n this.year = value;\n }", "public void setYear(short value) {\n this.year = value;\n }", "public int getYear() { return year; }", "public int getYear() { return year; }", "public YearToCentury() // defining method YearToCentury\r\n\t{\r\n\t\tyear =0; // value of year =0\r\n\t}", "public int getYear() {\n return year;\n }", "public Integer getYear() {\r\n return year;\r\n }", "public Integer getYear() {\r\n return year;\r\n }", "public final native double setFullYear(int year) /*-{\n this.setFullYear(year);\n return this.getTime();\n }-*/;", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public int getYear() {\n return year;\n }", "public YearToCentury(int year) // defining method YearToCentury with int value year\r\n\t{\r\n\t\tthis.year = year; // value of year = this.year\r\n\t}", "public String getYear()\r\n {\r\n return year;\r\n }", "public String getYear() {\n return year;\n }", "public String getYear() {\n return year;\n }", "Years createYears();", "public String getYear() {\n\t\treturn year;\n\t}", "public String getYear() {\n\t\treturn year;\n\t}", "public Date(int y, int m, int d){\n\t\tif((y<2015 || m<=0 || m>12 || d<=0 || d>31)){\n\t\t\tyear=0;\n\t\t\tmonth=0;\n\t\t\tday=0;\n\t\t}else{\n\t\t\tyear=y;\n\t\t\tmonth=m;\n\t\t\tday=d;\n\t\t}\n\t\t\n\t}", "public void setDocumentYear(int documentYear);", "public DateTime(int year, int month, int date) {\r\n\t\tCalendar calendar = createCalendar(year, month, date);\r\n\t\tthis.timeString = YYYY_MM_DD_FORMATTER.format(calendar.getTime());\r\n\t}", "public int getYear()\n {\n return year;\n }", "public Integer getYear() {\n return year;\n }", "public Integer getYear() {\n return year;\n }" ]
[ "0.7553718", "0.71865505", "0.7171778", "0.7158144", "0.7078777", "0.7000308", "0.69842285", "0.68948066", "0.6876471", "0.68460625", "0.6836204", "0.67870754", "0.6782793", "0.67807513", "0.6772992", "0.6770175", "0.67603785", "0.6711324", "0.66673225", "0.66673225", "0.6664828", "0.6654302", "0.66330075", "0.6621129", "0.6621129", "0.6620729", "0.6607766", "0.66038", "0.65787494", "0.65552276", "0.6532641", "0.6532641", "0.6520786", "0.6495058", "0.64933366", "0.64905405", "0.64905405", "0.64905405", "0.6477279", "0.6476428", "0.64292735", "0.6419714", "0.64047784", "0.64007175", "0.6400476", "0.6386954", "0.6379318", "0.63685244", "0.6354141", "0.63527113", "0.63399893", "0.6338222", "0.63285524", "0.6320535", "0.63100123", "0.63099897", "0.6309405", "0.6302886", "0.6299147", "0.6287146", "0.62826556", "0.6279234", "0.6279167", "0.62504107", "0.6250151", "0.6247742", "0.6247742", "0.6247742", "0.6242837", "0.6240243", "0.62391317", "0.6236879", "0.623665", "0.623416", "0.62332225", "0.6221834", "0.6221834", "0.6221834", "0.62170637", "0.62170637", "0.62139755", "0.6212074", "0.62049824", "0.62049824", "0.6201197", "0.6199467", "0.6198115", "0.61927944", "0.6189352", "0.6188152", "0.6188152", "0.6184889", "0.617955", "0.617955", "0.617767", "0.61762106", "0.6161423", "0.61565745", "0.6155783", "0.6155783" ]
0.6508059
33
Initialize new date specified as a string in form MM/DD/YYYY.
public Date(String date) { String[] fields = date.split("/"); if (fields.length != 3) { throw new IllegalArgumentException("Invalid date"); } month = Integer.parseInt(fields[0]); day = Integer.parseInt(fields[1]); year = Integer.parseInt(fields[2]); if (!isValid(month, day, year)) throw new IllegalArgumentException("Invalid date"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setDateFromString(String s){\n String[] strs = s.split(\"/\");\n if(strs.length != 3){\n return false;\n }\n try {\n this.year = Integer.parseInt(strs[0].toString());\n this.month = Integer.parseInt(strs[1].toString());\n this.dayOfMonth = Integer.parseInt(strs[2].toString());\n }catch (NumberFormatException e){\n e.printStackTrace();\n return false;\n }\n this.dateString = s;\n return true;\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 MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "public static Date createDate(String dateStr) throws ParseException {\n\t\tSimpleDateFormat date = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\treturn date.parse(dateStr);\n\t}", "public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}", "public Date(String sDate) {\r\n\t\tint m, d, y;\r\n\t\tString[] chopDate = sDate.split(\"-\");\r\n\t\tm = Integer.parseInt(chopDate[ZEROI]);\r\n\t\td = Integer.parseInt(chopDate[ONEI]);\r\n\t\ty = Integer.parseInt(chopDate[TWOI]);\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}", "public MyDate(String date){\n \t\tStringTokenizer st;\n\n \t\tst = new StringTokenizer(date,\"/\");\t//tokenizer will always result in 3 tokens \n\n\t\tthis.day = Integer.parseInt(st.nextToken());\n\t\tthis.month = Integer.parseInt(st.nextToken());\n\t\tthis.year = Integer.parseInt(st.nextToken());\t\n\t}", "public static Date parseDate(String date) {\r\n return parseDateWithPattern(date, \"dd/MM/yyyy\");\r\n }", "public DateCell(String value) // constructs the date\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"mm/dd/yyyy\"); // creates date format\n date = format.parse(value,new ParsePosition(0)); // creates date \n String dateCompare = format.format(date); // puts date into a string\n //below is used for comparing dates\n String[] dateCompareOps = dateCompare.split(\"/\"); // splits values at the /\n month = Integer.parseInt(dateCompareOps[0]); // gets value for month\n day = Integer.parseInt(dateCompareOps[1]); // gets value for day\n year = Integer.parseInt(dateCompareOps[2]); // gets value for year\n\t}", "date initdate(date iDate)\n {\n iDate.updateElementValue(\"date\");\n return iDate;\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string);\r\n this.locale = null;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString);\r\n this.string = formatString;\r\n this.locale = null;\r\n }\r\n }", "public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static Date stringToDate(String dateAsString){\r\n try { \r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\"); \r\n return df.parse(dateAsString);\r\n } catch (ParseException ex) {\r\n ex.printStackTrace();\r\n return null;\r\n }\r\n }", "public void setDate(String date) {\n while (!date.endsWith(\"00\")){\n date+=\"0\";\n }\n try{\n this.date = FORMATTER.parse(date.trim());\n }catch (ParseException e){\n throw new RuntimeException(e);\n }\n\n }", "public DateUtility () {\n dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n }", "private ARXDate(String formatString, Locale locale) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n this.format = new SimpleDateFormat(string, locale);\r\n this.locale = locale;\r\n } else {\r\n this.format = new SimpleDateFormat(formatString, locale);\r\n this.string = formatString;\r\n this.locale = locale;\r\n }\r\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic static Date getDateForString(String dateString) {\n\t\tString[] separation1 = dateString.split(\" \");\n\t\tString[] separation2 = separation1[0].split(\"/\");\n\t\tString[] separation3 = separation1[1].split(\":\");\n\t\treturn new Date(Integer.parseInt(separation2[2])-1900, (Integer.parseInt(separation2[1])-1), Integer.parseInt(separation2[0]), Integer.parseInt(separation3[0]), Integer.parseInt(separation3[1]), Integer.parseInt(separation3[2]));\n\t}", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "public static void setDate(String dateString) {\n\t\tdate = dateString;\n\t}", "public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }", "protected void guessDateFormat(String dateStr) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date\"));} //$NON-NLS-1$\n String[] dateSplit = dateStr.split(\"/\"); //$NON-NLS-1$\n String yrFmt = null;\n int yrPos = -1;\n int dayPos = -1;\n // quick look for either yyyy/xx/xx or xx/xx/yyyy\n for (int i=0; i<dateSplit.length; i++) {\n int aDigit = Integer.parseInt(dateSplit[i]); \n if (dateSplit[i].length() == 4) {\n yrFmt = \"yyyy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit>31) {\n // found 2-digit year\n yrFmt = \"yy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit > 12) {\n // definitely found a # <=31,\n dayPos = i;\n }\n }\n if (yrFmt != null) {\n StringBuffer fmt = new StringBuffer();\n if (dayPos >=0) {\n // OK, we know everything.\n String[] tmp = new String[3];\n tmp[yrPos] = yrFmt;\n tmp[dayPos] = \"dd\"; //$NON-NLS-1$\n for (int i=0; i<tmp.length; i++) {\n fmt.append(i>0?\"/\":\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n fmt.append(tmp[i] == null ? \"MM\":tmp[i]); //$NON-NLS-1$\n }\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Obvious\"));} //$NON-NLS-1$\n } else {\n // OK, we have something like 2010/01/01 - I can't\n // tell month from day. So, we'll guess. If it doesn't work on a later\n // date, we'll flip it (the alternate).\n \n StringBuffer altFmt = new StringBuffer();\n if (yrPos == 0) {\n fmt.append(yrFmt).append(\"/MM/dd\"); //$NON-NLS-1$\n altFmt.append(yrFmt).append(\"/dd/MM\"); //$NON-NLS-1$\n } else {\n fmt.append(\"MM/dd/\").append(yrFmt); //$NON-NLS-1$\n altFmt.append(\"dd/MM/\").append(yrFmt); //$NON-NLS-1$\n }\n this.alternateFormatString = altFmt.toString();\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Ambiguous\"));} //$NON-NLS-1$\n }\n this.dateFormatString = fmt.toString();\n this.dateFormat = new SimpleDateFormat(dateFormatString);\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Decided\", this.dateFormatString));} //$NON-NLS-1$\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Unparsable\", dateStr));} //$NON-NLS-1$\n }\n } else {\n // looks ilke something like 01/02/05 - where's the year?\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Year.Ambiguous\"));} //$NON-NLS-1$\n return;\n }\n \n }", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public static String dateStr(String str)\n {\n String month = str.split(\"/\")[0];\n String day = str.split(\"/\")[1];\n String year = str.split(\"/\")[2];\n return day + \"-\" + month + \"-\" + year;\n }", "public void setDueDate(String newDueDate) {\n if (this.validateDate(newDueDate)) {\n dueDate = new GregorianCalendar();\n DateFormat dateForm = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n\n try {\n dueDate.setTime(dateForm.parse(newDueDate));//set this.DueDate = new due date\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }", "public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }", "public void setDate(String newDate)throws Exception{\n\t\t\n\t\tif (Pattern.matches(\"\\\\d\\\\d/\\\\d\\\\d/\\\\d\\\\d\\\\d\\\\d\", newDate)){\n\t\t\tthis.date = newDate;\n\t\t\toverWriteLine(\"Date\", newDate);\n\t\t}\n\t\n\t}", "public static Date fromString(String fullDate) {\n\t\tString[] parsed = fullDate.split(\",\");\n\t\tif (parsed.length != 3 && parsed.length != 5) {\n\t\t\tthrow new InvalidParsingStringException(Date.class.getName());\n\t\t}\n\t\tDate date = new Date();\n\t\tdate.setYear(Integer.valueOf(parsed[0]));\n\t\tdate.setMonth(Integer.valueOf(parsed[1]));\n\t\tdate.setDay(Integer.valueOf(parsed[2]));\n\t\tif (parsed.length == 5) {\n\t\t\tdate.setHour(Integer.valueOf(parsed[3]));\n\t\t\tdate.setMin(Integer.valueOf(parsed[4]));\n\t\t}\n\t\treturn date;\n\t}", "private LocalDate createDate(String date) {\n LocalDate localDate = LocalDate.parse(date);\n\n return localDate;\n }", "@Test public void Mdy_at_y_slash()\t\t\t\t\t\t\t\t{tst_date_(\"1/2/70\"\t\t\t\t\t, \"1970-01-02\");}", "public static java.util.Date convertToUDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn uDate;\n\t\t}\n\t}", "@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}", "public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "public void Add_date(String d)\n {\n\n date = new String(d);\t\n }", "public static Date StringToDate(String dateString) {\n int y = new Integer(dateString.substring(0, 4));\n int m = new Integer(dateString.substring(4, 6));\n int d = new Integer(dateString.substring(6, 8));\n int h = new Integer(dateString.substring(8, 10));\n int min = new Integer(dateString.substring(10, 12));\n\n try {\n Calendar convCal = Calendar.getInstance();\n convCal.set(y, m - 1, d, h, min);\n Date date = convCal.getTime();\n\n return date;\n } catch (Exception ex) {\n System.out.println(\"BwInfo.convertStringToDate() \" + ex);\n return null;\n }\n\n }", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "@Override\n\tpublic void initDate() {\n\n\t}", "public static Date parseDate(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM/dd/yyyy\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}", "public static Object changeDateFormat(String date)\r\n\t{\n\t\tString temp=\"\";\r\n\t\tint len = date.length();\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tchar ch = date.charAt(i);\r\n\t\t\tif(ch == ',')\r\n\t\t\t{\r\n\t\t\t\ttemp = temp+'/';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttemp = temp+ch;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString n=\"\"+temp.charAt(3)+temp.charAt(4);\r\n\t\tint month=Integer.parseInt(n);\r\n\t\tString m=\"\";\r\n\t\tswitch(month)\r\n\t\t{\r\n\t\t\tcase 1:\r\n\t\t\t\tm=\"jan\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tm=\"feb\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tm=\"mar\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tm=\"apr\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tm=\"may\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\tm=\"jun\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\tm=\"jul\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8:\r\n\t\t\t\tm=\"aug\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9:\r\n\t\t\t\tm=\"sep\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10:\r\n\t\t\t\tm=\"oct\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 11:\r\n\t\t\t\tm=\"nov\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase 12:\r\n\t\t\t\tm=\"dec\";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Enter a valid month\");\r\n\t\t\t}\r\n\t\t\tString s=(temp.substring(0, 3)+ m +temp.substring(5));\r\n\t\t\treturn s;\r\n\t\t}", "public BirthDate(String date) throws InvalidDateException {\n this.date = stringToDate(date);\n checkDate();\n }", "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 java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public static Date toDateFormat_1(String dateString) {\r\n\t\treturn stringToDate(dateString, DATE_FORMAT_1);\r\n\t}", "public Group3Date(String date) {\n\t\t\tString[] fields = date.split(\"/\");\n\t\t\tif (fields.length != 3) {\n\t\t\t\tthrow new Error(\"Date parse error\");\n\t\t\t}\n\t\t\tmonth = Integer.parseInt(fields[0]);\n\t\t\tday = Integer.parseInt(fields[1]);\n\t\t\tyear = Integer.parseInt(fields[2]);\n\t\t\tif (!isValid(month, day, year)) throw new Error(\"Invalid date\");\n\t\t}", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "protected final void normalise()\n {\n // yyyy, mm, dd must be set at this point\n if ( isValid(yyyy,mm,dd) ) return;\n else if ( mm > 12 )\n {\n yyyy += (mm-1) / 12;\n mm = ((mm-1) % 12) + 1;\n if ( isValid(yyyy,mm,dd) ) return;\n }\n else if ( mm <= 0 )\n {\n // Java's definition of modulus means we need to handle negatives as a special case.\n yyyy -= -mm / 12 + 1;\n mm = 12 - (-mm % 12);\n if ( isValid(yyyy,mm,dd) ) return;\n }\n if ( isValid(yyyy,mm,01) )\n {\n int olddd = dd;\n dd = 1;\n toOrdinal();\n ordinal += olddd - 1;\n toGregorian();\n if ( isValid(yyyy,mm,dd) ) return;\n }\n\n throw new IllegalArgumentException(\"date cannot be normalised: \"\n + yyyy + \"/\" + mm + \"/\" + dd);\n\n }", "void setDate(java.lang.String date);", "protected static Date parseDate(String dateStr) {\n if (dateStr != null) {\n try {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n return df.parse(dateStr);\n }\n catch (Exception e) {\n throw new IllegalArgumentException(\"Expected date in format yyyy-MM-dd but got \" + dateStr, e);\n }\n }\n return null;\n }", "public static LocalDate formateDate(String dateString){\n\t\treturn LocalDate.parse(dateString, df);\n\t}", "private Calendar parseDate(String invoiceDate) throws InvoiceFileParseException {\n\n\t\tPattern p = Pattern.compile(\"[\\\\d]{1,2}/[\\\\d]{1,2}/[\\\\d]{4}\");\n\t\tMatcher m = p.matcher(invoiceDate);\n\t\tif (!m.matches()) {\n\t\t\tthrow new InvoiceFileParseException(\"Specified date is not valid [\" + invoiceDate + \"], expected date format is dd/MM/yyyy\");\n\t\t}\n\n\t\tCalendar invD;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\ttry {\n\t\t\tinvD = Calendar.getInstance();\n\t\t\tinvD.setTime(sdf.parse(invoiceDate));\n\t\t} catch (ParseException e) {\n\t\t\tthrow new InvoiceFileParseException(\"Specified date is not valid [\" + invoiceDate + \"], expected date format is dd/MM/yyyy\", e);\n\t\t}\n\t\treturn invD;\n\t}", "public static Date FormatStringToDate(String dateString) {\r\n SimpleDateFormat dF = new SimpleDateFormat(\"dd/mm/yyyy HH:mm:ss\");\r\n Date date = null;\r\n try {\r\n date = dF.parse(dateString);\r\n } catch (ParseException e) {\r\n e.printStackTrace();\r\n }\r\n return date;\r\n }", "public void setDate (String s) {\n date = s;\n }", "public static Date converteStringInvertidaSemBarraAAAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public static String formateDate(String date, String initDateFormat, String endDateFormat) throws ParseException {\n\t\t\n\t\treturn new SimpleDateFormat(endDateFormat).format( new SimpleDateFormat(initDateFormat).parse(date));\n//\t\treturn parsedDate;\n\n\t}", "public static Date converteStringInvertidaSemBarraAAMMDDParaDate(String data) {\r\n\t\tDate retorno = null;\r\n\r\n\t\tString dataInvertida = data.substring(4, 6) + \"/\" + data.substring(2, 4) + \"/20\" + data.substring(0, 2);\r\n\r\n\t\tSimpleDateFormat dataTxt = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\ttry {\r\n\t\t\tretorno = dataTxt.parse(dataInvertida);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tthrow new IllegalArgumentException(data + \" não tem o formato dd/MM/yyyy.\");\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static native JsDate create(String dateString) /*-{\n return new Date(dateString);\n }-*/;", "public void testSetDate() throws ParseException {\n ValueString vs = new ValueString();\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss.SSS\", Locale.US);\n\n try {\n vs.setDate(null);\n // assertNull(vs.getString());\n fail(\"expected NullPointerException\");\n } catch (NullPointerException ex) {\n // This is the original behaviour\n }\n vs.setDate(format.parse(\"2006/06/07 01:02:03.004\"));\n assertEquals(\"2006/06/07 01:02:03.004\", vs.getString());\n }", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public String setDate (String newDate){\n\t\tmDate=newDate;\n\t\treturn mDate;\n\t}", "public MyDate(int inYear, int inDay, int inMonth)\n {\n year = inYear;\n day = inDay;\n month = inMonth;\n }", "public static Date convertStringToDate(String strDate)\n\t {\n\t Date myDate = null;\n\t if (strDate.length() > 0)\n\t {\n\t DateFormat formatter = new SimpleDateFormat(EProcurementConstants.INPUT_DATE_FORMAT);\n\t try\n\t {\n\t myDate = formatter.parse(strDate);\n\t } catch (ParseException e)\n\t {\n\t LOGGER.error(\"Not able to parse \" + strDate + \" into date ..\" + e.getMessage());\n\t }\n\t }\n\t return myDate;\n\t }", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectYear() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/1700\");\r\n }", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "public E_Date(String value) throws ParseException {\n\t\tsuper(DATE_TIME.parse(value).toDate());\n\t}", "public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "public void setBirthday( String s) throws IOException {\n\t\ttry {\r\n\t\t int day = Integer.parseInt(s.substring(0, 2));\r\n\t\t int month = Integer.parseInt(s.substring(3, 5))-1;\r\n\t\t int year = Integer.parseInt(s.substring(6, 10));\r\n\t\t birthday.set(year, month, day);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tbirthday.set(1900, Calendar.JANUARY, 1);\r\n\t\t}\r\n\t}", "public Date createDate(int birthDate) {\r\n try {\r\n int year = birthDate / 10000;\r\n int month = (birthDate % 10000) / 100;\r\n int date = birthDate % 100;\r\n String formatDate = year + \"/\" + month + \"/\" + date; // Creates a formatted date.\r\n\r\n SimpleDateFormat formatted = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n return formatted.parse(formatDate);\r\n } catch (java.text.ParseException ex) {\r\n return null;\r\n }\r\n }", "public Components(String item_name,String serial_no, double maint_cost,double maint_interval,String maint_date){\n this.item_name=item_name;\n this.serial_no=serial_no;\n this.maint_cost=maint_cost;\n this.maint_interval=maint_interval;\n try{\n Date date1 = new SimpleDateFormat(\"dd/MM/yyyy\").parse(maint_date);\n this.maint_date = date1;\n }\n catch (Exception e){\n System.out.println(\"Invalid date format\");\n }\n }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "public Builder setStartDateYYYYMMDD(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n startDateYYYYMMDD_ = value;\n onChanged();\n return this;\n }", "public static java.sql.Date convertToSDate(String dateInString) {\n\t\tif (dateInString == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tjava.util.Date uDate = null;\n\t\t\tjava.sql.Date sDate = null;\n\t\t\ttry {\n\t\t\t\tuDate = dateFormat.parse(dateInString);\n\t\t\t\tsDate = new java.sql.Date(uDate.getTime());\n\t\t\t} catch (ParseException e) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn sDate;\n\t\t}\n\t}", "@Test\n\t@DisplayName(\"string to date\")\n\tpublic void testStringToDate() throws ParseException\n\t{\n\t\tDateConverter d = new DateConverter(string1);\n\t\t\n\t\tString dateInString = \"1997-03-19\";\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t date1 = formatter.parse(dateInString);\n\t\t} catch (ParseException e) {\n\t\t //handle exception if date is not in \"dd-MMM-yyyy\" format\n\t\t}\n\t\tassertEquals(date1, d.getDate());\n\t}", "public static Date stringToDate(String string_date){\n Date myDate = null;\n \n try {\n java.util.Date utilDate = new SimpleDateFormat(\"yyyy-MM-dd\").parse(string_date);\n myDate = new java.sql.Date(utilDate.getTime());\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return myDate;\n }", "void setDate(Date data);", "public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "DateConstant createDateConstant();", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public static Date GetDateObjectFromStringUpdate(String dateAsString) {\n\t\tSimpleDateFormat lv_formatter = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tlv_formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\t\tDate tempDate = null;\n\t\ttry {\n\t\t\tif (dateAsString != null && !dateAsString.equalsIgnoreCase(\"null\"))\n\t\t\t\ttempDate = lv_formatter.parse(dateAsString);\n\t\t} catch (Exception e) {\n\t\t\t// do some error reporting here\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempDate;\n\t}", "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 }", "private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}", "private void setYearMonthDay(String fvtime) {\n\t\tString cleanStr = fvtime.replaceAll(\"^ca\\\\. \", \"\");\n\t\tcleanStr = cleanStr.replaceAll(\"\\\\?$\", \"\");\n\t\tString[] parts = cleanStr.split(\"/\");\n\t\tif (parts.length == 1) {\n\t\t\tyear = Integer.parseInt(parts[0]);\n\t\t} else if (parts.length == 2) {\n\t\t\tmonth = Integer.parseInt(parts[0]);\n\t\t\tyear = Integer.parseInt(parts[1]);\n\t\t} else if (parts.length == 3) {\n\t\t\tmonth = Integer.parseInt(parts[0]);\n\t\t\tday = Integer.parseInt(parts[1]);\n\t\t\tyear = Integer.parseInt(parts[2]);\n//\t\t\t\t\t// extract day part...\n//\t\t\t\t\t// 1949-03-04T21:45:00Z -> 1949, 03, 04T21:45:00Z\n//\t\t\t\t\tString[] dayParts = parts[parts.length-3].split(\"T\");\n//\t\t\t\t\tday = Integer.parseInt(dayParts[0]);\n\t\t}\n\t}", "public static Date date(String str) throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n return sdf.parse( str );\n }", "public Date (final Integer d, final Integer m, final Integer y) throws CGException {\n\n try {\n setSentinel();\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n if (!this.pre_Date(d, m, y).booleanValue()) \n UTIL.RunTime(\"Run-Time Error:Precondition failure in Date\");\n {\n\n day = UTIL.NumberToInt(UTIL.clone(d));\n month = UTIL.NumberToInt(UTIL.clone(m));\n year = UTIL.NumberToInt(UTIL.clone(y));\n }\n }", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "DateLiteral createDateLiteral();", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "public Date(String icalStr) throws ParseException, BogusDataException\r\n\t{\r\n\t\tsuper(icalStr);\r\n\r\n\t\tyear = month = day = 0;\r\n\t\thour = minute = second = 0;\r\n\r\n\t\tfor (int i = 0; i < attributeList.size(); i++)\r\n\t\t{\r\n\t\t\tAttribute a = attributeAt(i);\r\n\t\t\tString aname = a.name.toUpperCase(Locale.ENGLISH);\r\n\t\t\tString aval = a.value.toUpperCase(Locale.ENGLISH);\r\n\t\t\t// TODO: not sure if any attributes are allowed here...\r\n\t\t\t// Look for VALUE=DATE or VALUE=DATE-TIME\r\n\t\t\t// DATE means untimed for the event\r\n\t\t\tif (aname.equals(\"VALUE\"))\r\n\t\t\t{\r\n\t\t\t\tif (aval.equals(\"DATE\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = true;\r\n\t\t\t\t} else if (aval.equals(\"DATE-TIME\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tdateOnly = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (aname.equals(\"TZID\"))\r\n\t\t\t{\r\n\t\t\t\ttzid = a.value;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// TODO: anything else allowed here?\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString inDate = value;\r\n\r\n\t\tif (inDate.length() < 8)\r\n\t\t{\r\n\t\t\t// Invalid format\r\n\t\t\tthrow new ParseException(\"Invalid date format '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t}\r\n\r\n\t\t// Make sure all parts of the year are numeric.\r\n\t\tfor (int i = 0; i < 8; i++)\r\n\t\t{\r\n\t\t\tchar ch = inDate.charAt(i);\r\n\t\t\tif (ch < '0' || ch > '9')\r\n\t\t\t{\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\tyear = Integer.parseInt(inDate.substring(0, 4));\r\n\t\tmonth = Integer.parseInt(inDate.substring(4, 6));\r\n\t\tday = Integer.parseInt(inDate.substring(6, 8));\r\n\t\tif (day < 1 || day > 31 || month < 1 || month > 12)\r\n\t\t\tthrow new BogusDataException(\"Invalid date '\" + inDate + \"'\",\r\n\t\t\t\t\tinDate);\r\n\t\t// Make sure day of month is valid for specified month\r\n\t\tif (year % 4 == 0)\r\n\t\t{\r\n\t\t\t// leap year\r\n\t\t\tif (day > leapMonthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\tif (day > monthDays[month - 1])\r\n\t\t\t{\r\n\t\t\t\tthrow new BogusDataException(\"Invalid day of month '\" + inDate\r\n\t\t\t\t\t\t+ \"'\", inDate);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// TODO: parse time, handle localtime, handle timezone\r\n\t\tif (inDate.length() > 8)\r\n\t\t{\r\n\t\t\t// TODO make sure dateOnly == false\r\n\t\t\tif (inDate.charAt(8) == 'T')\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\thour = Integer.parseInt(inDate.substring(9, 11));\r\n\t\t\t\t\tminute = Integer.parseInt(inDate.substring(11, 13));\r\n\t\t\t\t\tsecond = Integer.parseInt(inDate.substring(13, 15));\r\n\t\t\t\t\tif (hour > 23 || minute > 59 || second > 59)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"'\",\r\n\t\t\t\t\t\t\t\tinDate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (inDate.length() > 15)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tisUTC = inDate.charAt(15) == 'Z';\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException nef)\r\n\t\t\t\t{\r\n\t\t\t\t\tthrow new BogusDataException(\r\n\t\t\t\t\t\t\t\"Invalid time in date string '\" + inDate + \"' - \"\r\n\t\t\t\t\t\t\t\t\t+ nef, inDate);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t// Invalid format\r\n\t\t\t\tthrow new ParseException(\r\n\t\t\t\t\t\t\"Invalid date format '\" + inDate + \"'\", inDate);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// Just date, no time\r\n\t\t\tdateOnly = true;\r\n\t\t}\r\n\r\n\t\tif (isUTC && !dateOnly)\r\n\t\t{\r\n\t\t\t// Use Joda Time to convert UTC to localtime\r\n\t\t\tDateTime utcDateTime = new DateTime(DateTimeZone.UTC);\r\n\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(hour,\r\n\t\t\t\t\tminute, second, 0);\r\n\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t.getDefault());\r\n\t\t\tyear = localDateTime.getYear();\r\n\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t} else if (tzid != null)\r\n\t\t{\r\n\t\t\tDateTimeZone tz = DateTimeZone.forID(tzid);\r\n\t\t\tif (tz != null)\r\n\t\t\t{\r\n\t\t\t\t// Convert to localtime\r\n\t\t\t\tDateTime utcDateTime = new DateTime(tz);\r\n\t\t\t\tutcDateTime = utcDateTime.withDate(year, month, day).withTime(\r\n\t\t\t\t\t\thour, minute, second, 0);\r\n\t\t\t\tDateTime localDateTime = utcDateTime.withZone(DateTimeZone\r\n\t\t\t\t\t\t.getDefault());\r\n\t\t\t\tyear = localDateTime.getYear();\r\n\t\t\t\tmonth = localDateTime.getMonthOfYear();\r\n\t\t\t\tday = localDateTime.getDayOfMonth();\r\n\t\t\t\thour = localDateTime.getHourOfDay();\r\n\t\t\t\tminute = localDateTime.getMinuteOfHour();\r\n\t\t\t\tsecond = localDateTime.getSecondOfMinute();\r\n\t\t\t\t// Since we have converted to localtime, remove the TZID\r\n\t\t\t\t// attribute\r\n\t\t\t\tthis.removeNamedAttribute(\"TZID\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tisUTC = false;\r\n\r\n\t\t// Add attribute that says date-only or date with time\r\n\t\tif (dateOnly)\r\n\t\t\taddAttribute(\"VALUE\", \"DATE\");\r\n\t\telse\r\n\t\t\taddAttribute(\"VALUE\", \"DATE-TIME\");\r\n\r\n\t}", "default Date fromSource(String date) {\n try {\n return getSourceDateFormat().parse(date);\n } catch (ParseException e) {\n throw new RuntimeException(String.format(\"couldn't parse date:{0} using:{1}\", date, getSourceDateFormat()));\n }\n }", "public final DateWithTypeDateFormat newDate() throws RIFCSException {\n return new DateWithTypeDateFormat(this.newElement(\n Constants.ELEMENT_DATE));\n }", "private void initDates() throws RIFCSException {\n NodeList nl = super.getElements(Constants.ELEMENT_DATE);\n\n for (int i = 0; i < nl.getLength(); i++) {\n dates.add(new DateWithTypeDateFormat(nl.item(i)));\n }\n }", "public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }" ]
[ "0.65363616", "0.65121233", "0.63796717", "0.63662374", "0.6352125", "0.63278425", "0.63017637", "0.6282842", "0.61631805", "0.61631256", "0.61628747", "0.61045164", "0.6092052", "0.60880727", "0.6046443", "0.60237527", "0.59875596", "0.59818304", "0.5966446", "0.59423953", "0.590901", "0.59010196", "0.5802946", "0.5788186", "0.5766098", "0.57368964", "0.57206476", "0.57069725", "0.5688494", "0.56630987", "0.56488305", "0.5624532", "0.5591541", "0.5589167", "0.5569384", "0.55642503", "0.5564108", "0.5558037", "0.5530902", "0.5521579", "0.550755", "0.55069816", "0.5498789", "0.5489308", "0.54871935", "0.5482457", "0.5480925", "0.5478527", "0.5476812", "0.54649013", "0.54614854", "0.5459685", "0.5454005", "0.5452249", "0.54298496", "0.53978527", "0.5391152", "0.5388815", "0.5386139", "0.5379075", "0.5375908", "0.5366289", "0.5365627", "0.53621376", "0.53602314", "0.5352336", "0.53457594", "0.53392124", "0.533645", "0.5323901", "0.53204006", "0.5313985", "0.5310485", "0.53072846", "0.5306881", "0.53054404", "0.52986825", "0.5296146", "0.528165", "0.5269206", "0.5267408", "0.5253277", "0.52468103", "0.5246777", "0.5246284", "0.5242596", "0.5241712", "0.52352417", "0.52288276", "0.52267283", "0.5217154", "0.52145654", "0.5214083", "0.5211569", "0.52072275", "0.52066696", "0.5196917", "0.51916003", "0.5189516", "0.517948" ]
0.6472473
2
is the given date valid?
private static boolean isValid(int m, int d, int y) { if (m < 1 || m > 12) return false; if (d < 1 || d > DAYS[m]) return false; if (m == 2 && d == 29 && !isLeapYear(y)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isValidFor (@Nonnull DATATYPE aDate);", "boolean isValidForDate(LocalDate date);", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isValidDate(String date){\n Date inputDate = new Date(date);\n boolean isValid = false;\n\n if (inputDate.isValid()) {\n isValid = true;\n }else{\n generalTextArea.appendText(date + \" is not a valid date!\\n\");\n }\n return isValid;\n }", "public static boolean isValidDate(Date date) {\n\n if (date == null) return false;\n\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\n if (localDate.isBefore(LocalDate.parse(\"2000-01-01\"))) return false;\n\n if (localDate.isAfter(LocalDate.now().plusDays(30))) return false;\n\n return true;\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean checkDate(String date) {\n return date.matches(regexDate);\n }", "public static boolean isValidDate(String date) {\n return isValidDate(date, getDateTimeFormatter());\n }", "public boolean isValid() {\n if (this.month >= 1 && this.month <= 12 && this.day >= 1 && this.day < 32) {\n\n if ((this.month == 1 || this.month == 3 || this.month == 5 || this.month == 7 || this.month == 8\n || this.month == 10 || this.month == 12) && this.day > 30) {\n return false;\n } else if (this.month == 2 && this.day > 29) {\n return false;\n } else if (this.month == 2 && this.day > 28 && !isLeap(this.year)) {\n return false;\n } else {\n return true;\n }\n\n } else {\n return false;\n }\n }", "@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }", "public static boolean isReservationDateValid(String date, String date_format) {\r\n try {\r\n DateFormat df = new SimpleDateFormat(date_format);\r\n df.setLenient(false);\r\n df.parse(date);\r\n return true;\r\n } catch (ParseException e) {\r\n return false;\r\n }\r\n }", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "public static boolean isValidDate(String date) {\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern( \"uuuu-MM-dd\" );\n\t\ttry {\n\t\t LocalDate localDateBad = LocalDate.parse( (CharSequence) date , f );\n\t\t} catch ( DateTimeParseException e ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isValidDate(String date) {\n try {\n LocalDate.parse(date, INPUT_FORMATTER);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }", "public Boolean validarFecha(LocalDate fechaIngresada);", "private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}", "boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "public static boolean isValidDate(String input) {\n try {\n LocalDate.parse(input);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }", "protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }", "public boolean isValidDate(String s) {\n try {\n LocalDate.parse(s);\n return true;\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "private boolean validateDateAndTime(String date) {\n boolean isValid;\n Calendar prevDay;\n\n if(date != null && !date.isEmpty() && date.length() < MIN_DATE_LEN) {\n isValid = false;\n } else {\n prevDay = Calendar.getInstance(Locale.CANADA);\n prevDay.add(Calendar.DATE, -1); // All days valid from one day in the past\n Calendar cal = DateUtility.convertToDateObj(date);\n isValid = cal != null && cal.after(prevDay);\n }\n\n return isValid;\n }", "private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "boolean hasDate();", "public static boolean isValidDate(String inDate) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"mm/DD/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(inDate.trim());\n }\n catch (ParseException pe) {\n\n return false;\n }\n\n return true;\n }", "public static boolean checkDatePattern(String date) {\n return date.matches(\"^[0-9]{4}-[0-9]{2}-[0-9]{2}$\");\n }", "private static void checkDate(String date) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n if (!date.matches(RegexPattern.DATE_PATTERN)) {\n throw new DaoException(ExceptionMessage.getMessage(ExceptionMessage.DATE_PATTERN_ERROR));\n }\n try {\n Date formatDate = simpleDateFormat.parse(date);\n if (formatDate.getTime() + TIME_IN_DAY < new Date().getTime()) {\n throw new DaoException(\"Date must be in Future\");\n }\n } catch (ParseException ex) {\n throw new DaoException(ex.getMessage());\n }\n }", "public boolean validarFecha(LocalDate fecha) { \n // se comprueba que la fecha sea anterior o igual a la actual\n return fecha.isBefore(LocalDate.now()) || fecha.isEqual(LocalDate.now());\n }", "public static boolean dateFormatCheck(String date)\r\n\t{\r\n\t\treturn date.matches(\"(0?[1-9]|[12][0-9]|3[01])-(0?[1-9]|1[012])-((19|20)\\\\d\\\\d)\");\t\r\n\t}", "private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }", "public boolean validarFecha(Date fecha) {\n\t\tif(!fecha.before(Calendar.getInstance().getTime())) {\n\t\t\tJOptionPane.showMessageDialog(null, \"La fecha introducida es invalida\",\"Fecha invalida\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\treturn false;\n\t\t}else return true; \n\t}", "public static boolean isValidDate(String dateString) {\r\n\t\tboolean convertSuccess = true;\r\n\t\tSimpleDateFormat dateformat = new SimpleDateFormat(SDF_DATE, Locale.CHINA);\r\n\t\ttry {\r\n\t\t\tdateformat.setLenient(false);\r\n\t\t\tdateformat.parse(dateString);\r\n\t\t} catch (ParseException e) {\r\n\t\t\tconvertSuccess = false;\r\n\t\t}\r\n\t\treturn convertSuccess;\r\n\t}", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "public boolean validateDate(Date Date) {\n if (Date.after(startSemester) && Date.before(endSemester))\n if (Date.after(endHoliday) || Date.before(beginHoliday))\n return true;\n return false;\n\n }", "private static boolean dateValid(int[] time ) { \r\n\t\tfor ( int i = 0 ; i < time.length; i++) \r\n\t\t\tif (time[i] >2400 || time[i] < 0 ) \r\n\t\t\t\treturn false;\r\n\t\treturn true;\t\t\r\n\t}", "private boolean isDateValid(String date) {\n return date.contains(\"/\");\n }", "public boolean checkDate(int year, int month, int day) {\n\t\tboolean cd = checkDate(year, month, day, 0.0);\n\t\treturn cd;\n\t}", "public static boolean validateDate(String dateString) {\n boolean isValidDate = true;\n try {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(PATTERN);\n LocalDate ld = LocalDate.parse(dateString, dtf);\n } catch (Exception exc) {\n isValidDate = false;\n logger.error(\"Date found to be not parseable. Please check the \" +\n \"format!\");\n }\n return isValidDate;\n }", "@Test\n public void testIsValidateDate() {\n System.out.println(\"isValidateDate\");\n String dateString = \"2016-03-23T10:25:01Z\";\n boolean expResult = true;\n boolean result = DateUtil.isValidateDate(dateString);\n assertEquals(expResult, result);\n }", "public static boolean validDate(String fechaString) {\n // Try to parse the String.\n return DateUtil.parse(fechaString) != null;\n }", "public static boolean validateJavaDate(String strDate)\r\n {\r\n\tif (strDate.trim().equals(\"\"))\r\n\t{\r\n\t\tSystem.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t \r\n\t}\r\n\t/* Date is not 'null' */\r\n\telse\r\n\t{\r\n\t /*\r\n\t * Set preferred date format,\r\n\t * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\r\n\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t sdfrmt.setLenient(false);\r\n\t /* Create Date object\r\n\t * parse the string into date \r\n */\r\n\t try\r\n\t {\r\n\t Date javaDate = sdfrmt.parse(strDate); \r\n\t System.out.println(strDate+\" is valid date format\");\r\n\t }\r\n\t /* Date format is invalid */\r\n\t catch (ParseException e)\r\n\t {\r\n\t System.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t }\r\n\t \r\n\t return true;\r\n\t}\r\n }", "public void checkDate() throws InvalidDateException {\n Date todayDate = new Date();\n if (!todayDate.after(date)) {\n throw new InvalidDateException(\"Date is from the future!\");\n }\n }", "public static boolean validateDateFormat(String date, String format) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeParseException e) {\n return false;\n }\n return true;\n }", "boolean isSetDate();", "public static boolean isValidDate(String date) throws DateTimeException, NumberFormatException {\n\n if (date.length() != 10) {\n return false;\n }\n\n String[] dateComponents = date.split(\"/\");\n\n if (dateComponents.length != 3) {\n return false;\n }\n\n int day = Integer.parseInt(dateComponents[0]);\n int month = Integer.parseInt(dateComponents[1]);\n int year = Integer.parseInt(dateComponents[2]);\n\n LocalDate localdate;\n localdate = LocalDate.of(year, month, day);\n return true;\n }", "private boolean dateExists(){\n SimpleDateFormat dateFormat = getDateFormat();\n String toParse = wheels.getDateTimeString();\n try {\n dateFormat.setLenient(false); // disallow parsing invalid dates\n dateFormat.parse(toParse);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "public static boolean isValid (int yyyy, int mm, int dd)\n {\n // null date 0000 00 00 is considered valid\n // but otherwise year 0000 never happened.\n if ( yyyy == 0 ) return(mm == 0) && (dd == 0);\n if ( (yyyy < MIN_YEAR) || (yyyy > MAX_YEAR)\n || (mm < 1) || (mm > 12)\n || (dd < 1) || (dd > 31) ) return false;\n // account for missing 10 days in 1582.\n // Thursday 1582 October 4 Julian was followed\n // immediately by Friday 1582 October 15\n // Similarly for the British Calendar\n if ( yyyy == OJC_lastYYYY\n && mm == OJC_lastMM\n && OJC_lastDD < dd\n && dd < GC_firstDD )\n return false;\n return dd <= daysInMonth(mm, yyyy);\n }", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "public static boolean isValidCreationTime(Date date) {\r\n \treturn \t(date!=null) &&\r\n \t\t\t(date.getTime()<=System.currentTimeMillis());\r\n }", "public boolean checkData(String data){\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t dateFormat.setLenient(false);\n\t try {\n\t\t\tdateFormat.parse(data.trim());\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t return true;\n\t}", "public static boolean isValidDt(double dt) {\n\t\treturn ((0 < dt) && (dt < 0.2));\n\t}", "public static boolean checkExpDate(String cS_exp_date) {\n\t\t\n\t\t\n\t\treturn true;\n\t}", "@Test\n public void testIsValidarFecha() {\n System.out.println(\"isValidarFecha\");\n String fecha = \"06/09/2018\";\n boolean expResult = true;\n boolean result = Entradas.isValidarFecha(fecha);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }", "public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }", "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "public static boolean validarFecha(String fecha) {\n return validar(\"[0-9]{4}[-/][0-9]{2}[-/][0-9]{2}|[0-9]{2}[-/][0-9]{2}[-/][0-9]{4}\", fecha);\n }", "public Boolean isValidDate(int d, int m, int y)\r\n\t{\r\n\t\tint[] daysInMonth = new int[] {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\r\n\t\t\r\n\t\t//If dates negative or 0 or month beyond calender year\r\n\t\tif (d <= 0 || m <= 0 || m > 12 || y <= 0)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)) //If leap year\r\n\t\t{\r\n\t\t\tdaysInMonth[1] = 29; //Change feb to 29 days\r\n\t\t}\r\n\t\t\r\n\t\treturn d <= daysInMonth[m - 1];\r\n\t}", "public static boolean isValidDate(String date, DateTimeFormatter formatter) {\n try {\n LocalDate.parse(date, formatter);\n } catch (DateTimeException e) {\n return false;\n }\n return true;\n }", "private boolean checkValidDay() {\n return numDays >= 0 && numDays <= 7;\n }", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "@Override\n public boolean isValid() {\n return dateFrom != null && dateTo != null;\n }", "private static boolean isValid(int m, int d, int y) {\r\n\t\tif (m < 1 || m > 12)\r\n\t\t\treturn false;\r\n\t\tif (d < 1 || d > DAYS[m])\r\n\t\t\treturn false;\r\n\t\tif (m == 2 && d == 29 && !isLeapYear(y))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private static boolean isDate(String token) {\n return dateRegex.matcher(token).matches();\n }", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public boolean isValid() {\n\t\tboolean result;\n\t\tDate mySD = this.getStartDate();\n\t\tDate myED = this.getEndDate();\n\t\tTime myST = this.getStartTime();\n\t\tTime myET = this.getEndTime();\n\n\t\tif (myED.isBefore(mySD)) { //end is before start\n\t\t\tresult = false;\n\t\t} else if (myED.isEquals(mySD)) { //start and end same day\n\t\t\tif (myET.compareTo(myST) < 0) { //end time before start time\n\t\t\t\tresult = false;\n\t\t\t} else { result = true;\t}\n\t\t} else { result = true;\t}\n\n\t\treturn result;\n\t}", "boolean hasStartDate();", "private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }", "public interface DateValidator {\n\n boolean isDateValid(String date);\n}", "public boolean validDateRange() {\n\t\treturn dateEnd.compareTo(dateStart) > 0;\n\t}", "private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }", "public boolean checkDate(int year, int month, int day, double hour) {\n\t\tdouble jd = swe_julday(year, month, day, hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\treturn (dt.year == year && dt.month == month && dt.day == day);\n\t}", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "private static boolean isValid(int m, int d, int y) {\n\t\t\tif (m < 1 || m > 12) return false;\n\t\t\tif (d < 1 || d > DAYS[m]) return false;\n\t\t\tif (m == 2 && d == 29 && !isLeapYear(y)) return false;\n\t\t\treturn true;\n\t\t}", "public void setValidDate(Date validDate) {\r\n this.validDate = validDate;\r\n }", "public Date getValidDate() {\r\n return validDate;\r\n }", "public boolean checkCurrentDate()\n {\n boolean valid = this.check();\n if(!valid) return valid;\n\n try{\n\n date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n\n if (date != null\n &&\n (date.after(currentDate) || date.equals(currentDate)))\n {\n super.clearMessage();\n super.setMessage(FacesHelper.getBundleMessage(\"date_after_current\"));\n\n return valid && false;\n }\n return valid;\n }", "public static void isValidDate(LocalDate date) throws ValidationException {\n\t\tLocalDate today = LocalDate.now();\n\t\tif (date.isBefore(today)) {\n\t\t\tthrow new ValidationException(\"Date cannot be past date\");\n\t\t}\n\t}", "public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }", "public static boolean isValidAssignmentDeadline(String test) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HHmm\");\n sdf.setLenient(false);\n try {\n sdf.parse(test);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "public void validateStartDateAndTime(String date){\n setStartDateAndTimeValid(validateDateAndTime(date));\n }", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }", "public static boolean isValidDate(String date, String[] openMarketTime) {\n if (date.length() != 14) {\n return false;\n }\n\n String hhmm = date.substring(8, 10) + \":\" + date.substring(10, 12); // yyyyMMddHHmmss -> hh:mm\n return Util.isBetweenTimes(openMarketTime, hhmm);\n }", "public void verifyDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).check(ViewAssertions.matches(withText(date.format(dateFormat))));\n }", "public static boolean checkLot(String title, String date) throws InvalidDateValueException {\n return (checkTitle(title) && checkDate(date));\n }", "void validateDates(ComponentSystemEvent event);", "public static boolean validarFecha(String fecha)\n\t{\n\t\tCalendar calendario = Calendar.getInstance();\n\t \tint hora,minutos,segundos,dia,mes,ano;\n\t \thora =calendario.get(Calendar.HOUR_OF_DAY);\n\t \tminutos = calendario.get(Calendar.MINUTE);\n\t \tsegundos = calendario.get(Calendar.SECOND);\t \t\n\t \t\n\t \tdia = calendario.get(Calendar.DAY_OF_MONTH);\n\t \tmes = calendario.get(Calendar.MONTH);\n\t \tmes=mes+1;\n\t\tano = calendario.get(Calendar.YEAR);\t\t\n\t\tString diaFecha;\n\t\tString mesFecha;\n\t\tString anoFecha = null;\n\t\t\n\t\tint pos = 0;\n\t\tpos = fecha.indexOf('/');\n\t\tSystem.out.println(\"la posicion del primer slash es: \"+pos);\n\t\tdiaFecha = fecha.substring(0,pos);\n\t\tString resto = fecha.substring(pos+1,fecha.length());\n\t\tint pos2 = 0;\n\t\tpos2 = resto.indexOf('/');\n\t\tmesFecha = resto.substring(0,pos2);\n\t\tString resto2 = resto.substring(pos2+1,resto.length());//resto 3 es el ano\t\t\n\t\tSystem.out.println(\"la fecha es:\"+diaFecha+\",\"+mesFecha+\",\"+resto2);\t\t\n\t\tint diaInt,mesInt,anoInt;\n\t\tdiaInt=Integer.parseInt(diaFecha);\n\t\tmesInt=Integer.parseInt(mesFecha);\n\t\tanoInt=Integer.parseInt(resto2);\t\t\n\t\tSystem.out.println(\"fechaSistema:\"+dia+\"/\"+mes+\"/\"+ano);\n\t\tSystem.out.println(\"fechaEntrada:\"+diaInt+\"/\"+mesInt+\"/\"+anoInt);\n\t\tif ((anoInt<ano))\n\t\t{\n\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (mesInt<mes)\n\t\t\t{\t\t\t\t\n\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\treturn true;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (diaInt < dia)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"fecha de entrada es menor\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n \t\n\t}", "public static boolean checkDateConstraints(Task task) {\n if (task.getBeginDate().before(new Date()) ||\n task.getBeginDate().after(task.getEndingDate()) ||\n task.getBeginDate().equals(task.getEndingDate())) {\n return false;\n }\n return true;\n }", "boolean isValidForNow ();" ]
[ "0.80980885", "0.7970524", "0.78506005", "0.78341436", "0.7819129", "0.7778189", "0.7750392", "0.77502793", "0.77304274", "0.7646913", "0.75717515", "0.7563238", "0.7550295", "0.7535916", "0.7528795", "0.75007564", "0.7495145", "0.7478475", "0.74689883", "0.744953", "0.74260235", "0.7414282", "0.73723805", "0.7361588", "0.73586136", "0.73402166", "0.733859", "0.73167855", "0.73125035", "0.72922814", "0.72860295", "0.72674626", "0.7245465", "0.7162241", "0.71449506", "0.7137375", "0.7122157", "0.7093961", "0.70750654", "0.7055343", "0.7026731", "0.7010761", "0.69932115", "0.69841665", "0.6970471", "0.6957518", "0.69451565", "0.69111484", "0.6904356", "0.69005126", "0.6865678", "0.68369853", "0.67832106", "0.6768397", "0.67537606", "0.6734377", "0.67286795", "0.67279965", "0.6726653", "0.672214", "0.67079335", "0.6700667", "0.66995615", "0.6699429", "0.6691331", "0.6689032", "0.66853535", "0.6651057", "0.6650208", "0.6647195", "0.6640521", "0.6631572", "0.6623908", "0.6622571", "0.6620444", "0.6618861", "0.6618622", "0.66005504", "0.6595127", "0.65912485", "0.6585513", "0.6564853", "0.6564144", "0.6551116", "0.65459675", "0.65366834", "0.65188843", "0.6504335", "0.65003926", "0.6499207", "0.64887404", "0.64757824", "0.64675516", "0.64607143", "0.64565444", "0.6454808", "0.6451464", "0.64509743", "0.6449227", "0.6442338" ]
0.656023
83
is y a leap year?
private static boolean isLeapYear(int y) { if (y % 400 == 0) return true; if (y % 100 == 0) return false; return y % 4 == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isLeapYear(int y) {\r\n\t\tif (y % 400 == 0)\r\n\t\t\treturn true;\r\n\t\tif (y % 100 == 0)\r\n\t\t\treturn false;\r\n\t\treturn (y % 4 == 0);\r\n\t}", "private static boolean isLeapYear(int y) {\n\t\t\tif (y % 400 == 0) return true;\n\t\t\tif (y % 100 == 0) return false;\n\t\t\treturn y % 4 == 0;\n\t\t}", "public boolean isLeapYear(){\n\t if (((this.year % 4 == 0) && (this.year % 100 != 0)) || (this.year %400 == 0))\n\t return true;\n\treturn false;\n }", "public void leapYear() {\n System.out.print(\"\\nEnter a year: \");\n long year = in.nextLong();\n if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {\n System.out.println(\"\\n\" + year + \" is a leap year.\\n\");\n } else {\n System.out.println(\"\\n\" + year + \" is not a leap year.\\n\");\n }\n }", "private boolean leapyear(int yr){\n if(yr%4 == 0 && yr%100 != 0){ //If year is divisible by 4 but not by 100\r\n days[1] = 29; //Set February's days to 29\r\n return true; //Retrn true.\r\n }\r\n return false; //Otherwise, return false.\r\n }", "boolean isLeapYear(int year){\n\tif (year % 400 == 0)\n\t\treturn true;\n\telse if (year % 100 == 0)\n\t\treturn false;\n\telse if (year % 4 == 0)\n\t\treturn true;\n\telse\n\t\treturn false;\n }", "private static boolean isLeapYear(int year) {\n return year % 400 == 0 || (year % 100 != 0 && year % 4 == 0);\n }", "private boolean leap(int year) {\n\t\tif (!(year % 4 == 0)) {\n\t\t\treturn false;\n\t\t} else if (!(year % 100 == 0)) {\n\t\t\treturn true;\n\t\t} else if (!(year % 400 == 0)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public static boolean isLeapYear(int year) {\n if(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)){\n return true;\n } \n else{\n return false; \n } \n }", "public boolean isLeapYear() {\n\n return ((this.cyear % 4) == 3);\n\n }", "private static boolean isLeapYear(int year)\n\t{\n \t if ((year % 4 == 0) && (year % 100 != 0)) return true;\n\t\t if (year % 400 == 0) return true;\n\t\t return true;\n }", "private static boolean isLeapYear(int year)\n\t{\n\t\treturn ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);\n\t}", "public boolean isLeapYear(int year){\r\n if(year%4 != 0){\r\n return false;\r\n } else if(year%100 == 0){\r\n if(year%400 != 0) return false; \r\n }\r\n return true;\r\n }", "public static boolean getLeapYear() {\n boolean tag = false;\n Date date = new Date();\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy\");\n String dt = df.format(date);\n int pastYear = Integer.parseInt(dt) - 1;\n if (pastYear % 4 == 0 && (pastYear % 100 != 0 || pastYear % 400 == 0)) tag = true;\n return tag;\n }", "public static boolean isLeap (int yyyy)\n {\n // if you change this code, make sure you make corresponding changes to\n // jan01OfYear, toGregorian, MondayIsZeroAdjustment, SundayIsZeroAdjustment,\n // AD_epochAdjustment and BC_epochAdjustment\n // yyyy & 3 is a fast way of saying yyyy % 4\n if ( yyyy < Leap100RuleYYYY )\n if ( yyyy < 0 )\n {\n return((yyyy + 1) & 3) == 0;\n }\n else\n {\n return(yyyy & 3) == 0;\n }\n if ( (yyyy & 3) != 0 ) return false;\n if ( yyyy % 100 != 0 ) return true;\n if ( yyyy < Leap400RuleYYYY ) return false;\n if ( yyyy % 400 != 0 ) return false;\n return true;\n }", "public boolean isLeap(int year) {\n\n if (year % 4 == 0) {\n if (year % 100 == 0) {\n if (year % 400 == 0) {\n return true;\n } else {\n return false;\n }\n\n } else\n return true;\n } else {\n return false;\n }\n\n }", "@Test\n public void isLeapYear() {\n assertFalse(Deadline.isLeapYear(Integer.parseInt(VALID_YEAR_2018)));\n\n // Valid leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2020)));\n\n // Valid year divisible by 4 but is common year -> returns false\n assertFalse(Deadline.isLeapYear(Integer.parseInt(NON_LEAP_YEAR_2100)));\n\n // Valid year divisible by 100 but is leap year -> returns true\n assertTrue(Deadline.isLeapYear(Integer.parseInt(LEAP_YEAR_2400)));\n }", "public static boolean isLeap (int year) {\r\n\t\tif ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0)) // uslov za prestupnu godinu\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public static boolean isLeapYear(int year){\n if(year%100==0){\n if(year%400==0){\n return true;\n }\n else{\n return false;\n }\n }\n else{\n if(year%4==0){\n return true;\n }\n else{\n return false;\n }\n }\n }", "private static boolean isLeapMonth(int m, int y) {\r\n\t\tif (isLeapYear(y))\r\n\t\t\treturn ((m == 2) ? true : false);\r\n\t\treturn false;\r\n\t}", "public static boolean isLeapYear(int year){\n\t\t\r\n\t\tif ((year%4==0&&year%100!=0)||(year%400==0)){\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void isLeapYearOk(){\n assertTrue(Date.isLeapYear(2008));\n }", "public boolean leapYear(int year) {\r\n\r\n\t\tif (year % 4 == 0 || year % 400 == 0 && year % 100 != 0) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "public boolean isLeapYear(int year) {\n\t\tboolean isALeapYear = year % 400 == 0 || year % 4 == 0 && year % 100 != 0;\n\t\treturn isALeapYear;\n\t}", "public boolean Leap_Gregorian(double year)\n {\n return ((year % 4) == 0) && (!(((year % 100) == 0) && ((year % 400) != 0)));\n }", "public static boolean isLeapYear(int year) {\n\t\t// Calendar cal = Calendar.getInstance();\n\t\t// if (cal.YEAR % 4 == 0)\n\t\tif (year % 100 != 0 || year % 400 == 0) {\n\t\t\tif (year % 4 == 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean leapYear(int year)\n\t{\n\t\tif(year<999 || year>9999) \n\t\t{\n\t\t\tSystem.out.println(\"Enter valid year\");\n\t\t}\n\t\t\n\t\tif(year%400==0 || year%4==0 && year%100!=0) \n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "protected static final boolean is_leap_year_gregorian (int year)\n {\n // Algorithm: Kernighan & Richie,\n // \"The C Programming Language\", 1st edition (1978), p. 37.\n //\n return (year % 4 == 0 && year % 100 != 0 || year % 400 == 0);\n }", "@Test\n public void checkLeapYearCriteria() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItLeapYear(1600);\n assertTrue(flag);\n }", "public static boolean isLeapYear(int year)\n\t{\n\t\tif(year < 0)\n\t\t\treturn false;\n\t\tif(year % 400 == 0)\n\t\t\treturn true;\n\t\tif(year % 100 != 0 && year % 4 == 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean LeapYearValidation(int year) {\r\n\t\tif (year >= 1582 && year <= 9999)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\r\n\t}", "public boolean isDate (int year, int doy)\n {\n return ((year >= FIRST_YEAR)\n && (1 <= doy && doy <= getLengthOfYear (year)));\n }", "boolean isLeapSecondsKnown();", "@Test\n public void test6() {\n boolean res = object.checkLeapYear(-400);\n assertEquals(false, res);\n }", "@Test\n public void test7() {\n boolean res = object.checkLeapYear(1900);\n assertEquals(false, res);\n }", "public void Leapyear(int YearToCheck) {\n\n boolean leapValue = false;\n\n if (((YearToCheck % 4 == 0) && (YearToCheck % 100 != 0)) || (YearToCheck % 400 == 0)){\n leapValue=true;}\n\n if (leapValue)\n System.out.println(YearToCheck + \" is a leap year.\");\n else\n System.out.println(YearToCheck + \" is not a leap year.\");\n }", "public abstract String reportLeapYear(int year);", "@Override\n protected boolean isLeapYear(int persianYear) {\n return ((((((persianYear - ((persianYear > 0) ? 474 : 473)) % 2820) + 474) + 38) * 682) % 2816) < 682;\n }", "static int countLeapYears(DaysBetween d) \n {\n int years = d.y;\n \n // Check if the current year needs to be considered\n // for the count of leap years or not\n if (d.m <= 2) \n {\n years--;\n }\n \n // An year is a leap year if it is a multiple of 4,\n // multiple of 400 and not a multiple of 100.\n return years / 4 - years / 100 + years / 400;\n }", "@Test\n public void leapYearIsDivisibleBy4(){\n int year = 2020;\n assertTrue(LeapYear.isLeapYear(year));\n }", "public void checkLeapYear(int year) {\r\n\t int count=1;\r\n\t int temp=year;\r\n\t\twhile(temp>10){\r\n\t\t\tint r= temp%10;\r\n\t\t\tcount++;\r\n\t\t\ttemp=temp/10;\r\n\t\t}\r\n\t\tif(count>=3){\r\n\t\t\tif(year%4==0){\r\n\t\t\t\tSystem.out.println(\"given year is leap year:\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"given year is not leap year:\");\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"please enter atleast 4 digit no to find leap year\");\r\n\t\t}\r\n}", "@Test\n public void test8() {\n boolean res = object.checkLeapYear(2000);\n assertEquals(true, res);\n }", "protected static final boolean is_leap_year_julian (int year)\n {\n return (year % 4 == 0);\n }", "@Test\n public void test1() {\n boolean res = object.checkLeapYear(0);\n assertEquals(false, res);\n }", "@Test\r\n\tpublic void test_leap_zero() {\r\n\t\tLeapYear year1940 = new LeapYear(1940);\r\n\t\tLeapYear year2080 = new LeapYear(2080);\r\n\t\tassertTrue(year1940.isLeapYear());\r\n\t\tassertTrue(year2080.isLeapYear());\r\n\r\n\t}", "@Test\r\n\tpublic void test_leap_five(){\r\n\t\tLeapYear year1555 = new LeapYear(1555);\r\n\t\tLeapYear year2135 = new LeapYear(2135);\r\n\t\tassertFalse(year1555.isLeapYear());\r\n\t\tassertFalse(year2135.isLeapYear());\r\n\t}", "public boolean isALeapYear(int year){\n\n if (((year%4 == 0) && (year%100!=0)) || (year%400==0)){\n return true;\n }\n return false;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n //take input from user and store into year variable\n System.out.printf(\"Enter a year: \");\n int year = input.nextInt();\n\n /*\n Condition:\n The year is evenly divisible by 4;\n If the year can be evenly divided by 100, it is NOT a leap year, unless;\n The year is also evenly divisible by 400. Then it is a leap year.\n */\n\n if( year%4 == 0){\n if (year%100 == 0){\n if (year%400 == 0){\n System.out.println(year + \" is leap year\");\n } else {\n System.out.println(year+\" is not leap year\");\n }\n }\n else {\n System.out.println(year + \" is leap year\");\n }\n } else {\n System.out.println(year+ \" is not leap year\");\n }\n\n\n }", "private static Boolean checkYear(){\r\n try{\r\n int year = Integer.parseInt(yearField.getText().trim());\r\n int now = LocalDate.now().getYear();\r\n \r\n if(LocalDate.now().getMonth().compareTo(Month.SEPTEMBER) < 0){\r\n now--;\r\n }\r\n //SIS stores the schedule for last 3 years only \r\n if(year <= now && year >= now - 3 ){\r\n return true;\r\n }\r\n }\r\n catch(Exception e){\r\n Logger.getLogger(\"Year checker\").log(Level.WARNING, \"Exception while resolving the year \", e);\r\n }\r\n return false;\r\n }", "@Property\n void nonCenturialLeapYearTest(@ForAll(\"nonCenturialLeapYears\") int year){\n assertThat(ly.isLeapYear(year));\n }", "@Property\n void centurialNonLeapYearTest(@ForAll(\"centurialNonLeapYears\") int year){\n assertThat(!ly.isLeapYear(year));\n }", "@Test\n\tpublic void testLeap002() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"2015\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_FALSE_RESULT, response.getResults());\n\t}", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter Year to check whether it is leap year or not:\");\r\n\t\tint year= scan.nextInt();\r\n\t\tscan.close();\r\n\t\tif(year%4==0)\r\n\t\t\tSystem.out.println(year+\" is leap year\");\r\n\t\telse\r\n\t\t\tSystem.out.println(year+\" is not leap year\");\r\n\t}", "@Test\n\tpublic void testLeap001() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"2014\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_FALSE_RESULT, response.getResults());\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n public void testIncorrectLeapYear() {\r\n SimpleDate d1 = new SimpleDate(\"2/29/2000\");\r\n }", "@Property\n void nonCenturialNonLeapyearTest(@ForAll(\"nonCenturialNonLeapyears\") int year){\n assertThat(!ly.isLeapYear(year));\n }", "public static boolean esAnoBisiesto(int year) {\r\n\t\t assert year >= 1583; // not valid before this date.\r\n\t\t return ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);\r\n\t}", "@Test\n\tpublic void testLeap005() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"1900\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_FALSE_RESULT, response.getResults());\n\t}", "public static void main(String[] args) {\n\t\tint y=2019; //변수를 꼭 똑같이 year로 쓸 필요 없다. 다만, 메소드의 변수명과 일치시키는게 편하므로 똑같이 쓸 뿐이다. \n\t\tisLeapYear(y);\n\t\tboolean bCheck=isLeapYear2(y);\n\t\tif(bCheck)\n\t\t\tSystem.out.println(\"윤년입니다.\");\n\t\telse\n\t\t\tSystem.out.println(\"윤년이 아닙니다.\");\n\t}", "private static boolean isValid(int m, int d, int y) {\n\t\t\tif (m < 1 || m > 12) return false;\n\t\t\tif (d < 1 || d > DAYS[m]) return false;\n\t\t\tif (m == 2 && d == 29 && !isLeapYear(y)) return false;\n\t\t\treturn true;\n\t\t}", "private static boolean isValid(int m, int d, int y) {\r\n\t\tif (m < 1 || m > 12)\r\n\t\t\treturn false;\r\n\t\tif (d < 1 || d > DAYS[m])\r\n\t\t\treturn false;\r\n\t\tif (m == 2 && d == 29 && !isLeapYear(y))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private static boolean isValid(int m, int d, int y) {\n if (m < 1 || m > 12) return false;\n if (d < 1 || d > DAYS[m]) return false;\n if (m == 2 && d == 29 && !isLeapYear(y)) return false;\n return true;\n }", "protected static final int date2doy\n (boolean isLeapYear, int month, int day)\n {\n return (isLeapYear\n ? date2doy_in_leap_year[month][day]\n : date2doy_in_ordinary_year[month][day]);\n }", "@Test\n\tpublic void testLeap003() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"2016\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_TRUE_RESULT, response.getResults());\n\t}", "protected final void doy2date (boolean isLeapYear, int year, int doy)\n {\n this.year = year;\n if (isLeapYear) {\n month = doy2month_in_leap_year[doy];\n day = doy2day_in_leap_year[doy];\n }\n else {\n month = doy2month_in_ordinary_year[doy];\n day = doy2day_in_ordinary_year[doy];\n }\n }", "@Test\n\tpublic void testLeap006() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"2004\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_TRUE_RESULT, response.getResults());\n\t}", "@Property\n void centurialLeapYearTest(@ForAll(\"centurialLeapYears\") int year){\n assertThat(ly.isLeapYear(year));\n }", "int getYear();", "@Test\n\tpublic void testLeap004() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"2000\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_TRUE_RESULT, response.getResults());\n\t}", "private boolean isCurrentYear(Date date) {\n boolean result = false;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(date);\n Calendar today = Calendar.getInstance();\n if (today.get(Calendar.YEAR) == calendar.get(Calendar.YEAR)) {\n result = true;\n }\n return result;\n }", "public Boolean isValidDate(int d, int m, int y)\r\n\t{\r\n\t\tint[] daysInMonth = new int[] {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\r\n\t\t\r\n\t\t//If dates negative or 0 or month beyond calender year\r\n\t\tif (d <= 0 || m <= 0 || m > 12 || y <= 0)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)) //If leap year\r\n\t\t{\r\n\t\t\tdaysInMonth[1] = 29; //Change feb to 29 days\r\n\t\t}\r\n\t\t\r\n\t\treturn d <= daysInMonth[m - 1];\r\n\t}", "@Test\n\tpublic void testLeap007() throws VistaWebServiceFault {\n\n\t\trequest.setYear(\"NINTEEN HUNDRED\");\n\n\t\t// Execute request against mocked object backend.\n\t\tresponse = service.leap(request);\n\n\t\tassertNotNull(response);\n\t\tassertEquals(EXPECTED_FALSE_RESULT, response.getResults());\n\t}", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "public static void main(String[] args) {\n\n int year = 2020; // boolean: ==, =, !=, <=, >=, <, >\n boolean result = year % 4 == 0;\n\n System.out.println(\"Year\" + year + \"is a leap year: \" + result); // 2020 is a leap year : true; 2021 is a leap year : false\n System.out.println ( 10/3.0 );\n\n System.out.println ( (int)(10.0/3) );\n\n\n\n\n\n\n\n\n }", "private static boolean checkIfYearContinue(Sheet sheet) {\r\n String last = sheet.getCellAt(\"A\" + sheet.getRowCount()).getTextValue(); \r\n return !last.equals(\"end\");\r\n }", "public static int checkDaysInMonth(int m, int y) {\n if (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) { // if it is a long month\n return 31; // the month has 31 days\n } else if (m == 4 || m == 6 || m == 9 || m == 11) { // if it is a short month\n return 30; // the month has 30 days\n } else if (m == 2) { // if the month is February\n if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0) { // if it is a leap year\n return 29; // the month has 29 days\n } else { // if it is not a leap year\n return 28; // the month has 28 days\n }\n }\n return 0; // if the month number is invalid\n }", "public void setYear(int y){\n\t\tyear = y ; \n\t}", "public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}", "private int NumberLeapyearsSince1900 (int YearNumber) {\n int i = 1900;\n int countLeapyears = 0;\n for (i = 1900; i < YearNumber; i = i+4); {\n if (daysInYear(i) == 366) {\n countLeapyears ++;\n }\n } return countLeapyears;\n\n }", "public boolean experired() {\n\t\tint month = Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\tString[] parts = this.experiation.split(\"/\");\n\t\tString originalMonth = parts[0];\n\t\tint oM = Integer.parseInt(originalMonth);\n\t\tString originalYear = parts[1];\n\t\tint oY = Integer.parseInt(originalYear);\n\t\t\n\t\tif(oY < year) {\n\t\t\treturn true;\n\t\t}\n\t\tif(oY == year && oM < month) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected final boolean ok_date (int year, int month, int day)\n {\n return ((year >= FIRST_YEAR) &&\n (1 <= month && month <= getLastMonthOfYear(year)) &&\n (1 <= day && day <= getLengthOfMonth (year, month)));\n }", "public boolean IsElectionYear(int Year) {\n\t\tif (Year % 4 == 0 && Year!=0) {\n\t\t\tif(debug) logger.info(\"IsElectionYear: true\");\n\t\t\treturn(true);\n\t\t}\n\t\telse {\n\t\t\tif(debug) logger.info(\"IsElectionYear: false\");\n\t\t\treturn(false);\t\n\t\t}\t\n\t}", "@Test public void Mdy_at_y_slash()\t\t\t\t\t\t\t\t{tst_date_(\"1/2/70\"\t\t\t\t\t, \"1970-01-02\");}", "public int getEndingYear()\n {\n return -1;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner stdIn = new Scanner(System.in);\r\n\t\t\r\n\t\tint year = stdIn.nextInt();\r\n\t\t\r\n\t\tif((year % 4) == 0 && (year % 100) != 0 || (year % 400 == 0))\r\n\t\t\tSystem.out.print(\"yes\");\r\n\t\telse\r\n\t\t\tSystem.out.print(\"no\");\r\n\r\n\t}", "private static int getDaysInYear(final int year) {\n return LocalDate.ofYearDay(year, 1).lengthOfYear();\n }", "public void checkYear()\n {\n //Rat\n if (year == 1900 || year == 1912 || year == 1924 || year == 1936 || year == 1948 || year == 1960 || year == 1972 || year == 1984 || year == 1996 || year == 2008 || year == 2020)\n {System.out.println(\"Born in the year of the Rat\");}\n //Ox\n else if (year == 1901 || year == 1913 || year == 1925 || year == 1937 || year == 1949 || year == 1961 || year == 1973 || year == 1985 || year == 1997 || year == 2009 || year == 2021)\n {System.out.println(\"Born in the year of the Ox\");}\n //tiger\n else if (year == 1902 || year == 1914 || year == 1926 || year == 1938 || year == 1950 || year == 1962 || year == 1974 || year == 1986 || year == 1998 || year == 2010 || year == 2022)\n {System.out.println(\"Born in the year of the Tiger\");}\n //Hare\n else if (year == 1903 || year == 1915 || year == 1927 || year == 1939 || year == 1951 || year == 1963 || year == 1975 || year == 1987 || year == 1999 || year == 2011 || year == 2023)\n {System.out.println(\"Born in the year of the Hare/Rabbit\");}\n //Dragon\n else if (year == 1904 || year == 1916 || year == 1928 || year == 1940 || year == 1952 || year == 1964 || year == 1976 || year == 1988 || year == 2000 || year == 2012 || year == 2024)\n {System.out.println(\"Born in the year of the Dragon\");}\n //Snake\n else if (year == 1905 || year == 1917 || year == 1929 || year == 1941 || year == 1953 || year == 1965 || year == 1977 || year == 1989 || year == 2001 || year == 2012 || year == 2025)\n {System.out.println(\"Born in the year of the Snake\");}\n //Horse\n else if (year == 1906 || year == 1918 || year == 1930 || year == 1942 || year == 1954 || year == 1966 || year == 1978 || year == 1990 || year == 2002 || year == 2013 || year == 2026)\n {System.out.println(\"Born in the year of the Horse\");}\n //Ram\n else if (year == 1907 || year == 1919 || year == 1931 || year == 1943 || year == 1955 || year == 1967 || year == 1979 || year == 1991 || year == 2003 || year == 2014 || year == 2027)\n {System.out.println(\"Born in the year of the Ram\");}\n //Monkey\n else if (year == 1908 || year == 1920 || year == 1932 || year == 1944 || year == 1956 || year == 1968 || year == 1980 || year == 1992 || year == 2004 || year == 2015 || year == 2028)\n {System.out.println(\"Born in the year of the Monkey\");}\n //Rooster\n else if (year == 1909 || year == 1921 || year == 1933 || year == 1945 || year == 1957 || year == 1969 || year == 1981 || year == 1993 || year == 2005 || year == 2016 || year == 2029)\n {System.out.println(\"Born in the year of the Rooster\");}\n //Dog\n else if (year == 1910 || year == 1922 || year == 1934 || year == 1946 || year == 1958 || year == 1970 || year == 1982 || year == 1994 || year == 2006 || year == 2017 || year == 2030)\n {System.out.println(\"Born in the year of the Dog\");}\n //Pig\n else if (year == 1911 || year == 1923 || year == 1935 || year == 1947 || year == 1959 || year == 1971 || year == 1983 || year == 1995 || year == 2007 || year == 2018 || year == 2031)\n {System.out.println(\"Born in the year of the Pig\");}\n }", "public int getLastMonthOfYear (int year)\n {\n return 12;\n }", "public boolean isSupportYear() {\r\n return true;\r\n }", "public boolean checkValidationForDate(int month, int day, boolean leapYear) {\r\n\r\n\t\tswitch (month) {\r\n\t\tcase 1:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 2:\r\n\t\t\tif (leapYear) {\r\n\t\t\t\tif (day > 0 && day <= 29) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tif (day > 0 && day <= 28) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\tcase 3:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 4:\r\n\t\t\tif (day > 0 && day <= 30) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 5:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 6:\r\n\t\t\tif (day > 0 && day <= 30) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 7:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 8:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 9:\r\n\t\t\tif (day > 0 && day <= 30) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 10:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 11:\r\n\t\t\tif (day > 0 && day <= 30) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tcase 12:\r\n\t\t\tif (day > 0 && day <= 31) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Please enter valid input\");\r\n\t\t}\r\n\t\treturn false;\r\n\r\n\t}", "protected static final int jan01OfYear(int yyyy)\n {\n int leapAdjustment;\n if ( yyyy < 0 )\n {\n // years -1 -5 -9 were leap years.\n // adjustment -1->1 -2->1 -3->1 -4->1 -5->2 -6->2\n leapAdjustment = (3 - yyyy) / 4;\n return(yyyy * 365) - leapAdjustment + BC_epochAdjustment;\n }\n\n // years 4 8 12 were leap years\n // adjustment 1->0 2->0, 3->0, 4->0, 5->1, 6->1, 7->1, 8->1, 9->2\n leapAdjustment = (yyyy - 1) / 4;\n\n int missingDayAdjust = (yyyy > GC_firstYYYY) ? missingDays : 0;\n\n // mod 100 and mod 400 rules started in 1600 for Gregorian,\n // but 1800/2000 in the British scheme\n if ( yyyy > Leap100RuleYYYY )\n {\n leapAdjustment -= (yyyy-Leap100RuleYYYY+99) / 100;\n }\n if ( yyyy > Leap400RuleYYYY )\n {\n leapAdjustment += (yyyy-Leap400RuleYYYY+399) / 400;\n }\n\n return yyyy * 365\n + leapAdjustment\n - missingDayAdjust\n + AD_epochAdjustment;\n }", "Year createYear();", "private static int getDaysSinceNewYear() {\n\t\tGregorianCalendar now = new GregorianCalendar();\n\n\t\treturn now.get(GregorianCalendar.DAY_OF_YEAR);\n\t}", "public boolean setYear(int newYear) {\n\t\tthis.year = newYear;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\t\tLeapYear c=new LeapYear();\r\n\t\t\t\t\r\n\t\tScanner scan=new Scanner(System.in);\r\n\t\tSystem.out.println(\"***** Leap Year & Non Leap Year Program *****\");\t\t\r\n\t\tSystem.out.println(\"Enter the year: \");\r\n int year=scan.nextInt();\r\n\r\n String res=c.findyear(year);\r\n System.out.println(\"The given year is \"+res);\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter FROM which year you want to check the leap years: \");\r\n\t\tint fromY = Numbers.inputPositiveInteger();\r\n\t\tSystem.out.println(\"Enter TO which year you want to check the leap years: \");\r\n\t\tint ToY = Numbers.inputPositiveInteger();\r\n\t\t\r\n\t\tif(ToY<fromY){ //if the interval is not ok, like from 90 to 20 than print\r\n\t\t\tSystem.out.println(\"The years interval you entered has no sense.\");\r\n\t\t}else{\r\n\t\t\tcountAndPrintLeapYears(fromY, ToY);//else if its ok, than calculate and print\r\n\t\t}\r\n\t}", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "Integer getTenYear();", "public boolean checkDate(int year, int month, int day) {\n\t\tboolean cd = checkDate(year, month, day, 0.0);\n\t\treturn cd;\n\t}", "@Test\n public void computeFactor_FebruaryOfLeapYear() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-01 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-29 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-02-01 00:00:00\", \"2012-03-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.DAY,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then factor is 29 (days)\n assertEquals(29, factor, 0);\n }" ]
[ "0.8763436", "0.8733412", "0.805778", "0.7843906", "0.78231186", "0.7775126", "0.7755014", "0.7737467", "0.7737397", "0.7732945", "0.7713731", "0.76818395", "0.76803946", "0.76695347", "0.76439667", "0.7638443", "0.7610375", "0.76091206", "0.7587896", "0.749945", "0.7467662", "0.74669856", "0.737411", "0.7336659", "0.7318283", "0.72891355", "0.7211558", "0.7186471", "0.71563876", "0.71048266", "0.708021", "0.70755976", "0.69335824", "0.6896982", "0.6866086", "0.6852557", "0.6843755", "0.6801438", "0.67914677", "0.67650807", "0.6760752", "0.6728184", "0.6718653", "0.66453", "0.6644315", "0.6600352", "0.6566559", "0.65637493", "0.65596217", "0.635222", "0.632", "0.63093734", "0.62751526", "0.6254206", "0.622805", "0.6223367", "0.6209588", "0.6200625", "0.6200057", "0.6196534", "0.6180212", "0.61673635", "0.6157266", "0.6133973", "0.61237395", "0.6118662", "0.6096375", "0.6092489", "0.60847074", "0.60624355", "0.60593027", "0.60475117", "0.60196066", "0.6014791", "0.5992317", "0.59902716", "0.5982589", "0.59358865", "0.5923357", "0.5909358", "0.585629", "0.58445954", "0.58436304", "0.582548", "0.5784321", "0.5781634", "0.5758811", "0.5724948", "0.57143766", "0.5705899", "0.5696638", "0.5674358", "0.56687605", "0.56440353", "0.5641189", "0.56173664", "0.5603397", "0.55982643", "0.55979335", "0.55359226" ]
0.87723
0
Returns the next date in the calendar
public Date next() { if (isValid(month, day + 1, year)) return new Date(month, day + 1, year); else if (isValid(month + 1, 1, year)) return new Date(month, 1, year); else return new Date(1, 1, year + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new Date(month + 1, 1, year);\r\n\t\telse\r\n\t\t\treturn new Date(1, 1, year + 1);\r\n\t}", "protected abstract void calcNextDate();", "Date NextEvent(Date d);", "public Day getNextStartDay() {\n return getDay(this.days + 1);\n }", "public void nextDay() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy\");\n localDate = LocalDate.parse(irlDate, formatter);\n localDate = localDate.plusDays(1);\n irlDate = DateTimeFormatter.ofPattern(\"d/M/yyyy\").format(localDate);\n System.out.println(irlDate);\n currentDay = Integer.parseInt(DateTimeFormatter.ofPattern(\"d\").format(localDate));\n currentMonth = Integer.parseInt(DateTimeFormatter.ofPattern(\"M\").format(localDate)) - 1;\n currentYear = Integer.parseInt(DateTimeFormatter.ofPattern(\"yyyy\").format(localDate));\n }", "public void nextDay() {\r\n int daysMax = daysInMonth();\r\n \r\n if (day == daysMax && month == 12) { // If end of the year, set date to Jan 1\r\n setDate(1, 1);\r\n } else if (day == daysMax) { // If last day of month, set to first day of next month\r\n setDate(month + 1, 1);\r\n } else { // Otherwise, simply increment this day\r\n day++;\r\n }\r\n }", "@Override\n public void clickDateNextDay() {\n\n if (DateUtil.isLastDate()) {\n final WebElement divElement = DriverConfig.getDriver().findElement(\n By.id(\"ui-datepicker-div\"));\n final WebElement nextElement = retrieveElementByAttributeValueContainsForSubElement(\n DriverConfig.getDriver(), divElement, TAG_SPAN, ATTR_CLASS,\n \"ui-icon ui-icon-circle-triangle-e\", SHORT_TIMEOUT);\n nextElement.click();\n changeAwayDateValue(\"1\");\n } else {\n int current = DateUtil.getCurrentDate();\n changeAwayDateValue(String.valueOf(current + 1));\n }\n }", "public Group3Date next() {\n\t\t\tif (isValid(month, day + 1, year)) return new Group3Date(month, day + 1, year);\n\t\t\telse if (isValid(month + 1, 1, year)) return new Group3Date(month + 1, 1, year);\n\t\t\telse return new Group3Date(1, 1, year + 1);\n\t\t}", "public java.util.Date getNextAppointmentDate () {\n\t\treturn nextAppointmentDate;\n\t}", "public void nextDay() {\r\n\t\tif (day >= daysPerMonth[month] && !(month == 2 && day == 28) && !(month == 12 && day == 31)) {\r\n\t\t\tthis.month++;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\telse if (month == 2 && day == 28 && !(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0))) {\r\n\t\t\tthis.month++;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t\telse if (month == 12 && day == 31) {\r\n\t\t\tthis.year++;\r\n\t\t\tthis.month = 1;\r\n\t\t\tthis.day = 1;\r\n\t\t\tSystem.out.println(\"\\nhappy new year!!!\\n\");\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\tthis.day++;\r\n\t}", "private void nextDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tlong hourMills = this.nextHourMills;\r\n\t\tint day;\r\n\t\t\r\n\t\tcalendar.setTimeInMillis(this.nextHourMills);\r\n\t\tcalendar.add(Calendar.HOUR_OF_DAY, 1);\r\n\t\t\r\n\t\tthis.nextHourMills = calendar.getTimeInMillis();\r\n\t\t\r\n\t\tday = calendar.get(Calendar.DATE);\r\n\t\tif (day != this.day) {\r\n\t\t\t// 날짜가 바뀌었으면 calendar.set(Calendar.HOUR_OF_DAY, 0) 는 불필요. 단지 최종 날짜만 바꾸어준다.\r\n\t\t\tthis.day = day;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// 바뀌지 않았으면\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tFile dir = new File(this.root, Long.toString(calendar.getTimeInMillis()));\r\n\t\t\tFile file = new File(dir, Long.toString(hourMills));\r\n\t\t\t\r\n\t\t\tthis.data = JSONFile.getJSONObject(file);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthis.data = null;\r\n\t\t\t\r\n\t\t\tthis.date.setTimeInMillis(this.nextHourMills);\r\n\t\t}\r\n\t}", "public static String nextCalendar(String day, String month, String year) {\n int day2 = Integer.parseInt(day);\n int d = day2 + 1;\n int month2 = Integer.parseInt(month);\n int m = month2 + 1;\n int year2 = Integer.parseInt(year);\n int y = year2 + 1;\n String strd = Integer.toString(d);\n String strm = Integer.toString(m);\n String stry = Integer.toString(y);\n System.out.println(\"day:\" + strd + \" month:\" + strm + \" year:\" + stry);\n return strd;\n }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "public static WithAdjuster firstDayOfNextYear() {\n\n return Impl.FIRST_DAY_OF_NEXT_YEAR;\n }", "Date getNextTodo();", "private void nextDay() {\r\n tmp.setDay(tmp.getDay() + 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd++;\r\n if (nd > daysInWeek) nd -= daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }", "public Date getNextScheduledRun() {\n\t\tfinal Calendar cal = Calendar.getInstance();\n\t\tcal.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 1);\n\t\tcal.set(Calendar.MINUTE, 0);\n\n\t\tif ( cal.before(Calendar.getInstance()) ){\n\t\t\tcal.add(Calendar.DATE, 7);\n\t\t}\n\t\treturn cal.getTime();\n\t\n\t}", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn SUN;\n\t\t}", "public static String getDisplayDateNext(Date val) {\n\n\t\tif (val != null) {\n\t\t\tDate previous = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn format.format(previous);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getNextYear(String date){\r\n\t\tString registerDueDate=\"\";\r\n\t\ttry{\r\n\t\t\tList<TransferNORInPSTBean> minimumRegisterDueDateList=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getNextRegisterDueDate\", date);\r\n\t\t\tfor(TransferNORInPSTBean minimumRegisterDueDateValue: minimumRegisterDueDateList){\r\n\t\t\t\tregisterDueDate=minimumRegisterDueDateValue.getRegisterDueDate();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception in add next year\"+e.getMessage());\r\n\t\t\tlogger.info(\"Exception in get next year \"+e.getMessage());\r\n\t\t}\r\n\t\treturn registerDueDate;\r\n\t}", "@Test\n\tpublic void testNextDate(){\n\t\tif(year==444 && day==29){\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n } else if(day==30 && year==2005){ //for test case 10\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\n\t\t} else if(day==31 ){ //for test cases 13,14,15\n\t\t\tif(month==12){\n\t\t\tday=1;\n\t\t\tmonth=1;\n\t\t\tyear+=1;\n\t\t\tDate actualDate = new Date(year,month,day);\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n } else {\n\t\t\t\tday=1;\n\t\t\t\tDate actualDate = new Date(year,(month+1),day);\n\t\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\t\t\t}\n\n\t\t}\n\t\telse{\t\n\t\t\tDate actualDate = new Date(year,month,(day+1));\n\t\t\tAssert.assertEquals(expectedDate,actualDate);\n\n\t\t}\n\t\n\t}", "public static WithAdjuster firstDayOfNextMonth() {\n\n return Impl.FIRST_DAY_OF_NEXT_MONTH;\n }", "@Override\n\t\tpublic WeekDay1 nextDay() {\n\t\t\treturn MON;\n\t\t}", "public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}", "public static String getNextDay(String nowdate, int delay)\r\n/* 111: */ {\r\n/* 112: */ try\r\n/* 113: */ {\r\n/* 114:155 */ SimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 115:156 */ String mdate = \"\";\r\n/* 116:157 */ Date d = strToDate(nowdate);\r\n/* 117:158 */ long myTime = d.getTime() / 1000L + delay * 24 * \r\n/* 118:159 */ 60 * 60;\r\n/* 119:160 */ d.setTime(myTime * 1000L);\r\n/* 120:161 */ return format.format(d);\r\n/* 121: */ }\r\n/* 122: */ catch (Exception e) {}\r\n/* 123:166 */ return \"\";\r\n/* 124: */ }", "public LocalDate getNextWorkingDay(TradeEntity e) {\r\n\t\tLocalDate date = e.getSettlementDate();\r\n\t\twhile (!isWorkingDay(e.getCurrency(), date.getDayOfWeek())) {\r\n\t\t\tdate = date.plusDays(1);\r\n\t\t}\r\n\t\treturn date;\r\n\t}", "public Date tomorrow(){\n\t int nextD;\n\t Month nextM;\n\t int nextY;\n\n\t if ( this.day + 1 > this.month.nbJours(this.year)){\n\t nextD = 1;\n\t if (this.month.equals(Month.DECEMBER)){\n\t\t nextY = this.year + 1;\n\t \t nextM = this.month.nextMonth();\n\t }\n\t else{\n\t \tnextY = this.year;\n\t \tnextM = this.month.nextMonth();\n\t }\n\t }else{\n\t nextD = this.day + 1;\n\t nextM = this.month;\n\t nextY = this.year;\n\t }\n\t return new Date(nextD, nextM, nextY);\n }", "public SubscriptionYear getNext() {\n\t\treturn this.next;\n\t\t\n\t}", "protected Date nextStandardDate(Date date, DateTickUnit unit) {\n/* 1122 */ Date previous = previousStandardDate(date, unit);\n/* 1123 */ Calendar calendar = Calendar.getInstance(this.timeZone, this.locale);\n/* 1124 */ calendar.setTime(previous);\n/* 1125 */ calendar.add(unit.getCalendarField(), unit.getMultiple());\n/* 1126 */ return calendar.getTime();\n/* */ }", "public void increment()\n // Increments this IncDate to represent the next day.\n {\n\t boolean ly = false;\n\t if(((year % 4 == 0) && year % 100 != 0) || year % 400 == 0) {\n\t\t //leap year\n\t\t ly = true;\n\t }\n\t if ((month == 2 && day == 28 && !ly) || (month == 2 && day == 29 && ly)) {\n\t\t month = 3;\n\t\t day = 1;\n\t } else if (month == 2 && day == 28 && !ly) {\n\t\t day ++;\n\t } else if ((month == 4 || month == 6 || month == 9 || month == 11) && day == 30){\n\t\t month ++;\n\t\t day = 1;\n\t } else if ((month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10) && day == 31){\n\t\t System.out.println(\"month is \" + month);\n\t\t month ++;\n\t\t day = 1;\n\t } else if ((month == 12) && day == 31) {\n\t\t year ++;\n\t\t month = 1;\n\t\t day = 1;\n\t } else {\n\t\t day ++;\n\t }\n }", "public static LocalDate getFirstOfNextMonth() {\n\t\treturn LocalDate.now().with(TemporalAdjusters.firstDayOfNextMonth());\n\t}", "public Period getNextPeriod() throws PeriodNotFoundException;", "private void scheduleNextAlarm() {\n // Cancel the currently scheduled Alarm in order to schedule the next.\n if (nextAlarm != null) {\n alarmManager.cancel(createAlarmIntent(this, nextAlarm.getId()));\n nextAlarm = null;\n }\n final Calendar calendar = Calendar.getInstance();\n Alarm alarm;\n int i = 0;\n do {\n // Look for an Alarm that is upcoming from the Calendar day and time.\n alarm = dailyDoDatabaseHelper.getNextAlarmForCalendarDay(calendar);\n if (alarm == null) {\n // If an Alarm was not found for the remainder of the day,\n // then check the next day starting midnight.\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.add(Calendar.DAY_OF_WEEK, 1);\n Log.d(CLASS_NAME, String.format(\"Checking next Calendar=%s for Alarm.\", calendar));\n }\n } while (alarm == null && i++ < 7);\n if (alarm != null) {\n nextAlarm = alarm;\n // Reusing the previous Calendar because it has scope of the future day.\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calendar.set(Calendar.MINUTE, alarm.getMinute());\n calendar.set(Calendar.SECOND, 0);\n alarmManager.set(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n createAlarmIntent(this, alarm.getId()));\n Log.d(CLASS_NAME, String.format(\"Alarm=%s was found, scheduled on Calendar=%s\", alarm.toString(), calendar.toString()));\n } else {\n Log.d(CLASS_NAME, \"No upcoming Alarm(s) found to schedule.\");\n }\n }", "public Event getNextEvent() {\n \treturn next;\n }", "public final String next() {\n if (this.task_set == null)\n throw new IllegalStateException(\"must initialize the scheduler before using it\");\n\n String next = scheduler_next();\n return next;\n }", "static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_YEAR, dayOffset);\n if (sentCal.getTime().compareTo(now) > 0) {\n return sentCal.getTime();\n }\n }\n return null;\n }", "public static String getSQLDateNext(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"'\" + format.format(next) + \"'\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "Optional<ZonedDateTime> nextExecution(final ZonedDateTime date);", "public int getNextMonth()\n\t{\n\t\tm_calendar.set(Calendar.MONTH, getMonthInteger());\n\t\t\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\t\t\n\t\treturn getMonthInteger();\n\t\n\t}", "private synchronized EventType scheduleNextEvent()\n {\n Date today = new Date();\n Date today_sunrise = ss.getSunrise(latitude, longitude);\n Date today_sunset = ss.getSunset(latitude, longitude);\n Date today_off = ss.getOff(off);\n\n // get sunrise and sunset time for tomorrow\n Calendar tomorrow = Calendar.getInstance();\n tomorrow.roll(Calendar.DATE, true);\n Date tomorrow_sunrise = ss.getSunrise(latitude, longitude, tomorrow.getTime());\n Date tomorrow_sunset = ss.getSunset(latitude, longitude, tomorrow.getTime());\n Date tomorrow_off = ss.getOff(off);\n\n // determine if sunrise or sunset is the next event\n if (today.after(today_sunset)) {\n // get tomorrow's date time\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + tomorrow_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule tomorrow's sunrise as next event\n timer.schedule(new SunriseTask(), tomorrow_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = tomorrow_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else if (today.after(today_sunrise)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNSET \");\n System.out.println(\" @ \" + today_sunset);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_sunset);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunsetToday;\n return nextEvent;\n } else if (today.after(today_off)) {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: OFF \");\n System.out.println(\" @ \" + today_off);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunset as next event\n timer.schedule(new SunsetTask(), today_off);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = tomorrow_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseTomorrow;\n return nextEvent;\n } else {\n System.out.println(\"-----------------------------------\");\n System.out.println(\"[SCHEDULED] NEXT EVENT: SUNRISE \");\n System.out.println(\" @ \" + today_sunrise);\n System.out.println(\"-----------------------------------\");\n\n // schedule sunrise as next event\n timer.schedule(new SunriseTask(), today_sunrise);\n\n // set cache next sunrise and sunset variables\n nextSunriseDate = today_sunrise;\n nextSunsetDate = today_sunset;\n\n // return next event\n nextEvent = EventType.SunriseToday;\n return nextEvent;\n }\n }", "@Test\r\n public void test14()\r\n {\r\n \tPaymentImpl p1 = null;\r\n \tString day = \"\";\t\t\r\n \t\r\n \ttry{\r\n \t\tp1 = new PaymentImpl(getCalendar(\"ltu.CalenderSaturday\"));\r\n \t\tday = p1.getNextPaymentDay();\r\n \t\tassertEquals(day, \"20160429\");\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 14, correct : 20160429, got : \" + day);\r\n \t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Clouldn't load the calender\");\r\n\t\t}\r\n }", "public Date getNextPublished() {\n return nextPublished;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tgetLayouts();\n\n\t\t\t\tCalendar next = (Calendar) calendar.clone();\n\n\t\t\t\tif (currentMonth > 11) {\n\t\t\t\t\tcurrentMonth = 1;\n\t\t\t\t\tcurrentYear++;\n\t\t\t\t} else {\n\t\t\t\t\tcurrentMonth++;\n\t\t\t\t}\n\n\t\t\t\tnext.set(Calendar.MONTH, currentMonth);\n\t\t\t\tnext.set(Calendar.YEAR, currentYear);\n\t\t\t\tnext.set(Calendar.DATE, 1);\n\n\t\t\t\tpositionNext = next.getTime().toString().split(\" \");\n\t\t\t\tgetCalendar(\n\t\t\t\t\t\tReturnCalendarDetails.getCurrentMonth(positionNext[1]),\n\t\t\t\t\t\tReturnCalendarDetails.getPosition(positionNext[0]),\n\t\t\t\t\t\tInteger.parseInt(positionNext[5]));\n\t\t\t}", "public static String incrementDateByOneDay() {\n\t\ttry {\n\t\t\tcalendar.setTime(sdf.parse(newDateStr));\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcalendar.add(Calendar.DATE, 1); // number of days to add\n\t\tnewDateForTable = sdf.format(calendar.getTime());\n\t\treturn newDateForTable;\n\t}", "public void setNextYear()\n\t{\n\t\tm_calendar.set(Calendar.YEAR,getYear()+1);\n\t\tsetDay(getYear(),getMonthInteger(),1);\n\n\t}", "public void setNextAppointmentDate (java.util.Date nextAppointmentDate) {\n\t\tthis.nextAppointmentDate = nextAppointmentDate;\n\t}", "Date PrevEvent(Date d);", "public void lookUpNextDate(int i) throws IllegalCommandArgumentException {\n if (i < wordsOfInput.length-2) { \n if (wordsOfInput[i+2].toLowerCase().matches(Constants.DAYS)) {\n // by next (day)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(wordsOfInput[i+2], 1);\n \n // by next day (starttime)\n if (i < wordsOfInput.length-3 && wordsOfInput[i+3].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+3];\n \n // by next day starttime (endtime)\n if (i < wordsOfInput.length - 5 && \n wordsOfInput[i+4].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+5);\n }\n } \n } else if (wordsOfInput[i+2].toLowerCase().matches(\"week|wk\")) {\n // by next (week)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 2);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"month|mth\")) {\n // by next (month)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 3);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"year|yr\")) {\n // by next (year)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 4);\n }\n }\n }", "protected abstract String scheduler_next();", "@DISPID(13)\r\n\t// = 0xd. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tjava.util.Date nextScheduledExecutionDateTime();", "public Version getNext(){\n\t\treturn next;\n\t}", "public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }", "public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }", "public java.sql.Timestamp getNextAnchor() {\n return nextAnchor;\n }", "public IEvent getNextEvent();", "public void ClickNext() {\r\n\t\tnext.click();\r\n\t\t\tLog(\"Clicked the \\\"Next\\\" button on the Birthdays page\");\r\n\t}", "private void incrementeDate() {\n dateSimulation++;\n }", "@Test\n\tpublic void advanceDayTest_Succes(){\n\t\temptyAssemblyLineTest();\n\t\tTimestamp oldTime = assemblyLine.getCurrentTime();\n\t\tassemblyLine.startNextDay();\n\t\tassertEquals(assemblyLine.getCurrentTime().compareTo(oldTime.getNextDay()),0);\n\t\t\n\t}", "public Date getNextExecutionTime() {\n\t\treturn SchedulerUtil.getNextExecution(this);\n\t}", "@Override\n public Date generate() {\n int year = 2000 + Rng.instance().nextInt(20);\n int date = Rng.instance().nextInt(28) + 1;\n int month = Rng.instance().nextInt(10) + 1;\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, date);\n\n return calendar.getTime();\n }", "public Task getNext()\n {\n\treturn new Task(toDo.get(0));\n }", "public void arrival_date()\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\t\t\r\n\t\tDate date1 = new Date();\r\n\t\tdate1.setDate(date1.getDate() + 1);\r\n\t\tSimpleDateFormat df1 = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate1 = df1.format(date1);\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\tarrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public Date getEarliestFinishingDate();", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "Date getStartDay();", "protected abstract D getNext(D d);", "protected Date findFirstGenDate(GenCtx ctx)\n\t{\n\t\treturn EX.assertn(ctx.get(Date.class));\n\t}", "public int getCurrentNext() {\n\t\tInteger ii = (Integer) get_Value(\"CurrentNext\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public static long next() {\n return System.currentTimeMillis();\n }", "Integer getStartDay();", "Date getForDate();", "String getNext();", "String getNext();", "public C getNext();", "public DateNextDateExceptionTest(int year, int month, int day) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t}", "public static String getSQLDateTimeNext(Date val) {\n\n\t\t// Adds another day to Date and Time and converts date into SQL format\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd H:mm\");\n\t\t\treturn \"date_format('\" + format.format(next)\n\t\t\t\t\t+ \"','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public void nextDay(double currentDay, double totalDays)\r\n {\r\n if (loan != 0)\r\n {\r\n double interest = calculateInterest(this.interest, totalDays, loan, currentDay);\r\n loan += interest;\r\n }\r\n }", "public java.util.Date getNextMedicalCategorisationDue () {\n\t\treturn nextMedicalCategorisationDue;\n\t}", "private int getFirstRepresentingDay() {\n\t\tint firstRepresentingDay;\r\n\t\tGregorianCalendar myCalendar = new GregorianCalendar(year, month, 1);\r\n\r\n\t\tint daysofMonth = myCalendar.getActualMaximum(Calendar.DAY_OF_MONTH);\r\n\t\tint firstDayMonth = myCalendar.get(Calendar.DAY_OF_WEEK); // First day of month (relative to the week)\r\n\t\tint globalFirstDayMonth = myCalendar.get(Calendar.DAY_OF_YEAR);\r\n\r\n\t\tif (settings.getBoolean(\"firstDayofWeek\", true)) { //The default option is the week starting on monday\r\n\t\t\tfirstDayMonth = firstDayMonth - 1;\r\n\t\t\tif (firstDayMonth == 0)\r\n\t\t\t\tfirstDayMonth = 7;\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\telse { //else we start the week on Sunday\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\tif (firstDayMonth + daysofMonth < 37)\r\n\t\t\tcount = RingActivity.five_week_calendar;\r\n\t\telse\r\n\t\t\tcount = RingActivity.six_week_calendar;\r\n\r\n\t\treturn firstRepresentingDay;\r\n\t}", "private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.format(cal.date())); // variable name changes SDF to sdf , CAL to cal , method changes Date() to date()\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t output(\"\\nInvalid number of days\\n\");\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public TimedVariable findNext(Date ref)\n\t{\n\t\tif (vars.isEmpty())\n\t\t\treturn null;\n\t\tint sz = vars.size();\n\n\t\tTimedVariable dummy = new TimedVariable(0);\n\t\tdummy.setTime(ref);\n\t\tint idx = Collections.binarySearch(vars, dummy, tvComparator);\n\n\t\tif (idx < 0)\n\t\t\tidx = (-idx) - 1;\n\t\telse // the exact time was found. Increment to the next value\n\t\t\tidx++;\n\t\t\n\t\tif (idx < sz)\n\t\t\treturn vars.get(idx);\n\t\telse\n\t\t\treturn null;\n\t}", "public int getNext() {\n return value++;\n }", "Entry getNext()\n {\n return (Entry) m_eNext;\n }", "private void nextWeek() {\r\n tmp.setDay(tmp.getDay() + daysInWeek);\r\n upDMYcountDMYcount();\r\n }", "Date getPriorDate();", "public void lookUpNextDay(int i) throws IllegalCommandArgumentException {\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n \n if (wordsOfInput[i+1].toLowerCase().matches(Constants.DAYS)) {\n // by (day)\n produceDateFromDay(wordsOfInput[i+1], 0);\n } else if (wordsOfInput[i+1].toLowerCase().matches(\"today|tdy\")) {\n // by today\n produceDateFromDay(null, 5);\n } else if (wordsOfInput[i+1].toLowerCase().matches(\"tomorrow|tmr\")) {\n // by tomorrow\n produceDateFromDay(null, 6);\n }\n \n if (i < wordsOfInput.length-2 && wordsOfInput[i+2].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+2];\n \n if (i < wordsOfInput.length - 4 && \n wordsOfInput[i+3].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+4);\n }\n \n }\n }", "@Override\n\tpublic Long getNextNumber(String sequenceName, Long startNumber, Integer year, Integer month) {\n\n\t\tsynchronized ((sequenceName + year).intern()) {\n\t\t\tQuery query = new Query(Criteria.where(\"seqName\").is(sequenceName).and(\"year\").is(year).and(\"month\").is(month));\n\t\t\treturn getNextNumber(sequenceName, startNumber, null, year,month, query);\n\t\t}\n\t}", "public static String getSQLDateNextLifting(Date val) {\n\n\t\t\n\t\t// Adds another day to Date and converts date into SQL format, ignores time\n\t\tif (val != null) {\n\n\t\t\tDate next = DateUtils.addDays(val, 1);\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t\treturn \"date_format('\" + format.format(next) + \" 6:00','%Y-%m-%d %H:%i')\";\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "@Test\r\n public void test15()\r\n {\r\n \tString day = \"\";\r\n \ttry{\r\n \t\tday = p.getNextPaymentDay();\r\n \t\tassertEquals(day, \"20160129\");\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 14, correct : 20160129, got : \" + day);\r\n \t}\r\n }", "public void incrementDay(){\n //Step 1\n this.currentDate.incrementDay();\n //step2\n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementDay();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementDay();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementDay();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementDay();\n //step 3\n if (this.getDate().getDay() == 1) {\n \n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementMonth();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementMonth();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementMonth();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementMonth();\n }\n \n }", "@Test\r\n public void testAddDays1() {\n Calendar cal = Calendar.getInstance();\r\n cal.add(Calendar.DAY_OF_MONTH, 10);\r\n System.out.println(\"The day after increment is: \" + cal.getTime());\r\n }", "Date getNextIncomeDate() throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "private void nextRunning(Date date) {\n for (int page = 1; page < 10; page++) {\n vacancies.addAll(parser.parseHtml(URL + page, date));\n }\n LOG.info(vacancies.size());\n try (VacancyDao vacancyDao = new VacancyDao(properties)) {\n vacancyDao.insertSet(vacancies);\n vacancyDao.updateLastUpdateDate(new Date().getTime());\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n }\n }", "public E nextStep() {\r\n\t\tthis.current = this.values[Math.min(this.current.ordinal() + 1, this.values.length - 1)];\r\n\t\treturn this.current;\r\n\t}", "public Calendar getReturnDate()\n {\n /*New Calendar for Return Date*/\n Calendar dueDate = Calendar.getInstance();\n\n /*Month is Current Month*/\n dueDate.set(today.MONTH, today.get(today.MONTH));\n /*Year is Current Year*/\n dueDate.set(today.YEAR, today.get(today.YEAR));\n /*Due Date is 21 Days Later*/\n dueDate.set(today.DATE, today.get(today.DATE + 21));\n\n return dueDate;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public long next() {\n long ret = prev;\n prev = current;\n current = ret + current;\n return ret;\n }" ]
[ "0.7897979", "0.7744523", "0.77251226", "0.7332555", "0.72395194", "0.7212571", "0.7165655", "0.7155285", "0.70874393", "0.6950255", "0.68189895", "0.66608506", "0.66162", "0.6578891", "0.65708053", "0.6547123", "0.65333956", "0.64647466", "0.64489573", "0.63965154", "0.63856375", "0.6357182", "0.63416916", "0.6313589", "0.62939644", "0.6284978", "0.6190749", "0.6173697", "0.6165771", "0.6147405", "0.6140523", "0.6109252", "0.60381395", "0.5995715", "0.596071", "0.59475774", "0.59225", "0.5916581", "0.5908692", "0.58978766", "0.5892777", "0.5872831", "0.58666366", "0.58432174", "0.5820095", "0.58055794", "0.58054316", "0.57588434", "0.5755219", "0.565435", "0.5651363", "0.56389093", "0.56126046", "0.55963767", "0.5583096", "0.5564715", "0.5541879", "0.5525672", "0.55249524", "0.54873693", "0.54709", "0.5447503", "0.5436103", "0.5408175", "0.5407741", "0.54056734", "0.54008454", "0.5399348", "0.5373804", "0.53585833", "0.53452986", "0.53418624", "0.5339668", "0.5333919", "0.5333919", "0.5329659", "0.5327584", "0.53168607", "0.5312489", "0.5310981", "0.5303516", "0.53034586", "0.52970797", "0.5295176", "0.52938503", "0.52892375", "0.5274802", "0.52722764", "0.52709246", "0.5269834", "0.5253224", "0.5250812", "0.524372", "0.52408487", "0.52399063", "0.52373606", "0.52369845", "0.5236908", "0.5229859", "0.5225675" ]
0.77123356
3
Compares two dates chronologically Return true if this date is after that date; false otherwise;
public boolean isAfter(Date that) { return compareTo(that) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAfter(Date b) {\r\n\t\treturn compareTo(b) > 0;\r\n\t}", "public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}", "public boolean isAfter(@NonNull final CalendarDay other) {\n return date.isAfter(other.getDate());\n }", "public static boolean isAfterDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isAfterDay(cal1, cal2);\n }", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "public static boolean isDateAfter(LocalDate secondDate, LocalDate firstDate) {\n return secondDate.isAfter(firstDate);\n }", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public static boolean isLater(int month1, int day1, int year1,\n int month2, int day2, int year2)\n {\n return (year1 > year2) || (year1 == year2 && month1 > month2) ||\n (year1 == year2 && month1 == month2 && day1 > day2);\n }", "public boolean isAfter(Group3Date b) {\n\t\t\treturn compareTo(b) > 0;\n\t\t}", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}", "public boolean isAfter(Date date)\n {\n return isAfter(new SpentOn(date));\n }", "private static boolean isPast(long[][] dates){\n if(dates[0][0] > dates[1][0])\n return true;\n else if(dates[0][0] == dates[1][0]){\n // If the year matches, then check if the month of Start Date is greater than the month of End Date\n // If the month matches, then check if the day of Start Date is greater than the day of End Date\n if(dates[0][1] > dates[1][1])\n return true;\n else if(dates[0][1] == dates[1][1] && dates[0][2] > dates[1][2])\n return true;\n }\n \n // If the Start Date is older than End Date, return false\n return false;\n }", "@SuppressWarnings(\"deprecation\")\r\n public static final boolean compareTwoDateSpecificToEndDay(Date expiredDate, Date dateNow) {\r\n\r\n int hoursNow = dateNow.getHours();\r\n int minuteNow = dateNow.getMinutes();\r\n\r\n return ((expiredDate.compareTo(dateNow) < 0)\r\n || ((expiredDate.compareTo(dateNow) == 0) && (hoursNow > 22 && minuteNow > 58)));\r\n\r\n }", "public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }", "public static boolean isAfterDay(Calendar cal1, Calendar cal2) {\n if (cal1 == null || cal2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n if (cal1.get(Calendar.ERA) < cal2.get(Calendar.ERA)) return false;\n if (cal1.get(Calendar.ERA) > cal2.get(Calendar.ERA)) return true;\n if (cal1.get(Calendar.YEAR) < cal2.get(Calendar.YEAR)) return false;\n if (cal1.get(Calendar.YEAR) > cal2.get(Calendar.YEAR)) return true;\n return cal1.get(Calendar.DAY_OF_YEAR) > cal2.get(Calendar.DAY_OF_YEAR);\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "boolean hasDeliveryDateAfter();", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret < 0;\r\n\t}", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public boolean isAfter(SpentOn spentOn)\n {\n return ( (calendar.get(Calendar.YEAR) > spentOn.calendar.get(Calendar.YEAR))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) > spentOn.calendar.get(Calendar.MONTH))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) == spentOn.calendar.get(Calendar.MONTH))\n && (calendar.get(Calendar.DAY_OF_MONTH) > spentOn.calendar.get(Calendar.DAY_OF_MONTH))\n );\n }", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "public boolean isAfter(MonthDay other) {\n if(month > other.month) {\n return true;\n } else if(month == other.month && day > other.day) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "boolean hasDeliveryDateBefore();", "public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "public boolean isBefore(@NonNull final CalendarDay other) {\n return date.isBefore(other.getDate());\n }", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "public boolean isFuture()\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int dayT = currentDate.get(GregorianCalendar.DATE);\n int monthT = currentDate.get(GregorianCalendar.MONTH) + 1;\n int yearT = currentDate.get(GregorianCalendar.YEAR);\n int hourT = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minuteT = currentDate.get(GregorianCalendar.MINUTE);\n\n if (yearT < year)\n {\n return true;\n }\n else if (yearT == year && monthT < month)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT < day)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT < hour)\n {\n return true;\n }\n else if (yearT == year && monthT == month && dayT == day && hourT == hour\n && minuteT < minute)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean dateCompareCurr(String[] inputdate){\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate comparedate = null; // 입력받은 날짜\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDate curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜\r\n\t\t\t\r\n\t\t\tfor (int idx = 0; idx < inputdate.length; idx++) {\r\n\t\t\t\t\r\n\t\t\t\tcomparedate = dateFormat.parse(inputdate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif(comparedate.compareTo(curdate) >= 0){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public static boolean compareDates(Date d1, Date d2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c1.setTime(d1);\n c2.setTime(d2);\n\n if (c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR))\n return false;\n if (c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH))\n return false;\n if (c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH)) {\n return false;\n }\n return true;\n }", "public static boolean isInBetweenDates(LocalDate startingDate,LocalDate endingDate,LocalDate currentDate) {\n //compareTo is used to compare 2 dates\n if(currentDate.compareTo(startingDate) * currentDate.compareTo(endingDate) <0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "public boolean isPartialAfter(Date b) {\r\n\t\treturn comparePartialTo(b) > 0;\r\n\t}", "public boolean isAfterOrEquals(AbsTime refEpoch)\n {\n return !isBefore(refEpoch);\n }", "boolean IFbefore(Date day1, int ID1, Date day2, int ID2){\n if (day1.compareTo(day2) < 0) return true;\n if (day1.compareTo(day2) > 0) return false;\n if (ID1 < ID2) return true;\n return false;\n }", "public boolean isAfter(AbsTime refEpoch)\n {\n return !isBeforeOrEquals(refEpoch);\n }", "public boolean isBefore(final String date1, final String date2) {\n return compare(date1, date2) < 0;\n }", "public boolean dateCompartFromTo(String[] sdate, String[] edate) {\r\n\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate startdate = null;\r\n\t\tDate enddate = null;\r\n\t\ttry {\r\n\t\t\t// 시작일 종료일 날짜 비교\r\n\t\t\tfor (int idx = 0; idx < sdate.length; idx++) {\r\n\r\n\t\t\t\tstartdate = dateFormat.parse(sdate[idx]);\r\n\t\t\t\tenddate = dateFormat.parse(edate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif (startdate.compareTo(enddate) >= 0) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "private boolean isPast(Calendar currentCal){\n Calendar presentCal = Calendar.getInstance();\n presentCal.set(Calendar.SECOND,59);\n return currentCal.before(presentCal);\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "public static boolean isBeforeDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isBeforeDay(cal1, cal2);\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "public static boolean notInFuture(Date data) {\r\n if (data != null) {\r\n return data.before(new Date());\r\n }\r\n return false;\r\n }", "public boolean isPosteriorTo(Date argdate) {\r\n\t\ttry {\r\n\t\t\tthis.timeSpentSince(argdate);\r\n\t\t} catch (InvalidDateException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isLate(){\n Date d = givenBack != null ? givenBack : new Date();\n return expirationDate.before(d);\n }", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "boolean isOutOfDate(String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n Date current = c.getTime();\n current.setTime(current.getTime() - 86400000);\n try {\n Date endDate = ddMMyyyy.parse(end);\n return (endDate.compareTo(current) < 0);\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return false;\n }", "boolean endDateAfter(String start, String end) {\n SimpleDateFormat ddMMyyyy = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n Calendar c = Calendar.getInstance();\n try {\n Date startDate = ddMMyyyy.parse(start);\n Date endDate = ddMMyyyy.parse(end);\n c.setTime(startDate);\n return startDate.compareTo(endDate) <= 0;\n } catch (ParseException e) {\n System.out.println(\"Error occurred parsing Date\");\n }\n return true;\n }", "public boolean checkDate(Date dateNow, Date maxAccess) {\n return dateNow.after(maxAccess);\n }", "public boolean isAfterNow() {\r\n return isAfter(DateTimeUtils.currentTimeMillis());\r\n }", "public boolean isBeforeOrEquals(AbsTime refEpoch)\n {\n // The result to return.\n boolean res;\n\n // Check for special values.\n if (isASAP()) {\n // ASAP is before or equal to any time, including ASAP.\n res = true;\n } else if (isNEVER()) {\n // NEVER only before or equal to NEVER.\n if (refEpoch.isNEVER()) {\n res = true;\n } else {\n res = false;\n }\n } else if (refEpoch.isASAP()) {\n // No time is before or equal ASAP, except ASAP, which is already\n // considered above.\n res = false;\n } else if (refEpoch.isNEVER()) {\n // Any time is before or equal to NEVER, including NEVER.\n res = true;\n } else {\n // Do the comparison.\n res = (itsValue <= refEpoch.itsValue);\n }\n\n return res;\n }", "private boolean dateDiffOfWeekend(LocalDate date) {\n\n if (date.getDayOfWeek().getValue() != 6 && date.getDayOfWeek().getValue() != 7 && date.getYear() == LocalDate.now().getYear()) {\n\n return true;\n }\n\n return false;\n }", "public boolean validarFecha(LocalDate fecha) { \n // se comprueba que la fecha sea anterior o igual a la actual\n return fecha.isBefore(LocalDate.now()) || fecha.isEqual(LocalDate.now());\n }", "private boolean newsDateHasChanged(String guid, Date newDate) {\n String[] whereArgs = { guid };\n Cursor query = this.writableDatabase.query(TABLE_NEWS, new String[] { NEWS_DATE }, NEWS_GUID + \"=?\", whereArgs,\n null, null, null);\n if (query.getCount() > 0) {\n query.moveToFirst();\n Date oldDate = new Date(Long.valueOf(query.getString(query.getColumnIndex(NEWS_DATE))));\n query.close();\n if (newDate.getTime() > oldDate.getTime())\n Log.w(TAG, newDate.toLocaleString() + \" - \" + oldDate.toLocaleString());\n return newDate.getTime() > oldDate.getTime();\n }\n query.close();\n return false;\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World!\");\r\n\t\t/*\r\n\t\tDate d = new Date(); // Current Date\r\n\t\tSystem.out.println(d);\r\n\t\tDate d1 = new Date(1000000000); // set ne w Date\r\n\t\tSystem.out.println(d1);\r\n\t\t//System.out.println(d.after(d1)); // true\r\n\t\t//System.out.println(d1.after(d)); // false\r\n\t\tDate d2 = (Date) d1.clone(); // Making Deep copy\r\n\t\tSystem.out.println(d2);\r\n\t\tSystem.out.println(d.compareTo(d1)); // 1\r\n\t\tSystem.out.println(d1.compareTo(d)); // -1\r\n\t\tSystem.out.println(d1.compareTo(d2)); \r\n\t\tSystem.out.println(d1.equals(d2)); // true\r\n\t\tSystem.out.println(d1.equals(d)); // false\r\n\t\tSystem.out.println(d.getTime());\r\n\t*/\r\n\t\tSystem.out.println(\"Today's date: \" + LocalDate.now());\r\n\t\tSystem.out.println(\"Specified date: \" + LocalDate.of(2000, 1, 1));\r\n\r\n\r\n\t}", "boolean hasDate();", "public static boolean isDateBetweenSpecifiedDate(Date date, Date from, Date to) {\n return date.compareTo(from) >= 0 && date.compareTo(to) <= 0;\n }", "boolean hasEndDate();", "public boolean isBefore(Group3Date b) {\n\t\t\treturn compareTo(b) < 0;\n\t\t}", "public static final Function<Date,Boolean> after(final Date date) {\r\n return new After(date);\r\n }", "public boolean isBefore(AbsTime refEpoch)\n {\n // The result to return\n boolean res;\n\n // Check for special values.\n if (isASAP()) {\n // ASAP is before any other time, except ASAP.\n if (refEpoch.isASAP()) {\n res = false;\n } else {\n res = true;\n }\n } else if (isNEVER()) {\n // NEVER is after any other time, except NEVER.\n res = false;\n } else if (refEpoch.isASAP()) {\n // No time is before ASAP, including ASAP.\n res = false;\n } else if (refEpoch.isNEVER()) {\n // Any time is before NEVER, except NEVER, which is taken care\n // of above.\n res = true;\n } else {\n // Do the comparison.\n res = (itsValue < refEpoch.itsValue);\n }\n\n return res;\n }", "@SuppressWarnings(\"deprecation\")\r\n public static final boolean compareTwoDateSpecificToMinute(Date expiredDate, Date dateNow) {\r\n\r\n int expiredHours = expiredDate.getHours();\r\n int expiredMinute = expiredDate.getMinutes();\r\n\r\n int hoursNow = dateNow.getHours();\r\n int minuteNow = dateNow.getMinutes();\r\n\r\n return ((expiredDate.compareTo(dateNow) < 0) || ((expiredDate.compareTo(dateNow) == 0)\r\n && ((expiredHours > hoursNow) || (expiredHours == hoursNow && expiredMinute > minuteNow))));\r\n\r\n }", "public boolean getADateChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aDate, aDateDataSourceValue);\r\n }", "public static void playgroundForTime(){\n\t\tLocalDate localDate = LocalDate.of(2013, 4, 25);\r\n\t\tSystem.out.println(localDate.now().isBefore(localDate));\r\n\t\t\r\n\t}", "public boolean hasPast();", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "@Test\r\n public void testIsExpiredToday_ExpirationDateToday_ExpirationDateEarlierTime() {\r\n doTest(TEST_DATE_2_TODAY, TEST_DATE_1_TODAY, false);\r\n }", "public boolean checkPastDate(boolean said)\n {\n try\n {\n if( date==null ){\n if(this.getDateString()!=null) date = DateHelper.stringToDate(this.getDateString());\n if(super.isMandatory() && date==null)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n } }\n\n }\n catch (Exception e)\n {\n message = FacesHelper.getBundleMessage(\"validator_dateformat\", new Object[]{Constants.CommonFormat.DATE_FORMAT_TIP});\n return false;\n }\n\n if(date==null)\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n }\n if(!date.before(currentDate))\n {\n if(said)\n {\n super.setMessage(\"Date is no correct\");\n }\n return false;\n\n }\n else\n {\n return true;\n }\n }", "public static boolean verifyApplyDates(final String startDate, final String endDate) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n Date fromDate = sdf.parse(startDate);\n Date toDate = sdf.parse(endDate);\n Date curDate = new Date();\n if (!fromDate.after(curDate)) {\n System.out.println(\"Start Date must be greater than Current Date\");\n return false;\n } else if (!toDate.after(fromDate)) {\n System.out.println(\"End Date must be greater than Start Date\");\n return false;\n }\n } catch (Exception e) {\n System.out.println(e);\n }\n return true;\n }", "@Test\n\tpublic void differenceBetweenDates() throws Exception {\n\t\tAssert.assertTrue(DateDifferentHelper.differenceBeteweenDates(ACTUAL_DATE));\n\t}", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public boolean Window(String inDate , String inDate2)\n {\n LocalDateTime currentTime = LocalDateTime.now();\n // current date value to compare with margins\n int monthValue = currentTime.getMonthValue();\n int dayOfMonth = currentTime.getDayOfMonth();\n int currentTimeYear = currentTime.getYear(); // obvioulsy in our case this will be 2021 but fo the sake of scalability we used getter\n\n // split in String to create margin 1\n String[] rawTime = inDate.split(\"/\");\n // split in String to create margin 2\n String[] rawClosedTime = inDate2.split(\"/\");\n\n //margin 1\n int inDateMonth = Integer.parseInt(rawTime[0]);\n int inDateDay = Integer.parseInt(rawTime[1]);\n int inDateYear = Integer.parseInt(rawTime[2]);\n // margin 2\n int inDate2Month = Integer.parseInt(rawClosedTime[0]);\n int inDate2Day = Integer.parseInt(rawClosedTime[1]);\n int inDate2Year = Integer.parseInt(rawClosedTime[2]);\n\n // checking if months are value equivalent , if so checking which day is later\n if((inDateMonth == monthValue && inDateDay <= dayOfMonth) || (inDateMonth < monthValue))\n {\n // // checking if months are value equivalent , if so checking which day is earlier\n if( (monthValue == inDate2Month && inDate2Day >= dayOfMonth) || (monthValue > inDate2Month) )\n {\n return true;\n }else{\n\n return false;\n\n }\n\n }\n return false;\n\n }", "public static boolean equals(Date a, Date b) {\n if (a == null || b == null) return (a == null && b == null);\n if (a == b) return true;\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(a);\n cal2.setTime(b);\n return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&\n cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);\n }", "@Then(\"the results should be sorted by most recent date\")\n public void the_results_should_be_sorted_by_most_recent_date() {\n int value= (new AccountActivityPage().dates.get(new AccountActivityPage().dates.size() - 1)).getText().compareTo((new AccountActivityPage().dates.get(0)).getText());\n\n Assert.assertTrue(value<0);\n\n }", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }" ]
[ "0.74502164", "0.7420546", "0.72157717", "0.7084996", "0.7044721", "0.7018067", "0.6916515", "0.6778597", "0.67596495", "0.6639528", "0.66177297", "0.6617605", "0.6612717", "0.65766287", "0.6520925", "0.6504175", "0.6500903", "0.6500607", "0.6464664", "0.6448519", "0.6424379", "0.64118415", "0.63970757", "0.6395424", "0.6395424", "0.6376296", "0.63618374", "0.63462603", "0.6334429", "0.6333205", "0.62869567", "0.6253734", "0.62243646", "0.621746", "0.6213086", "0.61835223", "0.6142697", "0.61247575", "0.6118668", "0.61022407", "0.60989076", "0.60761493", "0.60723394", "0.6037879", "0.6036793", "0.60367763", "0.600865", "0.5988806", "0.5982263", "0.5935118", "0.5933095", "0.59137815", "0.5885062", "0.58742803", "0.586437", "0.5855496", "0.58551484", "0.5847566", "0.58474183", "0.58375204", "0.5836656", "0.58159965", "0.5813251", "0.5795567", "0.5776525", "0.57705474", "0.5770545", "0.57633406", "0.57510656", "0.57509094", "0.57451886", "0.573796", "0.5724253", "0.57211065", "0.56886923", "0.5685124", "0.5683583", "0.567542", "0.56528074", "0.56512123", "0.5628776", "0.5621536", "0.5607508", "0.5602198", "0.56004226", "0.55934405", "0.5590795", "0.5580991", "0.55515224", "0.5550884", "0.55194336", "0.5516993", "0.5477438", "0.54662824", "0.545977", "0.54460627", "0.54333526", "0.5421115", "0.5419228", "0.5402348" ]
0.7428003
1
Compare two dates chronologically Return true if this date is before that date; false otherwise;
public boolean isBefore(Date that) { return compareTo(that) < 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret < 0;\r\n\t}", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "public boolean isBefore(@NonNull final CalendarDay other) {\n return date.isBefore(other.getDate());\n }", "public boolean isBefore(final String date1, final String date2) {\n return compare(date1, date2) < 0;\n }", "public static boolean isBeforeDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isBeforeDay(cal1, cal2);\n }", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "boolean IFbefore(Date day1, int ID1, Date day2, int ID2){\n if (day1.compareTo(day2) < 0) return true;\n if (day1.compareTo(day2) > 0) return false;\n if (ID1 < ID2) return true;\n return false;\n }", "public boolean isBefore(Date date)\n {\n return isBefore(new SpentOn(date));\n }", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "boolean hasDeliveryDateBefore();", "public static boolean lessThan(DateTime d1, DateTime d2)\n\t{\n\t\treturn Date.lessThan(d1.date,d2.date) || ( Date.equal(d1.date,d2.date) && Time12.lessThan(d1.time,d2.time)) ;\n\t}", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "public boolean isBefore(MonthDay other) {\n if(month < other.month) {\n return true;\n } else if(month == other.month && day < other.day) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isBefore(Group3Date b) {\n\t\t\treturn compareTo(b) < 0;\n\t\t}", "public boolean isBefore(SpentOn spentOn)\n {\n return ( (calendar.get(Calendar.YEAR) < spentOn.calendar.get(Calendar.YEAR))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) < spentOn.calendar.get(Calendar.MONTH))\n )\n || ( (calendar.get(Calendar.YEAR) == spentOn.calendar.get(Calendar.YEAR))\n && (calendar.get(Calendar.MONTH) == spentOn.calendar.get(Calendar.MONTH))\n && (calendar.get(Calendar.DAY_OF_MONTH) < spentOn.calendar.get(Calendar.DAY_OF_MONTH))\n );\n }", "public static boolean isBeforeDay(Calendar cal1, Calendar cal2) {\n if (cal1 == null || cal2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n if (cal1.get(Calendar.ERA) < cal2.get(Calendar.ERA)) return true;\n if (cal1.get(Calendar.ERA) > cal2.get(Calendar.ERA)) return false;\n if (cal1.get(Calendar.YEAR) < cal2.get(Calendar.YEAR)) return true;\n if (cal1.get(Calendar.YEAR) > cal2.get(Calendar.YEAR)) return false;\n return cal1.get(Calendar.DAY_OF_YEAR) < cal2.get(Calendar.DAY_OF_YEAR);\n }", "public boolean isBefore(AbsTime refEpoch)\n {\n // The result to return\n boolean res;\n\n // Check for special values.\n if (isASAP()) {\n // ASAP is before any other time, except ASAP.\n if (refEpoch.isASAP()) {\n res = false;\n } else {\n res = true;\n }\n } else if (isNEVER()) {\n // NEVER is after any other time, except NEVER.\n res = false;\n } else if (refEpoch.isASAP()) {\n // No time is before ASAP, including ASAP.\n res = false;\n } else if (refEpoch.isNEVER()) {\n // Any time is before NEVER, except NEVER, which is taken care\n // of above.\n res = true;\n } else {\n // Do the comparison.\n res = (itsValue < refEpoch.itsValue);\n }\n\n return res;\n }", "public boolean isLower(DateTime dt) {\n return Long.parseLong(this.vStamp) < Long.parseLong(dt.getStamp());\r\n }", "public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final Date date) {\r\n\t\treturn anyOf(sameInstant(date), before(date));\r\n\t}", "private boolean compareWithCurrentDate(LocalDateTime deadline, LocalDateTime assignDate, boolean isLessThanDay) {\n boolean isReadyToNotify=false;\n if(isLessThanDay){\n if(deadline.until(LocalDateTime.now(),HOURS)==HALF_A_DAY){\n isReadyToNotify=true;\n }\n }else{\n // if this time is the mean of deadline and assign date\n if(deadline.until(LocalDateTime.now(),HOURS) == deadline.until(assignDate,HOURS)/2){\n isReadyToNotify=true;\n }\n }\n return isReadyToNotify;\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "protected boolean isOverdue() {\n\t\t// this might be backwards, go back and check later\n\t\t/*int i = todaysDate.compareTo(returnDate);// returns 0, a positive num, or a negative num\n\t\tif (i == 0) { return false;}\t\t// the dates are equal, not overdue\n\t\telse if (i > 0) { return true; }\t// positive value if the invoking object is later than date\n\t\telse { return false; } */\t\t\t// negative value if the invoking object is earlier than date\n\t\t\n\t\t// can also do\n\t\tif (todaysDate.getTime() > returnDate.getTime() ) { return true; }\n\t\telse { return false; }\t// if the difference in time is less than or equal\n\t}", "public static void before1(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,5);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==5);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public static void before2(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,4);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==4);\n assert(ret0==false);\n System.out.println(ret0);\n }", "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relation=\"\";\r\n if (d1.compareTo(d2)<=0){\r\n \t b=true;\r\n // relation = \"the date is less\";\r\n }\r\n else {\r\n b=false;\r\n }\r\n return b;\r\n}", "public boolean isBeforeNow() {\r\n return isBefore(DateTimeUtils.currentTimeMillis());\r\n }", "public boolean isBeforeOrEquals(AbsTime refEpoch)\n {\n // The result to return.\n boolean res;\n\n // Check for special values.\n if (isASAP()) {\n // ASAP is before or equal to any time, including ASAP.\n res = true;\n } else if (isNEVER()) {\n // NEVER only before or equal to NEVER.\n if (refEpoch.isNEVER()) {\n res = true;\n } else {\n res = false;\n }\n } else if (refEpoch.isASAP()) {\n // No time is before or equal ASAP, except ASAP, which is already\n // considered above.\n res = false;\n } else if (refEpoch.isNEVER()) {\n // Any time is before or equal to NEVER, including NEVER.\n res = true;\n } else {\n // Do the comparison.\n res = (itsValue <= refEpoch.itsValue);\n }\n\n return res;\n }", "public static void playgroundForTime(){\n\t\tLocalDate localDate = LocalDate.of(2013, 4, 25);\r\n\t\tSystem.out.println(localDate.now().isBefore(localDate));\r\n\t\t\r\n\t}", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "private static boolean isPast(long[][] dates){\n if(dates[0][0] > dates[1][0])\n return true;\n else if(dates[0][0] == dates[1][0]){\n // If the year matches, then check if the month of Start Date is greater than the month of End Date\n // If the month matches, then check if the day of Start Date is greater than the day of End Date\n if(dates[0][1] > dates[1][1])\n return true;\n else if(dates[0][1] == dates[1][1] && dates[0][2] > dates[1][2])\n return true;\n }\n \n // If the Start Date is older than End Date, return false\n return false;\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "public static final Function<Date,Boolean> before(final Date date) {\r\n return new Before(date);\r\n }", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public boolean isPartialBefore(Date b) {\r\n\t\treturn comparePartialTo(b) < 0;\r\n\t}", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "public boolean pastDueDate(Date d){\r\n if(dueDate.after(d)){\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean dateCompareCurr(String[] inputdate){\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate comparedate = null; // 입력받은 날짜\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDate curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜\r\n\t\t\t\r\n\t\t\tfor (int idx = 0; idx < inputdate.length; idx++) {\r\n\t\t\t\t\r\n\t\t\t\tcomparedate = dateFormat.parse(inputdate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif(comparedate.compareTo(curdate) >= 0){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public static boolean notInFuture(Date data) {\r\n if (data != null) {\r\n return data.before(new Date());\r\n }\r\n return false;\r\n }", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "Date getPriorDate();", "private boolean checkStartDateBeforeEndDate(String startDate, String endDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n Date startingDate = null;\n try {\n startingDate = date.parse(startDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Date endingDate = null;\n try {\n endingDate = date.parse(endDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if (startingDate.before(endingDate)) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean compareDates(Date d1, Date d2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c1.setTime(d1);\n c2.setTime(d2);\n\n if (c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR))\n return false;\n if (c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH))\n return false;\n if (c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH)) {\n return false;\n }\n return true;\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "private boolean isOutdatedDate(LocalDate date) {\n return date.isBefore(LocalDate.now());\n }", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "public static void before0(){\n Calendar class0 = Calendar.getInstance();\n class0.set(2019,1,2,3,4,5);\n Calendar when = Calendar.getInstance();\n when.set(2019,1,2,3,4,6);\n boolean ret0 = class0.before(when);\n assert(class0.get(Calendar.YEAR)==2019);\n assert(class0.get(Calendar.MONTH)==1);\n assert(class0.get(Calendar.DATE)==2);\n assert(class0.get(Calendar.HOUR_OF_DAY)==3);\n assert(class0.get(Calendar.MINUTE)==4);\n assert(class0.get(Calendar.SECOND)==5);\n assert(when.get(Calendar.YEAR)==2019);\n assert(when.get(Calendar.MONTH)==1);\n assert(when.get(Calendar.DATE)==2);\n assert(when.get(Calendar.HOUR_OF_DAY)==3);\n assert(when.get(Calendar.MINUTE)==4);\n assert(when.get(Calendar.SECOND)==6);\n assert(ret0==true);\n System.out.println(ret0);\n }", "private boolean hasDateThreshold() {\r\n if (entity.getExpirationDate() == null) {\r\n return false;\r\n }\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.add(Calendar.MONTH, 1);\r\n if (entity.getExpirationDate().before(calendar.getTime())) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean isBeforeCreatedDate(String dateStr, DateWrapper createdDateWrapper) {\n DateWrapper dateWrapper = new DateWrapper(dateStr);\n return dateWrapper.compareTo(createdDateWrapper) < 0;\n }", "public static boolean isInBetweenDates(LocalDate startingDate,LocalDate endingDate,LocalDate currentDate) {\n //compareTo is used to compare 2 dates\n if(currentDate.compareTo(startingDate) * currentDate.compareTo(endingDate) <0)\n {\n return true;\n }\n else\n {\n return false;\n }\n\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "public boolean validarFecha(LocalDate fecha) { \n // se comprueba que la fecha sea anterior o igual a la actual\n return fecha.isBefore(LocalDate.now()) || fecha.isEqual(LocalDate.now());\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "public boolean olderThan(Person compared) {\n \n if(this.birthday.earlier(compared.birthday)){\n return true;\n }\n return false;\n }", "public boolean isAfter(Date that) {\n return compareTo(that) > 0;\n }", "public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }", "public boolean isBefore(Book b1, Book b2);", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "@Description(\"request was sent before {date}\")\n public static Criteria<HarEntry> recordedStartedDateTimeBefore(@DescriptionFragment(\"date\") Date date) {\n checkArgument(nonNull(date), \"Date should be defined\");\n\n return condition(entry -> {\n Date startedDateTime = entry.getStartedDateTime();\n\n return startedDateTime.before(date);\n });\n }", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }", "public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }", "private boolean isPast(Calendar currentCal){\n Calendar presentCal = Calendar.getInstance();\n presentCal.set(Calendar.SECOND,59);\n return currentCal.before(presentCal);\n }", "public void date_not_before_createdAt_date(FacesContext context, UIComponent comp, Object value) {\n if (charge.getCreatedAt() != null) {\n Date paidAt = (Date) value;\n\n if (paidAt != null) {\n if (paidAt.before(charge.getCreatedAt())) {\n FacesMessage FMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, message.translate(\"msg.error\"), message.translate(\"msg.validation.notBeforeCreatedAt\"));\n throw new ValidatorException(FMessage);\n }\n }\n }\n }", "public boolean isAfter(Date b) {\r\n\t\treturn compareTo(b) > 0;\r\n\t}", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "@SuppressWarnings(\"deprecation\")\r\n public static final boolean compareTwoDateSpecificToEndDay(Date expiredDate, Date dateNow) {\r\n\r\n int hoursNow = dateNow.getHours();\r\n int minuteNow = dateNow.getMinutes();\r\n\r\n return ((expiredDate.compareTo(dateNow) < 0)\r\n || ((expiredDate.compareTo(dateNow) == 0) && (hoursNow > 22 && minuteNow > 58)));\r\n\r\n }", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "public boolean compareWeek(String date){\n\n LocalDateTime providedDate = LocalDateTime.parse(date, dateTimeFormatter);\n LocalDateTime currentPlusOneWeek = current.plusWeeks(1);\n\n if(providedDate.isBefore(current)){\n return false;\n }if(providedDate.isAfter(currentPlusOneWeek)){\n return false;\n }\n\n return true;\n\n }", "public static boolean isAfterDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isAfterDay(cal1, cal2);\n }", "public static boolean isDateBetweenSpecifiedDate(Date date, Date from, Date to) {\n return date.compareTo(from) >= 0 && date.compareTo(to) <= 0;\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "public boolean isPosteriorTo(Date argdate) {\r\n\t\ttry {\r\n\t\t\tthis.timeSpentSince(argdate);\r\n\t\t} catch (InvalidDateException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean hasStartDate();", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "boolean hasDate();", "public static boolean isTimeBefore(String time1, String time2, DateFormat dateFormat)\n\t{\n\t\ttime1 = time1.trim();\n\t\ttime2 = time2.trim();\n\t\ttry\n\t\t{\n\t\t\treturn dateFormat.parse(time1).before(dateFormat.parse(time2));\n\t\t}\n\t\tcatch (ParseException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isLater(int month1, int day1, int year1,\n int month2, int day2, int year2)\n {\n return (year1 > year2) || (year1 == year2 && month1 > month2) ||\n (year1 == year2 && month1 == month2 && day1 > day2);\n }", "public boolean isBefore(String start, String end) {\n\n LocalDateTime startTime = LocalDateTime.parse(start, dateTimeFormatter);\n LocalDateTime endTime = LocalDateTime.parse(end, dateTimeFormatter);\n\n return endTime.isBefore(startTime);\n }", "public boolean isBefore(ReadableInstant instant) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[17]++;\nint CodeCoverConditionCoverageHelper_C5;\r\n if ((((((CodeCoverConditionCoverageHelper_C5 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C5 |= (2)) == 0 || true) &&\n ((instant == null) && \n ((CodeCoverConditionCoverageHelper_C5 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[5].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C5, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[5].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C5, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[9]++;\r\n return isBeforeNow();\n\r\n } else {\n CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[10]++;}\r\n return isBefore(instant.getMillis());\r\n }", "public boolean isBefore(long millisInstant) {\r\n return (getEndMillis() <= millisInstant);\r\n }", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final DayMonthYear date) {\r\n\t\treturn anyOf(sameDay(date), before(date));\r\n\t}", "public static boolean isTimeBefore(String time1, String time2)\n\t{\n\t\treturn isTimeBefore(time1, time2, getDateTimeFormat());\n\t}", "public boolean runsAt(Date date);" ]
[ "0.77895874", "0.76812357", "0.7524152", "0.74605536", "0.73722035", "0.7255577", "0.720233", "0.70255053", "0.70067865", "0.7006647", "0.69786507", "0.6895325", "0.67926747", "0.6654627", "0.6653356", "0.66479903", "0.66161096", "0.65286547", "0.65078706", "0.6497406", "0.6447272", "0.6383613", "0.6375979", "0.6279741", "0.62797", "0.62680423", "0.6257381", "0.6250759", "0.6238014", "0.61971605", "0.61828285", "0.61822385", "0.617953", "0.61732113", "0.616488", "0.6163224", "0.6142066", "0.6131248", "0.6108172", "0.6052555", "0.6044073", "0.604201", "0.6008568", "0.5998189", "0.599165", "0.59822905", "0.59448844", "0.59427667", "0.59399635", "0.59355855", "0.5913172", "0.5893322", "0.5870924", "0.58698684", "0.58619475", "0.58558273", "0.5854949", "0.5835094", "0.583308", "0.58127445", "0.5812117", "0.57878417", "0.57797813", "0.57569355", "0.57370657", "0.57236", "0.57028806", "0.57019097", "0.5699099", "0.56835866", "0.5679771", "0.5674131", "0.56634814", "0.56375676", "0.56315005", "0.56250834", "0.56242204", "0.5614427", "0.5600145", "0.5596608", "0.558761", "0.5581136", "0.5581136", "0.55618286", "0.5559229", "0.55278075", "0.5506225", "0.5496951", "0.54951984", "0.5493218", "0.5487542", "0.54807454", "0.54794985", "0.54715466", "0.5450858", "0.5450609", "0.54304385", "0.5427733", "0.54237896", "0.5408311" ]
0.7706106
1
Compare two dates chronologically. Return the value 0 if the argument date is equal to this date; a negative integer is this date is chronologically less than the argument date; and a positive integer if this date is chronologically after the argument date.
@Override public int compareTo(Date that) { if (this.year < that.year) return -1; if (this.year > that.year) return 1; if (this.month < that.month) return -1; if (this.month > that.month) return 1; if (this.day < that.day) return -1; if (this.day > that.day) return 1; return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "public int compare(Date date){\n if(date.getYear() > this.year){\n return -1;\n }else if(date.getYear() < this.year){\n return 1;\n }\n\n if(date.getMonth() > this.month){\n return -1;\n }else if(date.getMonth() < this.month){\n return 1;\n }\n\n if(date.getDay() > this.day){\n return -1;\n }else if(date.getDay() < this.day){\n return 1;\n }\n\n return 0;\n }", "public int compare(Visit<Integer,Integer> arg0, Visit<Integer,Integer> arg1) {\n\t\tDate d1 = arg0.getVisitDate();\r\n\t\tDate d2 = arg1.getVisitDate();\r\n\t\treturn d1.after(d2) ? 1 : -1; //if d1 is after d2, return 1, else return -1 (d2 is after d1). \r\n\t}", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public int compare(\r\n final Object objectA,\r\n final Object objectB)\r\n {\r\n final Date aAsDate = (Date)objectA;\r\n final Date bAsDate = (Date)objectB;\r\n int result = 0;\r\n\r\n if (bAsDate.after(aAsDate))\r\n {\r\n // set result to a negative integer if the first argument of this \r\n // method is less than the second\r\n result = -1;\r\n }\r\n else if (aAsDate.after(bAsDate))\r\n {\r\n // set result to a positive integer if the first argument of this \r\n // method is greater than the second\r\n result = 1;\r\n }\r\n return result;\r\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "public int compare(Date d){\n\t if (this.year < d.year)\n\t return 1;\n\t else if (this.year > d.year)\n\t return -1;\n\t else{\n\t int cM = this.month.compareMonth(d.month);\n\t if (cM != 0)\n\t\treturn cM;\n\t else{\n\t\tif (this.day < d.day)\n\t\t return 1;\n\t\telse if (this.day > d.day)\n\t\t return -1;\n\t\telse\n\t\t return 0;\n\t }\n\t }\n }", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "public int compareTo(Date b) {\r\n\t\tif (year != b.year)\r\n\t\t\treturn year - b.year;\r\n\t\tif (month != b.month)\r\n\t\t\treturn month - b.month;\r\n\t\treturn day - b.day;\r\n\t}", "@Override\r\n public int compareTo(HISDate date) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n cmpResult = this.compare(date);\r\n } catch (Exception e) {\r\n logger.error(\"compareTo(): Ungültiges Datum: \" + date);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public static int compararData(Date data1, Date data2) {\r\n\r\n\t\tCalendar calendar1;\r\n\t\tCalendar calendar2;\r\n\r\n\t\tint ano1;\r\n\t\tint ano2;\r\n\t\tint mes1;\r\n\t\tint mes2;\r\n\t\tint dia1;\r\n\t\tint dia2;\r\n\r\n\t\tint resultado;\r\n\r\n\t\tcalendar1 = Calendar.getInstance();\r\n\t\tcalendar1.setTime(data1);\r\n\r\n\t\tano1 = calendar1.get(Calendar.YEAR);\r\n\t\tmes1 = calendar1.get(Calendar.MONTH);\r\n\t\tdia1 = calendar1.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tcalendar2 = Calendar.getInstance();\r\n\t\tcalendar2.setTime(data2);\r\n\r\n\t\tano2 = calendar2.get(Calendar.YEAR);\r\n\t\tmes2 = calendar2.get(Calendar.MONTH);\r\n\t\tdia2 = calendar2.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tif (ano1 == ano2) {\r\n\r\n\t\t\tif (mes1 == mes2) {\r\n\r\n\t\t\t\tif (dia1 == dia2) {\r\n\t\t\t\t\tresultado = 0;\r\n\t\t\t\t} else if (dia1 < dia2) {\r\n\t\t\t\t\tresultado = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresultado = 1;\r\n\t\t\t\t}\r\n\t\t\t} else if (mes1 < mes2) {\r\n\t\t\t\tresultado = -1;\r\n\t\t\t} else {\r\n\t\t\t\tresultado = 1;\r\n\t\t\t}\r\n\t\t} else if (ano1 < ano2) {\r\n\t\t\tresultado = -1;\r\n\t\t} else {\r\n\t\t\tresultado = 1;\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "boolean IFbefore(Date day1, int ID1, Date day2, int ID2){\n if (day1.compareTo(day2) < 0) return true;\n if (day1.compareTo(day2) > 0) return false;\n if (ID1 < ID2) return true;\n return false;\n }", "public static int compararDataTime(Date data1, Date data2) {\r\n\t\tlong dataTime1 = data1.getTime();\r\n\t\tlong dataTime2 = data2.getTime();\r\n\t\tint result;\r\n\t\tif (dataTime1 == dataTime2) {\r\n\t\t\tresult = 0;\r\n\t\t} else if (dataTime1 < dataTime2) {\r\n\t\t\tresult = -1;\r\n\t\t} else {\r\n\t\t\tresult = 1;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret < 0;\r\n\t}", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }", "public static int diff(Date date1, Date date2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n\n c1.setTime(date1);\n c2.setTime(date2);\n int diffDay = 0;\n\n if (c1.before(c2)) {\n diffDay = countDiffDay(c1, c2);\n } else {\n diffDay = countDiffDay(c2, c1);\n }\n\n return diffDay;\n }", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "@Override\n\tpublic int compareTo(Meeting meeting){\n\t\tif(this.getDate().equals(meeting.getDate())){\n\t\t\treturn 0;\n\t\t}\n\t\telse if(this.getDate().before(meeting.getDate())){\n\t\t\treturn -1;\n\t\t}\n\t\telse{\n\t\t\treturn 1;\n\t\t}\n\t}", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "public final int compareTo(Object anotherDateUtil)\n {\n return this.ordinal - ((DateUtil) anotherDateUtil).ordinal;\n }", "private int compareTo(Day ds) {\r\n if (this == ds) {\r\n return 0;\r\n }\r\n return (this.index < ds.index) ? (-1) : (+1);\r\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}", "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "@Override\n public int compare(WorkReport o1, WorkReport o2) {\n if (o1 == null || o2 == null) {\n return 0;\n }\n Date d1 = o1.getDate();\n Date d2 = o2.getDate();\n if (d1 == null || d2 == null) {\n return 0;\n }\n return -(d1.compareTo(d2));\n }", "public int compare(Expense ideaVal1, Expense ideaVal2) {\n Long val1 = ideaVal1.getCurrentDate();\n Long val2 = ideaVal2.getCurrentDate();\n return val2.compareTo(val1);\n }", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "public static int compare(double v1, double v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public static int compare(long v1, long v2) {\n return ( v1 - v2 ) > 0 ? 1 : ( ( v1 - v2 ) == 0 ? 0 : -1 );\n }", "public int compareWithDate(AbstractEntity objectCompare){\n\t\tif(this.fechaUltimaModificacion!=null){\n\t\t\tif(objectCompare.fechaUltimaModificacion!=null)\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\t\telse\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaCreacion);\n\t\t}\n\t\telse if(objectCompare.fechaUltimaModificacion!=null)\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\telse\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaCreacion);\n\t\t\n\t}", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "public int compareTo(Message other) {\n \tif(date.after(other.date)){\n\t\treturn 1;\n \t}\n \telse{\n\t\treturn -1;\n \t}\n }", "@Override\r\n\t\tpublic int compareTo(Event compareEvent){\r\n\t\t\t\r\n\t\t\tint compareQuantity = ((Event)compareEvent).date;\r\n\t\t\t//ascending order\r\n\t\t\treturn this.date-compareQuantity;\r\n\t\t\t//descending order\r\n\t\t\t//return compareQuantity -this.quantity;\r\n\t\t}", "public int compare(Tweet e1, Tweet e2) {\n\t\t// Compares the dates the tweets were posted, and return this value\n\t\treturn e1.getDate().compareTo(e2.getDate());\n\t}", "public static boolean isBeforeDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isBeforeDay(cal1, cal2);\n }", "public int compareWithToday() {\r\n return this.compare(HISDate.getToday());\r\n }", "public int compare(Itemset o1, Itemset o2) {\n long time1 = o1.getTimestamp();\n long time2 = o2.getTimestamp();\n if (time1 < time2) {\n return -1;\n }\n return 1;\n }", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }", "int compare( IDateTimeValueType rhs );", "@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }", "public static int validateNullDateValues(Date date1, Date date2) {\n\t\tint returnValue = 0;\n\t\tif ((date1 == null) & (date2 == null)){\n\t\t\treturnValue = 0;\n\t\t}else if ((date1 == null) & (date2 != null)) {\n\t\t\treturnValue = -1;\n\t\t}else if ((date1 != null) & (date2 == null)) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn returnValue;\n\t}", "public int compareTo(Time other) {\n // if both times have a date, return the difference if there is one, else\n // continue with standard comparison\n if (this.date != null && other.date != null) {\n if (this.date.compareTo(other.date) != 0) {\n return this.date.compareTo(other.date);\n }\n }\n\n boolean nextDay = DayOfWeek.isNextDay(this.day, other.day);\n\n // if other day is not the day after this day and days aren't the same\n if (!nextDay && !DayOfWeek.isSameDay(this.day, other.day)) {\n return this.day - other.day;\n\n // if other day is day after this day\n } else if (nextDay) {\n return this.hour - (other.hour + 24); // add 24 to represent next day\n\n // if day is the same\n } else {\n if (this.hour != other.hour) {\n return this.hour - other.hour;\n } else {\n return this.minute - other.minute;\n }\n }\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "public int compare(TimeSpan std1, TimeSpan std2) {\n\t\t\t//ascending order\n\t\t\treturn std1.start - std2.start;\n\t\t}", "public int compareTo(LessonDateTime other) {\n if (equals(other)) {\n return 0;\n } else {\n LocalDate currentDate = LocalDate.now(DEFAULT_TIME_ZONE);\n DayOfWeek currentWeekday = DayOfWeek.getLessonWeekDay(currentDate);\n Integer currentToThis = DayOfWeek.distanceBetweenTwoDay(currentWeekday, getWeekday());\n Integer currentToOther = DayOfWeek.distanceBetweenTwoDay(currentWeekday, other.getWeekday());\n int result = currentToThis.compareTo(currentToOther);\n return result == 0\n ? getStartTime().compareTo(other.getStartTime())\n : result;\n }\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "Date getPriorDate();", "public boolean isBefore(final String date1, final String date2) {\n return compare(date1, date2) < 0;\n }", "public int compareTo(DateTemperaturePair pair) {\n int compareValue = this.yearMonth.compareTo(pair.getYearMonth());\n if(compareValue == 0){\n compareValue = temperature.compareTo(pair.getTemperature());\n }\n /*ascending*/\n return compareValue;\n /*descending*/\n// return -1*compareValue;\n }", "public static int compareTimestamps(final String ts1, final String ts2) throws Exception {\r\n\r\n int result = 0;\r\n\r\n XMLGregorianCalendar date1 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts1);\r\n XMLGregorianCalendar date2 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts2);\r\n\r\n int diff = date1.compare(date2);\r\n if (diff == DatatypeConstants.LESSER) {\r\n result = -1;\r\n }\r\n else if (diff == DatatypeConstants.GREATER) {\r\n result = 1;\r\n }\r\n else if (diff == DatatypeConstants.EQUAL) {\r\n result = 0;\r\n }\r\n else if (diff == DatatypeConstants.INDETERMINATE) {\r\n throw new Exception(\"Date comparing: INDETERMINATE\");\r\n }\r\n\r\n return result;\r\n }", "public static int verschilJaren(final Date datum1, final Date datum2)\n\t{\n\t\tif (datum1 == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"datum1 is leeg.\");\n\t\t}\n\t\tif (datum2 == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"datum2 is leeg.\");\n\t\t}\n\t\tCalendar calendar0 = Calendar.getInstance();\n\t\tCalendar calendar1 = Calendar.getInstance();\n\t\tif (datum1.before(datum2))\n\t\t{\n\t\t\tcalendar0.setTime(datum1);\n\t\t\tcalendar1.setTime(datum2);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcalendar0.setTime(datum2);\n\t\t\tcalendar1.setTime(datum1);\n\t\t}\n\t\tint jaren0 = calendar0.get(Calendar.YEAR);\n\t\tint jaren1 = calendar1.get(Calendar.YEAR);\n\n\t\tint maanden0 = calendar0.get(Calendar.MONTH);\n\t\tint maanden1 = calendar1.get(Calendar.MONTH);\n\n\t\tint dag0 = calendar0.get(Calendar.DAY_OF_MONTH);\n\t\tint dag1 = calendar1.get(Calendar.DAY_OF_MONTH);\n\n\t\tint jarenVerschil = jaren1 - jaren0;\n\t\tint maandenVerschil = maanden1 - maanden0;\n\n\t\tif (dag0 > dag1)\n\t\t{\n\t\t\tmaandenVerschil -= 1;\n\t\t}\n\n\t\tif (maandenVerschil < 0)\n\t\t{\n\t\t\tjarenVerschil -= 1;\n\t\t}\n\t\treturn Math.abs(jarenVerschil);\n\t}", "public static int compareDatesString(String dateFirst, String dateSecond) {\n\n\t\tif (dateFirst.equals(dateSecond)) {\n\t\t\treturn 0;\n\t\t}\n\t\t///lets check the years from format yyyy-mm-dd\n\t\tint year1 = Integer.parseInt(dateFirst.substring(0, 4));\n\t\tint year2 = Integer.parseInt(dateSecond.substring(0, 4));\n\n\t\tif (year1 < year2) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (year1 > year2) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t//if equal lets do months\n\t\tyear1 = Integer.parseInt(dateFirst.substring(5, 7));\n\t\tyear2 = Integer.parseInt(dateSecond.substring(5, 7));\n\n\t\tif (year1 < year2) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (year1 > year2) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t// if equal lets do days\n\t\tyear1 = Integer.parseInt(dateFirst.substring(8));\n\t\tyear2 = Integer.parseInt(dateSecond.substring(8));\n\n\t\tif (year1 < year2) {\n\t\t\treturn -1;\n\t\t}\n\t\t//if(year1 > year2){\n\t\treturn 1;\n\t\t// }\n\n\t}", "@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "public int differneceInYears(MyDate comparedDate) {\n int diff = 0;\n int cyear = 0;\n int cmonth = 0;\n int cday = 0;\n\n if (earlier(comparedDate) == false) {\n \n cyear = comparedDate.year;\n cmonth = comparedDate.month;\n cday = comparedDate.day;\n\n while (true) {\n if (this.year == cyear && this.month == cmonth && this.day == cday) {\n break;\n }\n \n cday++;\n diff++;\n \n if (cday == 31) {\n cmonth++;\n cday = 1;\n }\n\n if (cday == 1 && cmonth == 13) {\n cmonth = 1;\n cyear++;\n }\n }\n return diff / 360;\n\n } else {\n \n cyear = this.year;\n cmonth = this.month;\n cday = this.day;\n\n while (true) {\n if (comparedDate.year == cyear && comparedDate.month == cmonth && comparedDate.day == cday) {\n break;\n }\n\n cday++;\n diff++;\n \n if (cday == 31) {\n cmonth++;\n cday = 1;\n }\n\n if (cday == 1 && cmonth == 13) {\n cmonth = 1;\n cyear++;\n }\n\n }\n return diff / 360;\n }\n\n }", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public int compareTo(Calendar anotherCalendar) {\n return cal.compareTo(anotherCalendar);\n }", "@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.start-o2.start;\n\t\t\t}", "public static int compareDateTime(NodeValue nv1, NodeValue nv2) {\n // XSD Datatypes defines a partial order on dateTimes when comparing with\n // and without timezone => compareXSDDateTime\n // F&O defines a total order by applying the context-dependent implicit\n // timezone => compareDateTimeFO\n //\n // \"Comparison operators on xs:date, xs:gYearMonth and xs:gYear compare their\n // starting instants. These xs:dateTime values are calculated as described\n // below.\"\n if ( SystemARQ.StrictDateTimeFO )\n return compareDateTimeFO(nv1, nv2) ;\n return compareDateTimeXSD(nv1, nv2);\n }", "public static boolean compareDates(Date d1, Date d2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c1.setTime(d1);\n c2.setTime(d2);\n\n if (c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR))\n return false;\n if (c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH))\n return false;\n if (c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH)) {\n return false;\n }\n return true;\n }", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "public int compare(final Object arg0, final Object arg1) {\n final History h0 = (History) arg0;\n final History h1 = (History) arg1;\n final Date t0 = (h0.getCreationDate() == null) ? new Date(0) : h0.getCreationDate();\n final Date t1 = (h1.getCreationDate() == null) ? new Date(0) : h1.getCreationDate();\n\n // Compare by creation date\n int c = t0.compareTo(t1);\n\n // If it's the same creation date, then compare by the default history compareTo\n if (c == 0) {\n c = h0.toString().compareTo(h1.toString());\n }\n\n return c;\n }", "public static int comp( double a, double b ) {\n return equal( a, b, REL_TOL, ABS_TOL ) ? 0 : (a < b ? -1 : 1 );\n }", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "DateDiff(Datum date1, Datum date2)\r\n\t{\r\n\t\t// Return when equal\r\n\t\tif (date1.equals(date2))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Switch Min / Max\r\n\t\tDatum Maxdate = date1.kleinerDan(date2) ? date2 : date1;\r\n\t\tDatum minDate = date1.kleinerDan(date2) ? date1 : date2;\r\n\t\tminDate = new Datum(minDate); //Cloned for calculations\r\n\r\n\t\t// Not in same month or year? -> Add 1 month\r\n\t\twhile (minDate.getMonth() != Maxdate.getMonth()\r\n\t\t\t\t|| minDate.getYear() != Maxdate.getYear())\r\n\t\t{\r\n\t\t\t//Get the days of the month being processed.\r\n\t\t\tint dim = Maanden.get(minDate.getMonth()).GetLength(minDate.getYear());\r\n\t\t\tminDate.veranderDatum(dim); // Add 1 month\r\n\t\t\tdays += dim; //add days\r\n\t\t\tmonths++; // add one month\r\n\t\t}\r\n\t\t// Add or subtract remaining days (in same month)\r\n\t\tdays += Maxdate.getDay() - minDate.getDay();\r\n\t\t//Subtract one month if the MaxDay is bigger then MinDay\r\n\t\tmonths -= (Maxdate.getDay() < minDate.getDay() ? 1 : 0);\r\n\t}", "@Override\n public int compare(Task task1, Task task2) {\n return task1.getDate().compareTo(task2.getDate());\n }", "protected int compareForNulls(Object o1, Object o2) {\r\n if(o1 == null && o2 == null) return 0;\r\n if(o1 == null) {\r\n if(nullIsGreater) return 1;\r\n else return -1;\r\n }\r\n else if(o2 == null) {\r\n if(nullIsGreater) return -1;\r\n else return 1;\r\n }\r\n else {\r\n return 0; // both are non-null;\r\n }\r\n }", "public int compareTo(Punch another) {\n return ((new DateTime(time)).compareTo(another.getTime()));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World!\");\r\n\t\t/*\r\n\t\tDate d = new Date(); // Current Date\r\n\t\tSystem.out.println(d);\r\n\t\tDate d1 = new Date(1000000000); // set ne w Date\r\n\t\tSystem.out.println(d1);\r\n\t\t//System.out.println(d.after(d1)); // true\r\n\t\t//System.out.println(d1.after(d)); // false\r\n\t\tDate d2 = (Date) d1.clone(); // Making Deep copy\r\n\t\tSystem.out.println(d2);\r\n\t\tSystem.out.println(d.compareTo(d1)); // 1\r\n\t\tSystem.out.println(d1.compareTo(d)); // -1\r\n\t\tSystem.out.println(d1.compareTo(d2)); \r\n\t\tSystem.out.println(d1.equals(d2)); // true\r\n\t\tSystem.out.println(d1.equals(d)); // false\r\n\t\tSystem.out.println(d.getTime());\r\n\t*/\r\n\t\tSystem.out.println(\"Today's date: \" + LocalDate.now());\r\n\t\tSystem.out.println(\"Specified date: \" + LocalDate.of(2000, 1, 1));\r\n\r\n\r\n\t}", "@Override\n\t\t\tpublic int compare(MyInteger arg0, MyInteger arg1) {\n\t\t\t\treturn arg0.getValue() - arg1.getValue();\n\t\t\t}", "@Override\n\tpublic int compareTo(TimeInt other) {\n\t\tif (this.time < other.time) {\n\t\t\treturn -1;\n\t\t} else if (this.time > other.time) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\n\t}", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "public int compare(AbsTime refEpoch)\n {\n // Code for NEVER should have been 0x7FFFFFFFFFFFFFFFL\n final long LAST = 0x7FFFFFFFFFFFFFFFL;\n long e1 = (itsValue == NEVER_CODE ? LAST : itsValue);\n long e2 = (refEpoch.itsValue == NEVER_CODE ? LAST : refEpoch.itsValue);\n\n return (e1 < e2 ? -1 : (e1 == e2 ? 0 : 1));\n }", "public int compare(Meeting meetingOne, Meeting meetingTwo) {\n return meetingOne.getDate().compareTo(meetingTwo.getDate());\n }", "public static int compareXSDDateTime(NodeValue nv1, NodeValue nv2) {\n XMLGregorianCalendar dt1 = getXMLGregorianCalendarXSD(nv1);\n XMLGregorianCalendar dt2 = getXMLGregorianCalendarXSD(nv2);\n\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "public boolean dateCompareCurr(String[] inputdate){\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate comparedate = null; // 입력받은 날짜\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDate curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜\r\n\t\t\t\r\n\t\t\tfor (int idx = 0; idx < inputdate.length; idx++) {\r\n\t\t\t\t\r\n\t\t\t\tcomparedate = dateFormat.parse(inputdate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif(comparedate.compareTo(curdate) >= 0){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\r\n public int compareTo(TennisMatch match) {\r\n if(getDateYear() < match.getDateYear()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() < match.getDateMonth()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() == match.getDateMonth()\r\n && getDateDay() < match.getDateDay()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "static int compare(EpochTimeWindow left, EpochTimeWindow right) {\n long leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getBeginTime();\n long rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getBeginTime();\n\n int result = Long.compare(leftValue, rightValue);\n if (0 != result) {\n return result;\n }\n\n leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getEndTime();\n rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getEndTime();\n\n result = Long.compare(leftValue, rightValue);\n return result;\n }", "private DeadlineDate minimumOf(DeadlineDate firstDeadlineDate, DeadlineDate secondDeadlineDate) {\n if (firstDeadlineDate.compareTo(secondDeadlineDate) < 0) {\n return firstDeadlineDate;\n } else {\n return secondDeadlineDate;\n }\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "public boolean isBefore(@NonNull final CalendarDay other) {\n return date.isBefore(other.getDate());\n }", "@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\tAppEntry entry1 = (AppEntry) arg0;\n\t\t\tAppEntry entry2 = (AppEntry) arg1;\n\t\t\tlong result = entry1.getStartCount() - entry2.getStartCount();\n\t\t\tif (result > 0) {\n\t\t\t\treturn -1;\n\t\t\t} else if (result == 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (result < 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}" ]
[ "0.71503067", "0.694361", "0.693771", "0.6699517", "0.6698313", "0.6696939", "0.6618015", "0.6611415", "0.65023375", "0.65021574", "0.6490321", "0.6426329", "0.6387033", "0.63432", "0.63268936", "0.6250038", "0.62136084", "0.6169284", "0.6117989", "0.6104444", "0.6103939", "0.60461557", "0.6025082", "0.6025005", "0.5921627", "0.5908004", "0.5907564", "0.5903865", "0.58473575", "0.58244824", "0.582194", "0.5812181", "0.57936734", "0.57854956", "0.57679987", "0.57606053", "0.5729055", "0.57286143", "0.5723504", "0.5720384", "0.57140684", "0.5712847", "0.56955826", "0.569475", "0.56585854", "0.5654243", "0.5640951", "0.56398153", "0.5600336", "0.55993795", "0.5582446", "0.55738646", "0.5562085", "0.5551496", "0.55496866", "0.5548949", "0.55301726", "0.55042076", "0.54831576", "0.54597396", "0.54507625", "0.54418", "0.54314077", "0.5424858", "0.5415854", "0.5413246", "0.54028475", "0.5402237", "0.539974", "0.5393445", "0.53908265", "0.5384413", "0.5381151", "0.5380395", "0.5376694", "0.5374099", "0.53729075", "0.5355506", "0.5350902", "0.53428745", "0.5341092", "0.5331016", "0.53265023", "0.5325472", "0.53219944", "0.53155565", "0.5306393", "0.5303545", "0.53007615", "0.52953786", "0.5291251", "0.5253908", "0.5249237", "0.52471", "0.5227376", "0.5227094", "0.5226234", "0.52195644", "0.5195936", "0.5195389" ]
0.701101
1
Return a string representation of this date;
@Override public String toString() { return month + "/" + day + "/" + year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public String toString() {\r\n String date = month + \"/\" + day;\r\n return date;\r\n }", "public String toString() {\n\t\tdouble hour = getHour();\n\t\tString h = (hour < 10 ? \" \" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + (int) hour + \":\";\n\t\thour = 60 * (hour - (int) hour);\n\t\th += (hour < 10 ? \"0\" : \"\") + hour;\n\n\t\treturn \"(YYYY/MM/DD) \" + getYear() + \"/\" + (getMonth() < 10 ? \"0\" : \"\") + getMonth() + \"/\"\n\t\t\t\t+ (getDay() < 10 ? \"0\" : \"\") + getDay() + \", \" + h + \"h \" + (getCalendarType() ? \"(greg)\" : \"(jul)\")\n\t\t\t\t+ \"\\n\" + \"Jul. Day: \" + getJulDay() + \"; \" + \"DeltaT: \" + getDeltaT();\n\t}", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "public String toString() {\n synchronized (FORMATTER) {\n return FORMATTER.format(_calendar.getTime());\n }\n }", "public String toString(){\n\t\t\n\t\treturn month+\"/\"+day+\"/\"+year;\n\t}", "@Override\n public String toString() {\n return String.format(year + \",\" + month + \",\" + day);\n\n }", "public String toString() {\n\t\treturn String.format(\"%d/%d/%d\", year, month, day);\n\t}", "@Override\n public String toString() {\n return (this.month + \"/\" + this.day + \"/\" + this.year);\n }", "public String toString() {\n\t\treturn new String(dateToString() + \" \"\n\t\t\t\t+ timeToString());\n }", "public String toString() {\n\t\t\treturn month + \"/\" + day + \"/\" + year;\n\t\t}", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public String toString() {\n return this.day + \" \" + this.month + \" \" + this.time;\n }", "public String toString()\n\t{\n\t\treturn date.toString()+\" \"+time.toString();\n\t}", "public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}", "public String getDate(){\n\t\treturn toString();\n\t}", "@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }", "public String toString() {\r\n\t\treturn String.format(\"%02d/%02d/%02d\", month, day, year);\r\n\r\n\t}", "public String toString() {\n StringBuilder output = new StringBuilder();\n LocalDateTime currentTime = getCurrentTime();\n output.append(currentTime.getYear()).append(\":\").append(currentTime.getMonthValue()).append(\":\")\n .append(currentTime.getDayOfMonth());\n return output.toString();\n }", "public String toString() {\n if(getPersistedAttribute().getDatevalue() == null) {\n return \"null\";\n }\n return DateUtil.formatRfc3339Calendar(getValue());\n }", "public String toString()\n {\n String str = \"\";\n\n if (day < 10)\n {\n str += \"0\";\n }\n str += day + \"/\";\n\n if (month < 10)\n {\n str += \"0\";\n }\n str += month + \"/\";\n\n str += year + \"; \";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }", "public String toString() {\n return \"[E]\" + super.toString() + \" (at: \"\n + date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy hh:ss a\")) + \")\";\n }", "public String toString(){\n\t\treturn \"Name: \"+name +\" Date: \"+date.getDate();\n\t}", "public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}", "public String toString() {\r\n\t\treturn \"[\" + month + \"-\" + day + \"-\" + year + \"]\";\r\n\t}", "@Override\n public String toString() {\n // Jahr, immer 4-stellig (führenden Nullen)\n String j = String.format(\"%04d\", jahr());\n\n // Monat, immer 2-stellig (führende Null)\n String m = String.format(\"%02d\", monat());\n\n // Tag, immer 2-stellig (führende Null)\n String t = String.format(\"%02d\", tag());\n\n // Trennzeichen (char -> String für String.join())\n String tz = String.valueOf(separator);\n\n // Setzt Datum entsprechend dem festgelegten format zusammen\n String datum = switch (format) {\n case \"jmt\" -> String.join(tz, j, m, t);\n case \"tmj\" -> String.join(tz, t, m, j);\n case \"mtj\" -> String.join(tz, m, t, j);\n default -> \"Usage: jmt/tmj/mtj\";\n };\n return datum;\n }", "public String toString() {\n return String.format(\"%02d:%02dZ%02d%s%d\", hour, minute, day, months[month - 1], year);\n }", "@Override\n public String toString() {\n return (\"[E]\" + super.toString() + String.format(\"(at:%s)\", this.date));\n }", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public String toString() {\n return title() + \" \" + longValue() + \" [DateTime]\";\n }", "public String toString()\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\treturn getBank() + \" \" + getAccount() + \" \" + format.format(getDate());\n\t}", "public String toString() {\n\n // returns a string in a \"{standard time}: {description}\" format\n return String.format(\"%s: %s\", this.getTime(), this.description);\n }", "public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return format.format(mDate);\n }", "public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }", "protected String getRentDateString() { return \"\" + dateFormat.format(this.rentDate); }", "public String toString() {\n String eventString = \"\";\n DateTimeFormatter ft = DateTimeFormatter.ofPattern(\"ddMMyyyy\");\n String date = this.getDue().format(ft);\n eventString += (\"e,\" + this.getName() + \",\" + this.getDetails() + \",\" +\n date + \";\");\n return eventString;\n }", "public String getDateAsString(){\n\t\t//\tGet Date\n Date date = getDate();\n if(date != null)\n \treturn backFormat.format(date);\n\t\treturn null;\n\t}", "public String toString() {\r\n\t\treturn super.toString() + \" \" + this.aenderungsdatum + \" \" + this.erstelldatum;\r\n\t}", "public String toString() {\n return '[' + description + \"][\" + date + ']';\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString dispyear = \"\" + this.year;\r\n\t\tString dispmonth = \"\" + this.month;\r\n\t\tString dispday = \"\" + this.day;\r\n\t\tString disphour = \"\" + this.hour;\r\n\t\tString dispminute = \"\" + this.minute;\r\n\t\tif (this.month < 10) {\r\n\t\t\tdispmonth = \"0\" + dispmonth;\r\n\t\t}\r\n\t\tif (this.day < 10) {\r\n\t\t\tdispday = \"0\" + dispday;\r\n\t\t}\r\n\t\tif (this.hour < 10) {\r\n\t\t\tdisphour = \"0\" + disphour;\r\n\t\t}\r\n\t\tif (this.minute < 10) {\r\n\t\t\tdispminute = \"0\" + dispminute;\r\n\t\t}\r\n\t\treturn disphour + \":\" + dispminute + \", \" + dispday +\"/\" + dispmonth +\"/\" + dispyear;\r\n\t}", "@Override\r\n public String toString() {\r\n \r\n DateFormat data = DateFormat.getDateInstance();\r\n return \"Nome: \" + getNome()+ \" \\nCPF: \" + getCpf() + \" \\nTelefone: \"\r\n + getTelefone() + \" \\nData de Nascimento : \" + data.format(getDataNasc())\r\n + \" \\nSexo: \" + getSexo();\r\n }", "@Override\npublic final String toString() {\n\t if(shortFormat) {\n\t\t return toShortString();\n\t }\n if (calValue != null) {\n return dfMedium.get().format(calValue.getTime());\n }\n else {\n return \"\";\n }\n }", "public String toString() {\n \tSimpleDateFormat formatter = new SimpleDateFormat(\"MMM dd, yyyy\");\n \t\n \t// convert the released date from calendar object to a date object\n \tDate gameDateobject = this.released.getTime();\n \t\n \t// convert the date object to a specific format\n \tString printDate = formatter.format(gameDateobject);\n \t\n \t// build and return the final string\n \tString finalOutput = \"\\\"\" + this.name + \"\\\"\" + \", released on: \" + printDate;\n \t\n\t\treturn finalOutput;\n }", "public String getFormattedDate() {\n return transactionDate.toString();\n }", "public String toString()\n {\n if ( ordinal == NULL_ORDINAL )\n {\n return \"\";\n }\n String result;\n if ( -999 <= yyyy && yyyy <= 9999 )\n {\n result = this.toLZ(yyyy,4);\n }\n else\n {\n result = Integer.toString(yyyy);\n }\n result += \"-\" + this.toLZ(mm,2) + \"-\" + this.toLZ(dd,2);\n return result;\n }", "java.lang.String getDate();", "public String toString() {\n if (time != null) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n return time.format(formatter);\n } else {\n return \"INVALID TIME\";\n }\n }", "public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }", "public String toString(){\n\t\tString result = Integer.toString(day) + \" \";\n\t\tswitch (month){\n\t\t\tcase 1:\n\t\t\t\tresult += \"January, \";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult += \"February, \";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tresult += \"March, \";\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tresult += \"April, \";\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tresult += \"May, \";\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tresult += \"June, \";\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tresult += \"July, \";\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tresult += \"August, \";\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tresult += \"September, \";\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tresult += \"October, \";\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tresult += \"November, \";\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\tresult += \"December, \";\n\t\t\t\tbreak;\n\t\t}\n\t\tresult += Integer.toString((year / 10 % 10)) + Integer.toString((year % 10));\n\n\t\treturn result;\n\t}", "@Override\n public String toString() {\n SimpleDateFormat format = new SimpleDateFormat (\"MMM d yyyy\");\n String dateString = format.format(by);\n return \"[D]\" + super.toString() + \" (by: \" + dateString + \")\";\n }", "public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }", "@Override\n public String save_toString() {\n return \"D | \" + super.save_toString() + \"| \" + date;\n }", "public String getStringRepresentation() {\n StringJoiner joiner = new StringJoiner(STRING_FORMAT_DELIMITER);\n\n joiner.add(this.getCaller())\n .add(this.getCallee())\n .add(SIMPLE_DATE_FORMAT.format(startTime))\n .add(SIMPLE_DATE_FORMAT.format(endTime));\n\n return joiner.toString();\n }", "@Override\n public String toString() {\n String byFormatted = by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + super.toString() + \" (by: \" + byFormatted + \")\";\n }", "@Override\r\n public String toString() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n \r\n return (\r\n \"\\n\" +\r\n \"Codigo tour: \" + this.getCodigoIdentificacion() + \"\\n\" +\r\n \"Nombre Comercial: \" + this.getNombreComercial() + \"\\n\" +\r\n \"Lugar de salida: \" + this.getLugarPartida() + \"\\n\" +\r\n \"Fecha de salida: \" + sdf.format(this.getFechaSalida()) + \"\\n\" +\r\n \"Fecha de regreso: \" + sdf.format(this.getFechaRegreso()) + \"\\n\" +\r\n \"Precio: \" + String.format(\"$ %(,.0f\", this.getPrecio()) + \"\\n\" +\r\n \"Estadía (días): \" + this.calcularEstadia() + \"\\n\" +\r\n \"Costo: \" + String.format(\"$ %(,.0f\", this.calcularPrecio()) + \"\\n\" +\r\n \"Nombre empresa: \" + this.getNombreEmpresa() + \"\\n\" +\r\n \"Tipo de empresa: \" + this.getTipo() + \"\\n\" +\r\n \"Viajero frecuente:\" + (this.isViajeroFrecuente() ? \"Si\\n\" : \"No\\n\")\r\n );\r\n }", "protected String getReturnDateString() { return \"\" + dateFormat.format(this.returnDate); }", "@Override\r\n public String getAsText() {\r\n Date value = (Date) getValue();\r\n DateFormat dateFormat = this.dateFormat;\r\n if(dateFormat == null) {\r\n dateFormat = new SimpleDateFormat(TIME_FORMAT);\r\n }\r\n return (value != null ? dateFormat.format(value) : \"\");\r\n }", "protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "@Override\n public String toString() {\n String result = (negative)\n ? \"-P\"\n : \"P\";\n\n if ((years > 0) || (months > 0) || (days > 0)) {\n if (years > 0) {\n result += years + \"Y\";\n }\n\n if (months > 0) {\n result += months + \"M\";\n }\n\n if (days > 0) {\n result += days + \"D\";\n }\n } else {\n result += \"0D\";\n }\n\n if ((hours > 0) || (minutes > 0) || (seconds > 0)) {\n result += \"T\";\n\n if (hours > 0) {\n result += hours + \"H\";\n }\n\n if (minutes > 0) {\n result += minutes + \"M\";\n }\n\n if (seconds > 0) {\n result += seconds + \"S\";\n }\n }\n\n return result;\n }", "public String toString()\n\t{\n\t\tif (m_nType == AT_NONE)\n\t\t\treturn \"ERROR\";\n\n\t\tString str;\n\n\t\t//Format : <type>,<title>,<time>,<zone>,[<date>|<week day>|<month date>]\n\t\t//Time is in \"hh:mm\" format; Date in \"mm-dd-yyyy\" format\n\n\t\tstr = Integer.toString(m_nType);\n\t\tstr = str + FIELD_SEP;\n\n\t\tstr = str + m_strTitle;\n\t\tstr = str + FIELD_SEP;\n\n\t\tstr = str + Integer.toString(m_nTimeHour);\n\t\tstr = str + TIME_SEP;\n\t\tstr = str + Integer.toString(m_nTimeMin);\n\t\tstr = str + FIELD_SEP;\n\t\tstr = str + m_strTimeZone;\n\n\t\tif (m_oData != null)\n\t\t\tstr = str + FIELD_SEP;\n\n\t\tif (m_nType == AT_DATE)\n\t\t\tstr = str + GValidator.DateToString((Date)m_oData);\n\t\telse if (m_nType == AT_WEEK_DAY || m_nType == AT_MONTH_DATE)\n\t\t\tstr = str + ((Integer)m_oData).toString();\n\n\t\treturn str;\n\t}", "public String getDateCreatedAsString() {\n return dateCreated.toString(\"MM/dd/yyyy\");\n }", "public String Get_date() \n {\n \n return date;\n }", "public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"value:%s;expiry:%s\", value,\n\t\t\t\tTimeHepler.getStringDateShort(expiry));\n\t}", "@Override\n public String toString() {\n return \"[D]\" + super.toString() + \"(by: \" + date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\")) + \")\";\n }", "@Override\n public String toString() {\n return \"[D]\" + super.toString() + \" (by: \"\n + by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\")) + \")\";\n }", "@Override\n public String toString(){\n String ret = super.toString();\n ret += \"\\nYears Until Tenure: \" + m_yearsUntilTenure;\n return ret;\n }", "@Override\n public String toString() {\n return this.getTimestamp().atZone(ZoneId.of(\"Europe/Vienna\")).format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy HH:mm\"))\n + \" \" + this.getFirstName()\n + \" \" + this.getLastName().substring(0,1) + \".\"\n //+ \", \" + this.getTelephoneNo()\n //+ \" (\" + this.getEmail() + \")\"\n ;\n }", "public String toString()\n {\n return String.format(\"%d:%02d:%02d %s %d/%d/%d\", \n ((getHour() == 0 || getHour() == 12) ? 12 : getHour() % 12),\n getMinute(), getSecond(), (getHour() < 12 ? \"AM\" : \"PM\"), \n \tmonth, day, year);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}", "public java.lang.String getDate() {\n return date;\n }", "@Override\n\tpublic String asString(Object object) {\n\t\t// at this point object is a Date\n\n\t\tCalendar calendar = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\t\tcalendar.setTime((Date) object);\n\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tint year = calendar.get(Calendar.YEAR);\n\t\tif (calendar.get(Calendar.ERA) == 0) {\n\t\t\t// https://en.wikipedia.org/wiki/ISO_8601\n\t\t\t// by convention 1 BC is labeled +0000, 2 BC is labeled −0001, ...\n\n\t\t\tif (year > 1) {\n\t\t\t\tbuilder.append('-');\n\t\t\t}\n\t\t\t--year;\n\t\t}\n\n\t\tbuilder.append(String.format(\"%04d\", year));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MONTH) + 1));\n\t\tbuilder.append('-');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.DATE)));\n\t\tbuilder.append('T');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.HOUR_OF_DAY)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.MINUTE)));\n\t\tbuilder.append(':');\n\t\tbuilder.append(String.format(\"%02d\", calendar.get(Calendar.SECOND)));\n\t\tbuilder.append('Z');\n\n\t\treturn builder.toString();\n\t}", "public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }", "public String toString() {\n return this.time != null ? this.time.format(TIME_FORMATTER) : \"\";\n }", "public String toString()\n {\n return toString((Format) null);\n }", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}", "public String toString() {\n\n\t\tStringBuilder buffer = new StringBuilder();\n\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\n\t\tbuffer.append(\"dayNum=[\").append(dayNum).append(\"] \");\n\t\tbuffer.append(\"process=[\").append(process).append(\"] \");\n\t\tbuffer.append(\"createTime=[\").append(createTime).append(\"] \");\n\n\t\treturn buffer.toString();\n\t}", "public String toString() {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\"); //Mostraremos la fecha en formato DD/MM/AAAA\r\n\t\tString nacEdad=sdf.format(fechaNac)+ \"(\"+obtenerAnios()+\" años)\";\r\n\t\treturn \"Persona [nombre=\" + nombre + \", fechaNac=\" + nacEdad + \", DNI=\" + dni\r\n\t\t\t\t+ \", sexo=\" + sexo + \", peso=\" + peso + \", altura=\" + altura\r\n\t\t\t\t+ \"]\";\r\n\t}", "public String toString()\n\t{\n\t\treturn super.toString() + \"\\n\" +\n\t\t\t \"\\t\" + \"Full Time\" + \"\\n\" +\n\t\t\t \"\\t\" + \"Monthly Salary: $\" + Double.toString(monthlyEarning());\n\t}", "public String getDate(){\n\t\t\n\t\treturn this.date;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAutomaticallyAfterDays() != null)\n sb.append(\"AutomaticallyAfterDays: \").append(getAutomaticallyAfterDays()).append(\",\");\n if (getDuration() != null)\n sb.append(\"Duration: \").append(getDuration()).append(\",\");\n if (getScheduleExpression() != null)\n sb.append(\"ScheduleExpression: \").append(getScheduleExpression());\n sb.append(\"}\");\n return sb.toString();\n }", "public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}", "public String marshal( Date value )\n {\n String val = \"\";\n \tif (value != null) {\n \tCalendar cal = new GregorianCalendar();\n \tcal.setTime( value );\n \treturn DatatypeConverter.printDateTime( cal );\n }\n\t\t\n\t\tSystem.out.println(\"Date value: \" + value);\n return val;\n }", "@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }", "public String toString() {\n\t\tStringBuilder result = new StringBuilder();\n\t\tresult.append(\"{\");\n\t\tresult.append(\"dataType=\").append(this.day.getDataType());\n\t\tresult.append(\";\");\n\t\tresult.append(\"dataCountry=\").append(this.day.getDataCountry());\n\t\tresult.append(\";\");\n\t\tresult.append(\"dataLanguage=\").append(this.day.getDataLanguage());\n\t\tresult.append(\";\");\n\t\tresult.append(\"language=\").append(this.day.getLanguageString());\n\t\tresult.append(\";\");\n\t\tresult.append(\"value=\").append(this.day.getValue());\n\t\tresult.append(\";\");\n\t\tresult.append(\"count=0\");\n\t\tresult.append(\"}\");\n\t\treturn result.toString();\t\n\t}", "protected final static String getDateStamp() {\n\n\t\treturn\n\n\t\tnew SimpleDateFormat(\"MMM d, yyyy h:mm:ss a zzz\").format(new Date());\n\n\t}", "@Override\n public String toString(){\n String format = \"%1$-30s %2$-20s %3$-20s %4$-12s %5$-3s %6$-12s\";\n return String.format(format, this.title, this.stream, this.type,\n this.start_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)), \"-\", this.end_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)));}", "public String toString() {\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tb.append(instrument.toString());\r\n\t\tb.append(\" ----- \");\r\n\t\tb.append(period.name());\r\n\t\tb.append(\" ----- \");\r\n\t\tb.append(new Timestamp(timeStart));\r\n\t\treturn b.toString();\r\n\t}", "public String toString() {\r\n return this.date + getTab() + this.closingPrice + \" --> \" + this.futureOpeningPrice;\r\n }", "public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}", "public String toString()\n {\n long dtExpiry = getExpiryMillis();\n\n return super.toString()\n + \", priority=\" + getPriority()\n + \", created=\" + new Time(getCreatedMillis())\n + \", last-use=\" + new Time(getLastTouchMillis())\n + \", expiry=\" + (dtExpiry == 0 ? \"none\" : new Time(dtExpiry) + (isExpired() ? \" (expired)\" : \"\"))\n + \", use-count=\" + getTouchCount()\n + \", units=\" + getUnits();\n }", "public String getFormatedDate() {\n DateFormat displayFormat = new SimpleDateFormat(\"EEEE', ' dd. MMMM yyyy\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public String toString() { return stringify(this, true); }", "@Override\r\n\t\t\t\tpublic String valueToString(Object value) throws ParseException {\n\t\t\t\t\tif(value != null) {\r\n\t\t\t\t\tCalendar cal=(Calendar) value;\r\n\t\t\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\");\r\n\t\t\t\t\tString strDate=format.format(cal.getTime());\r\n\t\t\t\t\treturn strDate;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn \" \";\r\n\t\t\t\t}", "public String toString() {\n return this.calendarName;\n }", "public String toString(){\r\n\t\treturn (month+\", \"+year+\" // \"+location.toString());\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}" ]
[ "0.8388033", "0.80035496", "0.79431295", "0.79324305", "0.7908346", "0.7889749", "0.7880098", "0.78693384", "0.78675956", "0.7862201", "0.7860198", "0.78210884", "0.77243835", "0.7686463", "0.765901", "0.7630894", "0.75951654", "0.7595056", "0.7488506", "0.748703", "0.7475402", "0.7434447", "0.7418886", "0.73927635", "0.73904043", "0.73762244", "0.73668647", "0.7337802", "0.7324001", "0.7323788", "0.7305458", "0.7303097", "0.728573", "0.7276605", "0.7274027", "0.72440577", "0.7235941", "0.72336674", "0.7222836", "0.7202634", "0.7189631", "0.71800125", "0.71676034", "0.71408856", "0.7139641", "0.7117594", "0.71102494", "0.7089651", "0.70817256", "0.70710963", "0.70479476", "0.7045945", "0.70390224", "0.7033047", "0.70228344", "0.7004596", "0.6999031", "0.6991643", "0.6987344", "0.69835055", "0.6979858", "0.697828", "0.696568", "0.6954894", "0.691206", "0.69065565", "0.68988407", "0.6894056", "0.68789876", "0.68765104", "0.6870939", "0.6857691", "0.6854554", "0.68497294", "0.684697", "0.68249303", "0.6816081", "0.6809841", "0.68068945", "0.6799922", "0.6782996", "0.67786765", "0.6751988", "0.67358786", "0.6725618", "0.6723563", "0.67173123", "0.67149776", "0.6712371", "0.6710885", "0.6701172", "0.66976", "0.6689962", "0.66874564", "0.66832554", "0.6680066", "0.6677565", "0.6675517", "0.6668979", "0.6668979" ]
0.76079774
16
Compares this date to the specified date.
@Override public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (other.getClass() != this.getClass()) return false; Date that = (Date) other; return (this.month == that.month) && (this.day == that.day) && (this.year == that.year); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else if (this.month < date.month) {\n return -1;\n } else if (this.month == date.month) {\n if (this.day > date.day) {\n return 1;\n } else if (this.day < date.day) {\n return -1;\n } else if (this.day == date.day) {\n return 0;\n }\n }\n }\n return 0;\n }", "private boolean equalsDate(Date thisDate, Date otherDate) {\n if (otherDate == null) {\n return false;\n }\n SimpleDateFormat dateFormating = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n String thisDateString = dateFormating.format(thisDate);\n String otherDateString = dateFormating.format(otherDate);\n if (!thisDateString.equals(otherDateString)) {\n return false;\n }\n \n return true;\n }", "@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }", "private boolean isEqualDate(DateStruct d1, DateStruct d2)\n {\n boolean isEqual = false;\n if ( d1.year == d2.year && d1.month == d2.month && d1.day == d2.day )\n {\n isEqual = true;\n }\n return isEqual;\n }", "@Override\n public int compareTo(SmartDate o) {\n return this.date.compareTo(o.date);\n }", "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public boolean compareDates (String date1, String date2) {\n if (date1.equals(date2)) {\n return true;\n } else {\n return false;\n }\n }", "@Override\r\n public int compareTo(HISDate date) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n cmpResult = this.compare(date);\r\n } catch (Exception e) {\r\n logger.error(\"compareTo(): Ungültiges Datum: \" + date);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public static void main(String[] args) \r\n {\n\t Date date = new Date();\r\n\t System.out.println(date);\r\n\t \r\n\t //comparision of dates\r\n\t /*\r\n\t Return\r\n 1. It returns the value 0 if the argument Date is equal to this Date. \r\n 2. It returns a value less than 0 if this Date is before the Date argument.\r\n 3. It returns a value greater than 0 if this Date is after the Date argument.\r\n\t */\r\n\t Date d=new Date(2021,05,31);\r\n\t System.out.println(d.equals(date));\r\n Date d1=new Date(2021,5,26); \r\n int comparison=d.compareTo(d1); \r\n System.out.println();\r\n System.out.println(\"Your comparison value is : \"+comparison); \r\n }", "public int compareTo(Date212 other) { //compareTo method\n int result = 00; //intialize int return value.\n Date date1 = new Date(), date2 = new Date(); //initalize\n\nSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n try {\n date1 = sdf.parse(full_Date); //The object calling this method.\n date2 = sdf.parse(other.full_Date); //Other date212 object being passed in.\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n //Try-catch block for parsing & formatting dates.\n \n // System.out.println(\"date1 : \" + sdf.format(date1));\n // System.out.println(\"date2 : \" + sdf.format(date2));\n\n Calendar cal1 = Calendar.getInstance(); \n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(date1);\n cal2.setTime(date2);\n /*\n Use of the Calendar library and methods to compare the dates.\n */\n\n\n //cal1 is the object calling this method\n //cal2 is the object passed in.\n if (cal1.after(cal2)) { \n // System.out.println(\"Date1 is after Date2\");\n result = 1;\n }\n\n if (cal1.before(cal2)) {\n // System.out.println(\"Date1 is before Date2\");\n result = -1;\n }\n\n if (cal1.equals(cal2)) {\n System.out.println(\"Date1 is equal Date2\");\n result = 0;\n }\n return result; //Returns what the if blocks made result to be.\n }", "public static boolean compareDates(Date d1, Date d2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c1.setTime(d1);\n c2.setTime(d2);\n\n if (c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR))\n return false;\n if (c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH))\n return false;\n if (c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH)) {\n return false;\n }\n return true;\n }", "public boolean dateIsEqual(Date date){\n\t\tboolean isEqual=true;\n\t\t\n\t\tif(!(date.getMonth()==month && date.getYear()==year && date.getDay()==day)){\n\t\t\tisEqual=false;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn isEqual;\n\t}", "public boolean equals(MyDate other){\n \t\tif (other.year == year){\n \t\t\tif (other.month == month){\n \t\t\t\tif (other.day == day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n\t\treturn false;\n\t}", "public boolean checkDateEqual(LocalDate date) {\n return date.equals(this.date);\n }", "public boolean isDate(Date date){\r\n if((new Date()).getTime() < date.getTime()) return false;\r\n return true;\r\n }", "@Override\n public int compare(final Availability o1, final Availability o2) {\n DateFormat f = new SimpleDateFormat(\"dd-MM-yyyy\");\n try {\n return f.parse(o1.getDate()).compareTo(f.parse(o2.getDate()));\n } catch (ParseException e) {\n throw new IllegalArgumentException(e);\n }\n }", "@Override\n public int compareTo(Date ARG) {\n if (year < ARG.year)\n {\n \treturn -1;\n }\n else if( year > ARG.year)\n {\n \treturn 1;\n }\n \n else{\n \tif (dayOfMonth < ARG.dayOfMonth)\n \t{\n \t\treturn -1; \n \t\t\n \t}\n \telse if (dayOfMonth > ARG.dayOfMonth)\n \t{\n \t\treturn 1; \n \t}\n \telse\n \t{\n \t\tif (dayOfMonth < ARG.dayOfMonth)\n \t\t{\n \t\t\treturn -1;\n \t\t}\n \t\telse if(dayOfMonth > ARG.dayOfMonth)\n \t\t{\n \t\t\treturn 1;\n \t\t}\n \t\telse\n \t\t{\n \t\t\treturn 0; \n \t\t}\n \t}\n \t\n } \t\n }", "public boolean dateCompareCurr(String[] inputdate){\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate comparedate = null; // 입력받은 날짜\r\n\t\t\r\n\t\ttry {\r\n\t\t\tDate curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜\r\n\t\t\t\r\n\t\t\tfor (int idx = 0; idx < inputdate.length; idx++) {\r\n\t\t\t\t\r\n\t\t\t\tcomparedate = dateFormat.parse(inputdate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif(comparedate.compareTo(curdate) >= 0){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public int compare(Date date){\n if(date.getYear() > this.year){\n return -1;\n }else if(date.getYear() < this.year){\n return 1;\n }\n\n if(date.getMonth() > this.month){\n return -1;\n }else if(date.getMonth() < this.month){\n return 1;\n }\n\n if(date.getDay() > this.day){\n return -1;\n }else if(date.getDay() < this.day){\n return 1;\n }\n\n return 0;\n }", "private boolean checkdates(java.util.Date date,java.util.Date date2)\n\t{\n\t\tif (date==null||date2==null) return true;\n\t\tif (!date.after(date2)&&!date.before(date2))return true;\n\t\treturn date.before(date2);\n\t}", "@Test\n public void compareToWithMainDateInThePast(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.compareTo(new Date(31,Month.december,1970)),-1);\n }", "public boolean checkDate() {\n\t\tboolean cd = checkDate(this.year, this.month, this.day, this.hour);\n\t\treturn cd;\n\t}", "public static boolean equals(Date a, Date b) {\n if (a == null || b == null) return (a == null && b == null);\n if (a == b) return true;\n Calendar cal1 = Calendar.getInstance();\n Calendar cal2 = Calendar.getInstance();\n cal1.setTime(a);\n cal2.setTime(b);\n return cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&\n cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);\n }", "@Test\r\n public void testCompareTo1() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertTrue(d1.compareTo(d2) > 0);\r\n }", "public int compare(Date d){\n\t if (this.year < d.year)\n\t return 1;\n\t else if (this.year > d.year)\n\t return -1;\n\t else{\n\t int cM = this.month.compareMonth(d.month);\n\t if (cM != 0)\n\t\treturn cM;\n\t else{\n\t\tif (this.day < d.day)\n\t\t return 1;\n\t\telse if (this.day > d.day)\n\t\t return -1;\n\t\telse\n\t\t return 0;\n\t }\n\t }\n }", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "@Test\n public void equalsOk(){\n Date date = new Date(1,Month.january,1970);\n assertTrue(date.equals(date));\n }", "public static int compareDates(String date1, String date2) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d1 = HISDate.valueOf(date1);\r\n HISDate d2 = HISDate.valueOf(date2);\r\n cmpResult = d1.compare(d2);\r\n } catch (Exception e) {\r\n logger.error(\"compareDates(): Mindestens einer der zwei Datumswerte ist ungueltig: \" + date1 + \", \" + date2);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "public boolean equals(Object O){\n\t if (!(O instanceof Date))\n\t return false;\n\t Date other = (Date) O;\n\t return this.year == other.year && this.month == other.month && this.day == other.day;\n }", "public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear() > date2.getYear())\n return 1;\n\n return 0;\n\n //Finally sort wins according to the -1, 0, 1 ascending order\n }", "@Override\n public long dateCompare(LocalDate localDate1, LocalDate localDate2) {\n return localDate1.until(localDate2, ChronoUnit.MONTHS);\n }", "public boolean isValidDate() {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(mDate.getDate());\n int yearNow = cal.get(Calendar.YEAR);\n int monthNow = cal.get(Calendar.MONTH);\n int dayNow = cal.get(Calendar.DAY_OF_MONTH);\n cal.setTimeInMillis(selectedDate.getTimeInMillis());\n int yearSelected = cal.get(Calendar.YEAR);\n int monthSelected = cal.get(Calendar.MONTH);\n int daySelected = cal.get(Calendar.DAY_OF_MONTH);\n if (yearSelected <= yearNow) {\n if (monthSelected <= monthNow) {\n return daySelected >= dayNow;\n }\n }\n return true;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "private boolean compararFechaActualCon(String fecha_obtenida) {\n boolean fecha_valida = false;\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\");\n Date date = new Date();\n String fecha_actual = dateFormat.format(date);\n\n try {\n Date date2 = dateFormat.parse(fecha_obtenida);\n Date date1 = dateFormat.parse(fecha_actual);\n\n Log.i(\"COMPARANDO FECHAS\", \"F_ACTUAL: \" + date1 + \", F_OBTENIDA: \" + date2);\n\n if (date2.after(date1) ) {\n fecha_valida = true;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: TRUE\");\n } else {\n fecha_valida = false;\n Log.i(\"COMPARANDO FECHAS\", \"F_VALIDA: FALSE\");\n\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return fecha_valida;\n }", "@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }", "public boolean equals(Object obj)\n {\n if (!(obj instanceof Date))\n {\n return false;\n }\n\n Date other = (Date) obj;\n\n return day == other.day && month == other.month && year == other.year\n && hour == other.hour && minute == other.minute;\n }", "public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }", "public boolean getADateChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n aDate, aDateDataSourceValue);\r\n }", "public int compareTo(Date b) {\r\n\t\tif (year != b.year)\r\n\t\t\treturn year - b.year;\r\n\t\tif (month != b.month)\r\n\t\t\treturn month - b.month;\r\n\t\treturn day - b.day;\r\n\t}", "public boolean dateCompartFromTo(String[] sdate, String[] edate) {\r\n\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tDate startdate = null;\r\n\t\tDate enddate = null;\r\n\t\ttry {\r\n\t\t\t// 시작일 종료일 날짜 비교\r\n\t\t\tfor (int idx = 0; idx < sdate.length; idx++) {\r\n\r\n\t\t\t\tstartdate = dateFormat.parse(sdate[idx]);\r\n\t\t\t\tenddate = dateFormat.parse(edate[idx]);\r\n\t\t\t\t\r\n\t\t\t\tif (startdate.compareTo(enddate) >= 0) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "@Test\n public void equals() {\n assertTrue(DATE_A.equals(DATE_A));\n\n // different object, same values -> returns true.\n assertTrue(DATE_A.equals(new Date(DATE_A.getWeek(), DATE_A.getDay(), DATE_A.getTime())));\n\n // different values -> returns false.\n assertFalse(DATE_A.equals(DATE_AFTER_READING));\n\n // different week -> returns false\n assertFalse(DATE_A.equals(DATE_B));\n }", "public boolean verifyReturnDate(Date date){\n\t\tLocale en = new Locale(\"en\");\n\t\tString rDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn returnDate.getText().equals(rDate);\n\t}", "private boolean compararFechasConDate(String fechaMenor, String fecha2, String fechaComparar) {\n try {\n /**\n * Obtenemos las fechas enviadas en el formato a comparar\n */\n SimpleDateFormat formateador = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date fechaDateMenor = formateador.parse(fechaMenor);\n Date fechaDateMayor = formateador.parse(fecha2);\n Date fechaDateComparar = formateador.parse(fechaComparar);\n if (fechaDateMenor.before(fechaDateComparar) && fechaDateComparar.before(fechaDateMayor)) {\n return true;\n } else {\n return false;\n }\n } catch (ParseException e) {\n System.out.println(\"Se Produjo un Error!!! \" + e.getMessage());\n return false;\n }\n }", "public static boolean compareDates(String date, Integer days) throws ParseException {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n\n // create calendar and get today's date\n Calendar todayDate = Calendar.getInstance();\n todayDate.setTime(new Date());\n\n // add days to today's calendar date\n todayDate.add(Calendar.DATE, days);\n\n // break up the month, day, and year into individual values\n String year = String.valueOf(todayDate.get(Calendar.YEAR));\n String month = String.valueOf(todayDate.get(Calendar.MONTH)+1);\n String day = String.valueOf(todayDate.get(Calendar.DATE));\n\n String compareDate = year + \"/\" + month + \"/\" + day;\n\n Date date1 = sdf.parse(date);\n Date date2 = sdf.parse(compareDate);\n\n if (date1.compareTo(date2) == 0) {\n return true;\n }\n else if (date1.compareTo(date2) < 0) {\n return true;\n }\n else {\n return false;\n }\n\n }", "boolean hasDate();", "public int compareWithDate(AbstractEntity objectCompare){\n\t\tif(this.fechaUltimaModificacion!=null){\n\t\t\tif(objectCompare.fechaUltimaModificacion!=null)\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\t\telse\n\t\t\t\treturn this.fechaUltimaModificacion.compareTo(objectCompare.fechaCreacion);\n\t\t}\n\t\telse if(objectCompare.fechaUltimaModificacion!=null)\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaUltimaModificacion);\n\t\telse\n\t\t\treturn this.fechaCreacion.compareTo(objectCompare.fechaCreacion);\n\t\t\n\t}", "public static int compararData(Date data1, Date data2) {\r\n\r\n\t\tCalendar calendar1;\r\n\t\tCalendar calendar2;\r\n\r\n\t\tint ano1;\r\n\t\tint ano2;\r\n\t\tint mes1;\r\n\t\tint mes2;\r\n\t\tint dia1;\r\n\t\tint dia2;\r\n\r\n\t\tint resultado;\r\n\r\n\t\tcalendar1 = Calendar.getInstance();\r\n\t\tcalendar1.setTime(data1);\r\n\r\n\t\tano1 = calendar1.get(Calendar.YEAR);\r\n\t\tmes1 = calendar1.get(Calendar.MONTH);\r\n\t\tdia1 = calendar1.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tcalendar2 = Calendar.getInstance();\r\n\t\tcalendar2.setTime(data2);\r\n\r\n\t\tano2 = calendar2.get(Calendar.YEAR);\r\n\t\tmes2 = calendar2.get(Calendar.MONTH);\r\n\t\tdia2 = calendar2.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tif (ano1 == ano2) {\r\n\r\n\t\t\tif (mes1 == mes2) {\r\n\r\n\t\t\t\tif (dia1 == dia2) {\r\n\t\t\t\t\tresultado = 0;\r\n\t\t\t\t} else if (dia1 < dia2) {\r\n\t\t\t\t\tresultado = -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresultado = 1;\r\n\t\t\t\t}\r\n\t\t\t} else if (mes1 < mes2) {\r\n\t\t\t\tresultado = -1;\r\n\t\t\t} else {\r\n\t\t\t\tresultado = 1;\r\n\t\t\t}\r\n\t\t} else if (ano1 < ano2) {\r\n\t\t\tresultado = -1;\r\n\t\t} else {\r\n\t\t\tresultado = 1;\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "@Override\r\n public boolean equals(Object o) {\r\n if ((o != null) && (o instanceof HISDate)) {\r\n return compareTo((HISDate) o) == 0;\r\n }\r\n\r\n return false;\r\n }", "private boolean checkDate(PoliceObject po, LocalDate start, LocalDate end) {\n LocalDate formattedEvent = LocalDate.parse(po.getDate());\n boolean isAfter = formattedEvent.isAfter(start) || formattedEvent.isEqual(start);\n boolean isBefore = formattedEvent.isBefore(end) || formattedEvent.isEqual(end);\n return (isAfter && isBefore);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n BirthDate birthDate1 = (BirthDate) o;\n return Objects.equals(date, birthDate1.date);\n }", "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour < date2.hour)\n return true;\n else if (year == date2.year && month == date2.month && day == date2.day\n && hour == date2.hour && minute < date2.minute)\n return true;\n else\n return false;\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof DateCard)) {\n return false;\n }\n\n // state check\n DateCard card = (DateCard) other;\n return id.getText().equals(card.id.getText())\n && date.equals(card.date);\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "public boolean validateDate(String date) {\n\n\t\tDate enteredDate = null;\n\t\ttry {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\tenteredDate = format.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDate currentDate = new Date();\n\t\treturn enteredDate.before(currentDate);\n\t}", "public static boolean isRevdate(java.sql.Date date1,int CUST_ID,int MOVIE_ID) {\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n java.util.Date date11 = null;\n try {\n date11 = formatter1.parse(\"1970-06-06\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n long r_date = date1.getTime();\n irate_Connection om = new irate_Connection();\n om.startConnection(\"user1\", \"password\", dbName);\n conn = om.getConnection();\n s = om.getStatement();\n irate_DQL dql = new irate_DQL(conn, s);\n java.sql.Date date2 = dql.atten(CUST_ID, MOVIE_ID);\n if(date2 == date11)\n return false;\n long a_date = date2.getTime();\n long diffinmill = r_date - a_date;\n long diff = TimeUnit.DAYS.convert(diffinmill,TimeUnit.MILLISECONDS);\n if(diff > 7 || diff <= 0)\n return false;\n else\n return true;\n }", "public boolean equals(Date212 other) { //equals\n return( other != null\n && getClass() == other.getClass()\n && Year ==((Date212) other).Year\n && Day ==((Date212) other).Day\n && Month ==((Date212) other).Month);\n}", "public int checkCD(DateInfo date) {\r\n\t\t\r\n\t\tDateInfo maturityDate = new DateInfo(super.getDate());\r\n\t\tint mature= maturityDate.getMatureLength();\r\n\t\t// CREATES CALENDAR CLASS AND SETS DATE\r\n\t\t// STORED IN date for trasaction\r\n\t\tCalendar trans = Calendar.getInstance();\r\n\t\ttrans.clear();\r\n\t\ttrans.set(Calendar.MONTH, date.getMonth());\r\n\t\ttrans.set(Calendar.YEAR, date.getYear());\r\n\t\ttrans.set(Calendar.DATE, date.getDay());\r\n\r\n\t\t// gets the date of the CD account to compare\r\n\t\tCalendar cD = Calendar.getInstance();\r\n\t\tcD.clear();\r\n\t\tcD.set(Calendar.MONTH, maturityDate.getMonth());\r\n\t\tcD.set(Calendar.YEAR, maturityDate.getYear());\r\n\t\tcD.set(Calendar.DATE, maturityDate.getDay());\r\n\r\n\t\t/*\r\n\t\t * //CREATES A CALENDAR CLASS WITH TODAYS DAY Calendar today =\r\n\t\t * Calendar.getInstance(); today.clear(); today.set(Calendar.YEAR, 2019);\r\n\t\t * today.set(Calendar.MONTH, Calendar.MARCH); today.set(Calendar.DATE, 20);\r\n\t\t */\r\n\t\t// ADDS TO THE MONTH OF CD THE LENGTH OF MATURITY\r\n\t\tcD.add(Calendar.MONTH, +mature);\r\n\r\n\t\t// CHECKS TO SEE IF THE CD AGED TO TODAYS DATE TO PERFORM OPERATIONS\r\n\t\t// if CD matured DATE IS BEFORE today or after RETURN -1\r\n\t\tif (trans.after(cD) || trans.equals(cD)) {\r\n\r\n\t\t\treturn 1;\r\n\t\t\t// else if the mature date is after today RETURN -1\r\n\t\t\t// false\r\n\t\t} else\r\n\t\t\treturn -1;\r\n\t}", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "@Override\n public int compare(Person o1, Person o2) {\n log.info(\"Compare date of birth \" + o1.getDateOfBirth() + \" and \" + o2.getDateOfBirth());\n\n return o1.getDateOfBirth().compareTo(o2.getDateOfBirth());\n }", "@Test\r\n public void testCompareTo3() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"3/1/2013\");\r\n assertTrue(d1.compareTo(d2) == 0);\r\n }", "public boolean equals(Date d) {\r\n if (month == d.getMonth() && day == d.getDay()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "@Override\n public boolean equals(Object o) {\n return o instanceof Date && month == ((Date)o).month && dayOfMonth == ((Date)o).dayOfMonth && year == ((Date)o).year;\n }", "public Boolean comprovaAge(Date date) {\n\t\treturn (rv.validateAge(date));\n\t}", "@Override\r\n public int compareTo(TennisMatch match) {\r\n if(getDateYear() < match.getDateYear()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() < match.getDateMonth()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() == match.getDateMonth()\r\n && getDateDay() < match.getDateDay()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "public static boolean isSameDay(java.util.Date date1, java.util.Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isSameDay(cal1, cal2);\n }", "public boolean validateDate(TradeModel tradeModel)\n {\n int i = tradeModel.getMaturityDate().compareTo(LocalDate.now());\n if (i<0)\n return false;\n else\n return true;\n }", "public boolean verifyLeaveDate(Date date){\t\t\n\t\tLocale en = new Locale(\"en\");\t\t\n\t\tString lDate = String.format(en, \"%1$ta, %1$tb %1$te, %1$tY\", date);\n\t\treturn leaveDate.getText().equals(lDate);\n\t}", "public boolean isBefore(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret < 0;\r\n\t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "public static boolean checkDate(LocalDate birthDate, LocalDate currentDate) {\n if(birthDate.isBefore(currentDate)){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public static final Function<Object,Boolean> eq(final Date object) {\r\n return FnObject.eq(object);\r\n }", "public static boolean areEqualDates(Calendar c1, Calendar c2)\r\n\t{\r\n\t\tif (c1.get(Calendar.MINUTE) != c1.get(Calendar.MINUTE))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (c1.get(Calendar.HOUR) != c1.get(Calendar.HOUR))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (c1.get(Calendar.DAY_OF_YEAR) != c1.get(Calendar.DAY_OF_YEAR))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (c1.get(Calendar.YEAR) != c1.get(Calendar.YEAR))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isDateBetweenSpecifiedDate(Date date, Date from, Date to) {\n return date.compareTo(from) >= 0 && date.compareTo(to) <= 0;\n }", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final Date date) {\r\n\t\treturn anyOf(sameInstant(date), before(date));\r\n\t}", "public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}", "@Factory\r\n\tpublic static Matcher<Date> sameOrBefore(final DayMonthYear date) {\r\n\t\treturn anyOf(sameDay(date), before(date));\r\n\t}", "public static boolean before(Date target, Date date){\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(target);\n\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date);\n\n if(cal1.compareTo(cal2) == -1) return true;\n return false;\n }", "public static boolean comprobarOrdenFechas (Date f1, Date f2){\n if(diferenciaFechas(f1,f2) <= 0){\n System.out.println(\"Fecha final es menor que la fecha inicial\");\n return false;\n }else{\n return true;\n }\n }", "@Factory\n public static OnDateMatcher fallsOn(final Date expected) {\n return new OnDateMatcher(expected);\n }", "public int dateSearch(String o1_date, String o1_time, String o2_date, String o2_time) {\n\n int yearStartUser = Integer.valueOf(o1_date.substring(6));\n int monthStartUser = Integer.valueOf(o1_date.substring(3, 5));\n int dayStartUser = Integer.valueOf(o1_date.substring(0, 2));\n\n int yearEnd = Integer.valueOf(o2_date.substring(6));\n int monthEnd = Integer.valueOf(o2_date.substring(3, 5));\n int dayEnd = Integer.valueOf(o2_date.substring(0, 2));\n\n if (yearEnd > yearStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd > monthStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd > dayStartUser)\n return 1;\n if (yearEnd == yearStartUser && monthEnd == monthStartUser && dayEnd == dayStartUser){\n if (o2_time.compareTo(o1_time)>0)return 1;\n if (o2_time.compareTo(o1_time)==0)return 0;\n\n }\n\n\n\n return -1;\n }", "public boolean isAfter(Date that) {\n return compareTo(that) > 0;\n }", "public boolean validateDate() {\r\n\t\tDate now = new Date();\r\n\t\t// expire date should be in the future\r\n\t\tif (now.compareTo(getExpireDate()) != -1)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "boolean isSetDate();", "public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}", "public static int compareWithToday(String dat) {\r\n int cmpResult = -11111; // ERROR\r\n try {\r\n HISDate d = HISDate.valueOf(dat);\r\n HISDate today = HISDate.getToday();\r\n cmpResult = d.compare(today);\r\n } catch (Exception e) {\r\n logger.error(\"compareWithToday(): Ungültiges Datum: \" + dat);\r\n cmpResult = -11111;\r\n }\r\n return cmpResult;\r\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "boolean isMatch(ZonedDateTime date);", "public static boolean isSameDay(Date date1, Date date2) {\n if (date1 == null || date2 == null) {\n throw new IllegalArgumentException(\"The dates must not be null\");\n }\n Calendar cal1 = Calendar.getInstance();\n cal1.setTime(date1);\n Calendar cal2 = Calendar.getInstance();\n cal2.setTime(date2);\n return isSameDay(cal1, cal2);\n }", "public void testGetDate() {\r\n assertEquals(test1.getDate(), 20200818);\r\n }", "boolean isSetFoundingDate();", "@Test\n\tpublic void differenceBetweenDates() throws Exception {\n\t\tAssert.assertTrue(DateDifferentHelper.differenceBeteweenDates(ACTUAL_DATE));\n\t}", "public static boolean isSameDay(Date date1, Date date2) {\r\n\t\tif (date1 == null || date2 == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"The dates must not be null\");\r\n\t\t}\r\n\t\tCalendar cal1 = Calendar.getInstance();\r\n\t\tcal1.setTime(date1);\r\n\t\tCalendar cal2 = Calendar.getInstance();\r\n\t\tcal2.setTime(date2);\r\n\t\treturn isSameDay(cal1, cal2);\r\n\t}", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "public static boolean dueDateHasPassed(String currentDate, String dueDate){\n if(getYear(currentDate)>getYear(dueDate)){\n return true;\n }\n else if(getYear(currentDate) == getYear(dueDate)){\n if(getMonth(currentDate)>getMonth(dueDate)){\n return true;\n }\n else if(getMonth(currentDate) == getMonth(dueDate)){\n if(getDay(currentDate)>getDay(dueDate)){\n return true;\n }\n }\n }\n return false;\n }", "public boolean isBefore(Date b) {\r\n\t\treturn compareTo(b) < 0;\r\n\t}", "public boolean isEqual(DateTime dt) {\n return Long.parseLong(this.vStamp) == Long.parseLong(dt.getStamp());\r\n }" ]
[ "0.695591", "0.6855627", "0.67202246", "0.67186666", "0.6710937", "0.6599172", "0.65785706", "0.6576868", "0.65461123", "0.6507967", "0.64183515", "0.6400396", "0.632862", "0.6318573", "0.6317847", "0.6317151", "0.6297526", "0.6261882", "0.62614137", "0.62560594", "0.6230884", "0.62067956", "0.6186544", "0.60699445", "0.60682356", "0.6053783", "0.60400677", "0.6002555", "0.5992918", "0.59751683", "0.5961165", "0.5947429", "0.5944467", "0.59068143", "0.58932436", "0.58932436", "0.58782023", "0.58112174", "0.58007616", "0.5793", "0.5786155", "0.57738304", "0.5766612", "0.5759176", "0.5749571", "0.57421374", "0.56548744", "0.56361586", "0.563157", "0.5610466", "0.561013", "0.5609373", "0.56081516", "0.5602313", "0.55950516", "0.5581677", "0.5566771", "0.5565597", "0.5562805", "0.5535496", "0.5529715", "0.5519687", "0.55172205", "0.5515793", "0.5503472", "0.54911137", "0.549088", "0.5470246", "0.5467806", "0.5463332", "0.5460369", "0.546011", "0.54560304", "0.54516447", "0.54510444", "0.5451043", "0.54266185", "0.5422905", "0.5415567", "0.5404216", "0.5398564", "0.5393009", "0.53837466", "0.5367887", "0.5365152", "0.53529", "0.5348051", "0.533257", "0.5327687", "0.5327204", "0.5326255", "0.53157794", "0.53074044", "0.52998936", "0.5295861", "0.5284264", "0.5271971", "0.52636504", "0.5249234", "0.5243468" ]
0.6108421
23
Returns an integer hash code for this date.
@Override public int hashCode() { int hash = 17; hash = 31 * hash + month; hash = 31 * hash + day; hash = 31 * hash + year; return hash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode()\n {\n return ((calendar.get(Calendar.DAY_OF_MONTH) & 0x0000001F) << 0)\n | ((calendar.get(Calendar.MONTH ) & 0x0000000F) << 5)\n | ((calendar.get(Calendar.YEAR ) & 0x007FFFFF) << 9);\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\n\t\tlong hash = year * 32140800;\r\n\t\thash += month * 2678400;\r\n\t\thash += day * 86400;\r\n\t\tif (!dateOnly)\r\n\t\t{\r\n\t\t\thash += hour * 3600;\r\n\t\t\thash += minute * 60;\r\n\t\t\thash += second;\r\n\t\t}\r\n\t\treturn (int) hash;\r\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn year*10000+month*100+day; \n\t}", "public int hashCode() {\n int result;\n result = (this.time != null ? this.time.hashCode() : 0);\n result = 29 * result + (this.value != null ? this.value.hashCode() : 0);\n return result;\n }", "private static int hashCode(int year, int month, int day) {\n return (year * 10000) + (month * 100) + day;\n }", "public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}", "public int hashcode();", "private static int hashCode(int year, int month, int day) {\n return (year * 10000) + (month * 100) + day;\n }", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "@JRubyMethod(name = \"hash\")\n @Override\n public RubyFixnum hash() {\n return getRuntime().newFixnum((int)(((dt.getMillis() / 1000) ^ microseconds()) << 1) >> 1);\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "public int hashCode() {\n int n = 0;\n int n2 = this.userName != null ? this.userName.hashCode() : 0;\n int n3 = this.date != null ? this.date.hashCode() : 0;\n int n4 = this.sys != null ? this.sys.hashCode() : 0;\n int n5 = this.dia != null ? this.dia.hashCode() : 0;\n if (this.pulse != null) {\n n = this.pulse.hashCode();\n }\n return (((n2 * 31 + n3) * 31 + n4) * 31 + n5) * 31 + n;\n }", "@Override\n public int hashCode() {\n return dateTime.hashCode() ^ offset.hashCode() ^ Integer.rotateLeft(zone.hashCode(), 3);\n }", "public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }", "@Override\n public int hashCode() {\n\n return startDate.hashCode();\n // END\n }", "public int hashCode()\n {\n return 37 * 17 + this.EAS_event_ID;\n }", "@Override\n public int hashCode() {\n int result = 17;\n result = 31 * result + (isPM ? 1 : 0);\n result = 31 * result + minute;\n result = 31 * result + hour;\n return result;\n }", "public int hashCode() {\n return HashFunction.hashCode(new int[] { statusUuid.hashCode(), pathUuid.hashCode(), (int) time });\n }", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }", "public int hashCode()\n\t{\n\t\tint result = 17;\n\n\t\tlong tmp;\n\t\tif (_rsHeader != null && !org.castor.core.util.CycleBreaker.startingToCycle(_rsHeader))\n\t\t{\n\t\t\tresult = 37 * result + _rsHeader.hashCode();\n\t\t\torg.castor.core.util.CycleBreaker.releaseCycleHandle(_rsHeader);\n\t\t}\n\n\t\treturn result;\n\t}", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getProjectName());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getDataProvider());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getPrimaryInvestigator());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getCreatedBy());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getCreatedTime());\n return (int)(hash % Integer.MAX_VALUE);\n }", "public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }", "public int hashCode()\n {\n if (this.hashValue == 0)\n {\n int result = 17;\n int wsidValue = this.getWsid() == null ? 0 : this.getWsid().hashCode();\n result = result * 37 + wsidValue;\n this.hashValue = result;\n }\n return this.hashValue;\n }", "public int hashCode() {\n return 37 * 17;\n }", "public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}", "int computeHashCode(byte val);", "@Override\n\t\tpublic int hashCode() {\n\t\t\tSystem.out.println(\"hashCode for \" + roll_no);\n\t\t\treturn roll_no % 10;\n\t\t}", "public int hashCode()\n {\n int result = 17;\n result = 37 * result + this.m_exceptionFrequency;\n result = 37 * result + this.exception_program_number;\n return result;\n }", "public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }", "public int hashCode() {\n int result = 17;\n result = (37 * result)\n + ((nullCheck == null) ? 0 : nullCheck.hashCode());\n\n return result;\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "int getHash();", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public int hashCode() {\n return _ordinal;\n }", "public int hashCode() {\n\t\treturn 14356 + historyIndex * 373 + dimension; \n\t\t// return some arbitrary number related to historyIndex and dimension\n\t}", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}", "public int hashCode() {\n int result = 1;\n Object $pageSize = this.getPageSize();\n result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());\n Object $pageNo = this.getPageNo();\n result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());\n Object $sort = this.getSort();\n result = result * 59 + ($sort == null ? 43 : $sort.hashCode());\n Object $orderByField = this.getOrderByField();\n result = result * 59 + ($orderByField == null ? 43 : $orderByField.hashCode());\n return result;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.seqTime.hashCode();\n\t}", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getProject());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getUser());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getStatus());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getLastActivityDate());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasPiSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasDpSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasAdminSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasRequestorSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getEmailStatus());\n return (int)(hash % Integer.MAX_VALUE);\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tlong temp;\n\t\ttemp = Double.doubleToLongBits(duration);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\ttemp = Double.doubleToLongBits(startingTime);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + tab;\n\t\treturn result;\n\t}", "public String getHashCode();", "@Override\r\n public int hashCode() {\r\n return this.number;\r\n }", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "public int hashCode() {\n\t\treturn this.eid + 25;\n\t}", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "public int hashCode()\n {\n return hash;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "int hashCode();", "int hashCode();", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n i = getIdacquirente();\n result = 37*result + i;\n return result;\n }", "public int getHash() {\n return hash_;\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int getHash() {\n return hash_;\n }", "public int hashCode()\r\n {\r\n int hashCode = 0;\r\n hashCode = 29 * hashCode + (identificador == null ? 0 : identificador.hashCode());\r\n\r\n return hashCode;\r\n }", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "public int getHashCode(){\n return hashCode();\n }", "public abstract int getHash();", "public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "@Override\n public int hashCode()\n {\n // uses roll no to verify the uniqueness\n // of the object of Student class\n final int temp = 14;\n int ans = 1;\n ans = temp * ans + rollno;\n return ans;\n }", "@Override public int hashCode() {\n return _ordinal;\n }", "public int hashCode() {\n/* 370 */ if (this.hashCode == 0) {\n/* 371 */ this.hashCode = 17;\n/* 372 */ this.hashCode = 37 * this.hashCode + getClass().hashCode();\n/* 373 */ this.hashCode = 37 * this.hashCode + (int)(this.min ^ this.min >> 32L);\n/* 374 */ this.hashCode = 37 * this.hashCode + (int)(this.max ^ this.max >> 32L);\n/* */ } \n/* 376 */ return this.hashCode;\n/* */ }", "public String identityHash() {\n return Integer.toHexString(System.identityHashCode(this));\n }", "public int hashCode() {\r\n int result = 17;\r\n if (this.getPhaseid() != null) { result = result + this.getPhaseid().hashCode(); }\r\n if (this.getPhasename() != null) { result = result + this.getPhasename().hashCode(); }\r\n if (this.getPhasenotes() != null) { result = result + this.getPhasenotes().hashCode(); }\r\n if (this.getPhasestyle() != null) { result = result + this.getPhasestyle().hashCode(); }\r\n if (this.getStartdate() != null) { result = result + this.getStartdate().hashCode(); }\r\n if (this.getEnddate() != null) { result = result + this.getEnddate().hashCode(); }\r\n if (this.getPhasecontent() != null) { result = result + this.getPhasecontent().hashCode(); }\r\n return result;\r\n }", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hashCode()\n {\n int i = 0;\n if ( hasHashKey() )\n i ^= getHashKey().hashCode();\n return i;\n }", "@Override\r\n public int hashCode() {\r\n int hash = 7;\r\n hash = 19 * hash + (int) (this.grauDeEquilibrio ^ (this.grauDeEquilibrio >>> 32));\r\n return hash;\r\n }", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n int result = getUser_id().hashCode();\n result = 31 * result + getMin();\n result = 31 * result + getHour();\n result = 31 * result + getDay_of_week().hashCode();\n result = 31 * result + getVolume();\n return result;\n }", "public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}", "public abstract int hashCode();", "int\thashCode();", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\n int result = 17;\n\n if (_address != null) {\n result = 37 * result + _address.hashCode();\n }\n\n return result;\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "public int hashCode() {\n return Objects.hashCode(this);\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((dateTime == null) ? 0 : dateTime.hashCode());\n\t\tresult = prime * result + ((pet == null) ? 0 : pet.hashCode());\n\t\tresult = prime * result + ((vet == null) ? 0 : vet.hashCode());\n\t\treturn result;\n\t}", "public int hashCode() {\n int hash = 0;\n hash = width;\n hash <<= 8;\n hash ^= height;\n hash <<= 8;\n hash ^= numBands;\n hash <<= 8;\n hash ^= dataType;\n hash <<= 8;\n for (int i = 0; i < bandOffsets.length; i++) {\n hash ^= bandOffsets[i];\n hash <<= 8;\n }\n for (int i = 0; i < bankIndices.length; i++) {\n hash ^= bankIndices[i];\n hash <<= 8;\n }\n hash ^= numBands;\n hash <<= 8;\n hash ^= numBanks;\n hash <<= 8;\n hash ^= scanlineStride;\n hash <<= 8;\n hash ^= pixelStride;\n return hash;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "protected int computeHashCode() {\n return flags * 17\n + (var != null ? var.hashCode() : 0)\n + (num != null ? num.hashCode() : 0)\n + (str != null ? str.hashCode() : 0)\n + (object_labels != null ? object_labels.hashCode() : 0)\n + (getters != null ? getters.hashCode() : 0)\n + (setters != null ? setters.hashCode() : 0)\n + (excluded_strings != null ? excluded_strings.hashCode() : 0)\n + (included_strings != null ? included_strings.hashCode() : 0)\n + (functionPartitions != null ? functionPartitions.hashCode() : 0)\n + (functionTypeSignatures != null ? functionTypeSignatures.hashCode() : 0);\n }", "public final int hashCode() {\r\n return _value;\r\n }", "public int getHashCode(int key){\n return key;\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\tint hash = 1;\r\n hash = hash * 17 + (name == null ? 0 : name.hashCode());\r\n hash = hash * 13 + (duration);\r\n return hash;\r\n\t}", "@Override\n public int hashCode() {\n return (int) (Double.doubleToLongBits (toDouble())>>31);\n }", "public final int hashCode()\n {\n return ordinal;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n if (getMasp() == null) {\n i = 0;\n } else {\n i = getMasp().hashCode();\n }\n result = 37*result + i;\n return result;\n }" ]
[ "0.77415735", "0.7596715", "0.75905234", "0.6957452", "0.6941153", "0.6850626", "0.6809692", "0.68070406", "0.6765584", "0.6720317", "0.6718884", "0.667174", "0.6660285", "0.6543623", "0.64256537", "0.6421959", "0.64082307", "0.6351788", "0.6332251", "0.6289685", "0.6288046", "0.62828547", "0.62748724", "0.62647605", "0.6255632", "0.6232886", "0.62275594", "0.62204355", "0.6218537", "0.61869067", "0.61856085", "0.6181194", "0.61762756", "0.61752194", "0.6172931", "0.6172627", "0.61663043", "0.61616486", "0.61304474", "0.6124899", "0.6117649", "0.61145175", "0.6104796", "0.6087592", "0.6085275", "0.6083378", "0.6073854", "0.60574263", "0.60565156", "0.6054811", "0.6053104", "0.6048486", "0.6048486", "0.6048486", "0.6048486", "0.6039584", "0.6039584", "0.6036969", "0.60308933", "0.6026676", "0.60212886", "0.60204464", "0.60201955", "0.60168064", "0.6014514", "0.5998643", "0.5998507", "0.5993729", "0.59935385", "0.5985145", "0.59742916", "0.59696484", "0.59663594", "0.59562314", "0.5948653", "0.59485775", "0.59453714", "0.59435534", "0.59411687", "0.59337556", "0.593369", "0.5932334", "0.5905844", "0.58959115", "0.58897454", "0.5889399", "0.58874786", "0.586824", "0.5865247", "0.58646107", "0.58544695", "0.58517295", "0.5851508", "0.5848014", "0.5836103", "0.58344585", "0.5829537", "0.58229804", "0.5821706", "0.5821076" ]
0.7547658
3
Unit tests the data type.
public static void main(String[] args) { // Date today = new Date(2, 25, 2004); // StdOut.println(today); // for (int i = 0; i < 10; i++) { // today = today.next(); // StdOut.println(today); // } // StdOut.println(today.isAfter(today.next())); // StdOut.println(today.isAfter(today)); // StdOut.println(today.next().isAfter(today)); // Date birthday = new Date(10, 16, 1971); // StdOut.println(birthday); // for (int i = 0; i < 10; i++) { // birthday = birthday.next(); // StdOut.println(birthday); // } Date[] a = readDates(); for (int i = 0; i < a.length; i++) { System.out.println(a[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testParseDataType() {\n IntegerSpec integerSpec = new IntegerSpec();\n dataTypeParser.setDataTypeSpec(integerSpec);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n dataTypeParser = new DataTypeParser(new IntegerSpec(), new RandomGenerator(randomSeed));\n\n IntegerSpec integerSpec1 = new IntegerSpec();\n integerSpec1.setDefaultValue(0);\n dataTypeParser.setDataTypeSpec(integerSpec1);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec1 = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n assertNotNull(parsedIntegerSpec.getRandomSeed());\n assertEquals(parsedIntegerSpec.getRandomSeed(), parsedIntegerSpec1.getRandomSeed());\n }", "@Test\n public void recordTypeTest() {\n // TODO: test recordType\n }", "public static void main(String[] args) {\n\t\tDataTypeTest test = new DataTypeTest();\r\n\t\ttest.i = -1/0; \r\n\t\ttest.i = (int) 3.5f;\r\n\t\ttest.d = 2l;\r\n\t\t//test.s = (short) 10000000000000000000;\r\n\t\ttest.b = (byte) test.s;\r\n\t\ttest.f = test.l;\r\n\t\ttest.c = (char) test.i;\r\n\t\t//test.bool = 1;\r\n\t}", "public void testGetTagType_1_accuracy() {\n instance.setTagType(\"tagtype\");\n assertEquals(\"The type is not set properly.\", \"tagtype\", instance.getTagType());\n }", "@Test\n public void shouldNotParseXXXXXXTYPE() {\n printTest(\"shouldNotParseXXXXXXTYPE()\");\n String typeString = \"XXXXXXTYPE\";\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + typeString, dType);\n }", "public void test_getTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"TypedValue got incorrectly\", 1, instance.getTypedValues().size());\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "@Test\n public void typeTest() {\n // TODO: test type\n }", "int getDataType();", "@Test\n public void shouldParseDATE() {\n printTest(\"shouldParseDATE()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_DATE);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "public void testGetNumericValue1() {\n ValueString vs = new ValueString(\"1000\");\n\n assertEquals(\"1000\", vs.getString());\n assertEquals(1000.0D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(1000, vs.getInteger());\n assertEquals(BigDecimal.valueOf(1000), vs.getBigNumber());\n }", "public void testGetNumericValue2() {\n ValueString vs = new ValueString(\"2.8\");\n\n assertEquals(\"2.8\", vs.getString());\n assertEquals(2.8D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(2.8D, vs.getBigNumber().doubleValue(), 0.1D);\n }", "@Test\n\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "@Test\n public void shouldParseCHAR() {\n printTest(\"shouldParseCHAR()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_CHAR);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (255)\";\n tokens = getTokens(content);\n\n dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 255, dType.getLength());\n }", "@Test\n public void testDiferentDataTypes() throws InterruptedException, RtdException {\n RtdBaseContinuous<BigDecimal> bigDecimalRtd = new RtdBaseContinuous<BigDecimal>();\n bigDecimalRtd.setDuration(500);\n bigDecimalRtd.setData(new BigDecimal(10));\n \n RtdBaseDiscrete<Point> pointRtd = new RtdBaseDiscrete<Point>();\n pointRtd.setData(new Point(5, 6));\n \n RtdBaseDiscrete<EmployeeentityBeanClassTest> employeeRtd = new RtdBaseDiscrete<EmployeeentityBeanClassTest>();\n EmployeeentityBeanClassTest emp = new EmployeeentityBeanClassTest();\n emp.setId(1);\n emp.setName(\"Max\");\n emp.setSalary(1000);\n employeeRtd.setData(emp);\n \n assertTrue(\"Incorrect BigDecimal\", bigDecimalRtd.getData().floatValue()==BigDecimal.valueOf(10).floatValue());\n assertTrue(\"Incorrect Point\", pointRtd.getData().getX() == 5 && pointRtd.getData().getY() == 6);\n assertTrue(\"Incorrect Employee \", employeeRtd.getData().getId() == 1 \n && employeeRtd.getData().getName().equals(\"Max\")\n && employeeRtd.getData().getSalary() == 1000);\n \n }", "public abstract void validate(String value) throws DatatypeException;", "java.lang.String getDataType();", "DataType createDataType();", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(\"foo\"))).oclIsTypeOf(tOclString).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(true))).oclIsTypeOf(tBoolean).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tReal).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tInteger).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p2))).oclIsTypeOf(tCompany).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(false))).oclIsTypeOf(tAny).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0.0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tObject).not().isTrue() ); // differs\n }", "public void test_addTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }", "@Test (expected = DataFormatException.class)\n \tpublic void testDelete_InvalidUserType() throws DataFormatException {\n \t\tSystem.out.println(\"DeleteTest 5: Test if a Delete transaction rejects object construction of invalid usertype field values...\");\n \t\tString line = \"manager ZZ 001000.00\";\n \t\tDelete test = new Delete( line);\n \t}", "public int getDataType();", "public void test_containsTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }", "void setDataType(int type );", "@Test\n\tpublic void testPrintData()\n\t{\n\t\tData d = new Data();\n\t\tassertThat(d.print(), instanceOf(String.class));\n\t}", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "@Test(timeout = 4000)\n public void test58() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n DBCatalog dBCatalog0 = new DBCatalog();\n DBSchema dBSchema0 = new DBSchema(\"G4^{5XtQ94G\", dBCatalog0);\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"getFloat(String)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"String\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }", "public String getDataType() ;", "@Override\n\tpublic boolean isPrimitiveTypeExpected() {\n\t\treturn false;\n\t}", "int getDataTypeValue();", "@Test(timeout = 4000)\n public void test59() throws Throwable {\n System.setCurrentTimeMillis((-27L));\n DBCatalog dBCatalog0 = new DBCatalog();\n DBSchema dBSchema0 = new DBSchema(\" Y*-X>Nz.q@~K^o8Z]v\", dBCatalog0);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\" Y*-X>Nz.q@~K^o8Z]v\", dBSchema0);\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"getObjectImpl(int,Map)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"int\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "@Test\n public void intInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.INT, new TextNode(\"-13\"));\n assertNull(retVal);\n }", "public void test_countTypedValues_accuracy() {\n instance.addTypedValue(typedValue);\n assertEquals(\"The TypedValue is not added properly.\", 1, instance.countTypedValues());\n }", "@Override\n\tpublic int getDataType()\n\t{\n\t\treturn dataType;\n\t}", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "@Test\n public void shouldParseFLOAT() {\n printTest(\"shouldParseFLOAT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_FLOAT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (5)\";\n tokens = getTokens(content);\n dType = parser.parse(tokens);\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 5, dType.getPrecision()); // PRECISION\n\n // ADDED SCALE\n content = typeString + \" (5, 2)\";\n tokens = getTokens(content);\n dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + content, dType);\n\n }", "@Test\n void cannotInferType() {\n }", "public void testInferNumber1a() throws Exception {\n assertType(\"10 \", 0, 2, \"java.lang.Integer\");\n }", "@Test\n public void testIsKindOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_KIND_OF);\n }", "@Test(timeout=300000)\n public void test2() throws Throwable {\n Object[][] objectArray0 = new Object[0][6];\n ControllerLoadViewer controllerLoadViewer0 = new ControllerLoadViewer(objectArray0);\n String[][] stringArray0 = new String[2][6];\n String[] stringArray1 = new String[6];\n stringArray1[0] = \"\";\n stringArray0[0] = stringArray1;\n // Undeclared exception!\n try { \n controllerLoadViewer0.getDataTypes(stringArray0);\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // null\n //\n assertThrownBy(\"java.lang.Integer\", e);\n }\n }", "@Test\n public void testNullTypeName() {\n ColumnType typeBool = new ColumnType(-7, null);\n ColumnType typeBool2 = new ColumnType(-7, null);\n assertEquals(\"Expected bool types are equal\", typeBool, typeBool2);\n }", "void checkColumnType(\n String sql,\n String expected);", "@Test\n public void shouldParseBIT() {\n printTest(\"shouldParseBIT()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_BIT);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n }", "@Test\n public void osTypeTest() {\n // TODO: test osType\n }", "@Test\n\tpublic void testGetType_1()\n\t\tthrows Exception {\n\t\tTreeData fixture = new TreeData((IFile) null, \"\", 1, 1);\n\n\t\tint result = fixture.getType();\n\n\t\t// add additional test code here\n\t\tassertEquals(1, result);\n\t}", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Object[] objectArray0 = SQLUtil.parseColumnTypeAndSize(\"\");\n assertEquals(1, objectArray0.length);\n }", "@Test\n\tpublic void testClassIsValidDataObject() throws Exception {\n\t\tDataObjectTester<LeaderboardRanking> tester = new DataObjectTester<>(LeaderboardRanking.class,\n\t\t\t\tleaderboardRanking);\n\t\ttester.run();\n\t}", "@Test(expected=ClassCastException.class)\n public void testWrongValueOf() {\n assertSame(Configuration.Key.isDoubleToDoubleSupported,\n Configuration.Key.valueOf(\"isDoubleToDoubleSupported\", String.class));\n }", "public abstract boolean isTypeCorrect();", "void checkSameDataType(String datatype, String datatype1)\n {\n DefaultTableModel semanticerror = (DefaultTableModel)tblErrorSemantic.getModel();\n if(datatype.equals(datatype1))\n {\n\n }\n else if(datatype.equals(\"INT\") && datatype1.equals(\"FLOAT\"))\n {\n \n }\n else if(datatype.equals(\"FLOAT\") && datatype1.equals(\"INT\"))\n {\n \n }\n else if(datatype1 == null)\n {\n\n }\n else\n {\n semanticerror.addRow(new Object[] {tblLexeme.getModel().getValueAt(tokenPos-2, 0),\"Incompatible Types: \"+datatype1+\" Cannot be converted to \"+datatype, tblLexeme.getModel().getValueAt(tokenPos-2, 2)}); \n } \n datatype = null;\n }", "public void setDataType(DataType dataType) {\n this.dataType = dataType;\n }", "@Test\n public void testAllScalarTypes() throws Exception {\n runTestAndValidate(TestParquetWriter.allTypesSelection, \"*\", allTypesTable, \"donuts_json\");\n try {\n // read all of the types with the complex reader\n BaseTestQuery.alterSession(PARQUET_NEW_RECORD_READER, true);\n runTestAndValidate(TestParquetWriter.allTypesSelection, \"*\", allTypesTable, \"donuts_json\");\n } finally {\n BaseTestQuery.resetSessionOption(PARQUET_NEW_RECORD_READER);\n }\n }", "@Test\n public void test_cast() {\n \n\n }", "public void setDataType(int atype)\n {\n dtype = atype;\n }", "public void setDataType(String dataType) {\r\n this.dataType = dataType;\r\n }", "static boolean test(Type t0)\r\n {\r\n String s0 = Types.stringFor(t0);\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addTypeVariableName(\"E\");\r\n Type t1 = null;\r\n try\r\n {\r\n t1 = typeParser.parse(s0);\r\n } \r\n catch (ClassNotFoundException e)\r\n {\r\n fail(e.getMessage());\r\n }\r\n \r\n String message = \"\";\r\n message += \"Input \" + s0 + \"\\n\";\r\n message += \"should be \" + t0 + \"\\n\";\r\n message += \"was parsed to \" + t1 + \"\\n\";\r\n \r\n boolean passed = TypesEquivalent.areEquivalent(t0, t1);\r\n if (!passed || DEBUG)\r\n {\r\n PrintStream ps = System.out;\r\n if (!passed)\r\n {\r\n ps = System.err;\r\n }\r\n String detailedMessage = \"\";\r\n detailedMessage += \"Input \" + s0 + \"\\n\";\r\n detailedMessage += \"should be \" + t0 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t0) + \")\" + \"\\n\";\r\n detailedMessage += \"was parsed to \" + t1 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t1) + \")\" + \"\\n\";\r\n ps.print(detailedMessage);\r\n }\r\n assertTrue(message, passed);\r\n return passed;\r\n }", "public void checkColumnType(\n String sql,\n String expected)\n {\n tester.checkColumnType(sql, expected);\n }", "@Test\n public void testGetSetType()\n {\n try\n {\n Square s = new Square();\n\n assertEquals(Square.squareType.REGULAR, s.getType());\n\n s.setType(Square.squareType.DB_WORD);\n assertEquals(Square.squareType.DB_WORD, s.getType());\n\n s.setType(Square.squareType.DB_LETTER);\n assertEquals(Square.squareType.DB_LETTER, s.getType());\n\n s.setType(Square.squareType.STAR);\n assertEquals(Square.squareType.STAR, s.getType());\n\n s.setType(Square.squareType.TR_WORD);\n assertEquals(Square.squareType.TR_WORD, s.getType());\n\n s.setType(Square.squareType.TR_LETTER);\n assertEquals(Square.squareType.TR_LETTER, s.getType());\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n fail(\"No exception should be thrown when setting the type of the object\");\n }\n }", "@Test\n public void floatInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.FLOAT, new TextNode(\"3.14\"));\n assertNull(retVal);\n }", "public void setDataType(String dataType) {\n this.dataType = dataType;\n }", "@Test\n void shouldReturnPrimitiveTypeOnly() {\n assertThat(TypeVisitor.gatherAllTypes(int.class), contains(int.class));\n assertThat(TypeVisitor.gatherAllTypes(double.class), contains(double.class));\n assertThat(TypeVisitor.gatherAllTypes(char.class), contains(char.class));\n }", "@Test\n public void typeTest() {\n assertTrue(red_piece.getType() == Piece.Type.SINGLE);\n red_piece.king();\n assertTrue(red_piece.getType() == Piece.Type.KING);\n assertTrue(white_piece.getType() == Piece.Type.SINGLE);\n }", "@Test\n\tpublic void testInternalTypes() {\n\t\tlogger.info(\"Run testInternalTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// OrderByDirectionOutputType\n\t\tfinal IntrospectionFullType orderByDirectionOutputType = getFullType(introspection,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\t\tAssert.assertEquals(2, orderByDirectionOutputType.getEnumValues().size());\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.ASC.toString(), false);\n\t\tassertEnum(orderByDirectionOutputType, GQLOrderByDirectionEnum.DESC.toString(), false);\n\n\t\t// OrderByInputType\n\t\tfinal IntrospectionFullType orderByInputType = getFullType(introspection, getOrderByInputTypeName());\n\t\tAssert.assertEquals(2, orderByInputType.getInputFields().size());\n\t\tassertInputField(orderByInputType, \"field\", IntrospectionTypeKindEnum.NON_NULL,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(orderByInputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// OrderByOutputType\n\t\tfinal IntrospectionFullType orderByOutputType = getFullType(introspection, getOrderByOutputTypeName());\n\t\tAssert.assertEquals(2, orderByOutputType.getFields().size());\n\t\tassertField(orderByOutputType, \"field\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertField(orderByOutputType, \"direction\", IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tgetOrderByDirectionOutputTypeName());\n\n\t\t// PagingInputType\n\t\tfinal IntrospectionFullType pagingInputType = getFullType(introspection, getPagingInputTypeName());\n\t\tAssert.assertEquals(2, pagingInputType.getInputFields().size());\n\t\tassertInputField(pagingInputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(pagingInputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\n\t\t// PagingOutputType\n\t\tfinal IntrospectionFullType pagingOutputType = getFullType(introspection, getPagingOutputTypeName());\n\t\tAssert.assertEquals(3, pagingOutputType.getFields().size());\n\t\tassertField(pagingOutputType, \"offset\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"limit\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertField(pagingOutputType, \"totalLength\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t}", "@Test\n\tpublic void testGetUserType() {\n\t\tString userType = rmitAnalyticsModel.getUserType();\n\t\tAssert.assertNotNull(userType);\n\t\tAssert.assertEquals(\"unknown\", userType);\n\t}", "@Test\n\tpublic void testQuestionType() {\n\t\tquestions.setAuditType(\"Internal\");\n\t\tassertEquals(\"Internal\",questions.getAuditType());\n\t}", "@Test\n public void test_column_type_detection_datetimes_02() throws SQLException {\n testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"2013-04-08\", XSDDatatype.XSDdate), true, Types.DATE, Date.class.getCanonicalName());\n }", "@Test\n\tpublic void ach_doc_type_xml_test () {\n\t\tAssert.assertEquals(achHeaderData.size(), ACH_DOC_TYPE.match(xmlData));\n\t}", "@Test\r\n public void testGetType() {\r\n System.out.println(\"getType\");\r\n Table instance = new Table(\"S\",2);\r\n String expResult = \"S\";\r\n String result = instance.getType();\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n public void testMarshal() throws Exception {\n TypeXMLAdapter adapter = new TypeXMLAdapter();\n Assert.assertEquals(currentType.toString(), adapter.marshal(currentType));\n }", "protected String getDataType()\n {\n return dataType;\n }", "@Test\n\tpublic void testDataTypeReplaced() throws Exception {\n\t\t// Replacing a data type triggers the disposal of the editor.\n\t\t//\n\t\tEnum enummDt = createRedGreenBlueEnum();\n\t\tedit(enummDt);\n\n\t\tEnum newEnummDt = createReplacementEnum(enummDt);\n\n\t\treplaceDataType(enummDt, newEnummDt);\n\n\t\tclose(waitForInfoDialog());\n\t}", "DatatypesType createDatatypesType();", "@Test\n\tpublic void testGetBadHealingItemMessage() {\n\t\tString testString = new String();\n\t\tassertEquals(testString.getClass(), testHospital.getBadHealingItemMessage().getClass());\n\t}", "@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }", "public static interface DataTypeWithRatioScale<T> {\r\n \r\n /**\r\n * Add\r\n *\r\n * @param augend\r\n * @param addend\r\n * @return\r\n */\r\n public abstract T add(T augend, T addend);\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param s1\r\n * @param s2\r\n * @return\r\n * @throws NumberFormatException\r\n * @throws ParseException\r\n */\r\n public abstract int compare(String s1, String s2) throws NumberFormatException,\r\n ParseException;\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param t1\r\n * @param t2\r\n * @return\r\n */\r\n public abstract int compare(T t1, T t2);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract String divide(String dividend, String divisor);\r\n \r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract T divide(T dividend, T divisor);\r\n \r\n /**\r\n * Format\r\n *\r\n * @param t\r\n * @return\r\n */\r\n public abstract String format(T t);\r\n\r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T fromDouble(Double d);\r\n\r\n /**\r\n * Description\r\n *\r\n * @return\r\n */\r\n public abstract DataTypeDescription<T> getDescription();\r\n\r\n /**\r\n * Maximum\r\n *\r\n * @return\r\n */\r\n public T getMaximum();\r\n \r\n /**\r\n * Minimum\r\n *\r\n * @return\r\n */\r\n public T getMinimum();\r\n\r\n /**\r\n * Valid\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract boolean isValid(String s);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract String multiply(String multiplicand,\r\n String multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, double multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, int multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, T multiplicator);\r\n \r\n /**\r\n * Parse\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T parse(String s);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract double ratio(T dividend, T divisor);\r\n \r\n /**\r\n * Subtract\r\n *\r\n * @param minuend\r\n * @param subtrahend\r\n * @return\r\n */\r\n public abstract T subtract(T minuend, T subtrahend);\r\n \r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract Double toDouble(T t);\r\n }", "public String getDataType() {\r\n return dataType;\r\n }", "private static Object parseData(String source, Class<?> expectedType){\n\t\tif(expectedType.equals(Integer.class)) return new Integer(source);\n\t\tif(expectedType.equals(Boolean.class)) return new Boolean(source);\n\t\tif(expectedType.equals(Double.class)) return new Double(source);\n\t\treturn source;\n\t}", "@Test\n public void testGetType() {\n System.out.println(\"getType\");\n\n String expResult = \"Comum\";\n String result = instance.getType();\n\n assertEquals(expResult, result);\n }", "@Test\n public void testSaveWrongDataType() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"JPYUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), \"NaN\");\n final ToolContext toolContext = StarlingTestUtils.getToolContext(\"/inmemory/marketdata-test.properties\");\n final LocalDate today = LocalDate.now();\n final MarketDataManager marketDataManager = new MarketDataManager(toolContext);\n // saves the data\n marketDataManager.saveOrUpdate(dataSet, today);\n final HistoricalTimeSeriesSource source = toolContext.getHistoricalTimeSeriesSource();\n assertNull(source.getHistoricalTimeSeries(ExternalId.of(TEST_SCHEME, \"JPYUSD\").toBundle(), \n DataSource.DEFAULT.getName(), DataProvider.DEFAULT.getName(), MARKET_VALUE));\n }", "private void validate(Adouble val) {\r\n Assertions.assertEquals(val.aonType(), Atype.DOUBLE);\r\n Assertions.assertEquals(val, val);\r\n Assertions.assertEquals(val, Adouble.valueOf(val.toDouble()));\r\n Assertions.assertEquals(val.hashCode(), Adouble.valueOf(val.toDouble()).hashCode());\r\n Assertions.assertTrue(val.isNumber());\r\n }", "public int getDataType()\n {\n return dtype;\n }", "@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}", "@Test\n public void testRequireAtomString_GenericType_1() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual);\n assertEquals(expected, actual);\n }", "private void validateData() {\n }", "@SuppressWarnings(\"deprecation\")\n\t@Test\n public void test_TCM__Attribute_setAttributeType_int() {\n final Attribute attribute = new Attribute(\"test\", \"value\");\n\n for(int attributeType = -10; attributeType < 15; attributeType++) {\n if (\n Attribute.UNDECLARED_TYPE.ordinal() <= attributeType &&\n attributeType <= Attribute.ENUMERATED_TYPE.ordinal()\n ) {\n \tattribute.setAttributeType(attributeType);\n \tassertTrue(attribute.getAttributeType().ordinal() == attributeType);\n continue;\n }\n try {\n attribute.setAttributeType(attributeType);\n fail(\"set unvalid attribute type: \"+ attributeType);\n }\n catch(final IllegalDataException ignore) {\n // is expected\n }\n catch(final Exception exception) {\n \texception.printStackTrace();\n fail(\"unknown exception throws: \"+ exception);\n }\n }\n }", "DatatypeType createDatatypeType();", "@Test\r\n public void test() {\r\n Random random = new Random(System.currentTimeMillis());\r\n Adouble val = Adouble.valueOf(10);\r\n validate(val);\r\n validateEqual(val, Adouble.valueOf(val.toDouble()));\r\n Adouble val2 = Adouble.valueOf(random.nextDouble());\r\n validate(val2);\r\n validateEqual(val2, Adouble.valueOf(val2.toDouble()));\r\n validateUnequal(val, val2);\r\n Alist list = new Alist().add(val);\r\n byte[] bytes = Aon.aonBytes(list);\r\n list = Aon.readAon(bytes).toList();\r\n validate(list.get(0));\r\n validateEqual(list.get(0), val);\r\n validateUnequal(list.get(0), val2);\r\n }", "@Test\n public void testSetValue()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(5L);\n assertThat(m_SUT.getValue(), is((Object)5L));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(25);\n assertThat(m_SUT.getValue(), is((Object)25));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue((short)10);\n assertThat(m_SUT.getValue(), is((Object)(short)10));\n\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue((byte)120);\n assertThat(m_SUT.getValue(), is((Object)(byte)120));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(1.22);\n assertThat(m_SUT.getValue(), is((Object)1.22));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(12.5f);\n assertThat(m_SUT.getValue(), is((Object)12.5f));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue(true);\n assertThat(m_SUT.getValue(), is((Object)true));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n m_SUT.setValue('A');\n assertThat(m_SUT.getValue(), is((Object)'A'));\n \n //test invalid types\n m_SUT.setValue(null);\n assertThat(m_SUT.getValue(), is((Object)m_DefaultValues));\n m_SUT.setValue(\"\");\n assertThat(m_SUT.getValue(), is((Object)\"\"));\n }", "@Test\n\tpublic void testTypeExtension() {\n\t}", "@Override\n\tpublic void setDataType(Class<?> dataType) {\n\t\t\n\t}", "public String getDataType() {\n return dataType;\n }", "@Test\n public void comeTypeTest() {\n // TODO: test comeType\n }", "protected void runTest() throws OgnlException\n {\n Object result;\n\n result = OgnlOps.convertValue(value, toClass);\n if (!isEqual(result, expectedValue)) {\n if (scale >= 0) {\n double scalingFactor = Math.pow(10, scale),\n v1 = ((Number) value).doubleValue() * scalingFactor,\n v2 = ((Number) expectedValue).doubleValue() * scalingFactor;\n\n assertTrue((int) v1 == (int) v2);\n } else {\n fail();\n }\n }\n }", "@Test\n\tpublic void testData() {\n\t\tassertEquals(\"Ciao mamma\", myReply.getData());\n\t}", "@Test\n public void testUnmarshal() throws Exception {\n TypeXMLAdapter adapter = new TypeXMLAdapter();\n Assert.assertEquals(currentType, adapter.unmarshal(currentType.toString()));\n }", "public void checkMetadataTypeValues() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n if ( !dtype.hasRole(DashDataType.Role.FILE_METADATA) )\n continue;\n\n if ( dtype instanceof StringDashDataType ) {\n String singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n String thisVal = (String) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differeing given values '\" +\n singleVal + \"' and \" + thisVal + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n Integer singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Integer thisVal = (Integer) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differing given values '\" +\n singleVal.toString() + \"' and '\" + thisVal.toString() + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n Double singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Double thisVal = (Double) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n if ( Math.abs(singleVal - thisVal) < 1.0E-6 )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(String.format(\"%s has differing given values '%g' and '%g'\",\n dtype.getDisplayName(), singleVal, thisVal));\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in metadata column checking: \" + dtype);\n }\n }\n }", "@Test\n public void testValidDataRtd() throws InterruptedException {\n // validate data renge of cpuWorkLoad\n System.out.println(\"**********************************\");\n System.out.println(\"validate data renge of cpuWorkLoad\");\n System.out.println(\"**********************************\");\n cpuWorkLoad.setMinValid(new Float(0));\n cpuWorkLoad.setMaxValid(new Float(100));\n try {\n System.out.print(\"cpuWorkLoad=100.0001;\");\n cpuWorkLoad.setData(new Float(100.0001));\n fail(\"Data not in valid range\");\n } catch (NotValidRtdData ex) {\n System.out.println(\"Not valid data for cpuWorkLoad<Float> type\");\n assertNotNull(\"Exception exit for not valid data for cpuWorkLoad<Float> type\", ex);\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n try {\n System.out.print(\"cpuWorkLoad=-0.0001;\");\n cpuWorkLoad.setData(new Float(-0.0001));\n fail(\"Data not in valid range\");\n } catch (NotValidRtdData ex) {\n System.out.println(\"Not valid data for cpuWorkLoad<Float> type\");\n assertNotNull(\"Exception exit for not valid data for cpuWorkLoad<Float> type\", ex);\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n try {\n cpuWorkLoad.setData(new Float(70));\n System.out.print(\"cpuWorkLoad=\"+cpuWorkLoad.getData()+\";\");\n assertNotNull(\"Pass set valid data range for float\", cpuWorkLoad);\n System.out.println(\"Valid data for cpuWorkLoad<Float> type\");\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n \n // validate maxDataError nor change but valid time\n System.out.println(\"*******************************\");\n System.out.println(\"*** Test maxDataError ***\");\n System.out.println(\"*** set minimum change to 5 ***\");\n System.out.println(\"*******************************\");\n\n// try {\n// cpuWorkLoad.setData(new Float(30));\n// assertTrue(new Float(30).equals(cpuWorkLoad.getData()));\n// } catch (RtdException ex) {\n// fail(ex.getMessage());\n// }\n \n\n cpuWorkLoad.setMaxDataError(new Float(5.0));\n try {\n // set current time\n cpuWorkLoad.setData(new Float(35));\n System.out.print(\"set=35;\");\n System.out.print(\"cpuWorkLoad=\" + cpuWorkLoad.getData()+\";\");\n assertTrue(new Float(35).equals(cpuWorkLoad.getData()));\n System.out.print(\"now=\" + System.currentTimeMillis()+\";\");\n System.out.print(\"VILB=\" + cpuWorkLoad.getValidityIntervalLowerBound()+\";\");\n System.out.println(\"VIUB=\" + cpuWorkLoad.getValidityIntervalUpperBound());\n assertTrue(System.currentTimeMillis() <= cpuWorkLoad.getValidityIntervalUpperBound());\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n\n try {\n // set current time\n cpuWorkLoad.setData(new Float(39.99999));\n System.out.print(\"set=39.99999;\");\n System.out.print(\"cpuWorkLoad=\" + cpuWorkLoad.getData()+\";\");\n assertTrue(new Float(35).equals(cpuWorkLoad.getData()));\n System.out.print(\"now=\" + System.currentTimeMillis()+\";\");\n System.out.print(\"VILB=\" + cpuWorkLoad.getValidityIntervalLowerBound()+\";\");\n System.out.println(\"VIUB=\" + cpuWorkLoad.getValidityIntervalUpperBound());\n assertTrue(System.currentTimeMillis() <= cpuWorkLoad.getValidityIntervalUpperBound());\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n\n try {\n // set current time\n cpuWorkLoad.setData(new Float(45));\n System.out.print(\"set=45;\");\n System.out.print(\"cpuWorkLoad=\" + cpuWorkLoad.getData()+\";\");\n assertTrue(new Float(45).equals(cpuWorkLoad.getData()));\n System.out.print(\"now=\" + System.currentTimeMillis()+\";\");\n System.out.print(\"VILB=\" + cpuWorkLoad.getValidityIntervalLowerBound()+\";\");\n System.out.println(\"VIUB=\" + cpuWorkLoad.getValidityIntervalUpperBound());\n assertTrue(System.currentTimeMillis() <= cpuWorkLoad.getValidityIntervalUpperBound());\n System.out.println(\"----------------------------------------\");\n } catch (RtdException ex) {\n fail(ex.getMessage());\n }\n System.out.println(\"----------------------------------------\");\n }" ]
[ "0.6927294", "0.66272527", "0.64954555", "0.6488569", "0.6411557", "0.6408495", "0.63720405", "0.63720405", "0.63720405", "0.63505167", "0.6330065", "0.6303229", "0.6270854", "0.6269861", "0.6248617", "0.62318623", "0.6218737", "0.6181123", "0.6180813", "0.61780185", "0.61600167", "0.6159661", "0.61512226", "0.61436087", "0.61366624", "0.61016625", "0.609625", "0.6085977", "0.6071603", "0.6068605", "0.6062039", "0.60341597", "0.6031237", "0.6026508", "0.60058415", "0.6005298", "0.59972584", "0.59944683", "0.5981812", "0.59801173", "0.5978138", "0.5977232", "0.5975018", "0.5968847", "0.5965706", "0.5961339", "0.59491825", "0.5946188", "0.59456384", "0.59420973", "0.5934254", "0.5931131", "0.5928687", "0.5922003", "0.5916785", "0.5907604", "0.5905633", "0.5893566", "0.58799183", "0.58795154", "0.5872028", "0.5863469", "0.58580655", "0.5857875", "0.5857607", "0.58567476", "0.58556056", "0.5852279", "0.5843353", "0.58270144", "0.58270067", "0.5821267", "0.5820113", "0.5816498", "0.5815275", "0.58101624", "0.5791868", "0.57904273", "0.5790068", "0.57862407", "0.578622", "0.5778925", "0.5777875", "0.5767708", "0.57655084", "0.57623124", "0.57620454", "0.5760476", "0.5755864", "0.5742894", "0.57392335", "0.5731513", "0.5731253", "0.5731115", "0.5729445", "0.5721886", "0.5718769", "0.57178116", "0.57174045", "0.57031536", "0.56991994" ]
0.0
-1
skip whitespace chars, for which token has already been emitted
private void resetToHtmlInitial() { int i = 0; for (i = 0; i < zzEndRead; i++) { if (!Character.isWhitespace(zzBuffer.charAt(i))) break; } reset(zzBuffer, i, zzEndRead, HTML_INITIAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void skipWhiteSpace() throws ScanErrorException\n {\n while (isWhiteSpace(currentChar))\n eat(currentChar);\n }", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t\tint pos = findFirstNotWhitespace(line.toCharArray());\n\t\t\n\t\t//read line until next token found\n\t\twhile (pos == -1 && s.hasNextLine())\n\t\t{\n\t\t\t//read next line\n\t\t\tline = s.nextLine();\n\t\t\t//check for start of token\n\t\t\tpos = findFirstNotWhitespace(line.toCharArray());\n\t\t}\n\t\t\n\t\t//no token found till eof\n\t\tif (pos == -1)\n\t\t{\n\t\t\t//set EOF tag\n\t\t\tline = null;\n\t\t}\n\t\t//reset token values\n\t\ttoken = null;\n\t\ttType = null;\n\t}", "private void skipWhitespace() {\n while (currentPos < endPos && filterString.charAt(currentPos) == ' ') {\n currentPos++;\n }\n }", "public void skipWhitespace() {\n while (this.index < this.input.length() && Character.isWhitespace(this.input.charAt(this.index)))\n this.index++;\n }", "protected void skipWhitespace(CharArrayBuffer buffer, ParserCursor cursor) {\n/* 453 */ int pos = cursor.getPos();\n/* 454 */ int indexTo = cursor.getUpperBound();\n/* 455 */ while (pos < indexTo && HTTP.isWhitespace(buffer.charAt(pos)))\n/* */ {\n/* 457 */ pos++;\n/* */ }\n/* 459 */ cursor.updatePos(pos);\n/* */ }", "private void skipWhitespaces() {\n\t\twhile (currentIndex < data.length) {\n\t\t\tchar ch = data[currentIndex];\n\t\t\tif (Character.isWhitespace(ch)) {\n\t\t\t\t++currentIndex;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "private void skipSpaces() {\r\n\t\twhile (currentIndex < expression.length && (expression[currentIndex] == ' ' || expression[currentIndex] == '\\t'\r\n\t\t\t\t|| expression[currentIndex] == '\\n' || expression[currentIndex] == '\\r')) {\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\t}", "private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}", "private void skipWhitespaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tif (isWhitespace(data[currentIndex])) {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\t\n\t\t}\n\t}", "public void skipWhitespace() throws IOException {\n\t\twhile (CharacterIterator.DONE != current()\n\t\t\t\t&& Character.isWhitespace(current())) {\n\t\t\tnext();\n\t\t}\n\t}", "private void space() {\n if (wereTokens && !spaceSuppressed) {\n out.print(' ');\n }\n }", "private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }", "private void skipBlankSpaces() {\n\t\twhile(currentIndex < data.length) {\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c == ' ' || c == '\\t' || c =='\\n' || c == '\\r') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private int skipWhitespace() {\n int prev = '\\n';\n while (position < length) {\n int c = data.charAt(position);\n switch (c) {\n case '\\t': case ' ':\n prev = c;\n position++;\n break;\n case '\\n':\n // handle \\r\\n\n if (prev != '\\r') {\n lineNumber++;\n }\n prev = c;\n position++;\n break;\n case '\\r':\n prev = c;\n position++;\n lineNumber++;\n break;\n default:\n return prev;\n }\n }\n return prev;\n }", "char skipSpaces () {\n char c = getChar ();\n while (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r') {\n if (c == '\\n') { m_nbLines++; }\n c = getNextChar ();\n }\n return c;\n }", "private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }", "@Override\n protected void reportUnwantedToken(Parser recognizer) {\n super.reportUnwantedToken(recognizer);\n System.exit(SYNTAX_ERROR_CODE);\n }", "final void advanceToNextTokenSilently()\n {\n try\n {\n getTokenizer().nextToken();\n }\n catch( Exception e )\n {\n // ignore\n }\n }", "@Override\n public void ignorableWhitespace(\n char[] chars, int start, int length\n ) throws SAXException {\n // ...\n }", "private static void setTokenizerNoWhitespace(StreamTokenizer st) {\n\t\tst.resetSyntax();\n\t\tst.whitespaceChars(0, 32);\n\t}", "public void ignorableWhitespace(char[] ch, int start, int length) { }", "@Test\n public void testWhitespace() throws TokenizerException {\n assertTokenizes(\" \", new Token[0]);\n }", "private Token nextTokenWithWhites() throws IOException {\n\t\tString lexemaActual = \"\";\n\t\t// Si hay lexemas en el buffer, leemos de ahi\n\t\tif (!bufferLocal.esVacia()) {\n\t\t\treturn bufferLocal.extraer();\n\t\t} else {\n\t\t\t// Si no, leemos del Stream\t\t\t\t\t\n\t\t\tint lexema = tokens.nextToken();\n\t\t\tswitch (lexema) {\n\t\t\t\tcase StreamTokenizer.TT_WORD: \n\t\t\t\t\tlexemaActual = tokens.sval; \n\t\t\t\t\tbreak;\n\t\t\t\tcase StreamTokenizer.TT_EOF:\n\t\t\t\t\tlexemaActual = \"fin\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlexemaActual = String.valueOf((char)tokens.ttype);\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t\t// Sumamos una linea en caso de haber salto de linea\n\t\t\tif (lexemaActual.equals(\"\\n\")) \n\t\t\t\tnumeroLinea++;\t\t\t\n\t\t}\n\t\treturn new Token(lexemaActual,this.numeroLinea);\n\t}", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.consume(2033);\n Token token0 = xPathLexer0.whitespace();\n assertEquals((-2), token0.getTokenType());\n assertEquals(\"\", token0.getTokenText());\n }", "@Override\r\n public void ignorableWhitespace(char[] ch, int start, int length)\r\n throws SAXException {\n }", "private boolean skipSpaceChars() {\r\n \t\tint ch;\r\n \t\twhile ((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isSpaceChar(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\tbreak;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn true;\r\n \t}", "@Override\n\t\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\t\tthrows SAXException {\n\t\t\t\n\t\t}", "private static void\n eatWhite(ParseState state)\n {\n while(state.pos < state.data.length() && state.data.charAt(state.pos) == ' ')\n {\n ++state.pos;\n }\n }", "protected char skipTo(char... delims) throws java.io.IOException {\n char c = currentChar;\n while (true) {\n if (c == '\\n' || c == '\\r') throw error();\n for (char delim : delims) {\n if (c == delim) return delim;\n }\n c = next();\n }\n }", "Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }", "private Token source_skipline(boolean white)\r\n throws IOException,\r\n LexerException {\r\n // (new Exception(\"skipping line\")).printStackTrace(System.out);\r\n Source s = getSource();\r\n Token tok = s.skipline(white);\r\n /* XXX Refactor with source_token() */\r\n if (tok.getType() == EOF && s.isAutopop()) {\r\n // System.out.println(\"Autopop \" + s);\r\n Token mark = pop_source(true);\r\n if (mark != null)\r\n return mark;\r\n }\r\n return tok;\r\n }", "public WhitespaceTokenizer(Reader r)\n/* */ {\n/* 88 */ this(r, false);\n/* */ }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "@Override\n\tpublic Token nextToken(PushbackReader r, int aWhitespaceChar, Tokenizer t)\n\t\tthrows IOException\n\t{\n\n\t\tint c;\n\t\tdo\n\t\t{\n\t\t\tc = r.read();\n\t\t}\n\t\twhile (c >= 0 && c < whitespaceChar.length && whitespaceChar[c]);\n\n\t\tif (c >= 0)\n\t\t{\n\t\t\tr.unread(c);\n\t\t}\n\t\t// return t.nextToken();\n\t\treturn Token.NULL;\n\t}", "@Override\n\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\t\n\t}", "@Override\n\tpublic void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\tthrows SAXException {\n\t\t\n\t}", "private int readSkipWs() throws IOException {\n for (;;) {\n int c = _in.read();\n if (c == -1 || c > ' ') {\n return c;\n }\n }\n }", "public boolean skipWhitespace()\r\n {\r\n String str = feed.findWithinHorizon( WHITESPACE_PATTERN, 0 );\r\n \r\n if( str == null )\r\n return false;\r\n else\r\n return true;\r\n }", "private boolean makeSpaceBefore(boolean addSpace){\n int index = ts.index();\n try {\n while(true) {\n if (!ts.movePrevious()){\n return false;\n }\n if (ts.token().id() == NEW_LINE){\n DiffResult diff = diffs.getDiffs(ts, 0);\n if (diff == null || diff.replace == null || diff.replace.hasNewLine()){\n return false;\n }\n } else if (ts.token().id() == PREPROCESSOR_DIRECTIVE){\n return false;\n } else if (ts.token().id() != WHITESPACE){\n replaceSegment(addSpace, index);\n return true;\n }\n }\n } finally {\n ts.moveIndex(index);\n ts.moveNext();\n }\n }", "public WhitespaceTokenizer(Reader r, boolean eolIsSignificant)\n/* */ {\n/* 98 */ this.eolIsSignificant = eolIsSignificant;\n/* */ \n/* */ \n/* */ \n/* 102 */ if (r != null) {\n/* 103 */ this.lexer = new WhitespaceLexer(r);\n/* */ }\n/* */ }", "@Override\n\tprotected void handleSpace() {\n\t\tif (isInClearText()) {\n\t\t\tsaveToken();\n\t\t}\n\t}", "static void trimWhitespace() {\n for (int i = a.size() - 1; i >= 0; i-- ) {\n Object o = a.get(i);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && (sb.charAt(sb.length() - 1) == '\\u005cr'\n || sb.charAt(sb.length() - 1) == '\\u005cn'\n || sb.charAt(sb.length() - 1) == '\\u005ct'\n || sb.charAt(sb.length() - 1) == ' ')) {\n sb.deleteCharAt(sb.length() - 1);\n }\n if (sb.length() == 0) {\n a.remove(i);\n }\n else {\n a.set(i, sb.toString());\n break;\n }\n }\n if (a.size() == 0) {\n while(outputBuffer.length() > 0 && (outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn'\n || outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005ct'\n || outputBuffer.charAt(outputBuffer.length() - 1) == ' ')) {\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }\n }\n }", "@Test\n public void noSpacesBetweenKeywordsTest() {\n tester.yields(\"LaLaLaLaLaaaLi\", lala.EXPRESSION);\n }", "private void skipWhiteSpace()\n throws Exception\n {\n char currentChar = currentChar();\n char next;\n boolean foundAsterisk = false; // flag to detect closing */ in comments\n \n while (Character.isWhitespace(currentChar) || (currentChar == '/')) \n { // Start of a comment?\n if (currentChar == '/')\n {\n next = source.peekChar();\n \n // Consume comments with '//'\n if (next == '/')\n {\n do currentChar = nextChar();\n while (currentChar != EOL && currentChar != EOF);\n \n if (currentChar == EOL)\n currentChar = nextChar();\n }\n // Consume comments with '/* */'\n else if (next == '*')\n {\n currentChar = nextChar(); // Consume '/'\n do \n { \n currentChar = nextChar();\n if (foundAsterisk && currentChar == '/')\n break;\n else \n foundAsterisk = currentChar == '*';\n } while (currentChar != EOF);\n \n if (currentChar == '/')\n currentChar = nextChar();\n }\n else\n break;\n }\n // Not a comment.\n else {\n currentChar = nextChar(); // consume whitespace character\n }\n }\n }", "public String skipToken() {\n return this.skipToken;\n }", "public static ParseAction<Located<Void>> matchWhitespace(){\n\t\treturn matchPattern(WHITESPACE).map(res -> new Located<>(res.getLocation(), null));\n\t}", "private void skipBadChar() throws IOException {\n while (!isValid()) {\n if (c == -1 || isSpace() || shouldStop()) {\n return;\n }\n c = r.read();\n }\n }", "private void skipEmptyLines() throws IOException {\n for (;;) {\n if (nextChar != ';') {\n do {\n readNextChar();\n } while (isWhitespace(nextChar));\n if (nextChar != ';') return;\n }\n do {\n readNextChar();\n if (nextChar == -1) return;\n } while (nextChar != '\\n');\n }\n }", "public void ignorableWhitespace (char ch[], int start, int length)\n throws SAXException\n {\n // no op\n }", "protected void scanNoSkip() throws TableFunctionMalformedException {\r\n\t\t\t\r\n\t\tint kw;\r\n\t\t\r\n\t\tgetName();\r\n\t\t\r\n\t\tkw = lookup(value);\r\n\t\tif (kw == -1)\r\n\t\t\ttoken = 'x';\r\n\t\telse\r\n\t\t\ttoken = kwcode[kw];\r\n\t\t// Debug.println(\"\\n!!!Value = \" + value);\r\n\t}", "@Override\n public CommonTokenStream getTokens() {\n return null;\n }", "@Test\r\n\t\tpublic void testTokenizeWhitespace() {\r\n\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_sp\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "private void Spacing() {\n\n try {\n while (true) {\n try {\n Space();\n } catch (SyntaxError e) {\n Comment();\n }\n }\n } catch (SyntaxError e) {\n }\n }", "@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}", "private int skipTrialingWhite( List content, int start) {\r\n int size = content.size();\r\n if (start > size) {\r\n start = size;\r\n }\r\n\r\n int index = start;\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index >= 0) {\r\n if ( !isAllWhitespace( content.get(index - 1)))\r\n break;\r\n --index;\r\n }\r\n }\r\n return index;\r\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn CommonNames.PARSER.CORE.TOKENS.TOKENIZER_STATE.WHITE_SPACE;\n\t}", "private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }", "Token next();", "public void ignorableWhitespace(char[] ch, int start, int length)\r\n\t\t\tthrows SAXException {\r\n\t\t\r\n\t}", "private String scan() {\n line = line.trim();\n if (line.length() == 0)\n return \"\";\n\n int i = 0;\n while (i < line.length() && line.charAt(i) != ' ' && line.charAt(i) != '\\t') {\n i = i + 1;\n }\n String word = line.substring(0, i);\n line = line.substring(i);\n return word;\n }", "public String nextToken() throws JSONException {\n var3_1 = new StringBuffer();\n while (Character.isWhitespace(var2_2 = this.next())) {\n }\n if (var2_2 == '\\\"') ** GOTO lbl7\n var1_3 = var2_2;\n if (var2_2 != '\\'') ** GOTO lbl16\nlbl7: // 2 sources:\n do {\n if ((var1_3 = this.next()) < ' ') {\n throw this.syntaxError(\"Unterminated string.\");\n }\n if (var1_3 == var2_2) {\n return var3_1.toString();\n }\n var3_1.append(var1_3);\n } while (true);\nlbl-1000: // 1 sources:\n {\n var3_1.append(var1_3);\n var1_3 = this.next();\nlbl16: // 2 sources:\n if (var1_3 == '\\u0000') return var3_1.toString();\n ** while (!Character.isWhitespace((char)var1_3))\n }\nlbl18: // 1 sources:\n return var3_1.toString();\n }", "public void analyzer(){\n i = 0;\n while (i<temp.length()){\n if(temp.charAt(i)=='p' || temp.charAt(i)=='q' || temp.charAt(i)=='r' || temp.charAt(i)=='s'){\n i++;\n if(i !=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(1);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(1);\n }\n } else if (temp.charAt(i)=='n') {\n i++;\n if(temp.charAt(i)=='o'){\n i++;\n if(temp.charAt(i)=='t'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(2);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(2); i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if (temp.charAt(i)=='a'){\n i++;\n if(temp.charAt(i)=='n'){\n i++;\n if(temp.charAt(i)=='d'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(3);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(3);\n break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(temp.charAt(i)=='x' && i!=temp.length()){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='o'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='r'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(5);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(3); i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(temp.charAt(i)=='o' & i!=temp.length()){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='r'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(4);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(4);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='i'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='f'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)=='f'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(8);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(8);\n i++;\n }\n } else if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(6);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(6);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='t'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='h'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='e'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='n'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(7);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(7);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='('){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(9);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(9);\n i++;\n }\n } else if(i!=temp.length()&&temp.charAt(i)==')'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i) == ' '){\n token.add(10);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(10);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n }\n \n //menyimpan data input dan array token kedalam class biasa\n Tahap1 a = new Tahap1(temp,token);\n lex.add(a);\n \n //reset untuk next use\n a = null;\n temp = \"\";\n }", "private void consumeToken() {\n\t\tToken token = lexAnalyser.nextToken();\n\t\tlogMessage(functionStack.peekFirst() + \" consumed \" + token.getType()\n\t\t\t\t+ \": <lexeme>\" + token.getLexeme() + \"</lexeme>\");\n\t\tpeekToken = lexAnalyser.peekToken();\n\t}", "public char nextClean() throws JSONException {\n for(;;) {\n char c = this.next();\n if(c == 0 || c > ' ') {\n return c;\n }\n }\n }", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "private Token extendedNextWordToken() {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t \n\t\t while(currentIndex < data.length) {\n\t\t\t char c = data[currentIndex];\n\t\t\t \n\t\t\t if(c == '#') break;\n\t\t\t if(c == ' ' || c == '\\n' || c== '\\t' || c == '\\r') break;\n\t\t\t \n\t\t\t sb.append(c);\n\t\t\t currentIndex++;\n\t\t }\n\t\t return new Token(TokenType.WORD, sb.toString());\n\t }", "private void skipBOM() {\n/* */ try {\n/* 471 */ if (PeekChar() == '') {\n/* 472 */ ReadChar();\n/* */ }\n/* 474 */ } catch (EOFException e) {}\n/* */ }", "protected void nextChar() {\r\n\t\t\r\n//\t\tif (index < text.length) {\r\n//\t\t\tlook = text[index++];\r\n//\t\t} else {\r\n//\t\t\tlook = ' ';\r\n//\t\t}\r\n\t\tlook = (index < text.length)?(text[index++]):(' ');\r\n\t}", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.whitespace();\n assertEquals(\"\", token0.getTokenText());\n assertEquals((-2), token0.getTokenType());\n }", "private Token nextToken() throws IOException {\n // Si hay lexemas en el buffer, leemos de ahi\n if (!bufferLocal.esVacia()) {\n return bufferLocal.extraer();\n }\n // Si no, leemos del Stream\n String lexemaActual = \"\";\n do {\n int lexema = tokens.nextToken();\n switch (lexema) {\n case StreamTokenizer.TT_WORD:\n lexemaActual = tokens.sval;\n break;\n case StreamTokenizer.TT_EOF:\n lexemaActual = \"fin\";\n break;\n default:\n lexemaActual = String.valueOf((char)tokens.ttype);\n break;\n }\n // Sumamos una linea en caso de haber salto de linea\n if (lexemaActual.equals(\"\\n\"))\n numeroLinea++;\n } while (lexemaActual.matches(\" |\\t|\\n|\\r\"));\n return new Token(lexemaActual,this.numeroLinea);\n }", "static void trimNL() {\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cn')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n if(outputBuffer.length() > 0 && outputBuffer.charAt(outputBuffer.length() - 1) == '\\u005cr')\n outputBuffer.deleteCharAt(outputBuffer.length() - 1);\n }", "private Token consumeSemi() {\n return consume(SEMICOLON, \"Expect ';' after value.\");\n }", "private Token nextToken() {\n Token token = scanner.nextToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "private Token nextTokenExtended() throws LexerException {\n while(currentIndex < dataLength \n && !Character.isWhitespace( data[currentIndex] ) \n && data[currentIndex]!='#') {\n \n stringToken.append( data[ currentIndex++ ] );\n }\n \n token = new Token(TokenType.WORD, stringToken.toString());\n stringToken = new StringBuilder();\n \n return token;\n }", "public OtherTokenizer() {\n super();\n }", "protected boolean ignoreLinesStartWith(char a) {\r\n if (!this.hasNextToken()) return false;\r\n boolean b = false;\r\n while (true) {\r\n char c = this.stream.peek();\r\n if (c==a) {\r\n this.getUntilMeetChar('\\n');\r\n b = true;\r\n continue;\r\n }\r\n return b;\r\n }\r\n }", "private int skipLeadingWhite( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index < size) {\r\n if ( !isAllWhitespace( content.get(index))) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n }\r\n return index;\r\n }", "private String trimIgnoreChars(StringBuilder tokenBuilder) {\n\t\t\tint lastCharacterIdx = tokenBuilder.length()-1;\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(lastCharacterIdx)))) {\n\t\t\t\ttokenBuilder.deleteCharAt(lastCharacterIdx);\n\t\t\t\tlastCharacterIdx--;\n\t\t\t}\n\t\t\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(0))))\n\t\t\t\ttokenBuilder.deleteCharAt(0);\n\t\t\t\n\t\t\treturn tokenBuilder.toString();\n\t\t}", "private Token consumeSemi(String message) {\n return consume(SEMICOLON, message);\n }", "@Override\n\tpublic void space() {\n\t\t\n\t}", "public static ParseAction<Located<Void>> skipWhitespaceAndTLAComments(){\n\t\treturn repeat(parseOneOf(\n\t\t\t\tmatchWhitespace(),\n\t\t\t\tmatchTLAComment()\n\t\t)).map(list -> new Located<>(list.getLocation(), null));\n\t}", "public static void main(String[] args)\n/* */ throws IOException\n/* */ {\n/* 135 */ if (args.length < 1) {\n/* 136 */ System.err.println(\"usage: java edu.stanford.nlp.process.WhitespaceTokenizer [-cr] filename\");\n/* 137 */ return;\n/* */ }\n/* 139 */ WhitespaceTokenizer tokenizer = new WhitespaceTokenizer(new InputStreamReader(new FileInputStream(args[(args.length - 1)]), \"UTF-8\"), args[0].equals(\"-cr\"));\n/* 140 */ PrintWriter pw = new PrintWriter(new OutputStreamWriter(System.out, \"UTF-8\"), true);\n/* 141 */ while (tokenizer.hasNext()) {\n/* 142 */ Word w = (Word)tokenizer.next();\n/* 143 */ if (w == WhitespaceLexer.crValue) {\n/* 144 */ pw.println(\"***CR***\");\n/* */ } else {\n/* 146 */ pw.println(w);\n/* */ }\n/* */ }\n/* */ }", "static void getToken() throws IOException{\n curr_char = pbIn.read();\n getNonBlank();\n lookUp();\n }", "@Override\n\tpublic void skip() {\n\t}", "public void ignorableWhitespace(char ch[], int start, int length)\n throws SAXException {\n this.ensureInitialization();\n super.ignorableWhitespace(ch, start, length);\n }", "public void ignorableWhitespace(char ch[], int start, int length)\n throws SAXException {\n int i = 0;\n while ( i < length ) {\n newContent.append(ch[start + i]);\n i++;\n }\n }", "private Token consume() throws SyntaxException {\n\t\tToken tmp = t;\n\t\tt = scanner.nextToken();\n\t\treturn tmp;\n\t}", "private void processPendingText() throws SAXException {\n if(state==AFTER_START_ELEMENT) {\n for( int i=bufLen-1; i>=0; i-- )\n if( !WhiteSpaceProcessor.isWhiteSpace(buf[i]) ) {\n super.characters(buf, 0, bufLen);\n return;\n }\n }\n }", "private String skipEmptyLines(String line, Scanner myReader){\n while (myReader.hasNextLine()){\n if (line.length() == 0){\n line = myReader.nextLine();\n }\n else{\n String[] tokens = line.split(\" \");\n if (tokens.length > 0){\n return line;\n }\n }\n }\n return \"\";\n }", "private boolean getReplaceNonBreakingSpace() {\n return false;\n }", "private void eatValue() {\n while (position < length) {\n switch (data.charAt(position)) {\n case '\\t': case '\\n': case '\\r': case ' ':\n tokenEnd = position;\n return;\n default:\n position++;\n break;\n }\n }\n tokenEnd = position;\n }", "public void ignorableWhitespace(char[] ch, int start, int length)\n\t\t\t\tthrows java.lang.Exception {\n\t\t}", "public void skipComments() {\r\n this.ignoreLinesStartWith(this.charComment);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tchar[] just = {'a','b','c','d',' ',' ',' ','e'};\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t\t\n\t\tremoveWhiteSpace(just);\n\t\t\n\t\tSystem.out.println(Arrays.toString(just));\n\t}", "private void removeWhitespace() {\n /*\n * Get rid of comments.\n * Regex breakdown:\n * //.* : Some string that starts with \"//\"\n */\n instruction = instruction.replaceAll(\"//.*\", \"\");\n\n /*\n * Now replace all whitespace with a single space\n * Regex breakdown:\n * \\s+ : Find all whitespace that appear in a chunk\n */\n instruction = instruction.replaceAll(\"\\\\s+\", \" \");\n\n // Get rid of leading/trailing whitespace (if there is any whitespace at\n // the start/end of a line, it will be converted into one space character\n // as a result of the previous line)\n /*\n * Regex breakdown:\n * ^ : At the start of the line...\n * \\s+ : Match whitespace that occurs in a glob\n */\n instruction = instruction.replaceAll(\"^\\\\s+\", \"\");\n /*\n * Regex breakdown:\n * \\s+ : Match whitespace that occurs in a glob\n * $ : At the end of the line\n */\n instruction = instruction.replaceAll(\"\\\\s+$\", \"\");\n }", "public Token nextToken() {\n\t\t\t// if something in queue, just remove and return it\n\t\t\tif ( tokens.size()>0 ) {\n\t\t\t\tToken t = (Token)tokens.firstElement();\n\t\t\t\ttokens.removeElementAt(0);\n\t\t\t\t// System.out.println(t);\n\t\t\t\treturn t;\n\t\t\t}\n\n\t\t\tinsertImaginaryIndentDedentTokens();\n\n\t\t\treturn nextToken();\n\t\t}", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<\");\n xPathLexer0.consume((-1311));\n // Undeclared exception!\n try { \n xPathLexer0.whitespace();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "public static void main(String[] args) throws IOException {\n\n String s = scanner.nextLine();\n\n String t = scanner.nextLine();\n\n int k = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String result = appendAndDelete(s, t, k);\n System.out.println(result);\n\n// bufferedWriter.write(result);\n// bufferedWriter.newLine();\n//\n// bufferedWriter.close();\n\n scanner.close();\n }", "@Override\n public Token nextToken(\n PushbackReader r, int cin, Tokenizer t)\n throws IOException {\n\n int i = 0;\n charbuf[i++] = (char) cin;\n int c;\n do {\n c = r.read();\n if (c < 0) {\n c = cin;\n }\n checkBufLength(i);\n charbuf[i++] = (char) c;\n } while (c != cin);\n\n String sval = copyValueOf(charbuf, 0, i);\n return new Token(TT_QUOTED, sval, 0);\n }", "public static int skipWS (String text, int posn, int end) {\n\t\twhile ((posn < end) && Character.isWhitespace(text.charAt(posn))) posn++;\n\t\treturn posn;\n\t}", "public static TokenizerFactory<Word> factory()\n/* */ {\n/* 116 */ return new WhitespaceTokenizerFactory(false);\n/* */ }" ]
[ "0.75586057", "0.7068817", "0.7050835", "0.69971454", "0.6980318", "0.694534", "0.69308746", "0.67685515", "0.67685515", "0.66918087", "0.6595893", "0.6472805", "0.6451176", "0.6290816", "0.61637485", "0.6156536", "0.61422896", "0.61281145", "0.6084605", "0.6047895", "0.603885", "0.59642875", "0.58955526", "0.58849776", "0.58708817", "0.58632165", "0.5849589", "0.5829954", "0.5799252", "0.57846606", "0.5781422", "0.57806313", "0.57472634", "0.57450825", "0.572894", "0.572894", "0.57137316", "0.5707396", "0.56936574", "0.56598085", "0.5654275", "0.5652466", "0.56409913", "0.5627483", "0.5625507", "0.5610631", "0.55897033", "0.55782366", "0.55738795", "0.5572798", "0.55626595", "0.55339277", "0.55024886", "0.55000025", "0.546411", "0.54307467", "0.5425919", "0.5407957", "0.5406329", "0.53845555", "0.5377294", "0.53703415", "0.5340866", "0.5319023", "0.5312923", "0.52949107", "0.52825874", "0.5280216", "0.5274224", "0.5269595", "0.5258209", "0.52535325", "0.52528346", "0.5250676", "0.5231125", "0.5228555", "0.5214545", "0.5186964", "0.51660293", "0.51659524", "0.51612777", "0.5146189", "0.51412606", "0.51138633", "0.51035297", "0.50975937", "0.50821275", "0.5075101", "0.50658923", "0.50645775", "0.50597954", "0.50576824", "0.5057132", "0.50504225", "0.5044937", "0.50369453", "0.5034006", "0.50275344", "0.5027127", "0.5027033", "0.5019828" ]
0.0
-1
Creates a new scanner
public _AstroLexer(java.io.Reader in, boolean highlightMode, boolean jsDocTypesMode) { isHighlightModeOn = highlightMode; isJsDocTypesModeOn = jsDocTypesMode; this.zzReader = in; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scanner createScanner(File file) {\n Scanner scanner;\n try {\n scanner = new Scanner(file);\n\n } catch (FileNotFoundException e) {\n scanner = null;\n }\n return scanner;\n }", "private ConsoleScanner() {}", "public Parser(Scanner scanner) {\n this.scanner = scanner;\n scan();\n }", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(String source) {\n // The source code read in from stdin is stored here as a char array\n // TODO: if source is empty in Sc.java do something??\n this.source = source.toCharArray();\n this.position = 0;\n this.size = source.length();\n this.comments = false;\n this.depth = 0;\n this.called = false;\n }", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public CoolParser(java_cup.runtime.Scanner s) {super(s);}", "private static Scanner createScanner(File inputFile)\n\t{\n\t\t/// create Scanner to read from file and also check if the file exists\n\t Scanner in = null; // closes before the end of readDataFile\n\t try \n\t {\n\t \tin=new Scanner(inputFile);\n\t }\n\t catch(FileNotFoundException e) \n\t {\n\t \tSystem.out.println(\"The file \"+ inputFile.getName() + \" can not be found!\");\n\t \tSystem.exit(0);\n\t }\n\t \n\t return in;\n\t}", "protected Scanner getTagScanner() {\n \tif(scanner == null)\n \t scanner = new Scanner();\n \treturn scanner;\n }", "public Scanner(String program) {\n\t\tthis.program=program;\n\t\tpos=0;\n\t\ttoken=null;\n\t\tinitWhitespace(whitespace);\n\t\tinitDigits(digits);\n\t\tinitLetters(letters);\n\t\tinitLegits(legits);\n\t\tinitKeywords(keywords);\n\t\tinitOperators(operators);\n }", "public parserCapas(java_cup.runtime.Scanner s) {super(s);}", "public static void init() {\n\t\tscanner = new Scanner(System.in);\n\t\treturn;\n\t}", "public Scanner(java.io.InputStream in) {\r\n this(new java.io.InputStreamReader(in));\r\n }", "public parser(Scanner s) {super(s);}", "private Scanner getScanner(String fixedString) throws IOException {\n\t\tURLConnection connection = new URL(SUPERVALU_URL_START +fixedString).openConnection();\n\t\treturn new Scanner(connection.getInputStream());\n\t}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public A4Parser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public Scanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public static void setScanner(Scanner s) {\n scanner = s;\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public Scanner(InputStream inStream)\n {\n in = new BufferedReader(new InputStreamReader(inStream));\n eof = false;\n getNextChar();\n }", "public static QRScanner newInstance() {\n QRScanner fragment = new QRScanner();\n return fragment;\n }", "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "public PasitoScanner(java.io.InputStream in) {\n this(new java.io.InputStreamReader(in));\n }", "public CompParser(java_cup.runtime.Scanner s) {super(s);}", "void scanner() {\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\tString source = \"asdqw easd casa\";\r\n\t\tScanner s1 = new Scanner(source);\r\n\t\t// hasNext() - testuje wartosc kolejnego tokena, ale go nie pobiera\r\n\t\t// next() - pobiera kolejny token\r\n\t\t// domyslnie bialy znak jest delimiterem\r\n\t\twhile (s1.hasNext()) {\r\n\t\t\tSystem.out.println(s1.next());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// hasNextXxx() - dla wszystkich primitives oprocz chara\r\n\t\t// nextXxx() - pobiera kolejny prymitywny token\r\n\t\tScanner s2 = new Scanner(\"1 true 34 hi\");\r\n\t\tboolean b;\r\n\t\twhile (b = s2.hasNext()) {\r\n\t\t\tif (s2.hasNextInt()) {\r\n\t\t\t\tint i = s2.nextInt();\r\n\t\t\t\tSystem.out.println(\"integer token: \" + i);\r\n\t\t\t} else if (s2.hasNextBoolean()) {\r\n\t\t\t\tboolean b2 = s2.nextBoolean();\r\n\t\t\t\tSystem.out.println(\"boolean token: \" + b2);\r\n\t\t\t} else {\r\n\t\t\t\tString str = s2.next();\r\n\t\t\t\tSystem.out.println(\"String token: \" + str);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------- Scanner\" + ++exampleNumber\r\n\t\t\t\t+ \"----------\");\r\n\r\n\t\t// useDelimiter(delimiter) - ustawienie delimitera (wyrazenia regularnego) wg ktorego bedzie przetwarzany strumien\r\n\t\t// domyslnym delimiterem jest spacja, tabulator, ogolnie bialy znak lub znaki\r\n\t\tScanner s3 = new Scanner(\"Test1 true 34 hi\");\r\n\t\ts3.useDelimiter(\"\\\\d\"); // delimiterem jest cyfra\r\n\t\twhile (s3.hasNext()) {\r\n\t\t\tSystem.out.println(s3.next());\r\n\t\t}\r\n\t}", "public Scanner getScanner(){\n\t\t\n\t\tString filename = \"\";\n\t\tfor(int i = 0; i<argList.size(); i++ ){\n\t\t\tif(argList.get(i).equals(\"-f\")){\n\t\t\t\tfilename = argList.get(i+1);\n\t\t\t\t//DIFFERENT FROM OTHER INIT FILE!\n\t\t\t\tfilename = filename.trim().replace(\".s230\", \".S230\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(System.getProperty(\"user.dir\") + \" ... \" + filename);\n\t\tString dirName = System.getProperty(\"user.dir\");\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\source\",\"\\\\\").trim();\n\t\tdirName = dirName.replace(\"\\\\Program_Files\\\\classes\",\"\\\\\").trim();\n\t\tdirName = dirName.concat(\"\\\\InputOutputFolder\\\\\");\n\t\tSystem.out.println(dirName+filename);\n\t\tFile file = new File(dirName, filename);\n\t\tScanner toReturn = null;\n\t\ttry {\n\t\t\ttoReturn = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "public static void init()throws IOException{if(fileIO){f=new FastScanner(\"\");}else{f=new FastScanner(System.in);}}", "public Menu() {\n scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Scanner getScanner(){\n\t\t\n\t\tboolean hasFile = false;\n\t\tString filename = \"\";\n\t\tfor(int i = 0; i<argList.size(); i++ ){\n\t\t\tif(argList.get(i).equals(\"-f\")){\n\t\t\t\thasFile = true;\n\t\t\t\tfilename = argList.get(i+1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(System.getProperty(\"user.dir\") + \" ... \" + filename);\n\t\tFile file = new File(System.getProperty(\"user.dir\")+\"\\\\ARM230Compiler\\\\InputOutputFolder\\\\\", filename);\n\t\tScanner toReturn = null;\n\t\ttry {\n\t\t\ttoReturn = new Scanner(file);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn toReturn;\n\t}", "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "public MetadataScanner()\n {\n this(\"\");\n }", "public static void setInputScanner(InputScanner scanner){\n inputScanner = scanner;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public FractalParser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(java.io.Reader in) {\r\n this.zzReader = in;\r\n }", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public Parser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "private Scanner getInput(String name) {\n try {\n return new Scanner(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "public Scanner( String filename ) throws IOException\n {\n sourceFile = new PushbackInputStream(new FileInputStream(filename));\n \n nextToken = null;\n }", "public ContentScanner getScanner(\n )\n {return scanner;}", "public static Scanner getScanner(File file) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(file);\n } catch (IOException e) {\n System.err.println(\"input error\");\n }\n return scanner;\n }", "CreateScanFilterResponse createScanFilter(CreateScanFilterRequest request);", "public Sintactico(java_cup.runtime.Scanner s) {super(s);}", "public PasitoScanner(java.io.Reader in) {\n this.yy_reader = in;\n }", "public parser(Scanner s, SymbolFactory sf) {super(s,sf);}", "public void setScan(InputStream inStream){\t\t\n\t\tthis.scan = new Scanner (inStream);\t\t\t\t\t\n\t}", "public CoolParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public LuaGrammarCup(java_cup.runtime.Scanner s) {super(s);}", "public static synchronized void Initialize() throws FileNotFoundException, UnsupportedEncodingException {\n fileReaderInit(fLocation);\n \n pbr = new PushbackReader(reader, 5);\n \n \n File currentDirFile = new File(\".\");\n String helper = currentDirFile.getAbsolutePath();\n outLocation = \"src/parser_resources/\" + outFile;\n /*scan.nextLine();*/\n \n File f = new File(outLocation);\n\n if (f.exists() && !f.isDirectory()) {\n fWriter = new PrintWriter(outLocation, \"Ascii\");\n System.out.println(\"\\nOutput file initialized for Scanner\");\n System.out.println(\"Scanning output to: \" + helper + \"/\" + outLocation);\n } else {\n System.out.println(\"Error: output file missing please \\\"touch\"\n + \"scanner.out\\\" in parser_resources directory.\");\n }\n }", "public MJParser(java_cup.runtime.Scanner s) {super(s);}", "public PCLParser(java_cup.runtime.Scanner s) {super(s);}", "public Scanner(Configuration config) {\r\n\t\tthis.conf = config;\r\n\t\tfileCacheList = new LinkedList<FileObj>();\r\n\r\n\t}", "static InputScanner getInputScanner() {\n return inputScanner;\n }", "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "public static Gate scan( Scanner sc ) {\n\t\tif (outputList.isEmpty()) {\n\t\t\tSimulator.schedule(\n\t\t\t\t1,\n\t\t\t\t(float time) -> displayHeaders( time )\n\t\t\t);\n\t\t}\n\n\t\t// now do the scan as for any other gate\n\t\tOutput g = new Output();\n\t\tg.scan( sc, inputs );\n\t\tif (g.name == null) g = null;\n\n\t\t// and finally, remember this in the output list\n\t\tif (g != null) outputList.add( g );\n\t\treturn g;\n\t}", "public Ch12Ex1to9()\n {\n scan = new Scanner( System.in );\n }", "public Asintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public LexicalScanner() throws IOException {\n this.codesMap = new CodesMap();\n this.keyWords = loadKeywords();\n this.specialCharacters = loadSpecialCharacters();\n this.identifierAutomata = new FA(IDENTIFIER_AUTOMATA_FILE);\n this.constantAutomata = new FA(CONSTANT_AUTOMATA_FILE);\n }", "public XPathParser(java_cup.runtime.Scanner s) {super(s);}", "public HumanPlayer(Scanner scanner) {\n this.scanner = scanner;\n }", "public ContentScanner(\n IContentContext contentContext\n )\n {this(contentContext.getContents());}", "public TokenScanner(final File f) throws FileNotFoundException {\n\t\tfileScanner = new Scanner(file = f);\n\t}", "public TerminalGame()\n \t{\n \t\tsuper();\n \t\tbuilder = new StringBuilder();\n \t\tscanner = new Scanner(System.in);\n \t}", "public void openScanner(){\n Intent intent = new Intent(ReturningTaskActivity.this, BarcodeScannerActivity.class);\n startActivityForResult(intent, 0);\n }", "public InputReader() {\n reader = new Scanner(System.in);\n }", "void makeDeck(Scanner scanner) \n\t\t\tthrows IOException {\n\t\tCardNode cn = null;\n\t\tif (scanner.hasNextInt()) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = scanner.nextInt();\n\t\t\tcn.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t\twhile (scanner.hasNextInt()) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = scanner.nextInt();\n\t\t\tcn.next = deckRear.next;\n\t\t\tdeckRear.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t}", "public WrongInputDataInScanner() {\n\tsuper();\n\t\n}", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return new Symbol (sym.EOF); \n }", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return getScanner().next_token(); \n }" ]
[ "0.70198154", "0.699672", "0.6994146", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.6601508", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.65122795", "0.6379424", "0.6372504", "0.63403314", "0.62894094", "0.6243567", "0.6241367", "0.6239277", "0.62367713", "0.62255925", "0.62255925", "0.6182349", "0.6182349", "0.6154173", "0.61453956", "0.6126308", "0.61254615", "0.6123211", "0.6086334", "0.6064307", "0.60512775", "0.60445535", "0.60301113", "0.60205716", "0.5995358", "0.59733266", "0.59733266", "0.5962217", "0.5960971", "0.5959263", "0.59513426", "0.5933024", "0.5933024", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59253913", "0.59232545", "0.59104097", "0.59030783", "0.59030783", "0.59030783", "0.59030783", "0.59030783", "0.59030783", "0.59030783", "0.5896781", "0.58785343", "0.5866211", "0.58655137", "0.58444715", "0.5839546", "0.5831973", "0.5828196", "0.5809832", "0.5772663", "0.57677305", "0.57523644", "0.57413095", "0.5733075", "0.5715265", "0.57100326", "0.57026017", "0.5696883", "0.5680858", "0.5671811", "0.5667709", "0.5639128", "0.56375736", "0.5615275", "0.56133294", "0.5602421", "0.5566492", "0.5565835", "0.55599815", "0.55531794", "0.5542804", "0.5531035" ]
0.0
-1
Returns the maximum size of the scanner buffer, which limits the size of tokens.
private int zzMaxBufferLen() { return Integer.MAX_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxBufferSize() {\r\n return maxBufferSize;\r\n }", "public int getMaxBufferSize() {\n return maxBufferSize;\n }", "public Integer getMaxTokenLength() {\n return this.maxTokenLength;\n }", "public static void maxTokens(Scanner in) {\n }", "private int getMaxSize() {\r\n return PropUtils.getValue(sizeLimitProp, DEFAULT_MAX_SIZE);\r\n }", "public int getMaximumSize() {\n return maximumSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize() {\n return maxSize_;\n }", "public int getMaxSize()\n {\n return m_MaxSize;\n }", "int getMaxSize();", "public abstract long getMaxSize();", "public int maxBytesPerChar();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "public int getMaxSize(){\n return maxSize;\n }", "public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}", "public int maxSize()\n {\n return maxSize;\n }", "int getBufferSize();", "int getMaxCharSize();", "public long maxSize() {\n\t\treturn maxSize;\n\t}", "public static int size_max() {\n return (8 / 8);\n }", "private static int getBufferSize() {\n\t\tint result = -1;\n\n\t\t// see if the system property is set\n\t\tString property = System.getProperty(BUFFER_SIZE_PROPERTY);\n\t\tif (property != null && !property.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(property);\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\tLOGGER.log(Level.WARNING, \"invalid buffer size: \" + property);\n\t\t\t}\n\t\t}\n\n\t\t// overrule negative or unspecified values with a 4 MB buffer (yes, I know that's a lot, but we want\n\t\t// quality output, right?)\n\t\tif (result < 0) {\n\t\t\tresult = 4 * 1024 * 1024;\n\t\t}\n\n\t\treturn result;\n\t}", "public int maximumSizeInBytes() {\n return maximumSizeInBytes;\n }", "public int getMaxSize()\r\n\t{\r\n\t\tSystem.out.print(\"The Max size of the Array is \");\r\n\t\treturn MAXSIZE;\r\n\t}", "public int getMaxBufferedDocs() {\n\t\treturn mMaxBufferedDocs;\n\t}", "public int getBufferSize() {\n\t\treturn buffer.length;\n\t}", "public int getMaximalSize() {\n return maximalSize;\n }", "public int getScanlineLength();", "public final synchronized int getMaximumSize() {\n\t\treturn cacheSize;\n\t}", "public abstract int getMaxIntermediateSize();", "public int getMaxLength() {\r\n return _maxLength;\r\n }", "public Integer getMaxResultSize() {\n return maxResultSize;\n }", "public int getMaxLength() {\n return maxLength;\n }", "protected int getMaxAccessTokens() {\n return maxAccessTokens;\n }", "public Integer getMaxLength() {\n\t\treturn maxLength;\n\t}", "public int getBufferSize() {\n return count;\n }", "public int getBufferSize() {\n return this.response.getBufferSize();\n }", "public int getConnectionMaxTokens() {\n return zks.connThrottle().getMaxTokens();\n }", "protected abstract int getMaxDesiredSize();", "public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}", "private int getBufferSize() {\n int maxBandOff = bandOffsets[0];\n for (int i = 1; i < bandOffsets.length; i++) {\n maxBandOff = Math.max(maxBandOff, bandOffsets[i]);\n }\n\n if (maxBandOff < 0 || maxBandOff > (Integer.MAX_VALUE - 1)) {\n throw new IllegalArgumentException(\"Invalid band offset\");\n }\n\n if (pixelStride < 0 || pixelStride > (Integer.MAX_VALUE / width)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n if (scanlineStride < 0 || scanlineStride > (Integer.MAX_VALUE / height)) {\n throw new IllegalArgumentException(\"Invalid scanline stride\");\n }\n\n int size = maxBandOff + 1;\n\n int val = pixelStride * (width - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n size += val;\n\n val = scanlineStride * (height - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid scan stride\");\n }\n\n size += val;\n\n return size;\n }", "public Integer getMaxLength() { \n\t\treturn getMaxLengthElement().getValue();\n\t}", "public java.lang.Integer getMaximumResultSize()\r\n {\r\n return this.maximumResultSize;\r\n }", "public int getSize() {\n return this.serialize().limit();\n }", "@SuppressWarnings( \"unused\" )\n public int capacity() {\n return buffer.capacity() - buffer.limit();\n }", "public Integer maxLength() {\n return this.maxLength;\n }", "long getMemLimit();", "long getMaxMemory();", "public int size() {\n return tokens.size();\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "int maxLength() {\n try (Stream<String> words = Files.lines(dictionary)) {\n return words.mapToInt(String::length).max().orElse(0);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public int getMaxLength() {\r\n return MAX_LENGTH;\r\n }", "public int length() {\n\treturn tokens.length;\n}", "public int getBufferSize() {\n\t\treturn 0;\n\t}", "public int getMaxLength(){\n return this.maxLength;\n }", "public int capturedLimit() {\n return this.limit.get();\n }", "protected int get_max_litter_size()\n {\n return max_litter_size;\n }", "private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }", "protected static long getMaxUploadSize() {\n return maxUploadSize;\n }", "public int getMaxLength();", "public int getMaxResponseSize() {\n return maxResponseSize;\n }", "public int getMaxListLength();", "public Integer getMaxPageSize() {\n return maxPageSize;\n }", "@Override\n\tpublic int getMaxResultLength() {\n\t\treturn len;\n\t}", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "public static int sizeBits_max() {\n return 8;\n }", "public int getMaxBufferedDeleteTerms() {\n\t\treturn mMaxBufferedDeleteTerms;\n\t}", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public native static int getMaximumMTU() throws IOException,IllegalArgumentException;", "public int size() { return buffer.length; }", "public Map<Integer, Integer> getTokenSizes() {\n return tokenSizes;\n }", "public synchronized int getUpperSizeLimit() {\n \t\treturn upper;\n \t}", "public int minBytesPerChar();", "public void\tsetMaxNumberToken (int maximalNumberOfToken) {\n\t\tthis.maximalNumberOfToken=maximalNumberOfToken;\n\t}", "public int getMaxCount() {\n return maxCount_;\n }", "public int getMaxSize(){\n\t\treturn ds.length;\n\t}", "public static long getApiMaxRequestBytes() {\n return 10L * 1000L * 1000L; // 10 megabytes (https://en.wikipedia.org/wiki/Megabyte)\n }", "long getMaxFileSizeBytes();", "default int getMaximumCount(int slot) {\n\t\treturn 64;\n\t}", "int getAutoCommitBufferSizeInKiB();", "public int getMaximumBlockSize()\n {\n return bouquet.getSheaf().getPageSize() - Pack.BLOCK_PAGE_HEADER_SIZE - Pack.BLOCK_HEADER_SIZE;\n }", "public long maxResponseLength() {\n return get(MAX_RESPONSE_LENGTH);\n }", "int getWriterMaxQueueSize();", "public static long getMaxMemory() {\r\n\t\tmaxMemory = Runtime.getRuntime().maxMemory();\r\n\t\treturn maxMemory;\r\n\t}", "int getTransactionLogMaxSize() {\n\t\treturn transactionLog.getMaxSize();\n\t}", "public int getMaxTextLength() {\n/* 529 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static long getMaxNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage nonHeap = memBean.getNonHeapMemoryUsage();\n\n\t\treturn nonHeap.getMax();\n\t}", "public int getMaxCount() {\n return maxCount_;\n }", "public static native int getMaxCacheMem();", "public float getSize() {\n return bufSize;\n }", "public int getTokensCount() {\n synchronized (this) {\n return tokens.size();\n }\n }", "public Dimension getMaximumSize()\n {\n return new Dimension(32767, 32767);\n }", "abstract int getMaxMemoryUsage();", "@java.lang.Override\n public int getMaximumCapacity() {\n return maximumCapacity_;\n }", "public Long maxSizeInMegabytes() {\n return this.maxSizeInMegabytes;\n }" ]
[ "0.7193807", "0.71603906", "0.7143543", "0.69371593", "0.6702388", "0.6690743", "0.666494", "0.666494", "0.666494", "0.66638696", "0.66373146", "0.66373146", "0.6583155", "0.6555754", "0.6525065", "0.6513517", "0.65107906", "0.6478585", "0.6474066", "0.6472923", "0.64725244", "0.64719266", "0.6450656", "0.6441505", "0.6396103", "0.63911885", "0.63256985", "0.629705", "0.62967277", "0.6279974", "0.62640786", "0.62409055", "0.62347114", "0.621884", "0.61998016", "0.61953604", "0.6189234", "0.6174516", "0.6173911", "0.6150595", "0.61417884", "0.61383986", "0.61216074", "0.60969245", "0.6094677", "0.60896325", "0.6088811", "0.6078797", "0.6071921", "0.60684216", "0.6061962", "0.6059587", "0.6034469", "0.60179913", "0.59827036", "0.59541094", "0.5945371", "0.59349734", "0.5925736", "0.5907532", "0.5903817", "0.59015214", "0.5893584", "0.5892916", "0.58909076", "0.5887649", "0.58854026", "0.5884605", "0.5877592", "0.5877476", "0.58737", "0.5873546", "0.5870546", "0.5859814", "0.58527666", "0.58434355", "0.58419573", "0.5831978", "0.5828429", "0.5817081", "0.58145", "0.58117235", "0.57952464", "0.57804793", "0.5772413", "0.5768226", "0.5756997", "0.575653", "0.5754182", "0.5754171", "0.57525444", "0.5746812", "0.5735886", "0.5730225", "0.5721408", "0.5718588", "0.5712674", "0.5712226", "0.5710363" ]
0.69456357
4
Whether the scanner buffer can grow to accommodate a larger token.
private boolean zzCanGrow() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasMoreTokens()\n {\n return (currentPosition >= maxPosition) ? false : true;\n }", "public boolean hasMoreTokens() {\n\t\treturn\t(current <=\tmax);\n\t}", "public boolean hasMoreTokens() {\n return pointer < tokens.size();\n }", "public boolean hasMoreTokens(){\n return !ended;\n }", "public boolean isOutOfMemory() {\n if (isEnabled())\n return ((getMax() - getCurrent()) < (getInitial() + 200000));\n else\n return false;\n }", "public boolean hasMoreElements() {\n\t return hasMoreTokens();\n\t}", "public boolean hasTokens() {\n // more tokens might be available if the current set\n // has more characters available for processing\n return (m_nTokenIndex < m_sSetBuffer.length());\n }", "public boolean hasTokens() {\r\n\t\treturn nextTokenPos < tokens.size();\r\n\t}", "boolean moreRecords() { return (tok != null && tok.length() > 0); }", "boolean hasMaxSize();", "public boolean hasNextToken(){\n if(currentToken+1 > tokens.size())\n return false;\n if(currentToken <= 0)\n return false;\n return true;\n }", "public boolean isFull(){\n return this.top==this.maxLength-1;\n }", "public boolean hasNext() {\n return cursor <= arrayLimit;\n }", "private boolean isByteBufferWithinCurrentRequestRange(ByteBuffer byteBuffer) {\n if (contentChannelEndOffset == -1) {\n return true;\n }\n return ((positionForNextRead + byteBuffer.remaining()) <= contentChannelEndOffset);\n }", "public boolean hasMore() {\n if (currentCursor != null && !NULL.equalsIgnoreCase(currentCursor)) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean hasNextToken() {\n\t\tif(index < tokens.size()) return true;\n\t\treturn false;\n\t}", "boolean hasMoreBytes();", "@Override\n\t\tpublic boolean hasMoreElements() {\n\t\t\treturn cursor != size();\n\t\t}", "private boolean ifPeekThenConsume(String token) throws LexemeException {\n\t\tif (ifPeek(token)) {\n\t\t\tconsumeToken();\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogErrorMessage(peekToken.getType(), token);\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isFull(){\r\n return currentSize == maxSize;\r\n }", "public boolean hasMoreCommands(){\r\n\t\t/*\r\n\t\tif (nextCommand != null)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t\t*/\r\n\t\treturn (tokenizer.ttype != StreamTokenizer.TT_EOF);\r\n\t}", "protected synchronized boolean isIngestLimitEnabled() {\n return ingestLimit >= 0;\n }", "private final boolean hasBufferedOutputSpace() {\n return !reading && buffer.hasRemaining();\n }", "public boolean isFull() {\n return (e+1)%buf.length == b;\n }", "public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }", "protected boolean reserve(final int size) {\n\t\tif (size > this.buffer.length) {\n\t\t\tfinal long oldbuffer[] = this.buffer;\n\t\t\tthis.buffer = new long[size];\n\t\t\tSystem.arraycopy(oldbuffer, 0, this.buffer, 0, oldbuffer.length);\n\t\t\tthis.rlw.array = this.buffer;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static void maxTokens(Scanner in) {\n }", "boolean isFull() {return pointer==size;}", "private boolean isLengthCorrect(final String token) {\n return token.length() == VALID_TOKEN_LENGTH;\n }", "public boolean hasRemaining() {\r\n\t\treturn cursor < limit - 1;\r\n\t}", "private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}", "public boolean hasNext() {\n\t\t return savedToken != null || tok.hasMoreTokens();\n\t\t}", "@Override\n public boolean isFull(){\n return (count == size);\n \n }", "public boolean hasMore()\n\t{\n\t\treturn numLeft.compareTo(BigInteger.ZERO) == 1;\n\t}", "public boolean isNextToken(Type token){\n if(currentToken+1 >= tokens.size())\n return false; \n return tokens.get(++currentToken).type.equals(token);\n }", "public boolean hasNext() {\n return current < len;\n }", "public boolean limitHit() {\r\n return (count >= maxCount);\r\n }", "@Test\n public void testEnsureBufferSizeExpandsToBeyondMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(true);\n }", "public boolean hasNextToken() {\r\n return this.stream.hasNext(); // based on the method hasNext() of the stream\r\n }", "private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}", "private boolean needToGrow() {\n if(QUEUE[WRITE_PTR] != null) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean hasNextAction(){\n return bufferIndex < listAction.size;\n }", "public boolean hasToken(){\n return (!clozerrtoken.isEmpty());\n }", "private boolean reachedEnd() {\n return current >= source.length();\n }", "public boolean hasNext() {\n\n\t\tif (tokenPosition < tokens.size()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasMore() {\n return numLeft.compareTo(BigInteger.ZERO) == 1;\n }", "public boolean hasMore () {\n\t return numLeft.compareTo (BigInteger.ZERO) == 1;\n\t }", "private boolean zzRefill() {\r\n\t\treturn zzCurrentPos>=s.offset+s.count;\r\n\t}", "private static void assertEnsureBufferSizeExpandsToMaxBufferSize(final boolean exceedMaxBufferSize) {\n final int length = 0;\n\n final long presumableFreeMemory = getPresumableFreeMemory();\n // 2GiB + 32 KiB + length\n // 2GiB: Buffer to allocate\n // 32KiB: Some headroom\n // length: Existing buffer\n final long estimatedMemory = (1L << 31) + 32 * 1024 + length;\n assumeTrue(presumableFreeMemory > estimatedMemory, \"Not enough free memory for the test\");\n\n final int max = Integer.MAX_VALUE - 8;\n\n // Check the conservative maximum buffer size can actually be exceeded by the VM\n // otherwise the test is not valid.\n if (exceedMaxBufferSize) {\n assumeCanAllocateBufferSize(max + 1);\n // Free-memory.\n // This may not be necessary as the byte[] is now out of scope\n System.gc();\n }\n\n final BaseNCodec ncodec = new NoOpBaseNCodec();\n final Context context = new Context();\n\n // Allocate the initial buffer\n context.buffer = new byte[length];\n context.pos = length;\n // Compute the extra to reach or exceed the max buffer size\n int extra = max - length;\n if (exceedMaxBufferSize) {\n extra++;\n }\n ncodec.ensureBufferSize(extra, context);\n assertTrue(context.buffer.length >= length + extra);\n }", "private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}", "private boolean zzRefill() {\n\t\treturn zzCurrentPos>=s.offset+s.count;\n\t}", "public boolean\t\thasMoreTokens()\t\t\t\t\t\t\t\t\t{ return m_currentTokenizer.hasMoreTokens(); }", "@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn (this.current<StringArray.this.max);\n\t\t\t}", "private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }", "@Override\n\tpublic boolean hasMore() {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean isFull() {\r\n\r\n\t\treturn data.size() >= maxQueue;\r\n\t}", "public boolean hasMoreElements() {\n/* 64 */ return this.iterator.hasNext();\n/* */ }", "private boolean scanFrameLength() {\n\n // scan the 2, 3, or 4 characters of the base 64 encoded frame length, terminated by a close...\n StringBuilder frameLengthChars = new StringBuilder( 4 );\n boolean lengthDone = false;\n boolean done = false;\n while( !done & !lengthDone ) {\n\n byte thisByte = buffer.get();\n done = !buffer.hasRemaining();\n\n // if we just scanned a close character, then we need to test for validity of the length...\n if( thisByte == CLOSE ) {\n\n // if we have at least enough characters, we have a possible winner here...\n if( frameLengthChars.length() >= 2 ) {\n frameLength = (int) Base64.decodeLong( frameLengthChars.toString() );\n\n // if the frame is longer than the maximum, reject it...\n if( frameLength > maxMessageSize ) lengthDone = true;\n\n // otherwise, we DID get a winner...\n else {\n frameOpenDetected = true;\n done = true;\n }\n }\n\n // it's not a properly formed frame start, so time to keep scanning if we have any characters left...\n else lengthDone = true;\n }\n\n // if we just scanned a base 64 character, it's potentially part of the length...\n else if( Base64.isValidBase64Char( (char) thisByte ) ){\n\n // if we still could use more base 64 characters, just add it and get out of here...\n if( frameLengthChars.length() < 4 ) {\n frameLengthChars.append( (char) thisByte );\n }\n\n // if this would be the fifth base 64 character, then it's not a properly formed frame...\n else lengthDone = true;\n }\n\n // if we got some other character, then it's not a properly formed frame...\n else {\n buffer.position( buffer.position() - 1 ); // it's possible we just got another open, so back up just in case...\n lengthDone = true;\n }\n }\n return done;\n }", "public boolean hasMoreInstances() {\n\t\treturn scanner.hasNextLine();\n\t}", "public boolean isFull(){\n return size == arrayQueue.length;\n }", "boolean isMore();", "private boolean loadMore(int available) throws IOException\n {\n _byteCount += (_inputEnd - available);\n\n // Bytes that need to be moved to the beginning of buffer?\n if (available > 0) {\n if (_inputPtr > 0) {\n if (!canModifyBuffer()) {\n // 15-Aug-2022, tatu: Occurs (only) if we have half-decoded UTF-8\n // characters; uncovered by:\n //\n // https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50036\n //\n // and need to be reported as IOException\n if (_inputSource == null) {\n throw new IOException(String.format(\n\"End-of-input after first %d byte(s) of a UTF-8 character: needed at least one more\",\navailable));\n }\n }\n for (int i = 0; i < available; ++i) {\n _inputBuffer[i] = _inputBuffer[_inputPtr+i];\n }\n _inputPtr = 0;\n _inputEnd = available;\n }\n } else {\n // Ok; here we can actually reasonably expect an EOF, so let's do a separate read right away:\n int count = readBytes();\n if (count < 1) {\n freeBuffers(); // to help GC?\n if (count < 0) { // -1\n return false;\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n\n // We now have at least one byte... and that allows us to\n // calculate exactly how many bytes we need!\n @SuppressWarnings(\"cast\")\n int c = (int) _inputBuffer[_inputPtr];\n if (c >= 0) { // single byte (ascii) char... cool, can return\n return true;\n }\n\n // Ok, a multi-byte char, let's check how many bytes we'll need:\n int needed;\n if ((c & 0xE0) == 0xC0) { // 2 bytes (0x0080 - 0x07FF)\n needed = 2;\n } else if ((c & 0xF0) == 0xE0) { // 3 bytes (0x0800 - 0xFFFF)\n needed = 3;\n } else if ((c & 0xF8) == 0xF0) {\n // 4 bytes; double-char BS, with surrogates and all...\n needed = 4;\n } else {\n // 25-Aug-2016, tatu: As per [dataformat-csv#132], let's not throw\n // exception from here but let caller handle\n return true;\n }\n\n // And then we'll just need to load up to that many bytes;\n // if an EOF is hit, that'll be an error. But we need not do\n // actual decoding here, just load enough bytes.\n while ((_inputPtr + needed) > _inputEnd) {\n int count = readBytesAt(_inputEnd);\n if (count < 1) {\n if (count < 0) { // -1, EOF... no good!\n freeBuffers();\n reportUnexpectedEOF(_inputEnd, needed);\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n return true;\n }", "@Override\n public boolean hasMorePayloads() \n {\n return this.payloadIndex < this.bytes_out.size();\n }", "public boolean isFull() { return front == (rear + 1) % MAX_QUEUE_SIZE; }", "public boolean next() {\n return actualBit < size;\n }", "boolean isInBuffer()\n {\n return m_bufferOffset_ > 0;\n }", "public boolean hasMore(){\r\n return curr != null;\r\n }", "public boolean hasMoreCommands() {\n return fileStream.hasNext();\n }", "public boolean possibleNextInput() {\n return _index < _input.length();\n }", "protected abstract boolean reachedContractLimit(int size);", "@Override\n public boolean hasNext() {\n return curIndex < maxIndex || super.hasNext();\n }", "@java.lang.Override\n public boolean hasEmbeddingTokenHigh() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "public boolean hasNextToken() {\n\t\treturn !inputString.isEmpty();\n\t}", "@Override\n public boolean incrementToken() throws IOException {\n while (!exhausted && input.incrementToken()) {\n State current = captureState();\n\n if (previous != null && !isGramType()) {\n restoreState(previous);\n previous = current;\n previousType = typeAttribute.type();\n\n if (isGramType()) {\n posIncAttribute.setPositionIncrement(1);\n // We must set this back to 1 (from e.g. 2 or higher) otherwise the token graph is\n // disconnected:\n posLengthAttribute.setPositionLength(1);\n }\n return true;\n }\n\n previous = current;\n }\n\n exhausted = true;\n\n if (previous == null || GRAM_TYPE.equals(previousType)) {\n return false;\n }\n\n restoreState(previous);\n previous = null;\n\n if (isGramType()) {\n posIncAttribute.setPositionIncrement(1);\n // We must set this back to 1 (from e.g. 2 or higher) otherwise the token graph is\n // disconnected:\n posLengthAttribute.setPositionLength(1);\n }\n return true;\n }", "@Test\n public void testEnsureBufferSizeExpandsToMaxBufferSize() {\n assertEnsureBufferSizeExpandsToMaxBufferSize(false);\n }", "@Override\n public boolean hasNext() {\n return this.currIndex < this.circularString.size();\n }", "public boolean hasNext() {\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }", "public boolean hasNext() {\n\t if(nextCount>=size) {\n\t \treturn false;\n\t }\n\t return true;\n\t }", "@java.lang.Override\n public boolean hasEmbeddingTokenHigh() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "public boolean minSize(){\n\t\tboolean result; \n\t\tif(keys.size() < (MAXKEYS/2) -1){\n\t\t\tresult = true;\n\t\t}\n\t\telse{ \n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}", "boolean hasChunkSize();", "default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }", "public boolean hasNext() {\n return nextIndex < size;\n }", "private boolean isThereMoreData() {\n return nextUrl != null;\n }", "@Override\r\n public boolean hasNext() {\r\n // Time complexity: O(1), where the problem size N \r\n // represents the size of the sequence to generate.\r\n return generatedCount < SIZE; // the count must be strictly less than the SIZE\r\n }", "public boolean isFull()\r\n\t{\r\n\t\treturn numItems > MAXSIZE;\r\n\t}", "private boolean ifFull() {\n return items.length == size;\n }", "public boolean hasOverflow() {\r\n\t\t\treturn (data.size() > 3);\r\n\t\t}", "public boolean hasNext() \n {\n return next < size;\n }", "public boolean hasNext() {\n return fakeSize > 0;\n }", "boolean hasEmbeddingTokenHigh();", "boolean hasEmbeddingTokenHigh();", "public boolean isFull(){\n \treturn count==capacity;\n }", "boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}", "public void processToken(String token) {\n \n // Create an int with an id of currentTokenLength and set it equal to the token.length()\n int currentTokenLength = token.length();\n processTokenHelper(currentTokenLength);\n\n /**\n * Create an int with an id of tokenLengthReps and set it equal to \n * tokenSizes.get(currentTokenLength);\n */\n int tokenLengthReps = tokenSizes.get(currentTokenLength);\n\n /**\n * Create an if statement that will determine if the tokenLength is \n * larger than the maximumSize int variable\n */\n if (tokenLengthReps > maximumSize) {\n maximumSize = tokenSizes.get(currentTokenLength);\n }\n }", "public boolean hasMaxSize() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private boolean scanFrameOpen() {\n\n // scan until we find the three sequential opens...\n int openCount = 0;\n boolean done = false;\n while( !done & (openCount < 3) ) {\n if( OPEN == buffer.get() ) {\n openCount++;\n if( openCount == 1 ) buffer.mark(); // remember where this started, in case we have to rewind to here...\n }\n else openCount = 0;\n done = !buffer.hasRemaining();\n }\n\n // if we ran out of characters, go back to our marked position (if we have one) so we can rescan it after bytes are added...\n if( done ) if( openCount > 0 ) buffer.reset();\n\n return done;\n }", "public boolean hasMaxSize() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean hasSize();", "boolean hasSize();", "boolean hasSize();" ]
[ "0.75302196", "0.7286783", "0.71046257", "0.6756815", "0.64155257", "0.63224417", "0.62873626", "0.62403613", "0.6202785", "0.6145543", "0.61190945", "0.6083568", "0.5962925", "0.59534526", "0.59212303", "0.591524", "0.59006923", "0.58608186", "0.5841238", "0.58404565", "0.58352506", "0.5834033", "0.5833759", "0.5802156", "0.57967097", "0.5780878", "0.5774731", "0.5772537", "0.5764004", "0.57639974", "0.5762193", "0.57561386", "0.5746583", "0.5744921", "0.5743556", "0.5739833", "0.5739153", "0.5739021", "0.5735885", "0.5730908", "0.5722663", "0.571956", "0.56988275", "0.5691997", "0.5683941", "0.56736517", "0.5669927", "0.5658374", "0.56416667", "0.563949", "0.563949", "0.56372964", "0.5633817", "0.563213", "0.5629591", "0.56253767", "0.56053466", "0.5604997", "0.560075", "0.55991274", "0.5590593", "0.55844164", "0.55798495", "0.5577551", "0.5575513", "0.55676794", "0.5560441", "0.55597025", "0.5559548", "0.55552393", "0.5551176", "0.5541646", "0.5540862", "0.55383337", "0.55358016", "0.55221385", "0.5518911", "0.5518911", "0.55183", "0.550854", "0.55042905", "0.5503123", "0.549691", "0.5495561", "0.5494156", "0.5488475", "0.54849106", "0.5484877", "0.5484302", "0.5480932", "0.547047", "0.547047", "0.54689324", "0.5466231", "0.54636014", "0.5459607", "0.54594105", "0.5456018", "0.54553896", "0.54553896", "0.54553896" ]
0.0
-1
Translates raw input code points to DFA table row
private static int zzCMap(int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "private void LexicalMousePressed(java.awt.event.MouseEvent evt) {\n setTable();\n idcount = 1;\n String sourcecodelexic = txtareaCompiler.getText(); //Gets the code from the TextArea\n String lexeme = \"\"; //Storage for Lexemes\n String sourcecodearray[] = sourcecodelexic.split(\"\\\\r?\\\\n\"); //Splits the whole to lines\n String sourcecode;\n DefaultTableModel model = (DefaultTableModel) tblLexeme.getModel(); //Table for Lexeme\n DefaultTableModel error = (DefaultTableModel) tblError.getModel(); //Table for Lexical error\n \n model.setRowCount(0);\n error.setRowCount(0);\n\n int check = 0;\n int i = 0;\n for(int j = 0; j < sourcecodearray.length; j++) // sourcecodearray.length = Number of Lines from the Text Area\n {\n sourcecode = sourcecodearray[j]; //temporarily stores the current line\n try{\n for( i = 0; i < sourcecode.length(); i++) // sourcecode.length = Number of Characters in a Line\n {\n if(sourcecode.charAt(i) == 'B')\n {\n lexeme = lexeme.concat(\"B\");\n i++;\n if(sourcecode.charAt(i) == 'O')\n {\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'O')\n {\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'L')\n {\n lexeme = lexeme.concat(\"L\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"BOOL\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Bool\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"BOOL\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"BOOL has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n if(check == 0) //Checks the Identifier after it fails from the reserved word\n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n //Starting with C\n else if(sourcecode.charAt(i) == 'C'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"A\");\n i++;\n if(sourcecode.charAt(i) =='D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'N'){\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'C'){\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CADENCE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Default\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == ';'||sourcecode.charAt(i) == ':')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CADENCE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"CADENCE has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'H'){\n lexeme = lexeme.concat(\"H\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"A\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CHAR\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Char\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CHAR\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"CHAR has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'S'){\n lexeme = lexeme.concat(\"S\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CHORDS\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Chords\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CHORDS\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"CHORDS has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'N'){\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'C'){\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CONCERT\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Concert\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CONCERT\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"CONCERT has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'S'){\n lexeme = lexeme.concat(\"S\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CONST\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Const\n if(sourcecode.charAt(i) == ' ')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"CONST\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"CONST has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n if(check == 0) //Checks the Identifier after it fails from the reserved word\n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //start of letter D\n else if(sourcecode.charAt(i) == 'D'){\n lexeme=lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"DO\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for Do\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == '{')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"DO\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"DO has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n if(check == 0) //Checks the Identifier after it fails from the reserved word\n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter E\n else if(sourcecode.charAt(i) == 'E'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'S'){\n lexeme = lexeme.concat(\"S\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ELSE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for else\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == '{')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ELSE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else if(sourcecode.charAt(i) == 'I'){\n lexeme = lexeme.concat(\"I\");\n i++;\n if(sourcecode.charAt(i) == 'F'){\n lexeme = lexeme.concat(\"F\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ELSEIF\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for encore\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ELSEIF\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"ELSEIF has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"ELSE has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'N'){\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'C'){\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ENCORE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for encore\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == ';')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"ENCORE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"ENCORE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter F\n else if(sourcecode.charAt(i) == 'F'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"f\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"a\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"l\");\n i++;\n if(sourcecode.charAt(i) == 'S'){\n lexeme = lexeme.concat(\"s\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"e\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{\"false\", \"Boolean_Literal\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for false\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == ';'\n ||sourcecode.charAt(i) == ','||sourcecode.charAt(i) == '}'||sourcecode.charAt(i)=='('\n ||sourcecode.charAt(i)==')')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{\"false\", \"Boolean_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{\"false\", \"FALSE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"A\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"FLOAT\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for float\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"FLOAT\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"FLOAT has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter I\n else if(sourcecode.charAt(i) == 'I'){\n lexeme=\"\";\n lexeme = lexeme.concat(\"I\");\n i++;\n if(sourcecode.charAt(i) == 'F'){\n lexeme = lexeme.concat(\"F\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"IF\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for if\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"IF\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"IF has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n else if(sourcecode.charAt(i) == 'N'){\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme,\"INT\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for int\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme,\"INT\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else if(sourcecode.charAt(i)!='E'&&sourcecode.charAt(i)!='R')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"INT has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n\n }\n\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"INTERLUDE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for interlude\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme,\"INTERLUDE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"INTERLUDE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"INTRO\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for intro\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"INTRO\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"INTRO has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n //Starting Letter L\n else if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'P'){\n lexeme = lexeme.concat(\"P\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"LOOP\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for loop\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"LOOP\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"LOOP has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter M\n else if(sourcecode.charAt(i) == 'M'){\n lexeme =\"\";\n lexeme = lexeme.concat(\"M\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"MUTE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for mute\n if(sourcecode.charAt(i) == ' ')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"MUTE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"MUTE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n //Starting Letter N\n else if(sourcecode.charAt(i) == 'N'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"NOTE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for note\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == ':')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"NOTE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"NOTE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter O\n else if(sourcecode.charAt(i) == 'O'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"OUTRO\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for outro\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\"')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"OUTRO\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"OUTRO has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n //Starting Letter P\n else if(sourcecode.charAt(i) == 'P'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"P\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"A\");\n i++;\n if(sourcecode.charAt(i) == 'Y'){\n lexeme = lexeme.concat(\"Y\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"PLAY\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for play\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == ';')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"PLAY\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"PLAY has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme,\"PRELUDE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for prelude\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"PRELUDE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"PRELUDE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'C'){\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme,\"PRODUCE\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for prelude\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"PRODUCE\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"PRODUCE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter R\n else if(sourcecode.charAt(i) == 'R'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'C'){\n lexeme = lexeme.concat(\"C\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'S'){\n lexeme = lexeme.concat(\"S\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"RECORDS\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for records\n if(sourcecode.charAt(i) == ' ')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"RECORDS\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"RECORDS has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n } \n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'P'){\n lexeme = lexeme.concat(\"P\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"E\");\n i++;\n if(sourcecode.charAt(i) == 'A'){\n lexeme = lexeme.concat(\"A\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"REPEAT\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for repeat\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '(')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"REPEAT\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"REPEAT has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter S\n else if(sourcecode.charAt(i) == 'S'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"S\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'P'){\n lexeme = lexeme.concat(\"P\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"STOP\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for stop\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == ';')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"STOP\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"STOP has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n else if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'I'){\n lexeme = lexeme.concat(\"I\");\n i++;\n if(sourcecode.charAt(i) == 'N'){\n lexeme = lexeme.concat(\"N\");\n i++;\n if(sourcecode.charAt(i) == 'G'){\n lexeme = lexeme.concat(\"G\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"STRING\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for string\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == ';')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"STRING\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"STRING has an invalid Delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&' \n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //Starting Letter T\n else if(sourcecode.charAt(i) == 'T'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"t\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"r\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"u\");\n i++;\n if(sourcecode.charAt(i) == 'E'){\n lexeme = lexeme.concat(\"e\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{\"true\", \"Boolean_Literal\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for true\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n'||sourcecode.charAt(i) == ';'\n ||sourcecode.charAt(i) == ','||sourcecode.charAt(i) == '}'||sourcecode.charAt(i)=='('\n ||sourcecode.charAt(i)==')')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{\"true\", \"Boolean_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{\"true\", \"TRUE has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '(' )\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '(')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n else if(sourcecode.charAt(i) == 'W'){\n lexeme = \"\";\n lexeme = lexeme.concat(\"W\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n i++;\n if(sourcecode.charAt(i) == 'L'){\n lexeme = lexeme.concat(\"L\");\n i++;\n if(sourcecode.charAt(i) == 'D'){\n lexeme = lexeme.concat(\"D\");\n i++;\n if(sourcecode.charAt(i) == 'T'){\n lexeme = lexeme.concat(\"T\");\n i++;\n if(sourcecode.charAt(i) == 'O'){\n lexeme = lexeme.concat(\"O\");\n i++;\n if(sourcecode.charAt(i) == 'U'){\n lexeme = lexeme.concat(\"U\");\n i++;\n if(sourcecode.charAt(i) == 'R'){\n lexeme = lexeme.concat(\"R\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"WORLDTOUR\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n i++;\n //Delimiter for true\n if(sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '\\n')\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"WORLDTOUR\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n else\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Error Table\n error.addRow(new String[]{lexeme, \"WORLDTOUR has invalid Delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n i--; //LookAhead\n check = 1; //Determines that the lexeme is a reserved word\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n if(check == 0) //check if it is an id \n {\n int sample = 0;\n int k = 1;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'|| sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '(')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n }\n else\n {\n while((Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n && k <= 14)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '{')\n {\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n //System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\";\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if((Character.isLetter(sourcecode.charAt(i)) == false && Character.isDigit(sourcecode.charAt(i)) == false))\n {\n error.addRow(new String[]{lexeme, \" Variables are combination of Letters and Numbers.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else if (k > 14)\n {\n error.addRow(new String[]{lexeme, \" Variables only consists of 15 Characters.\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n } \n }\n }\n \n //--END OF RESERVED WORDS--//\n\n //--START OF RESERVED SYMBOLS--//\n\n // LOGICAL Symbols\n else if(sourcecode.charAt(i) == '&')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"&\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme,\"Unrecognized Character\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '&')\n {\n lexeme = lexeme.concat(\"&\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"&& has invalid Delimeter\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme,\"Unrecognized Character\",\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '|')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"|\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme,\"Unrecognized Character\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '|')\n {\n lexeme = lexeme.concat(\"|\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme,\"|| has invalid delimeter.\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme,\"Unrecognized Character\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n //--END OF LOGICAL SYMBOLS--//\n\n //--START OF MATHEMATICAL SYMBOLS--//\n else if(sourcecode.charAt(i) == '/')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"/\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(')\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme,\"/ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '+')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"+\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '||sourcecode.charAt(i) == '(' || sourcecode.charAt(i)==')')\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(sourcecode.charAt(i) == '+')\n {\n lexeme = lexeme.concat(\"+\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Increment Operator\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == ';'|| Character.isLetter(sourcecode.charAt(i))\n || sourcecode.charAt(i) == ')')\n {\n model.addRow(new String[]{lexeme,\"Increment Operator\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"++ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n\n }\n else\n {\n error.addRow(new String[]{lexeme,\"+ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '-')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"-\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if( Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true)\n {\n i--;\n }\n else if(sourcecode.charAt(i) == '(' || sourcecode.charAt(i) == ' ')\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else if(sourcecode.charAt(i) == '-')\n {\n lexeme = lexeme.concat(\"-\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Decrement Operator\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isLetter(sourcecode.charAt(i))==true || Character.isDigit(sourcecode.charAt(i))==true)\n {\n if(Character.isDigit(sourcecode.charAt(i-3))||Character.isLetter(sourcecode.charAt(i-3) ))\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"-\");\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n i--;\n }\n else\n {\n model.addRow(new String[]{lexeme, \"Decrement Operator\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n else if(sourcecode.charAt(i)==';'||sourcecode.charAt(i)==' ')\n {\n model.addRow(new String[]{lexeme, \"Decrement Operator\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"-- has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n \n /*else if(Character.isDigit(sourcecode.charAt(i)) == true)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n int sample = 0;\n int k = 1;\n\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t')\n {\n model.addRow(new String[]{lexeme, \"Integer\", \"Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n while(Character.isDigit(sourcecode.charAt(i)) == true && k <= 9)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t')\n {\n model.addRow(new String[]{lexeme, \"Integer\"});\n lexeme = \"\";\n sample = 0;\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if(sourcecode.charAt(i) == '.')\n {\n lexeme += sourcecode.charAt(i);\n i++;\n k = 0;\n while( Character.isDigit(sourcecode.charAt(i)) == true && k <= 9)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t')\n {\n model.addRow(new String[]{lexeme, \"Float\"});\n lexeme = \"\";\n sample = 0;\n i--;\n break;\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n if((Character.isDigit(sourcecode.charAt(i)) == false) || (k == 10 && sample == 1))\n {\n error.addRow(new String[]{lexeme, \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if (k < 10 && sample == 1)\n {\n error.addRow(new String[]{lexeme, \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n else if((Character.isDigit(sourcecode.charAt(i)) == false)\n || (k == 10 && sample == 1))\n {\n error.addRow(new String[]{lexeme, \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if (k < 10 && sample == 1)\n {\n error.addRow(new String[]{lexeme, \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }*/\n }\n }\n \n //*\n else if(sourcecode.charAt(i) == '*')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"*\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme,\"* has invalid delimeter\", \" Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n //%\n\n else if(sourcecode.charAt(i) == '%')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"%\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '(')\n {\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"% has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n } \n //--END OF MATHEMATICAL SYMBOLS--/\n\n else if(sourcecode.charAt(i) == ';')\n {\n lexeme=\"\";\n lexeme = lexeme.concat(\";\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\n'\n || sourcecode.charAt(i) == '(' || sourcecode.charAt(i) == ')') //Delims of ;\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"; has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n //--START OF RELATIONAL SYMBOLS AND MAY LOGICAL DIN DITO NA !(NOT) --//\n\n else if(sourcecode.charAt(i) == '>')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\">\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of <\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(sourcecode.charAt(i) == '=')\n {\n lexeme = lexeme.concat(\"=\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of <=\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \">= has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme, \"> has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '<')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"<\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of <\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(sourcecode.charAt(i) == '=')\n {\n lexeme = lexeme.concat(\"=\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of <=\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"<= has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme, \"< has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '=')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"=\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '\"'\n || sourcecode.charAt(i) == '(' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '\\'' || sourcecode.charAt(i) == ' '\n ||sourcecode.charAt(i)=='[') //assignment symbol\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(sourcecode.charAt(i) == '=')\n {\n lexeme = lexeme.concat(\"=\");\n if(i == (sourcecode.length()-1)) //if walang delimiter\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of ==\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"== has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme,\"= has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '!')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"!\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(') //Delims of !\n {\n model.addRow(new String[]{lexeme, \"Logical Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(sourcecode.charAt(i) == '=')\n {\n lexeme = lexeme.concat(\"=\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' '|| sourcecode.charAt(i) == '(')//Delims of !=\n {\n model.addRow(new String[]{lexeme, \"Relational Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme,\"!= has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme,\"! has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n //--END OF RELATIONAL SYMBOLS AND MAY LOGICAL DIN DITO NA !(NOT) --\n\n //--START OF ESCAPE CHARACTERS--\n else if(sourcecode.charAt(i) == '\\\\')\n {\n \n lexeme = lexeme.concat(\"\\\\\");\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if((Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\t'\n || (!(Character.isDigit(sourcecode.charAt(i))) == true)))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else if(sourcecode.charAt(i) == '\\\"')\n {\n lexeme = lexeme.concat(\"\\\"\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if((Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\t'\n || (!(Character.isDigit(sourcecode.charAt(i))) == true)))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme,\"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else if(sourcecode.charAt(i) == '\\\\')\n {\n lexeme = lexeme.concat(\"\\\\\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if((Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\t'\n || (!(Character.isDigit(sourcecode.charAt(i))) == true))\n && sourcecode.charAt(i) != '\\\\')\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else if(sourcecode.charAt(i) == 'n')\n {\n lexeme = lexeme.concat(\"n\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme,\"Escape Character\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if((Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\t'\n || (!(Character.isDigit(sourcecode.charAt(i))) == true)))\n {\n model.addRow(new String[]{lexeme,\"Escape Character\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else if(sourcecode.charAt(i) == 't')\n {\n lexeme = lexeme.concat(\"t\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if((Character.isDigit(sourcecode.charAt(i)) == true || Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\t'\n || (!(Character.isDigit(sourcecode.charAt(i))) == true)))\n {\n model.addRow(new String[]{lexeme, \"Escape Character\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme+ \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n //----END OF ESCAPE CHARACTERS--\n\n // '\n else if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme,\"Expecting Character Literal\",\"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\\\')\n {\n lexeme = lexeme.concat(\"\\\\\");\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Invalid Delimiter for ' \" , \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n\n else if(sourcecode.charAt(i) == '\\\"')\n {\n lexeme = lexeme.concat(\"\\\"\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '\\\\')\n {\n lexeme = lexeme.concat(\"\\\\\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\" , \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == 'n')\n {\n lexeme = lexeme.concat(\"n\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n\n else if(sourcecode.charAt(i) == 't')\n {\n lexeme = lexeme.concat(\"t\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n else if(sourcecode.charAt(i)=='\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n\n else\n {\n lexeme += sourcecode.charAt(i);\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(sourcecode.charAt(i) == '\\'')\n {\n lexeme = lexeme.concat(\"\\'\");\n model.addRow(new String[]{lexeme, \"Character_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme,\"Expecting ' for Character Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n }\n }\n\n //--START OF OTHER RESERVED SYMBOLS--\n\n else if(sourcecode.charAt(i) == ':')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\":\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1)))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{lexeme, \": has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '.')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\".\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == ',' || sourcecode.charAt(i+1) == ';' || sourcecode.charAt(i+1) == '\"'\n || sourcecode.charAt(i+1) == '\\''|| sourcecode.charAt(i+1) == '('|| sourcecode.charAt(i+1) == ')')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\". \" , \". has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == ',')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\",\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == ',' || sourcecode.charAt(i+1) == ';' || sourcecode.charAt(i+1) == '\"'\n || sourcecode.charAt(i+1) == '\\''||sourcecode.charAt(i+1)=='{'||Character.isDigit(sourcecode.charAt(i+1)))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\", \" , \", has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '(')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"(\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == '(' || sourcecode.charAt(i+1) == ')' || sourcecode.charAt(i+1) == '~'\n || sourcecode.charAt(i+1) == '!')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"( \" , \"( has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == ')')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\")\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == '(' || sourcecode.charAt(i+1) == ')' || sourcecode.charAt(i+1) == '~'\n || sourcecode.charAt(i+1) == '!'|| sourcecode.charAt(i+1) == ';'|| sourcecode.charAt(i+1) == '{'||sourcecode.charAt(i+1)=='+'\n ||sourcecode.charAt(i+1)=='-'||sourcecode.charAt(i+1)=='='||sourcecode.charAt(i+1)=='*'||sourcecode.charAt(i+1)=='/'\n ||sourcecode.charAt(i+1)=='%'||sourcecode.charAt(i+1)=='<'||sourcecode.charAt(i+1)=='>'||sourcecode.charAt(i+1) == ']')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\") \" , \") has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '{')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"{\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))||\n sourcecode.charAt(i+1)=='\"'||sourcecode.charAt(i+1)=='('||sourcecode.charAt(i+1)=='{'||sourcecode.charAt(i+1)=='\\'')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"{ \" , \"{ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '}')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"}\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == ',' || sourcecode.charAt(i+1) == ';'|| sourcecode.charAt(i+1) == '}')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"}\" , \"} has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n // \"\n else if(sourcecode.charAt(i) == '\"')\n {\n\n lexeme = lexeme.concat(\"\\\"\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting String Literal\", \"Error At Line \"+(j+1)+\", Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n while(sourcecode.charAt(i) != '\"')\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if(i == (sourcecode.length()-1))\n {\n break;\n }\n }\n if(sourcecode.charAt(i) == '\"')\n {\n lexeme += sourcecode.charAt(i);\n model.addRow(new String[]{lexeme, \"String_Literal\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting \\\" for String Literal \", \" Error At Line \"+(j+1)+\" Column : \"+(i+2)});\n lexeme = \"\";\n }\n }\n }\n// else if(sourcecode.charAt(i) == '\"')\n// {\n// lexeme = lexeme.concat(\"\\\"\");\n// if(i == (sourcecode.length()-1))\n// {\n// error.addRow(new String[]{\"\\\"\", \"Expecting String Literal\", \" Error At Line \"+(j+1)+\" Column : \"+(i+2)});\n// lexeme = \"\";\n// }\n// else\n// {\n// i++;\n// while(sourcecode.charAt(i) != '\"')\n// {\n// if(sourcecode.charAt(i)=='\\\\')\n// {\n// // int y=i+1;\n// if(sourcecode.charAt(i+1)=='\"'){\n// lexeme += sourcecode.charAt(i+1);\n// i=i+2;\n// }\n// }\n// else\n// {\n// lexeme += sourcecode.charAt(i);\n// i++;\n// }\n//// if(i == (sourcecode.length()-1))\n//// {\n//// break;\n//// }\n// }\n// if(sourcecode.charAt(i) == '\"')\n// {\n// lexeme = lexeme.concat(\"\\\"\");\n// if(i == (sourcecode.length()-1))\n// {\n// model.addRow(new String[]{lexeme, \"String_Literal\",\"\"+(j+1),\"\"+(i+2)});\n// lexeme = \"\";\n// }\n// else\n// {\n// if(sourcecode.charAt(i+1)=='\\n'||sourcecode.charAt(i+1)==';'||sourcecode.charAt(i+1)==' '\n// ||sourcecode.charAt(i+1)==','||sourcecode.charAt(i+1)=='}'||sourcecode.charAt(i+1) == '.')\n// {\n// model.addRow(new String[]{lexeme, \"String_Literal\",\"\"+(j+1),\"\"+(i+1)});\n// lexeme = \"\";\n// }\n// else\n// {\n// //lexeme=\"\";\n// lexeme += sourcecode.charAt(i+1);\n// error.addRow(new String[]{lexeme ,\"String Literal has invalid delimeter\", \" Error at Line \"+(j+1)+\" Column :\"+(i+2)});\n// lexeme = \"\";\n// }\n// }\n// }\n// else if(i == (sourcecode.length()-1))\n// {\n// error.addRow(new String[]{lexeme, \"Expecting \\\" for String Literal \", \" Error At Line \"+(j+1)+\" Column : \"+(i+2)});\n// lexeme = \"\";\n// }\n// }\n// }\n else if(sourcecode.charAt(i) == '#')\n {\n // lexeme = lexeme.concat(\"#\");\n if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{\"#\", \"Expecting # for Comment\", \" Error At Line \"+(j+1)+\" Column : \"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n while(sourcecode.charAt(i) != '#')\n {\n\n if(sourcecode.charAt(i)=='\\\\')\n {\n // int y=i+1;\n if(sourcecode.charAt(i+1)=='\"'){\n lexeme += sourcecode.charAt(i+1);\n i=i+2;\n }\n else if(sourcecode.charAt(i+1)=='#')\n {\n lexeme += sourcecode.charAt(i+1);\n i=i+2;\n }\n }\n else\n {\n lexeme += sourcecode.charAt(i);\n i++;\n }\n// if(i == (sourcecode.length()-1))\n// {\n// break;\n// }\n }\n if(sourcecode.charAt(i) == '#')\n {\n // lexeme = lexeme.concat(\"\\#\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Comment\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n if(sourcecode.charAt(i+1)=='\\n'||sourcecode.charAt(i+1)==';'||sourcecode.charAt(i+1)==' ')\n {\n model.addRow(new String[]{lexeme, \"Comment\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n //lexeme=\"\";\n lexeme += sourcecode.charAt(i+1);\n error.addRow(new String[]{lexeme ,\"Comment has invalid delimeter\", \" Error at Line \"+(j+1)+\" Column :\"+(i+2)});\n lexeme = \"\";\n }\n }\n }\n else if(i == (sourcecode.length()-1))\n {\n error.addRow(new String[]{lexeme, \"Expecting # for Comment\", \" Error At Line \"+(j+1)+\" Column : \"+(i+2)});\n lexeme = \"\";\n }\n }\n }\n // \\n\n// else if(sourcecode.charAt(i) == '\\n')\n// {\n// lexeme = \"\";\n// lexeme = lexeme.concat(\"\\\\n\");\n// model.addRow(new String[]{lexeme, \"New Line\",\"\"+(j+1),\"\"+(i+2)});\n// lexeme = \"\";\n// }\n \n // [\n else if(sourcecode.charAt(i) == '[')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"[\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == b || \n Character.isDigit(sourcecode.charAt(i+1))|| Character.isAlphabetic(sourcecode.charAt(i+1))|| sourcecode.charAt(i+1)=='('\n ||sourcecode.charAt(i+1)==']'||sourcecode.charAt(i+1)=='('||sourcecode.charAt(i+1)=='+'||sourcecode.charAt(i+1)=='-')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"[\" ,\"[ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n // ]\n else if(sourcecode.charAt(i) == ']')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"]\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == b\n ||sourcecode.charAt(i+1) == '+'||sourcecode.charAt(i+1) == '-'||sourcecode.charAt(i+1) == '*'||sourcecode.charAt(i+1) == '/'\n ||sourcecode.charAt(i+1) == '>'||sourcecode.charAt(i+1) == '<'||sourcecode.charAt(i+1) == ';'||sourcecode.charAt(i+1)=='[' \n ||sourcecode.charAt(i+1)=='='||sourcecode.charAt(i+1)==','||sourcecode.charAt(i+1)==')'||sourcecode.charAt(i+1)=='('\n ||sourcecode.charAt(i+1)=='.'||sourcecode.charAt(i+1)=='~')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"]\" , \"] has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n //~\n else if(sourcecode.charAt(i) == '~')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"~\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(Character.isAlphabetic(sourcecode.charAt(i+1)))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"~\" , \"~ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n // \\t\n else if(sourcecode.charAt(i) == '\\t')\n {\n lexeme = lexeme.concat(\"\\\\t\");\n model.addRow(new String[]{lexeme, \"Horizontal Tab\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n //--END OF OTHER RESERVED SYMBOLS--\n\n //--START OF INTEGER AND FLOAT LITERALS--\n\n else if(Character.isDigit(sourcecode.charAt(i)) == true) // Integer and Float Literals\n {\n lexeme += sourcecode.charAt(i);\n i++;\n int sample = 0; //check if correct si delimeter\n int k = 1;\n int a=10;\n char b =(char)a;\n //System.out.println(\"hehe\"+b+\"hehe\");\n if(i == (sourcecode.length())) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n\n error.addRow(new String[]{lexeme ,lexeme+\" has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n else\n {\n if(sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == ':'\n || sourcecode.charAt(i) == '\\t' || sourcecode.charAt(i) == ' ') //Delimiters for INT Literals (INT Literals)\n {\n model.addRow(new String[]{lexeme, \"Integer_Literal\",\"\"+(j+1),\"\"+(i+2)});\n lexeme=\"\";\n if(sourcecode.charAt(i)==' ')\n {\n lexeme+= sourcecode.charAt(i);\n model.addRow(new String[]{lexeme, \"Space\",\"\"+(j+1),\"\"+(i+2)});\n }\n else if(sourcecode.charAt(i)=='+'||sourcecode.charAt(i)=='-')\n {\n lexeme+=sourcecode.charAt(i);\n if(sourcecode.charAt(i+1)=='-'&& sourcecode.charAt(i)=='-'){ \n\n lexeme+= sourcecode.charAt(i+1);\n model.addRow(new String[]{lexeme, \"Decrement Operator\",\"\"+(j+1),\"\"+(i+2)});\n i++;\n }\n else if(sourcecode.charAt(i+1)=='+'&& sourcecode.charAt(i)=='+'){\n lexeme+= sourcecode.charAt(i+1);\n model.addRow(new String[]{lexeme, \"Increment Operator\",\"\"+(j+1),\"\"+(i+2)});\n i++;\n }\n else{\n model.addRow(new String[]{lexeme, \"Mathematical Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme=\"\";\n }\n \n }\n else if(sourcecode.charAt(i) == ',')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\",\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == ',' || sourcecode.charAt(i+1) == ';' || sourcecode.charAt(i+1) == '\"'\n || sourcecode.charAt(i+1) == '\\''||sourcecode.charAt(i+1)=='{'||Character.isDigit(sourcecode.charAt(i+1)))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\", \" , \", has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n else if(sourcecode.charAt(i) == '[')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"[\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == b || \n Character.isDigit(sourcecode.charAt(i+1))|| Character.isAlphabetic(sourcecode.charAt(i+1))|| sourcecode.charAt(i+1)=='('\n ||sourcecode.charAt(i+1)==']'||sourcecode.charAt(i+1)=='('||sourcecode.charAt(i+1)=='+'||sourcecode.charAt(i+1)=='-')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"[\" ,\"[ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n // ]\n else if(sourcecode.charAt(i) == ']')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"]\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == b\n ||sourcecode.charAt(i+1) == '+'||sourcecode.charAt(i+1) == '-'||sourcecode.charAt(i+1) == '*'||sourcecode.charAt(i+1) == '/'\n ||sourcecode.charAt(i+1) == '>'||sourcecode.charAt(i+1) == '<'||sourcecode.charAt(i+1) == ';'||sourcecode.charAt(i+1)=='[' \n ||sourcecode.charAt(i+1)=='=' || sourcecode.charAt(i+1) == ' ' || sourcecode.charAt(i+1) == ',')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"]\" , \"] has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n else if(sourcecode.charAt(i) == ';')\n {\n lexeme=\"\";\n lexeme = lexeme.concat(\";\");\n if(i == (sourcecode.length()-1))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n i++;\n if(Character.isLetter(sourcecode.charAt(i)) == true\n || sourcecode.charAt(i) == ' ' || sourcecode.charAt(i) == '\\n'\n || sourcecode.charAt(i) == '(' || sourcecode.charAt(i) == ')') //Delims of ;\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else\n {\n error.addRow(new String[]{lexeme, \"; has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n else if(sourcecode.charAt(i)==':')\n {\n lexeme+=sourcecode.charAt(i);\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1)))\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\": \" , \": has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n } \n }\n else if(sourcecode.charAt(i) == '(')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"(\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == '(' || sourcecode.charAt(i+1) == ')' || sourcecode.charAt(i+1) == '~'\n || sourcecode.charAt(i+1) == '!')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"( \" , \"( has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == ')')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\")\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == '(' || sourcecode.charAt(i+1) == ')' || sourcecode.charAt(i+1) == '~'\n || sourcecode.charAt(i+1) == '!'|| sourcecode.charAt(i+1) == ';'|| sourcecode.charAt(i+1) == '{'||sourcecode.charAt(i+1)=='+'\n ||sourcecode.charAt(i+1)=='-'||sourcecode.charAt(i+1)=='='||sourcecode.charAt(i+1)=='*'||sourcecode.charAt(i+1)=='/'\n ||sourcecode.charAt(i+1)=='%'||sourcecode.charAt(i+1)=='<'||sourcecode.charAt(i+1)=='>'||sourcecode.charAt(i+1) == ']')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\") \" , \") has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '{')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"{\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||sourcecode.charAt(i+1) == '\\n' ||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))||\n sourcecode.charAt(i+1)=='\"'||sourcecode.charAt(i+1)=='('||sourcecode.charAt(i+1)=='{'||sourcecode.charAt(i+1)=='\\'')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"{ \" , \"{ has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n\n else if(sourcecode.charAt(i) == '}')\n {\n lexeme = \"\";\n lexeme = lexeme.concat(\"}\");\n if(i == (sourcecode.length()-1)) //Detects if the line has reached the end\n { //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\"; //Clears the value for the next Lexeme\n }\n else\n {\n if(sourcecode.charAt(i+1) == ' '||\n Character.isAlphabetic(sourcecode.charAt(i+1)) || Character.isDigit(sourcecode.charAt(i+1))\n || sourcecode.charAt(i+1) == ',' || sourcecode.charAt(i+1) == ';'|| sourcecode.charAt(i+1) == '}')\n {\n model.addRow(new String[]{lexeme, \"Reserved Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n else\n {\n error.addRow(new String[]{\"}\" , \"} has invalid delimeter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme=\"\";\n }\n }\n }\n // else if(sourcecode.charAt(i)=='*'||sourcecode.charAt(i)=='/')\n else\n {\n lexeme+= sourcecode.charAt(i);\n error.addRow(new String[]{lexeme, \"Unrecog Symbol\",\"\"+(j+1),\"\"+(i+2)});\n lexeme=\"\";\n }\n }\n \n \n else\n {\n while(Character.isDigit(sourcecode.charAt(i)) == true && k <= 9) //Determines the length of the INT\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == ':'\n || sourcecode.charAt(i) == '\\t'|| sourcecode.charAt(i) == '\\n' &&(k<=9))\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n model.addRow(new String[]{lexeme, \"Integer_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\";\n sample = 0;\n i--; //LookAhead\n break; //break na kasi valid naman na si lexeme\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n\n if(sourcecode.charAt(i) == '.') //Determines if the value if FLOAT\n {\n lexeme += sourcecode.charAt(i);\n i++;\n k = 0;\n \n while( Character.isDigit(sourcecode.charAt(i)) == true && k <= 9)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == ':'\n || sourcecode.charAt(i) == '\\t') // Delimeter\n {\n //TRAILING ZEROES ON WORKING\n //lexeme.replace(' ',lexeme.charAt(lexeme.length()-1));\n // lexeme.charAt(lexeme.length()-1);\n model.addRow(new String[]{lexeme, \"Float_Literal\",\"\"+(j+1),\"\"+(i+1)});\n lexeme = \"\"; //Clears the variable for Lexeme\n sample = 0;\n i--; // LookAhead Character\n break; //break na kasi valid naman na si lexeme\n }\n else\n {\n sample = 1;\n }\n k++;\n }\n if((Character.isDigit(sourcecode.charAt(i)) == false)\n || (k >= 10))\n {\n error.addRow(new String[]{lexeme, \"\" ,\"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n else if((Character.isDigit(sourcecode.charAt(i)) == false) //Determines if the next character is not digit\n || (k >= 10 && sample == 1)) //Determines if the number exceeds the length of 10 digits\n {\n error.addRow(new String[]{lexeme,\"\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n else if(k >= 10 && sample == 1)\n {\n error.addRow(new String[]{lexeme+ \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n }\n\n //--END OF INTEGER AND FLOAT LITERALS--//\n \n //--START OF IDENTIFIER CHECKER--\n else if(Character.isLetter(sourcecode.charAt(i)) == true)\n {\n lexeme=\"\";\n lexeme += sourcecode.charAt(i);\n i++;\n int sample = 0;\n int k = 1; // Storage for Length of Variable\n if((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '.' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '~' && k<=1) //Delimeter for Variable\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n if(stringList.contains(lexeme))\n {\n //System.out.println(\"Hala nahulog\");\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else{\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n idcount++;\n }\n lexeme = \"\"; // Clears the Lexeme\n i--; // LookAhead\n \n }\n else\n {\n while(Character.isLetter(sourcecode.charAt(i)) == true || Character.isDigit(sourcecode.charAt(i)) == true || sourcecode.charAt(i)=='_' && k <= 15)\n {\n lexeme += sourcecode.charAt(i);\n i++;\n if(((i == sourcecode.length()) || sourcecode.charAt(i) == '<' || sourcecode.charAt(i) == ' '\n || sourcecode.charAt(i) == '=' || sourcecode.charAt(i) == '>' || sourcecode.charAt(i) == '!'\n || sourcecode.charAt(i) == '-' || sourcecode.charAt(i) == '+'\n || sourcecode.charAt(i) == '*' || sourcecode.charAt(i) == '}'\n || sourcecode.charAt(i) == '/' || sourcecode.charAt(i) == '%'\n || sourcecode.charAt(i) == '|' || sourcecode.charAt(i) == '&'\n || sourcecode.charAt(i) == ')' || sourcecode.charAt(i) == ';'\n || sourcecode.charAt(i) == '[' || sourcecode.charAt(i) == ']'\n || sourcecode.charAt(i) == ',' || sourcecode.charAt(i) == '\\t'\n || sourcecode.charAt(i) == '.' || sourcecode.charAt(i) == '('\n || sourcecode.charAt(i) == '{' || sourcecode.charAt(i) == '~') && (k<=14)) //Delimeter for Variable\n {\n //Adds the Lexeme, Line # and Column # to the Lexical Table\n if(stringList.contains(lexeme))\n {\n idstring = stringList.toArray(new String[] {});\n for(idcount=1;idcount<idstring.length;idcount++)\n {\n// System.out.println(idstring[idcount]);\n if(idstring[idcount].equals(lexeme))\n {\n //System.out.println(\"nangyayari ba ako\");\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n }\n }\n }\n else\n {\n stringList.add(lexeme);\n model.addRow(new String[]{lexeme,\"ID\",\"\"+(j+1),\"\"+(i+1),\"ID\"+idcount});\n lexeme = \"\"; // Clears the Lexeme\n idcount++;\n }\n sample = 0;\n i--; //LookAhead\n break; //Exits the loop\n }\n else\n {\n sample = 1; //determines if the delimiter is incorrect\n }\n k++;\n }\n// if(Character.isLetter(sourcecode.charAt(i)) == false || Character.isDigit(sourcecode.charAt(i)) == false && k <= 15 && sample == 1)\n// {\n// error.addRow(new String[]{lexeme, \"Invalid Delimiter\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n// lexeme = \"\";\n// i--;\n// }\n if (k > 15 && sample == 1) //else if ((k < 10 && sample == 1) || k == 1)\n {\n error.addRow(new String[]{lexeme, \"Identifiers only consist of 15 characters\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\"; \n i--;\n }\n else if (sample == 1) //else if ((k < 10 && sample == 1) || k == 1)\n {\n error.addRow(new String[]{lexeme, \"INVALID DELIMITER OF IDENTIFIER\", \"Error At Line \"+(j+1)+\", Column : \"+(i+1)});\n lexeme = \"\";\n i--;\n }\n }\n }\n //--END OF IDENTIFIER CHECKER--\n\n else if(sourcecode.charAt(i) == ' ')\n {\n lexeme += sourcecode.charAt(i);\n model.addRow(new String[]{\" \",\"Space\",\"\"+(j+1),\"\"+(i+2)});\n lexeme = \"\";\n }\n// else if(sourcecode.charAt(i) == '\\n')\n// {\n// lexeme += sourcecode.charAt(i);\n// model.addRow(new String[]{\"\\n\", \"New Line\",\"\"+(j+1),\"\"+(i+2)});\n// lexeme = \"\";\n// }\n else\n {\n error.addRow(new String[]{\"\",\"INVALID - Unrecognized Character\", \"Error at Line\"+(j+1)+\", Column:\"+(i+1)});\n }\n check = 0;\n }\n }catch(StringIndexOutOfBoundsException e)\n {\n\n }\n }// TODO add your handling code here:\n if(tblError.getRowCount() == 0) //check the error table of Lexical Error Table and THERE IS NO ERROR\n {\n btnSyntax.setEnabled(true); // Enables the Syntax Button\n tabMainTables.setSelectedIndex(0);\n tabErrorTables.setSelectedIndex(0);\n JOptionPane.showMessageDialog(null, \"No Lexical Error Detected!\");\n //playSound(\"Justin Bieber - Baby.wav\");\n\n }\n else\n {\n btnSyntax.setEnabled(false); \n btnRemove.setEnabled(true); \n tabMainTables.setSelectedIndex(0); \n tabErrorTables.setSelectedIndex(0); \n //playSound(\"318_harry_potter_hedwigs_theme_song_music_mp3_ringtone_ringtone_mp3.wav\");\n JOptionPane.showMessageDialog(null, \"Lexical Error Detected!\");\n }\n }", "public void parsePseudocode() {\n\t\tputTokens();\n\t\tsetTokenLength();\n\t\ttokenize();\n\t\tdataToJS();\n\t}", "public static void decode () {\n // read the input\n int firstThing = BinaryStdIn.readInt();\n s = BinaryStdIn.readString();\n char[] t = s.toCharArray();\n char[] firstColumn = new char[t.length];\n int [] next = new int[t.length];\n \n // copy array and sort\n for (int i = 0; i < t.length; i++) {\n firstColumn[i] = t[i];\n }\n Arrays.sort(firstColumn);\n \n // decode\n int N = t.length;\n int [] count = new int[256];\n \n // counts frequency of each letter\n for (int i = 0; i < N; i++) {\n count[t[i]]++;\n }\n \n int m = 0, j = 0;\n \n // fills the next[] array with appropriate values\n while (m < N) {\n int _count = count[firstColumn[m]];\n while (_count > 0) {\n if (t[j] == firstColumn[m]) {\n next[m++] = j;\n _count--;\n }\n j++;\n }\n j = 0;\n }\n \n // decode the String\n int _next = next.length;\n int _i = firstThing;\n for (int i = 0; i < _next; i++) {\n _i = next[_i];\n System.out.print(t[_i]);\n } \n System.out.println();\n }", "public static void main(String[] args) {\n RegexParser regexParser = new RegexParser(new File(args[0]));\n regexParser.parseCharClasses();\n regexParser.parseTokens();\n regexParser.buildDFATable();\n // write DFA Table to file\n try {\n BufferedWriter tableWriter = new BufferedWriter(new FileWriter(new File(args[2])));\n for (int i = 0; i < regexParser.dfaTable.tableRows.size(); i++) {\n tableWriter.write(\"State\" + i);\n tableWriter.newLine();\n for (int j = 0; j < 95; j++) {\n //if (regexParser.dfaTable.tableRows.get(i).nextStates[j] != 1) {\n tableWriter.write(\" \" + (char)(j + 32) + \" \" + regexParser.dfaTable.tableRows.get(i).nextStates[j]);\n //}\n }\n tableWriter.newLine();\n }\n tableWriter.newLine();\n tableWriter.write(\"Accept States\");\n tableWriter.newLine();\n for (int j = 0; j < regexParser.dfaTable.tableRows.size(); j++) {\n for (int i = 0; i < regexParser.dfaTable.nfa.acceptStates.size(); i++) {\n if (regexParser.dfaTable.tableRows.get(j).nfaStates.contains(regexParser.dfaTable.nfa.acceptStates.get(i))) {\n tableWriter.write(\" \" + j);\n }\n }\n }\n tableWriter.close();\n }\n catch (Exception e) {\n System.out.println(\"Could not write to table file\");\n System.exit(0);\n }\n TableWalker tw = new TableWalker(regexParser.dfaTable, new File(args[1]), new File(args[3]));\n System.out.println(\"Success! Check your output files!\");\n//Part 2, piece 1: parsing the grammar\n LL1GrammarParser parser = new LL1GrammarParser(new File(args[4]), regexParser.specReader.tokens);\n parser.parseGrammar();\n\n//piece 2/3: first and follow sets \n System.out.println(\"Creating First and Follow Sets: \");\n\n LL1FFSets sets = new LL1FFSets(parser.rules);\n\n System.out.println(\"Working on the Parsing Table\");\n//piece 4/5: LL(1) parsing table and running it. Success/reject message here.\n LL1ParsingTable table = new LL1ParsingTable(sets, regexParser.specReader.tokens,tw.parsedTokens, parser.rules);\n System.out.println(table.run());\n\n\n }", "private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }", "int[] translate() {\n int[] ans = new int[6];\n ans[0] = registers[CPU.IF_ID[0]];\n ans[1] = (CPU.IF_ID[4] == 0 ? CPU.IF_ID[3] : registers[CPU.IF_ID[1]]);\n ans[2] = registers[CPU.IF_ID[2]];\n ans[3] = CPU.IF_ID[2];\n ans[4] = CPU.IF_ID[4];\n ans[5] = CPU.IF_ID[3];\n CPU.alu.used = true;\n ufile = false;\n return ans;\n }", "public char[][] regenCharTable();", "private static void translate(Sequence seq) {\n int frame;\n if(seq.getFrameWithLongestORF()==2){\n frame =0;\n }\n else if (seq.getFrameWithLongestORF()==0){\n //** TEst annomalies??? this frame produces the best aa\n frame = 0;\n }\n else if (seq.getFrameWithLongestORF()==1){\n frame = 2;\n }\n else if(seq.getFrameWithLongestORF()==3){\n frame = 0;\n compliment(seq);\n }\n else if(seq.getFrameWithLongestORF()==4){\n frame = 1;\n compliment(seq);\n }\n else{\n frame = 2;\n compliment(seq);\n }\n String temp = seq.getRawSeq();\n StringBuilder finalreturn = new StringBuilder();\n String codon;\n for (int i = frame; i < seq.getLength() - 2; i+=3) {\n codon = temp.substring(i, i+3);\n if(codon.contains(\"N\") || codon.contains(\"n\")){\n finalreturn.append(\"^\");\n }\n else {\n finalreturn.append(codonsMap.get(codon));\n }\n }\n seq.setTranslatedAA(finalreturn.toString());\n }", "private AutomatonFromTable automatonFromTable() {\n \tAutomatonFromTable hypothesis = new AutomatonFromTable(inputs);\n\t\t/*\n\t\t * Number of new states in the hypothesis is the \n\t\t * number of distinct rows in the upper half of the observation table\n\t\t */\n\t\tint noOfNewStates = -1;\n\t\tList<List<String>> distinctStates = new ArrayList<>();\n\t\tIterator<Entry<String, List<String>>> it = observationTableUpper.entrySet().iterator();\n\t\twhile(it.hasNext()){\n\t\t\tMap.Entry<String, List<String>> entry = (Map.Entry<String, List<String>>)it.next();\n\t\t\tdistinctStates.add(entry.getValue());\n\t\t}\n\t\tnoOfNewStates = new HashSet<>(distinctStates).size();\n\t\t//Adding those many number of states\n\t\tfor(int i=0;i<noOfNewStates;i++){\n\t\t\tif(i==0){\n\t\t\t\thypothesis.addInitialState();\n\t\t\t}else{\n\t\t\t\thypothesis.addState();\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"No.of new states \"+noOfNewStates);\n\t\t\n\t\t\n\t\tList<Transition> prefixStateMap = new ArrayList<>();\n\t\t\n\t\t//Adding the transitions for those states\n\t\tit = observationTableUpper.entrySet().iterator();\n\t\tSystem.out.println(\"Upper table size \"+observationTableUpper);\n\t\tint currentMaxState = 0;\n\t\twhile(it.hasNext()){\n\t\t\tMap.Entry<String, List<String>> entry = (Map.Entry<String, List<String>>)it.next();\n\t\t\tString prefix = entry.getKey();\n\t\t\tList<String> results = entry.getValue();\n\t\t\tint currentState = getCurrentState(prefix, prefixStateMap);\n\t\t\tSystem.out.println(\"Current State \"+currentState);\n\t\t\tint nextState;\n\t\t\tif(prefix.contains(\"<>\")){\n\t\t\t\tfor(int i=0;i<results.size();i=i+2){\n\t\t\t\t\tTransition transitionDetails = new Transition();\n\t\t\t\t\ttransitionDetails.setPrefix(prefix);\n\t\t\t\t\ttransitionDetails.setInput(results.get(i));\n\t\t\t\t\ttransitionDetails.setOutput(results.get(i+1));\n\t\t\t\t\ttransitionDetails.setCurrentState(currentState);\n\t\t\t\t\tnextState = ++currentMaxState;\n\t\t\t\t\ttransitionDetails.setNextState(nextState);\n\t\t\t\t\tprefixStateMap.add(transitionDetails);\n\t\t\t\t}\n\t\t\t}else if((nextState = checkErrorState(prefix, prefixStateMap))!=-1){\n\t\t\t\tfor(int i=0;i<results.size();i=i+2){\n\t\t\t\t\tTransition transitionDetails = new Transition();\n\t\t\t\t\ttransitionDetails.setPrefix(prefix);\n\t\t\t\t\ttransitionDetails.setInput(results.get(i));\n\t\t\t\t\ttransitionDetails.setOutput(results.get(i+1));\n\t\t\t\t\ttransitionDetails.setCurrentState(currentState);\n\t\t\t\t\ttransitionDetails.setNextState(nextState);\n\t\t\t\t\tprefixStateMap.add(transitionDetails);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i=0;i<results.size();i=i+2){\n\t\t\t\t\tif(!results.get(i+1).equals(\"-\")){\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * Check for two start calls and make sure they end up on the same state.\n\t\t\t\t\t\t * This is Media Player specific and might need to be changed \n\t\t\t\t\t\t * add for conditional checks for other examples. \n\t\t\t\t\t\t * For Android Media Player, calling start after the first call to start\n\t\t\t\t\t\t * doesn't lead to a transition to a new state. So that needs to be specifically handled.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tboolean exceptionCase = false;\n\t\t\t\t\t\tif(prefix.contains(\"$\")){\n\t\t\t\t\t\t\tint lastIndex = prefix.lastIndexOf(\"$\");\n\t\t\t\t\t\t\tString lastCall = prefix.substring(lastIndex+1, prefix.length()-1);\n\t\t\t\t\t\t\tif(lastCall.contains(\"start()\") && results.get(i).contains(\"start()\")){\n\t\t\t\t\t\t\t\tTransition transitionDetails = new Transition();\n\t\t\t\t\t\t\t\ttransitionDetails.setPrefix(prefix);\n\t\t\t\t\t\t\t\ttransitionDetails.setInput(results.get(i));\n\t\t\t\t\t\t\t\ttransitionDetails.setOutput(results.get(i+1));\n\t\t\t\t\t\t\t\ttransitionDetails.setCurrentState(currentState);\n\t\t\t\t\t\t\t\tint result = checkErrorState(\"<\"+results.get(i)+\",\"+results.get(i+1)+\">\", prefixStateMap);\n\t\t\t\t\t\t\t\tif(result!=-1){\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Error state is: \"+result);\n\t\t\t\t\t\t\t\t\tnextState = result;\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tnextState = currentState;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttransitionDetails.setNextState(nextState);\n\t\t\t\t\t\t\t\tprefixStateMap.add(transitionDetails);\n\t\t\t\t\t\t\t\texceptionCase = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}if(!exceptionCase){\n\t\t\t\t\t\t\tTransition transitionDetails = new Transition();\n\t\t\t\t\t\t\ttransitionDetails.setPrefix(prefix);\n\t\t\t\t\t\t\ttransitionDetails.setInput(results.get(i));\n\t\t\t\t\t\t\ttransitionDetails.setOutput(results.get(i+1));\n\t\t\t\t\t\t\ttransitionDetails.setCurrentState(currentState);\n\t\t\t\t\t\t\tint result = checkErrorState(\"<\"+results.get(i)+\",\"+results.get(i+1)+\">\", prefixStateMap);\n\t\t\t\t\t\t\tif(result!=-1){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error state is: \"+result);\n\t\t\t\t\t\t\t\tnextState = result;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tnextState = ++currentMaxState;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttransitionDetails.setNextState(nextState);\n\t\t\t\t\t\t\tprefixStateMap.add(transitionDetails);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnextState = currentState;\n\t\t\t\t\t\tTransition transitionDetails = new Transition();\n\t\t\t\t\t\ttransitionDetails.setPrefix(prefix);\n\t\t\t\t\t\ttransitionDetails.setInput(results.get(i));\n\t\t\t\t\t\ttransitionDetails.setOutput(results.get(i+1));\n\t\t\t\t\t\ttransitionDetails.setCurrentState(currentState);\n\t\t\t\t\t\ttransitionDetails.setNextState(nextState);\n\t\t\t\t\t\tprefixStateMap.add(transitionDetails);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Add all the final transitions to the automaton object\n\t\t */\n\t\tfor(Transition transition: prefixStateMap){\n\t\t\thypothesis.addTransition(transition);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Populate the Tree representation of the Automaton by doing a breadth-first search\n\t\t */\n\t\tint i = 0;\n\t\twhile(i<hypothesis.getNumberStates()){\n\t\t\tList<Transition> successorDetails = new ArrayList<>();\n\t\t\tfor(Transition transition: prefixStateMap){\n\t\t\t\tint startState = transition.getCurrentState();\n\t\t\t\tif(startState==i){\n\t\t\t\t\tsuccessorDetails.add(transition);\n\t\t\t\t\tautomatonTree.put(startState, successorDetails);\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(automatonTree);\n\t\treturn hypothesis;\n\t}", "private void buildWordTable(Scanner source)\n {\n int linenum = 0;\n String currentline = \"\";\n String[] splitsent;\n //Scans file line by line\n while(source.hasNextLine())\n {\n //line number of the file\n linenum++;\n //reads the current line of the file\n currentline = source.nextLine();\n //replaces all punctions to \"\" so the file doesnt read it\n currentline = currentline.replace(\",\", \"\");\n currentline = currentline.replace(\".\", \"\");\n currentline = currentline.replace(\";\", \"\");\n currentline = currentline.replace(\":\", \"\");\n currentline = currentline.replace(\"?\", \"\");\n currentline = currentline.replace(\"!\", \"\");\n //split the line into an array whereever there is a space\n splitsent = currentline.split(\" \");\n for(String run : splitsent)\n {\n update(run,linenum);\n }\n }\n }", "public static void decode()\n {\n \n \n int a = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int len = t.length();\n \n //variables for generating next[] array\n int[] next = new int[len];\n char[] original = t.toCharArray();\n char[] temp = t.toCharArray();\n boolean[] flag = new boolean[len];\n for(int i = 0 ; i < len; i++)\n {\n flag[i] = true;\n }\n \n //sort the encoded string\n decodeSort(temp);\n \n //generating next[] array\n for(int i = 0 ; i < len; i++)\n {\n for(int j = 0 ; j < len; j++)\n {\n if(flag[j])\n { \n if(original[j]==temp[i])\n {\n next[i] = j;\n flag[j]=false;\n break;\n }\n }\n }\n \n }\n \n // decode procedure\n int key = a;\n for (int count = 0; count < len; count++) {\n key = next[key];\n BinaryStdOut.write(t.charAt(key));\n }\n BinaryStdOut.close();\n }", "protected void buildFastLatinTable(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildFastLatinTable(android.icu.impl.coll.CollationData):void\");\n }", "public int translate(CharSequence input, int index, Writer out) throws IOException {\n/* 82 */ int seqEnd = input.length();\n/* */ \n/* 84 */ if (input.charAt(index) == '&' && index < seqEnd - 2 && input.charAt(index + 1) == '#') {\n/* 85 */ int entityValue, start = index + 2;\n/* 86 */ boolean isHex = false;\n/* */ \n/* 88 */ char firstChar = input.charAt(start);\n/* 89 */ if (firstChar == 'x' || firstChar == 'X') {\n/* 90 */ start++;\n/* 91 */ isHex = true;\n/* */ \n/* */ \n/* 94 */ if (start == seqEnd) {\n/* 95 */ return 0;\n/* */ }\n/* */ } \n/* */ \n/* 99 */ int end = start;\n/* */ \n/* 101 */ while (end < seqEnd && ((input.charAt(end) >= '0' && input.charAt(end) <= '9') || (input\n/* 102 */ .charAt(end) >= 'a' && input.charAt(end) <= 'f') || (input\n/* 103 */ .charAt(end) >= 'A' && input.charAt(end) <= 'F'))) {\n/* 104 */ end++;\n/* */ }\n/* */ \n/* 107 */ boolean semiNext = (end != seqEnd && input.charAt(end) == ';');\n/* */ \n/* 109 */ if (!semiNext) {\n/* 110 */ if (isSet(OPTION.semiColonRequired)) {\n/* 111 */ return 0;\n/* */ }\n/* 113 */ if (isSet(OPTION.errorIfNoSemiColon)) {\n/* 114 */ throw new IllegalArgumentException(\"Semi-colon required at end of numeric entity\");\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ try {\n/* 120 */ if (isHex) {\n/* 121 */ entityValue = Integer.parseInt(input.subSequence(start, end).toString(), 16);\n/* */ } else {\n/* 123 */ entityValue = Integer.parseInt(input.subSequence(start, end).toString(), 10);\n/* */ } \n/* 125 */ } catch (NumberFormatException nfe) {\n/* 126 */ return 0;\n/* */ } \n/* */ \n/* 129 */ if (entityValue > 65535) {\n/* 130 */ char[] chars = Character.toChars(entityValue);\n/* 131 */ out.write(chars[0]);\n/* 132 */ out.write(chars[1]);\n/* */ } else {\n/* 134 */ out.write(entityValue);\n/* */ } \n/* */ \n/* 137 */ return 2 + end - start + (isHex ? 1 : 0) + (semiNext ? 1 : 0);\n/* */ } \n/* 139 */ return 0;\n/* */ }", "public static void decode() {\r\n int[] index = new int[R + 1];\r\n char[] charAtIndex = new char[R + 1];\r\n for (int i = 0; i < R + 1; i++) { \r\n index[i] = i; \r\n charAtIndex[i] = (char) i;\r\n }\r\n while (!BinaryStdIn.isEmpty()) {\r\n int c = BinaryStdIn.readChar();\r\n char t = charAtIndex[c];\r\n BinaryStdOut.write(t);\r\n for (int i = c - 1; i >= 0; i--) {\r\n char temp = charAtIndex[i];\r\n int tempIndex = ++index[temp];\r\n charAtIndex[tempIndex] = temp;\r\n }\r\n charAtIndex[0] = t;\r\n index[t] = 0;\r\n }\r\n BinaryStdOut.close(); \r\n }", "public Tipo visitFactorInput(DECAFParser.FactorInputContext ctx) { \r\n\t\t//generacion de codigo\r\n\t\tString temp=getTemp();\r\n\t\taddToCode(input(temp));\r\n\t\tTipo res=tablaSimbolos.intType();\r\n\t\tres.setTemp(temp);;\r\n\t\treturn res;\r\n\t}", "public void translateImplementation( Code code );", "@Override\n public char[][] buildDnaTable(String[] dna) {\n var table = new char[dna.length][dna.length];\n\n // loop of dna\n for (var row = 0; row < dna.length; row++) {\n char[] rowData = dna[row].toCharArray();\n // validate structured & content\n validateSequenceData(rowData, dna.length);\n table[row] = rowData;\n }\n\n\n return table;\n }", "private String transitionTable() {\r\n\r\n\t\tString transitionTable = \"\t\";\r\n\t\tchar[][] matrix = new char[numStates.size() + 1][alphabet.size() + 1];\r\n\t\tStringBuilder bldmatrix = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\t\tfor (int j = 0; j < matrix[i].length; j++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tif (j == 0) {\r\n\t\t\t\t\t\tmatrix[i][j] = ' ';\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tArrayList<Character> trans = new ArrayList<>(alphabet);\r\n\t\t\t\t\t\tmatrix[i][j] = trans.get(j - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (j == 0) {\r\n\t\t\t\t\t\tmatrix[i][j] = numStates.get(i - 1).getName().charAt(0);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tArrayList<Character> trans2 = new ArrayList<>(alphabet);\r\n\t\t\t\t\t\tmatrix[i][j] = ((NFAState) getToState(numStates.get(i - 1), trans2.get(j - 1))).getName()\r\n\t\t\t\t\t\t\t\t.charAt(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < matrix.length; x++) {\r\n\t\t\tfor (int y = 0; y < matrix[x].length; y++) {\r\n\t\t\t\tbldmatrix.append(\"\\t\" + matrix[x][y]);\r\n\r\n\t\t\t}\r\n\t\t\tbldmatrix.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\ttransitionTable = bldmatrix.toString();\r\n\r\n\t\treturn transitionTable;\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void translate(){\n\t\tnodeSigs();\n\t\tedgeSigs();\n\t\tpre_source_valid();\n\t\tList<Object> constraints = new ArrayList<Object>();\n\t\tconstraints.addAll(hash.keySet());\n\t\tfor (int i = 0; i < constraints.size() ; i++) {\n\t\t\tfor (int j = i + 1; j < constraints.size() ; j++) {\n\t\t\t\tObject iter = constraints.get(i), iter1 = constraints.get(j);\n\t\t\t\tObject[] overlap = findOverlap(iter, iter1);\n\t\t\t\tif(overlap == null) continue;\n\t\t\t\talloycommands.add(new Object[]{iter, iter1});\n\t\t\t\tbuffer.append(\"run{(\" + hash.get(iter) + \"[] and not \" + hash.get(iter1) + \"[]) or (not \" + hash.get(iter) + \"[] and \" + hash.get(iter1) + \"[])} for 0 but \");\n\t\t\t\tList<Node> nodes = (List<Node>) overlap[0];\n\t\t\t\tList<Arrow> edges = (List<Arrow>) overlap[1];\n\t\t\t\tList<String> strings = new ArrayList<String>();\n\t\t\t\tfor(Node in : nodes){\n\t\t\t\t\tstrings.add(nodeSig(in));\n\t\t\t\t}\n\t\t\t\tfor(Arrow ie : edges){\n\t\t\t\t\tstrings.add(edgeSig(ie));\n\t\t\t\t}\n\t\t\t\tbuffer.append(\"5 \" + strings.get(0));\n\t\t\t\tfor (int k = 1; k < strings.size(); k++) {\n\t\t\t\t\tbuffer.append(\", 5 \" + strings.get(k));\n\t\t\t\t}\n\t\t\t\tbuffer.append(LINE);\n\t\t\t}\n\t\t}\n//\t\tif(check == null)\n//\t\t\tbuffer.append(\"run {}\");\n//\t\telse\n//\t\t\ttranslate(check, \"check\");\n//\t\tbuffer.append(\" for 5\");\n\t\t\t\n\t}", "public SymbolTable<String, SymbolData> parse() throws Exception {\n SymbolTable<String, SymbolData> symbolTable = new SymbolTable<String, SymbolData>();\n String currentJson = \"\";\n Optional<Symbol> currentSymbol = Optional.absent();\n for (String line : inputSource.readLines()) {\n //log.debug(line);\n Optional<Symbol> symbolHeader = headerParser.parseLine(line);\n // encountered a header line\n if(symbolHeader.isPresent()) {\n\n // put the accumalated json string in the map.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n // start with the new header.\n currentSymbol = symbolHeader;\n currentJson = \"\";\n continue;\n }\n\n if(!currentSymbol.isPresent()) continue;\n // detect dependencies line by line.\n for (Position dependency : referenceDetector.detectAllReferences(line)) {\n graph.addEdge(currentSymbol.get().getName(), dependency.getReferenceName().substring(1));\n }\n currentJson+=line;\n }\n\n // any remnant json has to go to the last symbol.\n if(currentSymbol.isPresent()) {\n symbolTable.put(currentSymbol.get().getName(), new SymbolData(currentSymbol.get(), currentJson));\n }\n\n\n\n return transform(symbolTable);\n\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n StringReader stringReader0 = new StringReader(\";}sis(_LATZu/rX\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(1, javaCharStream0.getColumn());\n }", "public static final String generateTableTestCase(){\n\t\n\t\tint[] operators = new int[]{AND,AND_AND,DIVIDE,GREATER,GREATER_EQUAL,\n\t\t\t\tLEFT_SHIFT,LESS,LESS_EQUAL,MINUS,MULTIPLY,OR,OR_OR,PLUS,REMAINDER,\n\t\t\t\tRIGHT_SHIFT,UNSIGNED_RIGHT_SHIFT,XOR};\n\t\n\t\tclass Decode {\n\t\t\tpublic final String constant(int code){\n\t\t\t\tswitch(code){ \n\t\t\t\t\tcase T_boolean \t: return \"true\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_byte\t\t: return \"((byte) 3)\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_char\t\t: return \"'A'\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_double\t: return \"300.0d\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_float\t: return \"100.0f\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_int\t\t: return \"1\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_long\t\t: return \"7L\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangString\t: return \"\\\"hello-world\\\"\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_null\t\t: return \"null\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_short\t: return \"((short) 5)\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangObject\t: return \"null\";} //$NON-NLS-1$\n\t\t\t\treturn \"\";} //$NON-NLS-1$\n\t\n\t\t\tpublic final String type(int code){\n\t\t\t\tswitch(code){ \n\t\t\t\t\tcase T_boolean \t: return \"z\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_byte\t\t: return \"b\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_char\t\t: return \"c\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_double\t: return \"d\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_float\t: return \"f\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_int\t\t: return \"i\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_long\t\t: return \"l\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangString\t: return \"str\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_null\t\t: return \"null\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_short\t: return \"s\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangObject\t: return \"obj\";} //$NON-NLS-1$\n\t\t\t\treturn \"xxx\";} //$NON-NLS-1$\n\t\t\t\n\t\t\tpublic final String operator(int operator){\n\t\t\t\t\tswitch (operator) {\n\t\t\t\t\tcase EQUAL_EQUAL :\treturn \"==\"; //$NON-NLS-1$\n\t\t\t\t\tcase LESS_EQUAL :\treturn \"<=\"; //$NON-NLS-1$\n\t\t\t\t\tcase GREATER_EQUAL :return \">=\"; //$NON-NLS-1$\n\t\t\t\t\tcase LEFT_SHIFT :\treturn \"<<\"; //$NON-NLS-1$\n\t\t\t\t\tcase RIGHT_SHIFT :\treturn \">>\"; //$NON-NLS-1$\n\t\t\t\t\tcase UNSIGNED_RIGHT_SHIFT :\treturn \">>>\"; //$NON-NLS-1$\n\t\t\t\t\tcase OR_OR :return \"||\"; //$NON-NLS-1$\n\t\t\t\t\tcase AND_AND :\t\treturn \"&&\"; //$NON-NLS-1$\n\t\t\t\t\tcase PLUS :\t\t\treturn \"+\"; //$NON-NLS-1$\n\t\t\t\t\tcase MINUS :\t\treturn \"-\"; //$NON-NLS-1$\n\t\t\t\t\tcase NOT :\t\t\treturn \"!\"; //$NON-NLS-1$\n\t\t\t\t\tcase REMAINDER :\treturn \"%\"; //$NON-NLS-1$\n\t\t\t\t\tcase XOR :\t\t\treturn \"^\"; //$NON-NLS-1$\n\t\t\t\t\tcase AND :\t\t\treturn \"&\"; //$NON-NLS-1$\n\t\t\t\t\tcase MULTIPLY :\t\treturn \"*\"; //$NON-NLS-1$\n\t\t\t\t\tcase OR :\t\t\treturn \"|\"; //$NON-NLS-1$\n\t\t\t\t\tcase TWIDDLE :\t\treturn \"~\"; //$NON-NLS-1$\n\t\t\t\t\tcase DIVIDE :\t\treturn \"/\"; //$NON-NLS-1$\n\t\t\t\t\tcase GREATER :\t\treturn \">\"; //$NON-NLS-1$\n\t\t\t\t\tcase LESS :\t\t\treturn \"<\";\t} //$NON-NLS-1$\n\t\t\t\treturn \"????\";} //$NON-NLS-1$\n\t\t}\n\t\n\t\t\t\n\t\tDecode decode = new Decode();\n\t\tString s;\n\t\n\t\ts = \"\\tpublic static void binaryOperationTablesTestCase(){\\n\" + //$NON-NLS-1$\n\t\n\t\t\t\"\\t\\t//TC test : all binary operation (described in tables)\\n\"+ //$NON-NLS-1$\n\t\t\t\"\\t\\t//method automatically generated by\\n\"+ //$NON-NLS-1$\n\t\t\t\"\\t\\t//org.eclipse.jdt.internal.compiler.ast.OperatorExpression.generateTableTestCase();\\n\"+ //$NON-NLS-1$\n\t\t\n\t\t\t\"\\t\\tString str0;\\t String str\\t= \"+decode.constant(T_JavaLangString)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tint i0;\\t int i\\t= \"+decode.constant(T_int)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tboolean z0;\\t boolean z\\t= \"+decode.constant(T_boolean)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tchar c0; \\t char c\\t= \"+decode.constant(T_char)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tfloat f0; \\t float f\\t= \"+decode.constant(T_float)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tdouble d0;\\t double d\\t= \"+decode.constant(T_double)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tbyte b0; \\t byte b\\t= \"+decode.constant(T_byte)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tshort s0; \\t short s\\t= \"+decode.constant(T_short)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tlong l0; \\t long l\\t= \"+decode.constant(T_long)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tObject obj0; \\t Object obj\\t= \"+decode.constant(T_JavaLangObject)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\n\"; //$NON-NLS-1$\n\t\n\t\tint error = 0;\t\t\n\t\tfor (int i=0; i < operators.length; i++)\n\t\t{\tint operator = operators[i];\n\t\t\tfor (int left=0; left<16;left++)\n\t\t\tfor (int right=0; right<16;right++)\n\t\t\t{\tint result = (OperatorSignatures[operator][(left<<4)+right]) & 0x0000F;\n\t\t\t\tif (result != T_undefined)\n\t\n\t\t\t\t\t//1/ First regular computation then 2/ comparaison\n\t\t\t\t\t//with a compile time constant (generated by the compiler)\n\t\t\t\t\t//\tz0 = s >= s;\n\t\t\t\t\t//\tif ( z0 != (((short) 5) >= ((short) 5)))\n\t\t\t\t\t//\t\tSystem.out.println(155);\n\t\n\t\t\t\t{\ts += \"\\t\\t\"+decode.type(result)+\"0\"+\" = \"+decode.type(left); //$NON-NLS-1$ //$NON-NLS-3$ //$NON-NLS-2$\n\t\t\t\t\ts += \" \"+decode.operator(operator)+\" \"+decode.type(right)+\";\\n\"; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-3$\n\t\t\t\t\tString begin = result == T_JavaLangString ? \"\\t\\tif (! \" : \"\\t\\tif ( \"; //$NON-NLS-2$ //$NON-NLS-1$\n\t\t\t\t\tString test = result == T_JavaLangString ? \".equals(\" : \" != (\"; //$NON-NLS-2$ //$NON-NLS-1$\n\t\t\t\t\ts += begin\t+decode.type(result)+\"0\"+test //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.constant(left)+\" \" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.operator(operator)+\" \" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.constant(right)+\"))\\n\"; //$NON-NLS-1$\n\t\t\t\t\ts += \"\\t\\t\\tSystem.out.println(\"+ (++error) +\");\\n\"; //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\treturn s += \"\\n\\t\\tSystem.out.println(\\\"binary tables test : done\\\");}\"; //$NON-NLS-1$\n\t}", "private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2) && (aCode[i] < 'A' || aCode[i] > 'Z')) { // Check for \"aa\" part of format\n aDrCode = k.NULL ;\n } else if ((i == 3 || i == 4 || i==5) && (aCode[i] < '0' || aCode[i] > '9')) { // Check for \"nnn\" part of format\n aDrCode = k.NULL ;\n }\n }\n return pDrCode;\n\n } else {\n if (mFacility.equalsIgnoreCase(\"SDMH\")) {\n CodeLookUp aSDMHDrTranslate = new CodeLookUp(\"Dr_Translation.table\", \"SDMH\", mEnvironment);\n aDrCode = aSDMHDrTranslate.getValue(pDrCode);\n\n if (aDrCode.length() == 5 ) {\n aDrCode = k.NULL;\n }\n } else if (mFacility.equalsIgnoreCase(\"CGMC\")) {\n if (! pDrCode.equalsIgnoreCase(\"UNK\")) {\n aDrCode = k.NULL ;\n }\n } else if (mFacility.equalsIgnoreCase(\"ALF\")) {\n aDrCode = k.NULL ;\n } else {\n //covers eastern health systems\n aDrCode = pDrCode;\n }\n }\n return aDrCode;\n\n }", "private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}", "String[] translate(String[] input);", "@Test\n\tpublic void predFuncTest() \n\t{\n\t\tPath filePath = Paths.get(\"src/test/testfile/test.txt\");\n\t\tScanner scanner;\n\t\ttry {\n\t\t\tscanner = new Scanner(filePath);\n\t\t\tTranslator translator = new Translator();\n\t\t\tList<String> startCodons = new ArrayList<String>();\n\t\t\tstartCodons.add(\"ATG\");\n\t\t\tList<List<String>> result = translator.translation(scanner.next(), startCodons );\n\t\t\tfor(List<String> r : result){\n\t\t\t\tfor(String s : r){\n\t\t\t\t\tif(scanner.hasNext()){\n\t\t\t\t\t\tassertEquals(s, scanner.next());\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t \n\n\t\t} catch (IOException e) {\n\t\t\tfail(e.getLocalizedMessage());\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }", "public static void main(String[] args) {\n String textToDecode = \"j5jqktt5tsk559tsskjssjttsjksts5998tsskst8q59kttt59skqj5sktqj5559skst5t59sjk8sqtst5jqqjss99jqj5qj59jsjq5559ktsqsjqj55st59jsqjksjq55k559ktqjks59ktttj55tts595sjq5559k8tst5jqqjk5995tktts59jsjq55595sktsqstjsjq559559k8sjjq5559tkjq555tksts555559ktt55559t559jsst55qjsk59tssjk8ts55jqqj99t5jqk8sj5559jq59tstkjq5ss8sk55k55955ts59kt555s5tksjq5559tkts59ktts55jqqj95\";\n\n //enter secret code characters\n String secretCode = \"58sjtkq9\";\n\n char[] secretCode_Split = secretCode.toCharArray();\n\n\n char[][] secretTable =\n {{'b', '0', 's', '_', 'k', '{','$',' '},\n {'/', '4', 'h', '<', ']', '9','!',':'},\n {'-', 'u', ';', 'z', 'a', 'j','r','_'},\n {'l', '3', 'c', '8', '#', '\"','i','1'},\n {'w', '7', 'o', '2', 'y', 'p','(','}'},\n {',', 'd', 'n', '*', 't', '%','g','['},\n {'x', '?', '=', 'e', '+', '6',')','q'},\n {'.', 'm', '@', '>', '5', '&','f','\\n'}};\n\n\n String[] textToDecode_Split_1 = textToDecode.split(\"(?<=\\\\G.{2})\");\n\n int[] result_row;\n result_row = new int[(textToDecode.length()/2)];\n\n int[] result_column;\n result_column = new int[(textToDecode.length()/2)];\n\n for (int i = 0; i < (textToDecode.length()/2) ; i++) {\n char[] textToDecode_Split_2 = textToDecode_Split_1[i].toCharArray();\n for (int j = 0; j <= 1; j++) {\n char textToDecode_Split_3 = textToDecode_Split_2[j];\n for (int k = 0; k < secretCode.length() ; k++) {\n if (j == 0) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_row[i] = k;\n }\n } else if (j == 1) {\n if (textToDecode_Split_3 == secretCode_Split[k]) {\n result_column[i] = k;\n }\n }\n }\n }\n }\n\n for (int i = 0; i < result_row.length ; i++) {\n System.out.print(secretTable[result_row[i]][result_column[i]]);\n\n }\n}", "private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }", "public abstract String getRegexTableMarker();", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void printCodeTable() {\n System.out.println(\"\\nPrinting the code table:\");\n for(int i = 0; i < codeTable.length; i++) {\n if(codeTable[i] != null) {\n if(i == 10) {\n System.out.println(\"\\\\n \" + codeTable[i]);\n } else {\n System.out.println(((char) i) + \" \" + codeTable[i]);\n }\n }\n }\n }", "private int mapCharToTransition(char c) {\n switch(c) {\n case '-':\n return 0;\n\n case '+':\n return 1;\n\n case '/':\n return 2;\n\n case '*':\n return 3;\n\n case ')':\n return 4;\n\n case '(':\n return 5;\n\n case '=':\n return 6;\n\n case ';':\n return 7;\n\n default:\n if (Character.isDigit(c)) return 8;\n if (Character.isLetter(c)) return 9;\n if (c == '\\n' || c == '\\r' || c == ' ' || c == '\\t') return 10;\n return 11;\n }\n }", "static void lookUp() throws IOException {\n switch (curr_char) {\n case 124:\n curr_type = TokenType.VERT;\n break;\n case 42:\n curr_type = TokenType.STAR;\n break;\n case 43:\n curr_type = TokenType.PLUS;\n break;\n case 63:\n curr_type = TokenType.QMARK;\n break;\n case 40:\n curr_type = TokenType.LPAREN;\n break;\n case 41:\n curr_type = TokenType.RPAREN;\n break;\n case 46:\n curr_type = TokenType.PERIOD;\n break;\n case 92:\n curr_type = TokenType.BSLASH;\n break;\n case 91:\n int temp = 0;\n temp = pbIn.read();\n if(temp == 94) {\n curr_type = TokenType.LNEGSET;\n }\n else {\n pbIn.unread(temp);\n curr_type = TokenType.LPOSSET;\n }\n break;\n case 93:\n curr_type = TokenType.RSET;\n break;\n case 60:\n curr_type = TokenType.LANGLE;\n break;\n case 62:\n curr_type = TokenType.RANGLE;\n break;\n case 13:\n int checkCRLF;\n curr_type = TokenType.EOL;\n checkCRLF = pbIn.read();\n if(checkCRLF != 10)\n {\n pbIn.unread(checkCRLF);\n }\n break;\n default:\n if(Character.isDigit((char)curr_char) || Character.isLetter((char)curr_char) || curr_char == 94 || curr_char == 47)\n {\n curr_type = TokenType.CHAR;\n }\n else {\n curr_type = TokenType.ERROR;\n }\n }\n }", "public char convert(char source) {\n if (source >= table.length) {\n return source;\n } else {\n return table[source];\n }\n }", "public void processLine(String line){\n\t\tString[] splitted = line.split(\"(\\\\s+|\\\\t+)\");\n\t\tif(splitted.length < FIELDS){\n\t\t\tSystem.err.println(\"DataRow: Cannot process line : \" + line);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tindex \t\t= Integer.parseInt(splitted[0]);\n\t\tparentIndex = Integer.parseInt(splitted[1]);\n\t\tword \t\t= splitted[2].trim();\n\t\tpos\t\t\t= splitted[3].trim();\n\t\tpredicateLabel = splitted[4].trim();\n\t\tintervenes = splitted[5];\n\t\t\n\t\tidentificationLabel = splitted[6];\n\t\tclassificationLabel = splitted[7];\n\t\t\n\t\thmmState = Integer.parseInt(splitted[8]);\n\t\tnaiveState = Integer.parseInt(splitted[9]);\n\t\tchunk = splitted[10];\n\t\tne = splitted[11];\n\t\tif(splitted.length > FIELDS){\n\t\t\tSystem.err.println(\"WARNING: data row has more than required columns: \" + line);\n\t\t}\n\t}", "final public void fieldFromSrc(){\n List<String> lines = readSrc();\n size = Integer.parseInt(lines.get(0));\n Tile[] tiles = new Tile[size*size];\n int count = 0;\n Tile t;\n \n char[][] fieldChars = new char[size][size];\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n try{\n fieldChars[X][Y] = lines.get(Y+1).charAt(X);\n }catch(StringIndexOutOfBoundsException e){\n System.out.println(e);\n }\n }\n }\n \n for(int Y=0; Y<size; Y++){\n for(int X=0; X<size; X++){\n Coordinaat C = new Coordinaat(X,Y); \n switch(fieldChars[X][Y]){\n case 'M' : \n t = new Muur(C); \n break;\n case 'V' :\n t = new Veld(C);\n break;\n case 'E' :\n t = new EindVeld(C);\n break;\n default :\n t = new Tile(C);\n break;\n }\n tiles[count] = t;\n count++;\n }\n }\n \n fillField(tiles,size);\n createMoveAbles(lines.subList(size+2, lines.size()));\n }", "public abstract String doTableConvert(String sql);", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Cf&9B{tMCu\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(4, javaCharStream0.getColumn());\n }", "@Override\n public void run() {\n Integer test = readLineAsInteger();\n for (int t = 1; t <= test; t++) {\n\n Integer n = readLineAsInteger();\n map.clear();\n int[][] new_table = new int[100][100];\n int[][] new_table2 = new int[100][100];\n \n ///For Input \n for (int i = 0; i < n; i++) {\n\n str[i] = readLine();\n str[i] = toLowerCase(str[i]);\n map.put(str[i], i);\n String str2 = readLine();\n String[] splitted3 = str2.split(\"[' ']\");\n row[i] = Integer.parseInt(splitted3[0]);\n col[i] = Integer.parseInt(splitted3[1]);\n String str3 = readLine();\n String[] splitted1 = str3.split(\"[' ']\");\n\n\n int l = 0;\n for (String split : splitted1) {\n // System.out.println(split);\n \n column[i][l] = split;\n column[i][l]=toLowerCase(column[i][l]);\n l += 1;\n \n \n\n }\n\n for (int j = 0; j < row[i]; j++) {\n String str4 = readLine();\n String[] splitte2 = str4.split(\"[' ']\");\n l = 0;\n\n for (String split : splitte2) {\n // System.out.println(split);\n\n table[i][j][l] = Integer.parseInt(split);\n l++;\n }\n }\n }\n int q;\n q = readLineAsInteger();\n String query;\n System.out.println(\"Test: \" + t);\n for (int m = 1; m <= q; m++) {\n String[] current = new String[100];\n\n map1.clear();\n\n query = readLine();\n// System.out.println(\"===> query: \" + query;\n int t1 = 0, found = 0;\n String[] splitted = query.split(\"[' ',]\");\n for (String split : splitted) {\n if (split.equals(\"Select\") || split.equals(\"select\") || split.equals(\"SELECT\")) {\n continue;\n }\n if (split.equals(\",\") || split.equals(\" \") || split.equals(\"=\")) {\n continue;\n }\n if (split.length() == 0) {\n continue;\n }\n if (split.equals(\"*\")) {\n found = 1;\n\n break;\n }\n current[t1] = split;\n t1 = t1 + 1;\n }\n\n String query1 = readLine();\n //System.out.println(\"query1: \" + query1);\n String[] second_part = query1.split(\"[' ',]\");\n int sec_part = -1, check = 0;\n for (String split : second_part) {\n check++;\n if (check == 1) {\n continue;\n }\n if (split.equals(\",\") || split.equals(\" \") || split.equals(\"=\") || split.equals(\"from\") || split.equals(\"FROM\")) {\n continue;\n }\n if (split.length() > 0) {\n\n if (sec_part == -1) {\n // printLine(split);\n\n sec_part = map.get(split);\n // printLine(sec_part);\n map1.put(split, sec_part);\n } else {\n map1.put(split, sec_part);\n }\n }\n\n }\n String query2 = readLine();\n // System.out.println(\" query2: \" + query2);\n int th_part = -1;\n check = 0;\n String[] third_part = query2.split(\"[' ',]\");\n for (String split : third_part) {\n check++;\n if (check == 1) {\n continue;\n }\n if (split.equals(\",\") || split.equals(\" \") || split.equals(\"=\") || split.equals(\"join\") || split.equals(\"JOIN\")) {\n continue;\n }\n if (split.length() > 0) {\n\n if (th_part == -1) {\n\n //printLine(th_part);\n //printLine(split);\n th_part = map.get(split);\n //printLine(th_part);\n\n map1.put(split, th_part);\n } else {\n map1.put(split, th_part);\n }\n }\n\n }\n\n String query3 = readLine();\n\n //System.out.println(\"query3: \" + query3); \n String[] list = query3.split(\"[' ',=]\");\n check = 0;\n int flag = 0;\n int[] ara1 = new int[10];\n int[] ara2 = new int[10];\n\n for (String split : list) {\n check++;\n if (check == 1) {\n continue;\n }\n if (split.equals(\",\") || split.equals(\" \") || split.equals(\"=\") || split.equals(\"on\") || split.equals(\"ON\")) {\n continue;\n }\n if (split.length() > 0) {\n\n find_id(split);\n ara1[flag] = a;\n ara2[flag] = b;\n flag = flag ^ 1;\n }\n }\n String c = readLine();\n\n int visited[] = new int[500];\n int p1 = ara1[0];\n int p3 = ara2[0];\n int p2 = ara1[1];\n int p4 = ara2[1];\n int r = 0;\n\n for (int i = 0; i < row[p1]; i++) {\n for (int j = 0; j < row[p2]; j++) {\n if (table[p1][i][p3] == table[p2][j][p4]) {\n\n for (int x = 0; x < col[p1]; x++) {\n new_table[r][x] = table[p1][i][x];\n }\n for (int x = 0; x < col[p2]; x++) {\n int p5 = x + col[p1];\n new_table[r][p5] = table[p2][j][x];\n }\n r = r + 1;\n }\n }\n }\n\n if (found != 0) {\n\n for (int i = 0; i < col[p1]; i++) {\n System.out.print(column[p1][i] + \" \");\n }\n for (int i = 0; i < col[p2]; i++) {\n System.out.print(column[p2][i] + \" \");\n }\n System.out.println();\n for (int i = 0; i < r; i++) {\n int check1 = 0;\n for (int j = i + 1; j < r; j++) {\n for (int k = 0; k < col[p1] + col[p2]; k++) {\n if (new_table[i][k] < new_table[j][k]) {\n break;\n }\n if (new_table[i][k] > new_table[j][k]) {\n check1 = 1;\n break;\n }\n\n }\n if (check1 == 0) {\n continue;\n }\n for (int p = 0; p < col[p1] + col[p1]; p++) {\n int t2 = new_table[p][i];\n new_table[i][p] = new_table[j][p];\n new_table[j][p] = t2;\n }\n }\n }\n for (int i = 0; i < r; i++) {\n for (int j = 0; j < col[p1] + col[p2]; j++) {\n System.out.print(new_table[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println();\n\n continue;\n }\n\n \n int mn = 0;\n for (int i = 0; i < t1; i++) {\n find_id(current[i]);\n\n System.out.print(column[a][b] + \" \");\n int ans = b;\n if (a != p1) {\n ans = ans + col[p1];\n }\n for (int j = 0; j < r; j++) {\n new_table2[j][mn] = new_table[j][ans];\n }\n mn = mn + 1;\n\n }\n System.out.println();\n for (int i = 0; i < r; i++) {\n int check2 = 0;\n for (int j = i + 1; j < r; j++) {\n for (int k = 0; k < mn; k++) {\n if (new_table2[i][k] < new_table2[j][k]) {\n break;\n }\n if (new_table2[i][k] > new_table2[j][k]) {\n check2 = 1;\n break;\n }\n\n }\n if (check2 == 0) {\n continue;\n }\n for (int p = 0; p < mn; p++) {\n int t2 = new_table2[p][i];\n new_table2[i][p] = new_table2[j][p];\n new_table2[j][p] = t2;\n }\n }\n }\n for (int i = 0; i < r; i++) {\n for (int j = 0; j < mn; j++) {\n System.out.print(new_table2[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n }\n }\n\n }", "public void translate() {\n\t\twhile (!inputBuffer.endOfBuffer()) {\n\t\t\tMsgChar get = inputBuffer.getChar();\n\t\t\tif (get == null) continue;\n\t\t\tif (inputBuffer.isEndOfSentence()) {\n\t\t\t\toutputBuffer.markEndOfSentence();\n\t\t\t} else if (inputBuffer.isEndOfWord()) {\n\t\t\t\toutputBuffer.markEndOfWord();\n\t\t\t} else {\n\t\t\t\toutputBuffer.putChar(get.convert());\n\t\t\t}\n\t\t}\n\t\tinputBuffer.getReader().close();\n\t\toutputBuffer.close();\n\t}", "private static void incode_output(String[] input) throws IOException {\n int i = 0;\n while (i<input.length){\n //get the opcode and parameter modes\n String opcode_parameter = input[i];\n int opcode=0;\n int mode_1st_parameter = 0;\n int mode_2st_parameter = 0;\n int mode_3st_parameter = 0;\n if (opcode_parameter.length() !=1){\n opcode = Integer.parseInt(opcode_parameter.substring(opcode_parameter.length()-2));\n //have to check the length of the string before processing to avoid exceptions\n if (opcode_parameter.length() >=3){\n mode_1st_parameter = Integer.parseInt(opcode_parameter.substring(opcode_parameter.length()-3,opcode_parameter.length()-2));\n }\n if (opcode_parameter.length() >=4){\n mode_2st_parameter = Integer.parseInt(opcode_parameter.substring(opcode_parameter.length()-4,opcode_parameter.length()-3));\n }\n if (opcode_parameter.length() >=5){\n mode_3st_parameter = Integer.parseInt(opcode_parameter.substring(opcode_parameter.length()-5,opcode_parameter.length()-4));\n }\n }\n else {\n opcode = Integer.parseInt(opcode_parameter);\n\n }\n //if opcode is 99 the loop breaks and the processing is finished\n if(opcode == 99){\n break;\n }\n int value1=0;\n int value1_location =0 ;\n int value2=0;\n int value2_location =0 ;\n int return_location =0 ;\n int return_value=0;\n //getting the 1st value and the 2nd value according to the opcode and the modes\n if ((opcode >= 1 && opcode <= 2) || (opcode >= 5 && opcode <=8)){\n if (mode_1st_parameter == 0){\n value1_location = Integer.parseInt(input[i+1]);\n value1 = Integer.parseInt(input[value1_location]);\n }\n else{\n value1_location = i+1;\n value1 = Integer.parseInt(input[value1_location]);\n }\n }\n \n if ((opcode >=1 && opcode <=2)|| (opcode >= 5 && opcode <=8)){\n if (mode_2st_parameter == 0){\n value2_location = Integer.parseInt(input[i+2]);\n value2 = Integer.parseInt(input[value2_location]);\n }\n else{\n value2_location = i+2;\n value2 = Integer.parseInt(input[value2_location]);\n }\n }\n // calculating the result value according to the opcode\n if (opcode == 1){\n \n return_value = value1+value2;\n \n }\n else if (opcode == 2){\n return_value = value1*value2;\n\n }\n else if (opcode == 3){\n //opcode 3 requires the user to input a system ID according to the chcallenge\n print(\"opcode require input please enter the correct value\");\n BufferedReader reader =\n new BufferedReader(new InputStreamReader(System.in));\n String input_value = reader.readLine();\n // inserting the return value in the correct location according to the return location\n if (mode_1st_parameter == 0){\n return_location = Integer.parseInt(input[i+1]);\n input[return_location] = input_value;\n }\n else{\n return_location = i+1;\n input[return_location] = input_value;\n }\n\n }\n else if (opcode == 4){\n //mode 4 outputs the result of a certain test or the result of the full opcode\n if (mode_1st_parameter == 0){\n return_location = Integer.parseInt(input[i+1]);\n print(\"output: \"+ input[return_location]);\n }\n else{\n return_location = i+1;\n print(\"output: \"+ input[return_location]);\n }\n }\n //opcode 5 and 6 has the possibility to minpulate the loop counter \n //therefore it can skip the remaining code in the loop if the counter is minpulated\n else if (opcode == 5){\n if (value1 != 0 ){\n i = value2;\n continue;\n }\n }\n else if (opcode == 6){\n if (value1 ==0){\n i=value2;\n continue;\n }\n }\n else if (opcode == 7){\n if (value1 <value2){\n return_value=1;\n }\n else{\n return_value=0;\n }\n }\n else if (opcode == 8){\n if (value1==value2){\n return_value=1;\n }\n else{\n return_value=0;\n }\n }\n // inserting the return value according to the return location, opcode and mode of the parameter\n if ((opcode >=1 && opcode <=2)|| (opcode >=7 && opcode <=8)){\n if (mode_3st_parameter == 0){\n return_location = Integer.parseInt(input[i+3]);\n input[return_location] = String.valueOf(return_value);\n }\n else{\n return_location = i+3;\n input[return_location] = String.valueOf(return_value);\n }\n } \n //incrementing the loop counter according to the opcode\n if ((opcode >=1 && opcode <=2)|| (opcode >=7 && opcode <=8)){\n i = i+4;\n\n }\n else if (opcode == 5 || opcode == 6){\n i=i+3;\n }\n else{\n i=i+2;\n }\n }\n }", "boolean generateDFA(){\n\t\tdfa_start=new DFA_State();\t\t\n\t\tfor(ReservedWord res:table_res){\n\t\t\tint index=0,length;\n\t\t\tchar chr;\n\t\t\tString str;\n\t\t\tDFA_State dfa=new DFA_State();\n\t\t\t\n\t\t\tif(res.value.isEmpty())\n\t\t\t\tcontinue;\n\t\t\tstr=res.value;\n\t\t\tlength=str.length();\n\t\t\tchr=str.charAt(0);//first char\n\t\t\tif(!dfa_start.dfa_edges.containsKey(chr)){\n\t\t\t\tdfa_start.dfa_edges.put(chr, new DFA_State());\t\t\t\t\n\t\t\t}\n\t\t\tdfa=dfa_start.dfa_edges.get(chr);\t\t\t\n\t\t\twhile(++index < length){\n\t\t\t\tchr=str.charAt(index);\n\t\t\t\tif(!dfa.dfa_edges.containsKey(chr)){\n\t\t\t\t\tdfa.dfa_edges.put(chr, new DFA_State());\t\t\t\t\n\t\t\t\t}\n\t\t\t\tdfa=dfa.dfa_edges.get(chr);\t\t\t\t\n\t\t\t}\n\t\t\tdfa.isFinal=true;\t\t\t//last char\n\t\t\tdfa.value=str;\t\t\t\n\t\t\t\n\t\t\tif(table_op.contains(res)){\n\t\t\t\tdfa.type=TokenType.t_opt;\n\t\t\t}else\n\t\t\t\tdfa.type=TokenType.t_res;\n\t\t}\n\t\t\n\t\treturn true;\t\t\n\t}", "protected abstract DataTypes[] processLine(MutableCharArrayString line);", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n StringReader stringReader0 = new StringReader(\"=<D!T!tLp\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 20, 0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[5];\n stringReader0.read(charArray0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(3, javaCharStream0.getEndColumn());\n }", "public static void decode() {\n int first = BinaryStdIn.readInt();\n String t = BinaryStdIn.readString();\n int n = t.length();\n int[] count = new int[256 + 1];\n int[] next = new int[n];\n int i = 0;\n while (i < n) {\n count[t.charAt(i) + 1]++;\n i++;\n }\n i = 1;\n while (i < 256 + 1) {\n count[i] += count[i - 1];\n i++;\n }\n i = 0;\n while (i < n) {\n next[count[t.charAt(i)]++] = i;\n i++;\n }\n i = next[first];\n int c = 0;\n while (c < n){\n BinaryStdOut.write(t.charAt(i));\n i = next[i];\n c++;\n }\n BinaryStdOut.close();\n }", "public ArrayList<Token> walkTable(char c) {\n \t\treturnList = null;\n \t\tif(currentState.isFinal){\n \t\t\t\tlastKnownValidToken = new StringBuffer(currentToken);\n \t\t}\n \t\tcurrentToken.append(c);\n \t\tcurrentState = dfa.get(new StateCharacter(currentState,c));\n \t\t\n \t\tif(currentState == null){\n \t\t\tint numCharactersUndealtWith = currentToken.length() - lastKnownValidToken.length();\n \t\t\tStringBuffer newCurrentToken = new StringBuffer();\n \t\t\tfor(int i=0;i<numCharactersUndealtWith;i++){\n \t\t\t\tnewCurrentToken.append(currentToken.length()-numCharactersUndealtWith+i);\n \t\t\t}\n \t\t\treturnList.add(new Token(null,lastKnownValidToken));//How do we know what type the token is?\n \t\t\treEvaluate(newCurrentToken);\n \t\t\treturn returnList;\n \t\t}\n \t\telse{\n \t\t\treturn null;\n\t\t}\n \t}", "private void createParseTable() {\n parseTableHeader = new HashMap<String, Integer>();\n parseTable = new ArrayList<ArrayList<String>>();\n pHeader = new ArrayList<String>();\n\n String inputLine = null;\n int fileLine = 1;\n int headerCount = 0;\n\n try {\n FileReader reader = new FileReader(parseTableFile);\n BufferedReader bufferedReader = new BufferedReader(reader);\n\n while((inputLine = bufferedReader.readLine()) != null) {\n\n // removes all leading and trailing whitespaces and leading tabs\n String line = inputLine.trim().replaceFirst(\"\\\\t\", \"\");\n\n // these are header rows for terminals and variables\n if(fileLine == 1 || fileLine == 40) {\n String[] cells = line.replaceFirst(\"&\", \"\").split(\"&\");\n for(String cell : cells) {\n// System.out.println(cell);\n if(!parseTableHeader.containsKey(cell) && cell != \"\") {\n parseTableHeader.put(cell, headerCount);\n// System.out.println(headerCount);\n pHeader.add(cell);\n headerCount++;\n }\n }\n }\n else {\n String[] parsedRow = line.split(\"&\",-1);\n // get actual SLR parse table's row number\n int row = Integer.parseInt(parsedRow[0]);\n\n// System.out.println(\"Parsing row number \\t\\t\" + row);\n\n // create a new Array that excludes the row number column\n String[] tempRow = Arrays.copyOfRange(parsedRow, 1, parsedRow.length);\n // remove null / empty entries from Array\n replaceBlanks(tempRow);\n // convert to ArrayList for easier handling\n ArrayList<String> cells = new ArrayList<>(Arrays.asList(tempRow));\n\n// System.out.print(\"Parsed row content \\t\\t\");\n// printArrayList(cells);\n// System.out.println();\n\n // add above ArrayList to the table at the correct row number.\n // because there's two parts to the parse table's row, only\n // add right away if we haven't added anything before\n // otherwise combine the previous entry with this one to create\n // complete entry for this row\n try {\n ArrayList<String> current = parseTable.get(row);\n\n// System.out.print(\"Contents of row \" + row + \"\\t\\t\");\n// printArrayList(current);\n// System.out.println();\n\n // temporary ArrayList to hold previous entry and new entry\n ArrayList<String> temp = new ArrayList<String>();\n temp.addAll(current);\n temp.addAll(cells);\n\n// System.out.print(\"New combined row \\t\\t\");\n// printArrayList(temp);\n// System.out.println();\n\n // add combined ArrayList to the parse table\n parseTable.set(row, temp);\n } catch (IndexOutOfBoundsException e) {\n parseTable.add(row, cells);\n }\n\n// System.out.print(\"Final row \\t\\t\\t\\t\");\n// printArrayList(parseTable.get(row));\n// System.out.println();\n// System.out.println();\n\n }\n\n fileLine++;\n\n }\n if(printPTABLE == \"Y\") {\n printTable();\n }\n bufferedReader.close();\n\n } catch(FileNotFoundException e) {\n System.out.println(\n parseTableFile + \" not found\"\n );\n } catch(IOException e) {\n System.out.println(\n \"Error reading file \" + parseTableFile\n );\n }\n\n }", "private static void input(String[] args) {\n try (BufferedReader scanner = new BufferedReader(\n new InputStreamReader(args.length > 0 ? new FileInputStream(args[0]) : System.in))) {\n\n String linija;\n\n // regularne definicije\n while ((linija = scanner.readLine()) != null && linija.startsWith(\"{\")) {\n String tmp[] = linija.split(\" \");\n\n tmp[0] = tmp[0].substring(1, tmp[0].length() - 1);\n String naziv = tmp[0];\n String izraz = expandRegularDefinition(tmp[1]);\n\n regularneDefinicije.put(naziv, izraz);\n\n // System.out.println(naziv + \", \" + izraz);\n }\n\n // stanja\n while (!linija.startsWith(\"%X\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, stanjaLA);\n\n // leksicke jedinke\n while (!linija.startsWith(\"%L\")) {\n linija = scanner.readLine().trim();\n }\n\n skipSplitAdd(linija, leksickeJedinke);\n\n // pravila leksickog analizatora\n\n while ((linija = scanner.readLine()) != null) {\n while (!linija.startsWith(\"<\")) {\n linija = scanner.readLine();\n }\n\n String tmp[] = linija.split(\">\", 2);\n\n String stateName = tmp[0].substring(1, tmp[0].length());\n String regDef = tmp[1];\n\n regDef = expandRegularDefinition(regDef);\n\n // System.out.println(stateName + \"<> \" + regDef);\n LexerRule lexerRule = new LexerRule(regDef, stateName, 1, \"<\" + stateName + \">\" + regDef);\n lexerRules.add(lexerRule);\n\n scanner.readLine(); // preskoci {\n\n linija = scanner.readLine().trim();\n while (linija != null && scanner.ready() && !linija.equals(\"}\")) {\n // radi nesto s naredbom\n lexerRule.addAction(linija);\n linija = scanner.readLine().trim();\n }\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public AnalizadorSintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "public static String compile(InputPin pin) {\n String index1String = \"\\t\\t\\t\\t\\tindex_1(\" + compileArray(pin.getParent().getIndex1()) + \");\\n\";\n String output = \"\\n\\t\\tpin(\" + pin.getName() + \") {\\n\" + \"\\t\\t\\tcapacitance : \"\n + Model.formatFloat(pin.getCapacitance()) + \" ;\\n\" + \"\\t\\t\\tdirection : input ;\\n\" + \"\\t\\t\\t\"\n + pin.getUnsupportedData().replaceAll(\"\\n\", \"\\n\\t\\t\\t\");\n if (!pin.getInputPowers().isEmpty()) {\n output += \"\\n\\t\\t\\tinternal_power() {\\n\";\n for (InputPower inputPower : pin.getInputPowers()) {\n String valuesString = \"\\t\\t\\t\\t\\tvalues(\" + compileArray(inputPower.getValues()) + \");\\n\";\n output += \"\\n\\t\\t\\t\\t\" + inputPower.getPowGroup().name().toLowerCase() + \"() {\\n\" + index1String\n + valuesString + \"\\t\\t\\t\\t}\\n\";\n }\n output += \"\\t\\t\\t}\\n\";\n }\n output += \"\\n\\t\\t}\";\n return output;\n }", "@Override\n\tpublic void firstLine(String line) {\n\t\t// read variable names, build map of name -> column\n\t\tfinal Map<String, Integer> vars = Maps.newHashMap();\n\t\tvariableNames = parseCsvLine(line);\n\t\tint column = 0;\n\t\tfor (String var : variableNames) {\n\t\t\tvars.put(var, column++);\n\t\t}\n\n\t\t// record target column and establish dictionary for decoding target\n\t\ttarget = vars.get(targetName);\n\n\t\t// record id column\n\t\tif (idName != null) {\n\t\t\tid = vars.get(idName);\n\t\t}\n\n\t\t// create list of predictor column numbers\n\t\tpredictors = Lists.newArrayList(Collections2.transform(typeMap.keySet(), new Function<String, Integer>() {\n\t\t\t@Override\n\t\t\tpublic Integer apply(String from) {\n\t\t\t\tInteger r = vars.get(from);\n\t\t\t\tPreconditions.checkArgument(r != null, \"Can't find variable %s, only know about %s\", from, vars);\n\t\t\t\treturn r;\n\t\t\t}\n\t\t}));\n\n\t\tif (includeBiasTerm) {\n\t\t\tpredictors.add(-1);\n\t\t}\n\t\tCollections.sort(predictors);\n\n\t\t// and map from column number to type encoder for each column that is a\n\t\t// predictor\n\t\tpredictorEncoders = Maps.newHashMap();\n\t\tfor (Integer predictor : predictors) {\n\t\t\tString name;\n\t\t\tClass<? extends FeatureVectorEncoder> c;\n\t\t\tif (predictor == -1) {\n\t\t\t\tname = INTERCEPT_TERM;\n\t\t\t\tc = ConstantValueEncoder.class;\n\t\t\t} else {\n\t\t\t\tname = variableNames.get(predictor);\n\t\t\t\tc = TYPE_DICTIONARY.get(typeMap.get(name));\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tPreconditions.checkArgument(c != null, \"Invalid type of variable %s, wanted one of %s\",\n\t\t\t\t\t\ttypeMap.get(name), TYPE_DICTIONARY.keySet());\n\t\t\t\tConstructor<? extends FeatureVectorEncoder> constructor = c.getConstructor(String.class);\n\t\t\t\tPreconditions.checkArgument(constructor != null, \"Can't find correct constructor for %s\",\n\t\t\t\t\t\ttypeMap.get(name));\n\t\t\t\tFeatureVectorEncoder encoder = constructor.newInstance(name);\n\t\t\t\tpredictorEncoders.put(predictor, encoder);\n\t\t\t\tencoder.setTraceDictionary(traceDictionary);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tthrow new IllegalStateException(CANNOT_CONSTRUCT_CONVERTER, e);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tthrow new IllegalStateException(CANNOT_CONSTRUCT_CONVERTER, e);\n\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\tthrow new IllegalStateException(CANNOT_CONSTRUCT_CONVERTER, e);\n\t\t\t} catch (NoSuchMethodException e) {\n\t\t\t\tthrow new IllegalStateException(CANNOT_CONSTRUCT_CONVERTER, e);\n\t\t\t}\n\t\t}\n\t}", "public RowDataInterpreter getRowDataInterpreter() {\n class Interpreter\n implements RowDataInterpreter {\n\n public Object interpret(RowReference row)\n throws DBException\n {\n\t // create MGIMarker object - this sets the preferred MGI ID as \n\t // a Bucketizable ID attribute\n MGIMarker marker = new MGIMarker(row.getString(1));\n\t // set the preferred MGI ID as a MGIMarker attribute\n marker.mgiID = row.getString(1);\n\t \n marker.symbol = row.getString(2);\n marker.name = row.getString(3);\n marker.chromosome = row.getString(4);\n marker.type = row.getString(5);\n marker.key = row.getInt(6);\n\n // adds the the preferred MGI ID to the set of all MGI Ids\n\t // for this MGIMarker\n // adds the preferred MGI ID to the Bucketizable SVASet\n marker.addMGIID(new SequenceAccession(marker.mgiID,\n SequenceAccession.MGI));\n\n /**\n * obtain sequence associations AND non-preferred MGI ids for the \n\t * marker\n */\n try\n {\n\t\t // sequences also contains non-preferred MGI IDs\n Vector sequences = sequenceLookup.lookup(marker.key);\n if (sequences == null)\n return marker;\n for (int i = 0; i < sequences.size(); i++)\n {\n SequenceAccession acc =\n (SequenceAccession)sequences.get(i);\n String seq = acc.getAccid();\n String seqCategory = accidClassifier.classify(seq);\n\n if (seqCategory.equals(Constants.GENBANK))\n {\n // set bucketizable data\n marker.addGenBankSequence(acc);\n }\n else if (seqCategory.equals(Constants.XM))\n {\n // set bucketizable data\n marker.addXMSequence(acc);\n }\n else if (seqCategory.equals(Constants.XR))\n {\n // set bucketizable data\n marker.addXRSequence(acc);\n }\n else if (seqCategory.equals(Constants.XP))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addXPSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NM))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNMSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NR))\n\t\t {\n\t\t // set bucketizable data\n marker.addNRSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NP))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNPSequence(acc);\n\t\t }\n else if (seqCategory.equals(Constants.NG))\n\t\t {\n\t\t\t // set bucketizable data\n marker.addNGSequence(acc);\n\t\t }\n\t\t else if (seqCategory.equals(Constants.NT))\n {\n // set bucketizable data\n marker.addNTSequence(acc);\n }\n\t\t else if (seqCategory.equals(Constants.NW))\n {\n // set bucketizable data\n marker.addNWSequence(acc);\n }\n else if (seqCategory.equals(Constants.MGIID))\n {\n // set bucketizable data\n marker.addMGIID(acc);\n }\n }\n }\n catch (CacheException e)\n {\n DBExceptionFactory eFactory = new DBExceptionFactory();\n DBException e2 = (DBException)\n eFactory.getException(DBExceptionFactory.ConfigErr, e);\n throw e2;\n }\n\n return marker;\n }\n }\n\n return new Interpreter();\n }", "private String composeMarkedSentence(String source) {\n \tString charstates=\"\";\r\n \ttry{\r\n \t\tint ct=0;\r\n \t\tStatement stmt = conn.createStatement();\r\n \t\tStatement stmt1 = conn.createStatement();\r\n \t\tStatement stmt2 = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(\"select * from marked_simpleseg where source='\"+source+\"'\");\r\n\t \twhile(rs.next()){\r\n\t \t\tct+=1;\r\n\t \t}\r\n\t\t\tif(ct==1){\r\n\t\t\t\tResultSet rs1 = stmt1.executeQuery(\"select * from marked_simpleseg where source='\"+source+\"'\");\r\n\t\t\t\twhile(rs1.next()){\r\n\t\t\t\t\tString str=rs1.getString(3);\r\n\t\t\t\t\tPattern pattern1 = Pattern.compile(\"[a-zA-Z\\\\_]+=\\\"[\\\\w±\\\\+\\\\–\\\\-\\\\.:/\\\\_;x´X\\\\×\\\\s,]+\\\"\");\r\n\t \tMatcher matcher = pattern1.matcher(str);\r\n\t \twhile ( matcher.find()){\r\n\t \t\tint i=matcher.start();\r\n\t \t\tint j=matcher.end();\r\n\t \t\tcharstates=charstates.concat(str.subSequence(i,j).toString()+\" \");\r\n\t }\r\n\t \tmatcher.reset();\r\n\t\t\t\t}\r\n\t\t\t\thasSeg = 0;\r\n\t\t\t}\r\n\t\t\telse if(ct>1){\r\n\t\t\t\tResultSet rs2 = stmt2.executeQuery(\"select * from marked_simpleseg where source='\"+source+\"'\");\r\n\t\t\t\twhile(rs2.next()){\r\n\t\t\t\t\tcharstates=charstates.concat(rs2.getString(3));\r\n\t\t\t\t}\r\n\t\t\t\thasSeg = 1;\r\n\t\t\t}\r\n \t}catch (Exception e)\r\n {\r\n \t\tStringWriter sw = new StringWriter();PrintWriter pw = new PrintWriter(sw);e.printStackTrace(pw);LOGGER.error(ApplicationUtilities.getProperty(\"CharaParser.version\")+System.getProperty(\"line.separator\")+sw.toString());\r\n }\r\n \treturn charstates;\r\n\t}", "private void translateBtnActionPerformed(ActionEvent evt) {\r\n if(switchBtnState == 1) {\r\n assemblyreader = new mipstoc.read.CodeReader(inputTxtArea.getText());\r\n mipstoc.lexer.Lexer lex = new mipstoc.lexer.Lexer(assemblyreader);\r\n mipstoc.parser.Parser parser = new mipstoc.parser.Parser(lex);\r\n try {\r\n parser.program();\r\n outputTxtArea.setText(mipstoc.parser.Parser.output);\r\n mipstoc.parser.Parser.output = \"\";\r\n }\r\n catch(Error e) {\r\n \tToolkit.getDefaultToolkit().beep();\r\n \tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n else {\r\n \ttry {\r\n \t\tctomips.reader.ReadFile reader = new ctomips.reader.ReadFile(inputTxtArea.getText());\r\n \tctomips.lexer.LexInter li = new ctomips.lexer.LexInter();\r\n \tctomips.asm.Assembly ass = new ctomips.asm.Assembly(li);\r\n \tctomips.lexer.Lexer lex = new ctomips.lexer.Lexer(reader);\r\n \tctomips.parser.Parser parser = new ctomips.parser.Parser(lex, ass);\r\n \tctomips.inter.Node.labels = 0;\r\n \tctomips.lexer.Lexer.line = 1;\r\n \tparser.program();\r\n \tass.program();\r\n \toutputTxtArea.setText(ass.assembStr);\r\n \tctomips.parser.Parser.output = \"\";\r\n \t}\r\n \tcatch(IOException ie) {\r\n \t\t\r\n \t}\r\n \tcatch(Error e) {\r\n \t\tToolkit.getDefaultToolkit().beep();\r\n \t\tJOptionPane.showMessageDialog(panel, e.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t}\r\n }\r\n }", "public static void main(String[] args) {\n //Ersetzt jetzt mal unseren Parser, Stell Dir vor\n // das Ding liest das Beispiel da oben ^^.\n final StatementNode[] statementNodes = readStatements();\n \n //Zustände:\n // - FillSymbolTable (was für Symbole [variablen, ...] gibt es)\n // - TypInferenz (Was für Typen haben die Expressions und sind die eingaben semantisch korrekt)\n // - CodeGenerierung oder Ausführung (ersetzen wir mit \"schreibe die Werte aller Variablen nach Ende der Ausführung\")\n \n \n final SymbolTabelle symbolTabelle = new SymbolTabelle();\n //IDEE 2:\n //Ich gebe Statements und Expressions nur eine Methode mit Visitor als Callback\n final StatementVisitorSymbolTabelle statementVisitorSymbolTabelle = new StatementVisitorSymbolTabelle(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorSymbolTabelle);\n }\n \n final StatementVisitorTypInferenz statementVisitorTypInferenz = new StatementVisitorTypInferenz(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorTypInferenz);\n }\n \n PseudoLaufContext laufContext = new PseudoLaufContext();\n final StatementVisitorCodeGen statementVisitorCodeGen = new StatementVisitorCodeGen(laufContext);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorCodeGen);\n }\n \n laufContext.druckeVariablen();\n \n //Zusammenfassung:\n //Reduktion des Problems darauf, den Code nur noch von einem Abhängig zu machen\n //Jetzt nur noch abhängig vom Typ des Statements\n \n \n //Problem hierbei:\n //Ich muss selbst angeben, in welchem Zustand ich bin\n //Code-Duplizierung\n }", "private void SolveTranslation(){\n\n int Cursor=0;\n Pattern pt = Pattern.compile(\"\\\"(.*?)\\\"\");\n Matcher matcher = pt.matcher(Input);\n while(matcher.find()){\n this.Undone[Cursor++] = matcher.group();\n //System.out.println(Undone[Cursor-1]);\n }\n Input = matcher.replaceAll(\"CCC\");\n }", "@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000T\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\t\\n\\u0002\\b\\u0007\\n\\u0002\\u0010\\u000b\\n\\u0002\\b\\u0005\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0005\\n\\u0002\\u0010 \\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\n\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\bv\\u0018\\u00002\\u00020\\u0001:\\u0004./01J\\b\\u0010,\\u001a\\u00020\\u000fH&J\\b\\u0010-\\u001a\\u00020\\u000fH&R\\u0014\\u0010\\u0002\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0004\\u0010\\u0005R\\u0012\\u0010\\u0006\\u001a\\u00020\\u0007X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\b\\u0010\\tR\\u0014\\u0010\\n\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u000b\\u0010\\u0005R\\u0014\\u0010\\f\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\r\\u0010\\u0005R\\u0012\\u0010\\u000e\\u001a\\u00020\\u000fX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u000e\\u0010\\u0010R\\u0012\\u0010\\u0011\\u001a\\u00020\\u000fX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0011\\u0010\\u0010R\\u0014\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0013\\u0010\\u0005R\\u0014\\u0010\\u0014\\u001a\\u0004\\u0018\\u00010\\u0015X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u0016\\u0010\\u0017R\\u0014\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u001a\\u0010\\u001bR\\u0014\\u0010\\u001c\\u001a\\u0004\\u0018\\u00010\\u001dX\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b\\u001e\\u0010\\u001fR\\u0014\\u0010 \\u001a\\u0004\\u0018\\u00010\\u0003X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b!\\u0010\\u0005R\\u0018\\u0010\\\"\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030#X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b$\\u0010%R\\u0014\\u0010&\\u001a\\u0004\\u0018\\u00010\\'X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b(\\u0010)R\\u0018\\u0010*\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030#X\\u00a6\\u0004\\u00a2\\u0006\\u0006\\u001a\\u0004\\b+\\u0010%\\u0082\\u0001\\u000223\\u00a8\\u00064\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent;\", \"Lcom/stripe/android/model/StripeModel;\", \"clientSecret\", \"\", \"getClientSecret\", \"()Ljava/lang/String;\", \"created\", \"\", \"getCreated\", \"()J\", \"description\", \"getDescription\", \"id\", \"getId\", \"isConfirmed\", \"\", \"()Z\", \"isLiveMode\", \"lastErrorMessage\", \"getLastErrorMessage\", \"nextActionData\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"getNextActionData\", \"()Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"nextActionType\", \"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"getNextActionType\", \"()Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"paymentMethod\", \"Lcom/stripe/android/model/PaymentMethod;\", \"getPaymentMethod\", \"()Lcom/stripe/android/model/PaymentMethod;\", \"paymentMethodId\", \"getPaymentMethodId\", \"paymentMethodTypes\", \"\", \"getPaymentMethodTypes\", \"()Ljava/util/List;\", \"status\", \"Lcom/stripe/android/model/StripeIntent$Status;\", \"getStatus\", \"()Lcom/stripe/android/model/StripeIntent$Status;\", \"unactivatedPaymentMethods\", \"getUnactivatedPaymentMethods\", \"requiresAction\", \"requiresConfirmation\", \"NextActionData\", \"NextActionType\", \"Status\", \"Usage\", \"Lcom/stripe/android/model/PaymentIntent;\", \"Lcom/stripe/android/model/SetupIntent;\", \"payments-core_release\"})\npublic abstract interface StripeIntent extends com.stripe.android.model.StripeModel {\n \n /**\n * Unique identifier for the object.\n */\n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getId();\n \n /**\n * Time at which the object was created. Measured in seconds since the Unix epoch.\n */\n public abstract long getCreated();\n \n /**\n * An arbitrary string attached to the object. Often useful for displaying to users.\n */\n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getDescription();\n \n /**\n * Has the value true if the object exists in live mode or the value false if the object exists\n * in test mode.\n */\n public abstract boolean isLiveMode();\n \n /**\n * The expanded [PaymentMethod] represented by [paymentMethodId].\n */\n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getPaymentMethodId();\n \n /**\n * The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.\n */\n @org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.NextActionType getNextActionType();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getClientSecret();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.Status getStatus();\n \n @org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.StripeIntent.NextActionData getNextActionData();\n \n /**\n * Whether confirmation has succeeded and all required actions have been handled.\n */\n public abstract boolean isConfirmed();\n \n @org.jetbrains.annotations.Nullable()\n public abstract java.lang.String getLastErrorMessage();\n \n /**\n * Payment types that have not been activated in livemode, but have been activated in testmode.\n */\n @org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();\n \n public abstract boolean requiresAction();\n \n public abstract boolean requiresConfirmation();\n \n /**\n * Type of the next action to perform.\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\f\\b\\u0086\\u0001\\u0018\\u0000 \\u000e2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000eB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\nj\\u0002\\b\\u000bj\\u0002\\b\\fj\\u0002\\b\\r\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"RedirectToUrl\", \"UseStripeSdk\", \"DisplayOxxoDetails\", \"AlipayRedirect\", \"BlikAuthorize\", \"WeChatPayRedirect\", \"Companion\", \"payments-core_release\"})\n public static enum NextActionType {\n /*public static final*/ RedirectToUrl /* = new RedirectToUrl(null) */,\n /*public static final*/ UseStripeSdk /* = new UseStripeSdk(null) */,\n /*public static final*/ DisplayOxxoDetails /* = new DisplayOxxoDetails(null) */,\n /*public static final*/ AlipayRedirect /* = new AlipayRedirect(null) */,\n /*public static final*/ BlikAuthorize /* = new BlikAuthorize(null) */,\n /*public static final*/ WeChatPayRedirect /* = new WeChatPayRedirect(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.NextActionType.Companion Companion = null;\n \n NextActionType(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionType$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$NextActionType;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.NextActionType fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n /**\n * - [The Intent State Machine - Intent statuses](https://stripe.com/docs/payments/intents#intent-statuses)\n * - [PaymentIntent.status API reference](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status)\n * - [SetupIntent.status API reference](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-status)\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\r\\b\\u0086\\u0001\\u0018\\u0000 \\u000f2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000fB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\nj\\u0002\\b\\u000bj\\u0002\\b\\fj\\u0002\\b\\rj\\u0002\\b\\u000e\\u00a8\\u0006\\u0010\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Status;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"Canceled\", \"Processing\", \"RequiresAction\", \"RequiresConfirmation\", \"RequiresPaymentMethod\", \"Succeeded\", \"RequiresCapture\", \"Companion\", \"payments-core_release\"})\n public static enum Status {\n /*public static final*/ Canceled /* = new Canceled(null) */,\n /*public static final*/ Processing /* = new Processing(null) */,\n /*public static final*/ RequiresAction /* = new RequiresAction(null) */,\n /*public static final*/ RequiresConfirmation /* = new RequiresConfirmation(null) */,\n /*public static final*/ RequiresPaymentMethod /* = new RequiresPaymentMethod(null) */,\n /*public static final*/ Succeeded /* = new Succeeded(null) */,\n /*public static final*/ RequiresCapture /* = new RequiresCapture(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.Status.Companion Companion = null;\n \n Status(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Status$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$Status;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.Status fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n /**\n * See [setup_intent.usage](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-usage) and\n * [Reusing Cards](https://stripe.com/docs/payments/cards/reusing-cards).\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0012\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0010\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\t\\b\\u0086\\u0001\\u0018\\u0000 \\u000b2\\b\\u0012\\u0004\\u0012\\u00020\\u00000\\u0001:\\u0001\\u000bB\\u000f\\b\\u0002\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\b\\u0010\\u0007\\u001a\\u00020\\u0003H\\u0016R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006j\\u0002\\b\\bj\\u0002\\b\\tj\\u0002\\b\\n\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Usage;\", \"\", \"code\", \"\", \"(Ljava/lang/String;ILjava/lang/String;)V\", \"getCode\", \"()Ljava/lang/String;\", \"toString\", \"OnSession\", \"OffSession\", \"OneTime\", \"Companion\", \"payments-core_release\"})\n public static enum Usage {\n /*public static final*/ OnSession /* = new OnSession(null) */,\n /*public static final*/ OffSession /* = new OffSession(null) */,\n /*public static final*/ OneTime /* = new OneTime(null) */;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String code = null;\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.Usage.Companion Companion = null;\n \n Usage(java.lang.String code) {\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getCode() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u001a\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0080\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0019\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\b\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0006H\\u0000\\u00a2\\u0006\\u0002\\b\\u0007\\u00a8\\u0006\\b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$Usage$Companion;\", \"\", \"()V\", \"fromCode\", \"Lcom/stripe/android/model/StripeIntent$Usage;\", \"code\", \"\", \"fromCode$payments_core_release\", \"payments-core_release\"})\n public static final class Companion {\n \n private Companion() {\n super();\n }\n \n @org.jetbrains.annotations.Nullable()\n public final com.stripe.android.model.StripeIntent.Usage fromCode$payments_core_release(@org.jetbrains.annotations.Nullable()\n java.lang.String code) {\n return null;\n }\n }\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000&\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0007\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\b6\\u0018\\u00002\\u00020\\u0001:\\u0006\\u0003\\u0004\\u0005\\u0006\\u0007\\bB\\u0007\\b\\u0004\\u00a2\\u0006\\u0002\\u0010\\u0002\\u0082\\u0001\\u0006\\t\\n\\u000b\\f\\r\\u000e\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"Lcom/stripe/android/model/StripeModel;\", \"()V\", \"AlipayRedirect\", \"BlikAuthorize\", \"DisplayOxxoDetails\", \"RedirectToUrl\", \"SdkData\", \"WeChatPayRedirect\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayOxxoDetails;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$RedirectToUrl;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$BlikAuthorize;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$WeChatPayRedirect;\", \"payments-core_release\"})\n public static abstract class NextActionData implements com.stripe.android.model.StripeModel {\n \n private NextActionData() {\n super();\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u00004\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\r\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\'\\u0012\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u0012\\n\\b\\u0002\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\u0002\\u0010\\u0007J\\t\\u0010\\r\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\u000e\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J\\u000b\\u0010\\u000f\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J+\\u0010\\u0010\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u00052\\n\\b\\u0002\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0001J\\t\\u0010\\u0011\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0013\\u0010\\u0012\\u001a\\u00020\\u00132\\b\\u0010\\u0014\\u001a\\u0004\\u0018\\u00010\\u0015H\\u00d6\\u0003J\\t\\u0010\\u0016\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\t\\u0010\\u0017\\u001a\\u00020\\u0005H\\u00d6\\u0001J\\u0019\\u0010\\u0018\\u001a\\u00020\\u00192\\u0006\\u0010\\u001a\\u001a\\u00020\\u001b2\\u0006\\u0010\\u001c\\u001a\\u00020\\u0003H\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\b\\u0010\\tR\\u0013\\u0010\\u0006\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\n\\u0010\\u000bR\\u0013\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\u000b\\u00a8\\u0006\\u001d\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$DisplayOxxoDetails;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"expiresAfter\", \"\", \"number\", \"\", \"hostedVoucherUrl\", \"(ILjava/lang/String;Ljava/lang/String;)V\", \"getExpiresAfter\", \"()I\", \"getHostedVoucherUrl\", \"()Ljava/lang/String;\", \"getNumber\", \"component1\", \"component2\", \"component3\", \"copy\", \"describeContents\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class DisplayOxxoDetails extends com.stripe.android.model.StripeIntent.NextActionData {\n \n /**\n * The timestamp after which the OXXO expires.\n */\n private final int expiresAfter = 0;\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String number = null;\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String hostedVoucherUrl = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails copy(int expiresAfter, @org.jetbrains.annotations.Nullable()\n java.lang.String number, @org.jetbrains.annotations.Nullable()\n java.lang.String hostedVoucherUrl) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public DisplayOxxoDetails() {\n super();\n }\n \n public DisplayOxxoDetails(int expiresAfter, @org.jetbrains.annotations.Nullable()\n java.lang.String number, @org.jetbrains.annotations.Nullable()\n java.lang.String hostedVoucherUrl) {\n super();\n }\n \n /**\n * The timestamp after which the OXXO expires.\n */\n public final int component1() {\n return 0;\n }\n \n /**\n * The timestamp after which the OXXO expires.\n */\n public final int getExpiresAfter() {\n return 0;\n }\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n /**\n * The OXXO number.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getNumber() {\n return null;\n }\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component3() {\n return null;\n }\n \n /**\n * URL of a webpage containing the voucher for this OXXO payment.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getHostedVoucherUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.DisplayOxxoDetails[] newArray(int size) {\n return null;\n }\n }\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000:\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\t\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\u0017\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\b\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\u0002\\u0010\\u0006J\\t\\u0010\\u000b\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\f\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0003J\\u001f\\u0010\\r\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005H\\u00c6\\u0001J\\t\\u0010\\u000e\\u001a\\u00020\\u000fH\\u00d6\\u0001J\\u0013\\u0010\\u0010\\u001a\\u00020\\u00112\\b\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0013H\\u00d6\\u0003J\\t\\u0010\\u0014\\u001a\\u00020\\u000fH\\u00d6\\u0001J\\t\\u0010\\u0015\\u001a\\u00020\\u0005H\\u00d6\\u0001J\\u0019\\u0010\\u0016\\u001a\\u00020\\u00172\\u0006\\u0010\\u0018\\u001a\\u00020\\u00192\\u0006\\u0010\\u001a\\u001a\\u00020\\u000fH\\u00d6\\u0001R\\u0013\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0007\\u0010\\bR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\n\\u00a8\\u0006\\u001b\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$RedirectToUrl;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"url\", \"Landroid/net/Uri;\", \"returnUrl\", \"\", \"(Landroid/net/Uri;Ljava/lang/String;)V\", \"getReturnUrl\", \"()Ljava/lang/String;\", \"getUrl\", \"()Landroid/net/Uri;\", \"component1\", \"component2\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class RedirectToUrl extends com.stripe.android.model.StripeIntent.NextActionData {\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n private final android.net.Uri url = null;\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String returnUrl = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl> CREATOR = null;\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl copy(@org.jetbrains.annotations.NotNull()\n android.net.Uri url, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n return null;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n /**\n * Contains instructions for authenticating by redirecting your customer to another\n * page or application.\n */\n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public RedirectToUrl(@org.jetbrains.annotations.NotNull()\n android.net.Uri url, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri component1() {\n return null;\n }\n \n /**\n * The URL you must redirect your customer to in order to authenticate.\n */\n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri getUrl() {\n return null;\n }\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n /**\n * If the customer does not exit their browser while authenticating, they will be redirected\n * to this specified URL after completion.\n */\n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getReturnUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.RedirectToUrl[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0004\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\r\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\b\\u0081\\b\\u0018\\u0000 \\\"2\\u00020\\u0001:\\u0001\\\"B#\\b\\u0010\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0006B+\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\b\\u0012\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\tJ\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000b\\u0010\\u0011\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0012\\u001a\\u00020\\bH\\u00c6\\u0003J\\u000b\\u0010\\u0013\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J5\\u0010\\u0014\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\n\\b\\u0002\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\b2\\n\\b\\u0002\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0001J\\t\\u0010\\u0015\\u001a\\u00020\\u0016H\\u00d6\\u0001J\\u0013\\u0010\\u0017\\u001a\\u00020\\u00182\\b\\u0010\\u0019\\u001a\\u0004\\u0018\\u00010\\u001aH\\u00d6\\u0003J\\t\\u0010\\u001b\\u001a\\u00020\\u0016H\\u00d6\\u0001J\\t\\u0010\\u001c\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001d\\u001a\\u00020\\u001e2\\u0006\\u0010\\u001f\\u001a\\u00020 2\\u0006\\u0010!\\u001a\\u00020\\u0016H\\u00d6\\u0001R\\u0013\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\n\\u0010\\u000bR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\u000bR\\u0013\\u0010\\u0005\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\u000bR\\u0011\\u0010\\u0004\\u001a\\u00020\\b\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000e\\u0010\\u000f\\u00a8\\u0006#\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"data\", \"\", \"webViewUrl\", \"returnUrl\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V\", \"authCompleteUrl\", \"Landroid/net/Uri;\", \"(Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/lang/String;)V\", \"getAuthCompleteUrl\", \"()Ljava/lang/String;\", \"getData\", \"getReturnUrl\", \"getWebViewUrl\", \"()Landroid/net/Uri;\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"Companion\", \"payments-core_release\"})\n public static final class AlipayRedirect extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String data = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String authCompleteUrl = null;\n @org.jetbrains.annotations.NotNull()\n private final android.net.Uri webViewUrl = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String returnUrl = null;\n @org.jetbrains.annotations.NotNull()\n private static final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect.Companion Companion = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect copy(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.Nullable()\n java.lang.String authCompleteUrl, @org.jetbrains.annotations.NotNull()\n android.net.Uri webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public AlipayRedirect(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.Nullable()\n java.lang.String authCompleteUrl, @org.jetbrains.annotations.NotNull()\n android.net.Uri webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getData() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getAuthCompleteUrl() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final android.net.Uri getWebViewUrl() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component4() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getReturnUrl() {\n return null;\n }\n \n public AlipayRedirect(@org.jetbrains.annotations.NotNull()\n java.lang.String data, @org.jetbrains.annotations.NotNull()\n java.lang.String webViewUrl, @org.jetbrains.annotations.Nullable()\n java.lang.String returnUrl) {\n super();\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.AlipayRedirect[] newArray(int size) {\n return null;\n }\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0014\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\b\\u0082\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u0012\\u0010\\u0003\\u001a\\u0004\\u0018\\u00010\\u00042\\u0006\\u0010\\u0005\\u001a\\u00020\\u0004H\\u0002\\u00a8\\u0006\\u0006\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$AlipayRedirect$Companion;\", \"\", \"()V\", \"extractReturnUrl\", \"\", \"data\", \"payments-core_release\"})\n static final class Companion {\n \n private Companion() {\n super();\n }\n \n /**\n * The alipay data string is formatted as query parameters.\n * When authenticate is complete, we make a request to the\n * return_url param, as a hint to the backend to ping Alipay for\n * the updated state\n */\n private final java.lang.String extractReturnUrl(java.lang.String data) {\n return null;\n }\n }\n }\n \n /**\n * When confirming a [PaymentIntent] or [SetupIntent] with the Stripe SDK, the Stripe SDK\n * depends on this property to invoke authentication flows. The shape of the contents is subject\n * to change and is only intended to be used by the Stripe SDK.\n */\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000\\u0016\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\b6\\u0018\\u00002\\u00020\\u0001:\\u0002\\u0003\\u0004B\\u0007\\b\\u0004\\u00a2\\u0006\\u0002\\u0010\\u0002\\u0082\\u0001\\u0002\\u0005\\u0006\\u00a8\\u0006\\u0007\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"()V\", \"Use3DS1\", \"Use3DS2\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS1;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2;\", \"payments-core_release\"})\n public static abstract class SdkData extends com.stripe.android.model.StripeIntent.NextActionData {\n \n private SdkData() {\n super();\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u00004\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0006\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\r\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\t\\u0010\\u0007\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u0013\\u0010\\b\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003H\\u00c6\\u0001J\\t\\u0010\\t\\u001a\\u00020\\nH\\u00d6\\u0001J\\u0013\\u0010\\u000b\\u001a\\u00020\\f2\\b\\u0010\\r\\u001a\\u0004\\u0018\\u00010\\u000eH\\u00d6\\u0003J\\t\\u0010\\u000f\\u001a\\u00020\\nH\\u00d6\\u0001J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u0011\\u001a\\u00020\\u00122\\u0006\\u0010\\u0013\\u001a\\u00020\\u00142\\u0006\\u0010\\u0015\\u001a\\u00020\\nH\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006\\u00a8\\u0006\\u0016\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS1;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"url\", \"\", \"(Ljava/lang/String;)V\", \"getUrl\", \"()Ljava/lang/String;\", \"component1\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class Use3DS1 extends com.stripe.android.model.StripeIntent.NextActionData.SdkData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String url = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1 copy(@org.jetbrains.annotations.NotNull()\n java.lang.String url) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public Use3DS1(@org.jetbrains.annotations.NotNull()\n java.lang.String url) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getUrl() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1 createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS1[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\r\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0003\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001:\\u0001!B%\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0005\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007\\u00a2\\u0006\\u0002\\u0010\\bJ\\t\\u0010\\u000f\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0011\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0012\\u001a\\u00020\\u0007H\\u00c6\\u0003J1\\u0010\\u0013\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0005\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0006\\u001a\\u00020\\u0007H\\u00c6\\u0001J\\t\\u0010\\u0014\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\u0013\\u0010\\u0016\\u001a\\u00020\\u00172\\b\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019H\\u00d6\\u0003J\\t\\u0010\\u001a\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\t\\u0010\\u001b\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001c\\u001a\\u00020\\u001d2\\u0006\\u0010\\u001e\\u001a\\u00020\\u001f2\\u0006\\u0010 \\u001a\\u00020\\u0015H\\u00d6\\u0001R\\u0011\\u0010\\u0006\\u001a\\u00020\\u0007\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\nR\\u0011\\u0010\\u0004\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000b\\u0010\\fR\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\fR\\u0011\\u0010\\u0005\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000e\\u0010\\f\\u00a8\\u0006\\\"\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData;\", \"source\", \"\", \"serverName\", \"transactionId\", \"serverEncryption\", \"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;)V\", \"getServerEncryption\", \"()Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"getServerName\", \"()Ljava/lang/String;\", \"getSource\", \"getTransactionId\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"DirectoryServerEncryption\", \"payments-core_release\"})\n public static final class Use3DS2 extends com.stripe.android.model.StripeIntent.NextActionData.SdkData {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String source = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String serverName = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String transactionId = null;\n @org.jetbrains.annotations.NotNull()\n private final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2 copy(@org.jetbrains.annotations.NotNull()\n java.lang.String source, @org.jetbrains.annotations.NotNull()\n java.lang.String serverName, @org.jetbrains.annotations.NotNull()\n java.lang.String transactionId, @org.jetbrains.annotations.NotNull()\n com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public Use3DS2(@org.jetbrains.annotations.NotNull()\n java.lang.String source, @org.jetbrains.annotations.NotNull()\n java.lang.String serverName, @org.jetbrains.annotations.NotNull()\n java.lang.String transactionId, @org.jetbrains.annotations.NotNull()\n com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption serverEncryption) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getSource() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getServerName() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getTransactionId() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption component4() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption getServerEncryption() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2 createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2[] newArray(int size) {\n return null;\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000<\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u000e\\n\\u0002\\b\\u0002\\n\\u0002\\u0010 \\n\\u0002\\b\\u000e\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B-\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u0012\\u0006\\u0010\\u0004\\u001a\\u00020\\u0003\\u0012\\f\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006\\u0012\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\u0002\\u0010\\bJ\\t\\u0010\\u000f\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\t\\u0010\\u0010\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u000f\\u0010\\u0011\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006H\\u00c6\\u0003J\\u000b\\u0010\\u0012\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0003J9\\u0010\\u0013\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u00032\\b\\b\\u0002\\u0010\\u0004\\u001a\\u00020\\u00032\\u000e\\b\\u0002\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u00062\\n\\b\\u0002\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003H\\u00c6\\u0001J\\t\\u0010\\u0014\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\u0013\\u0010\\u0016\\u001a\\u00020\\u00172\\b\\u0010\\u0018\\u001a\\u0004\\u0018\\u00010\\u0019H\\u00d6\\u0003J\\t\\u0010\\u001a\\u001a\\u00020\\u0015H\\u00d6\\u0001J\\t\\u0010\\u001b\\u001a\\u00020\\u0003H\\u00d6\\u0001J\\u0019\\u0010\\u001c\\u001a\\u00020\\u001d2\\u0006\\u0010\\u001e\\u001a\\u00020\\u001f2\\u0006\\u0010 \\u001a\\u00020\\u0015H\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\t\\u0010\\nR\\u0011\\u0010\\u0004\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u000b\\u0010\\nR\\u0013\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\f\\u0010\\nR\\u0017\\u0010\\u0005\\u001a\\b\\u0012\\u0004\\u0012\\u00020\\u00030\\u0006\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\r\\u0010\\u000e\\u00a8\\u0006!\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$SdkData$Use3DS2$DirectoryServerEncryption;\", \"Landroid/os/Parcelable;\", \"directoryServerId\", \"\", \"dsCertificateData\", \"rootCertsData\", \"\", \"keyId\", \"(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V\", \"getDirectoryServerId\", \"()Ljava/lang/String;\", \"getDsCertificateData\", \"getKeyId\", \"getRootCertsData\", \"()Ljava/util/List;\", \"component1\", \"component2\", \"component3\", \"component4\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class DirectoryServerEncryption implements android.os.Parcelable {\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String directoryServerId = null;\n @org.jetbrains.annotations.NotNull()\n private final java.lang.String dsCertificateData = null;\n @org.jetbrains.annotations.NotNull()\n private final java.util.List<java.lang.String> rootCertsData = null;\n @org.jetbrains.annotations.Nullable()\n private final java.lang.String keyId = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption copy(@org.jetbrains.annotations.NotNull()\n java.lang.String directoryServerId, @org.jetbrains.annotations.NotNull()\n java.lang.String dsCertificateData, @org.jetbrains.annotations.NotNull()\n java.util.List<java.lang.String> rootCertsData, @org.jetbrains.annotations.Nullable()\n java.lang.String keyId) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public DirectoryServerEncryption(@org.jetbrains.annotations.NotNull()\n java.lang.String directoryServerId, @org.jetbrains.annotations.NotNull()\n java.lang.String dsCertificateData, @org.jetbrains.annotations.NotNull()\n java.util.List<java.lang.String> rootCertsData, @org.jetbrains.annotations.Nullable()\n java.lang.String keyId) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getDirectoryServerId() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String component2() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.lang.String getDsCertificateData() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.util.List<java.lang.String> component3() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final java.util.List<java.lang.String> getRootCertsData() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String component4() {\n return null;\n }\n \n @org.jetbrains.annotations.Nullable()\n public final java.lang.String getKeyId() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.SdkData.Use3DS2.DirectoryServerEncryption[] newArray(int size) {\n return null;\n }\n }\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000.\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u00c7\\u0002\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\t\\u0010\\u0003\\u001a\\u00020\\u0004H\\u00d6\\u0001J\\u0013\\u0010\\u0005\\u001a\\u00020\\u00062\\b\\u0010\\u0007\\u001a\\u0004\\u0018\\u00010\\bH\\u0096\\u0002J\\b\\u0010\\t\\u001a\\u00020\\u0004H\\u0016J\\u0019\\u0010\\n\\u001a\\u00020\\u000b2\\u0006\\u0010\\f\\u001a\\u00020\\r2\\u0006\\u0010\\u000e\\u001a\\u00020\\u0004H\\u00d6\\u0001\\u00a8\\u0006\\u000f\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$BlikAuthorize;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"()V\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class BlikAuthorize extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n public static final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize INSTANCE = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize> CREATOR = null;\n \n private BlikAuthorize() {\n super();\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.BlikAuthorize[] newArray(int size) {\n return null;\n }\n }\n }\n \n @kotlinx.parcelize.Parcelize()\n @androidx.annotation.RestrictTo(value = {androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP})\n @kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {\"\\u0000:\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0006\\n\\u0002\\u0010\\b\\n\\u0000\\n\\u0002\\u0010\\u000b\\n\\u0000\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u000e\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\b\\u0087\\b\\u0018\\u00002\\u00020\\u0001B\\r\\u0012\\u0006\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\u0002\\u0010\\u0004J\\t\\u0010\\u0007\\u001a\\u00020\\u0003H\\u00c6\\u0003J\\u0013\\u0010\\b\\u001a\\u00020\\u00002\\b\\b\\u0002\\u0010\\u0002\\u001a\\u00020\\u0003H\\u00c6\\u0001J\\t\\u0010\\t\\u001a\\u00020\\nH\\u00d6\\u0001J\\u0013\\u0010\\u000b\\u001a\\u00020\\f2\\b\\u0010\\r\\u001a\\u0004\\u0018\\u00010\\u000eH\\u00d6\\u0003J\\t\\u0010\\u000f\\u001a\\u00020\\nH\\u00d6\\u0001J\\t\\u0010\\u0010\\u001a\\u00020\\u0011H\\u00d6\\u0001J\\u0019\\u0010\\u0012\\u001a\\u00020\\u00132\\u0006\\u0010\\u0014\\u001a\\u00020\\u00152\\u0006\\u0010\\u0016\\u001a\\u00020\\nH\\u00d6\\u0001R\\u0011\\u0010\\u0002\\u001a\\u00020\\u0003\\u00a2\\u0006\\b\\n\\u0000\\u001a\\u0004\\b\\u0005\\u0010\\u0006\\u00a8\\u0006\\u0017\"}, d2 = {\"Lcom/stripe/android/model/StripeIntent$NextActionData$WeChatPayRedirect;\", \"Lcom/stripe/android/model/StripeIntent$NextActionData;\", \"weChat\", \"Lcom/stripe/android/model/WeChat;\", \"(Lcom/stripe/android/model/WeChat;)V\", \"getWeChat\", \"()Lcom/stripe/android/model/WeChat;\", \"component1\", \"copy\", \"describeContents\", \"\", \"equals\", \"\", \"other\", \"\", \"hashCode\", \"toString\", \"\", \"writeToParcel\", \"\", \"parcel\", \"Landroid/os/Parcel;\", \"flags\", \"payments-core_release\"})\n public static final class WeChatPayRedirect extends com.stripe.android.model.StripeIntent.NextActionData {\n @org.jetbrains.annotations.NotNull()\n private final com.stripe.android.model.WeChat weChat = null;\n public static final android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect> CREATOR = null;\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect copy(@org.jetbrains.annotations.NotNull()\n com.stripe.android.model.WeChat weChat) {\n return null;\n }\n \n @java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }\n \n @java.lang.Override()\n public int hashCode() {\n return 0;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }\n \n public WeChatPayRedirect(@org.jetbrains.annotations.NotNull()\n com.stripe.android.model.WeChat weChat) {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.WeChat component1() {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model.WeChat getWeChat() {\n return null;\n }\n \n @java.lang.Override()\n public int describeContents() {\n return 0;\n }\n \n @java.lang.Override()\n public void writeToParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel parcel, int flags) {\n }\n \n @kotlin.Metadata(mv = {1, 5, 1}, k = 3)\n public static final class Creator implements android.os.Parcelable.Creator<com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect> {\n \n public Creator() {\n super();\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect createFromParcel(@org.jetbrains.annotations.NotNull()\n android.os.Parcel in) {\n return null;\n }\n \n @org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public final com.stripe.android.model.StripeIntent.NextActionData.WeChatPayRedirect[] newArray(int size) {\n return null;\n }\n }\n }\n }\n}", "public void evaluate_fixpoint_sequence() {\n // JOptionPane.showMessageDialog(null, \"Evaluating the Fixed Point-Sequence m[8]...m[17]\" );\n // DES_action_type = 0;\n int[][] init_fixedpoint_sequence = new int[10][32];\n // Initialisierung\n // for (int p=0; p<10; p++)\n // for (int t=0; t<32; t++)\n // init_fixedpoint_sequence[p][t] = 0;\n intialize_matrix(init_fixedpoint_sequence);\n DES_fixedpoint_sequence = init_fixedpoint_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_fixedpoint_sequence[0][j] = DES_m8[j];\n DES_fixedpoint_sequence[1][j] = DES_m8[j];\n }\n\n for (int i = 2; i < 10; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_fixedpoint_sequence[i - 1]), DES_K[i + 6]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_fixedpoint_sequence[i] = exclusive_or(DES_fixedpoint_sequence[i - 2], fmK);\n }\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n ArrayList<String> Tokens = new ArrayList<String>();\n\n String CODE = jTextArea1.getText();\n //String CODE=\"{float cos, x, n, term, eps, alt;\";\n String code = CODE.replaceAll(\"(?:/\\\\*(?:[^*]|(?:\\\\*+[^*/]))*\\\\*+/)|(?://.*)\", \"\")\n .replace(\"+\", \" + \")\n .replace(\"-\", \" - \")\n .replace(\"*\", \" * \")\n .replace(\"/\", \" / \")\n .replace(\"==\", \" == \")\n .replace(\">=\", \" >= \")\n .replace(\"<=\", \" <= \")\n .replace(\"!=\", \" != \")\n .replace(\"&&\", \" && \")\n .replace(\"(\", \" ( \")\n .replace(\")\", \" ) \")\n .replace(\"{\", \" { \")\n .replace(\"}\", \" } \")\n .replace(\"[\", \" [ \")\n .replace(\"]\", \" ] \")\n .replace(\".\", \" . \")\n .replace(\",\", \" , \")\n .replace(\";\", \" ; \")\n .replace(\":\", \" ; \");\n\n String[] output = code.split(\"\\\\n+\");\n output2 = new String[output.length][];\n for (int i = 0; i < output.length; i++) {\n output2[i] = functionCall(output[i].split(\"\\\\s+\"));\n }\n //for(int i=0;i<output2.length;i++){\n // for(int j=0;j<output2[i].length;j++){\n // System.out.print(output2[i][j]+\" \");\n // }\n // System.out.println();\n //}\n output = functionCall(output);\n for (int j = 0; j < output2.length; j++) {\n for (int i = 0; i < output2[j].length; i++) {\n\n switch (output2[j][i]) {\n //DataTypes\n case (\"int\"):\n Tokens.add(\"int\");\n System.out.println(\"int --> DATA TYPE\");\n break;\n case (\"float\"):\n Tokens.add(\"float\");\n System.out.println(\"float --> DATA TYPE\");\n break;\n\n //Reserved Words\n case (\"for\"):\n Tokens.add(\"for\");\n System.out.println(\"for --> Reserved Word\");\n break;\n case (\"while\"):\n Tokens.add(\"while\");\n System.out.println(\"while --> Reserved Word\");\n break;\n case (\"if\"):\n Tokens.add(\"if\");\n System.out.println(\"if --> Reserved Word \");\n break;\n case (\"else\"):\n Tokens.add(\"else\");\n System.out.println(\"else --> Reserved Word \");\n break;\n //Binary Operators\n case (\"+\"):\n Tokens.add(\"+\");\n System.out.println(\"+ -->Binary Operator \");\n break;\n case (\"-\"):\n Tokens.add(\"-\");\n System.out.println(\"- -->Binary Operator \");\n break;\n case (\"*\"):\n Tokens.add(\"*\");\n System.out.println(\"* -->Binary Operator \");\n break;\n case (\"/\"):\n Tokens.add(\"/\");\n System.out.println(\"/ -->Binary Operator \");\n break;\n\n //Symbols \n case (\"\"):\n Tokens.add(\"\");\n System.out.println(\"\");\n break;\n case (\"=\"):\n Tokens.add(\"=\");\n System.out.println(\"= -->Symbol \");\n break;\n case (\"<\"):\n Tokens.add(\"<\");\n System.out.println(\"< -->Symbol \");\n break;\n case (\">\"):\n Tokens.add(\">\");\n System.out.println(\"> -->Symbol \");\n break;\n case (\"(\"):\n Tokens.add(\"(\");\n System.out.println(\"( -->Symbol \");\n break;\n case (\")\"):\n Tokens.add(\")\");\n System.out.println(\") -->Symbol \");\n break;\n case (\"{\"):\n Tokens.add(\"{\");\n System.out.println(\"{ -->Symbol \");\n break;\n case (\"}\"):\n Tokens.add(\"}\");\n System.out.println(\"} -->Symbol \");\n break;\n case (\";\"):\n Tokens.add(\";\");\n System.out.println(\"; -->Symbol \");\n break;\n case (\",\"):\n Tokens.add(\",\");\n System.out.println(\", -->Symbol \");\n break;\n case (\".\"):\n Tokens.add(\".\");\n System.out.println(\". -->Symbol \");\n break;\n case (\"<=\"):\n Tokens.add(\"<=\");\n System.out.println(\"<= -->Symbol \");\n break;\n case (\">=\"):\n Tokens.add(\">=\");\n System.out.println(\">= -->Symbol \");\n break;\n case (\"!=\"):\n Tokens.add(\"!=\");\n System.out.println(\"!= -->Symbol \");\n break;\n case (\"==\"):\n Tokens.add(\"==\");\n System.out.println(\"== -->Symbol \");\n break;\n\n default:\n String c = output2[j][i];\n\n char ch[] = c.toCharArray();\n\n if (Character.isDigit(ch[0])) {\n Tokens.add(\"Integer Lateral\");\n System.out.println(output2[j][i] + \" --> Integer Lateral \");\n } else if (Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } else if (c.matches(\"\") && Character.isLetter(ch[0])) {\n Tokens.add(\"Identifier\");\n System.out.println(output2[j][i] + \" --> Identifier \");\n } // else if(c.contains(\"=\"))\n // {\n // // symbols.contains(Character.toString(code.charAt(i)))\n // System.out.println(output[i] + \" --> Symbol \");\n // }\n else {\n System.out.println(output2[j][i] + \" --> Invalid Token \");\n }\n break;\n }\n }\n }\n\n\n }", "public void SLRParser () throws IOException {\n char Action ;\n String tableOutput;\n int num;\n int i;\n SLRParsStack.push(\"0\");\n while (!token.getValue().equals(\"&\")) {\n// System.out.println(token.getType() + \" \" + token.getValue());\n for (i = 0; i < SLRterminal.length; i++)\n {\n if (!BUCheckTerminal(token.getValue()))\n {\n if (SLRterminal[i].equals(\"id\")) {\n break;\n }\n }\n else {\n if (SLRterminal[i].equals(token.getValue()))\n break;\n }\n }\n// System.out.println(SLRParsStack.peek() + \" \" + i);\n tableOutput = BUParseTable[Integer.parseInt(SLRParsStack.peek()) + 1][i + 1];\n// System.out.println(tableOutput);\n Action = tableOutput.charAt(0);\n if (tableOutput.length() == 3)\n {\n num = Character.getNumericValue(tableOutput.charAt(1));\n num *= 10;\n num += Character.getNumericValue(tableOutput.charAt(2));\n }\n else\n {\n num = Character.getNumericValue(tableOutput.charAt(1));\n }\n// System.out.println(token.getValue());\n// System.out.println(Action);\n// System.out.println(num);\n switch (Action) {\n case 's':\n// System.out.println(\"in shift action\");\n SLRParsStack.push(String.valueOf(num));\n token = LA.Scanner();\n// System.out.println(token.getValue());\n break;\n case 'r':\n// System.out.println(\"in reduce action\");\n int numberOfVar = Integer.parseInt(LRTTable[num - 1][1]);\n// System.out.println(SLRParsStack.size());\n while (numberOfVar > 0) {\n SLRParsStack.pop();\n numberOfVar--;\n }\n// System.out.println(\"out of while\");\n// System.out.println(LRTTable[num - 1][0]);\n for (i = 0; i < SLRterminal.length; i++)\n {\n if (SLRterminal[i].equals(LRTTable[num - 1][0]))\n break;\n }\n// System.out.println(i);\n// System.out.println(SLRParsStack.isEmpty() + \" size stack\");\n tableOutput = BUParseTable[Integer.parseInt(SLRParsStack.peek()) + 1][i + 1];\n// System.out.println(tableOutput);\n SLRParsStack.push(String.valueOf(tableOutput.charAt(1)));\n break;\n case 'a':\n// System.out.println(\"in accept\");\n Accept();\n return;\n case 'e':\n// System.out.println(\"in error\");\n error(4);\n }\n }\n\n }", "@Function(name = \"fromCodePoint\", arity = 1)\n public static Object fromCodePoint(Realm realm, Object thisValue, Object... codePoints) {\n int length = codePoints.length;\n int elements[] = new int[length];\n for (int nextIndex = 0; nextIndex < length; ++nextIndex) {\n Object next = codePoints[nextIndex];\n double nextCP = ToNumber(realm, next);\n if (!SameValue(nextCP, ToInteger(realm, nextCP))) {\n throw throwRangeError(realm, \"\");\n }\n if (nextCP < 0 || nextCP > 0x10FFFF) {\n throw throwRangeError(realm, \"\");\n }\n elements[nextIndex] = (int) nextCP;\n }\n return new String(elements, 0, length);\n }", "private final void step3() { if (k == 0) return; /* For Bug 1 */ switch (b[k-1])\n\t {\n\t case 'a': if (ends(\"ational\")) { r(\"ate\"); break; }\n\t if (ends(\"tional\")) { r(\"tion\"); break; }\n\t break;\n\t case 'c': if (ends(\"enci\")) { r(\"ence\"); break; }\n\t if (ends(\"anci\")) { r(\"ance\"); break; }\n\t break;\n\t case 'e': if (ends(\"izer\")) { r(\"ize\"); break; }\n\t break;\n\t case 'l': if (ends(\"bli\")) { r(\"ble\"); break; }\n\t if (ends(\"alli\")) { r(\"al\"); break; }\n\t if (ends(\"entli\")) { r(\"ent\"); break; }\n\t if (ends(\"eli\")) { r(\"e\"); break; }\n\t if (ends(\"ousli\")) { r(\"ous\"); break; }\n\t break;\n\t case 'o': if (ends(\"ization\")) { r(\"ize\"); break; }\n\t if (ends(\"ation\")) { r(\"ate\"); break; }\n\t if (ends(\"ator\")) { r(\"ate\"); break; }\n\t break;\n\t case 's': if (ends(\"alism\")) { r(\"al\"); break; }\n\t if (ends(\"iveness\")) { r(\"ive\"); break; }\n\t if (ends(\"fulness\")) { r(\"ful\"); break; }\n\t if (ends(\"ousness\")) { r(\"ous\"); break; }\n\t break;\n\t case 't': if (ends(\"aliti\")) { r(\"al\"); break; }\n\t if (ends(\"iviti\")) { r(\"ive\"); break; }\n\t if (ends(\"biliti\")) { r(\"ble\"); break; }\n\t break;\n\t case 'g': if (ends(\"logi\")) { r(\"log\"); break; }\n\t } }", "private void encodeMessage() {\n encodedMessage = \"\";\n try(BufferedReader inputBuffer = Files.newBufferedReader(inputPath)) {\n String inputLine;\n while((inputLine = inputBuffer.readLine()) != null) {\n //walks the input message and builds the encode message\n for(int i = 0; i < inputLine.length(); i++) {\n encodedMessage = encodedMessage + codeTable[inputLine.charAt(i)];\n }\n encodedMessage = encodedMessage + codeTable[10];\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //writes to the output file\n try(BufferedWriter outputBuffer = Files.newBufferedWriter(outputPath)) {\n outputBuffer.write(encodedMessage, 0, encodedMessage.length());\n outputBuffer.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void gen_cyptxt(String ptxt, char[][] table, int temp)\r\n {\r\n int l=ptxt.length();\r\n String ptxt1=\"\";\r\n int ia1=0, ja1=0, ia2=0, ja2=0;\r\n \r\n //removing all the inner spaces of plaint text\r\n for(int i=0; i<l; i++)\r\n {\r\n if(ptxt.charAt(i)!=' ')\r\n ptxt1=ptxt1+ptxt.charAt(i); // storing it in ptxt1\r\n }\r\n \r\n ptxt=ptxt1; //storing it back in ptxt\r\n l=ptxt.length();\r\n \r\n //adding a dummy letter 'x' if not length is even\r\n if(l%2!=0)\r\n {\r\n ptxt=ptxt+\"x\";\r\n l=ptxt.length();\r\n }\r\n \r\n ptxt=ptxt.toUpperCase(); //converting the whole plain text to upper case\r\n \r\n //creating array of string 'bits' of length half of plain text\r\n String[] bits= new String[l/2];\r\n String[] bitsn=new String[l/2];\r\n \r\n //initialising the array with \"\"\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bitsn[i]=\"\";\r\n }\r\n int j=0, k=2;\r\n \r\n //storing each 2 letter bit of plain text into the array of strings\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bits[i]=ptxt.substring(j,k);\r\n j+=2;\r\n k+=2;\r\n }\r\n boolean hash=true;\r\n int count=0, ni=0, lim;\r\n while(hash)\r\n {\r\n lim=l/2;\r\n //checking if two double letters are in same bit\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n count++;\r\n }\r\n \r\n //if not then loop is terminated\r\n if(count==0)\r\n hash=false;\r\n \r\n //else dummy character is added in between\r\n else\r\n {\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n {\r\n ni=i;\r\n break;\r\n }\r\n }\r\n ptxt=ptxt.substring(0,(ni*2)-1)+\"X\"+ptxt.substring((ni*2)-1);\r\n l=ptxt.length();\r\n if(l%2!=0)\r\n {\r\n ptxt=ptxt+\"X\";\r\n l=ptxt.length();\r\n }\r\n j=0;\r\n k=0;\r\n for (int i = 0; i < l/2; i++)\r\n {\r\n bits[i]=ptxt.substring(j,k);\r\n j+=2;\r\n k+=2;\r\n }\r\n hash=true;\r\n }\r\n count=0;\r\n }\r\n ni=0;\r\n lim=l/2;\r\n \r\n //checking if 'XX' is bit comes at the end. If comes the limit is taken before that position\r\n for(int i=0; i<lim; i++)\r\n {\r\n if(bits[i].charAt(0)==bits[i].charAt(1))\r\n {\r\n if(bits[i].charAt(0)=='X')\r\n {\r\n lim=i;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n //if matrix is of type where J is taken\r\n if(temp==1)\r\n {\r\n for (int i = 0; i < lim; i++)\r\n {\r\n \r\n //storing the 1st letter of the bit in ch1 & 2nd letter in ch2\r\n char ch1=bits[i].charAt(0);\r\n char ch2=bits[i].charAt(1);\r\n \r\n //since the matrix contains J and I & J have same position so I is converted to J\r\n if(ch1=='I')\r\n ch1='J';\r\n else if(ch2=='I')\r\n ch2='J';\r\n \r\n \r\n a : for(j=0; j<5; j++) //loop labelled as a\r\n {\r\n for(k=0; k<5; k++)\r\n {\r\n \r\n //storing the cordinates of the 1st letter\r\n if(table[j][k]==ch1)\r\n {\r\n ia1=j;\r\n ja1=k;\r\n }\r\n \r\n //storing the cordinates of the 2nd letter\r\n else if(table[j][k]==ch2)\r\n {\r\n ia2=j;\r\n ja2=k;\r\n }\r\n \r\n //if they are in the same row\r\n if((ia1==ia2) && (ja1!=ja2))\r\n {\r\n if(ja1!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n if(ja2!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n break a;\r\n }\r\n \r\n //if they are in the same column\r\n else if((ia1!=ia2) && (ja1==ja2))\r\n {\r\n if(ia1!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n if(ia2!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n break a;\r\n }\r\n \r\n //if they are neither in same row nor in same column\r\n else if((ia1!=ia2) && (ja1!=ja2))\r\n {\r\n bitsn[i]=bitsn[i]+table[j][ja2];\r\n bitsn[i]=bitsn[i]+table[j][ja1];\r\n break a;\r\n } \r\n }\r\n }\r\n ia1=0;\r\n ja1=0;\r\n ia2=0;\r\n ja2=0;\r\n } \r\n }\r\n \r\n //if matrix is of type where I is taken\r\n else if(temp==2)\r\n {\r\n for (int i = 0; i < lim; i++)\r\n {\r\n \r\n //storing the 1st letter of the bit in ch1 & 2nd letter in ch2\r\n char ch1=bits[i].charAt(0);\r\n char ch2=bits[i].charAt(1);\r\n \r\n //since the matrix contains I and I & J have same position so J is converted to I\r\n if(ch1=='j')\r\n ch1='i';\r\n else if(ch2=='j')\r\n ch2='i';\r\n \r\n \r\n a : for(j=0; j<5; j++) //loop labelled as a\r\n {\r\n for(k=0; k<5; k++)\r\n {\r\n \r\n //storing the cordinates of the 1st letter\r\n if(table[j][k]==ch1)\r\n {\r\n ia1=j;\r\n ja1=k;\r\n }\r\n \r\n //storing the cordinates of the 2nd letter\r\n else if(table[j][k]==ch2)\r\n {\r\n ia2=j;\r\n ja2=k;\r\n }\r\n \r\n //if they are in the same row\r\n if((ia1==ia2) && (ja1!=ja2))\r\n {\r\n if(ja1!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n if(ja2!=4)\r\n bitsn[i]=bitsn[i]+table[j][k+1];\r\n else\r\n bitsn[i]=bitsn[i]+table[j][0];\r\n break a;\r\n }\r\n \r\n //if they are in the same column\r\n else if((ia1!=ia2) && (ja1==ja2))\r\n {\r\n if(ia1!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n if(ia2!=4)\r\n bitsn[i]=bitsn[i]+table[j-1][k];\r\n else\r\n bitsn[i]=bitsn[i]+table[0][k];\r\n break a;\r\n }\r\n \r\n //if they are neither in same row nor in same column\r\n else if((ia1!=ia2) && (ja1!=ja2))\r\n {\r\n bitsn[i]=bitsn[i]+table[j][ja2];\r\n bitsn[i]=bitsn[i]+table[j][ja1];\r\n break a;\r\n } \r\n }\r\n }\r\n ia1=0;\r\n ja1=0;\r\n ia2=0;\r\n ja2=0;\r\n }\r\n }\r\n String cip_txt=\"\";\r\n \r\n //adding up all the cypher bits to form the cypher text\r\n for(int i=0; i<lim; i++)\r\n {\r\n cip_txt=cip_txt+bitsn[i];\r\n }\r\n \r\n //finally pinting the cypher text\r\n System.out.println(\"The corresponding ciphertext is : \"+cip_txt);\r\n }", "public String processSeq (String seq)\n {\n\n\n unknownStatus = 0; // reinitialize this to 0\n\n // take out any spaces and numbers\n StringBuffer tempSeq = new StringBuffer(\"\");;\n for (int i = 0; i < seq.length(); i++)\n {\n if (Character.isLetter(seq.charAt(i)))\n tempSeq.append(seq.charAt(i));\n else\n continue;\n }\n seq = tempSeq.toString();\n\n if (seq.length() > 0)\n {\n\n // the three 5'3' reading frame translations\n\n String fiveThreeFrame1 = match (seq);\n String fiveThreeFrame2 = match (seq.substring(1, seq.length()));\n String fiveThreeFrame3 = match (seq.substring(2, seq.length()));\n\n \n\n // reverse and complement the string seq and rename rev\n\n String rev = \"\";\n for (int i = 0; i < seq.length(); i++)\n {\n // the unambiguous nucleotides\n if (seq.charAt(i) == 'A')\n rev = \"U\" + rev;\n else if ((seq.charAt(i) == 'U') || (seq.charAt(i) == 'T'))\n rev = \"A\" + rev;\n else if (seq.charAt(i) == 'C')\n rev = \"G\" + rev;\n else if (seq.charAt(i) == 'G')\n rev = \"C\" + rev;\n else // any other non-nucleotides\n rev = String.valueOf (seq.charAt(i)) + rev;\n }\n\n\n // the three 3'5' reading frame translations\n\n String threeFiveFrame1 = match (rev); \n String threeFiveFrame2 = match (rev.substring(1, rev.length()));\n String threeFiveFrame3 = match (rev.substring(2, rev.length()));\n\n return (\"5'3' Frame1: \" + \"<BR>\" + fiveThreeFrame1 + \n \"<BR><BR>5'3' Frame2: \" + \"<BR>\" + fiveThreeFrame2 +\n \"<BR><BR>5'3' Frame3: \" + \"<BR>\" + fiveThreeFrame3 +\n \"<BR><BR>3'5' Frame1: \" + \"<BR>\" + threeFiveFrame1 +\n \"<BR><BR>3'5' Frame2: \" + \"<BR>\" + threeFiveFrame2 +\n \"<BR><BR>3'5' Frame3: \" + \"<BR>\" + threeFiveFrame3 + \"<BR>\");\n }\n\n return \"\";\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n StringReader stringReader0 = new StringReader(\"9F83|i5vU 84Kd\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 887, 887);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n // // Unstable assertion: assertEquals(3, javaCharStream0.bufpos);\n // // Unstable assertion: assertEquals(890, javaCharStream0.getColumn());\n }", "private void parse() {\r\n for (int length = sourceCode.length(); index < length; ++index) {\r\n char c = sourceCode.charAt(index);\r\n if (!Character.isWhitespace(c)) {\r\n ArrayList<String> tokens = tokenizeStatement(sourceCode);\r\n if (tokens != null) {\r\n parseStatementTokens(tokens);\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n }", "public void Scanner(){\n char Caracter=' ';\n int Estado=0;\n int Fila=0;\n int Columna=1;\n String Lexema=\"\";\n String Cadena_Archivo=jTextPane1.getText();\n for(int i=0;i<Cadena_Archivo.length();i++){\n Caracter=Cadena_Archivo.charAt(i);\n \n switch(Estado){\n case 0:\n \n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 34){\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Estado = 7;\n Columna++;\n }else if(Caracter == (char) 35){\n L_Tokens.add(new Lista_Tokens(8,Character.toString(Caracter),\"Numeral\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 36){\n L_Tokens.add(new Lista_Tokens(9,Character.toString(Caracter),\"Simbolo Peso\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 37){\n L_Tokens.add(new Lista_Tokens(10,Character.toString(Caracter),\"Porcentaje\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 38){\n L_Tokens.add(new Lista_Tokens(11,Character.toString(Caracter),\"Ampersand\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 39){\n L_Tokens.add(new Lista_Tokens(12,Character.toString(Caracter),\"Comilla Simple\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 40){\n L_Tokens.add(new Lista_Tokens(13,Character.toString(Caracter),\"Parentesis Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 41){\n L_Tokens.add(new Lista_Tokens(14,Character.toString(Caracter),\"Parentesis Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 42){\n L_Tokens.add(new Lista_Tokens(15,Character.toString(Caracter),\"Asterisco\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 43){\n L_Tokens.add(new Lista_Tokens(16,Character.toString(Caracter),\"Signo Mas\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 44){\n L_Tokens.add(new Lista_Tokens(17,Character.toString(Caracter),\"Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 45){\n L_Tokens.add(new Lista_Tokens(18,Character.toString(Caracter),\"Signo Menos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 46){\n L_Tokens.add(new Lista_Tokens(19,Character.toString(Caracter),\"Punto\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 3;\n Columna++;\n }else if(Caracter == (char) 58){\n L_Tokens.add(new Lista_Tokens(21,Character.toString(Caracter),\"Dos Puntos\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 59){\n L_Tokens.add(new Lista_Tokens(22,Character.toString(Caracter),\"Punto y Coma\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 60){\n L_Tokens.add(new Lista_Tokens(23,Character.toString(Caracter),\"Menor Que\",Fila,Columna));\n Estado = 5;\n Columna++;\n }else if(Caracter == (char) 61){\n L_Tokens.add(new Lista_Tokens(24,Character.toString(Caracter),\"Igual Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 62){\n L_Tokens.add(new Lista_Tokens(25,Character.toString(Caracter),\"Mayor Que\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 63){\n L_Tokens.add(new Lista_Tokens(26,Character.toString(Caracter),\"Interrogacion\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 64){\n L_Tokens.add(new Lista_Tokens(27,Character.toString(Caracter),\"Arroba\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 91){\n L_Tokens.add(new Lista_Tokens(28,Character.toString(Caracter),\"Corchete Izquierdo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 92){\n L_Tokens.add(new Lista_Tokens(29,Character.toString(Caracter),\"Barra Invertida\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 93){\n L_Tokens.add(new Lista_Tokens(30,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 94){\n L_Tokens.add(new Lista_Tokens(31,Character.toString(Caracter),\"Acento Circunflejo\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 95){\n L_Tokens.add(new Lista_Tokens(32,Character.toString(Caracter),\"Barra Baja\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 96){\n L_Tokens.add(new Lista_Tokens(33,Character.toString(Caracter),\"Acento Grave\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 123){\n L_Tokens.add(new Lista_Tokens(34,Character.toString(Caracter),\"Llave Izquierda\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 124){\n L_Tokens.add(new Lista_Tokens(35,Character.toString(Caracter),\"Barra Vetical\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 125){\n L_Tokens.add(new Lista_Tokens(36,Character.toString(Caracter),\"Corchete Derecho\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Caracter == (char) 126){\n L_Tokens.add(new Lista_Tokens(37,Character.toString(Caracter),\"Tilde\",Fila,Columna));\n Estado = 0;\n Columna++;\n }else if(Character.isLetter(Caracter)){\n //Verifica si es Letra\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema+=Caracter;\n Estado = 2;\n }else if (Caracter == '\\n') {\n //salto de linea\n Columna = 1;\n Fila++;\n Estado = 0;\n } \n else if (Caracter == ' ' | Caracter == '\\t' | Caracter == '\\b' | Caracter == '\\r' | Caracter == '\\f') {\n //Espacios en blanco\n } else {\n //Errores Lexicos\n L_Tokens_Error.add(new Lista_Tokens(0,Character.toString(Caracter),\"Error Lexico\",Fila,Columna));\n Lexema = \"\";\n Estado = 0;\n }\n \n \n break;\n case 1:\n //Verificar si es Letra\n if (Character.isLetter(Caracter)) {\n Lexema+=Caracter;\n Estado = 1;\n }else if(Character.isDigit(Caracter)){\n //Verifica si es Digito\n Lexema += Caracter;\n Estado = 1;\n }else if(Caracter == (char) 95){\n Lexema += Caracter;\n Estado = 1;\n }else{\n \n if(Lexema.equals(\"CONJ\")){\n L_Tokens.add(new Lista_Tokens(3,Lexema,\"Palabra Reservada\",Fila,Columna));\n }else{\n L_Tokens.add(new Lista_Tokens(5,Lexema,\"Identificador\",Fila,Columna));\n }\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n \n break;\n case 2:\n //Verifica si es Digito\n if (Character.isDigit(Caracter)) {\n Lexema += Caracter;\n Estado = 2;\n }else{\n L_Tokens.add(new Lista_Tokens(38,Lexema,\"Digito\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 3:\n //Verifica si es Comentario de una linea\n if(Caracter == (char) 47){\n L_Tokens.add(new Lista_Tokens(20,Character.toString(Caracter),\"Barra Inclinada\",Fila,Columna));\n Estado = 4;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 4:\n //Verifica si es Comentario de una linea acepta lo que sea hasta salto de linea\n if(Caracter != '\\n'){\n Lexema+=Caracter;\n Estado = 4;\n }else{\n L_Tokens.add(new Lista_Tokens(1,Lexema,\"Comentario de Linea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 5:\n //Comentario Multilinea\n if(Caracter == (char) 33){\n L_Tokens.add(new Lista_Tokens(6,Character.toString(Caracter),\"Signo de Admiracion\",Fila,Columna));\n Estado = 6;\n Columna++;\n }else{\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 6:\n //Comentario Multilinea acepta hasta el signo de admiracion\n if(Caracter != (char) 33){\n Lexema+=Caracter;\n Estado = 6;\n }else{\n L_Tokens.add(new Lista_Tokens(2,Lexema,\"Comentario Multilinea\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n i--;\n }\n break;\n case 7:\n //Comentario Multilinea acepta hasta comilla dobles\n if(Caracter != (char) 34){\n Lexema+=Caracter;\n Estado = 7;\n }else{\n L_Tokens.add(new Lista_Tokens(4,Lexema,\"Lexema de Entrada\",Fila,Columna));\n Columna++;\n Lexema = \"\";\n Estado = 0;\n //aceptamos las comillas\n L_Tokens.add(new Lista_Tokens(7,Character.toString(Caracter),\"Comillas Dobles\",Fila,Columna));\n Columna++;\n }\n break;\n \n }\n \n }//fin for\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n StringReader stringReader0 = new StringReader(\"4+i\\\"{\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }", "public StateDictionary<T> make(Map<CharSequence, T> source) {\n // clear out state\n buildingCurrentAddRow = null;\n buildingLastEntry = \"\";\n builtTotalBytes = builtTotalStrings = builtMaxByteLength = 0;\n builtRows = new ArrayList<Row>();\n builtBaseRow = makeRow();\n builtResults = intMapFactory.make(source.values());\n if (SHOW_SIZE) System.out.println(\"***VALUE STORAGE: \" + builtResults.approximateStorage());\n \n Map<T, Integer> valueToInt = builtResults.getValueMap();\n Map<byte[],Integer> sorted = new TreeMap(SHORTER_BYTE_ARRAY_COMPARATOR);\n for (CharSequence text : source.keySet()) {\n sorted.put(byteConverter.toBytes(text), valueToInt.get(source.get(text)));\n }\n\n for (byte[] key : sorted.keySet()) {\n addMapping(key, sorted.get(key));\n }\n\n // now compact the rows\n // first find out which rows are equivalent (recursively)\n Map<Row,Row> replacements = new HashMap<Row,Row>();\n {\n Map<Row,Row> equivalents = new TreeMap<Row,Row>(StateDictionary.rowComparator);\n for (Row row : builtRows) {\n Row cardinal = equivalents.get(row);\n if (cardinal == null) {\n equivalents.put(row,row);\n } else {\n replacements.put(row,cardinal);\n }\n }\n }\n if (SHOW_SIZE) System.out.println(\"***ROWS: \" + builtRows.size() + \"\\t REPLACEMENTS: \" + replacements.size());\n \n // now replace all references to rows by their equivalents\n for (Row row : builtRows) {\n for (Byte key : row.byteToCell.keySet()) {\n Cell cell = row.byteToCell.get(key);\n Row newRow = replacements.get(cell.nextRow);\n if (newRow != null) {\n cell.nextRow = newRow;\n }\n }\n }\n // now compact the rows array\n ArrayList<Row> newRows = new ArrayList<Row>();\n for (Row row : builtRows) {\n if (!replacements.containsKey(row)) {\n newRows.add(row);\n }\n }\n builtRows = newRows;\n if (SHOW_SIZE) System.out.println(\"***ROWS: \" + builtRows.size());\n return new StateDictionary<T>(builtBaseRow, builtRows, builtResults, builtMaxByteLength, byteConverter);\n }", "Character getCode();", "abstract protected void pre(int code);", "public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n StringReader stringReader0 = new StringReader(\"d{IHR}D';Z<m5\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.UpdateLineColumn('d');\n assertEquals(1, javaCharStream0.getBeginLine());\n }", "public LinkedList scannerTRS(String content) {\n \n Errors.clear();\n tokens.clear();\n char[] chars = content.toCharArray();\n\n int state = 0;\n Token t = new Token();\n String aux = \"\";\n int row = 0;\n int column = 0;\n //recorre todos los caracteres \n for (int i = 0; i < chars.length; i++) {\n\n switch (state) {\n case 0:\n // Estado 0 del automata\n if (chars[i] == '#') {\n tokens.add(new Token(0, \"#\", row, column,\"Caracter especial #\"));\n row++;\n } else if (chars[i] == '*') {\n tokens.add(new Token(1, \"*\", row, column,\"Caracter especial *\"));\n row++;\n } else if (chars[i] == '-') {\n tokens.add(new Token(4, \"-\", row, column,\"Caracter especial -\"));\n aux = \"\";\n\n } else if (Character.isLetter(chars[i])) {\n //Reconociendo un id\n aux += Character.toString(chars[i]);\n state = 6;\n row++;\n } else if (Character.isDigit(chars[i])) {\n //numero\n aux += Character.toString(chars[i]);\n state = 7;\n row++;\n\n } else if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13 || chars[i] == 65535) {//Salto de linea\n column++;\n row = 0;\n } else if (chars[i] == 32) {\n\n row++;\n } else if (chars[i] == '/') {\n state = 1;\n aux += Character.toString(chars[i]);\n row++;\n } else if (chars[i] == '<') {\n aux += Character.toString(chars[i]);\n state = 3;\n row++;\n\n } else {\n int a = chars[i];\n System.out.println(a);\n Errors.add(new Erro(\"Error lexico\", row, column, String.valueOf(chars[i])));\n System.out.println(\"Error: \" + String.valueOf(chars[i]));\n }\n\n break;\n case 1:\n // code block\n if (chars[i] == '/') {\n state = 2;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n Errors.add(new Erro(\"Error lexico\", row, column, \"/\"));\n i--;\n aux=\"\";\n state = 0;\n\n }\n break;\n case 2:\n if (chars[i] == 10 || chars[i] == 11 || chars[i] == 9 || chars[i] == 13) {\n state = 0;\n column++;\n row = 0;\n tokens.add(new Token(5, aux, row, column,\"Comentario unilinea\"));\n aux=\"\";\n }else{\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 3:\n if (chars[i] == '!') {\n state = 4;\n row++;\n aux += Character.toString(chars[i]);\n } else {\n \n Errors.add(new Erro(\"Error lexico\", row, column, \"<\"));\n aux=\"\";\n row++;\n i--;\n\n }\n break;\n case 4:\n if (chars[i] == '!') {\n state = 5;\n aux += Character.toString(chars[i]);\n row++;\n } else {\n aux += Character.toString(chars[i]);\n if (chars[i] == 13 || chars[i] == 13) {\n column++;\n row = 0;\n } else {\n row++;\n }\n }\n break;\n case 5:\n if (chars[i] == '>') {\n state = 0;\n row++;\n aux += Character.toString(chars[i]);\n tokens.add(new Token(5, aux, row, column,\"Comentario multilinea\"));\n aux=\"\";\n\n } else {\n state = 4;\n aux += Character.toString(chars[i]);\n row++;\n }\n break;\n case 6://IDENTIFICADOR\n if (Character.isDigit(chars[i]) || Character.isLetter(chars[i]) || chars[i] == '_') {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(3, aux, row, column,\"Identificador\"));\n aux = \"\";\n state = 0;\n i--;\n }\n break;\n case 7:\n if (Character.isDigit(chars[i])) {\n aux += String.valueOf(chars[i]);\n row++;\n } else {\n tokens.add(new Token(2, aux, row, column, \"Numero\"));\n aux = \"\";\n state = 0;\n i--;\n }\n\n break;\n\n }\n }\n\n return tokens;\n }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n StringReader stringReader0 = new StringReader(\"d{H}R}D';ZHm5\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getLine();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(1, int0);\n }", "protected boolean encode()\n {\n\t\tfor(int i=0;i<256;i++)\n {\n\t\t\tstr[i] = String.valueOf((char)i);\n\t\t}\n str[13] = \"\";\n\t\tstr[10] = \"\\n\";\n str[65] = \" \".concat(this.A);\n\t\tstr[67] = \" \".concat(this.C);\n str[71] = \" \".concat(this.G);\n\t\tstr[84] = \" \".concat(this.T);\n try\n\t\t{\n \treader = new FileReader(in);\n writer = new FileWriter(out);\n\n\t\t\t/*******************************************************************************\n\t\t\t *\tThis loop traverse to the dna sequence and maps each character to\n\t\t\t *\tpredefined graphical value character by character\n\t\t\t *******************************************************************************/\n\t\t\twhile(true)\n {\n\t\t\t\ttemp = reader.read();\n if(temp == -1)\n\t\t\t\t\tbreak;\n\t\t\t\t\tif(temp>=97 && temp<=122)\n\t\t\t\t\t\ttemp=temp-32;\n\t\t\t\tif(temp==65 || temp==67 || temp==71 || temp==84)\n \tspace_flag = 1;\n\t\t\t\telse\n\t\t\t\t{\n \tif(space_flag == 1)\n {\n\t\t\t\t\t\tt_str = \" \".concat(str[temp]);\n writer.write(t_str);\n\t\t\t\t\t\tspace_flag = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n space_flag = 0;\n\t\t\t\t}\n if(temp == 59 || temp == 62)\n\t\t\t\t{\n \tt_str = \"\";\n while(temp != 10)\n\t\t\t\t\t{\n \tt_str = t_str.concat(String.valueOf((char)temp));\n temp = reader.read();\n\t\t\t\t\t}\n t_str = t_str.concat(\"(Mapping: A>\"+this.A+\" C>\"+this.C+\" G>\"+this.G+\" T>\"+this.T+\")\");\n t_str = t_str.concat(\"\\n\");\n\t\t\t\t\twriter.write(t_str);\n\t\t\t\t}\n else\n\t\t\t\t\twriter.write(str[temp]);\n\t\t\t}\n writer.close();\n\t\t\treader.close();\n\t\t}\n catch (IOException e)\n\t\t{\n e.printStackTrace (System.out);\n JOptionPane.showMessageDialog(null,\"Exception occurred :( \");\n return false;\n\t\t}\n\t\treturn true;\n\t}", "protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }", "public static void inverseTransform() {\n int first = BinaryStdIn.readInt();\n String st = BinaryStdIn.readString();\n char[] t1 = st.toCharArray();\n int length = t1.length;\n\n int[] count = new int[R + 1];\n int[] next = new int[length];\n\n for (int i = 0; i < length; i++)\n count[t1[i] + 1]++;\n for (int r = 0; r < R; r++)\n count[r + 1] += count[r];\n for (int i = 0; i < length; i++)\n next[count[t1[i]]++] = i;\n\n\n for (int i = 0; i < length; i++) {\n first = next[first];\n BinaryStdOut.write(t1[first]);\n\n }\n BinaryStdOut.close();\n }", "public void parseLineAndCountTransitions(String line){\n\t\tString[] words=line.split(\" \");\n\t\t\n\t\tassert(words.length>0&&words.length%2==0);\n\t\t\n\t\t//add the first start_symbol to the state count map\n\t\t{\n\t\t\tif(!transition_map.containsKey(padding_word)){\n\t\t\t\ttransition_map.put(padding_word,new TransitionUnit());\n\t\t\t}\n\t\t\tHashMap<String,DataUnit> state_transition_map=transition_map.get(padding_word).state_transition;\n\t\t\tif(!state_transition_map.containsKey(words[1])){\n\t\t\t\tstate_transition_map.put(words[1],new DataUnit());\n\t\t\t}\n\t\t\tstate_transition_map.get(words[1]).count++;\n\t\t}\n\t\t//count each (y,x) and (y,y') pair\n\t\tfor(int i=0;i<words.length/2;i++){\n\t\t\t\n\t\t\t//each x is at position 2*i and each y is at position 2*i+1\n\t\t\tString xWord=words[2*i],yWord=words[2*i+1];\n\t\t\t\n\t\t\t//add each word to unknown_set if it doesn't contain this word\n\t\t\t//but if it already contains this word, remove from unknown_set\n\t\t\tif(unknown_set.contains(xWord)){\n\t\t\t\tunknown_set.remove(xWord);\n\t\t\t\tpopular_set.add(xWord);\n\t\t\t}else if(!popular_set.contains(xWord)){\n\t\t\t\tunknown_set.add(xWord);\n\t\t\t}\n\t\t\t\n\t\t\tif(!transition_map.containsKey(yWord)){\n\t\t\t\ttransition_map.put(yWord,new TransitionUnit());\n\t\t\t}\n\t\t\tTransitionUnit transitionSubMap=transition_map.get(yWord);\n\t\t\tString nextY=((i==words.length/2-1)?padding_word:words[2*i+3]);\n\t\t\tif(!transitionSubMap.state_transition.containsKey(nextY)){\n\t\t\t\ttransitionSubMap.state_transition.put(nextY,new DataUnit());\n\t\t\t}\n\t\t\ttransitionSubMap.state_transition.get(nextY).count++;\n\t\t\tif(!transitionSubMap.terminal_transition.containsKey(xWord)){\n\t\t\t\ttransitionSubMap.terminal_transition.put(xWord,new DataUnit());\n\t\t\t}\n\t\t\ttransitionSubMap.terminal_transition.get(xWord).count++;\n\t\t}\n\t\t\n\t}", "public void displayHuffCodesTable() {\n\t\tStringBuffer toPrint = new StringBuffer();\n\t\t\n\t\tfor (int i = 0; i < this.huffCodeVals.length; i++) {\n\t\t\t\n\t\t\tif (this.huffCodeVals[i] != null) {\n\t\t\t\tif (i == 9) {\n\t\t\t\t\ttoPrint.append(\"\\\\t\");\n\t\t\t\t\t\n\t\t\t\t} else if (i == 10) {\n\t\t\t\t\ttoPrint.append(\"\\\\n\");\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ttoPrint.append((char) i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttoPrint.append(\":\" + this.huffCodeVals[i] + \"\\n\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(toPrint.toString());\n\t}", "public String getTabularResult() {\n StringBuilder builder = new StringBuilder();\n for (int c = 0; c < cols; ++c) {\n for (int r = 0; r < rows; ++r) {\n builder.append(puzzleMap.get(orderedKeys[r][c]).getValue());\n }\n builder.append(System.lineSeparator());\n }\n return builder.toString().trim();\n }", "private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }", "private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}", "@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}", "private static int firstPassParse(String line, int offset)\r\n {\r\n String[] tokens = line.split(\"[\\\\s,]+\");\r\n\r\n if(tokens.length <= 0)\r\n {\r\n return offset;\r\n }\r\n \r\n if(!isOpcode(tokens[0]) && !tokens[0].startsWith(\".\"))\r\n {\r\n int address = beginningAddress + offset;\r\n \r\n if(isHex(tokens[0]))\r\n {\r\n throw new AssemblerException(\"Invalid label on line: \" + line);\r\n }\r\n else\r\n {\r\n symbolTable.put(tokens[0], address);\r\n }\r\n }\r\n\r\n return offset + ADDRESS_OFFSET;\r\n }", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n StringReader stringReader0 = new StringReader(\"b|}T=mM,PuM8AP|}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 10, 0, 0);\n char char0 = javaCharStream0.BeginToken();\n assertEquals('b', char0);\n \n int int0 = javaCharStream0.getEndLine();\n assertEquals(10, javaCharStream0.getBeginLine());\n assertEquals(10, int0);\n assertEquals(0, javaCharStream0.getColumn());\n }", "T transform(String line);", "public void Converter(String lines, StringBuilder cLines)\r\n {\r\n if(Character.isDigit(cLines.charAt(0)))//seperate if for the character at the 0 position\r\n {\r\n switch(cLines.charAt(0))\r\n {\r\n case '0': cLines.replace(0,1,\"Zero\"); //sets the first character to the correct string and uppercases the first letter\r\n break;\r\n case '1': cLines.replace(0,1,\"One\");\r\n break;\r\n case '2': cLines.replace(0,1,\"Two\");\r\n break;\r\n case '3': cLines.replace(0,1,\"Three\");\r\n break;\r\n case '4': cLines.replace(0,1,\"Four\");\r\n break;\r\n case '5': cLines.replace(0,1,\"Five\");\r\n break;\r\n case '6': cLines.replace(0,1,\"Six\");\r\n break;\r\n case '7': cLines.replace(0,1,\"Seven\");\r\n break;\r\n case '8': cLines.replace(0,1,\"Eight\");\r\n break;\r\n case '9': cLines.replace(0,1,\"Nine\");\r\n break;\r\n \r\n \r\n }\r\n \r\n \r\n }\r\n \r\n for(int i = 1 ; i < lines.length() ; i++)// this for is used to check the remaining characters after the first character\r\n {\r\n if(Character.isDigit(cLines.charAt(i)))\r\n { \r\n if(Character.isSpaceChar(cLines.charAt(i+1))&& Character.isSpaceChar(cLines.charAt(i-1)))//if statement to make sure its not a double digit\r\n {\r\n switch(cLines.charAt(i))\r\n {\r\n case '0': cLines.replace(i,i+1,\"zero\");//statements for switch to change digits to strings lowercase\r\n break;\r\n case '1': cLines.replace(i,i+1,\"one\");\r\n break;\r\n case '2': cLines.replace(i,i+1,\"two\");\r\n break;\r\n case '3': cLines.replace(i,i+1,\"three\");\r\n break;\r\n case '4': cLines.replace(i,i+1,\"four\");\r\n break;\r\n case '5': cLines.replace(i,i+1,\"five\");\r\n break;\r\n case '6': cLines.replace(i,i+1,\"six\");\r\n break;\r\n case '7': cLines.replace(i,i+1,\"seven\");\r\n break;\r\n case '8': cLines.replace(i,i+1,\"eight\");\r\n break;\r\n case '9': cLines.replace(i,i+1,\"nine\");\r\n break;\r\n \r\n \r\n }\r\n }\r\n }\r\n } \r\n \r\n stbrLines = cLines;\r\n stringLines = lines;\r\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "@Test(timeout = 4000)\n public void test107() throws Throwable {\n StringReader stringReader0 = new StringReader(\"_ofi`~l69>EJdF\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1874, 1874);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(1877, javaCharStream0.getColumn());\n }", "short[][] productionTable();", "private static Map collectReplacedTokens(String encodedSource, boolean escapeUnicode, TokenMapper tm) {\n \tint length = encodedSource.length();\n \t\n\t\tint i = 0;\n\t\tint prevToken = 0;\n\t\tint braceNesting = 0;\n\t\t\n\t\tboolean inArgsList = false;\n boolean primeFunctionNesting = false;\n boolean primeInArgsList = false;\n\t\t\n if (encodedSource.charAt(i) == Token.SCRIPT) {\n ++i;\n }\n\n Stack positionStack = new Stack();\n Stack functionPositionStack = new Stack();\n Map tokenLookup = new HashMap();\n \n\t\twhile (i < length) {\n\t\t\tif (i > 0) {\n\t\t\t\tprevToken = encodedSource.charAt(i - 1);\n\t\t\t}\n\t\t\tswitch (encodedSource.charAt(i)) {\n\t\t\t\tcase Token.NAME:\n\t\t\t\tcase Token.REGEXP: {\n\t\t\t\t\tint jumpPos = getSourceStringEnd(encodedSource, i + 1, escapeUnicode);\n\t\t\t\t\tif (Token.OBJECTLIT == encodedSource.charAt(jumpPos)) {\n\t\t\t\t\t\ti = printSourceString(encodedSource, i + 1, false, null, escapeUnicode);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ti = tm.sourceCompress(encodedSource, i + 1, false, null, prevToken, inArgsList, braceNesting, null);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcase Token.STRING: {\n\t\t\t\t\ti = printSourceString(encodedSource, i + 1, true, null, escapeUnicode);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcase Token.NUMBER: {\n\t\t\t\t\ti = printSourceNumber(encodedSource, i + 1, null);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tcase Token.FUNCTION: {\n\t\t\t\t\t++i; // skip function type\n\t\t\t\t\ttm.incrementFunctionNumber();\n\t\t\t\t\tprimeInArgsList = true;\n\t\t\t\t\tprimeFunctionNesting = true;\n\t\t\t\t\tfunctionPositionStack.push(new Integer(i-1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Token.LC: {\n\t\t\t\t\t++braceNesting;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Token.RC: {\n\t\t\t\t\tMap m = tm.getCurrentTokens();\n\t\t\t\t\tif (tm.leaveNestingLevel(braceNesting)) {\n\t\t\t\t\t\tInteger pos = (Integer)positionStack.pop();\n\t\t\t\t\t\tInteger functionPos = (Integer)functionPositionStack.pop();\n\t\t\t\t\t\tint[] parents = new int[positionStack.size()];\n\t\t\t\t\t\tint idx = 0;\n\t\t\t\t\t\tfor (Iterator itr = positionStack.iterator(); itr.hasNext();) {\n\t\t\t\t\t\t\tparents[idx++] = ((Integer)itr.next()).intValue();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tDebugData debugData = tm.getDebugData(functionPos);\n\t\t\t\t\t\tReplacedTokens replacedTokens = new ReplacedTokens(m, parents, tokenLookup, debugData); \n\t\t\t\t\t\ttokenLookup.put(pos, replacedTokens);\n\t\t\t\t\t}\n\t\t\t\t\t--braceNesting;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Token.LP: {\n\t\t\t\t\tif (primeInArgsList) {\n\t\t\t\t\t\tinArgsList = true;\n\t\t\t\t\t\tprimeInArgsList = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (primeFunctionNesting) {\n\t\t\t\t\t\tpositionStack.push(new Integer(i));\n\t\t\t\t\t\ttm.enterNestingLevel(braceNesting);\n\t\t\t\t\t\tprimeFunctionNesting = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Token.RP: {\n\t\t\t\t\tif (inArgsList) {\n\t\t\t\t\t\tinArgsList = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t++i;\n\t\t}\n\t\treturn tokenLookup;\n\t}", "@Test void testInterpretTableFunction() {\n SchemaPlus schema = rootSchema.add(\"s\", new AbstractSchema());\n final TableFunction table1 = TableFunctionImpl.create(Smalls.MAZE_METHOD);\n schema.add(\"Maze\", table1);\n final String sql = \"select *\\n\"\n + \"from table(\\\"s\\\".\\\"Maze\\\"(5, 3, 1))\";\n String[] rows = {\"[abcde]\", \"[xyz]\", \"[generate(w=5, h=3, s=1)]\"};\n sql(sql).returnsRows(rows);\n }", "public static void ComputeTables() {\n int[][] nbl2bit\n = {\n new int[]{1, 0, 0, 0}, new int[]{1, 0, 0, 1}, new int[]{1, 0, 1, 0}, new int[]{1, 0, 1, 1},\n new int[]{1, 1, 0, 0}, new int[]{1, 1, 0, 1}, new int[]{1, 1, 1, 0}, new int[]{1, 1, 1, 1},\n new int[]{-1, 0, 0, 0}, new int[]{-1, 0, 0, 1}, new int[]{-1, 0, 1, 0}, new int[]{-1, 0, 1, 1},\n new int[]{-1, 1, 0, 0}, new int[]{-1, 1, 0, 1}, new int[]{-1, 1, 1, 0}, new int[]{-1, 1, 1, 1}\n };\n\n int step, nib;\n\n /* loop over all possible steps */\n for (step = 0; step <= 48; step++) {\n /* compute the step value */\n int stepval = (int) (Math.floor(16.0 * Math.pow(11.0 / 10.0, (double) step)));\n\n\n /* loop over all nibbles and compute the difference */\n for (nib = 0; nib < 16; nib++) {\n diff_lookup[step * 16 + nib] = nbl2bit[nib][0]\n * (stepval * nbl2bit[nib][1]\n + stepval / 2 * nbl2bit[nib][2]\n + stepval / 4 * nbl2bit[nib][3]\n + stepval / 8);\n }\n }\n }", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }", "public abstract ILanguageProtocol makeInterpreter(String source, String replQualifiedName, String... salixPath) throws IOException, URISyntaxException, Exception;", "@Test\n\tpublic void test$TR() {\n\t\tassertEquals(\"FOO\", $TRANSLATE(\"foo\", \"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"));\n\t\t\n\t\t\n\t\t// no 3rd param should remove those characters\n\t\tassertEquals(\"ad\", $TRANSLATE(\"abcd\", \"bc\"));\n\t\t\n\t\t// uneven numbers of target and replacement values\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"123\"));\n\t\tassertEquals(\"123\", $TRANSLATE(\"abcd\", \"abcd\",\"123\"));\n\t\tassertEquals(\"123d\", $TRANSLATE(\"abcd\", \"abc\",\"1234\"));\n\t}" ]
[ "0.56107336", "0.55671364", "0.5428801", "0.5353656", "0.5302487", "0.52917403", "0.51139003", "0.503353", "0.5008196", "0.49932948", "0.49583298", "0.49555954", "0.4922416", "0.49098495", "0.48940632", "0.4884024", "0.48712254", "0.48617202", "0.48544455", "0.48536393", "0.48504674", "0.48476514", "0.48456556", "0.4837577", "0.4834016", "0.48244292", "0.4814233", "0.4814182", "0.48039207", "0.4788417", "0.4788403", "0.4758778", "0.47559103", "0.47461864", "0.47277823", "0.4720177", "0.47178397", "0.47120333", "0.4702901", "0.4699679", "0.4676627", "0.4675737", "0.46693003", "0.46665543", "0.4661455", "0.465566", "0.46519524", "0.46505722", "0.46445823", "0.4640015", "0.4630039", "0.46268657", "0.46224496", "0.46212116", "0.4619864", "0.4617304", "0.46145734", "0.46140143", "0.46134847", "0.46129176", "0.4606825", "0.46056488", "0.46029285", "0.4601352", "0.46000648", "0.45958722", "0.45854226", "0.45817682", "0.4578077", "0.45747015", "0.4569585", "0.45580646", "0.45560348", "0.4546958", "0.45448408", "0.45435727", "0.4541289", "0.45395443", "0.45382896", "0.45372304", "0.4524765", "0.4524261", "0.45218757", "0.45183238", "0.45140198", "0.4509491", "0.45079303", "0.45060894", "0.44999966", "0.44994065", "0.4496045", "0.44897142", "0.44847187", "0.44841993", "0.44827056", "0.4481589", "0.4481226", "0.4477069", "0.44740292", "0.44715482", "0.44713044" ]
0.0
-1
Returns the current lexical state.
public final int yystate() { return zzLexicalState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LexerState getState() {\n\t\treturn state;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "final public int yystate() {\n return yy_lexical_state;\n }", "final public int yystate() {\n return yy_lexical_state;\n }", "public TurtleState getCurrentState() {\n\t\treturn states.peek();\n\t}", "public interface LexicalStates\n{\n\t/** lexical states */\n\tpublic static final int LEX_NORMAL =\t\t10; /* normal code (ie not within \"...\") */\n\tpublic static final int LEX_INTERPNORMAL = 9; /* code within a string, eg \"$foo[$x+1]\" */\n\tpublic static final int LEX_INTERPCASEMOD = 8; /* expecting a \\U, \\Q or \\E etc */\n\tpublic static final int LEX_INTERPPUSH =\t 7; /* starting a new sublex parse level */\n\tpublic static final int LEX_INTERPSTART\t= \t 6; /* expecting the start of a $var */\n\n\t/* at end of code, eg \"$x\" followed by: */\n\tpublic static final int LEX_INTERPEND = \t 5; /* ... eg not one of [, { or -> */\n\tpublic static final int LEX_INTERPENDMAYBE = 4; /* ... eg one of [, { or -> */\n\n\tpublic static final int LEX_INTERPCONCAT =\t 3; /* expecting anything, eg at start of\n\t\t\t\t\tstring or after \\E, $foo, etc */\n\tpublic static final int LEX_INTERPCONST =\t 2; /* NOT USED */\n\tpublic static final int LEX_FORMLINE =\t\t 1; /* expecting a format line */\n\tpublic static final int LEX_KNOWNEXT =\t\t 0; /* next token known; just return it */\n\n}", "public java.lang.String getState () {\n\t\treturn state;\n\t}", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public final int yystate() {\r\n return zzLexicalState;\r\n }", "public S getCurrentState();", "public final int yystate() {\n return zzLexicalState;\n }", "public java.lang.CharSequence getState() {\n return state;\n }", "public final int yystate() {\n\t\treturn zzLexicalState;\n\t}", "public int getState()\r\n\t{\r\n\t\treturn currentstate;\r\n\t}", "public java.lang.CharSequence getState() {\n return state;\n }", "String getCurrentState() {\n return context.getString(allStates[currentIdx]);\n }", "public State getCurrentState() {\n \t\treturn currentState;\n \t}", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public State getCurrentState() {\n\t\treturn currentState;\n\t}", "public java.lang.String getState() {\r\n return state;\r\n }", "public S getState() {\r\n\t\treturn state;\r\n\t}", "public java.lang.String getState() {\n return state;\n }", "public java.lang.String getState() {\n return state;\n }", "public String getStateToken() {\n\t\treturn stateToken;\n\t}", "public java.lang.String getState() {\n return State;\n }", "public final char getState() {\n\t\treturn _state;\n\t}", "public String getState() {\n\t\treturn state;\n\t}", "public State getCurrentState() {\n return currentState;\n }", "public String getState()\n\t{\n\t\treturn state;\n\t}", "java.lang.String getState();", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public S getState() {\n return currentState;\n }", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "@AutoEscape\n\tpublic String getState();", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public STATE getState() {\n\t\n\t\treturn state;\n\t}", "public State getState() {\n\t\treturn state;\n\t}", "public State getState() {\n\t\treturn state;\n\t}", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "String getState();", "String getState();", "String getState();", "public static States getState() {\r\n\t\treturn currentState;\r\n\t}", "public int getCurrentState() {\n return myState;\n }", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public String getState() {\n\t\treturn state.toString();\n\t}", "public String getState()\n {\n \treturn state;\n }", "public String getState() {\n\t\treturn State;\n\t}", "public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}", "public State getState();", "public State getState();", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }" ]
[ "0.7778223", "0.70451266", "0.6973572", "0.6948794", "0.6948794", "0.69262105", "0.6872897", "0.6855285", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6816272", "0.6794584", "0.67804474", "0.6775809", "0.6752034", "0.6720856", "0.6673574", "0.65926677", "0.65839285", "0.65839285", "0.65592843", "0.6550969", "0.6549062", "0.6549062", "0.64878684", "0.6481509", "0.64813185", "0.6453214", "0.64531", "0.6444532", "0.6442533", "0.64420325", "0.64329183", "0.6428034", "0.6428034", "0.6428034", "0.64198136", "0.64187604", "0.64187604", "0.6395604", "0.6391171", "0.6391171", "0.63854337", "0.6378271", "0.6378271", "0.6378271", "0.636332", "0.63566566", "0.6348809", "0.6348809", "0.63462967", "0.63323", "0.6328926", "0.63216776", "0.630704", "0.630704", "0.6278874", "0.6278874", "0.6278874" ]
0.6828434
40
Enters a new lexical state
public final void yybegin(int newState) { zzLexicalState = newState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\n zzLexicalState = newState;\n }", "final public void yybegin(int newState) {\n yy_lexical_state = newState;\n }", "final public void yybegin(int newState) {\n yy_lexical_state = newState;\n }", "public final void yybegin(int newState) {\n\t\tzzLexicalState = newState;\n\t}", "public void SwitchTo(int lexState)\n{\n if (lexState >= 1 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "public void SwitchTo(int lexState)\n{\n if (lexState >= 4 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "static public void SwitchTo(int lexState)\n{\n if (lexState >= 2 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}", "static public void SwitchTo(int lexState)\n {\n if (lexState >= 3 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "private void start() {\n getDispenser().advance();\n if (getDispenser().tokenIsNumber()) setState(State.NUMBER); \n else if (getDispenser().tokenIsLeftParen()) setState(State.LEFT_PAREN);\n else syntaxError(NUM_OR_LEFT_PAREN);\n }", "public void SwitchTo(int lexState)\n {\n if (lexState >= 4 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "static public void SwitchTo(int lexState) {\n if (lexState >= 2 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n }", "public SLR1_automat.State next_state(String symbol) throws Exception;", "public interface LexicalStates\n{\n\t/** lexical states */\n\tpublic static final int LEX_NORMAL =\t\t10; /* normal code (ie not within \"...\") */\n\tpublic static final int LEX_INTERPNORMAL = 9; /* code within a string, eg \"$foo[$x+1]\" */\n\tpublic static final int LEX_INTERPCASEMOD = 8; /* expecting a \\U, \\Q or \\E etc */\n\tpublic static final int LEX_INTERPPUSH =\t 7; /* starting a new sublex parse level */\n\tpublic static final int LEX_INTERPSTART\t= \t 6; /* expecting the start of a $var */\n\n\t/* at end of code, eg \"$x\" followed by: */\n\tpublic static final int LEX_INTERPEND = \t 5; /* ... eg not one of [, { or -> */\n\tpublic static final int LEX_INTERPENDMAYBE = 4; /* ... eg one of [, { or -> */\n\n\tpublic static final int LEX_INTERPCONCAT =\t 3; /* expecting anything, eg at start of\n\t\t\t\t\tstring or after \\E, $foo, etc */\n\tpublic static final int LEX_INTERPCONST =\t 2; /* NOT USED */\n\tpublic static final int LEX_FORMLINE =\t\t 1; /* expecting a format line */\n\tpublic static final int LEX_KNOWNEXT =\t\t 0; /* next token known; just return it */\n\n}", "static void EnterScope(){\r\n\t\tcurLevel++;\r\n\t\tScope scope = new Scope(curLevel);\r\n\t\t//scope.nextAdr = 3;\r\n\t\ttopScope.ant = scope;\r\n\t\tscope.sig = topScope; \r\n\t\ttopScope = scope;\r\n }", "public void enterScope(){\n\t\tscope.add(0, new ArrayList<SymbolEntry>());\n\t\t++scopeLevel;\n\t}", "public void enterBlock(CymbolParser.BlockContext ctx) {\n currentScope = new LocalScope(currentScope);\n saveScope(ctx, currentScope);\n }", "public void add_switch(String symbol, SLR1_automat.State state) throws Exception;", "public void pushState( TurtleState state ) {\n\t\tstates.push( state );\n\t}", "@Override\r\n\tpublic void addState(String nextToken) {\r\n\t\tNFAState s = checkIfExists(nextToken);\r\n\t\tif (s == null) {\r\n\t\t\tstates.add(new NFAState(nextToken));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Error: this state already exists.\");\r\n\t\t}\r\n\t}", "public void enterNormalState() {\n\n\t}", "public void enterHatchingState() {\n\n\t}", "@Override\n\tpublic void addStartState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif(s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\tstart = s;\n\t\t\n\t}", "public ATNState newState(GrammarAST node) {\n ATNState n = new BasicState();\n if (currentRule != null) {\n n.setRuleIndex(currentRule.index);\n }\n atn.addState(n);\n return n;\n }", "public void applyNewState() {\n this.setAlive(this.newState);\n }", "void nextState();", "@Override\n\tpublic void enterStart(AplusplusParser.StartContext ctx) {\n\t\tglobalScope = new GlobalScope();\n\t\tcurrentScope = globalScope;\n\t\tsaveScope(ctx, currentScope);\n\t}", "private InterpreterState(final String statename) {\n name = statename;\n }", "public abstract ALRState<I> goTo(Symbol symbol);", "State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }", "public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }", "public void setState(LexerState state) {\n\t\tif (state == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.state = state;\n\t}", "public void setState(LexerState state) {\n\t\tif (state == null) {\n\t\t\tthrow new IllegalArgumentException(\"State cannot be \" + state);\n\t\t}\n\t\tthis.state = state;\n\t}", "protected void sequence_State(ISerializationContext context, State semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, TP1_EMPackage.Literals.STATE__NAME) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TP1_EMPackage.Literals.STATE__NAME));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getStateAccess().getNameEStringParserRuleCall_2_0(), semanticObject.getName());\r\n\t\tfeeder.finish();\r\n\t}", "public State(String name) {\n\t\tthis.name = name;\n\t\tif (name.endsWith(\"a\")) {\n\t\t\tsetAccepting();\n\t\t} else if (name.endsWith(\"d\")) {\n\t\t\tsetDeclining();\n\t\t} else if (name.endsWith(\"f\")) {\n\t\t\tsetFinal(true);\n\t\t}\n\t}", "protected void enter() {\n \tresult.setForeground(red);\n \tif (entered == true) {\n \t\tshow(current);\n \t}\n \tentered = true;\n \tstack.add(current);\n \tcurrent = 0;\n }", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "public void getState();", "private LRState createStartState(final Grammar grammar) {\n final Production production = grammar.getStartProduction();\n final HashSet<Symbol> terminalSymbols = new HashSet<>();\n terminalSymbols.add(END_SYMBOL);\n final LRItem startItem = new LRItem(production, 0, terminalSymbols);\n return new LRState(Arrays.asList(new LRItem[] { startItem }), 0);\n }", "public void enter();", "synchronized void advanceState()\n {\n state = state.advance();\n notifyAll();\n }", "public LexerState getState() {\n\t\treturn state;\n\t}", "LabState state();", "public void setState(int synstate){\n\tsynState = synstate;\n }", "public void FSMProcess(String currentInput) throws BadInputException{\n if (contentsMap.containsKey(currentState + currentInput)) {\n System.out.print(contentsMap.get(currentState + currentInput).getOutputSymbol());\n this.currentState = contentsMap.get(currentState + currentInput).getNextState();\n }\n else throw new BadInputException();\n }", "public DFAState(String name) {\n this.name = name;\n this.hashCode = name.hashCode();\n }", "public State next () { return nextState(); }", "public void setState (int philosphoer, String state){\n currentState[philosphoer] = state;\n }", "private void enterRules()\n {\n String ruleString = ruleTextField.getText();\n transition.buildRulesFromString(ruleString);\n ruleString = transition.buildStringFromRules();\n ruleTextField.setText(ruleString);\n optionsPanel.getWorkspacePanel().requestFocusInWindow();\n optionsPanel.getWorkspacePanel().repaint();\n // Daniel didn't like this automatic switching any more.\n // optionsPanel.getWorkspacePanel().setTool(LMWorkspacePanel.SELECT_TOOL);\n }", "@Override\n\tpublic void addState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\t\n\t}", "void enter();", "public void setCameFrom(State n)\r\n\t{\r\n\t\tthis.previousState = new State(n);\r\n\t}", "@Override\n public void setState(String s)\n {\n state = s;\n nbChanges++;\n }", "public void Activate() {\n state.Activate();\n }", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}", "public ExecuteState() {\r\n PrevPC = 0;\r\n ChangedLoc = -1;\r\n OldInst = new CodeBlueInstruction();\r\n }", "@Override\r\n\tpublic void enter() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}" ]
[ "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.72941506", "0.7226648", "0.7226648", "0.71508276", "0.67628527", "0.675286", "0.66516984", "0.62365973", "0.6181515", "0.61330837", "0.6028637", "0.6020987", "0.59391516", "0.59199816", "0.5890798", "0.5875512", "0.58046514", "0.57238895", "0.57177275", "0.5656443", "0.5620161", "0.5614717", "0.5598218", "0.5589737", "0.5581988", "0.5566714", "0.5546274", "0.55406994", "0.5533377", "0.552367", "0.550816", "0.5502893", "0.55012566", "0.5456661", "0.5451478", "0.5435046", "0.5416135", "0.54146284", "0.5400702", "0.53828895", "0.53801304", "0.5365147", "0.5350195", "0.5311098", "0.5308529", "0.52941406", "0.52824825", "0.5277627", "0.52679616", "0.5262274", "0.5258218", "0.5254931", "0.52547026", "0.5254015", "0.52511466", "0.5245394", "0.52409154" ]
0.734593
32
Returns the text matched by the current regular expression.
public final CharSequence yytext() { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegularExpression() {\n\t\treturn enteredText;\n\t}", "java.lang.String getRegex();", "java.lang.String getRegex();", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public String getRegex();", "public String getRegEx();", "public String getMatched() {\r\n\t\treturn matched;\r\n\t}", "public String getMatchRegex() {\n return matchRegex;\n }", "public String apply(TregexMatcher tregexMatcher)\n/* */ {\n/* 275 */ return this.result;\n/* */ }", "public static String getAfterRegex(String text, String regex) {\n\t\tMatcher textMatcher = Pattern.compile(regex).matcher(text);\n\t\ttextMatcher.find();\n\t\tint foundI = textMatcher.end();\n\t\tif (sb == null) {\n\t\t\tsb = new StringBuilder();\n\t\t}\n\t\tchar[] chars = text.toCharArray();\n\t\tfor (int i=foundI; i<chars.length; i++) {\n\t\t\tsb.append(chars[i]);\n\t\t}\n\t\tString tokens = sb.toString();\n\t\tsb.setLength(0);\n\t\treturn tokens;\n\t}", "public final String getRegex() {\n\t\treturn JsUtils.getNativePropertyString(this, \"regex\");\n\t}", "public String getRegEx() {\r\n return regex;\r\n }", "public final String yytext() {\n\t\treturn new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n\t}", "public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.Short getRegexMatch() {\r\n return regexMatch;\r\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }", "public java.lang.String getGet() {\n java.lang.String ref = \"\";\n if (patternCase_ == 2) {\n ref = (java.lang.String) pattern_;\n }\n return ref;\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\r\n return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );\r\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }", "public P getText() {\n return this.slp.getProduction(text);\n }", "public final String yytext() {\n return new String(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);\n }", "final public String yytext() {\n return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );\n }", "final public String yytext() {\n return new String( yy_buffer, yy_startRead, yy_markedPos-yy_startRead );\n }", "public String getSourceText() {\n\t\treturn getSource().replaceAll(\"<a.*>(.*)</a>\", \"$1\");\n\t}", "public String getTextInCurrentElement() throws ParseException {\n int lessThan = html.lastIndexOf(\"<\", position);\n if (lessThan == -1) {\n throw new ParseException(\"Cannot find text in current element\", position);\n }\n position = lessThan;\n String tag = findCurrentTag(html, position);\n return getTextInNextElement(tag);\n }", "private ReaderWorld() {\r\n pattern = Pattern.compile(regularExpression);\r\n matcher = pattern.matcher(getText());\r\n }", "public String returnRegex() {\n\t\tString chosenRegex;\n\t\tSystem.out.println(\"selectedRegex value is: \" + selectedRegex);\n\t\tswitch (selectedRegex) {\n\t\tcase 1:\n\t\t\tchosenRegex = \"(\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*)\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tchosenRegex = \"(\\\\&list=[a-zA-Z 0-9 -]+\\\\&?index=?\\\\d+?)\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tchosenRegex = \"(\\\\&feature=youtu.be)\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tchosenRegex = \"\\\\?t.*|\\\\&t.*|\\\\&l.*|\\\\&f.*\"; // alternative:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// (\\\\&?\\\\??t=\\\\d*?[h]?\\\\d*[m]?\\\\d*[s]|\\\\&t=\\\\d*|\\\\&list=[a-zA-Z\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0-9 -]*)\n\t\t\tbreak;\n\t\t}\n\t\tSystem.out.println(chosenRegex);\n\t\treturn chosenRegex;\n\t}", "public String getText() {\n return text.getText();\n }", "public String getText() {\n\t\treturn new XWPFWordExtractor(document).getText();\n\t}", "@java.lang.Override\n public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getRegex() {\n java.lang.Object ref = regex_;\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 regex_ = s;\n return s;\n }\n }", "public java.lang.String getRegexStr() {\r\n return regexStr;\r\n }", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "java.lang.String getText();", "private String getStringMatching(final String input, final String regex) {\n\t\tLOGGER.debug(\"trying to locate a pattern {} in the input {}\", regex, input);\n\t\tPattern pattern = Pattern.compile(regex);\n\t\tString match = null;\n\t\tMatcher m = pattern.matcher(input);\n\t\twhile (m.find()) {\n\t\t\tfinal String matchingGroup = m.group().trim();\n\t\t\tif (matchingGroup.length() > 0) {\n\t\t\t\tmatch = matchingGroup;\n\t\t\t}\n\t\t}\n\t\treturn match;\n\t}", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "String getText();", "public final String yytext() {\n return input.readText().toString();\n }", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "Match getResultMatch();", "@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 getText()\n {\n return (this.text);\n }", "protected abstract Regex pattern();", "public String getPattern() {\r\n return this.currPattern;\r\n }", "public String getSearchResultsText() {\n System.out.println(\"[step] getSearchResultsText\");\n return page.findElement(signSearch).getText();\n }", "public MatchResult getResult() {\n return result;\n }", "String text();", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(stringDfaMatcher);\n buffer.append(nfaMatcher);\n buffer.append(regExpMatcher);\n return buffer.toString();\n }", "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 }" ]
[ "0.70918065", "0.6484353", "0.6484353", "0.6231338", "0.6081341", "0.6011239", "0.59774715", "0.594106", "0.58467793", "0.57840997", "0.5781989", "0.5691061", "0.56247616", "0.56243914", "0.562349", "0.56010646", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5586059", "0.5563483", "0.55582124", "0.55582124", "0.55582124", "0.55582124", "0.55582124", "0.5550914", "0.5549363", "0.55393475", "0.5517683", "0.5517683", "0.55167186", "0.5508398", "0.5448301", "0.5437464", "0.54361844", "0.54159194", "0.54098195", "0.5408319", "0.5388305", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.5375658", "0.53742635", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.536935", "0.53546596", "0.5341025", "0.5332981", "0.5329512", "0.5320878", "0.53195256", "0.5273523", "0.5272645", "0.52618897", "0.5260471", "0.5256495", "0.5250461" ]
0.5966505
15
Returns the length of the matched text region.
public final int yylength() { return zzMarkedPos-zzStartRead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTextLength();", "public int length() {\r\n\t\treturn text.length();\r\n\t}", "public int getTextLength();", "public int getLength() {\n\t\t\treturn this.text.length();\n\t}", "@Override\r\n \tpublic final int getLength() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getEndPos() - getStartPos();\r\n \t}", "public int getTextLength() {\r\n return text.length();\r\n }", "public int numMatches();", "public int getMinMatchLength() {\n int[] allele = {getAllele(0), getAllele(1)};\n byte[][] alt = {getAlt(allele[0]).getSequence(), getAlt(allele[1]).getSequence()};\n byte[] ref = getReference();\n\n int[] matchLength = {0, 0};\n for (int i = 0; i < 2; i++) {\n for (int j = 0; j < Math.min(ref.length, alt[i].length); j++) {\n if (alt[i][j] == ref[j]) {\n matchLength[i]++;\n } else {\n break;\n }\n }\n }\n return Math.min(matchLength[0], matchLength[1]);\n }", "int getSearchLength();", "int getGrammarMatchCount();", "int computeNumberOfLines(String text);", "public int size() {\n return text.size();\n }", "public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }", "public double length(){\n return end.distance(getStart());\n }", "protected int length() { return FormatTools.getRasterLength(lengths); }", "public final int termLength() {\n initTermBuffer();\n return termLength;\n }", "public int rectangleCount() {\n return this.root.rectangleCount();\n }", "public float getWidth() {\n\t\t\n\t\tfloat width= 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\twidth += font.getChar(text.charAt(i)).X_ADVANCE * size;\n\t\t}\n\t\t\n\t\treturn width;\n\t}", "public int matchLength() {\n /*\n // Can't load method instructions: Load method exception: null in method: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int, dex: in method: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.text.TimeZoneNames.MatchInfo.matchLength():int\");\n }", "public double length() {\n\t\treturn startPoint.distance(endPoint);\n\t}", "public int height()\n throws Exception\n {\n return this.text.height();\n }", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "int getLinesCount();", "public final int yylength() {\n return zzMarkedPos - zzStartRead;\n }", "int getNumberOfLines(int offset, int length) throws BadLocationException;", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "public final int yylength() {\r\n return zzMarkedPos-zzStartRead;\r\n }", "private int getOffsetLength(final String message, final ResourceText text,\n\t\t\tfinal int offset) {\n\t\tint length = 1;\n\t\tif (isUnunsedVariable(message) //\n\t\t\t\t|| isUnunsedMacro(message) //\n\t\t\t\t|| isLowerCase(message)) {\n\t\t\tfinal int start = message.indexOf(QUOTE_CHAR);\n\t\t\tfinal int end = message.indexOf(QUOTE_CHAR, start + 1);\n\t\t\tif (start != -1 && end != -1) {\n\t\t\t\tlength = end - start - 1;\n\t\t\t}\n\t\t} else if (isNoSpace(message)) {\n\t\t\tint end = offset;\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\twhile (isWhitespace(content, end)) {\n\t\t\t\tend++;\n\t\t\t}\n\t\t\tlength = end - offset;\n\t\t} else if (isOneSpace(message) || isEndLineSpace(message)) {\n\t\t\tint end = offset + 1;\n\t\t\tfinal byte[] content = text.getContent();\n\t\t\twhile (isWhitespace(content, end)) {\n\t\t\t\tend++;\n\t\t\t}\n\t\t\tlength = end - offset;\n\t\t}\n\n\t\treturn Math.max(length, 1);\n\t}", "public int getStringWidth(String text);", "public int getGrammarMatchCount() {\n if (grammarMatchBuilder_ == null) {\n return grammarMatch_.size();\n } else {\n return grammarMatchBuilder_.getCount();\n }\n }", "public int length() { return _end - _start; }", "public final int yylength() {\n\t\treturn zzMarkedPos-zzStartRead;\n\t}", "public float getHeight() {\n\t\t\n\t\tfloat height = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tfloat h = (c.T_HEIGHT + c.Y_OFFSET) * size;\n\t\t\t\n\t\t\tif(h > height)\n\t\t\t\theight = h;\n\t\t}\n\t\t\n\t\treturn height;\n\t}", "public int getLength() {\n if (data instanceof String) {\n String string = (String) data;\n return string.length();\n } else if (data instanceof StringReference) {\n StringReference stref = (StringReference) data;\n return stref.getLength();\n } else if (data instanceof Value) {\n Value val = (Value) data;\n return val.getString().length();\n } else {\n return data.toString().length();\n }\n }", "public int getWordLength();", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "@Override\n public int height()\n {\n return textCent.height();\n }", "public int get_length();", "private static int numLines() {\n\t\tif(subway != null)\n\t\t\treturn subway[0].length;\n\t\treturn 0;\n\t}", "public int length() {\n \t\tif (-1 == n_points) setupForDisplay();\n \t\treturn n_points;\n \t}", "public double getLength() {\n return VectorXZ.distance(p1, p2);\n }", "public int getMazeWidth() {\n\t\tint result = 0;\n\t\t\n\t\tfor (String line : this.mMazeChars) {\n\t\t\tif (result < line.length()) \n\t\t\t\tresult = line.length();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public int length() {\n return nextindex - startIndex;\n }", "@Override\n public int computeLength()\n {\n if ( matchingRule != null )\n {\n matchingRuleBytes = Strings.getBytesUtf8( matchingRule );\n extensibleMatchLength = 1 + TLV.getNbBytes( matchingRuleBytes.length ) + matchingRuleBytes.length;\n }\n\n if ( type != null )\n {\n typeBytes = Strings.getBytesUtf8( type );\n extensibleMatchLength += 1 + TLV.getNbBytes( typeBytes.length ) + typeBytes.length;\n }\n\n if ( matchValue != null )\n {\n int bytesLength = matchValue.getBytes().length;\n extensibleMatchLength += 1 + TLV.getNbBytes( bytesLength ) + bytesLength;\n }\n\n if ( dnAttributes )\n {\n extensibleMatchLength += 1 + 1 + 1;\n }\n\n return 1 + TLV.getNbBytes( extensibleMatchLength ) + extensibleMatchLength;\n }", "public int length()\r\n/* 26: */ {\r\n/* 27: 39 */ return this.pos;\r\n/* 28: */ }", "@java.lang.Override\n public int getGrammarMatchCount() {\n return grammarMatch_.size();\n }", "public int getWidth(CharSequence text) {\r\n\t\tint width = 0, lineWidth = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < text.length(); i++) {\r\n\t\t\tchar character = text.charAt(i);\r\n\t\t\t\r\n\t\t\tif (character == '\\n') { // New line\r\n\t\t\t\twidth = Math.max(width, lineWidth);\r\n\t\t\t\tlineWidth = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Ignore carriage returns\r\n\t\t\tif (character == '\\r') continue;\r\n\t\t\t\r\n\t\t\tGlyph glyph = glyphs.get(character);\r\n\t\t\tif (glyph == null) continue;\r\n\t\t\t\r\n\t\t\tlineWidth += glyph.getWidth();\r\n\t\t}\r\n\t\t\r\n\t\twidth = Math.max(width, lineWidth);\r\n\t\treturn width;\r\n\t}", "int getNumberOfLines();", "int getLineLength(int line) throws BadLocationException;", "public long getNumberOfPatternOccurrences() {\n if(!hasFinished()) {\n throw new IllegalArgumentException(\"the recompression is not jet ready.\");\n }\n\n S terminal = slp.get(getPattern().getLeft(), 1);\n return getPatternOccurrence(terminal).get(getText());\n }", "public int getCount() {\n return m_stringOffsets != null ?\n m_stringOffsets.length :\n 0;\n }", "public int length() {\n\treturn tokens.length;\n}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();" ]
[ "0.6528484", "0.6524071", "0.636394", "0.6363093", "0.61599505", "0.6144468", "0.60899585", "0.6083994", "0.607981", "0.6014312", "0.6012768", "0.60009634", "0.59647894", "0.5935444", "0.5883292", "0.5819961", "0.5805488", "0.57757026", "0.5772788", "0.5771723", "0.57381433", "0.5736751", "0.57170707", "0.5708871", "0.5691757", "0.5684845", "0.5684845", "0.5684845", "0.5684845", "0.5684845", "0.56836575", "0.56816185", "0.56722504", "0.5664663", "0.5642051", "0.56175935", "0.5615893", "0.56133527", "0.5610425", "0.5610425", "0.5610425", "0.5610425", "0.5610425", "0.5598322", "0.5596918", "0.5592805", "0.55829555", "0.55432", "0.5530951", "0.5523193", "0.55159557", "0.55140084", "0.5510568", "0.5509233", "0.5494084", "0.5489734", "0.5485191", "0.5483054", "0.54786164", "0.54784447", "0.54784447", "0.54784447", "0.54784447", "0.54784447" ]
0.5758411
48
Reports an error that occurred while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a matchall fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner etc.). Usual syntax/scanner level error handling should be done in error fallback rules.
private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }", "public void syntax_error(Symbol current_token){}", "public static void scannerError(String fmt, Object... varArgs) throws Exception\r\n\t{\r\n\t\tString diagnosticTxt = String.format(fmt, varArgs);\r\n\t\tthrow new ScannerException((Scanner.iSourceLineNr + 1), diagnosticTxt);\r\n\t}", "@Override\n public final void syntaxError(Recognizer<?, ?> recognizer,\n Object offendingSymbol, int line, int charPositionInLine,\n String msg, RecognitionException e) {\n ResolveToken offendingToken = (ResolveToken) offendingSymbol;\n String input;\n if (recognizer == null) {\n input = offendingToken.getTokenSource().getInputStream().toString();\n }\n else {\n CommonTokenStream src =\n (CommonTokenStream) recognizer.getInputStream();\n input = src.getTokenSource().getInputStream().toString();\n }\n String[] lines = input.split(\"\\n\");\n String errorLine = lines[line - 1].replaceAll(\"\\t\", \" \");\n\n // Obtain the location from the token if it is not null\n Location location = null;\n if (offendingToken != null) {\n location = offendingToken.getLocation();\n }\n\n String errorMsg = buildErrorMsg(charPositionInLine, errorLine, msg);\n myStatusHandler.error(location, errorMsg);\n }", "@Override\n protected void reportUnwantedToken(Parser recognizer) {\n super.reportUnwantedToken(recognizer);\n System.exit(SYNTAX_ERROR_CODE);\n }", "private void error(@Nonnull Token pptok, boolean is_error)\r\n throws IOException,\r\n LexerException {\r\n StringBuilder buf = new StringBuilder();\r\n buf.append('#').append(pptok.getText()).append(' ');\r\n /* Peculiar construction to ditch first whitespace. */\r\n Token tok = source_token_nonwhite();\r\n ERROR:\r\n for (;;) {\r\n switch (tok.getType()) {\r\n case NL:\r\n case EOF:\r\n break ERROR;\r\n default:\r\n buf.append(tok.getText());\r\n break;\r\n }\r\n tok = source_token();\r\n }\r\n if (is_error)\r\n error(pptok, buf.toString());\r\n else\r\n warning(pptok, buf.toString());\r\n }", "@Override\n protected void visit(final SpreadsheetErrorParserToken token) {\n this.add(\n Expression.value(\n token.value()\n .kind()\n .toError()\n ),\n token\n );\n }", "private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}", "int yyparse()\n {\n boolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\");\n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\n case 1:\n//#line 25 \"GramaticaGrupo8.y\"\n {}\n break;\n case 2:\n//#line 26 \"GramaticaGrupo8.y\"\n {yyerror(\"No hay sentencia\");}\n break;\n case 3:\n//#line 27 \"GramaticaGrupo8.y\"\n {yyerror(\"No hay sentencia\");}\n break;\n case 4:\n//#line 27 \"GramaticaGrupo8.y\"\n {}\n break;\n case 5:\n//#line 30 \"GramaticaGrupo8.y\"\n {}\n break;\n case 6:\n//#line 31 \"GramaticaGrupo8.y\"\n {}\n break;\n case 7:\n//#line 34 \"GramaticaGrupo8.y\"\n {}\n break;\n case 8:\n//#line 35 \"GramaticaGrupo8.y\"\n {}\n break;\n case 9:\n//#line 38 \"GramaticaGrupo8.y\"\n {\n Vector<ParserVal> vectorTokens = (Vector<ParserVal>)(val_peek(1).obj);\n String tipo = (val_peek(2).sval);/* para que esto ande tocar la regla del no terminal tipo*/\n tipo = tipo.toLowerCase();\n for(int i=0; i< vectorTokens.size();i++){\n ParserVal token = vectorTokens.elementAt(i);\n Symbol simbolo =(Symbol) token.obj;\n if (!simbolo.isUsada()){\n simbolo.setUsada(true);\n simbolo.setEsMutable(true);\n simbolo.setTipoVar(val_peek(2).sval);}\n else\n yyerror(\"Se esta intentado redeclarar la variable \"+simbolo.getLexema(),token.getFila(),token.getColumna());\n }\n\n }\n break;\n case 10:\n//#line 54 \"GramaticaGrupo8.y\"\n {yyerror(\"Declaracion mal definida \");}\n break;\n case 11:\n//#line 57 \"GramaticaGrupo8.y\"\n {/* id.add( ((Symbol)($1.obj)).getLexema() );*/\n Vector<ParserVal> vect = new Vector<ParserVal>();/*$1 es el parser val con el symbolo de ese ID*/\n vect.add(val_peek(0));/*ver si anda, hay que castear a Symbol?*/\n yyval.obj = vect; }\n break;\n case 12:\n//#line 61 \"GramaticaGrupo8.y\"\n {\t((Symbol)(val_peek(0).obj)).setEspuntero(true); /*reconoce puntero*/\n /*id.add(((Symbol)($2.obj)).getLexema());//} //agrega a lista de identificadores reconocidos*/\n Vector<ParserVal> vect = new Vector<ParserVal>();/*$2 es el parser val con el symbolo de ese ID*/\n vect.add(val_peek(0));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 13:\n//#line 68 \"GramaticaGrupo8.y\"\n {/*id.add(((Symbol)($1.obj)).getLexema());*/\n Vector<ParserVal> vect = (Vector<ParserVal>)(val_peek(0).obj); /*$3 me trae el vector original primero y desp aumenta*/\n vect.add(val_peek(2));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 14:\n//#line 73 \"GramaticaGrupo8.y\"\n {/*id.add(((Symbol)($2.obj)).getLexema());*/\n ((Symbol)(val_peek(2).obj)).setEspuntero(true); /*reconoce puntero*/\n Vector<ParserVal> vect = (Vector<ParserVal>)(val_peek(0).obj); /*$4 me trae el vector original primero y desp aumenta*/\n vect.add(val_peek(2));/*ver si anda, hay que castear a Symbol? .obj*/\n yyval.obj = vect;\n }\n break;\n case 15:\n//#line 79 \"GramaticaGrupo8.y\"\n {yyerror(\"Se esperaba ';' \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 16:\n//#line 82 \"GramaticaGrupo8.y\"\n {yyval.sval=\"integer\";}\n break;\n case 17:\n//#line 83 \"GramaticaGrupo8.y\"\n {yyval.sval=\"single\";}\n break;\n case 18:\n//#line 84 \"GramaticaGrupo8.y\"\n {yyerror(\"Tipo indefinido\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 19:\n//#line 87 \"GramaticaGrupo8.y\"\n {}\n break;\n case 20:\n//#line 88 \"GramaticaGrupo8.y\"\n {}\n break;\n case 21:\n//#line 91 \"GramaticaGrupo8.y\"\n {}\n break;\n case 22:\n//#line 92 \"GramaticaGrupo8.y\"\n {/*#######Solo llego aca si termino un if o un loop*/\n Integer i = p.pop();\n if (listaTercetos.get(i).getOperador() == \"BI\")\n {\n listaTercetos.get(i).setOperando1(contadorTerceto);\n\n }\n if (listaTercetos.get(i).getOperador() == \"BF\")\n {\tlistaTercetos.get(i).setOperando2(contadorTerceto);\n }\n if (intLoop == 0){\n Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);\n }\n else\n { ((T_BF)listaTercetos.get(i)).invertFlags();\n listaTercetos.get(i).setOperando2(intLoop);\n intLoop=0;\n }\n /*podriamos hacer un terceto fin aca que sea a donde apunte el salto, este terceto no haria nada solo funcionaria de label del salto*/\n }\n break;\n case 23:\n//#line 104 \"GramaticaGrupo8.y\"\n {}\n break;\n case 24:\n//#line 107 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Suma_Resta(contadorTerceto,\"+\",val_peek(2).obj,val_peek(0).obj,st);\n /*st es la tabla de simbolos, paso lexema porque lo uso para buscar en la tabla de simbolos*/\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 25:\n//#line 121 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Suma_Resta(contadorTerceto,\"-\",val_peek(2).obj,val_peek(0).obj,st);\n /*st es la tabla de simbolos, paso lexema porque lo uso para buscar en la tabla de simbolos*/\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 26:\n//#line 135 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);\n yyval.obj=val_peek(0).obj; /*creo que es necesario para que no se pierdan los lexemas, si quieren reveanlo*/\n }\n break;\n case 27:\n//#line 141 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Mult_Div(contadorTerceto,\"/\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n\n }\n break;\n case 28:\n//#line 155 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Mult_Div(contadorTerceto,\"*\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 29:\n//#line 168 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);\n /* terceto*/\n yyval.obj=val_peek(0).obj;\n }\n break;\n case 30:\n//#line 175 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);}\n break;\n case 31:\n//#line 176 \"GramaticaGrupo8.y\"\n {yyval=val_peek(0);}\n break;\n case 32:\n//#line 177 \"GramaticaGrupo8.y\"\n {if(!((Symbol)(val_peek(0).obj)).isUsada()){\n /*error*/\n yyerror(\"variable no declarada\",val_peek(0).getFila(),val_peek(0).getColumna());\n }\n yyval=val_peek(0);\n }\n break;\n case 33:\n//#line 183 \"GramaticaGrupo8.y\"\n { /** Revisar sino pierdo el puntero al elemento qe necesito **/\n yyval=val_peek(0);\n /*Symbol aux = st.getSymbol(lex.lastSymbol);*/\n st.addcambiarSigno(((Symbol)(val_peek(0).obj))); /*((Symbol))($2.obj))*/\n }\n break;\n case 34:\n//#line 188 \"GramaticaGrupo8.y\"\n {\t\t\t/** Revisar sino pierdo el puntero al elemento qe necesito **/\n yyval=val_peek(0);\n /* Antes qedaban atributos sin setear*/\n /* Symbol aux = st.getSymbol(lex.lastSymbol);*/\n st.addcambiarSigno(((Symbol)(val_peek(0).obj))); /*((Symbol))($2.obj))*/\n }\n break;\n case 35:\n//#line 196 \"GramaticaGrupo8.y\"\n {\t\t/*necesito el tipo de la expresion*/\n if (!((Symbol)(val_peek(2).obj)).isUsada()){\n yyerror(\"La variable no esta definida \",val_peek(2).getFila(),val_peek(2).getColumna());\n }else{if (!((Symbol)(val_peek(2).obj)).getEsMutable()){\n yyerror(\"La variable no es mutable \",val_peek(2).getFila(),val_peek(2).getColumna());\n }}\n Terceto t = new T_Asignacion(contadorTerceto,\":=\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);//casi seguro que si hay que crearla aca*\n contadorVarAux++;//*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n estructuras.add(\"Asignacion \"+\" fila \"+val_peek(2).getFila()+\" columna \"+val_peek(2).getColumna());}\n break;\n case 36:\n//#line 215 \"GramaticaGrupo8.y\"\n { /* Estoy definiendo una variable*/\n if (((Symbol)(val_peek(3).obj)).isUsada()){\n yyerror(\"La variable ya esta definida \",val_peek(6).getFila(),val_peek(6).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(3).obj));\n s.setUsada(true);\n s.setEsMutable(false);\n s.setEspuntero(true);\n s.setTipoVar(val_peek(5).sval);\n /* faltaria mutabilidad de lo apuntado*/\n }\n if (!((Symbol)(val_peek(0).obj)).isUsada()){\n yyerror(\"La variable no esta definida, &ID \",val_peek(6).getFila(),val_peek(6).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(0).obj));\n Symbol sy = ((Symbol)(val_peek(3).obj));\n if (s.isEsPuntero())\n yyerror(\"No se permiten punteros multiples \",val_peek(6).getFila(),val_peek(6).getColumna());\n }\n Terceto t = new T_Asignacion(contadorTerceto,\"&\",val_peek(3).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(6).getFila(),val_peek(6).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(6);\n yyval.obj = t;\n estructuras.add(\"Asignacion de puntero \"+\" fila \"+val_peek(6).getFila()+\" columna \"+val_peek(6).getColumna());}\n break;\n case 37:\n//#line 246 \"GramaticaGrupo8.y\"\n {/*Estoy definiendo una variable*/\n if (((Symbol)(val_peek(2).obj)).isUsada()){\n yyerror(\"La variable ya esta definida \",val_peek(4).getFila(),val_peek(4).getColumna());\n }else{\n Symbol s = ((Symbol)(val_peek(2).obj));\n s.setUsada(true);\n s.setEsMutable(false);\n s.setEspuntero(false);\n s.setTipoVar(val_peek(3).sval);\n /* faltaria mutabilidad de lo apuntado }*/\n Terceto t = new T_Asignacion(contadorTerceto,\":=\",val_peek(2).obj,val_peek(0).obj,st);\n t.setVariableAux(contadorVarAux);\n contadorVarAux++;\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(4).getFila(),val_peek(4).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(4);\n yyval.obj = t;\n }\n estructuras.add(\"Asignacion \"+\" fila \"+val_peek(4).getFila()+\" columna \"+val_peek(4).getColumna());}\n break;\n case 38:\n//#line 269 \"GramaticaGrupo8.y\"\n {yyerror(\"Falta elemento de asignacion y palabra reservada 'let'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 39:\n//#line 270 \"GramaticaGrupo8.y\"\n {yyerror(\"Falta elemento de asignacion \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 40:\n//#line 271 \"GramaticaGrupo8.y\"\n {yyerror(\"no se encontro ':=' \",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 41:\n//#line 274 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Expresion print \"+\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());\n Terceto t = new T_Print(contadorTerceto,\"PRINT\",val_peek(1).obj,\"\",st);\n // t.setVariableAux(contadorVarAux); //un print no tiene resultado por ende no tiene tipo*/\n //contadorVarAux++; // creo que para los print no es necesario porque los aux son para el resultado*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(3).getFila(),val_peek(3).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(3);\n yyval.obj = t;\n }\n break;\n case 42:\n//#line 287 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea Error en la construccion del print\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 43:\n//#line 290 \"GramaticaGrupo8.y\"\n {}\n break;\n case 44:\n//#line 291 \"GramaticaGrupo8.y\"\n {}\n break;\n case 45:\n//#line 295 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia IF Else\" +\" fila \"+val_peek(5).getFila()+\" columna \"+val_peek(5).getColumna());\n\n /*Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);*/\n }\n break;\n case 46:\n//#line 296 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia IF \" +\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());}\n break;\n case 47:\n//#line 297 \"GramaticaGrupo8.y\"\n {yyerror(\" falta la palabra reservada IF\",val_peek(3).getFila(),val_peek(3).getColumna());}\n break;\n case 48:\n//#line 298 \"GramaticaGrupo8.y\"\n {yyerror(\" Error en la construccion de la sentencia IF \",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 49:\n//#line 299 \"GramaticaGrupo8.y\"\n {yyerror(\" Falta la palabra reservada ELSE \",val_peek(3).getFila(),val_peek(3).getColumna());}\n break;\n case 50:\n//#line 302 \"GramaticaGrupo8.y\"\n {estructuras.add(\"Sentencia Loop \" +\" fila \"+val_peek(3).getFila()+\" columna \"+val_peek(3).getColumna());}\n break;\n case 51:\n//#line 303 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea Falta palabra reservada UNTIL\",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 52:\n//#line 306 \"GramaticaGrupo8.y\"\n {}\n break;\n case 53:\n//#line 307 \"GramaticaGrupo8.y\"\n {}\n break;\n case 54:\n//#line 308 \"GramaticaGrupo8.y\"\n {yyerror(\"LInea Omision de la palabra reservada '{' \",val_peek(2).getFila(),val_peek(2).getColumna());}\n break;\n case 55:\n//#line 311 \"GramaticaGrupo8.y\"\n {/*#### unica forma de marcar donde comienza el loop y ver donde salto (no diferenciamos bloque de loop)*/\n p.push(contadorTerceto);\n intLoop = contadorTerceto;\n Terceto t = new T_Fin(contadorTerceto,\"FIN_DE_SALTO\",\"trampita\",\"trampita\",st);\n\n listaTercetos.add(t);\n contadorTerceto ++;\n }\n break;\n case 56:\n//#line 316 \"GramaticaGrupo8.y\"\n {/*#### aca hacemos el salto incondicional, debimos inventar este no terminal porque no diferenciamos bloque else de bloque if*/\n /*aca ya hicimos el pop cuando termino el cuerpo del if*/\n Terceto t = new T_BI(contadorTerceto,\"BI\",\"trampita\",\"trampita\",st);\n contadorTerceto ++;\n listaTercetos.add(t);\n Integer i = p.pop();\n if (listaTercetos.get(i).getOperador() == \"BF\")\n listaTercetos.get(i).setOperando2(contadorTerceto);\n else\n listaTercetos.get(i).setOperando1(contadorTerceto);\n p.push(contadorTerceto-1);\n /*podriamos hacer un terceto fin aca que sea a donde apunte el salto, este terceto no haria nada solo funcionaria de label del salto*/\n System.out.println(t.toString());\n yyval=val_peek(0);\n yyval.obj = t;\n }\n break;\n case 57:\n//#line 334 \"GramaticaGrupo8.y\"\n { /*#### aca hacemos lo del salto para no repetirlo en todas las condiciones*/\n p.push(contadorTerceto);\n Terceto t = new T_BF(contadorTerceto,\"BF\",val_peek(1).obj,\"trampita\",st);/*##use trampita por las dudas, ya por deporte, no parece que sea necesario*/\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n\n }\n break;\n case 58:\n//#line 345 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\">\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\n }\n break;\n case 59:\n//#line 358 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"<\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 60:\n//#line 370 \"GramaticaGrupo8.y\"\n { Terceto t = new T_Comparador(contadorTerceto,\"=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 61:\n//#line 381 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"!=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 62:\n//#line 393 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\">=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 63:\n//#line 405 \"GramaticaGrupo8.y\"\n {\n Terceto t = new T_Comparador(contadorTerceto,\"<=\",val_peek(2).obj,val_peek(0).obj,st);\n /* t.setVariableAux(contadorVarAux);//revisar, creo que aca no va*/\n /* contadorVarAux++;//osea una comparacion SI TIENE RESULTADO, pero no necesito el tipo del resultado?, nose*/\n for(int i=0; i< t.errores.size();i++){\n yyerror(t.errores.elementAt(i),val_peek(2).getFila(),val_peek(2).getColumna());\n ;}\n contadorTerceto ++;\n listaTercetos.add(t);\n System.out.println(t.toString());\n yyval=val_peek(2);\n yyval.obj = t;\t\t\t\t\t\t\t\t\t\t}\n break;\n case 64:\n//#line 417 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '>'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 65:\n//#line 418 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '<'\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 66:\n//#line 419 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '>='\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n case 67:\n//#line 420 \"GramaticaGrupo8.y\"\n {yyerror(\"Linea se esperaba una expresion y se encontro '<='\",val_peek(1).getFila(),val_peek(1).getColumna());}\n break;\n//#line 1102 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "private void zzScanError(int errorCode) {\r\n String message;\r\n try {\r\n message = ZZ_ERROR_MSG[errorCode];\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\r\n }\r\n\r\n throw new Error(message);\r\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n StringReader stringReader0 = new StringReader(\"pZhZ$;yY23j:\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 121, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo((-1));\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : -1. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "protected static void reportParseError(int expectedToken, int otherExpectedToken, int anotherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 533 */ if (LogSupport.isLoggable()) {\n/* 534 */ LogSupport.log(\"PARSE ERROR: Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \", a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \", or a \" + MailcapTokenizer.nameForToken(anotherExpectedToken) + \" token.\");\n/* */ }", "protected void error(int line, int column, @Nonnull String msg)\r\n throws LexerException {\r\n if (listener != null)\r\n listener.handleError(source, line, column, msg);\r\n //else\r\n // throw new LexerException(\"Error at \" + line + \":\" + column + \": \" + msg);\r\n }", "private static void fail(String filename, String errMsg, Module_itemContext itemCon)\n\t\t\tthrows UnsupportedGrammerException {\n\n\t\tInterval int1 = itemCon.getSourceInterval(); // get token interval\n\n\t\tToken firstToken = tokenStream.get(int1.a);\n\n\t\tint lineNum = firstToken.getLine(); // get line of first token\n\n\t\t// Determining j, first token in int1 which occurs at a different line\n\n\t\tint j;\n\n\t\tfor (j = int1.a; j < int1.b; j++) {\n\n\t\t\tif (tokenStream.get(j).getLine() != lineNum)\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// form a string from tokens 1 through j-1\n\n\t\tString tokenStr = tokenStream.getText(new Interval(int1.a, j));\n\n\t\tSystem.err.printf(\"Parser error (%s:%d): %s\\n\", filename, lineNum, tokenStr);\n\n\t\tfail(errMsg);\n\n\t}", "private void zzScanError(int errorCode) {\n String message;\n try {\n message = ZZ_ERROR_MSG[errorCode];\n } catch (ArrayIndexOutOfBoundsException e) {\n message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "void cannotRecognize(Term token);", "public java_cup.runtime.Symbol scan()\n throws java.lang.Exception\n {\n return lexer.nextToken(); \n }", "@FormatMethod\n private void reportError(ParseTree parseTree, @FormatString String message, Object... arguments) {\n if (parseTree == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(parseTree.location.start, message, arguments);\n }\n }", "void yylexdebug(int state,int ch)\r\n{\r\nString s=null;\r\n if (ch < 0) ch=0;\r\n if (ch <= YYMAXTOKEN) //check index bounds\r\n s = yyname[ch]; //now get it\r\n if (s==null)\r\n s = \"illegal-symbol\";\r\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\r\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n yyval = dup_yyval(yyval); //duplicate yyval if ParserVal is used as semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 63 \"./sinj.y\"\n{ this.ast = new Program (lexico.getLine(), lexico.getColumn(), (List<Sentence>)val_peek(1), (List<Definition>)val_peek(8),(List<VariableDefinition>)val_peek(2) ); }\nbreak;\ncase 2:\n//#line 66 \"./sinj.y\"\n{ yyval = new ArrayList<Definition>(); }\nbreak;\ncase 3:\n//#line 67 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1);\n\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Definition> )yyval).addAll((ArrayList<Definition>)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 6:\n//#line 78 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\tTypeFunction type = new TypeFunction ((Type)val_peek(8), (ArrayList<VariableDefinition>) val_peek(5));\n\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> body = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\tbody.addAll((List<Sentence>)val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\tbody.addAll((List<Sentence>)val_peek(1));\n\t\t\t\t\t\t\t\t\t\t\t\tDefinition def = new FunctionDefinition (lexico.getLine(), lexico.getColumn(), type, (String) val_peek(7), body);\n\t\t\t\t\t\t\t\t\t\t\t\tList<Definition> xx = new ArrayList<Definition> ();\n\t\t\t\t\t\t\t\t\t\t\t\txx.add(def);\n\t\t\t\t\t\t\t\t\t\t\t\tyyval = xx;\n }\nbreak;\ncase 7:\n//#line 89 \"./sinj.y\"\n{ yyval = new ArrayList<VariableDefinition> (); }\nbreak;\ncase 9:\n//#line 93 \"./sinj.y\"\n{ \n\t\t\t\t\t\tyyval = new ArrayList<VariableDefinition>();\n\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString());\n\t\t\t\t\t\t((ArrayList<Definition>)yyval).add(new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(1)));\n\t\t\t\t\t}\nbreak;\ncase 10:\n//#line 98 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\tyyval = val_peek(3);\n\t\t\t\t\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString());\n\t\t\t\t\t\t\t\t\t\tVariableDefinition vd = new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(1));\n\t\t\t\t\t\t\t\t\t\tif (!((ArrayList<VariableDefinition>)yyval).contains (vd))\n\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Definition>) yyval).add(vd);\n\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException (\"One param is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 11:\n//#line 111 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<VariableDefinition> xx = new ArrayList<VariableDefinition>();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (Variable v: (ArrayList<Variable>)val_peek(1)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t \txx.add(new VariableDefinition(lexico.getLine(), lexico.getColumn(), v, (Type)val_peek(2))); \n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = xx; \n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 12:\n//#line 123 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\tList<Variable> xx = new ArrayList<Variable>(); \n\t\t\t\t\t\t\t\txx.add(new Variable (lexico.getLine(), lexico.getColumn(), (String) val_peek(0))); \n\t\t\t\t\t\t\t\tyyval = xx; \n\t\t\t\t\t\t\t\t}\nbreak;\ncase 13:\n//#line 128 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(2); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVariable v = new Variable (lexico.getLine(), lexico.getColumn(), (String)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!((ArrayList<Variable>)yyval).contains(v))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Variable>)yyval).add(v); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException (\"One variable is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 14:\n//#line 144 \"./sinj.y\"\n{ yyval = new ArrayList<VariableDefinition> ();}\nbreak;\ncase 15:\n//#line 145 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (VariableDefinition vd: (ArrayList<VariableDefinition>)val_peek(0)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!((ArrayList<VariableDefinition>)yyval).contains(vd))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<VariableDefinition>)yyval).add(vd); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new RuntimeException(\"One field struct is duplicate\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 16:\n//#line 156 \"./sinj.y\"\n{yyval = new ArrayList<Sentence> (); }\nbreak;\ncase 17:\n//#line 157 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\t\t\t\tyyval = val_peek(1);\n\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Sentence>)yyval).add((Sentence)val_peek(0)); \n\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 18:\n//#line 163 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\tyyval = new ArrayList<Expression>();\n\t\t\t\t\t\t\t((ArrayList<Expression>)yyval).add((Expression)val_peek(0)); \n\t\t\t\t\t\t\t}\nbreak;\ncase 19:\n//#line 167 \"./sinj.y\"\n{\n\t\t\t\t\t \t\t\t\t\t\t\tyyval = val_peek(2);\n\t\t\t\t\t\t\t\t\t\t\t\t((ArrayList<Expression>)yyval).add((Expression)val_peek(0)); \n\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 20:\n//#line 174 \"./sinj.y\"\n{ yyval = new ArrayList<Expression> (); }\nbreak;\ncase 29:\n//#line 187 \"./sinj.y\"\n{yyval = new Write(lexico.getLine(), lexico.getColumn(), (List<Expression>)val_peek(1)); }\nbreak;\ncase 30:\n//#line 188 \"./sinj.y\"\n{ yyval = new Read(lexico.getLine(), lexico.getColumn(), (List<Expression>)val_peek(1)); }\nbreak;\ncase 31:\n//#line 189 \"./sinj.y\"\n{ yyval = new Assign(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(3), (Expression)val_peek(1)); }\nbreak;\ncase 32:\n//#line 190 \"./sinj.y\"\n{ yyval = new Invocation (lexico.getLine(), lexico.getColumn(), (String) val_peek(4), (List<Expression>)val_peek(2)); }\nbreak;\ncase 33:\n//#line 191 \"./sinj.y\"\n{ yyval = new Return (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(1)); }\nbreak;\ncase 34:\n//#line 192 \"./sinj.y\"\n{ yyval = new While (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(4), (List<Sentence>) val_peek(1)); }\nbreak;\ncase 35:\n//#line 195 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\tifBody.add((Sentence) val_peek(0));\n\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), ifBody, new ArrayList<Sentence>());\n\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 36:\n//#line 200 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.add((Sentence) val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.add((Sentence)val_peek(0));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(4), ifBody, elseBody);\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\nbreak;\ncase 37:\n//#line 207 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(4));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.add((Sentence)val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(6), ifBody, elseBody);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 38:\n//#line 215 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(6));\n\t\t\t\t\t\t\t\t\t\t\t\t\telseBody.addAll((List<Sentence>)val_peek(4));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(8), ifBody, elseBody);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\nbreak;\ncase 39:\n//#line 223 \"./sinj.y\"\n{\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> ifBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tList<Sentence> elseBody = new ArrayList<Sentence> ();\n\t\t\t\t\t\t\t\t\t\t\t\t\tifBody.addAll((List<Sentence>) val_peek(2));\n\t\t\t\t\t\t\t\t\t\t\t\t\tyyval = new If(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(4), ifBody, elseBody);\n\t}\nbreak;\ncase 40:\n//#line 234 \"./sinj.y\"\n{ yyval = new TypeInteger(); }\nbreak;\ncase 41:\n//#line 235 \"./sinj.y\"\n{ yyval = new TypeDouble(); }\nbreak;\ncase 42:\n//#line 236 \"./sinj.y\"\n{ yyval = new TypeChar(); }\nbreak;\ncase 43:\n//#line 237 \"./sinj.y\"\n{ yyval = createArray((Type)val_peek(3), Integer.parseInt(String.valueOf((val_peek(1)))));/*$$ = new TypeArray((Type)$1, Integer.parseInt(String.valueOf(($3))));*/ }\nbreak;\ncase 44:\n//#line 238 \"./sinj.y\"\n{ yyval = new TypeVoid (); }\nbreak;\ncase 45:\n//#line 239 \"./sinj.y\"\n{ \n\t\t\t\t\t\t\tList <VariableDefinition> variables = (ArrayList<VariableDefinition>) val_peek(1);\n\t\t\t\t\t\t\tList <FieldDefinition> fieldsStruct = new ArrayList<FieldDefinition> ();\n\t\t\t\t\t\t\tfor (VariableDefinition vd : variables) {\n\t\t\t\t\t\t\t\tFieldDefinition field = new FieldDefinition (vd.getLine(), vd.getColumn(), vd.getType(), vd.getVariable());\n\t\t\t\t\t\t\t\tfieldsStruct.add(field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tyyval = new TypeStruct (fieldsStruct);\n\t\t\t\t\t\t\t}\nbreak;\ncase 46:\n//#line 253 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 47:\n//#line 254 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 48:\n//#line 255 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 49:\n//#line 256 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 50:\n//#line 257 \"./sinj.y\"\n{ yyval= new Arithmetic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 51:\n//#line 258 \"./sinj.y\"\n{ yyval= new AccesoArray(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(3), (Expression)val_peek(1)); }\nbreak;\ncase 52:\n//#line 259 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 53:\n//#line 260 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 54:\n//#line 261 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 55:\n//#line 262 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 56:\n//#line 263 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 57:\n//#line 264 \"./sinj.y\"\n{ yyval = new Comparation(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 58:\n//#line 265 \"./sinj.y\"\n{ yyval = new Logic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 59:\n//#line 266 \"./sinj.y\"\n{ yyval = new Logic(lexico.getLine(), lexico.getColumn(), (Expression)val_peek(2), (String)val_peek(1) , (Expression)val_peek(0)); }\nbreak;\ncase 60:\n//#line 267 \"./sinj.y\"\n{ yyval= new UnaryNegation (lexico.getLine(), lexico.getColumn(), (Expression)val_peek(0)); }\nbreak;\ncase 61:\n//#line 268 \"./sinj.y\"\n{ yyval= new Literal (lexico.getLine(), lexico.getColumn(), (Integer) val_peek(0)); }\nbreak;\ncase 62:\n//#line 269 \"./sinj.y\"\n{ yyval = new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()); }\nbreak;\ncase 63:\n//#line 270 \"./sinj.y\"\n{ yyval= new RealNumber (lexico.getLine(), lexico.getColumn(), (Double) val_peek(0)); }\nbreak;\ncase 64:\n//#line 271 \"./sinj.y\"\n{ yyval= val_peek(1);}\nbreak;\ncase 65:\n//#line 272 \"./sinj.y\"\n{ yyval = new FieldAccess (lexico.getLine(), lexico.getColumn(), (Expression) val_peek(2), new Variable (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()));}\nbreak;\ncase 66:\n//#line 273 \"./sinj.y\"\n{ yyval = new FunctionInvocation (lexico.getLine(), lexico.getColumn(), (String) val_peek(3), (List<Expression>)val_peek(1)); }\nbreak;\ncase 67:\n//#line 274 \"./sinj.y\"\n{ yyval = new Cast (lexico.getLine(), lexico.getColumn(), (Type) val_peek(2), (Expression) val_peek(0)); }\nbreak;\ncase 68:\n//#line 275 \"./sinj.y\"\n{ yyval = new LogicalNegation (lexico.getLine(), lexico.getColumn(), (Expression)val_peek(0)); }\nbreak;\ncase 69:\n//#line 276 \"./sinj.y\"\n{ yyval = new Char (lexico.getLine(), lexico.getColumn(), val_peek(0).toString()); }\nbreak;\n//#line 1070 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n val_push(yylval); //save empty value\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n if (yychar < 0) //it it didn't work/error\n {\n yychar = 0; //change it to default string (no -1!)\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n if (yydebug)\n debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"stack underflow. aborting...\"); //note lower case 's'\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n if (yydebug)\n debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n if (yydebug)\n debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0) //check for under & overflow here\n {\n yyerror(\"Stack underflow. aborting...\"); //capital 'S'\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n if (yydebug)\n {\n yys = null;\n if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n if (yys == null) yys = \"illegal-symbol\";\n debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n }\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n if (yydebug)\n debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 36 \"src/parsers/AdvConditionParser.y\"\n{\r\n\ttopAdvCondition=(AdvCondition)val_peek(0).obj;\r\n\tSystem.out.println(\"AdvConditionParser work completed. \"); \r\n}\nbreak;\ncase 2:\n//#line 42 \"src/parsers/AdvConditionParser.y\"\n{Expression e=new tokens.Number(val_peek(0).ival);yyval=new AdvConditionParserVal(e);}\nbreak;\ncase 3:\n//#line 43 \"src/parsers/AdvConditionParser.y\"\n{Expression e=new Variable(getStringValue(val_peek(0)));yyval=new AdvConditionParserVal(e);}\nbreak;\ncase 4:\n//#line 45 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_PLUS);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 5:\n//#line 50 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_MINUS);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 6:\n//#line 55 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new CompositeExpression((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,CompositeExpression.TYPE_MULTIPLY);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 7:\n//#line 61 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tExpression e=new NegativeExpression((Expression)val_peek(0).obj);\r\n \tyyval=new AdvConditionParserVal(e);\r\n }\nbreak;\ncase 8:\n//#line 67 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tyyval=val_peek(1);\r\n }\nbreak;\ncase 9:\n//#line 72 \"src/parsers/AdvConditionParser.y\"\n{yyval=new AdvConditionParserVal(new AdvCondition((Condition)val_peek(0).obj));}\nbreak;\ncase 10:\n//#line 74 \"src/parsers/AdvConditionParser.y\"\n{\r\n yyval=new AdvConditionParserVal(new AdvCondition((AdvCondition)val_peek(3).obj,(AdvCondition)val_peek(0).obj,AdvCondition.Type_AND)); \r\n}\nbreak;\ncase 11:\n//#line 79 \"src/parsers/AdvConditionParser.y\"\n{\r\n yyval=new AdvConditionParserVal(new AdvCondition((AdvCondition)val_peek(3).obj,(AdvCondition)val_peek(0).obj,AdvCondition.Type_OR));\r\n}\nbreak;\ncase 12:\n//#line 84 \"src/parsers/AdvConditionParser.y\"\n{yyval=val_peek(1);}\nbreak;\ncase 13:\n//#line 88 \"src/parsers/AdvConditionParser.y\"\n{yyval=val_peek(0);((AdvCondition)yyval.obj).negateSelf();}\nbreak;\ncase 14:\n//#line 91 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equal);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 15:\n//#line 96 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.notequal);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 16:\n//#line 101 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equalsmaller);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 17:\n//#line 106 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(3).obj,(Expression)val_peek(0).obj,ConType.equallarger);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 18:\n//#line 111 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,ConType.smaller);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\ncase 19:\n//#line 116 \"src/parsers/AdvConditionParser.y\"\n{\r\n \tCondition c=new Condition((Expression)val_peek(2).obj,(Expression)val_peek(0).obj,ConType.larger);\r\n \tyyval=new AdvConditionParserVal(c);\r\n }\nbreak;\n//#line 689 \"AdvConditionParser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n if (yychar<0) yychar=0; //clean, if necessary\n if (yydebug)\n yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "int yyparse()\n{\nboolean doaction;\n init_stacks();\n yynerrs = 0;\n yyerrflag = 0;\n yychar = -1; //impossible char forces a read\n yystate=0; //initial state\n state_push(yystate); //save it\n while (true) //until parsing is done, either correctly, or w/error\n {\n doaction=true;\n //if (yydebug) debug(\"loop\"); \n //#### NEXT ACTION (from reduction table)\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\n {\n //if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\n if (yychar < 0) //we want a char?\n {\n yychar = yylex(); //get next token\n //if (yydebug) debug(\" next yychar:\"+yychar);\n //#### ERROR CHECK ####\n //if (yychar < 0) //it it didn't work/error\n // {\n // yychar = 0; //change it to default string (no -1!)\n //if (yydebug)\n // yylexdebug(yystate,yychar);\n // }\n }//yychar<0\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n {\n //if (yydebug)\n //debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\n //#### NEXT STATE ####\n yystate = yytable[yyn];//we are in a new state\n state_push(yystate); //save it\n val_push(yylval); //push our lval as the input for next rule\n yychar = -1; //since we have 'eaten' a token, say we need another\n if (yyerrflag > 0) //have we recovered an error?\n --yyerrflag; //give ourselves credit\n doaction=false; //but don't process yet\n break; //quit the yyn=0 loop\n }\n\n yyn = yyrindex[yystate]; //reduce\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\n { //we reduced!\n //if (yydebug) debug(\"reduce\");\n yyn = yytable[yyn];\n doaction=true; //get ready to execute\n break; //drop down to actions\n }\n else //ERROR RECOVERY\n {\n if (yyerrflag==0)\n {\n yyerror(\"syntax error\");\n yynerrs++;\n }\n if (yyerrflag < 3) //low error count?\n {\n yyerrflag = 3;\n while (true) //do until break\n {\n if (stateptr<0 || valptr<0) //check for under & overflow here\n {\n return 1;\n }\n yyn = yysindex[state_peek(0)];\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\n {\n //if (yydebug)\n //debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\n yystate = yytable[yyn];\n state_push(yystate);\n val_push(yylval);\n doaction=false;\n break;\n }\n else\n {\n //if (yydebug)\n //debug(\"error recovery discarding state \"+state_peek(0)+\" \");\n if (stateptr<0 || valptr<0) //check for under & overflow here\n {\n return 1;\n }\n state_pop();\n val_pop();\n }\n }\n }\n else //discard this token\n {\n if (yychar == 0)\n return 1; //yyabort\n //if (yydebug)\n //{\n //yys = null;\n //if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\n //if (yys == null) yys = \"illegal-symbol\";\n //debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\n //}\n yychar = -1; //read another\n }\n }//end error recovery\n }//yyn=0 loop\n if (!doaction) //any reason not to proceed?\n continue; //skip action\n yym = yylen[yyn]; //get count of terminals on rhs\n //if (yydebug)\n //debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\n if (yym>0) //if count of rhs not 'nil'\n yyval = val_peek(yym-1); //get current semantic value\n if (reduceListener == null || reduceListener.onReduce(yyrule[yyn])) // if intercepted!\n switch(yyn)\n {\n//########## USER-SUPPLIED ACTIONS ##########\ncase 1:\n//#line 61 \"Parser.y\"\n{\n\t\t\t\t\t\ttree = new Tree.TopLevel(val_peek(0).clist, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 2:\n//#line 67 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.clist.add(val_peek(0).cdef);\n\t\t\t\t\t}\nbreak;\ncase 3:\n//#line 71 \"Parser.y\"\n{\n \t\tyyval.clist = new ArrayList<Tree.ClassDef>();\n \t\tyyval.clist.add(val_peek(0).cdef);\n \t}\nbreak;\ncase 5:\n//#line 81 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.vdef = new Tree.VarDef(val_peek(0).ident, val_peek(1).type, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 6:\n//#line 87 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.type = new Tree.TypeIdent(Tree.INT, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 7:\n//#line 91 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.VOID, val_peek(0).loc);\n \t}\nbreak;\ncase 8:\n//#line 95 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.BOOL, val_peek(0).loc);\n \t}\nbreak;\ncase 9:\n//#line 99 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeIdent(Tree.STRING, val_peek(0).loc);\n \t}\nbreak;\ncase 10:\n//#line 103 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeClass(val_peek(0).ident, val_peek(1).loc);\n \t}\nbreak;\ncase 11:\n//#line 107 \"Parser.y\"\n{\n \t\tyyval.type = new Tree.TypeArray(val_peek(2).type, val_peek(2).loc);\n \t}\nbreak;\ncase 12:\n//#line 113 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc,false);\n\t\t\t\t\t}\nbreak;\ncase 13:\n//#line 117 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc,true);\n\t\t\t\t\t}\nbreak;\ncase 14:\n//#line 123 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.ident = val_peek(0).ident;\n\t\t\t\t\t}\nbreak;\ncase 15:\n//#line 127 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 16:\n//#line 133 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).vdef);\n\t\t\t\t\t}\nbreak;\ncase 17:\n//#line 137 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).fdef);\n\t\t\t\t\t}\nbreak;\ncase 18:\n//#line 141 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.flist = new ArrayList<Tree>();\n \t}\nbreak;\ncase 20:\n//#line 149 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>(); \n \t}\nbreak;\ncase 21:\n//#line 156 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\n\t\t\t\t\t}\nbreak;\ncase 22:\n//#line 160 \"Parser.y\"\n{\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>();\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\n \t}\nbreak;\ncase 23:\n//#line 167 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.fdef = new MethodDef(true, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 24:\n//#line 171 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.fdef = new MethodDef(false, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 25:\n//#line 177 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Block(val_peek(1).slist, val_peek(2).loc);\n\t\t\t\t\t}\nbreak;\ncase 26:\n//#line 183 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\n\t\t\t\t\t}\nbreak;\ncase 27:\n//#line 187 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.slist = new ArrayList<Tree>();\n \t}\nbreak;\ncase 28:\n//#line 194 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = val_peek(0).vdef;\n\t\t\t\t\t}\nbreak;\ncase 29:\n//#line 199 \"Parser.y\"\n{\n \t\tif (yyval.stmt == null) {\n \t\t\tyyval.stmt = new Tree.Skip(val_peek(0).loc);\n \t\t}\n \t}\nbreak;\ncase 40:\n//#line 217 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Foreach(val_peek(6).bvar,val_peek(4).expr,val_peek(2).expr,val_peek(0).stmt, val_peek(6).loc);\n\t\t\t\t\t}\nbreak;\ncase 41:\n//#line 221 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Foreach(val_peek(4).bvar,val_peek(2).expr,val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 42:\n//#line 227 \"Parser.y\"\n{\n\t\t\t\t\tyyval.bvar = new Tree.BoundVariable(val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 43:\n//#line 231 \"Parser.y\"\n{\n\t\t\t\t\tyyval.bvar = new Tree.BoundVariable(val_peek(1).type,val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 44:\n//#line 236 \"Parser.y\"\n{\n\t\t\t\t\tyyval.stmt = new Tree.GuardedStmt(val_peek(1).elist, val_peek(1).loc);\n\t\t\t\t}\nbreak;\ncase 45:\n//#line 241 \"Parser.y\"\n{\n\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 46:\n//#line 246 \"Parser.y\"\n{\n yyval = new SemValue();\n yyval.elist = new ArrayList<Expr> ();\n yyval.elist.add(val_peek(0).expr);\n }\nbreak;\ncase 47:\n//#line 252 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 48:\n//#line 258 \"Parser.y\"\n{\n\t\t\t\t\tyyval.expr = new Tree.IfBranch(val_peek(2).expr, val_peek(0).stmt, val_peek(2).loc);\t\t\t\t\n\t\t\t\t}\nbreak;\ncase 49:\n//#line 263 \"Parser.y\"\n{\n\t\t\t\t\tyyval.stmt = new Scopy(val_peek(3).ident,val_peek(1).expr,val_peek(5).loc);\t\n\t\t\t\t}\nbreak;\ncase 50:\n//#line 269 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Assign(val_peek(2).lvalue, val_peek(0).expr, val_peek(1).loc);\n\t\t\t\t\t}\nbreak;\ncase 51:\n//#line 273 \"Parser.y\"\n{\n \t\tyyval.stmt = new Tree.Exec(val_peek(0).expr, val_peek(0).loc);\n \t}\nbreak;\ncase 52:\n//#line 277 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 54:\n//#line 284 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t}\nbreak;\ncase 55:\n//#line 290 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.lvalue = new Tree.Ident(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\nbreak;\ncase 56:\n//#line 297 \"Parser.y\"\n{\n \t\tyyval.lvalue = new Tree.Indexed(val_peek(3).expr, val_peek(1).expr, val_peek(3).loc);\n \t}\nbreak;\ncase 58:\n//#line 304 \"Parser.y\"\n{\n \tyyval.lvalue = new Tree.Var(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\n\t\t\t\t\t\t}\n }\nbreak;\ncase 59:\n//#line 313 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Tree.CallExpr(val_peek(4).expr, val_peek(3).ident, val_peek(1).elist, val_peek(3).loc);\n\t\t\t\t\t\tif (val_peek(4).loc == null) {\n\t\t\t\t\t\t\tyyval.loc = val_peek(3).loc;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\nbreak;\ncase 60:\n//#line 322 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = val_peek(0).lvalue;\n\t\t\t\t\t}\nbreak;\ncase 63:\n//#line 328 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.PLUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 64:\n//#line 332 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MINUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 65:\n//#line 336 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MUL, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 66:\n//#line 340 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.DIV, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 67:\n//#line 344 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.MOD, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 68:\n//#line 348 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.EQ, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 69:\n//#line 352 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.NE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 70:\n//#line 356 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.LT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 71:\n//#line 360 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.GT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 72:\n//#line 364 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.LE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 73:\n//#line 368 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.GE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 74:\n//#line 372 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.AND, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 75:\n//#line 376 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Binary(Tree.OR, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 76:\n//#line 380 \"Parser.y\"\n{\n \t\tyyval = val_peek(1);\n \t}\nbreak;\ncase 77:\n//#line 384 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Unary(Tree.NEG, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 78:\n//#line 388 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.Unary(Tree.NOT, val_peek(0).expr, val_peek(1).loc);\n \t}\nbreak;\ncase 79:\n//#line 392 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ReadIntExpr(val_peek(2).loc);\n \t}\nbreak;\ncase 80:\n//#line 396 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ReadLineExpr(val_peek(2).loc);\n \t}\nbreak;\ncase 81:\n//#line 400 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ThisExpr(val_peek(0).loc);\n \t}\nbreak;\ncase 82:\n//#line 404 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.NewClass(val_peek(2).ident, val_peek(3).loc);\n \t}\nbreak;\ncase 83:\n//#line 408 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.NewArray(val_peek(3).type, val_peek(1).expr, val_peek(4).loc);\n \t}\nbreak;\ncase 84:\n//#line 412 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.TypeTest(val_peek(3).expr, val_peek(1).ident, val_peek(5).loc);\n \t}\nbreak;\ncase 85:\n//#line 416 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.TypeCast(val_peek(2).ident, val_peek(0).expr, val_peek(0).loc);\n \t}\nbreak;\ncase 86:\n//#line 420 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayRepeat(val_peek(2).expr, val_peek(0).expr, val_peek(2).loc);\n \t}\nbreak;\ncase 87:\n//#line 424 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayAdd(val_peek(2).expr, val_peek(0).expr, val_peek(2).loc);\n\t }\nbreak;\ncase 88:\n//#line 428 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.subArray(val_peek(5).expr, val_peek(3).expr,val_peek(1).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 89:\n//#line 432 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayDefault(val_peek(5).expr, val_peek(3).expr,val_peek(0).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 90:\n//#line 436 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayPython(val_peek(5).expr, val_peek(3).ident,val_peek(1).expr,val_peek(5).loc);\n\t \t}\nbreak;\ncase 91:\n//#line 440 \"Parser.y\"\n{\n \t\tyyval.expr = new Tree.ArrayPython(val_peek(7).expr, val_peek(5).ident,val_peek(3).expr,val_peek(1).expr,val_peek(7).loc);\n\t \t}\nbreak;\ncase 92:\n//#line 446 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Tree.Literal(val_peek(0).typeTag, val_peek(0).literal, val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 93:\n//#line 450 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.expr = new Null(val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 94:\n//#line 454 \"Parser.y\"\n{\n\t\t\t\t\n\t\t\t\t\t\tyyval.expr = new Tree.ListConst(val_peek(1).elist, val_peek(1).loc);\n\t\t\t\t}\nbreak;\ncase 95:\n//#line 461 \"Parser.y\"\n{\n\t\t\t\t\tyyval = new SemValue();\n yyval.elist = new ArrayList<Expr> ();\n yyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 96:\n//#line 467 \"Parser.y\"\n{\n\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t}\nbreak;\ncase 97:\n//#line 471 \"Parser.y\"\n{\n\t\t\t\t\tyyval = new SemValue();\n\t\t\t\t}\nbreak;\ncase 99:\n//#line 479 \"Parser.y\"\n{\n \t\tyyval = new SemValue();\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\n \t}\nbreak;\ncase 100:\n//#line 486 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n\t\t\t\t\t}\nbreak;\ncase 101:\n//#line 490 \"Parser.y\"\n{\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\n \t}\nbreak;\ncase 102:\n//#line 497 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.WhileLoop(val_peek(2).expr, val_peek(0).stmt, val_peek(4).loc);\n\t\t\t\t\t}\nbreak;\ncase 103:\n//#line 503 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.ForLoop(val_peek(6).stmt, val_peek(4).expr, val_peek(2).stmt, val_peek(0).stmt, val_peek(8).loc);\n\t\t\t\t\t}\nbreak;\ncase 104:\n//#line 509 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Break(val_peek(0).loc);\n\t\t\t\t\t}\nbreak;\ncase 105:\n//#line 515 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.If(val_peek(3).expr, val_peek(1).stmt, val_peek(0).stmt, val_peek(5).loc);\n\t\t\t\t\t}\nbreak;\ncase 106:\n//#line 521 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = val_peek(0).stmt;\n\t\t\t\t\t}\nbreak;\ncase 107:\n//#line 525 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval = new SemValue();\n\t\t\t\t\t}\nbreak;\ncase 108:\n//#line 531 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Tree.Return(val_peek(0).expr, val_peek(1).loc);\n\t\t\t\t\t}\nbreak;\ncase 109:\n//#line 535 \"Parser.y\"\n{\n \t\tyyval.stmt = new Tree.Return(null, val_peek(0).loc);\n \t}\nbreak;\ncase 110:\n//#line 541 \"Parser.y\"\n{\n\t\t\t\t\t\tyyval.stmt = new Print(val_peek(1).elist, val_peek(3).loc);\n\t\t\t\t\t}\nbreak;\n//#line 1539 \"Parser.java\"\n//########## END OF USER-SUPPLIED ACTIONS ##########\n }//switch\n //#### Now let's reduce... ####\n //if (yydebug) debug(\"reduce\");\n state_drop(yym); //we just reduced yylen states\n yystate = state_peek(0); //get new state\n val_drop(yym); //corresponding value drop\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\n {\n //if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\n yystate = YYFINAL; //explicitly say we're done\n state_push(YYFINAL); //and save it\n val_push(yyval); //also save the semantic value of parsing\n if (yychar < 0) //we want another character?\n {\n yychar = yylex(); //get next character\n //if (yychar<0) yychar=0; //clean, if necessary\n //if (yydebug)\n //yylexdebug(yystate,yychar);\n }\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\n break; //quit the loop--all DONE\n }//if yystate\n else //else not done yet\n { //get next state and push, for next yydefred[]\n yyn = yygindex[yym]; //find out where to go\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\n yystate = yytable[yyn]; //get new state\n else\n yystate = yydgoto[yym]; //else go to new defred\n //if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\n state_push(yystate); //going again, so push state & val...\n val_push(yyval); //for next action\n }\n }//main loop\n return 0;//yyaccept!!\n}", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-796));\n // Undeclared exception!\n try { \n xPathLexer0.number();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "int yyparse()\r\n{\r\nboolean doaction;\r\n init_stacks();\r\n yynerrs = 0;\r\n yyerrflag = 0;\r\n yychar = -1; //impossible char forces a read\r\n yystate=0; //initial state\r\n state_push(yystate); //save it\r\n while (true) //until parsing is done, either correctly, or w/error\r\n {\r\n doaction=true;\r\n //if (yydebug) debug(\"loop\"); \r\n //#### NEXT ACTION (from reduction table)\r\n for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate])\r\n {\r\n //if (yydebug) debug(\"yyn:\"+yyn+\" state:\"+yystate+\" yychar:\"+yychar);\r\n if (yychar < 0) //we want a char?\r\n {\r\n yychar = yylex(); //get next token\r\n //if (yydebug) debug(\" next yychar:\"+yychar);\r\n //#### ERROR CHECK ####\r\n //if (yychar < 0) //it it didn't work/error\r\n // {\r\n // yychar = 0; //change it to default string (no -1!)\r\n //if (yydebug)\r\n // yylexdebug(yystate,yychar);\r\n // }\r\n }//yychar<0\r\n yyn = yysindex[yystate]; //get amount to shift by (shift index)\r\n if ((yyn != 0) && (yyn += yychar) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\r\n {\r\n //if (yydebug)\r\n //debug(\"state \"+yystate+\", shifting to state \"+yytable[yyn]);\r\n //#### NEXT STATE ####\r\n yystate = yytable[yyn];//we are in a new state\r\n state_push(yystate); //save it\r\n val_push(yylval); //push our lval as the input for next rule\r\n yychar = -1; //since we have 'eaten' a token, say we need another\r\n if (yyerrflag > 0) //have we recovered an error?\r\n --yyerrflag; //give ourselves credit\r\n doaction=false; //but don't process yet\r\n break; //quit the yyn=0 loop\r\n }\r\n\r\n yyn = yyrindex[yystate]; //reduce\r\n if ((yyn !=0 ) && (yyn += yychar) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yychar)\r\n { //we reduced!\r\n //if (yydebug) debug(\"reduce\");\r\n yyn = yytable[yyn];\r\n doaction=true; //get ready to execute\r\n break; //drop down to actions\r\n }\r\n else //ERROR RECOVERY\r\n {\r\n if (yyerrflag==0)\r\n {\r\n yyerror(\"syntax error\");\r\n yynerrs++;\r\n }\r\n if (yyerrflag < 3) //low error count?\r\n {\r\n yyerrflag = 3;\r\n while (true) //do until break\r\n {\r\n if (stateptr<0 || valptr<0) //check for under & overflow here\r\n {\r\n return 1;\r\n }\r\n yyn = yysindex[state_peek(0)];\r\n if ((yyn != 0) && (yyn += YYERRCODE) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)\r\n {\r\n //if (yydebug)\r\n //debug(\"state \"+state_peek(0)+\", error recovery shifting to state \"+yytable[yyn]+\" \");\r\n yystate = yytable[yyn];\r\n state_push(yystate);\r\n val_push(yylval);\r\n doaction=false;\r\n break;\r\n }\r\n else\r\n {\r\n //if (yydebug)\r\n //debug(\"error recovery discarding state \"+state_peek(0)+\" \");\r\n if (stateptr<0 || valptr<0) //check for under & overflow here\r\n {\r\n return 1;\r\n }\r\n state_pop();\r\n val_pop();\r\n }\r\n }\r\n }\r\n else //discard this token\r\n {\r\n if (yychar == 0)\r\n return 1; //yyabort\r\n //if (yydebug)\r\n //{\r\n //yys = null;\r\n //if (yychar <= YYMAXTOKEN) yys = yyname[yychar];\r\n //if (yys == null) yys = \"illegal-symbol\";\r\n //debug(\"state \"+yystate+\", error recovery discards token \"+yychar+\" (\"+yys+\")\");\r\n //}\r\n yychar = -1; //read another\r\n }\r\n }//end error recovery\r\n }//yyn=0 loop\r\n if (!doaction) //any reason not to proceed?\r\n continue; //skip action\r\n yym = yylen[yyn]; //get count of terminals on rhs\r\n //if (yydebug)\r\n //debug(\"state \"+yystate+\", reducing \"+yym+\" by rule \"+yyn+\" (\"+yyrule[yyn]+\")\");\r\n if (yym>0) //if count of rhs not 'nil'\r\n yyval = val_peek(yym-1); //get current semantic value\r\n if (reduceListener == null || reduceListener.onReduce(yyrule[yyn])) // if intercepted!\r\n switch(yyn)\r\n {\r\n//########## USER-SUPPLIED ACTIONS ##########\r\ncase 1:\r\n//#line 59 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\ttree = new Tree.TopLevel(val_peek(0).clist, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 2:\r\n//#line 65 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.clist.add(val_peek(0).cdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 3:\r\n//#line 69 \"Parser.y\"\r\n{\r\n \t\tyyval.clist = new ArrayList<Tree.ClassDef>();\r\n \t\tyyval.clist.add(val_peek(0).cdef);\r\n \t}\r\nbreak;\r\ncase 5:\r\n//#line 79 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.vdef = new Tree.VarDef(val_peek(0).ident, val_peek(1).type, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 6:\r\n//#line 85 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.type = new Tree.TypeIdent(Tree.INT, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 7:\r\n//#line 89 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.VOID, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 8:\r\n//#line 93 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.BOOL, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 9:\r\n//#line 97 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeIdent(Tree.STRING, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 10:\r\n//#line 101 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeClass(val_peek(0).ident, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 11:\r\n//#line 105 \"Parser.y\"\r\n{\r\n \t\tyyval.type = new Tree.TypeArray(val_peek(2).type, val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 12:\r\n//#line 111 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.cdef = new Tree.ClassDef(val_peek(4).ident, val_peek(3).ident, val_peek(1).flist, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 13:\r\n//#line 117 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.ident = val_peek(0).ident;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 14:\r\n//#line 121 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 15:\r\n//#line 127 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).vdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 16:\r\n//#line 131 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.flist.add(val_peek(0).fdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 17:\r\n//#line 135 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.flist = new ArrayList<Tree>();\r\n \t}\r\nbreak;\r\ncase 19:\r\n//#line 143 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>(); \r\n \t}\r\nbreak;\r\ncase 20:\r\n//#line 150 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 21:\r\n//#line 154 \"Parser.y\"\r\n{\r\n \t\tyyval.vlist = new ArrayList<Tree.VarDef>();\r\n\t\t\t\t\t\tyyval.vlist.add(val_peek(0).vdef);\r\n \t}\r\nbreak;\r\ncase 22:\r\n//#line 161 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.fdef = new MethodDef(true, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 23:\r\n//#line 165 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.fdef = new MethodDef(false, val_peek(4).ident, val_peek(5).type, val_peek(2).vlist, (Block) val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 24:\r\n//#line 171 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Block(val_peek(1).slist, val_peek(2).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 25:\r\n//#line 177 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 26:\r\n//#line 181 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.slist = new ArrayList<Tree>();\r\n \t}\r\nbreak;\r\ncase 27:\r\n//#line 188 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = val_peek(0).vdef;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 28:\r\n//#line 193 \"Parser.y\"\r\n{\r\n \t\tif (yyval.stmt == null) {\r\n \t\t\tyyval.stmt = new Tree.Skip(val_peek(0).loc);\r\n \t\t}\r\n \t}\r\nbreak;\r\ncase 39:\r\n//#line 211 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Assign(val_peek(2).lvalue, val_peek(0).expr, val_peek(1).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 40:\r\n//#line 215 \"Parser.y\"\r\n{\r\n \t\tyyval.stmt = new Tree.Exec(val_peek(0).expr, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 41:\r\n//#line 219 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 43:\r\n//#line 226 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t}\r\nbreak;\r\ncase 44:\r\n//#line 232 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.lvalue = new Tree.Ident(val_peek(1).expr, val_peek(0).ident, val_peek(0).loc);\r\n\t\t\t\t\t\tif (val_peek(1).loc == null) {\r\n\t\t\t\t\t\t\tyyval.loc = val_peek(0).loc;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 45:\r\n//#line 239 \"Parser.y\"\r\n{\r\n \t\tyyval.lvalue = new Tree.Indexed(val_peek(3).expr, val_peek(1).expr, val_peek(3).loc);\r\n \t}\r\nbreak;\r\ncase 46:\r\n//#line 245 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Tree.CallExpr(val_peek(4).expr, val_peek(3).ident, val_peek(1).elist, val_peek(3).loc);\r\n\t\t\t\t\t\tif (val_peek(4).loc == null) {\r\n\t\t\t\t\t\t\tyyval.loc = val_peek(3).loc;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 47:\r\n//#line 254 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = val_peek(0).lvalue;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 50:\r\n//#line 260 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.PLUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 51:\r\n//#line 264 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MINUS, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 52:\r\n//#line 268 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MUL, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 53:\r\n//#line 272 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.DIV, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 54:\r\n//#line 276 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.MOD, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 55:\r\n//#line 280 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.EQ, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 56:\r\n//#line 284 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.NE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 57:\r\n//#line 288 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.LT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 58:\r\n//#line 292 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.GT, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 59:\r\n//#line 296 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.LE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 60:\r\n//#line 300 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.GE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 61:\r\n//#line 304 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.AND, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 62:\r\n//#line 308 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.OR, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 63:\r\n//#line 312 \"Parser.y\"\r\n{\r\n \t\tyyval = val_peek(1);\r\n \t}\r\nbreak;\r\ncase 64:\r\n//#line 316 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Unary(Tree.NEG, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 65:\r\n//#line 320 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Unary(Tree.NOT, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 66:\r\n//#line 324 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ReadIntExpr(val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 67:\r\n//#line 328 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ReadLineExpr(val_peek(2).loc);\r\n \t}\r\nbreak;\r\ncase 68:\r\n//#line 332 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.ThisExpr(val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 69:\r\n//#line 336 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.NewClass(val_peek(2).ident, val_peek(3).loc);\r\n \t}\r\nbreak;\r\ncase 70:\r\n//#line 340 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.NewArray(val_peek(3).type, val_peek(1).expr, val_peek(4).loc);\r\n \t}\r\nbreak;\r\ncase 71:\r\n//#line 344 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.TypeTest(val_peek(3).expr, val_peek(1).ident, val_peek(5).loc);\r\n \t}\r\nbreak;\r\ncase 72:\r\n//#line 348 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.TypeCast(val_peek(2).ident, val_peek(0).expr, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 73:\r\n//#line 352 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Ternary(Tree.COND, val_peek(4).expr, val_peek(2).expr, val_peek(0).expr, val_peek(4).loc);\r\n \t}\r\nbreak;\r\ncase 74:\r\n//#line 356 \"Parser.y\"\r\n{\r\n \t\tyyval.expr = new Tree.Binary(Tree.PCLONE, val_peek(2).expr, val_peek(0).expr, val_peek(1).loc);\r\n \t}\r\nbreak;\r\ncase 75:\r\n//#line 362 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Tree.Literal(val_peek(0).typeTag, val_peek(0).literal, val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 76:\r\n//#line 366 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.expr = new Null(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 78:\r\n//#line 373 \"Parser.y\"\r\n{\r\n \t\tyyval = new SemValue();\r\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\r\n \t}\r\nbreak;\r\ncase 79:\r\n//#line 380 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 80:\r\n//#line 384 \"Parser.y\"\r\n{\r\n \t\tyyval.elist = new ArrayList<Tree.Expr>();\r\n\t\t\t\t\t\tyyval.elist.add(val_peek(0).expr);\r\n \t}\r\nbreak;\r\ncase 81:\r\n//#line 391 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.WhileLoop(val_peek(2).expr, val_peek(0).stmt, val_peek(4).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 82:\r\n//#line 397 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Repeat(val_peek(4).stmt, val_peek(1).expr, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 83:\r\n//#line 403 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.ForLoop(val_peek(6).stmt, val_peek(4).expr, val_peek(2).stmt, val_peek(0).stmt, val_peek(8).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 84:\r\n//#line 409 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Break(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 85:\r\n//#line 415 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.If(val_peek(3).expr, val_peek(1).stmt, val_peek(0).stmt, val_peek(5).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 86:\r\n//#line 421 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = val_peek(0).stmt;\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 87:\r\n//#line 425 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 88:\r\n//#line 431 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Return(val_peek(0).expr, val_peek(1).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 89:\r\n//#line 435 \"Parser.y\"\r\n{\r\n \t\tyyval.stmt = new Tree.Return(null, val_peek(0).loc);\r\n \t}\r\nbreak;\r\ncase 90:\r\n//#line 441 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Print(val_peek(1).elist, val_peek(3).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 91:\r\n//#line 447 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Switch(val_peek(5).expr, val_peek(2).slist, val_peek(1).stmt, val_peek(7).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 92:\r\n//#line 453 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.slist.add(val_peek(0).stmt);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 93:\r\n//#line 457 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n \t\tyyval.slist = new ArrayList<Tree>();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 94:\r\n//#line 464 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Case(val_peek(2).expr, val_peek(0).slist, val_peek(3).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 95:\r\n//#line 470 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Default(val_peek(0).slist, val_peek(2).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 96:\r\n//#line 474 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval = new SemValue();\r\n\t\t\t\t\t}\r\nbreak;\r\ncase 97:\r\n//#line 480 \"Parser.y\"\r\n{\r\n\t\t\t\t\t\tyyval.stmt = new Tree.Continue(val_peek(0).loc);\r\n\t\t\t\t\t}\r\nbreak;\r\n//#line 1319 \"Parser.java\"\r\n//########## END OF USER-SUPPLIED ACTIONS ##########\r\n }//switch\r\n //#### Now let's reduce... ####\r\n //if (yydebug) debug(\"reduce\");\r\n state_drop(yym); //we just reduced yylen states\r\n yystate = state_peek(0); //get new state\r\n val_drop(yym); //corresponding value drop\r\n yym = yylhs[yyn]; //select next TERMINAL(on lhs)\r\n if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL\r\n {\r\n //if (yydebug) debug(\"After reduction, shifting from state 0 to state \"+YYFINAL+\"\");\r\n yystate = YYFINAL; //explicitly say we're done\r\n state_push(YYFINAL); //and save it\r\n val_push(yyval); //also save the semantic value of parsing\r\n if (yychar < 0) //we want another character?\r\n {\r\n yychar = yylex(); //get next character\r\n //if (yychar<0) yychar=0; //clean, if necessary\r\n //if (yydebug)\r\n //yylexdebug(yystate,yychar);\r\n }\r\n if (yychar == 0) //Good exit (if lex returns 0 ;-)\r\n break; //quit the loop--all DONE\r\n }//if yystate\r\n else //else not done yet\r\n { //get next state and push, for next yydefred[]\r\n yyn = yygindex[yym]; //find out where to go\r\n if ((yyn != 0) && (yyn += yystate) >= 0 &&\r\n yyn <= YYTABLESIZE && yycheck[yyn] == yystate)\r\n yystate = yytable[yyn]; //get new state\r\n else\r\n yystate = yydgoto[yym]; //else go to new defred\r\n //if (yydebug) debug(\"after reduction, shifting from state \"+state_peek(0)+\" to state \"+yystate+\"\");\r\n state_push(yystate); //going again, so push state & val...\r\n val_push(yyval); //for next action\r\n }\r\n }//main loop\r\n return 0;//yyaccept!!\r\n}", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(91);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 91. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "protected static void reportParseError(int expectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 514 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \" token.\");\n/* */ }", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado Error Fatal\");\n TablaErr.add(datos);\n */\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "private void parseErrorUnlessPermittedSlash() throws SAXException,\n IOException {\n if (endTag) {\n err(\"Stray \\u201C/\\u201D in an end tag.\");\n return;\n }\n char c = read();\n if (c == '>') {\n if (!currentIsVoid() && !html4) {\n if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4.\");\n } else {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is only permitted on void elements.\");\n }\n } else if (html4) {\n err(\"Stray \\u201C/\\u201D in tag. The \\u201C/>\\u201D syntax is not permitted in HTML4. (HTML4-only error)\");\n }\n } else {\n err(\"Stray \\u201C/\\u201D in tag.\");\n }\n unread(c);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.SwitchTo(4);\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Error: Ignoring invalid lexical state : 4. State unchanged.\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "public void reportError(final int category, final ErrorMsg error) {\n switch (category) {\n case Constants.INTERNAL:\n // Unexpected internal errors, such as null-ptr exceptions, etc.\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.UNSUPPORTED:\n // XSLT elements that are not implemented and unsupported ext.\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.FATAL:\n // Fatal error in the stylesheet input (parsing or content)\n // Immediately terminates compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.ERROR:\n // Other error in the stylesheet input (parsing or content)\n // Does not terminate compilation, no translet produced\n _errors.add(error);\n break;\n case Constants.WARNING:\n // Other error in the stylesheet input (content errors only)\n // Does not terminate compilation, a translet is produced\n _warnings.add(error);\n break;\n }\n }", "public static void registerError() {\r\n errorCount++;\r\n }", "private void errorCheck( Token token, String kind ) {\n if( ! token.isKind( kind ) ) {\n System.out.println(\"Error: expected \" + token + \" to be of kind \" + kind );\n System.exit(1);\n }\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n StringReader stringReader0 = new StringReader(\"}y5+{SPClS&QvLb0Qm\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.jjFillToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test150() throws Throwable {\n StringReader stringReader0 = new StringReader(\"'L+XUG}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2292, 16, 18);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2292, column 18. Encountered: \\\"+\\\" (43), after : \\\"\\\\'L\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "@Override\n public void warning(SAXParseException sAXParseException) throws SAXException {\n ErrorListener errorListener = this.m_transformer.getErrorListener();\n if (errorListener instanceof ErrorHandler) {\n ((ErrorHandler)((Object)errorListener)).warning(sAXParseException);\n return;\n }\n try {\n TransformerException transformerException = new TransformerException(sAXParseException);\n errorListener.warning(transformerException);\n return;\n }\n catch (TransformerException transformerException) {\n throw sAXParseException;\n }\n }", "public Vector collectParseErrors() {\n \n \t\tNode n = null;\n \t\tDatum d = null;\n \t\tVector parseErrors = new Vector();\n \t\tString dependenciesErrors = null;\n \t\tString actionErrors = null;\n \t\tString answerChoicesErrors = null;\n \t\tString readbackErrors = null;\n \t\tVector nodeParseErrors = null;\n \t\tVector nodeNamingErrors = null;\n \t\tboolean hasErrors = false;\n \t\t\n \t\tparser.resetErrorCount();\n \n \t\tfor (int i=0;i<size();++i) {\n \t\t\tn = nodes.getNode(i);\n \t\t\tif (n == null)\n \t\t\t\tcontinue;\n \n \t\t\thasErrors = false;\n \t\t\tdependenciesErrors = null;\n \t\t\tactionErrors = null;\n \t\t\tanswerChoicesErrors = null;\n \t\t\treadbackErrors = null;\n \t\t\tnodeParseErrors = null;\n \t\t\tnodeNamingErrors = null;\n \n \t\t\tparser.booleanVal(evidence, n.getDependencies());\n \n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tdependenciesErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tint actionType = n.getQuestionOrEvalType();\n \t\t\tString s = n.getQuestionOrEval();\n \n \t\t\t/* Check questionOrEval for syntax errors */\n \t\t\tif (s != null) {\n \t\t\t\tif (actionType == Node.QUESTION) {\n \t\t\t\t\tparser.parseJSP(evidence, s);\n \t\t\t\t}\n \t\t\t\telse if (actionType == Node.EVAL) {\n \t\t\t\t\tparser.stringVal(evidence, s);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t/* Check min & max range delimiters for syntax errors */\n \t\t\ts = n.getMinStr();\n \t\t\tif (s != null) {\n \t\t\t\tparser.stringVal(evidence, s);\n \t\t\t}\n \t\t\ts = n.getMaxStr();\n \t\t\tif (s != null) {\n \t\t\t\tparser.stringVal(evidence, s);\n \t\t\t}\n \t\t\t\n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tactionErrors = parser.getErrors();\n \t\t\t}\n \t\t\t\n \t\t\tVector v = n.getAnswerChoices();\n \t\t\tif (v != null) {\n \t\t\t\tfor (int j=0;j<v.size();++j) {\n \t\t\t\t\tAnswerChoice ac = (AnswerChoice) v.elementAt(j);\n \t\t\t\t\tif (ac != null)\n \t\t\t\t\t\tac.parse(parser, evidence);\t// any errors will be associated with the parser, not the node (although this is misleading)\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tanswerChoicesErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tif (n.hasParseErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tnodeParseErrors = n.getParseErrors();\n \t\t\t}\n \t\t\tif (n.hasNamingErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\tnodeNamingErrors = n.getNamingErrors();\n \t\t\t}\n \t\t\t\n \t\t\tif (n.getReadback() != null) {\n \t\t\t\tparser.parseJSP(evidence,n.getReadback());\n \t\t\t}\n \t\t\tif (parser.hasErrors()) {\n \t\t\t\thasErrors = true;\n \t\t\t\treadbackErrors = parser.getErrors();\n \t\t\t}\n \n \t\t\tif (hasErrors) {\n \t\t\t\tparseErrors.addElement(new ParseError(n, dependenciesErrors, actionErrors, answerChoicesErrors, readbackErrors, nodeParseErrors, nodeNamingErrors));\n \t\t\t}\n \t\t}\n \t\treturn parseErrors;\n \t}", "@FormatMethod\n private void reportError(Token token, @FormatString String message, Object... arguments) {\n if (token == null) {\n reportError(message, arguments);\n } else {\n errorReporter.reportError(token.getStart(), message, arguments);\n }\n }", "public void correctErrors();", "private static void fail(Scanner scanner, String message) throws RuntimeException {\n String msg = message + \"\\n @ ...\";\n for (int i = 0; i < 10 && scanner.hasNext(); i++) {\n msg += \" \" + scanner.next();\n }\n throw new RuntimeException(msg + \"...\");\n }", "@Test(timeout = 4000)\n public void test041() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.consume((-2521));\n // Undeclared exception!\n try { \n xPathLexer0.nextToken();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\" 6PR~\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 2);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 1, column 2. Encountered: \\\"6\\\" (54), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n StringReader stringReader0 = new StringReader(\"NXMnbm>`7-o(jz g3N\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-439), 1101);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line -439, column 1108. Encountered: \\\"`\\\" (96), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.consume((-1));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n StringReader stringReader0 = new StringReader(\"#crIx\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2897, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2897, column 32. Encountered: \\\"#\\\" (35), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"}tH?N[RLAs'&]u\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 128, 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 128, column 44. Encountered: <EOF> after : \\\"\\\\\\\"}tH?N[RLAs\\\\'&]u\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "@Test\n public void testWarningsParser() throws IOException {\n Collection<FileAnnotation> warnings = new GccParser().parse(openFile());\n\n assertEquals(WRONG_NUMBER_OF_WARNINGS_DETECTED, 8, warnings.size());\n\n Iterator<FileAnnotation> iterator = warnings.iterator();\n FileAnnotation annotation = iterator.next();\n checkWarning(annotation,\n 451,\n \"`void yyunput(int, char*)&apos; defined but not used\",\n \"testhist.l\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 73,\n \"implicit typename is deprecated, please see the documentation for details\",\n \"/u1/drjohn/bfdist/packages/RegrTest/V00-03-01/RgtAddressLineScan.cc\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 4,\n \"foo.h: No such file or directory\",\n \"foo.cc\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 0,\n \"undefined reference to &apos;missing_symbol&apos;\",\n \"foo.so\",\n TYPE, GCC_ERROR, Priority.HIGH);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_sp\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_flags\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 678,\n \"missing initializer for member sigaltstack::ss_size\",\n \"../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n annotation = iterator.next();\n checkWarning(annotation,\n 52,\n \"large integer implicitly truncated to unsigned type\",\n \"src/test_simple_sgs_message.cxx\",\n TYPE, GCC_WARNING, Priority.NORMAL);\n }", "public static void errorRecovery (CD19Parser p) throws Exception {\n\n int nextComma = p.nextTokenOccursAt(Token.TCOMA);\n\n int nextMinViableTokenBesidesComma = -1;\n int nextSemiComma = p.nextTokenOccursAt(Token.TSEMI);\n int nextLeftParanthesis = p.nextTokenOccursAt(Token.TLPAR);\n if (nextSemiComma != -1) {\n nextMinViableTokenBesidesComma = nextSemiComma;\n }\n if (nextLeftParanthesis != -1 && nextLeftParanthesis < nextMinViableTokenBesidesComma) {\n nextMinViableTokenBesidesComma = nextLeftParanthesis;\n }\n\n // if there is no necessary token for\n // NREPT or NFOR then just fail anyway\n // as it will fail NREPT or NFOR ultimately\n if (nextMinViableTokenBesidesComma == -1) {\n throw new Exception(\"Unable to recover.\");\n }\n\n // there is no next comma\n // i.e. we have to jump the parser\n // the next sensible section\n if (nextComma == -1) {\n // there is a next comma but it doesn't occur\n // in the <initlist>. thus we can only attempt to jump\n // the parser to the next sensisble section\n if (nextMinViableTokenBesidesComma != -1) {\n p.tokensJumpTo(nextMinViableTokenBesidesComma);\n } else {\n throw new Exception(\"Unable to recover\");\n }\n return;\n }\n\n // if next comma occurs before the next ';' or ')'\n // jump there\n if (nextComma < nextMinViableTokenBesidesComma) {\n p.tokensJumpTo(nextComma);\n return;\n }\n\n\n throw new Exception(\"Unable to recover\");\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n StringReader stringReader0 = new StringReader(\"interface\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaCharStream0.nextCharInd = (-1232);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "protected static void reportParseError(int expectedToken, int otherExpectedToken, int actualToken, String actualTokenValue) throws MailcapParseException {\n/* 523 */ throw new MailcapParseException(\"Encountered a \" + MailcapTokenizer.nameForToken(actualToken) + \" token (\" + actualTokenValue + \") while expecting a \" + MailcapTokenizer.nameForToken(expectedToken) + \" or a \" + MailcapTokenizer.nameForToken(otherExpectedToken) + \" token.\");\n/* */ }", "protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n byte[] byteArray0 = new byte[1];\n byteArray0[0] = (byte) (-25);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0, 119, (-820), 29);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 119, column -819. Encountered: <EOF> after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "public void error();", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"\");\n // Undeclared exception!\n try { \n xPathLexer0.LA(0);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume((-2568));\n // Undeclared exception!\n try { \n xPathLexer0.literal();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }" ]
[ "0.6284956", "0.6284956", "0.61203915", "0.5630205", "0.5612845", "0.55875844", "0.546607", "0.54657555", "0.5451778", "0.5374529", "0.5371829", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5348111", "0.5282164", "0.52628577", "0.5261151", "0.52530473", "0.525138", "0.52328885", "0.5223247", "0.5209358", "0.52081996", "0.52081996", "0.5197733", "0.51748395", "0.5146724", "0.5146724", "0.5144373", "0.5141327", "0.51350945", "0.5134566", "0.5126579", "0.51251864", "0.51018125", "0.5074349", "0.50685686", "0.5057345", "0.5044647", "0.5027372", "0.5026636", "0.501965", "0.5018476", "0.5010572", "0.5009665", "0.50084615", "0.50000316", "0.49951097", "0.49949053", "0.49948376", "0.4947675", "0.49443778", "0.4937711", "0.49268678", "0.49158636", "0.4910446", "0.49086845", "0.49053863", "0.49036634", "0.49034327", "0.48976916" ]
0.53252393
45
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public void finish() {\n charScanner.pushBack(currentCharToken);\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }", "private void trim() {\n read(0);\n }", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "private int _readMore(InputStream in, byte[] readBuffer, int inputPtr, int inputEnd, int maxRead)\n/* */ throws IOException\n/* */ {\n/* 1580 */ int i = 0;\n/* 1581 */ while (inputPtr < inputEnd) {\n/* 1582 */ readBuffer[(i++)] = readBuffer[(inputPtr++)];\n/* */ }\n/* 1584 */ inputPtr = 0;\n/* 1585 */ inputEnd = i;\n/* 1586 */ maxRead = Math.min(maxRead, readBuffer.length);\n/* */ do\n/* */ {\n/* 1589 */ int length = maxRead - inputEnd;\n/* 1590 */ if (length == 0) {\n/* */ break;\n/* */ }\n/* 1593 */ int count = in.read(readBuffer, inputEnd, length);\n/* 1594 */ if (count < 0) {\n/* 1595 */ return inputEnd;\n/* */ }\n/* 1597 */ inputEnd += count;\n/* 1598 */ } while (inputEnd < 3);\n/* 1599 */ return inputEnd;\n/* */ }", "private void fillBuf(int need) throws IOException {\n\n\t\tif (count > pos) {\n\t\t\tSystem.arraycopy(buf, pos, buf, 0, count - pos);\n\t\t\tcount -= pos;\n\t\t\tneed -= count;\n\t\t\tpos = 0;\n\t\t} else {\n\t\t\tcount = 0;\n\t\t\tpos = 0;\n\t\t}\n\n\t\twhile (need > 0) {\n\n\t\t\tint len = in.read(buf, count, buf.length - count);\n\t\t\tif (len <= 0) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t\tcount += len;\n\t\t\tneed -= len;\n\t\t}\n\n\t}", "public static void main(String[] args) throws IOException {\n\n String s = scanner.nextLine();\n\n String t = scanner.nextLine();\n\n int k = scanner.nextInt();\n scanner.skip(\"(\\r\\n|[\\n\\r\\u2028\\u2029\\u0085])?\");\n\n String result = appendAndDelete(s, t, k);\n System.out.println(result);\n\n// bufferedWriter.write(result);\n// bufferedWriter.newLine();\n//\n// bufferedWriter.close();\n\n scanner.close();\n }", "private void unread(char c) {\n unreadBuffer = c;\n }", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.FillBuff();\n assertEquals((-1), javaCharStream0.bufpos);\n }", "private void scan() {\n token = nextToken;\n nextToken = scanner.next();\n }", "private int getNextChar() throws IOException{\n\t\tpos++;\n\t\tsourceReader.mark(20);\n\t\treturn sourceReader.read();\n\t}", "@Override\n public void flush() throws IOException\n {\n for(;;) {\n int index = indexOneOf(builder, '\\r', '\\n');\n if(index == -1) {\n break;\n }\n // ignore false returned by offer when queue is full\n queue.offer(builder.substring(0, index));\n\n if(builder.charAt(index) == '\\r') {\n ++index;\n }\n if(builder.charAt(index) != '\\n') {\n throw new IllegalStateException();\n }\n ++index;\n builder.delete(0, index);\n }\n }", "private final int bufferedInputBytesRemaining() {\n return reading ? (buffer.remaining() + (ungotc != -1 ? 1 : 0)) : 0;\n }", "void setCharacterStream(int index, Reader reader, int count)\n throws SQLException;", "void peekAhead(GetsState gs) {\n ChannelBuffer buf;\n //Tcl_DriverBlockModeProc *blockModeProc;\n int bytesLeft;\n boolean goto_cleanup = false; // Set to true when jumping to the\n // cleanup label, used to simulate a goto.\n\n buf = gs.buf;\n\n // If there's any more raw input that's still buffered, we'll peek into\n // that. Otherwise, only get more data from the channel driver if it\n // looks like there might actually be more data. The assumption is that\n // if the channel buffer is filled right up to the end, then there\n // might be more data to read.\n\n cleanup:{\n //blockModeProc = NULL;\n if (buf.next == null) {\n bytesLeft = buf.nextAdded - (buf.nextRemoved + gs.rawRead.i);\n if (bytesLeft == 0) {\n if (buf.nextAdded < buf.bufLength) {\n // Don't peek ahead if last read was short read.\n goto_cleanup = true;\n break cleanup;\n }\n // FIXME: This non-blocking check is currently disabled, non-blocking\n // is not currently supported and it is not clean why we would\n // need to depend on non-blocking IO when peeking anyway.\n if (blocking) {\n //blockModeProc = Tcl_ChannelBlockModeProc(chanPtr->typePtr);\n if (false /*blockModeProc == NULL*/) {\n // Don't peek ahead if cannot set non-blocking mode.\n goto_cleanup = true;\n break cleanup;\n }\n //StackSetBlockMode(chanPtr, TCL_MODE_NONBLOCKING);\n }\n }\n }\n filterBytes(gs);\n //if (blockModeProc != NULL) {\n // StackSetBlockMode(chanPtr, TCL_MODE_BLOCKING);\n //}\n }\n\n if (goto_cleanup) {\n buf.nextRemoved += gs.rawRead.i;\n gs.rawRead.i = 0;\n gs.totalChars += gs.charsWrote.i;\n //gs.bytesWrote.i = 0;\n gs.charsWrote.i = 0;\n }\n }", "private void flushChars() throws SAXException, IOException {\n if (cstart != -1) {\n if (pos > cstart) {\n int currCol = col;\n int currLine = line;\n col = colPrev;\n line = linePrev;\n try {\n tokenHandler.characters(buf, cstart, pos - cstart);\n } finally {\n col = currCol;\n line = currLine;\n }\n }\n }\n cstart = -1;\n }", "public FastCharStream(final Reader reader) {\n\t\tinput = reader;\n\t}", "private char peekFurther(int distance) {\n if (current + distance >= source.length()) {\n return '\\0';\n }\n\n return source.charAt(current + distance);\n }", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "private synchronized void read(byte[] dest, int amt) throws IOException {\n\t\tread(in, dest, amt);\n\t}", "private static String readUntil(InputStreamReader r, char limit)\n\t\t\tthrows IOException {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = r.read(); i != -1; i = r.read()) {\n\t\t\tchar c = (char) i;\n\t\t\tbuilder.append(c);\n\t\t\tif (c == limit) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn builder.toString();\n\t}", "public void unreadToken(SQLToken c) {\n synchronized (lock) {\n if (tokensBufferPosition == 0) {\n throw new SQLParserException(\"Pushback buffer overflow\");\n }\n tokensBuffer[--tokensBufferPosition] = c;\n }\n }", "public void advance() {\r\n this.command = in.nextLine();\r\n }", "void readNextChar() throws ReaderException;", "private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n javaCharStream0.ReInit((InputStream) pipedInputStream0, 122, 122);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "public LengthLimitedInputStream(InputStream in, int limit) {\n\tsuper(in);\n\tleft = limit;\n }", "private String readFixedString(int size, DataInput in) throws IOException\n { \n var b = new StringBuilder(size);\n int i = 0;\n var done = false;\n while (!done && i < size)\n { \n char ch = in.readChar();\n i++;\n if (ch == 0) {\n done = true;\n }\n else {\n b.append(ch);\n }\n }\n \n in.skipBytes(2 * (size - i));\n return b.toString();\n }", "public void feedAndCut() throws IOException {\n feed();\n cut();\n writer.flush();\n }", "public int cscan () throws IOException {\n\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\n\t\t\t\t//if (numChars <= 0) return -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}", "public synchronized long skip(long charsToSkip) throws IOException {\n\t\tlong processed = 0;\n\n\t\t// first disregard what's in our small queue:\n\t\twhile (charsToSkip > 0 && m_queueLength > 0) {\n\t\t\tnext(false);\n\t\t\tcharsToSkip--;\n\t\t\tprocessed++;\n\t\t}\n\n\t\t// the efficient way to skip:\n\t\twhile (charsToSkip > 0) {\n\t\t\tlong skipped = m_reader.skip(charsToSkip);\n\t\t\tif (skipped == 0) {\n\t\t\t\treturn processed;\n\t\t\t}\n\t\t\tcharsToSkip -= skipped;\n\t\t\tprocessed += skipped;\n\t\t\tm_read += skipped;\n\t\t}\n\n\t\tpopulateQueue();\n\n\t\treturn processed;\n\t}", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(1);\n javaCharStream0.getLine();\n assertEquals(4094, javaCharStream0.bufpos);\n }", "private void getNextChar() \n {\n try\n {\n int temp = in.read();\n if (temp == -1)\n eof = true;\n currentChar = (char)temp;\n }\n catch (IOException e)\n {\n System.err.println(\"Catastrophic File IO error.\\n\" + e);\n System.exit(1); \n //exit with nonzero exit code to indicate catastrophic error\n }\n }", "void seekReset() {\n\t\tcancelEof();\n\t\tsawEofChar = false;\n\t}", "@Override\n\tpublic void consume(Scan scan) {\n\n\t}", "private boolean loadMore(int available) throws IOException\n {\n _byteCount += (_inputEnd - available);\n\n // Bytes that need to be moved to the beginning of buffer?\n if (available > 0) {\n if (_inputPtr > 0) {\n if (!canModifyBuffer()) {\n // 15-Aug-2022, tatu: Occurs (only) if we have half-decoded UTF-8\n // characters; uncovered by:\n //\n // https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50036\n //\n // and need to be reported as IOException\n if (_inputSource == null) {\n throw new IOException(String.format(\n\"End-of-input after first %d byte(s) of a UTF-8 character: needed at least one more\",\navailable));\n }\n }\n for (int i = 0; i < available; ++i) {\n _inputBuffer[i] = _inputBuffer[_inputPtr+i];\n }\n _inputPtr = 0;\n _inputEnd = available;\n }\n } else {\n // Ok; here we can actually reasonably expect an EOF, so let's do a separate read right away:\n int count = readBytes();\n if (count < 1) {\n freeBuffers(); // to help GC?\n if (count < 0) { // -1\n return false;\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n\n // We now have at least one byte... and that allows us to\n // calculate exactly how many bytes we need!\n @SuppressWarnings(\"cast\")\n int c = (int) _inputBuffer[_inputPtr];\n if (c >= 0) { // single byte (ascii) char... cool, can return\n return true;\n }\n\n // Ok, a multi-byte char, let's check how many bytes we'll need:\n int needed;\n if ((c & 0xE0) == 0xC0) { // 2 bytes (0x0080 - 0x07FF)\n needed = 2;\n } else if ((c & 0xF0) == 0xE0) { // 3 bytes (0x0800 - 0xFFFF)\n needed = 3;\n } else if ((c & 0xF8) == 0xF0) {\n // 4 bytes; double-char BS, with surrogates and all...\n needed = 4;\n } else {\n // 25-Aug-2016, tatu: As per [dataformat-csv#132], let's not throw\n // exception from here but let caller handle\n return true;\n }\n\n // And then we'll just need to load up to that many bytes;\n // if an EOF is hit, that'll be an error. But we need not do\n // actual decoding here, just load enough bytes.\n while ((_inputPtr + needed) > _inputEnd) {\n int count = readBytesAt(_inputEnd);\n if (count < 1) {\n if (count < 0) { // -1, EOF... no good!\n freeBuffers();\n reportUnexpectedEOF(_inputEnd, needed);\n }\n // 0 count is no good; let's err out\n reportStrangeStream();\n }\n }\n return true;\n }", "private String _read(InputStream in, String enc) throws IOException\n {\n int ptr = 0;\n int count;\n \n while ((count = in.read(_readBuffer, ptr, _readBuffer.length - ptr)) > 0) {\n ptr += count;\n // buffer full? Need to realloc\n if (ptr == _readBuffer.length) {\n _readBuffer = Arrays.copyOf(_readBuffer, ptr + ptr);\n }\n }\n \n return new String(_readBuffer, 0, ptr, enc);\n }", "private boolean fill() throws IOException {\n if (in == null)\n return false;\n if (bufEnd == buf.length) {\n Tokenizer.movePosition(buf, posOff, bufStart, pos);\n /* The last read was complete. */\n int keep = bufEnd - bufStart;\n if (keep == 0)\n\tbufEnd = 0;\n else if (keep + READSIZE <= buf.length) {\n\t/*\n\t * There is space in the buffer for at least READSIZE bytes.\n\t * Choose bufEnd so that it is the least non-negative integer\n\t * greater than or equal to <code>keep</code>, such\n\t * <code>bufLength - keep</code> is a multiple of READSIZE.\n\t */\n\tbufEnd = buf.length - (((buf.length - keep)/READSIZE) * READSIZE);\n\tfor (int i = 0; i < keep; i++)\n\t buf[bufEnd - keep + i] = buf[bufStart + i];\n }\n else {\n\tchar newBuf[] = new char[buf.length << 1];\n\tbufEnd = buf.length;\n\tSystem.arraycopy(buf, bufStart, newBuf, bufEnd - keep, keep);\n\tbuf = newBuf;\n }\n bufStart = bufEnd - keep;\n posOff = bufStart;\n }\n int nChars = in.read(buf, bufEnd, buf.length - bufEnd);\n if (nChars < 0) {\n in.close();\n in = null;\n return false;\n }\n bufEnd += nChars;\n bufEndStreamOffset += nChars;\n return true;\n }", "public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}", "public void next() {\n\t\tif ((position == 0) && (pause != 3)) {\n\t\t\tpause++;\n\t\t} else {\n\t\t\tposition++;\n\t\t\tpause = 0;\n\t\t\tif (position == (origionalMessage.length() + 10)) {\n\t\t\t\tposition = 0;\n\t\t\t}\n\t\t}\n\n\t}", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "protected int filterBytes()\n throws IOException {\n\n if (headerPending) {\n parseHeader();\n }\n\n //System.out.println(\"nEncoded: \" + nEncoded);\n //System.out.println(\"Current: \" + current);\n \n if (nEncoded <= current) {\n int br = readEncodedBytes();\n System.out.println(\"reb: \" + br);\n if (br < 0) {\n return -1;\n }\n }\n\n // bytes decoding loop\n int inserted = 0;\n while (current < nEncoded) {\n \t\n if (current < firstQuantum) {\n if (decode(current) == 0) {\n // this is the end of the encoded data\n parseTrailer();\n return inserted;\n }\n\n // store the expected number of raw bytes encoded in the line\n remaining = decode(current);\n current = firstQuantum;\n\n }\n\n if (encoded[current] == '\\n' && encoded[current + 1] != '\\n') {\n \t \n \t \n \t System.out.println(\"Cur rEad\");\n \t \n \t \n if (remaining != 0) {\n throw new IOException(\"encoded length inconsistent with encoded data\");\n }\n\n //System.out.println(\"Remaning: \" + remaining);\n \n // update state for next line\n firstQuantum = current + 2;\n\n } else if (encoded[current] == '\\n') {\n \t System.out.println(\"CurrEad\");\n \t current = current + 1;\n } else {\n // this is an encoded data byte\n int fByte;\n \n // combine the various 6-bits bytes to produce 8-bits bytes\n switch ((current - firstQuantum) % 4) {\n case 0:\n // nothing to do\n break;\n case 1:\n fByte = ((decode(current - 1) & 0x3F) << 2)\n | ((decode(current) & 0x30) >> 4);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n case 2:\n fByte = ((decode(current - 1) & 0x0F) << 4)\n | ((decode(current) & 0x3C) >> 2);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n break;\n default:\n fByte = ((decode(current - 1) & 0x03) << 6)\n | (decode(current) & 0x3F);\n if (remaining > 0) {\n putFilteredByte(fByte);\n ++inserted;\n --remaining;\n } else if (fByte != 0) {\n throw new IOException(\"unexpected non null bytes after encoded line\");\n }\n \n }\n }\n\n ++current;\n\n }\n \n //System.out.println(inserted);\n\n // preserve current quantum for next round\n int start = current - ((current - firstQuantum) % 4);\n \n //System.out.println(\"FQ: \" + firstQuantum + \"S: \" + (char)encoded[current - 1]);\n \n //System.out.println(\"start: \" + start + \" nEenc-stsrt: \" + (nEncoded - start));\n \n if (firstQuantum < start) {\n System.arraycopy(encoded, start, encoded, 0, nEncoded - start);\n nEncoded -= start;\n current -= start;\n firstQuantum -= start;\n } else {\n \tnEncoded = 0;\n \tcurrent = 0;\n \tfirstQuantum = 0;\n }\n \n //System.out.println(\"out!\");\n //System.out.println (\"inserted == \" + inserted);\n \n return inserted;\n \n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "protected LookAheadReader(Reader reader, int queueSize) throws IOException {\n\t\tthis.m_queue = new char[queueSize];\n\t\tthis.m_reader = reader;\n\t\tpopulateQueue();\n\t}", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "private char advance() {\n current++;\n return source.charAt(current - 1);\n }", "@Override\n\t\tpublic void characters(char[] ch, int start, int length)\n\t\t\t\tthrows SAXException {\n\t\t\tbuffer.append(ch);\n\t\t}", "void onInput(Terminal terminal, int numChars, String current);", "@Override\n protected List<CharSequence> getNextInput() {\n if (!mInputIterator.hasNext())\n // No more input, so we're done.\n return null;\n else {\n // Start a new cycle.\n incrementCycle();\n\n // Return a list containing character sequences to search.\n return mInputIterator.next();\n }\n }", "public void reset(Reader input) {\n this.buffer.dispose();\n this.buffer = new ReaderBuffer(input);\n this.previousToken = null;\n this.lastMatch.clear();\n }", "public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n currentPreparedStatement.setNCharacterStream(parameterIndex, value, length);\n\n }", "private void compactIfNeeded() {\n\n // if the scan point is more than 25% into the buffer, compact...\n if( buffer.position() >= (buffer.capacity() >> 2 ) ) {\n int newLimit = buffer.limit() - buffer.position();\n buffer.compact();\n buffer.position( 0 );\n buffer.limit( newLimit );\n }\n }", "private void updateToken() throws IOException\n\t{\n\t\ttheCurrentToken = theNextToken;\n\t\ttheNextToken = theScanner.GetToken();\n\t}", "@Override\r\n public Integer numberOfCharacters(InputStream ins) throws Exception {\n return null;\r\n }", "@Override\n\tpublic void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {\n\t\t\n\t}", "public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }", "void skip(int bytes) throws IOException {\n this.input.skip(bytes);\n }", "char getPreviousReadChar();", "private String next(int i) throws IOException {\r\n\t\tif(buffer!=null) {\r\n\t\t\tString s=buffer;\r\n\t\t\tbuffer=null;\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\tif (i==0) {\r\n\t\t\treturn in.readLine();\r\n\t\t} else return in2.readLine();\r\n\t}", "private void advanceUntilNL() throws BufferEndedException {\twhile (reader.getLastDelimiter()!='\\n') reader.nextToken();}", "public Scanner(InputStream inStream)\n {\n in = new BufferedReader(new InputStreamReader(inStream));\n eof = false;\n getNextChar();\n }", "void newconsume() {\n\t\tfor (;;) {\n\t\t\tif (printnewline > newinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\tif (newinfo.other[printnewline] < 0)\n\t\t\t\tshowinsert();\n\t\t\telse showmove();\n\t\t}\n\t}", "void oldconsume() {\n\t\tfor (;;) {\n\t\t\tif (printoldline > oldinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\tprintnewline = oldinfo.other[printoldline];\n\t\t\tif (printnewline < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse showmove();\n\t\t}\n\t}", "@Override\n\tpublic void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {\n\t\t\n\t}", "synchronized void receive(int preknownDataLength) throws EOFException, IOException {\n byte[] buffer = new byte[preknownDataLength];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n }", "@Override\n public ByteBuffer readInput(int minBytes) throws IOException {\n if (minBytes <= byteBuffer.remaining())\n return byteBuffer;\n else\n throw new EOFException(\"Cannot read more bytes - end of buffer reached\");\n }", "public byte[] getNextInput(byte[] buffer) throws IOException {\r\n // byte[] buffer = new byte[8192];\r\n file.seek(currOffset);\r\n file.read(buffer);\r\n currOffset += buffer.length;\r\n return buffer;\r\n }", "@Test(timeout = 4000)\n public void test131() throws Throwable {\n StringReader stringReader0 = new StringReader(\"QXw?YE]We2j)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 754, 5, 5);\n javaCharStream0.ReInit((Reader) stringReader0, 754, 754);\n assertEquals((-1), javaCharStream0.bufpos);\n }", "@Override\n \tpublic void characters(final char inbuf[], final int offset, final int len)\n \t\t\tthrows SAXException {\n \t\tif (curAtom != null || !isParsing(eIsParsing.NONE)) {\n \t\t\tfinal String tmpString = new String(inbuf, offset, len);\n \t\t\tbuf += tmpString;\n \t\t}\n \t}", "public void advance() {\n // Get the next instruction\n instruction = fileStream.next();\n removeWhitespace();\n // Split instruction apart\n instructionChunks = instruction.split(\" \");\n }", "int filterBytes(GetsState gs) {\n ChannelBuffer buf;\n byte[] raw;\n int rawStart, rawEnd;\n char[] dst;\n int offset, toRead, /*dstNeeded,*/ spaceLeft, result, rawLen, length;\n TclObject obj;\n final int ENCODING_LINESIZE = 20; // Lower bound on how many bytes\n // to convert at a time. Since we\n // don't know a priori how many\n // bytes of storage this many\n // source bytes will use, we\n // actually need at least\n // ENCODING_LINESIZE bytes of room.\n\n boolean goto_read = false; // Set to true when jumping to the read\n // label, used to simulate a goto.\n\n final boolean debug = false;\n\n obj = gs.obj;\n\n // Subtract the number of bytes that were removed from channel buffer\n // during last call.\n\n buf = gs.buf;\n if (buf != null) {\n buf.nextRemoved += gs.rawRead.i;\n if (buf.nextRemoved >= buf.nextAdded) {\n buf = buf.next;\n }\n }\n gs.totalChars += gs.charsWrote.i;\n\n read: while (true) {\n if (goto_read || (buf == null) || (buf.nextAdded == buf.BUFFER_PADDING)) {\n // All channel buffers were exhausted and the caller still hasn't\n // seen EOL. Need to read more bytes from the channel device.\n // Side effect is to allocate another channel buffer.\n\n //read:\n if (blocked) {\n if (!blocking) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n blocked = false;\n }\n if (getInput() != 0) {\n gs.charsWrote.i = 0;\n gs.rawRead.i = 0;\n return -1;\n }\n buf = inQueueTail;\n gs.buf = buf;\n }\n\n // Convert some of the bytes from the channel buffer to characters.\n // Space in obj's string rep is used to hold the characters.\n\n rawStart = buf.nextRemoved;\n raw = buf.buf;\n rawEnd = buf.nextAdded;\n rawLen = rawEnd - rawStart;\n\n toRead = ENCODING_LINESIZE;\n if (toRead > rawLen) {\n toRead = rawLen;\n }\n dst = new char[toRead];\n result = externalToUnicode(raw, rawStart, rawLen,\n dst, 0, toRead,\n gs.rawRead, /*gs.bytesWrote*/ null, gs.charsWrote,\n gs.charToBytes);\n TclString.append(gs.obj, dst, 0, gs.charsWrote.i);\n\n if (debug) {\n System.out.println(\"filterBytes chars\");\n\n String srep = gs.obj.toString();\n int len = srep.length();\n\n for (int i=0; i < len; i++) {\n char c = srep.charAt(i);\n String prep;\n if (c == '\\r') {\n prep = \"\\\\r\";\n } else if (c == '\\n') {\n prep = \"\\\\n\";\n } else {\n prep = \"\" + c;\n }\n\n System.out.println(\"filtered[\" + i + \"] = '\" +\n prep +\n \"' (int) \" + ((int) srep.charAt(i)) +\n \" 0x\" + Integer.toHexString((int) srep.charAt(i)));\n }\n }\n\n // Make sure that if we go through 'gets', that we reset the\n // TCL_ENCODING_START flag still. [Bug #523988]\n\n encodingStart = false;\n\n if (result == TCL_CONVERT_MULTIBYTE) {\n // The last few bytes in this channel buffer were the start of a\n // multibyte sequence. If this buffer was full, then move them to\n // the next buffer so the bytes will be contiguous. \n\n if (debug) {\n System.out.println(\"TCL_CONVERT_MULTIBYTE decode result found\");\n }\n\n ChannelBuffer next;\n int extra;\n\n next = buf.next;\n if (buf.nextAdded < buf.bufLength) {\n if (gs.rawRead.i > 0) {\n // Some raw bytes were converted to UTF-8. Fall through,\n // returning those UTF-8 characters because a EOL might be\n // present in them.\n } else if (eofCond) {\n // There was a partial character followed by EOF on the\n // device. Fall through, returning that nothing was found.\n\n buf.nextRemoved = buf.nextAdded;\n } else {\n // There are no more cached raw bytes left. See if we can\n // get some more.\n\n goto_read = true;\n continue read; //goto read;\n }\n } else {\n if (next == null) {\n next = new ChannelBuffer(bufSize);\n buf.next = next;\n inQueueTail = next;\n }\n extra = rawLen - gs.rawRead.i;\n System.arraycopy(raw, rawStart + gs.rawRead.i,\n next.buf, buf.BUFFER_PADDING - extra, extra);\n next.nextRemoved -= extra;\n buf.nextAdded -= extra;\n\n if (debug) {\n System.out.println(\"copied \" + extra + \" bytes to \" +\n \"next ChannelBuffer\");\n }\n }\n }\n\n break read; // End loop in the normal case\n } // End read labeled while loop\n\n gs.buf = buf;\n return 0;\n }", "public static void maxTokens(Scanner in) {\n }", "private void goBack() throws IOException{\n\t\tif(\"\\n\".equals(currentChar)){\n\t\t\tline--;\n\t\t}\n\t\tpos--;\n\t\tsourceReader.reset();\n\t}", "private static char[] growBuffer(char[] dest, int index, int size) {\n char[] copy = new char[size];\n if (index > 0) {\n System.arraycopy(dest, 0, copy, 0, index);\n }\n return copy;\n }", "private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }", "private void scanOnceMore() {\n\n barcodeReaderFragment = new BarcodeReaderFragment();\n barcodeReaderFragment.setListener(ScannerFragment.this);\n FragmentTransaction fragmentTransaction = getChildFragmentManager().beginTransaction();\n if (isScanning.get()) fragmentTransaction.remove(barcodeReaderFragment);\n else fragmentTransaction.replace(R.id.scannerFragment, barcodeReaderFragment);\n isScanning.set(!isScanning.get());\n fragmentTransaction.commit();\n }", "void setReadPosition(int minus) {\n/* 159 */ this.pos -= minus;\n/* 160 */ this.readerIndex = getReadPosition(this.pos);\n/* 161 */ this.buffer.readerIndex(this.readerIndex);\n/* */ }", "public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {\n\n updateCharacterStream(columnIndex, x, (long) length);\n }", "public Scanner(String inString)\n {\n in = new BufferedReader(new StringReader(inString));\n eof = false;\n getNextChar();\n }", "@Override\n public Token nextToken(\n PushbackReader r, int cin, Tokenizer t)\n throws IOException {\n\n int i = 0;\n charbuf[i++] = (char) cin;\n int c;\n do {\n c = r.read();\n if (c < 0) {\n c = cin;\n }\n checkBufLength(i);\n charbuf[i++] = (char) c;\n } while (c != cin);\n\n String sval = copyValueOf(charbuf, 0, i);\n return new Token(TT_QUOTED, sval, 0);\n }", "private void skipBytes(int count) throws IOException {\n long currentPosition = archive.position();\n long newPosition = currentPosition + count;\n if (newPosition > archive.size()) {\n throw new EOFException();\n }\n archive.position(newPosition);\n }", "private void releaseChar() {\r\n \t\tif (index < documentContent.length())\r\n \t\t\tindex++;\r\n \t}", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public void updateNCharacterStream(String columnName, Reader x) throws SQLException {\n\n updateNCharacterStream(columnName, x, -1);\n }", "public void flush() throws IOException {\n\t\tif ((buffer.length - cursor) > 50000) {\n\t\t\tSystem.out.println(\"WASTED: \" + (buffer.length - cursor));\n\t\t}\n\t}", "public void updateCharacterStream(String columnName, Reader x, int length) throws SQLException {\n\n updateCharacterStream(columnName, x, (long) length);\n }", "public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {\n\n updateNCharacterStream(columnIndex, x, -1);\n }", "private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\n }", "void mark(@Nonnegative int readLimit);", "@Override\n public int read() throws IOException {\n if (pos >= count) {\n fill();\n if (pos >= count) {\n return -1;\n }\n }\n checkIfClosed();\n return buf[pos++] & 0xFF;\n }", "public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {\n currentPreparedStatement.setCharacterStream(parameterIndex, reader, length);\n }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "protected void readNextChar() throws IOException {\n nextChar = inputReader.read();\n switch (nextChar) {\n case -1: // EOF\n if (char_num == 0) {\n char_num = -1;\n break;\n }\n nextChar = '\\n';\n // fall thru\n case '\\n':\n line_num++;\n char_num = 0;\n break;\n default:\n line.append((char) nextChar);\n char_num++;\n return;\n }\n line.setLength(0);\n }", "@Override\n public void consume(ParsableByteArray data) {\n checkStateNotNull(sampleReader);\n checkStateNotNull(output);\n int offset = data.getPosition();\n int limit = data.limit();\n byte[] dataArray = data.getData();\n\n // Append the data to the buffer.\n totalBytesWritten += data.bytesLeft();\n output.sampleData(data, data.bytesLeft());\n\n while (true) {\n int startCodeOffset = NalUnitUtil.findNalUnit(dataArray, offset, limit, prefixFlags);\n\n if (startCodeOffset == limit) {\n // We've scanned to the end of the data without finding another start code.\n if (!hasOutputFormat) {\n csdBuffer.onData(dataArray, offset, limit);\n }\n sampleReader.onData(dataArray, offset, limit);\n if (userData != null) {\n userData.appendToNalUnit(dataArray, offset, limit);\n }\n return;\n }\n\n // We've found a start code with the following value.\n int startCodeValue = data.getData()[startCodeOffset + 3] & 0xFF;\n // This is the number of bytes from the current offset to the start of the next start\n // code. It may be negative if the start code started in the previously consumed data.\n int lengthToStartCode = startCodeOffset - offset;\n\n if (!hasOutputFormat) {\n if (lengthToStartCode > 0) {\n csdBuffer.onData(dataArray, offset, /* limit= */ startCodeOffset);\n }\n // This is the number of bytes belonging to the next start code that have already been\n // passed to csdBuffer.\n int bytesAlreadyPassed = lengthToStartCode < 0 ? -lengthToStartCode : 0;\n if (csdBuffer.onStartCode(startCodeValue, bytesAlreadyPassed)) {\n // The csd data is complete, so we can decode and output the media format.\n output.format(\n parseCsdBuffer(csdBuffer, csdBuffer.volStartPosition, checkNotNull(formatId)));\n hasOutputFormat = true;\n }\n }\n\n sampleReader.onData(dataArray, offset, /* limit= */ startCodeOffset);\n\n if (userData != null) {\n int bytesAlreadyPassed = 0;\n if (lengthToStartCode > 0) {\n userData.appendToNalUnit(dataArray, offset, /* limit= */ startCodeOffset);\n } else {\n bytesAlreadyPassed = -lengthToStartCode;\n }\n\n if (userData.endNalUnit(bytesAlreadyPassed)) {\n int unescapedLength = NalUnitUtil.unescapeStream(userData.nalData, userData.nalLength);\n castNonNull(userDataParsable).reset(userData.nalData, unescapedLength);\n castNonNull(userDataReader).consume(pesTimeUs, userDataParsable);\n }\n\n if (startCodeValue == START_CODE_VALUE_USER_DATA\n && data.getData()[startCodeOffset + 2] == 0x1) {\n userData.startNalUnit(startCodeValue);\n }\n }\n\n int bytesWrittenPastPosition = limit - startCodeOffset;\n long absolutePosition = totalBytesWritten - bytesWrittenPastPosition;\n sampleReader.onDataEnd(absolutePosition, bytesWrittenPastPosition, hasOutputFormat);\n // Indicate the start of the next chunk.\n sampleReader.onStartCode(startCodeValue, pesTimeUs);\n // Continue scanning the data.\n offset = startCodeOffset + 3;\n }\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "public Scanner(java.io.Reader in) {\n this.zzReader = in;\n }", "@Override\n protected int update(byte[] array, int off, int count) throws IOException {\n int mark = (int)limit;\n \n if(count >= limit) {\n append(array, off, mark);\n finished = true;\n limit = 0;\n return count - mark;\n } \n if(count > 0) {\n append(array, off, count);\n limit -= count; \n }\n return 0;\n }", "@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }" ]
[ "0.57341325", "0.56656796", "0.52405643", "0.517513", "0.51328856", "0.51283723", "0.5105496", "0.5038689", "0.501606", "0.50158566", "0.50055116", "0.5002461", "0.49909958", "0.4982702", "0.49762884", "0.4958265", "0.49557078", "0.49520126", "0.49434412", "0.49329913", "0.49248567", "0.49246606", "0.4907489", "0.49028715", "0.4902686", "0.48908582", "0.48880947", "0.48698762", "0.48675695", "0.4861081", "0.48548976", "0.484275", "0.48419335", "0.48415938", "0.48264104", "0.4825748", "0.481897", "0.48140255", "0.4806983", "0.47873983", "0.47767353", "0.47723708", "0.47712025", "0.4765314", "0.47362503", "0.47286806", "0.47203952", "0.4720374", "0.47121993", "0.47106743", "0.47099593", "0.47034767", "0.47028387", "0.46815148", "0.46797484", "0.46777555", "0.46769968", "0.467646", "0.46759084", "0.46646425", "0.46615067", "0.46591687", "0.4650592", "0.4645288", "0.4640412", "0.46394438", "0.46325672", "0.46305457", "0.46294162", "0.46176788", "0.46170974", "0.4604842", "0.45948246", "0.459289", "0.45857477", "0.45760313", "0.457329", "0.45710662", "0.4570953", "0.45703757", "0.4569675", "0.45623726", "0.45567074", "0.4552447", "0.4544442", "0.45395252", "0.453691", "0.45324752", "0.45317304", "0.45299307", "0.45280454", "0.45181602", "0.4517577", "0.45150584", "0.44988567", "0.4496781", "0.44945037", "0.4493399", "0.4493399", "0.44895384", "0.44884935" ]
0.0
-1
Generates systemunique ticket number
public void generateUid(final StringGenerator generator) { Checks.checkParameter(generator != null, "StringGenerator should be initialized"); uid = generator.generate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMddHHmmss\");\r\n\t\tString pid = dateFormat.format(new Date()) + str_num;\r\n\t\treturn pid;\r\n\t}", "private String genrateOrderTrakingnumber() {\n return UUID.randomUUID().toString();\n }", "String generateUID();", "String createUniqueID(String n){\n String uniqueID =UUID.randomUUID().toString();\n return n + uniqueID;\n }", "public int generateUniqueID(){\n\n int uniqueID = 100; \n int maxID =getMaxId() ;\n \n uniqueID = uniqueID + maxID;\n\n return uniqueID;\n }", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "@Override\n public String generateUniqueID() {\n return LIBRARY_CODE + \"_B_\" + counter;\n }", "public static int generateUniqueId(){\r\n String returnme = GregorianCalendar.getInstance().getTimeInMillis() + \"\";\r\n return Integer.parseInt(returnme.substring(returnme.length() - 9, returnme.length()));\r\n }", "public String generateTeamID() {\n List<Team> teams = getAllOrdered();\n int idNum;\n \n if (teams == null || teams.isEmpty()) \n idNum = 0;\n else {\n String idStr = teams.get(teams.size() - 1).getTeamID();\n idNum = Integer.parseInt(idStr.substring(2, idStr.length()));\n }\n \n String teamID;\n int newIdNum = idNum + 1;\n if (newIdNum <= 9)\n teamID = \"T_000\" + newIdNum;\n else if (newIdNum <= 99) \n teamID = \"T_00\" + newIdNum;\n else if (newIdNum <= 999)\n teamID = \"T_0\" + newIdNum;\n else \n teamID = \"T_\" + newIdNum;\n \n return teamID;\n }", "public static String generateEmpID() {\n\tempID++;\n\treturn String.valueOf(empID);\n }", "private String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "private String generateUID()\n {\n String uid;\n int nbAccounts = this.getNumberOfAccounts();\n String host = this.registration.getHost();\n int nbAccountsForHost = this.getNbAccountForHost(host);\n \n if (nbAccounts == 0 || (this.isModification() && nbAccounts == 1) ||\n nbAccountsForHost == 0 || (this.isModification() && nbAccountsForHost == 1))\n {\n // We create the first account or we edit the onlyone\n // Or we create the first account for this server or edit the onlyone\n uid = host;\n }\n else\n {\n uid = host + \":\" + this.registration.getPort();\n }\n \n return uid;\n }", "protected String generateUserID() {\n Random r = new Random();\n String userID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n userID = String.valueOf(randomIDnum);\n } while (this.userMap.containsKey(userID));\n return userID;\n }", "public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}", "public static String aUniqueIdentifier() {\n return \"MONEXT\" + new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\n }", "public static String generateProductID() {\n\tproductID++;\n\treturn String.valueOf(productID);\n }", "public static String generateMfactID() {\n\tmfactID++;\n\treturn String.valueOf(mfactID);\n }", "private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "public static String generateInstanceId() {\n\t\t// TODO Use a complex hashing algorithm and generate 16-character\n\t\t// string;\n\n\t\treturn Calendar.getInstance().getTime().toString().replaceAll(\" \", \"\");\n\t}", "private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}", "private synchronized int generateUserID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; users.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }", "private long generateID() {\n\t\treturn ++lastID;\n\t}", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "public String GenerateID()\n\t{\n\t\tRandom randomGenerator = new Random();\n\t\treturn Integer.toString(randomGenerator.nextInt(Integer.MAX_VALUE));\n\t}", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\r\n counter = 0;\r\n }\r\n counter = counter + 1; \r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }", "private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }", "public int generateSessionID(){\r\n SecureRandom randsession = new SecureRandom();\r\n return randsession.nextInt(1234567890);\r\n }", "public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }", "static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}", "public static String generateID(int num){\n StringBuilder str=new StringBuilder();//定义变长字符串\n Random random=new Random();\n for (int i = 0; i < num; i++) {\n str.append(random.nextInt(10));\n }\n return str.toString();\n }", "private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(System.currentTimeMillis()) + \"_\" + counter;\n }", "public static String generateId(int digitAmount) {\n\t\t\n\t\tfinal String upperAlpha = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\t\t\n\t\tString brokerOrderID = \"\";\n\t\tfor (int i = 0; i < digitAmount; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tint randomAlphaIndex = ThreadLocalRandom.current().nextInt(0, 25 + 1);\n\t\t\t\tbrokerOrderID += upperAlpha.charAt(randomAlphaIndex);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint randomInteger = ThreadLocalRandom.current().nextInt(1, 9 + 1);\n\t\t\t\tbrokerOrderID += Integer.toString(randomInteger);\n\t\t\t}\n\t\t}\n\t\treturn brokerOrderID;\n\t}", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + randomGenerator.nextInt());\n return hash.substring(0, GUID_LEN);\n }", "private static String localUnique(){\n\t\tfinal long counterValue = instanceCounter.getAndIncrement();\n\t\tString unique = uniqueTop + String.format(\"%08d\", counterValue);\n\t\treturn unique;\t\t\n\t}", "public String generateCustomer_Id() {\n\t\tString customer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkCustomerIdIfExist(customer_Id)) {\n\t\t\tcustomer_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn customer_Id;\n\t}", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "private String genNewAccountNumber(int clientId) {\r\n\t\t// keep 4 digits\r\n\t\tint acNumber = clientId * 1000 + (int) (Math.random() * 900);\r\n\t\treturn String.valueOf(acNumber);\r\n\t}", "private String generateOrderNumber() {\n return OBJ_PREFIX + ID_GENERATOR.getAndIncrement();\n }", "public String generateTrackingNumber() {\n String randChars = \"ABCDEFGHIJ0123456789\";\n StringBuilder trackingNumber = new StringBuilder();\n Random rand = new Random();\n \n while(trackingNumber.length() < 12) {\n int i = (int) (rand.nextFloat() * randChars.length());\n trackingNumber.append(randChars.charAt(i));\n }\n String trackingNum = trackingNumber.toString();\n return trackingNum;\n }", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n counter = counter + 1;\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }", "protected String generateLockId() {\n return AkkaUtils.nextId();\n }", "public static long getID() {\n int localizador = 0;\n Long min = 1000000000L;\n Long max = 9999999999L;\n\n do {\n localizador = (int) Math.floor(Math.random() * (max - min + 1) + min);\n } while (Integer.toString(localizador).length() != 10);\n return localizador;\n }", "public static String generateSaleID() {\n\tsaleID++;\n\treturn String.valueOf(saleID);\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }", "private static String accountNumberGenerator() {\n char[] chars = new char[10];\n for (int i = 0; i < 10; i++) {\n chars[i] = Character.forDigit(rnd.nextInt(10), 10);\n }\n return new String(chars);\n }", "private int generateNewId() {\n int size = userListCtrl.getUsers().size();\n \n if (size == 0) {\n return 1;\n } else {\n return userListCtrl.getUsers().get(size-1).getUserID()+1;\n }\n }", "public static String createUniqueKey() {\r\n\r\n\t\tint iRnd;\r\n\t\tlong lSeed = System.currentTimeMillis();\r\n\t\tRandom oRnd = new Random(lSeed);\r\n\t\tString sHex;\r\n\t\tStringBuffer sUUID = new StringBuffer(32);\r\n\t\tbyte[] localIPAddr = new byte[4];\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 8 characters Code IP address of this machine\r\n\t\t\tlocalIPAddr = InetAddress.getLocalHost().getAddress();\r\n\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[0]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[1]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[2]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[3]) & 255]);\r\n\t\t}\r\n\t\tcatch (UnknownHostException e) {\r\n\t\t\t// Use localhost by default\r\n\t\t\tsUUID.append(\"7F000000\");\r\n\t\t}\r\n\r\n\t\t// Append a seed value based on current system date\r\n\t\tsUUID.append(Long.toHexString(lSeed));\r\n\r\n\t\t// 6 characters - an incremental sequence\r\n\t\tsUUID.append(Integer.toHexString(iSequence.incrementAndGet()));\r\n\r\n\t\tiSequence.compareAndSet(16777000, 1048576);\r\n\r\n\t\tdo {\r\n\t\t\tiRnd = oRnd.nextInt();\r\n\t\t\tif (iRnd>0) iRnd = -iRnd;\r\n\t\t\tsHex = Integer.toHexString(iRnd);\r\n\t\t} while (0==iRnd);\r\n\r\n\t\t// Finally append a random number\r\n\t\tsUUID.append(sHex);\r\n\r\n\t\treturn sUUID.substring(0, 32);\r\n\t}", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n\r\n counter = counter + 1;\r\n\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\r\n \"_\" + counter;\r\n }", "public String generateAccountNumber() {\n // Set First part of AccountNumber\n String accountNumberFirst = \"1398\";\n\n // To Make Second, Third part Get each date and time\n String currentTime = getCurrentTime();\n\n // Get year, month, day\n String date = currentTime.split(\" \")[0];\n int year, month, day;\n year = Integer.parseInt(date.split(\"-\")[0]);\n month = Integer.parseInt(date.split(\"-\")[1]);\n day = Integer.parseInt(date.split(\"-\")[2]);\n\n // Get hour, minute, second\n String time = currentTime.split(\" \")[1];\n int hour, minute, second;\n hour = Integer.parseInt(time.split(\":\")[0]);\n minute = Integer.parseInt(time.split(\":\")[1]);\n second = Integer.parseInt(time.split(\":\")[2]);\n\n // Set Second part of AccountNumber\n String accountNumberSecond;\n accountNumberSecond = Integer.toString((year % 10)) + Integer.toString((month * second) % 10) + Integer.toString((day * minute + hour) % 10);\n\n // Set Third part of AccountNumber\n String accountNumberThird;\n accountNumberThird = Integer.toString((second * hour + minute) % 10) + Integer.toString((second * day + hour) % 10) + Integer.toString((day * month + second) % 10) + Integer.toString((second * minute + day) % 10);\n\n // Set Forth part of AccountNumber\n String accountNumberForth;\n int count = (int)accountDataRepository.count();\n if(count % 100 < 10) {\n accountNumberForth = \"0\" + Integer.toString(count % 100);\n }\n else {\n accountNumberForth = Integer.toString(count % 100);\n }\n\n // Generate AccountNumber\n String accountNumber = accountNumberFirst + \"-\" + accountNumberSecond + \"-\" + accountNumberThird + \"-\" + accountNumberForth;\n\n return accountNumber;\n }", "@Override\n\tpublic native final String createUniqueId() /*-{\n // In order to force uid's to be document-unique across multiple modules,\n // we hang a counter from the document.\n if (!this.gwt_uid) {\n this.gwt_uid = 1;\n }\n\n return \"gwt-uid-\" + this.gwt_uid++;\n\t}-*/;", "public String generateLink_Id() {\n\t\tString Link_Id = \"L\" + String.valueOf(rand.genRandomDigits(7));\n\t\twhile (registerDao.checkLinkIdIfExist(Link_Id)) {\n\t\t\tLink_Id = \"C\" + String.valueOf(rand.genRandomDigits(7));\n\t\t}\n\t\treturn Link_Id;\n\t}", "private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\n counter = 0;\n }\n\n counter = counter + 1;\n\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\n \"_\" + counter;\n }", "public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}", "private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }", "protected String generateSessionId() {\n String result = null;\n\n SessionIdGenerator sessionIdGenerator = getSessionIdGenerator();\n if (sessionIdGenerator == null) {\n sessionIdGenerator = new StandardSessionIdGenerator();\n }\n int tryTimes = 0;\n do {\n if (result != null) {\n // should rarely be here\n logger.warn(\"duplicated session id!!\");\n if (++tryTimes >= 10) {\n throw new SessionException(\"generate duplicated session id too many times!!\");\n }\n }\n result = sessionIdGenerator.generateSessionId();\n } while (sessionCache.exists(result));\n\n return result;\n }", "public static String generateId(String s){\n\t\tString date = LocalDate.now().format(DateTimeFormatter.ofPattern(\"yyMMdd\"));\n\t\tString key = s +\"_\" + date;\n\t\t//com.incr(key);\n\t\tredisTemplate.opsForValue().increment(key);\n\t\tInteger num = redisTemplate.opsForValue().get(key);\n\t\treturn date + \"-\" + String.format(\"%08d\",num);\n\t}", "public static int genID(){\n Random rand = new Random();\n\n int theID = rand.nextInt(999)+1;\n\n return theID;\n\n }", "public static String generate() {\n return StringUtil.join(\n '.',\n PROCESS_ID,\n String.valueOf(Thread.currentThread().getId()),\n String.valueOf(THREAD_ID_SEQUENCE.get().nextSeq())\n );\n }", "@Override\n public String generateRackID() {\n String newRackID = generateRandomCharacter() +\"\"+\n generateRandomCharacter() +\".\"+\n rackCounter +\".\"+ getCopyrightYear();\n this.rackCounter++;\n return newRackID;\n }", "public String generatePurchaseId() {\n\t\tint purchaseId = purchaseIdCounter.incrementAndGet();\n\t\treturn Integer.toString(purchaseId);\n\t}", "public static String randomNumberGenerator() {\r\n\t\tint max = 999999999; // e.g. 714053349 (9 digits)\r\n\t\tRandom rand = new Random();\r\n\t\tint min = 0;\r\n\t\tint randomNum = rand.nextInt(max - min + 1) + min;\r\n\t\treturn Integer.toString(randomNum);\r\n\t}", "protected String generateReviewID() {\n Random r = new Random();\n String restID;\n do {\n int randomIDnum = r.nextInt(999999999) + 1;\n restID = String.valueOf(randomIDnum);\n } while (this.reviewMap.containsKey(restID));\n return restID;\n }", "@Override\r\n\tpublic int getTicketNo() {\n\t\treturn 0;\r\n\t}", "private void GenerateTxId() {\n Random random = new Random();\n final String txId = String.valueOf(10000000 + random.nextInt(90000000));\n transactionModel.txId = txId;\n }", "long getUID() throws UidGenerateException;", "private static int generateViewId() {\n for (;;) {\n final int result = sNextGeneratedId.get();\n // aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n int newValue = result + 1;\n if (newValue > 0x00FFFFFF) newValue = 1; // Roll over to 1, not 0.\n if (sNextGeneratedId.compareAndSet(result, newValue)) {\n return result;\n }\n }\n }", "public int getUniqueTrackingNumber(){\n boolean is_used = false;\n int number;\n do {\n number = (int)(Math.random() * 999999 + 100000);\n for (int i = 0; i < trackingNumbers.size() ; i++) {\n if (trackingNumbers.get(i) == number){\n is_used=true;\n }\n }\n }while (is_used);\n trackingNumbers.add(number);\n return number;\n\n }", "private String nextGUID() {\r\n\t\tString guidIdSQL = \"SELECT SYS_GUID() FROM DUAL\";\r\n\t\treturn namedJdbcTemplate.queryForObject(guidIdSQL, (HashMap<String, ?>) null, String.class);\r\n\t}", "public void generateInstallSessionID() {\n// generateSessionID();\n// hasInstallSession = true;\n }", "public static String makeRandomID() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "@Transactional\n\tpublic String generateJobNumber(CorporateEntity corporateEntity){\n\t\tDocumentNumber docNo = null;\n\t\tString jobNumber = null;\n\n\t\tdocNo = documentNumberDAO.findById(new DocumentNumberPK(corporateEntity.getCorpId(), DocumentNumberDAO.DOMAIN_FLEET_MAINTENANCE)).orElse(null);\t\t\n\t\n\t\tjobNumber = docNo.getPreFix() + String.format(\"%08d\", docNo.getNextNo());\n\t\t\n\t\tdocNo.setNextNo(docNo.getNextNo() + 1);\n\t\tdocNo = documentNumberDAO.saveAndFlush(docNo);\t\n\t\t\n\t\treturn jobNumber;\n\t}", "private void generateID(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String t : terms.keySet())\n\t\t\tsb.append(t.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, t.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tfor (String s : sources)\n\t\t\tsb.append(s.replaceAll(\"\\\\W\", \"\")\n\t\t\t\t\t.substring(0, Math.min(4, s.replaceAll(\"\\\\W\", \"\").length())) + \"-\");\n\t\tsb.deleteCharAt(sb.length()-1);\n\t\tif (yearFrom > -1) sb.append(\"_\" + yearFrom);\n\t\tif (yearTo > -1) sb.append(\"_\" + yearTo);\n\t\tif (useCompounds) sb.append(\"_COMP\");\n\t\tif (useStopwords) sb.append(\"_STOP\");\n\t\tsb.append(\"_CNT\" + contextSize);\n\t\tsb.append(\"_\" + System.currentTimeMillis());\n\t\tthis.id = sb.toString();\n\t}", "private String generateNonce() {\n // Get the time of day and run MD5 over it.\n Date date = new Date();\n long time = date.getTime();\n Random rand = new Random();\n long pad = rand.nextLong();\n // String nonceString = (new Long(time)).toString()\n // + (new Long(pad)).toString();\n String nonceString = Long.valueOf(time).toString()\n + Long.valueOf(pad).toString();\n byte mdbytes[] = messageDigest.digest(nonceString.getBytes());\n // Convert the mdbytes array into a hex string.\n return toHexString(mdbytes);\n }", "String getUniqueID();", "public synchronized String generateBranchId() {\n long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();\n byte bid[] = digester.digest(Long.toString(num).getBytes());\n return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);\n }", "public NUID() {\n // Generate a cryto random int, 0 <= val < max to seed pseudorandom\n seq = nextLong(PRAND, maxSeq);\n inc = minInc + nextLong(PRAND, maxInc - minInc);\n pre = new char[preLen];\n for (int i = 0; i < preLen; i++) {\n pre[i] = '0';\n }\n randomizePrefix();\n }", "String uniqueId();", "public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "private static String getUniqueId()\n\t{\n\t\tfinal int limit = 100000000;\n\t\tint current;\n\t\tsynchronized (DiskFileItem.class)\n\t\t{\n\t\t\tcurrent = counter.nextInt();\n\t\t}\n\t\tString id = Integer.toString(current);\n\n\t\t// If you manage to get more than 100 million of ids, you'll\n\t\t// start getting ids longer than 8 characters.\n\t\tif (current < limit)\n\t\t{\n\t\t\tid = (\"00000000\" + id).substring(id.length());\n\t\t}\n\t\treturn id;\n\t}", "private synchronized static String getNextNumber() {\n String toReturn;\n String number = String.valueOf(Math.round(Math.random() * 89999) + 10000);\n if(meetings.containsKey(number)) {\n toReturn = getNextNumber();\n } else {\n toReturn = number;\n }\n return toReturn;\n }", "@Override\n public java.lang.String generateRackID() {\n String randomString = \"\";\n String rackId = \"\";\n for (int i = 0; i < 2; i++) {\n char[] arr = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n int select = new Random().nextInt(arr.length);\n randomString += arr[select];\n }\n\n rackId = randomString.toUpperCase() + \".\" + rackCounter + \".\" + copyrightYear;\n rackCounter++;\n return rackId;\n }", "public static String uniqueId() {\r\n return UUID.randomUUID().toString();\r\n }", "private static int generateCircleId(){\n return snextCircleId.incrementAndGet();\n\n }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "private static synchronized String getNextID() {\r\n\t\tlastID = lastID.add(BigInteger.valueOf(1));\r\n\t\t\r\n\t\treturn lastID.toString();\r\n\t}", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "@Override\n\tpublic void createccuntNum() {\n\t\t\n\t}", "private SessionTicket createUniqueSessionTicket() {\n String ticket = UUID.randomUUID().toString();\n SessionTicket sessionTicket = new SessionTicket();\n sessionTicket.setTicket(ticket);\n return sessionTicket;\n }", "public static int generateViewId() {\n\t\tdo {\n\t\t\tfinal int result = sNextGeneratedId.get();\n\t\t\t// aapt-generated IDs have the high byte nonzero; clamp to the range under that.\n\t\t\tint newValue = result + 1;\n\t\t\tif (newValue > 0x00FFFFFF){\n\t\t\t\tnewValue = 1; // Roll over to 1, not 0.\n\t\t\t}\n\t\t\tif (sNextGeneratedId.compareAndSet(result, newValue)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}while(true);\n\t}", "private String generateId(String input) {\n\t\treturn StringUtil.hashSHA256(input);\n\t}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }" ]
[ "0.7287717", "0.7143473", "0.7120055", "0.7080532", "0.69538", "0.68606406", "0.6794795", "0.6794795", "0.6731797", "0.67278856", "0.6716815", "0.6684497", "0.66665053", "0.65617746", "0.6558683", "0.6557767", "0.65516394", "0.65327346", "0.65190583", "0.65113884", "0.65075463", "0.6499167", "0.6497955", "0.6478067", "0.64496547", "0.64386797", "0.6430561", "0.6419402", "0.64124304", "0.64115477", "0.64115477", "0.64115477", "0.6403773", "0.64013594", "0.64001685", "0.6393191", "0.6389517", "0.63729113", "0.63600725", "0.63569134", "0.63548994", "0.63453615", "0.63350546", "0.6327994", "0.63254505", "0.6322814", "0.6321302", "0.630321", "0.630079", "0.6298961", "0.6289477", "0.6289247", "0.6283011", "0.6279655", "0.6265752", "0.6265715", "0.62618023", "0.6256467", "0.6256281", "0.6248693", "0.62472206", "0.6237657", "0.62261", "0.621675", "0.6211794", "0.62089616", "0.62053466", "0.6205189", "0.62050277", "0.6202047", "0.61987156", "0.619847", "0.61916566", "0.6184036", "0.61750174", "0.6167231", "0.6165854", "0.61561495", "0.6133566", "0.61269397", "0.61229426", "0.61193085", "0.6114731", "0.61093897", "0.610699", "0.6103934", "0.6103643", "0.6101728", "0.6099653", "0.6095013", "0.6093001", "0.60893977", "0.6076037", "0.6072645", "0.6067366", "0.6059654", "0.6057098", "0.60549176", "0.6052625", "0.6047567", "0.6046662" ]
0.0
-1
The constructor for this takes a file name. It is either an absolute path or a path relative to the beginning of this project.
public BoardBuilder(File fileName) throws Exception { JAXBContext contextObj = JAXBContext.newInstance(BoardInitializer.class); Unmarshaller mub = contextObj.createUnmarshaller(); bi = (BoardInitializer) mub.unmarshal(new FileReader(fileName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Project(File file)\n {\n super(file);\n this.open();\n }", "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "public FileName(File fn) {\n fileType = LOCAL;\n setFile(fn.getPath()); // in File, \"path\" is the whole name, not just the directory path\n }", "public Track(String fileName) {\n \t\tsoundFile = new File(fileName);\n \t\tSystem.out.println(\"absolute path: \" + soundFile.getAbsolutePath());\n \t}", "public Picture(String fileName)\n {\n // let the parent class handle this fileName\n super(fileName);\n }", "public Picture(String fileName)\n {\n // let the parent class handle this fileName\n super(fileName);\n }", "public Project(String name) {\r\n\t\tsuper(name);\r\n\t\tthis.opened = true;\r\n\t\tthis.projectFile = null;\r\n\t}", "public ObjReader(String filename){\n file = filename;\n }", "public FileControl( String fileName ) {\n this.fileName = fileName;\n }", "public Translator(String fileName) {\n this.fileName = PATH + fileName;\n }", "public FileName(String fn) {\n setFile(fn);\n }", "protected AbstractSource(final String file) {\n this.sourceFile = file;\n }", "public ClassParser(final String file_name) {\n this.file_name = file_name;\n fileOwned = true;\n }", "public InputFile(String filePath) {\n this.filePath = filePath;\n }", "public HTMLFile (String inFileName) {\n inFile = new File(inFileName);\n inName = inFileName;\n inURL = null;\n commonConstruction();\n }", "public static FileSource fromPath(String filename) {\n return fromPath(filename, new SmarterMap());\n }", "public BiomartAccess(String fname) \n {\n m_file = new File(fname);\n }", "public Photo(String fileName){\n\tthis.fileName=fileName;\n}", "public XMLReader()\r\n {\r\n \r\n String filePathHead = \"\";\r\n\r\n Path inputPath = Paths.get(\"src\\\\dataFiles\");\r\n\r\n try\r\n {\r\n filePathHead = inputPath.toRealPath().toString();\r\n System.out.println(\"PATH: \" + inputPath.toRealPath().toString());\r\n }\r\n catch (NoSuchFileException x)\r\n {\r\n System.err.format(\"%s: no such\" + \" file or directory%n\", filePathHead);\r\n // Logic for case when file doesn't exist.\r\n }\r\n catch (IOException x)\r\n {\r\n System.err.format(\"%s%n\", x);\r\n // Logic for other sort of file error.\r\n }\r\n }", "public FileReceiver(String filename) {\r\n _fileName = filename;\r\n }", "public FileLocation(File file) {\n this(file, -1, -1);\n }", "public FileRecord(String name)\r\n {\r\n this.name = name;\r\n }", "public Photo(String filename) {\n\t\tmFilename = filename;\n\t}", "public Parser(String fileHandle) {\n\t\tmainFile = fileHandle;\n\t}", "public ContactList(String inFileName)\n {\n filename = inFileName;\n }", "public WorkDataFile(String filename)\n\t{\n\t\tsetFileName(filename);\n\t}", "public Manager(String filePath){\n\t\tthis.filePath = filePath;\n\t}", "public FileProcessor(String fileName){\n\n\t\ttry{\n\t\t\tfileInput = new FileReader(fileName);\n bufferedInput = new BufferedReader(fileInput);\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.err.println(\"Exception:\\\"\" + fileName + \"\\\" was not found. Please enter Correct filename.\");\n\t\t\tSystem.err.println(\"Suggestion: Check for file extension or any Spelling mistake in File Name\\n\");\n\t\t\tSystem.exit(1); \n \t}\n\t}", "public ChameleonDocument(ChameleonProjectNature projectNature, IFile file, IPath path){\r\n \t\tsuper();\r\n \r\n \t\tsetCompilationUnit(new Document());\r\n \t\tif(projectNature==null){\r\n \t\t\tChameleonEditorPlugin.showMessageBox(\"Illegal project\", \"This document is part of an illegal project. \\nCheck if the project is a Chameleon Project.\", SWT.ICON_ERROR);\r\n \t\t}\r\n \r\n \t\t_parseErrors = new ArrayList<ParseException>();\r\n \r\n \t\t_projectNature = projectNature;\r\n \t\tinitialize();\r\n \r\n \t\t_path=path;\r\n \r\n \t\tif (file!=null){ \t\t\r\n \t\t\ttry {\r\n \t\t\t\t_relativePathName = path.removeFirstSegments(1).toString();\r\n \t\t\t\tparseFile(file);\r\n \t\t\t} catch (CoreException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t} catch (IOException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t} else{\r\n \t\t\tIPath projPath = path.removeFirstSegments(1);\t \r\n \t\t\tfile = projectNature.getProject().getFile(projPath);\r\n \t\t\t_relativePathName = projPath.toString();\r\n \t\t}\r\n \t\t_name = file.getName();\r\n \t\t_file = file;\r\n \t}", "public Config(String filename) {\n this.filename = filename;\n }", "public Sim_reportfile (String filename) {\n this.filename = filename;\n }", "public SourceFile(File file) throws Exception {\r\n\t\t// this.file = file;\r\n\t\tthis.zipFile = new ZipFile(file, \"UTF-8\");\r\n\t}", "public FileLogger(String fileName){\r\n\t\tthis(fileName, false);\r\n\t}", "myFile(String Name){\n\t this.FileName = Name + \".txt\"\t;\n\t System.out.println(FileName);\n\t try {\n\t\treadFile() ;\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\tSystem.out.println(\"No,This File Please run again\"); \n\t}\n\t}", "public File() {\n }", "public Builder fromFilePath(String filePath) {\n if (StringUtil.isNullOrEmpty(filePath)) {\n throw new IllegalArgumentException(\"Illegal filePath: \" + filePath);\n }\n this.sourceFilePath = filePath;\n return this;\n }", "public HTMLFile (File inFile) {\n this.inFile = inFile;\n inName = inFile.toString();\n inURL = null;\n commonConstruction();\n }", "public SYEParser(InputStream input, String name) throws FileNotFoundException {\n super(input);\n this.filename = name;\n }", "public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }", "public Parser( File inFile ) throws FileNotFoundException\r\n {\r\n if( inFile.isDirectory() )\r\n throw new FileNotFoundException( \"Excepted a file but found a directory\" );\r\n \r\n feed = new Scanner( inFile );\r\n lineNum = 1;\r\n }", "public AncFile() {\n }", "public InputReader(File file){\n try {\n inputStream = new Scanner(file);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n instantiate();\n assert(invariant());\n }", "public InvalidFileNameException(String pName, String pMessage)\n/* */ {\n/* 49 */ super(pMessage);\n/* 50 */ this.name = pName;\n/* */ }", "public Decoder(String filename) throws FileNotFoundException { \n this.i = 0;\n this.position = 0;\n this.px = 0;\n this.py = 0;\n this.alkuposition = 0;\n this.j = 0;\n this.filename = filename;\n }", "public Editor(String file) {\n\t\tinit();\n\t\tloadFile(file);\n\t}", "public Project(String name){\n\t\tthis.pName = name;\n\t}", "public DbRecord( String szFileName )\n throws FileNotFoundException, NullPointerException, AppException\n {\n Load( szFileName );\n }", "public IniFile(String name) {\r\n this.filename = name;\r\n isavailable = parse(name);\r\n }", "public GRAB(String filename) {\n this.filename = filename;\n }", "File(String fileName)\n {\n this.fileNameToFilterBy = fileName;\n }", "public Parser(File file) {\n \t\t\ttry {\n \t\t\t\tload(new FileInputStream(file));\n \t\t\t} catch (Exception e) {\n \t\t\t\t// continue ... actual parsing will report errors\n \t\t\t}\n \t\t}", "public static FileSource fromPath(String filename, SmarterMap options) {\n if (StringUtils.isBlank(filename))\n throw new FwissrRuntimeException(\"Unexpected file source path: \" + filename);\n return new FileSource(filename, options);\n }", "public ExternalDocument (String format, String fileName) {\n\t\tthis.format = format;\n\t\tthis.directory = null;\n\t\tthis.fileName = fileName;\n\t\tthis.open = false;\n\t}", "public Game(File inFile) {\n\t\tsuper();\n\t\tgameModel = new GameModel(inFile);\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}", "public DocReader(File f)\n\t{\n\t\tthis.inputFile = f;\n\t}", "public SqlFileParser(String filename) {\n try {\n this.reader = new BufferedReader(new FileReader(filename));\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"file not found \" + filename);\n }\n }", "private void init(File file) throws VlException\n {\n // under windows: will return windows path\n String path = file.getAbsolutePath();\n\n //\n // Forward Flip backslashes !\n // Do this ONLY for the local filesystem !\n //\n\n if (File.separatorChar != VRL.SEP_CHAR)\n path = VRL.uripath(path, true, File.separatorChar);\n\n // under widows: will convert windows path to URI path !\n setLocation(new VRL(VRS.FILE_SCHEME, null, path));\n this.path = getPath(); // use URI path !\n\n _file = file;\n }", "public Template(String name) throws IOException, TemplateException, JDOMException {\n this(Assets.loadTemplate(name));\n }", "public FilePersistence(String file) {\n this.file = file;\n }", "public Project(String name) {\n this.name = name;\n }", "public JsnParser(String filename) {\n this.filename = filename;\n }", "private Song(String path) {\n\t\tthis.filepath = path + \"\";\n\t\tAudioFileFormat baseFileFormat;\n\t\tClassLoader classloader = Thread.currentThread().getContextClassLoader();\n\t\tInputStream is = classloader.getResourceAsStream(path);\n\t\ttry {\n\t\t\tbaseFileFormat = new MpegAudioFileReader().getAudioFileFormat(is);\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tMap properties = baseFileFormat.properties();\n\t\t\tlong duration = (long) properties.get(\"duration\");\n\t\t\tthis.length = (int) duration / 1000;\n\t\t\tthis.author = (String) properties.get(\"author\");\n\t\t\tthis.name = (String) properties.get(\"title\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Couldn't read the detailed informations for song:\" + path);\n\t\t}\n\t\tFile tempfile = new File(path);\n\t\tthis.displayname = tempfile.getName();\n\t\tif (this.author != null && !this.author.equals(\"\") && this.name != null && !this.name.equals(\"\"))\n\t\t\tthis.displayname = this.author + \" - \" + this.name;\n\t}", "public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}", "public FastaReader(String fileName) throws IOException{\n\t\tthis(new FileInputStream(fileName));\n\t}", "public Deck(final String fileName) {\r\n\t\tthis(fileName, true);\r\n\t}", "public Printer(File file) {\n this.file = file;\n log = LogManager.getLogManager().getLogger(Printer.class.getName());\n // initialization of the template path\n base = System.getProperty(\"user.dir\") + File.separator + \"config\"\n + File.separator + \"template\" + File.separator;\n\n // </snip>\n\n // System.out.println(\"template printing\");\n\n start();\n }", "public OnDemandInputStream(File file) {\n super();\n\n this.file = file;\n }", "public TestNGParser(String fileName) {\n super(fileName);\n m_fileName = fileName;\n m_inputStream = null;\n m_postProcessor = null;\n }", "public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}", "public MyInputStream(String fileName)\n {\n try\n {\n in = new BufferedReader\n (new FileReader(fileName));\n }\n catch (FileNotFoundException e)\n {throw new MyInputException(e.getMessage());}\n }", "public MainframeFile (String name, byte[] buffer)\n // ---------------------------------------------------------------------------------//\n {\n this.name = name;\n this.buffer = buffer;\n }", "public Path(String path) {\n this(null, path);\n }", "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "public Import() {\n this(null, new Name(), null, null, false, false);\n }", "public IconFile(String username, File file) {\n\t\tsuper(username, file, null);\n\t}", "public FilePartReader() {\n filePath = \"/home/cc/Desktop/OopModule/testing/filepartreader-testing-with-junit-grzechu31/text.txt\";\n fromLine = 1;\n toLine = 10;\n }", "public CommandParser(String filename) {\r\n try {\r\n sc = new Scanner(new File(filename));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n System.out.println(\"File not found.\");\r\n }\r\n }", "public Interpreter(String fileName) throws FileNotFoundException {\n super(fileName);\n instructionsStack.push(new ArrayList<>());\n }", "public GeppettoRecordingCreator(String name)\n\t{\n\t\t_fileName = name;\n\t}", "MessageFile(final String name) {\n this.name = name;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n fileName_ = value;\n onChanged();\n return this;\n }", "public FileNotFoundException(String message) {\n super(message);\n }", "public EditFile() {\r\n\t\tsuper();\r\n\t}", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n fileName_ = value;\n onChanged();\n return this;\n }", "public FileCreator() {\r\n initComponents();\r\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "public FileInfo(File file) {\n this.file = file;\n }", "public void load (String argFileName) throws IOException;", "public CMD(String mFilename)\n {\n //Set the line index to -1, if the file cannot be opened\n this.LineIndex = -1;\n this.FileLines = new LinkedList<>();\n this.Filename = mFilename;\n }", "public ArchillectSource() {\n super(SOURCE_NAME);\n }", "public FileUtility()\n {\n }", "public PdfDocument(File path) {\n this(path.toPath());\n }", "protected EclipseFile(IFile file) {\n \t\tsuper(file);\n \t}", "public SudokuSolver(String filename) {\n this.board = new SudokuBoard(filename);\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }", "public InventarioFile(){\r\n \r\n }" ]
[ "0.72752005", "0.686304", "0.6668597", "0.66041106", "0.64896053", "0.64896053", "0.64686763", "0.6456279", "0.64541787", "0.643572", "0.63637453", "0.6308426", "0.6289324", "0.6282116", "0.62814736", "0.6264476", "0.62559485", "0.6176077", "0.6170106", "0.616251", "0.61558485", "0.6105301", "0.60941625", "0.6087725", "0.608747", "0.60777247", "0.60588753", "0.6058584", "0.605062", "0.6039769", "0.6021082", "0.6010009", "0.6007632", "0.6001194", "0.5993488", "0.59791124", "0.5960263", "0.5873022", "0.5860775", "0.5854567", "0.58331525", "0.58277154", "0.5817539", "0.5814826", "0.58144945", "0.58008516", "0.579138", "0.5783915", "0.57760686", "0.5767953", "0.57472706", "0.57436556", "0.5743598", "0.57412785", "0.57339233", "0.5730543", "0.57273227", "0.5711117", "0.57033384", "0.5700713", "0.56899244", "0.5686266", "0.5680493", "0.5679133", "0.56745964", "0.56729835", "0.5670561", "0.5666606", "0.56660736", "0.5664195", "0.56631213", "0.56623244", "0.5656055", "0.5655873", "0.5642962", "0.56336737", "0.56307715", "0.56257373", "0.56215996", "0.5621521", "0.5619004", "0.5603049", "0.55981845", "0.5587106", "0.55729824", "0.5568491", "0.55627584", "0.5562113", "0.5556535", "0.55492985", "0.5543045", "0.5542881", "0.55347633", "0.55340177", "0.55325836", "0.55325836", "0.55325836", "0.55325836", "0.55325836", "0.55325836", "0.55210656" ]
0.0
-1
Makes the board based on the config provided by the board initializer
public Board<?> makeBoard() throws EscapeException { switch (bi.getCoordinateId()) { case HEX: return makeHexBoard(); case ORTHOSQUARE: return makeOrthoBoard(); case SQUARE: return makeSquareBoard(); default: throw new EscapeException("Board does not exist!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void boardSetUp(){\n\t}", "MainBoard createMainBoard();", "public BoardSetup() {\n\t\tthis.theBoard = Board.getInstance();\n\t}", "private void setUpCorrect() {\n List<Tile> tiles = makeTiles();\n Board board = new Board(tiles, 4, 4);\n boardManager = new BoardManager(board);\n }", "public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }", "private void initializeBoard() {\n\t\t\n\t}", "private void buildMainBoard(MainBoard mainBoardConfiguration){\n this.mainBoard = new MainBoard(mainBoardConfiguration);\n }", "private void initBoard() {\n initCommands();\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension((int) (W * Application.scale), (int) (H * Application.scale)));\n\n commandClasses.forEach((cmdstr) -> {\n try {\n Object obj = Class.forName(cmdstr).getDeclaredConstructor().newInstance();\n Command cmd = (Command) obj;\n connectCommand(cmd);\n System.out.println(\"Loaded \" + cmdstr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n });\n\n Particle.heatmap.addColor(0, Color.GREEN);\n Particle.heatmap.addColor(50, Color.YELLOW);\n Particle.heatmap.addColor(100, Color.RED);\n\n Particle.slopemap.addColor(-5, Color.RED);\n Particle.slopemap.addColor(0, Color.WHITE);\n Particle.slopemap.addColor(5, Color.GREEN);\n\n setFocusable(true);\n }", "public abstract void createBoard();", "private void generateBoard(){\n\t}", "RasPiBoard createRasPiBoard();", "public static void boardInit() {\n ArrayList<Piece> white_piece_list = new ArrayList<>();\n ArrayList<Piece> black_piece_list = new ArrayList<>();\n ArrayList<Piece> piece_array = PieceFactory.createPieces();\n for(Piece p : piece_array)\n {\n if(p.getColor())\n {\n black_piece_list.add(p);\n }\n else\n {\n white_piece_list.add(p);\n }\n }\n white_player.setpieceList(white_piece_list);\n white_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER);\n black_player.setpieceList(black_piece_list);\n black_player.setKingXYCoords(PieceFactory.KING_INITIAL_X, PieceFactory.INITAL_Y_COORD_WHITE_PLAYER_OTHER + PieceFactory.DIST_BETWEEN_PIECES);\n }", "private void setupBoard() {\n setBackground(Color.BLACK);\n setPreferredSize(new Dimension(myWidth, myHeight));\n myBoard.addObserver(this);\n enableStartupKeys();\n }", "Board() {\r\n init();\r\n }", "public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }", "void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }", "void prepareBoardBeforePlacement( Board board );", "public Board(String boardName) {\n\n /*\n * Created according to the specs online.\n */\n if (boardName.equals(\"default\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 1.25));\n Gadget circle = new CircleBumper(1, 10, new Gadget[] {});\n Gadget triangle = new TriangleBumper(12, 15, 180, new Gadget[] {});\n Gadget square1 = new SquareBumper(0, 17, new Gadget[] {});\n Gadget square2 = new SquareBumper(1, 17, new Gadget[] {});\n Gadget square3 = new SquareBumper(2, 17, new Gadget[] {});\n Gadget circle1 = new CircleBumper(7, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(8, 18, new Gadget[] {});\n Gadget circle3 = new CircleBumper(9, 18, new Gadget[] {});\n this.balls = new Ball[] { ball1 };\n this.gadgets = new Gadget[] { circle, triangle, square1, square2,\n square3, circle1, circle2, circle3, top, bottom, left,\n right };\n\n } else if (boardName.equals(\"absorber\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 15.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 5.25));\n Gadget absorber = new Absorber(0, 18, 20, 2, new Gadget[] {});\n Gadget triangle = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(1, 10, new Gadget[] { absorber });\n Gadget circle2 = new CircleBumper(2, 10, new Gadget[] { absorber });\n Gadget circle3 = new CircleBumper(3, 10, new Gadget[] { absorber });\n Gadget circle4 = new CircleBumper(4, 10, new Gadget[] { absorber });\n Gadget circle5 = new CircleBumper(5, 10, new Gadget[] { absorber });\n this.balls = new Ball[] { ball1, ball2, ball3 };\n this.gadgets = new Gadget[] { absorber, triangle, circle1, circle2,\n circle3, circle4, circle5, top, left, right, bottom };\n }\n\n else if (boardName.equals(\"flippers\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(.25,\n 3.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(5.25,\n 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 3.25));\n Ball ball4 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 15.25, 3.25));\n Ball ball5 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Gadget left1 = new LeftFlipper(0, 8, 90, new Gadget[] {});\n Gadget left2 = new LeftFlipper(4, 10, 90, new Gadget[] {});\n Gadget left3 = new LeftFlipper(9, 8, 90, new Gadget[] {});\n Gadget left4 = new LeftFlipper(15, 8, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(5, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(7, 13, new Gadget[] {});\n Gadget circle3 = new CircleBumper(0, 5, new Gadget[] { left1 });\n Gadget circle4 = new CircleBumper(5, 5, new Gadget[] {});\n Gadget circle5 = new CircleBumper(10, 5, new Gadget[] { left3 });\n Gadget circle6 = new CircleBumper(15, 5, new Gadget[] { left4 });\n Gadget triangle1 = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget triangle2 = new TriangleBumper(10, 18, 180, new Gadget[] {});\n Gadget right1 = new RightFlipper(2, 15, 0, new Gadget[] {});\n Gadget right2 = new RightFlipper(17, 15, 0, new Gadget[] {});\n Gadget absorber = new Absorber(0, 19, 20, 1, new Gadget[] { right1,\n right2, new Absorber(0, 19, 20, 1, new Gadget[] {}) });\n this.balls = new Ball[] { ball1, ball2, ball3, ball4, ball5 };\n this.gadgets = new Gadget[] { left1, left2, left3, left4, circle1,\n circle2, circle3, circle4, circle5, circle6, triangle1,\n triangle2, right1, right2, absorber, top, bottom, left,\n right };\n } else {\n this.gadgets = new Gadget[] {};\n this.balls = new Ball[] {};\n }\n\n checkRep();\n }", "public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}", "Board createLayout();", "public void newBoard(LiteBoard board) {\n }", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }", "private void getBoard() {\n gameBoard = BoardFactory.makeBoard();\n }", "public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }", "public void initChessBoardAutomaticly() {\r\n\t\tthis.initPieces();\r\n\t\tthis.clearBoard();\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tb.setBorderPainted(false);\r\n\t\t}\r\n\t\tfor (int i = 0, w = 0, b = 0, s = 0; i < 8 * 8; i++) {\r\n\r\n\t\t\t// Assign1, Disable board clickable\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setEnabled(false);\r\n\r\n\t\t\t// Assign1, Put black pieces and record the position\r\n\t\t\tif (i % 2 != 1 && i >= 8 && i < 16) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t} else if (i % 2 != 0 && (i < 8 || (i > 16 && i < 24))) {\r\n\t\t\t\tChessPiece blackPiece = blackPieces[b];\r\n\t\t\t\tblackPiece.position = order[i];\r\n\r\n\t\t\t\tpiece.put(order[i], blackPiece);\r\n\t\t\t\tbody.add(blackPiece);\r\n\t\t\t\tb++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Assign1, Put white pieces and record the position\r\n\t\t\telse if (i % 2 != 0 && i > 48 && i < 56) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t} else if (i % 2 != 1\r\n\t\t\t\t\t&& ((i >= 40 && i < 48) || (i >= 56 && i < 64))) {\r\n\t\t\t\tChessPiece whitePiece = whitePieces[w];\r\n\t\t\t\twhitePiece.position = order[i];\r\n\t\t\t\t\r\n\t\t\t\tpiece.put(order[i], whitePiece);\r\n\t\t\t\tbody.add(whitePiece);\r\n\t\t\t\tw++;\r\n\t\t\t}\r\n\r\n\t\t\t// Assign1, Put empty pieces on the board\r\n\t\t\t// Actually, empty pieces will not display on the board, they are\r\n\t\t\t// not existing\r\n\t\t\t// to chess players, just for calculation\r\n\t\t\telse {\r\n\t\t\t\tChessPiece spacePiece = spacePieces[s];\r\n\t\t\t\tspacePiece.position = order[i];\r\n\t\t\t\tbody.add(spacePiece);\r\n\t\t\t\tpiece.put(order[i], spacePiece);\r\n\t\t\t\tspacePiece.setVisible(false);\r\n\t\t\t\ts++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tt.setText(\"Chess Board has been initialized automatically\");\r\n\t\tthis.startGame();\r\n\t}", "Board() {\n this.cardFactory = new CardFactory(this);\n }", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "@Before\r\n public void setUpBoard(){\r\n board3 = new Board(makeTiles(3*3), boardManager3, 3);\r\n board4 = new Board(makeTiles(4*4), boardManager4, 4);\r\n board5 = new Board(makeTiles(5*5), boardManager5, 5);\r\n boardManager3.setBoard(board3);\r\n boardManager4.setBoard(board4);\r\n boardManager5.setBoard(board5);\r\n board3.setSlidingScoreBoard(slidingScoreBoard3);\r\n board4.setSlidingScoreBoard(slidingScoreBoard4);\r\n board5.setSlidingScoreBoard(slidingScoreBoard5);\r\n }", "public static void initBoard()\r\n\t{\n\t\tfor ( int r=0; r<3; r++ )\r\n\t\t\tfor ( int c=0; c<3; c++ )\r\n\t\t\t\tboard[r][c] = ' ';\r\n\t}", "public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}", "public BoardBuilder initializeBlocksOnBoard(){\n\t\t// Sets color of alternate Blocks of Board as BLACK & WHITE\n\t\tboardInitialized = true;\n\t\treturn this;\n\t}", "public Board createBoard(Square[][] grid) {Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\");assert grid != null; Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1053\"); Board board = new Board(grid); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1079\"); int width = board.getWidth(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1115\"); int height = board.getHeight(); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1148\"); for (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tSquare square = grid[x][y];\n\t\t\t\tfor (Direction dir : Direction.values()) {\n\t\t\t\t\tint dirX = (width + x + dir.getDeltaX()) % width;\n\t\t\t\t\tint dirY = (height + y + dir.getDeltaY()) % height;\n\t\t\t\t\tSquare neighbour = grid[dirX][dirY];\n\t\t\t\t\tsquare.link(neighbour, dir);\n\t\t\t\t}\n\t\t\t}\n\t\t} Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1183\"); Collect.Hit(\"BoardFactory.java\",\"createBoard(Square[][] grid)\", \"1552\");return board ; }", "private void testBoardCreation() {\n for (int r = 0; r < Constants.BOARD_GRID_ROWS; r++) {\n for (int c = 0; c < Constants.BOARD_GRID_COLUMNS; c++) {\n Vector2 tokenLocation = this.mBoardLevel.getCenterOfLocation(r, c);\n Image tokenImage = new Image(this.mResources.getToken(PlayerType.RED));\n tokenImage.setPosition(tokenLocation.x, tokenLocation.y);\n this.mStage.addActor(tokenImage);\n }\n }\n }", "public void initChessBoardManually() {\r\n\t\tstatus.setStatusEdit();\r\n\t\tclearBoard();\r\n\t\tthis.setBoardEnabled(true);\r\n\t\tfor (int i=0; i<8*8; i++) {\r\n\t\t\tChessBoardBlock block = board.get(order[i]);\r\n\t\t\tblock.setBorderPainted(false);\r\n\t\t}\r\n\t\tswitcher.setEnabled(true);\r\n\t\tconfirm.setEnabled(true);\r\n\t\tt.setText(\"<html>Please choose position to put the pieces.<br>Right click to set/cancel King flag</html>\");\r\n\t}", "private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }", "private void boardInit() {\n for(int i = 0; i < this.boardHeight; i++)\n this.board[i][0] = ' ';\n for(int i = 0; i < this.boardWidth; i++)\n this.board[0][i] = ' ';\n \n for(int i = 1; i < this.boardHeight; i++) {\n for(int j = 1; j < this.boardWidth; j++) {\n this.board[i][j] = '*';\n }\n }\n }", "public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }", "private final void setupNewGame() throws IOException {\n\t\tmessage.setText(\"Make your move!\");\n\n\t\twhiteTeam = PokemonDao.getRandomPokemons(TEAM_SIZE);\n\t\tblackTeam = PokemonDao.getRandomPokemons(TEAM_SIZE);\n\n\t\tcreateImages();\n\n\t\tint middleSquare = BOARD_SIZE/2;\n\n\t\tint i=0;\n\t\tfor(int col = middleSquare - whiteTeam.size()/2; col< middleSquare+ whiteTeam.size()/2;col++){\n\t\t\tJButton jButton = chessBoardSquares[col][0];\n\t\t\tImageIcon icon = new ImageIcon(whiteImages.get(i++));\n\t\t\tjButton.setIcon(icon);\n\t\t}\n\n\t\tint j=0;\n\t\tfor(int col = middleSquare - whiteTeam.size()/2; col< middleSquare+ whiteTeam.size()/2;col++){\n\t\t\tJButton jButton = chessBoardSquares[col][BOARD_SIZE-1];\n\t\t\tImageIcon icon = new ImageIcon(blackImages.get(j++));\n\t\t\tjButton.setIcon(icon);\n\t\t}\n\n\t\tframe.pack();\n\t\t//\t\tfor (int ii = 0; ii < BOARD_SIZE; ii++) {\n\t\t//\t\t\tfor (int jj = 0; jj < BOARD_SIZE; jj++) {\n\t\t//\t\t\t\tchessBoardSquares[ii][jj].setIcon(new ImageIcon(whiteImages.get(0)));\n\t\t//\t\t\t}\n\t\t//\t\t}\n\t\t//\t\t// set up the black pieces\n\t\t//\t\tfor (int ii = 0; ii < STARTING_ROW.length; ii++) {\n\t\t//\t\t\tchessBoardSquares[ii][0].setIcon(new ImageIcon(chessPieceImages[BLACK][STARTING_ROW[ii]]));\n\t\t//\t\t}\n\t\t//\t\tfor (int ii = 0; ii < STARTING_ROW.length; ii++) {\n\t\t//\t\t\tchessBoardSquares[ii][1].setIcon(new ImageIcon(chessPieceImages[BLACK][PAWN]));\n\t\t//\t\t}\n\t\t//\t\t// set up the white pieces\n\t\t//\t\tfor (int ii = 0; ii < STARTING_ROW.length; ii++) {\n\t\t//\t\t\tchessBoardSquares[ii][6].setIcon(new ImageIcon(chessPieceImages[WHITE][PAWN]));\n\t\t//\t\t}\n\t\t//\t\tfor (int ii = 0; ii < STARTING_ROW.length; ii++) {\n\t\t//\t\t\tchessBoardSquares[ii][7].setIcon(new ImageIcon(chessPieceImages[WHITE][STARTING_ROW[ii]]));\n\t\t//\t\t}\n\t}", "public BoardTest() {\n initComponents();\n \n createSudoku();\n //createBoggle();\n }", "public void setBoard() {\n bestPieceToMove = null;\n bestPieceFound = false;\n bestMoveDirectionX = 0;\n bestMoveDirectionY = 0;\n bestMoveFound = false;\n killAvailable = false;\n lightCounter = 12;\n darkCounter = 12;\n for (int y = 0; y < boardSize; y++) {\n for (int x = 0; x < boardSize; x++) {\n board[y][x] = new Field(x, y);\n if (y < 3 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.DARK, PieceType.MEN));\n } else if (y > 4 && board[y][x].getPlaceable()) {\n board[y][x].setPiece(new Piece(PieceColor.LIGHT, PieceType.MEN));\n }\n }\n }\n }", "private void setupChessBoard() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "@Override\r\n\tpublic void createBoardWithFile(Board board) {\n\t\t\r\n\t}", "public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }", "@Override\r\n\tpublic void init() \r\n\t{\r\n\t\tthis.board = new GameBoard();\r\n\t}", "public Board() {\n \tSettingsManager.readSettings();\n this.keyStateManager = KeysStateManager.getInstance();\n addMouseListener(MouseInputListener.getInstance());\n FontManager.initFont(this.getClass());\n initApp();\n initSounds();\n initSuppliers();\n initGame();\n }", "void generateBoard(){\r\n rearrangeSolution();\r\n makeInitial();\r\n }", "void setBoard(Board board);", "public void run() {\n GameBoard board = new GameBoard(nrows, ncols);\n\n\n }", "Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}", "private void initialSetup() {\n\t\tplaceNewPiece('a', 1, new Rook(board, Color.WHITE));\n placeNewPiece('b', 1, new Knight(board, Color.WHITE));\n placeNewPiece('c', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('d', 1, new Queen(board, Color.WHITE));\n placeNewPiece('e', 1, new King(board, Color.WHITE, this)); // 'this' refere-se a esta jogada\n placeNewPiece('f', 1, new Bishop(board, Color.WHITE));\n placeNewPiece('g', 1, new Knight(board, Color.WHITE));\n placeNewPiece('h', 1, new Rook(board, Color.WHITE));\n placeNewPiece('a', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('b', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('c', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('d', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('e', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('f', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('g', 2, new Pawn(board, Color.WHITE, this));\n placeNewPiece('h', 2, new Pawn(board, Color.WHITE, this));\n\n placeNewPiece('a', 8, new Rook(board, Color.BLACK));\n placeNewPiece('b', 8, new Knight(board, Color.BLACK));\n placeNewPiece('c', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('d', 8, new Queen(board, Color.BLACK));\n placeNewPiece('e', 8, new King(board, Color.BLACK, this));\n placeNewPiece('f', 8, new Bishop(board, Color.BLACK));\n placeNewPiece('g', 8, new Knight(board, Color.BLACK));\n placeNewPiece('h', 8, new Rook(board, Color.BLACK));\n placeNewPiece('a', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('b', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('c', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('d', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('e', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('f', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('g', 7, new Pawn(board, Color.BLACK, this));\n placeNewPiece('h', 7, new Pawn(board, Color.BLACK, this));\n\t}", "public void initializeDebugBoard() {\n\t\tboolean hasNotMoved = false;\n\t\tboolean hasMoved = true;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set empty rows\n\t\tfor (int row = 0; row < 8; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\tboard[5][4] = new Piece('k', white, hasMoved, 5, 4, PieceArray.E_kingId);\n//\t\tboard[1][4] = new Piece(\"rook\", white, hasMoved, 1, 4);\n\t\tboard[2][2] = new Piece('q', black, hasMoved, 2, 2, PieceArray.A_rookId);\n//\t\tboard[3][2] = new Piece('q', black, hasMoved, 3, 2, PieceArray.H_rookId);\n\t\t\n\n\t\tboard[0][0] = new Piece('k', black, hasMoved, 0, 0, PieceArray.E_kingId);\n//\t\tboard[7][7] = new Piece('r', black, hasNotMoved, 7, 7, PieceArray.A_rookId);\n//\t\tboard[6][7] = new Piece('p', black, hasNotMoved, 6, 7, PieceArray.A_pawnId);\n//\t\tboard[6][6] = new Piece('p', black, hasNotMoved, 6, 6, PieceArray.B_pawnId);\n//\t\tboard[6][5] = new Piece('p', black, hasNotMoved, 6, 5, PieceArray.C_pawnId);\n//\t\tboard[6][4] = new Piece('p', black, hasNotMoved, 6, 4, PieceArray.D_pawnId);\n\t\n//\t\tboard[6][6] = new Piece(\"pawn\", black, hasMoved, 6, 6);\n//\t\tboard[6][7] = new Piece(\"pawn\", black, hasMoved, 6, 7);\n//\t\tboard[6][4] = new Piece(\"pawn\", black, hasMoved, 6, 4);\n//\t\t\t\n//\t\t\n//\t\tboard[4][4] = new Piece(\"pawn\", black, hasMoved, 4,4);\n//\t\tboard[3][5] = new Piece(\"rook\", white,hasMoved,3,5);\n//\t\tboard[1][7] = new Piece(\"pawn\",black,hasMoved,1,7);\n\n\t}", "public void setBeginningBoard() {\n clearBooleanBoard();\n\n figBoard[0][0] = new Rook(\"white\", 00, white[0]);\n figBoard[0][1] = new Knight(\"white\", 01, white[1]);\n figBoard[0][2] = new Bishop(\"white\", 02, white[2]);\n figBoard[0][4] = new King(\"white\", 04, white[3]);\n figBoard[0][3] = new Queen(\"white\", 03, white[4]);\n figBoard[0][5] = new Bishop(\"white\", 05, white[2]);\n figBoard[0][6] = new Knight(\"white\", 06, white[1]);\n figBoard[0][7] = new Rook(\"white\", 07, white[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[0][i] = true;\n gA.getBoard()[0][i].setRotation(180);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[1][i] = true;\n gA.getBoard()[1][i].setRotation(180);\n figBoard[1][i] = new Pawn(\"white\", 10 + i, white[8]);\n }\n\n figBoard[7][0] = new Rook(\"black\", 70, black[0]);\n figBoard[7][1] = new Knight(\"black\", 71, black[1]);\n figBoard[7][2] = new Bishop(\"black\", 72, black[2]);\n figBoard[7][4] = new King(\"black\", 74, black[3]);\n figBoard[7][3] = new Queen(\"black\", 73, black[4]);\n figBoard[7][5] = new Bishop(\"black\", 75, black[2]);\n figBoard[7][6] = new Knight(\"black\", 76, black[1]);\n figBoard[7][7] = new Rook(\"black\", 77, black[0]);\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[7][i] = true;\n gA.getBoard()[7][i].setRotation(0);\n }\n\n for (int i = 0; i < gA.getBoard().length; i++) {\n booleanBoard[6][i] = true;\n gA.getBoard()[6][i].setRotation(0);\n figBoard[6][i] = new Pawn(\"black\", 60 + i, black[8]);\n }\n\n clearFallenFigures();\n clearBoardBackground();\n clearStringBoard();\n showBoard(); //shows the figures\n showScore();\n setBoardClickable();\n\n if (beginner % 2 == 0)\n this.turn = 0;\n else this.turn = 1;\n\n beginner++;\n\n numberOfBlackFallen = 0;\n numberOfWhiteFallen = 0;\n fallenFiguresWhite = new ArrayList<Figure>();\n fallenFiguresBlack = new ArrayList<Figure>();\n\n showCheck();\n showTurn();\n }", "private void initObjects()\n {\n //creating a new board of 8x8 array \n board = new Disc[Constants.ROWS][Constants.COLUMNS];\n //loops through and creates all empty discs to be filled\n for(int row = 0; row < Constants.ROWS; row++)\n {\n for(int col = 0; col < Constants.COLUMNS; col++)\n {\n board[row][col] = new Disc();\n }\n }\n//initial board setup \n board[3][3].setDisColor(Constants.LIGHT);\n board[3][4].setDisColor(Constants.DARK);\n board[4][3].setDisColor(Constants.DARK);\n board[4][4].setDisColor(Constants.LIGHT);\n \n }", "private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "public Board() {\n initialize(3, null);\n }", "public void initBoard() {\n board = new Board();\n\n // initilaisation des groupes\n Group violet = new Group();\n Group bleu = new Group();\n Group orange = new Group();\n Group vert = new Group();\n Group rouge = new Group();\n Group jaune = new Group();\n Group rose = new Group();\n Group marine = new Group();\n Group gare = new Group();\n Group compagnie = new Group();\n\n // ajout des cases\n board.addCaseBoard(new StartCase());\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Belleville\", 60, 2, 10,30, 90, 160,250, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de caumunauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lecourbe\", 60, 4,20,60,180,320,450, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Taxes\"));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Monparnasse\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Vaugirard\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Courcelles\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de la Republique\", 120, 8,40,100,300,450,600, 60, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd de la villette\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution d'electricité\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Neuilly\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Paradis\", 160, 12,60,180,500,700,900, 80, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare de Lyon\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Mozart\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Saint Michel\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Place Pigalle\", 200, 16,80,220,600,800,950, 100, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Park Gratuit\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Matignon\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd MalesHerbes\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Henri-Martin\", 240, 20,100,300,750,925,1100, 120, rouge, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare du Nord\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Fb Saint Honoré\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Place de la Bourse\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution des eaux\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lafayette\", 280, 24,120,360,850,1025,1200, 140, jaune, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Aller en Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Breteuil\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Foch\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd des Capucines\", 320, 28,150,450,1000,1200,1400, 160, rose, 200));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Saint-Lazarre\", 200, 2, 100,gare));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av des Champs Elysées\", 350, 35,175,500,1100,1300,1500, 175, marine, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de la Paix\", 400, 50,200,600,1400,1700,2000, 200, marine, 200));\n }", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "public IntelMainboard createMainboard() {\n\t\treturn new IntelMainboard();\n\t}", "public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}", "public void initLogicBoard() {\n int numOfBombs = 0;\n while (numOfBombs<bombs) {\n int randX = (int) (Math.random() * (rows - 1));\n int randY = (int) (Math.random() * (cols - 1));\n if (allTiles[randX][randY].getType() != 10) {\n allTiles[randX][randY].setType(10);\n\n for (int m = randX - 1; m <= randX + 1; m++) {\n for (int n = randY - 1; n <= randY + 1; n++) {\n if ((m < rows && n < cols) && (m >= 0 && n >= 0)) {\n if (allTiles[m][n].getType() != 10)\n allTiles[m][n].setType(allTiles[m][n].getType() + 1);\n }\n }\n }\n numOfBombs++;\n\n }\n }\n }", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }", "private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }", "public static void setBoard() {\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledCircle(200, 800, 35);\n\t\tStdDraw.filledCircle(500, 800, 35);\n\t\tStdDraw.filledCircle(800, 800, 35);\n\t\tStdDraw.filledCircle(200, 200, 35);\n\t\tStdDraw.filledCircle(500, 200, 35);\n\t\tStdDraw.filledCircle(800, 200, 35);\n\t\tStdDraw.filledCircle(200, 500, 35);\n\t\tStdDraw.filledCircle(800, 500, 35);\n\t\tStdDraw.filledCircle(350, 650, 35);\n\t\tStdDraw.filledCircle(500, 650, 35);\n\t\tStdDraw.filledCircle(650, 650, 35);\n\t\tStdDraw.filledCircle(350, 350, 35);\n\t\tStdDraw.filledCircle(500, 350, 35);\n\t\tStdDraw.filledCircle(650, 350, 35);\n\t\tStdDraw.filledCircle(350, 500, 35);\n\t\tStdDraw.filledCircle(650, 500, 35);\n\n\t\tStdDraw.setPenRadius(0.01);\n\t\tStdDraw.line(200, 200, 800, 200);\n\t\tStdDraw.line(200, 800, 800, 800);\n\t\tStdDraw.line(350, 350, 650, 350);\n\t\tStdDraw.line(350, 650, 650, 650);\n\t\tStdDraw.line(200, 500, 350, 500);\n\t\tStdDraw.line(650, 500, 800, 500);\n\t\tStdDraw.line(200, 800, 200, 200);\n\t\tStdDraw.line(800, 800, 800, 200);\n\t\tStdDraw.line(350, 650, 350, 350);\n\t\tStdDraw.line(650, 650, 650, 350);\n\t\tStdDraw.line(500, 800, 500, 650);\n\t\tStdDraw.line(500, 200, 500, 350);\n\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledCircle(80, 200, 35);\n\t\tStdDraw.filledCircle(80, 300, 35);\n\t\tStdDraw.filledCircle(80, 400, 35);\n\t\tStdDraw.filledCircle(80, 500, 35);\n\t\tStdDraw.filledCircle(80, 600, 35);\n\t\tStdDraw.filledCircle(80, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledCircle(920, 200, 35);\n\t\tStdDraw.filledCircle(920, 300, 35);\n\t\tStdDraw.filledCircle(920, 400, 35);\n\t\tStdDraw.filledCircle(920, 500, 35);\n\t\tStdDraw.filledCircle(920, 600, 35);\n\t\tStdDraw.filledCircle(920, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t}", "private void initializeBoard(){\r\n checks =new int[][]{{0,2,0,2,0,2,0,2},\r\n {2,0,2,0,2,0,2,0},\r\n {0,2,0,2,0,2,0,2},\r\n {0,0,0,0,0,0,0,0},\r\n {0,0,0,0,0,0,0,0},\r\n {1,0,1,0,1,0,1,0},\r\n {0,1,0,1,0,1,0,1},\r\n {1,0,1,0,1,0,1,0}};\r\n }", "public BoardInterface(){\n\t\tsetupLayouts();\n\t\tsetPlayerChoice();\n\t}", "public Board(int size, Piece[][] initConfig) {\n initialize(size, initConfig);\n }", "private Board create3by3Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 3);\n Tile t2 = new Tile(1, 3);\n Tile t3 = new Tile(2, 3);\n Tile t4 = new Tile(3, 3);\n Tile t5 = new Tile(4, 3);\n Tile t6 = new Tile(5, 3);\n Tile t7 = new Tile(6, 3);\n Tile t8 = new Tile(7, 3);\n Tile t9 = new Tile(8, 3);\n tiles = new Tile[3][3];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[1][0] = t5;\n tiles[1][1] = t9;\n tiles[1][2] = t3;\n tiles[2][0] = t1;\n tiles[2][1] = t8;\n tiles[2][2] = t4;\n return new Board(tiles);\n }", "private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }", "@BeforeClass\r\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\r\n\t\t// set the file names to use my config files\r\n\t\tboard.setConfigFiles(\"Board_Layout.csv\", \"ClueRooms.txt\", \"players_test.txt\", \"cards.txt\");\t\t\r\n\t\t// Initialize will load BOTH config files \r\n\t\tboard.initialize();\r\n\t}", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public abstract void initPlayboard(int size);", "public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }", "public void initialiseBoard() {\n\t\tPlayer1Mancala = new MancalaPit(this.player1Name, 0, null);\n\t\tPit player1_Pit6 = new Pit(this.player1Name, 6, 1, Player1Mancala);\n\t\tPit player1_Pit5 = new Pit(this.player1Name, 5, 1, player1_Pit6);\n\t\tPit player1_Pit4 = new Pit(this.player1Name, 4, 1, player1_Pit5);\n\t\tPit player1_Pit3 = new Pit(this.player1Name, 3, 1, player1_Pit4);\n\t\tPit player1_Pit2 = new Pit(this.player1Name, 2, 1, player1_Pit3);\n\t\tPit player1_Pit1 = new Pit(this.player1Name, 1, 1, player1_Pit2);\n\n\t\t// Define Player2 Pits in descending order \n\t\tPlayer2Mancala = new MancalaPit(this.player2Name, 0, null);\n\t\tPit player2_Pit6 = new Pit(this.player2Name, 6, 1, Player2Mancala);\n\t\tPit player2_Pit5 = new Pit(this.player2Name, 5, 1, player2_Pit6);\n\t\tPit player2_Pit4 = new Pit(this.player2Name, 4, 1, player2_Pit5);\n\t\tPit player2_Pit3 = new Pit(this.player2Name, 3, 1, player2_Pit4);\n\t\tPit player2_Pit2 = new Pit(this.player2Name, 2, 1, player2_Pit3);\n\t\tPit player2_Pit1 = new Pit(this.player2Name, 1, 1, player2_Pit2);\n\n\t\t// Complete the board by connecting mancala with player pits\n\t\tPlayer1Mancala.setNextPit(player2_Pit1);\n\t\tPlayer2Mancala.setNextPit(player1_Pit1);\n\n\t\t//Initialize the Player1 board \n\t\tthis.Player1Pits[0] = player1_Pit1;\n\t\tthis.Player1Pits[1] = player1_Pit2;\n\t\tthis.Player1Pits[2] = player1_Pit3;\n\t\tthis.Player1Pits[3] = player1_Pit4;\n\t\tthis.Player1Pits[4] = player1_Pit5;\n\t\tthis.Player1Pits[5] = player1_Pit6;\n\n\t\t// Initialize the Player2 board \n\t\tthis.Player2Pits[0] = player2_Pit1;\n\t\tthis.Player2Pits[1] = player2_Pit2;\n\t\tthis.Player2Pits[2] = player2_Pit3;\n\t\tthis.Player2Pits[3] = player2_Pit4;\n\t\tthis.Player2Pits[4] = player2_Pit5;\n\t\tthis.Player2Pits[5] = player2_Pit6;\n\t}", "private void initGameBoard(int rows, int cols)\n {\n //GameBoard = new Cell[ROWS][COLS];\n\n for(int i = 0; i < rows; i++)\n {\n for(int j = 0; j < cols; j++)\n {\n GameBoard[i][j] = new Cell(i,j, Color.BLUE,false);\n }\n\n }\n }", "public void initialize() {\r\n\r\n\t\t// Assign1, Add control button\r\n\t\tFlowLayout fl = new FlowLayout();\r\n\t\tfl.setAlignment(FlowLayout.LEFT);\r\n\t\tthis.setLayout(fl);\r\n\t\tswitcher = new JButton(\"Switch Player:black\");\r\n\t\tswitcher.setEnabled(false);\r\n\t\tswitcher.addActionListener(this);\r\n\t\tconfirm = new JButton(\"Confirm\");\r\n\t\tconfirm.setEnabled(false);\r\n\t\tconfirm.addActionListener(this);\r\n\t\tthis.add(switcher);\r\n\t\tthis.add(confirm);\r\n\t\tswitcher.setBounds(520, 200, 50, 20);\r\n\t\tconfirm.setBounds(520, 400, 50, 20);\r\n\r\n\t\t// Assign1, Add message upper from the board\r\n\t\tt = new JLabel();\r\n\t\tt.setVerticalAlignment(JLabel.TOP);\r\n\t\tthis.add(t);\r\n\t\tt.setVisible(true);\r\n\r\n\t\t// Assign1, Get layer object, which in order to enable layering of JFrame\r\n\t\tlp = this.getLayeredPane();\r\n\r\n\t\t// Define board by JPanel with a 8*8 GridLayout\r\n\t\t// Put red and white board\r\n\t\tboardBg = new JPanel();\r\n\t\tboardBg.setLayout(new GridLayout(8, 8));\r\n\t\tfor (int i = 0; i < 8 * 8; i++) {\r\n\t\t\t// Assign1, Put red board\r\n\t\t\tif ((i % 2 == 0 && (i / 8) % 2 == 1)\r\n\t\t\t\t\t|| (i % 2 == 1 && (i / 8) % 2 == 0)) {\r\n\t\t\t\tChessBoardBlock block = new ChessBoardBlock(\"red\", order[i]);\r\n\t\t\t\tblock.addActionListener(this);\r\n\t\t\t\tblock.addMouseListener(this);\r\n\t\t\t\tboard.put(order[i], block);\r\n\t\t\t\tblock.setEnabled(false);\r\n\t\t\t\tblock.setBorderPainted(false);\r\n\t\t\t\tboardBg.add(block);\r\n\t\t\t}\r\n\t\t\t// Assign1, Put white board\r\n\t\t\telse {\r\n\t\t\t\tChessBoardBlock block = new ChessBoardBlock(\"white\", order[i]);\r\n\t\t\t\tblock.addActionListener(this);\r\n\t\t\t\tblock.addMouseListener(this);\r\n\t\t\t\tboard.put(order[i], block);\r\n\t\t\t\tblock.setEnabled(false);\r\n\t\t\t\tblock.setBorderPainted(false);\r\n\t\t\t\tboardBg.add(block);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Assign1, Put pieces on the board, on another same JPanel with 8*8 GridLayout\r\n\t\tbody = new JPanel();\r\n\t\tbody.setLayout(new GridLayout(8, 8));\r\n\r\n\t\t// Assign1, Put board panel and piece panel in different layer by the Integer parameter\r\n\t\tlp.add(boardBg, new Integer(1));\r\n\t\tlp.add(body, new Integer(2));\r\n\t\tboardBg.setBounds(0, 70, 500, 500);\r\n\t\tboardBg.setVisible(true);\r\n\t\tbody.setBounds(0, 70, 500, 500);\r\n\t\tbody.setOpaque(false);// Assign1, Make the upper layer panel transparent so that lower layer can be seen\r\n\t\tbody.setVisible(true);\r\n\t\t\r\n\t\tstatus.setStatusInit();\r\n\r\n\t}", "@Before\r\n public void setup()\r\n {\r\n board = new Board();\r\n piece = new Pawn(WHITE);\r\n board.putPiece(piece, 0, 0);\r\n }", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "private void setupBoard(int size) {\n\t\t\n\t\tthis.board = new Disc[size][size];\n\t\t// COMPLETE THIS METHOD\n\t\tDisc currentDisc = getCurrentPlayerDisc();\n\t\tint halfway = (board.length / 2) - 1;\n\t\tint halfwayIncre = halfway + 1;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\t\n\t\t\t\tboard[i][j] = null;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n if (currentDisc == Disc.BLACK) {\n\t\t\t\n\t\t\tplaceDiscAt(halfway, halfway);\n\t\t\tplaceDiscAt(halfway, halfwayIncre);\n\t\t\tplaceDiscAt(halfwayIncre, halfwayIncre);\t\t\t\n\t\t\tplaceDiscAt(halfwayIncre, halfway);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tplaceDiscAt(halfway, halfwayIncre);\n\t\t\tplaceDiscAt(halfway, halfway);\n\t\t\tplaceDiscAt(halfwayIncre, halfway);\n\t\t\tplaceDiscAt(halfwayIncre, halfwayIncre);\n\t\t\t\n\t\t} \n\t\t\n\t\t\n\t\t\n\t}", "public static Board makeBoard(final Player lightPlayer, final Player darkPlayer, final String FEN) {\n Board board = new Board(lightPlayer, darkPlayer);\n\n Tile[][] matrix = board.getMatrix();\n \n // rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 default ren\n \n /*\n Part 1: read in board state string and generate the pieces based off of their location\n */\n \n int i = 0, j = 0, k = 0;\n boolean boardComplete = false;\n for( ; !boardComplete ; k++){\n switch (FEN.charAt(k)){\n case ' ':\n boardComplete=true; // a _ means we are done with the board data\n break;\n case '/':\n i++; // a / means move to next rank/line\n j=0;\n break;\n case 'r': // ROOKS\n matrix[i][j].setPiece(new Rook(darkPlayer, true));\n j++;\n break;\n case 'R':\n matrix[i][j].setPiece(new Rook(lightPlayer, true));\n j++;\n break;\n case 'n': // KNIGHTS\n matrix[i][j].setPiece(new Knight(darkPlayer));\n j++;\n break;\n case 'N':\n matrix[i][j].setPiece(new Knight(lightPlayer));\n j++;\n break;\n case 'b': // BISHOPS\n matrix[i][j].setPiece(new Bishop(darkPlayer));\n j++;\n break;\n case 'B':\n matrix[i][j].setPiece(new Bishop(lightPlayer));\n j++;\n break;\n case 'q': // QUEENS\n matrix[i][j].setPiece(new Queen(darkPlayer));\n j++;\n break;\n case 'Q':\n matrix[i][j].setPiece(new Queen(lightPlayer));\n j++;\n break;\n case 'k': // KINGS\n matrix[i][j].setPiece(new King(darkPlayer, true));\n darkPlayer.setLocationOfKing(matrix[i][j].getPosition());\n j++;\n break;\n case 'K':\n matrix[i][j].setPiece(new King(lightPlayer, true));\n lightPlayer.setLocationOfKing(matrix[i][j].getPosition());\n j++;\n break;\n case 'p': // PAWNS\n matrix[i][j].setPiece(new Pawn(darkPlayer));\n j++;\n break;\n case 'P':\n matrix[i][j].setPiece(new Pawn(lightPlayer));\n j++;\n break;\n default: // SPACES BETWEEN PIECES\n j+=Character.getNumericValue(FEN.charAt(k));\n \n }\n }\n\n /*\n Part 2: load in character w or b to determine who's turn it is\n */\n \n board.setCurrentPlayer(FEN.charAt(k) == 'w' ? board.getLightPlayer() : board.getDarkPlayer());\n board.setEnemyPlayer(FEN.charAt(k) == 'w' ? board.getDarkPlayer() : board.getLightPlayer());\n \n k += 2; // skips over the turn char and the space after it putting FEN.charAt(k) at the next stage\n \n /*\n Part 3: read in castle availability string and set the boolean flag hasTakenFirstMove for each respective piece\n For rook and king hasTakenFirstMove is default to true. It is only set to false if the correct char's below are present.\n */\n boolean notFinishedCastle = true;\n for ( ; notFinishedCastle; k++) {\n switch (FEN.charAt(k)) {\n case '-':\n notFinishedCastle = false;\n break;\n case ' ':\n notFinishedCastle = false;\n break;\n case 'K':\n board.getMatrix()[board.getLightPlayer().getHomeRow()][Constants.ROOK_COLUMN_KINGSIDE].getPiece().setHasTakenFirstMove(false);\n board.getMatrix()[board.getLightPlayer().getHomeRow()][Constants.KING_COLUMN].getPiece().setHasTakenFirstMove(false);\n break;\n case 'Q':\n board.getMatrix()[board.getLightPlayer().getHomeRow()][Constants.ROOK_COLUMN_QUEENSIDE].getPiece().setHasTakenFirstMove(false);\n board.getMatrix()[board.getLightPlayer().getHomeRow()][Constants.KING_COLUMN].getPiece().setHasTakenFirstMove(false);\n break;\n case 'k':\n board.getMatrix()[board.getDarkPlayer().getHomeRow()][Constants.ROOK_COLUMN_KINGSIDE].getPiece().setHasTakenFirstMove(false);\n board.getMatrix()[board.getDarkPlayer().getHomeRow()][Constants.KING_COLUMN].getPiece().setHasTakenFirstMove(false);\n break;\n case 'q':\n board.getMatrix()[board.getDarkPlayer().getHomeRow()][Constants.ROOK_COLUMN_QUEENSIDE].getPiece().setHasTakenFirstMove(false);\n board.getMatrix()[board.getDarkPlayer().getHomeRow()][Constants.KING_COLUMN].getPiece().setHasTakenFirstMove(false);\n break;\n }\n \n if (k == FEN.length() - 1) {\n notFinishedCastle = false;\n }\n }\n \n return board;\n }", "private void initialiseBoard() {\r\n\t\thorizontal = new char[width];\r\n\t\tvertical = new int[height];\r\n\t\tfor (int i=0; i<horizontal.length; i++) {\r\n\t\t\thorizontal[i] = (char)(i+65);\r\n\t\t}\r\n\t\tfor (int i=0; i<vertical.length; i++) {\r\n\t\t\tvertical[i] = i+1;\r\n\t\t}\r\n\t}", "private void initBoardPanel()\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++)\r\n {\r\n buttons[i][j] = new JButton(\" \");\r\n buttons[i][j].addActionListener(bh);\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }", "public static String[][] createBoardState() {\n String[][] initialBoardState = {\n {\"Rw\", \"Nw\", \"Bw\", \"Qw\", \"Kw\", \"Bw\", \"Nw\", \"Rw\"},\n {\"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\", \"Pw\"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\" \", \" \", \" \", \" \", \" \", \" \", \" \", \" \"},\n {\"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\", \"Pb\"},\n {\"Rb\", \"Nb\", \"Bb\", \"Qb\", \"Kb\", \"Bb\", \"Nb\", \"Rb\"}\n };\n\n return initialBoardState;\n }", "public BoardState(int typeOfPlayer){\n board = new char[boardSize][boardSize];\n //ai\n if(typeOfPlayer == 0){\n aiInitBoard();\n }\n //human\n else if(typeOfPlayer == 1){\n initBoard();\n }\n }", "public static void createBoard() {\n Checkers[] CheckerBoard = new Checkers[24];\n CheckerBoard[0] = new Checkers(0,1,\"black\");\n CheckerBoard[1] = new Checkers(0,3,\"black\");\n CheckerBoard[2] = new Checkers(0,5,\"black\");\n CheckerBoard[3] = new Checkers(0,7,\"black\");\n CheckerBoard[4] = new Checkers(1,0,\"black\");\n CheckerBoard[5] = new Checkers(1,2,\"black\");\n CheckerBoard[6] = new Checkers(1,4,\"black\");\n CheckerBoard[7] = new Checkers(1,6,\"black\");\n CheckerBoard[8] = new Checkers(2,1,\"black\");\n CheckerBoard[9] = new Checkers(2,3,\"black\");\n CheckerBoard[10] = new Checkers(2,5,\"black\");\n CheckerBoard[11] = new Checkers(2,7,\"black\");\n CheckerBoard[12] = new Checkers(5,1,\"red\");\n CheckerBoard[13] = new Checkers(5,3,\"red\");\n CheckerBoard[14] = new Checkers(5,5,\"red\");\n CheckerBoard[15] = new Checkers(5,7,\"red\");\n CheckerBoard[16] = new Checkers(6,0,\"red\");\n CheckerBoard[17] = new Checkers(6,2,\"red\");\n CheckerBoard[18] = new Checkers(6,4,\"red\");\n CheckerBoard[19] = new Checkers(6,6,\"red\");\n CheckerBoard[20] = new Checkers(7,1,\"red\");\n CheckerBoard[21] = new Checkers(7,3,\"red\");\n CheckerBoard[22] = new Checkers(7,5,\"red\");\n CheckerBoard[23] = new Checkers(7,7,\"red\");\n\n\n\n }", "public void initializeBoard() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tthis.board[i] = \"-\";\n\n\t\t}\n\n\t}", "public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void aiInitBoard(){\n for(int i = 0; i < boardSize; i++) {\n for (int j = 0; j < boardSize; j++) {\n board[i][j] = 'O';\n }\n }\n }", "private void init() {\n\t\tpossibleFlips = new HashSet<Square>();\n\t\t\n\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\tboard[i][j] = new Square(Square.SquareType.Empty, i, j, this);\n\t\t\t}\n\t\t}\n\t\tswitch (boardType) {\n\t\tcase Tiny:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 2, 2, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 3, 2, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 3, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 2, 3, this));\n\t\t\tbreak;\n\t\tcase Standard:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 3, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 4, 3, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 4, 4, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 3, 4, this));\n\t\t\tbreak;\n\t\tcase Giant:\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 5, 5, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 6, 5, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Red, 6, 6, this));\n\t\t\tplacePiece(new Square(Square.SquareType.Black, 5, 6, this));\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tsetHighlightedSquare(0, 0);\n\t\t// Calculate possible moves with black to play\n\t\tCalculatePossibleMoves(true);\n\t}", "public abstract CONFIG build();", "void boardSetup() {\n ArrayList<ArrayList<Vertex>> vInt = generateInitVertices();\n ArrayList<Edge> allEdges = getEdges(vInt);\n //getting naming error in java style checker, not sure why\n vInt = kruskalVertice(vInt);\n walls = getWalls(vInt, allEdges);\n vertices = new Empty<Vertex>();\n for (ArrayList<Vertex> vList : vInt) {\n for (Vertex vt : vList) {\n vertices = vertices.add(vt);\n }\n }\n bfs = false;\n dfs = false;\n manual = false;\n b = new BreadthFirst(vertices);\n d = new DepthFirst(vertices);\n p = new Player(vertices);\n\n }", "public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}", "@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }", "public static void generateCustomGameConfiguration() {\n // GameConfig.getInstance().setMapWidthX(20);\n // GameConfig.getInstance().setMapHeightY(20);\n // GameConfig.getInstance().setMaxEnergyPirateValue(100);\n // GameConfig.getInstance().setMonkeyErraticSpeed(1000);\n // GameConfig.getInstance().setMonkeyHunterSpeed(750);\n // GameConfig.getInstance().setRumEnergyValue(10);\n // GameConfig.getInstance().setTimeRumVisibility(10000);\n // GameConfig.getInstance().setRumList(Brain.getInstance().getObjectManager().getRumList());\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // ArrayList<Monkey> monkeyArrayList = new ArrayList<Monkey>();\n // for(int i=0;i<10;i++) {\n // if (i % 2 == 0) {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.ERRATIC));\n // } else {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.HUNTER));\n // }\n // }\n // GameConfig.getInstance().setMonkeyList(monkeyArrayList);\n // for(int i=0;i< Brain.getInstance().getMapManager().getMap().getSquareList().size();i++) {\n // for (int j = 0; j < Brain.getInstance().getMapManager().getMap().getSquareList().get(i).size(); j++) {\n // if (i == 0 || j==0 || i == GameConfig.getInstance().getMapWidthX()-1\n // || j == GameConfig.getInstance().getMapHeightY()-1) {\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.SEA);\n // }else{\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.GROUND);\n // }\n // }\n // }\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // saveGameConfiguration();\n }", "public void init() {\n this.screen = new Rectangle(PADDING, PADDING, Game.TOTAL_COLUMNS * CELL_SIZE, Game.TOTAL_ROWS * CELL_SIZE);\n\n // display the background\n this.screen.setColor(Color.LIGHT_GRAY);//board edge color\n this.screen.fill();\n\n }" ]
[ "0.7181675", "0.7093488", "0.7047843", "0.68722075", "0.68595374", "0.685713", "0.6798011", "0.67523295", "0.6670719", "0.6628271", "0.6572205", "0.65563923", "0.6487276", "0.6473665", "0.643863", "0.6426143", "0.6395972", "0.6365763", "0.6365703", "0.63656294", "0.63651776", "0.63574535", "0.6333408", "0.63269085", "0.6324211", "0.63031083", "0.6247532", "0.624431", "0.61919296", "0.61898005", "0.61501056", "0.61165535", "0.60875946", "0.60754526", "0.60687053", "0.6061304", "0.6047328", "0.6045683", "0.60424507", "0.6037971", "0.60353726", "0.6007672", "0.6007028", "0.59997916", "0.5995093", "0.5994392", "0.5990774", "0.59771997", "0.59652495", "0.59459937", "0.59427106", "0.59351766", "0.5925435", "0.592399", "0.5916412", "0.5908367", "0.58945525", "0.5856982", "0.5838785", "0.5836194", "0.5832225", "0.58303463", "0.58254784", "0.58161515", "0.5806889", "0.58047676", "0.5790234", "0.57734615", "0.57710785", "0.57681674", "0.57621384", "0.5755934", "0.5755397", "0.5748835", "0.57363355", "0.5736283", "0.57344514", "0.5720337", "0.57186455", "0.57116103", "0.571042", "0.5693249", "0.568107", "0.56803143", "0.5679787", "0.5678869", "0.56779665", "0.5669903", "0.56664634", "0.56633276", "0.5662996", "0.56629306", "0.5653768", "0.565046", "0.56491756", "0.5646529", "0.5645073", "0.56444234", "0.5627486", "0.56273836" ]
0.5943127
50
Creates new form SK16
public SK16() { initComponents(); tbl_bslip.repaint(); try{ conn = ConnectTESTING.Connect(); String str = "select bslip_no,bslip_date from pfmo.bslip" + " where status_code = 'P';"; ps = conn.prepareStatement(str); rs = ps.executeQuery(); tbl_bslip.setModel(DbUtils.resultSetToTableModel(rs)); } catch (Exception e) { JOptionPane.showMessageDialog(null,e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "WithCreate withSku(SkuName skuName);", "public SVCustom build(){\n if(this.disks < 1) return new SVCustom();\n SVCustom s = new SVCustom(new Point(100, (int)Math.pow(2, this.disks)*104 - 52));\n int left[] = new int[]{0,1};\n int right[] = new int[]{1,2};\n int bottom[] = new int[]{0,2};\n SierpinskiTriangle t = new SierpinskiTriangle(0,this.disks,this.disks-1, left, right, bottom, buildInitial(this.disks));\n s.setAttribute(\"font-family\", \"Arial\");\n s.addContent(t, \"Triangle\");\n return s;\n }", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "public NewFSAAction() {\r\n super(Hub.string(\"TD_comAssignNewFSA\"), icon);\r\n icon.setImage(Toolkit.getDefaultToolkit()\r\n .createImage(Hub.getLocalResource(AssignFSADialog.class, \"images/icons/new_automaton.gif\")));\r\n putValue(SHORT_DESCRIPTION, Hub.string(\"TD_comHintAssignNewFSA\"));\r\n }", "WithCreate withSku(Sku sku);", "Secuencia createSecuencia();", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public void create(){}", "public void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "WithCreate withFreeSku();", "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 void saveAndCreateNew() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"saveAndCreateNew\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "private static void addTV() {\n\n TV newTV = new TV(); // create new TV object\n\n String TVMake = Validate.readString(ASK_MAKE_TV); // Ask for the make and store input\n\n newTV.setMake(TVMake); // set make of TV based on user input\n\n int screenSize = Validate.readInt(ASK_SCREENSIZE_TV); // Ask for the screen size\n\n newTV.setScreenSize(screenSize); // set screensize of TV based on user input\n\n int type = Validate.readInt(ASK_TYPE_TV,3); // Ask for type of TV\n\n newTV.setType(type); // set type of TV based on user input\n\n boolean capableOf3D = Validate.readBoolean(ASK_3D_TV); // Ask if 3d compatible\n\n newTV.set3DCapability(capableOf3D); // set 3d capability of TV based on user input\n\n double price = Validate.readDouble(ASK_PRICE_TV); // Ask for price of TV\n\n newTV.setPrice(price); // set price of TV based on user input\n\n ProductDB.addProduct(newTV); // add new TV to the product DB\n\n newTV.saveTV(); // saves new tv to productDB text file\n\n }", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Slot createSlot();", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Card createCard();", "private void btnCreateHeroActionPerformed() {// GEN-FIRST:event_btnCreateHeroActionPerformed\r\n\t\tdispose();\r\n\t\tHero h = new Hero(txtCreateName.getText());\r\n\t\tnew MainForm().setVisible(true);\r\n\t\tMainForm.setHero(h);\r\n\t\tMainForm.makeOpponents();\r\n\t\th = null;\r\n\t}", "public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }", "public SKIN_SPECIALIST() {\n initComponents();\n }", "public void createSurvey(int tid);", "public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvas4);\r\n\t \tSC.say(\"Clicou\");\r\n\t \t\r\n\t }", "private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}", "@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 CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }", "private void createSPSSFile()\n\t{\n\t\t//init some variables\n\t\tString variablesText = \"VARIABLE LABELS\\r\\n\";\n\t\tString valuesText = \"\\r\\nVALUE LABELS\\r\\n\";\n\t\tint line = 1;\n\t\t\n\t\t//What weight was selected\n\t\tString language = listBoxLanguages.getItemText(listBoxLanguages.getSelectedIndex());\n\t\t//get a list of questions\n\t\tList<QuestionDef> questions = getQuestions(form.getChildren());\n\t\t//loop over the questions\n\t\tfor(QuestionDef q : questions)\n\t\t{\n\t\t\tString questionName = \"\";\n\t\t\tif(form.getITextMap().containsKey(q.getBinding()))\n\t\t\t{\n\t\t\t\tItextModel iText = form.getITextMap().get(q.getBinding());\n\t\t\t\tquestionName = iText.get(language);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tquestionName = q.getText();\n\t\t\t}\n\t\t\t\n\t\t\tquestionName = questionName.replace(\"\\\"\", \"\\\"\\\"\");\n\t\t\t//if it's too long truncate\n\t\t\tif(questionName.length() > 120)\n\t\t\t{\n\t\t\t\tquestionName = questionName.substring(0, 116) + \"...\";\n\t\t\t}\n\t\t\t//do we need to add the /\n\t\t\tif(line > 1)\n\t\t\t{\n\t\t\t\tvariablesText += \"/\";\n\t\t\t}\n\t\t\t//define the variable label\n\t\t\tvariablesText += q.getBinding() + \" \\\"\" + questionName + \"\\\"\\r\\n\";\n\t\t\t//advance our line count\n\t\t\tline++;\n\t\t\t//now handle the values\n\t\t\t//is this a select question?\n\t\t\tif(q.getDataType() == QuestionDef.QTN_TYPE_LIST_EXCLUSIVE || q.getDataType() == QuestionDef.QTN_TYPE_LIST_MULTIPLE)\n\t\t\t{\n\t\t\t\tString values = \"/\" + q.getBinding();\n\t\t\t\t//loop over the kids\n\t\t\t\tif(q.getOptions() instanceof List<?>)\n\t\t\t\t{\n\t\t\t\t\tList<Object> list = (List<Object>)(q.getOptions());\n\t\t\t\t\tfor(Object o : list)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(o instanceof OptionDef))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tOptionDef option = (OptionDef)o;\n\t\t\t\t\t\t//make sure the value is in there and fail gracefully\n\t\t\t\t\t\tif(!form.getITextMap().containsKey(option.getBinding()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString optionName = form.getITextMap().get(option.getBinding()).get(language);\n\t\t\t\t\t\toptionName = optionName.replace(\"\\\"\", \"\\\"\\\"\");\n\t\t\t\t\t\tif(optionName.length() > 120)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toptionName = optionName.substring(0, 116) + \"...\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues += \" \" + option.getDefaultValue() + \" \\\"\" + optionName + \"\\\"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//make sure there's something there\n\t\t\t\tif(!values.equals(\"/\" + questionName))\n\t\t\t\t{\n\t\t\t\t\tvalues += \"\\r\\n\";\n\t\t\t\t\tvaluesText += values;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//loop ov\n\t\t}\n\t\t//now we'll define the values\n\t\t\n\t\tspssText.setText(variablesText + valuesText);\n\t}", "public void srediFormuPremaSK(){\n int aktivanSK = Komunikacija.getInstance().getAktivan_sk();\n \n if(aktivanSK == Konstante.SK_DODAVANJE){\n srediFormu();\n this.setTitle(\"Unos nove vezbe\");\n }\n if(aktivanSK == Konstante.SK_IZMENA){\n srediFormu();\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Izmena vezbe\");\n } \n \n if(aktivanSK == Konstante.SK_PRIKAZ){\n jTextFieldNaziv.setEnabled(false);\n jTextFieldFokus.setEnabled(false);\n jTextFieldVremeTrajanja.setEnabled(false);\n prikaziPodatkeVezbi(Komunikacija.getInstance().getVezbe());\n this.setTitle(\"Detalji vezbe\");\n }\n}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "private void createInstructionManual() {\n TextButton mainMenuButton = new TextButton(\"Main Menu\", skin);\n mainMenuButton.addListener(\n new ChangeListener() {\n @Override\n public void changed(ChangeEvent changeEvent, Actor actor) {\n game.setScreen(GdxGame.ScreenType.MAIN_MENU);\n }\n });\n\n\n Image bgImage = new Image(ServiceLocator.getResourceService()\n .getAsset(\"game-instruction/tutorialScreen_new.png\", Texture.class));\n bgImage.setScaling(Scaling.fit);\n buttonTable = new Table();\n buttonTable.setFillParent(true);\n buttonTable.top().left();\n buttonTable.add(mainMenuButton);\n\n bgTable = new Table();\n bgTable.setFillParent(true);\n bgTable.center();\n bgTable.add(bgImage);\n // add the board to the stage first so that its can be under of score data\n stage.addActor(bgTable);\n stage.addActor(buttonTable);\n\n\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "void createGameCode(GameCode gameCode);", "Slot createSlot();", "protected void doNew() {\n\t\tgetRegisterView().clearTableSelection();\n\t\tclear();\n\t\tenableForm(true);\n\t\tgetForm().getButton(EDIT).setEnabled(false);\n\t\tgetForm().getField(CHECK_NUMBER).requestFocus();\n\t}", "SMALL createSMALL();", "private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTemperature = new javax.swing.JLabel();\n lblBloodPressure = new javax.swing.JLabel();\n lblPulse = new javax.swing.JLabel();\n lblDate = new javax.swing.JLabel();\n txtTemperature = new javax.swing.JTextField();\n txtBloodPressure = new javax.swing.JTextField();\n txtPulse = new javax.swing.JTextField();\n txtDate = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n btnSave = new javax.swing.JButton();\n\n lblTemperature.setText(\"Temperature\");\n\n lblBloodPressure.setText(\"Blood Pressure\");\n\n lblPulse.setText(\"Pulse\");\n\n lblDate.setText(\"Date\");\n\n txtTemperature.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtTemperatureActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Create Vital Signs\");\n\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(lblPulse)\n .addComponent(lblBloodPressure)\n .addComponent(lblTemperature))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSave)\n .addComponent(jLabel1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtTemperature, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)\n .addComponent(txtBloodPressure)\n .addComponent(txtPulse)\n .addComponent(txtDate)))\n .addContainerGap(432, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblTemperature)\n .addComponent(txtTemperature, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblBloodPressure)\n .addComponent(txtBloodPressure, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addComponent(lblPulse))\n .addComponent(txtPulse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDate)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addComponent(btnSave)\n .addContainerGap(167, Short.MAX_VALUE))\n );\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 Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public void saveNew() {\r\n String name, compName;\r\n double price;\r\n int id, inv, max, min, machId;\r\n //Gets the ID of the last part in the inventory and adds 1 to it \r\n id = Inventory.getAllParts().get(Inventory.getAllParts().size() - 1).getId() + 1;\r\n name = nameField.getText();\r\n inv = Integer.parseInt(invField.getText());\r\n price = Double.parseDouble(priceField.getText());\r\n max = Integer.parseInt(maxField.getText());\r\n min = Integer.parseInt(minField.getText());\r\n\r\n if (inHouseSelected) {\r\n machId = Integer.parseInt(machineOrCompanyField.getText());\r\n Part newPart = new InHouse(id, name, price, inv, min, max, machId);\r\n Inventory.addPart(newPart);\r\n } else {\r\n compName = machineOrCompanyField.getText();\r\n Part newPart = new Outsourced(id, name, price, inv, min, max, compName);\r\n Inventory.addPart(newPart);\r\n }\r\n\r\n }", "@Override\n\tpublic void startCreateNewGame() \n\t{\t\n\t\tgetNewGameView().setTitle(\"\");\n\t\tgetNewGameView().setRandomlyPlaceHexes(false);\n\t\tgetNewGameView().setRandomlyPlaceNumbers(false);\n\t\tgetNewGameView().setUseRandomPorts(false);\n\t\tif(!getNewGameView().isModalShowing())\n\t\t{\n\t\t\tgetNewGameView().showModal();\n\t\t}\n\t}", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "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 }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "WithCreate withSku(SnapshotSku sku);", "@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 TemperatureTxt = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n BloodPressureTxt = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n PulseTxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n DateTxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n SaveBtn = new javax.swing.JButton();\n\n jLabel1.setText(\"Temperature\");\n\n TemperatureTxt.setToolTipText(\"\");\n\n jLabel2.setText(\"Blood Pressure\");\n\n BloodPressureTxt.setToolTipText(\"\");\n\n jLabel3.setText(\"Pulse\");\n\n PulseTxt.setToolTipText(\"\");\n\n jLabel4.setText(\"Date\");\n\n DateTxt.setToolTipText(\"\");\n\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(51, 255, 255));\n jLabel5.setText(\"Create Vital Signs\");\n\n SaveBtn.setText(\"Save\");\n SaveBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SaveBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(91, 91, 91)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TemperatureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(PulseTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(63, 63, 63)\n .addComponent(BloodPressureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\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(SaveBtn)\n .addComponent(DateTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGroup(layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(230, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(TemperatureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(BloodPressureTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(PulseTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(DateTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(46, 46, 46)\n .addComponent(SaveBtn)\n .addContainerGap(82, Short.MAX_VALUE))\n );\n }", "SandBox createSandBox(Site site, String sandBoxName, SandBoxType sandBoxType) throws Exception;", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }", "abstract public Vcard createVcard();", "public wsihash create(long wsihashId);", "private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public SavouriesFragment newInstance(int index) {\n SavouriesFragment fragment = new SavouriesFragment(index);\n Bundle args = new Bundle();\n this.index=index;\n Log.d(\"hi\", \"\" + index);\n args.putInt(\"index\",index);\n fragment.setArguments(args);\n return fragment;\n }", "private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}", "public void create_new_package(View V) {\n make_request();\r\n progressDialog.show();\r\n }", "Stone create();", "@Override\n\tpublic void create () {\n\n\t}", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public static void form_Save_And_New() throws InterruptedException {\n\t\tAndroidLocators.resourceId(\"in.spoors.effortplus:id/saveForm\").click();\n\t\tCommonUtils.alertContentXpath();\n\t\tif (AndroidLocators.findElements_With_ResourceId(\"new UiSelector().resourceId(\\\"in.spoors.effortplus:id/formSaveAndNewButton\\\")\")\n\t\t\t\t.size() > 0) {\n\t\t\tAndroidLocators.resourceId(\"in.spoors.effortplus:id/formSaveAndNewButton\").click();\n\t\t\tCommonUtils.interruptSyncAndLetmeWork();\n\t\t\tCommonUtils.waitForElementVisibility(\"//*[@resource-id='in.spoors.effortplus:id/saveForm']\");\n\t\t}\n\t}", "public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\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 }", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public abstract void create();", "@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 }", "private void builder(){\r\n //Objects\r\n //Left\r\n canvasStackPane.setAlignment(Pos.TOP_LEFT);\r\n left1HintButton = new Button(\"Hint\");\r\n left2Button = new Button(\"New Graph\");\r\n left3Button = new Button(\"New GameMode\");\r\n left4Button = new Button(\"New GraphMode\");\r\n left5Button = new Button(\"Finished\");\r\n leftRestLabel = new Label();\r\n //Up\r\n upperLeftButton = new Label(\"Menu\");\r\n upperLeftButton.setAlignment(Pos.CENTER);\r\n upper1Label = new Label();\r\n upper2Label = new Label();\r\n upper3Label = new Label();\r\n upperRestLabel = new Label();\r\n //calculateVectors\r\n backPane.setPickOnBounds(false);\r\n textFieldVertices.setPromptText(\"Vertices\");\r\n textFieldEdges.setPromptText(\"Edges\");\r\n gameEnd.setSpacing(30);\r\n gameEnd.setAlignment(Pos.CENTER);\r\n gameWinStackPane.setAlignment(Pos.CENTER);\r\n hBoxWin.setAlignment(Pos.CENTER);\r\n hBoxWin.setSpacing(30);\r\n canvasStackPane.setPickOnBounds(true);\r\n canvas.setPickOnBounds(true);\r\n canvas.getGraphicsContext2D().setLineWidth(2.5);\r\n }", "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "public S2SSubmissionDetailForm() {\r\n initComponents();\r\n }", "public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvasCT);\r\n\t \tSC.say(\"Clicou\");\r\n\t }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public void createNewSkateSpot(){\n \t\tEditText skatespot_name = (EditText) findViewById(R.id.new_skatespot_name);\n \t\tString name = skatespot_name.getText().toString();\n \t\t\n \t\t//Finds the description of the SkateSpot\n \t\tEditText skatespot_description = (EditText) findViewById(R.id.new_skatespot_description);\n \t\tString description = skatespot_description.getText().toString();\n \t\t\n \t\t//Finds the chosen type from the spinner\n \t\tSpinner spinner = (Spinner) findViewById(R.id.new_skatespot_spinner);\n \t\tString type = spinner.getSelectedItem().toString();\n \t\t\n \t\t//Finds the current location\n \t\tLocation loc = app.getLocation();\n \t\tdouble latitude = loc.getLatitude();\n \t\tdouble longitude = loc.getLongitude();\n \n \t\tJsonObject obj = new JsonObject();\n \t\tobj.add(\"key\", new JsonPrimitive(\"ourKey\")); // TODO create a secret key\n \t\tobj.add(\"type\", new JsonPrimitive(4));\n \t\tobj.add(\"name\", new JsonPrimitive(name));\n \t\tobj.add(\"description\", new JsonPrimitive(description));\n \t\tobj.add(\"spottype\", new JsonPrimitive(type));\n \t\tobj.add(\"latitude\", new JsonPrimitive(latitude));\n \t\tobj.add(\"longitude\", new JsonPrimitive(longitude));\n \n \t\tAsyncHttpResponseHandler responseHandler = new AsyncHttpResponseHandler();\t\n \t\tSkateSpotsHttpClient.post(getApplicationContext(), obj, responseHandler);\n \t}", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public void fillregister()\n {\n CD cD1 = new CD(\"\", \"\", \"\", 1992);\n Tape tape1 = new Tape(\"\", \"\");\n Music music1 = new Music(\"\", 1, \"\", 1, 1);\n AdvertisingJingle advertis1 = new AdvertisingJingle(\"\", \"\", \"\", 1, 1);\n News news1 = new News(\"\", \"\", \"\", 1, 1);\n SoundEffect soundEff1 = new SoundEffect(\"\", \"\", 1, 1);\n star.addMedia(cD1);\n star.addMedia(tape1);\n cD1.addTrack(music1);\n cD1.addTrack(advertis1);\n tape1.addTrack(soundEff1);\n tape1.addTrack(news1);\n cD1.setLabel(\"8\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "public void run()\n\t{\n\t\tMSetup ms = new MSetup(Env.getCtx(), m_WindowNo);\n\t\tm_frame.setBusyTimer(45);\n\t\t// Step 1\n\t\tboolean ok = ms.createClient(fClientName.getText(), fOrgName.getText(),\n\t\t\tfUserClient.getText(), fUserOrg.getText());\n\t\tString info = ms.getInfo();\n\n\t\tif (ok)\n\t\t{\n\t\t\t// Generate Accounting\n\t\t\tKeyNamePair currency = (KeyNamePair)fCurrency.getSelectedItem();\n\t\t\tif (!ms.createAccounting(currency,\n\t\t\t\tfProduct.isSelected(), fBPartner.isSelected(), fProject.isSelected(),\n\t\t\t\tfMCampaign.isSelected(), fSRegion.isSelected(),\n\t\t\t\tm_file))\n\t\t\t{\n\t\t\t\tADialog.error(m_WindowNo, this, \"AccountSetupError\");\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\t// Generate Entities\n\t\t\tKeyNamePair p = (KeyNamePair)fCountry.getSelectedItem();\n\t\t\tint C_Country_ID = p.getKey();\n\t\t\tp = (KeyNamePair)fRegion.getSelectedItem();\n\t\t\tint C_Region_ID = p.getKey();\n\t\t\tms.createEntities(C_Country_ID, fCity.getText(), C_Region_ID, currency.getKey());\n\t\t\tinfo += ms.getInfo();\n\t\t\t//\tCreate Print Documents\n\t\t\tPrintUtil.setupPrintForm(ms.getAD_Client_ID());\n\t\t}\n\n\t\tADialog.info(m_WindowNo, this, \"VSetup\", info);\n\t\tdispose();\n\t}", "private void jButtonNewStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewStageplaatsActionPerformed\n\n this.geselecteerdeStageplaats = new Stageplaats();\n this.geselecteerdeStageplaats.setSitueertID((Situeert)this.jComboBoxSitueert.getSelectedItem());\n this.geselecteerdeStageplaats.getSitueertID().setSpecialisatieID((Specialisatie)this.jComboBoxSpecialisatie.getSelectedItem());\n this.geselecteerdeStageplaats.setBedrijfID(null);\n this.geselecteerdeStageplaats.setAanmaakDatum(new Date());\n this.geselecteerdeStageplaats.setLaatsteWijziging(new Date());\n this.geselecteerdeStageplaats.setStudentStageplaatsList(new ArrayList<StudentStageplaats>());\n refreshDataCache();\n ClearDisplayedStageplaats();\n refreshDisplayedStageplaats();\n enableButtons();\n }", "public ProductCreate() {\n initComponents();\n }", "private void CUSTOM_SCRAP_CREATE(CalicoPacket p) {\n\t\tp.rewind();\n\t\tp.getInt();\n\t\tlong new_uuid=p.getLong();\n\t\tlong cuuid=p.getLong();\n\t\tint x=p.getInt();\n\t\tint y=p.getInt();\n\t\t\n\t\tCustomScrapController.create_custom_scrap(new_uuid, cuuid, x, y);\n\t\t\n\t}", "public AddDeviceInfo() {\n //super(parent, modal);\n initComponents();\n snosprop= bis.getALLSNOS();\n this.RegisteredSnos();\n }", "@PostMapping(\"/create\")\n public String createSymmetricKey() {\n\n AWSKMS kmsClient = new KmsClientBuilder().buildKmsClient();\n \n String creatingMasterKey = \"Creating Master Key\";\n CreateKeyRequest request = new CreateKeyRequest().withDescription(creatingMasterKey);\n CreateKeyResult result = kmsClient.createKey(request);\n\n return \"Object Type: Symmetric Key\\nuid: \"+ uid + \"\\n\";\n }", "@RequestMapping(value = \"/new\", method = RequestMethod.POST)\n public Object newAuctionx(@ModelAttribute @Valid AuctionForm form, BindingResult result) throws SQLException {\n if(result.hasErrors()) {\n StringBuilder message = new StringBuilder();\n for(FieldError error: result.getFieldErrors()) {\n message.append(error.getField()).append(\" - \").append(error.getRejectedValue()).append(\"\\n\");\n }\n ModelAndView modelAndView = (ModelAndView)newAuction();\n modelAndView.addObject(\"message\", message);\n modelAndView.addObject(\"form\", form);\n return modelAndView;\n }\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n AuctionWrapper wrapper = new AuctionWrapper();\n wrapper.setDemandResourceId(form.getDemandedResourceId());\n wrapper.setDemandAmount(form.getDemandedAmount());\n wrapper.setOfferResourceId(form.getOfferedResourceId());\n wrapper.setOfferAmount(form.getOfferedAmount());\n wrapper.setSellerId(userAuth.getPlayerId());\n auctionRestTemplate.post(auctionURL + \"/new\", wrapper, String.class);\n return new RedirectView(\"/player/trading\");\n }", "void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}", "public static void newUAV(){\n GridPane gp = new GridPane();\n Text title = new Text(\"Create a UAV:\\nUAV Settings\");\n title.setTextAlignment(TextAlignment.CENTER);\n title.setId(\"title\"); // Set CSS style for the title\n GridPane.setColumnSpan(title,3);\n GridPane.setHalignment(title, HPos.CENTER);\n\n gp.setId(\"gridpane\"); // Set CSS style ID for the gridpane\n gp.getStyleClass().add(\"grid\");\n\n // Create the labels for the menu\n Label nameLabel = new Label(\"Name:\");\n Label weightLabel = new Label(\"Weight (g):\");\n Label turnRadiusLabel = new Label(\"Turn Radius (m):\");\n Label maxInclineLabel = new Label(\"Max incline angle (deg):\");\n Label batteryLabel = new Label(\"Battery Type:\");\n Label batteryCapacityLabel = new Label(\"Battery Capacity (mAh):\");\n\n name.setPromptText(\"Name of craft\");\n weight.setPromptText(\"Weight of craft\");\n turnRadius.setPromptText(\"Min turn radius of craft\");\n maxIncline.setPromptText(\"Max incline/decline angle\");\n battery.setPromptText(\"Battery used in craft (Lipo, NiMH, Li-ion...)\");\n batteryCapacity.setPromptText(\"Battery capacity in mAh\");\n\n // Create the buttons for the menu\n Button save = new Button(\"Save\");\n Button cancel = new Button(\"Cancel\");\n Button clear = new Button(\"Clear\");\n\n // Add all elements to the menu gridpane\n gp.add(title,0,0);\n\n // Add the components to the menu gridpane\n gp.add(nameLabel,0,1);\n gp.add(weightLabel,0,2);\n gp.add(turnRadiusLabel,0,3);\n gp.add(maxInclineLabel,0,4);\n gp.add(batteryLabel,0,5);\n gp.add(batteryCapacityLabel,0,6);\n\n gp.add(name,1,1);\n gp.add(weight,1,2);\n gp.add(turnRadius,1,3);\n gp.add(maxIncline,1,4);\n gp.add(battery,1,5);\n gp.add(batteryCapacity,1,6);\n\n // Add the buttons to the menu\n gp.add(save,0,7);\n gp.add(cancel,2,7);\n gp.add(clear,1,7);\n\n gp.setHgap(10);\n gp.setVgap(20);\n gp.setAlignment(Pos.CENTER);\n\n // If the save button is pressed\n save.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n // If a name has not been set\n if(name.getText().isEmpty()){\n System.out.println(\"Missing name for UAV\");\n }else {\n File file = new File(\"src/uavs/\"+name.getText()+\".uav\");\n if(file.exists()){\n dialogMessage.setText(\"The filename \"+ name.getText() +\n \".uav already exists in \"+path+\".\\n Would you like to overwrite?\");\n dialog.show();\n }else {\n writeUAV(); // Write the UAV settings\n createStage.close();\n }\n }\n }\n });\n\n // Close the menu\n cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n createStage.close();\n }\n });\n\n // Clear all text fields\n clear.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n name.clear();\n weight.clear();\n turnRadius.clear();\n maxIncline.clear();\n battery.clear();\n batteryCapacity.clear();\n }\n });\n\n createScene = new Scene(gp,500,700);\n createScene.setUserAgentStylesheet(\"style/menus.css\"); // Set the style of the menu\n createStage.setScene(createScene);\n createStage.show();\n }", "public void genNewRep() {\r\n\r\n /** can possibly delete conditional? or complete this to make a secondary safeguard against error **/\r\n if (tx_cb.getValue() == null || filter.getValue() == null || switchPatch.getValue() == null) {\r\n //conditional to tell if enough information was provide to construct a rf diagram/report\r\n return;\r\n } else{\r\n try {/** when genRep button is clicked, a event occurs and opens a new window, if unable to open, a error is caught **/\r\n\r\n /** get needed product ID's (PID) **/\r\n getSwPID();\r\n getFilterPID();\r\n getPaPID();\r\n getSwitchPID();\r\n\r\n /** get selected values to pass to new window **/\r\n selectedSWDescription = (String)mainExciterSW.getValue();\r\n selectedFilterDescription = (String)filter.getValue();\r\n selectedPADescription = (String)paModules.getValue();\r\n txSelection = (String)tx_cb.getValue();\r\n txSelectionCabinets = cabinets;\r\n if(auxAntFeed.getValue() == null)\r\n auxAntFeedSelection = \"No Aux Antenna\";\r\n else\r\n auxAntFeedSelection = (String)auxAntFeed.getValue();\r\n\r\n\r\n /** load a new scene **/\r\n FXMLLoader fxmlLoader = new FXMLLoader();\r\n fxmlLoader.setLocation(getClass().getResource(\"repStage.fxml\"));\r\n Scene scene = new Scene(fxmlLoader.load(), 1500, 1000);\r\n stage.setTitle(\"Generated report\");\r\n stage.setScene(scene);\r\n stage.setMaximized(true);\r\n stage.show();\r\n } catch (IOException e) {/** catch error opening window **/\r\n Logger logger = Logger.getLogger(getClass().getName());\r\n logger.log(Level.SEVERE, \"Failed to create generate report.\", e);\r\n }\r\n /** displays and opens new window when proper input is detected for all cases **/\r\n return;\r\n }\r\n }", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "@Override\r\n public void playerCreateNewDeck(int playerPosition) {\r\n this.players.get(playerPosition).createNewDeck();\r\n System.out.println(\"Player \" + playerPosition + \" created new deck.\");\r\n }" ]
[ "0.5935462", "0.58450055", "0.5769676", "0.5556646", "0.5538646", "0.5518443", "0.55047375", "0.5435101", "0.53826475", "0.5375885", "0.5359195", "0.5356956", "0.5329298", "0.531929", "0.5311554", "0.5302226", "0.52867377", "0.526174", "0.5229366", "0.5228363", "0.52268535", "0.52258384", "0.5217577", "0.520797", "0.5195576", "0.51949155", "0.5184452", "0.5174693", "0.5174138", "0.51666737", "0.5156522", "0.5154775", "0.51484454", "0.5143594", "0.5136967", "0.51237506", "0.51160103", "0.51075757", "0.50947654", "0.50943476", "0.509385", "0.5087257", "0.5085784", "0.50827974", "0.508189", "0.5077344", "0.5072381", "0.50670624", "0.5066694", "0.5063888", "0.5062562", "0.5061686", "0.50612366", "0.5057823", "0.5056016", "0.5053903", "0.5045097", "0.5031195", "0.5026673", "0.50164884", "0.5013313", "0.5010961", "0.5006877", "0.5006775", "0.50060403", "0.50054914", "0.50019735", "0.50009483", "0.49990067", "0.49984804", "0.49898985", "0.4975366", "0.49752337", "0.49746737", "0.49697644", "0.49673027", "0.4966468", "0.49649438", "0.49561197", "0.49556348", "0.4950938", "0.4950528", "0.49430543", "0.49427134", "0.4940607", "0.49380112", "0.49372032", "0.4935566", "0.49319565", "0.49317458", "0.49265426", "0.49252906", "0.49235386", "0.49210674", "0.49092385", "0.49087885", "0.4907459", "0.4904123", "0.49035713", "0.49034312", "0.48979533" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); tbl_bslip = new javax.swing.JTable(); jLabel7.setFont(new java.awt.Font("Tahoma", 1, 15)); // NOI18N jLabel7.setText("Approval of Borrowing Slip"); jLabel8.setFont(new java.awt.Font("Tahoma", 0, 15)); // NOI18N jLabel8.setText("List of Borrowing Slip"); tbl_bslip.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N tbl_bslip.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null}, {null, null} }, new String [] { "Slip No.", "B.S. Date" } )); tbl_bslip.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tbl_bslipMouseClicked(evt); } }); jScrollPane1.setViewportView(tbl_bslip); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(206, 206, 206) .addComponent(jLabel7)) .addGroup(layout.createSequentialGroup() .addGap(238, 238, 238) .addComponent(jLabel8)) .addGroup(layout.createSequentialGroup() .addGap(66, 66, 66) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 465, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(81, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(21, 21, 21) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel8) .addGap(58, 58, 58) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(86, Short.MAX_VALUE)) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
//GENEND:initComponents / Open List of Tools Borrowed
private void tbl_bslipMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbl_bslipMouseClicked sk161 = new SK161(); int index = tbl_bslip.getSelectedRow(); TableModel model = tbl_bslip.getModel(); String bslip = model.getValueAt(index, 0).toString(); JOptionPane.showMessageDialog(null, bslip); sk161.slipNum = bslip; sk161.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ToolList tools() {\r\n\t\treturn new ToolList(LeapJNI.Hand_tools(this.swigCPtr, this), true);\r\n\t}", "public MakeCPMLEditableTool(){\n\t}", "private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());\n this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);\n this.selectTargetCadastreObjectTool.setCadastreObjectType(CadastreObjectTypeBean.CODE_PARCEL);\n this.getMap().addTool(this.selectTargetCadastreObjectTool, this.getToolbar(), true);\n }", "protected SARLQuickfixProvider getTools() {\n\t\treturn this.tools.get();\n\t}", "@Override\n public JSONObject listOfTools(long renterId) {\n listOfTools = toolDb.getToolsByRenterId(renterId);\n System.out.println(listOfTools);\n return null;\n }", "@Override\n\tpublic String[] myToolIds() {\n\t\tString[] toolIds = { \"sakai.gcalendar\" };\n\t\treturn toolIds;\n\t}", "public ToolsMenu() {\n\t\tsuper(\"Tools\");\n\t}", "public void refreshToolsOwned(List<Tool> tools) {\n\t\townedToolName.getChildren().clear();\n\t\townedPurchaseDate.getChildren().clear();\n\t\townedLendable.getChildren().clear();\n\t\t\n ownedToolName.getChildren().add(new Label(\"Tool Names\"));\n ownedPurchaseDate.getChildren().add(new Label(\"Purchase Dates\"));\n ownedLendable.getChildren().add(new Label(\"Lendability\"));\n\t\t\n\t\tfor (Tool tool: tools) {\n\t\t\tLabel toolName = new Label(tool.getToolName());\n\t\t\tLabel purchaseDate = new Label(tool.getPurchaseDate().toString());\n\t\t\tLabel lendable = new Label((tool.isLendable() ? \"True\": \"False\"));\n\n\t\t\townedToolName.getChildren().add(toolName);\n\t\t\townedPurchaseDate.getChildren().add(purchaseDate);\n\t\t\townedLendable.getChildren().add(lendable);\n\t\t}\n\t}", "public List<Tool> getTool(Object toolData);", "@Override\n public String[] getToolbox() {\n \tString[] ret = { \"TerrainAnalysis\", \"WetlandTools\" };\n \treturn ret;\n }", "public Tool getTool() {\n\treturn tool;\n }", "protected MenuTools(final Menu parent) {\r\n\t\tsuper(parent);\r\n\r\n\t\tthis.tools = this.compile0(this.compileTools());\r\n\r\n\t\tfinal int items = this.tools.size();\r\n\t\tfinal int pages = items < 9 ? 9 * 1 : items < 9 * 2 ? 9 * 2 : items < 9 * 3 ? 9 * 3 : items < 9 * 4 ? 9 * 4 : 9 * 5;\r\n\r\n\t\tthis.setSize(pages);\r\n\t\tthis.setTitle(SimpleLocalization.Menu.TITLE_TOOLS);\r\n\t}", "private void prefillToolList() {\n\t\tToolConfig.clear();\n\t\tConfigurationSection toolDefinitions = config.getConfigurationSection(\"tools\");\n\t\tif (toolDefinitions != null) {\n\t\t\tfor (String toolDefine : toolDefinitions.getKeys(false)) {\n\t\t\t\tToolConfig.initTool(toolDefinitions.getConfigurationSection(toolDefine));\n\t\t\t}\n\t\t} else {\n\t\t\tCropControl.getPlugin().warning(\"No tools defined; if any crop configuration uses a tool config, it will result in a new warning.\");\n\t\t}\n\t}", "public tool() {\n initComponents();\n }", "public String getToolCommand();", "public void setTool(Tool t) {\n\ttool = t;\n }", "public Tool tool() {\n return fTool;\n }", "protected void setTools(SARLQuickfixProvider tools) {\n\t\tthis.tools = new WeakReference<>(tools);\n\t}", "@Override\n public String[] getToolbox() {\n \tString[] ret = { \"VectorTools\" };\n \treturn ret;\n }", "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "public String getToolname() {\r\n return toolname;\r\n }", "public PathwayCommonsAccessTool() {\n super(PC_NAME, PC_RESOURCEID, PC_STRUCTURE);\n try {\n this.getToolResource().setResourceURL(new URL(PC_URL));\n this.getToolResource().setResourceLogo(new URL(PC_LOGO));\n this.getToolResource().setResourceElementURL(PC_ELT_URL);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n this.getToolResource().setResourceDescription(PC_DESCRIPTION);\n }", "public String getToolhead() {\r\n return toolhead;\r\n }", "public ReturnTools getReturnTools() {\n return mReturnTools;\n }", "public interface ITool extends IBuildObject, IHoldsOptions {\n\t// Schema element names\n\tpublic static final String COMMAND = \"command\";\t//$NON-NLS-1$\n\tpublic static final String COMMAND_LINE_PATTERN = \"commandLinePattern\"; //$NON-NLS-1$\n\tpublic static final String COMMAND_LINE_GENERATOR = \"commandLineGenerator\"; //$NON-NLS-1$\n\tpublic static final String DEP_CALC_ID =\"dependencyCalculator\"; //$NON-NLS-1$\n\tpublic static final String INTERFACE_EXTS = \"headerExtensions\";\t//$NON-NLS-1$\n\tpublic static final String NATURE =\t\"natureFilter\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_FLAG = \"outputFlag\";\t//$NON-NLS-1$\n\tpublic static final String INPUT_TYPE = \"inputType\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_TYPE = \"outputType\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUT_PREFIX = \"outputPrefix\";\t//$NON-NLS-1$\n\tpublic static final String OUTPUTS = \"outputs\";\t//$NON-NLS-1$\n\tpublic static final String SOURCES = \"sources\";\t//$NON-NLS-1$\n\tpublic static final String ADVANCED_INPUT_CATEGORY = \"advancedInputCategory\";\t//$NON-NLS-1$\n\tpublic static final String CUSTOM_BUILD_STEP = \"customBuildStep\";\t//$NON-NLS-1$\n\tpublic static final String ANNOUNCEMENT = \"announcement\";\t//$NON-NLS-1$\n\tpublic static final String TOOL_ELEMENT_NAME = \"tool\";\t//$NON-NLS-1$\n\tpublic static final String WHITE_SPACE = \" \";\t//$NON-NLS-1$\n\tpublic static final String EMPTY_STRING = \"\";\t//$NON-NLS-1$\n\tpublic static final String IS_SYSTEM = \"isSystem\";\t\t\t\t\t\t\t//$NON-NLS-1$\n\t\n\tpublic static final String VERSIONS_SUPPORTED = \"versionsSupported\";\t//$NON-NLS-1$\n\tpublic static final String CONVERT_TO_ID = \"convertToId\";\t\t\t\t//$NON-NLS-1$\n\tpublic static final String OPTIONPATHCONVERTER = \"optionPathConverter\";\t\t\t\t//$NON-NLS-1$\n\t\n\tpublic static final String SUPPORTS_MANAGED_BUILD = \"supportsManagedBuild\"; //$NON-NLS-1$\n\t\n\n\tpublic static final int FILTER_C = 0;\n\tpublic static final int FILTER_CC = 1;\n\tpublic static final int FILTER_BOTH = 2;\n\n\t/**\n\t * Returns the tool-chain or resource configuration that is the parent of this tool.\n\t * \n\t * @return IBuildObject\n\t */\n\tpublic IBuildObject getParent();\n\n\t/**\n\t * Creates a child InputType for this tool.\n\t * \n\t * @param InputType The superClass, if any\n\t * @param String The id for the new InputType \n\t * @param String The name for the new InputType\n\t * @param boolean Indicates whether this is an extension element or a managed project element\n\t * \n\t * @return IInputType\n\t * @since 3.0\n\t */\n\tpublic IInputType createInputType(IInputType superClass, String Id, String name, boolean isExtensionElement);\n\n\t/**\n\t * Removes an InputType from the tool's list.\n\t * \n\t * @param type\n\t * @since 3.0\n\t */\n\tpublic void removeInputType(IInputType type);\n\t\n\t/**\n\t * Returns the complete list of input types that are available for this tool.\n\t * The list is a merging of the input types specified for this tool with the \n\t * input types of its superclasses. The lowest input type instance in the hierarchy\n\t * takes precedence. \n\t * \n\t * @return IInputType[]\n\t * @since 3.0\n\t */\n\tpublic IInputType[] getInputTypes();\n\n\t/**\n\t * Returns the <code>IInputType</code> in the tool with the specified \n\t * ID. This is an efficient search in the receiver.\n\t * \n\t * <p>If the receiver does not have an InputType with that ID, the method \n\t * returns <code>null</code>. It is the responsibility of the caller to \n\t * verify the return value. \n\t * \n\t * @param id unique identifier of the InputType to search for\n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getInputTypeById(String id);\n\n\t/**\n\t * Returns the <code>IInputType</code> in the tool that uses the \n\t * specified extension.\n\t * \n\t * <p>If the receiver does not have an InputType that uses the extension, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @param inputExtension File extension\n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getInputType(String inputExtension);\n\n\t/**\n\t * Returns the primary <code>IInputType</code> in this tool\n\t * \n\t * <p>If the receiver has no InputTypes, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @return <code>IInputType</code>\n\t * @since 3.0\n\t */\n\tpublic IInputType getPrimaryInputType();\n\n\t/**\n\t * Returns all of the additional input resources of all InputType children.\n\t * Note: This does not include the primary InputType and does not include\n\t * additional dependencies.\n\t * \n\t * @return IPath[]\n\t */\n\tpublic IPath[] getAdditionalResources();\n\n\t/**\n\t * Returns all of the additional dependency resources of all InputType children.\n\t * Note: This does not include the primary InputType and does not include \n\t * additional inputs.\n\t * \n\t * @return IPath[]\n\t */\n\tpublic IPath[] getAdditionalDependencies();\n\n\t/**\n\t * Creates a child OutputType for this tool.\n\t * \n\t * @param OutputType The superClass, if any\n\t * @param String The id for the new OutputType \n\t * @param String The name for the new OutputType\n\t * @param boolean Indicates whether this is an extension element or a managed project element\n\t * \n\t * @return IOutputType\n\t * @since 3.0\n\t */\n\tpublic IOutputType createOutputType(IOutputType superClass, String Id, String name, boolean isExtensionElement);\n\n\t/**\n\t * Removes an OutputType from the tool's list.\n\t * \n\t * @param type\n\t * @since 3.0\n\t */\n\tpublic void removeOutputType(IOutputType type);\n\t\n\t/**\n\t * Returns the complete list of output types that are available for this tool.\n\t * The list is a merging of the output types specified for this tool with the \n\t * output types of its superclasses. The lowest output type instance in the hierarchy\n\t * takes precedence. \n\t * \n\t * @return IOutputType[]\n\t * @since 3.0\n\t */\n\tpublic IOutputType[] getOutputTypes();\n\t/**\n\t * Get the <code>IOutputType</code> in the receiver with the specified \n\t * ID. This is an efficient search in the receiver.\n\t * \n\t * <p>If the receiver does not have an OutputType with that ID, the method \n\t * returns <code>null</code>. It is the responsibility of the caller to \n\t * verify the return value. \n\t * \n\t * @param id unique identifier of the OutputType to search for\n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getOutputTypeById(String id);\n\n\t/**\n\t * Returns the <code>IOutputType</code> in the tool that creates the \n\t * specified extension.\n\t * \n\t * <p>If the receiver does not have an OutputType that creates the extension, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @param outputExtension File extension\n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getOutputType(String outputExtension);\n\n\t/**\n\t * Returns the primary <code>IOutputType</code> in this tool\n\t * \n\t * <p>If the receiver has no OutputTypes, \n\t * the method returns <code>null</code>. It is the responsibility of the \n\t * caller to verify the return value. \n\t * \n\t * @return <code>IOutputType</code>\n\t * @since 3.0\n\t */\n\tpublic IOutputType getPrimaryOutputType();\n\n\t/**\n\t * Returns the <code>ITool</code> that is the superclass of this\n\t * tool, or <code>null</code> if the attribute was not specified.\n\t * \n\t * @return ITool\n\t */\n\tpublic ITool getSuperClass();\n\t\n\t/**\n\t * Returns whether this element is abstract. Returns <code>false</code>\n\t * if the attribute was not specified.\n\t * @return boolean \n\t */\n\tpublic boolean isAbstract();\n\n\t/**\n\t * Sets the isAbstract attribute of the tool-chain. \n\t * \n\t * @param b\n\t */\n\tpublic void setIsAbstract(boolean b);\n\t\n\t/**\n\t * Returns a semi-colon delimited list of child Ids of the superclass'\n\t * children that should not be automatically inherited by this element.\n\t * Returns an empty string if the attribute was not specified. \n\t * @return String \n\t */\n\tpublic String getUnusedChildren();\n\n\t/**\n\t * Returns the semicolon separated list of unique IDs of the error parsers associated\n\t * with the tool.\n\t * \n\t * @return String\n\t */\n\tpublic String getErrorParserIds();\n\n\t/**\n\t * Returns the ordered list of unique IDs of the error parsers associated with the \n\t * tool.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getErrorParserList();\n\n\t/**\n\t * Sets the semicolon separated list of error parser ids\n\t * \n\t * @param ids\n\t */\n\tpublic void setErrorParserIds(String ids);\n\t\n\t/**\n\t * Returns the list of valid source extensions this tool knows how to build.\n\t * The list may be empty but will never be <code>null</code>.\n\t * \n\t * @return List\n\t * @deprecated - use getPrimaryInputExtensions or getAllInputExtensions\n\t */\n\tpublic List getInputExtensions();\n\t\n\t/**\n\t * Returns the array of valid primary source extensions this tool knows how to build.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getPrimaryInputExtensions();\n\t\n\t/**\n\t * Returns the array of all valid source extensions this tool knows how to build.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllInputExtensions();\n\t\n\t/**\n\t * Returns the default input extension for the primary input of the tool\n\t * \n\t * @return String\n\t */\n\tpublic String getDefaultInputExtension();\n\t\n\t/**\n\t * Returns the array of all valid dependency extensions for this tool's inputs.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllDependencyExtensions();\n\t\n\t/**\n\t * Returns the list of valid header extensions for this tool.\n\t * Returns the value of the headerExtensions attribute\n\t * The list may be empty but will never be <code>null</code>.\n\t * \n\t * @return List\n\t * @deprecated - use getDependency* methods\n\t */\n\tpublic List getInterfaceExtensions();\n\n\t/**\n\t * Answers a constant corresponding to the project nature the tool should be used \n\t * for. Possible answers are:\n\t * \n\t * <dl>\n\t * <dt>ITool.FILTER_C\n\t * <dd>The tool should only be displayed for C projects. <i>Notes:</i> even \n\t * though a C++ project has a C nature, this flag will mask the tool for C++ \n\t * projects. \n\t * <dt>ITool.FILTER_CC\n\t * <dd>The tool should only be displayed for C++ projects.\n\t * <dt>ITool.FILTER_BOTH\n\t * <dd>The tool should be displayed for projects with both natures.\n\t * </dl>\n\t * \n\t * @return int\n\t */\n\tpublic int getNatureFilter();\n\t\n\t/**\n\t * Returns the array of all valid output extensions this tool can create.\n\t * The array may be empty but will never be <code>null</code>.\n\t * \n\t * @return String[]\n\t */\n\tpublic String[] getAllOutputExtensions();\n\t\n\t/**\n\t * Answers all of the output extensions that the receiver can build.\n\t * This routine returns the value if the outputs attribute.\n\t * \n\t * @return <code>String[]</code> of extensions\n\t * @deprecated - use getAllOutputExtensions\n\t */\n\tpublic String[] getOutputExtensions();\n\t\n\t/**\n\t * Answers all of the output extensions that the receiver can build,\n\t * from the value of the outputs attribute\n\t * \n\t * @return <code>String[]</code> of extensions\n\t */\n\tpublic String[] getOutputsAttribute();\n\t\n\t/**\n\t * Answer the output extension the receiver will create from the input, \n\t * or <code>null</code> if the tool does not understand that extension.\n\t * \n\t * @param inputExtension The extension of the source file. \n\t * @return String\n\t */\n\tpublic String getOutputExtension(String inputExtension);\n\t\n\t/**\n\t * Sets all of the output extensions that the receiver can build,\n\t * into the outputs attribute. Note that the outputs attribute is\n\t * ignored when one or more outputTypes are specified. \n\t * \n\t * @param String\n\t */\n\tpublic void setOutputsAttribute(String extensions);\n\t\n\t/**\n\t * Answers the argument that must be passed to a specific tool in order to \n\t * control the name of the output artifact. For example, the GCC compile and \n\t * linker use '-o', while the archiver does not. \n\t * \n\t * @return String\n\t */\n\tpublic String getOutputFlag();\n\t\n\t/**\n\t * Sets the argument that must be passed to a specific tool in order to \n\t * control the name of the output artifact. For example, the GCC compile and \n\t * linker use '-o', while the archiver does not. \n\t * \n\t * @param String\n\t */\n\tpublic void setOutputFlag(String flag);\n\n\t/**\n\t * Answers the prefix that the tool should prepend to the name of the build artifact.\n\t * For example, a librarian usually prepends 'lib' to the target.a\n\t * @return String\n\t */\n\tpublic String getOutputPrefix();\n\n\t/**\n\t * Sets the prefix that the tool should prepend to the name of the build artifact.\n\t * For example, a librarian usually prepends 'lib' to the target.a\n\t * @param String\n\t * @see {@link #setOutputPrefixForPrimaryOutput(String)} \n\t */\n\tpublic void setOutputPrefix(String prefix);\n\t\n\tpublic void setOutputPrefixForPrimaryOutput(String prefix);\n\t\n\t/**\n\t * Returns <code>true</code> if the Tool wants the MBS to display the Advanced \n\t * Input category that allows the user to specify additional input resources and\n\t * dependencies, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean getAdvancedInputCategory();\n\t\n\t/**\n\t * Sets whether the Tool wants the MBS to display the Advanced \n\t * Input category that allows the user to specify additional input resources and\n\t * dependencies. \n\t * \n\t * @param display \n\t */\n\tpublic void setAdvancedInputCategory(boolean display);\n\t\n\t/**\n\t * Returns <code>true</code> if the Tool represents a user-define custom build\n\t * step, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean getCustomBuildStep();\n\t\n\t/**\n\t * Sets whether the Tool represents a user-define custom build step.\n\t * \n\t * @param customBuildStep\n\t */\n\tpublic void setCustomBuildStep(boolean customBuildStep);\n\t\n\t/**\n\t * Returns the announcement string for this tool \n\t * @return String\n\t */\n\tpublic String getAnnouncement();\n\t\n\t/**\n\t * Sets the announcement string for this tool \n\t * @param announcement\n\t */\n\tpublic void setAnnouncement(String announcement);\n\t\n\t/**\n\t * Answers the command-line invocation defined for the receiver.\n\t * \n\t * @return String\n\t */\n\tpublic String getToolCommand();\n\t\n\t/**\n\t * Sets the command-line invocation command defined for this tool.\n\t * \n\t * @param String\n\t * \n\t * @return boolean if <code>true</code>, then the tool command was modified \n\t */\n\tpublic boolean setToolCommand(String command);\n\t\n\t/**\n\t * Returns command line pattern for this tool \n\t * @return String\n\t */\n\tpublic String getCommandLinePattern();\n\t\n\t/**\n\t * Sets the command line pattern for this tool \n\t * @param String\n\t */\n\tpublic void setCommandLinePattern(String pattern);\n\t\n\t/**\n\t * Returns the plugin.xml element of the commandLineGenerator extension or <code>null</code> if none. \n\t * \n\t * @return IConfigurationElement\n\t * \n\t * @deprecated - use getCommandLineGenerator\n\t */\n\tpublic IConfigurationElement getCommandLineGeneratorElement();\n\t\n\t/**\n\t * Sets the CommandLineGenerator plugin.xml element\n\t * \n\t * @param element\n\t * @deprecated\n\t */\n\tpublic void setCommandLineGeneratorElement(IConfigurationElement element);\n\t\n\t/**\n\t * Returns the command line generator specified for this tool\n\t * @return IManagedCommandLineGenerator\n\t */\n\tpublic IManagedCommandLineGenerator getCommandLineGenerator();\n\t\n\t/**\n\t * Returns the plugin.xml element of the dependencyGenerator extension or <code>null</code> if none. \n\t * \n\t * @return IConfigurationElement\n\t * @deprecated - use getDependencyGeneratorForExtension or IInputType#getDependencyGenerator method\n\t */\n\tpublic IConfigurationElement getDependencyGeneratorElement();\n\t\n\t/**\n\t * Sets the DependencyGenerator plugin.xml element\n\t * \n\t * @param element\n\t * @deprecated \n\t */\n\tpublic void setDependencyGeneratorElement(IConfigurationElement element);\n\t\n\t/**\n\t * Returns a class instance that implements an interface to generate \n\t * source-level dependencies for the tool specified in the argument. \n\t * This method may return <code>null</code> in which case, the receiver \n\t * should assume that the tool does not require dependency information \n\t * when the project is built.\n\t *\n\t * @return IManagedDependencyGenerator\n\t * @deprecated - use getDependencyGeneratorForExtension or IInputType method\n\t */\n\tpublic IManagedDependencyGenerator getDependencyGenerator();\n\t\n\t/**\n\t * Returns a class instance that implements an interface to generate \n\t * source-level dependencies for the tool specified in the argument. \n\t * This method may return <code>null</code> in which case, the receiver \n\t * should assume that the tool does not require dependency information \n\t * when the project is built.\n\t *\n\t * @param sourceExt source file extension\n\t * @return IManagedDependencyGeneratorType\n\t */\n\tpublic IManagedDependencyGeneratorType getDependencyGeneratorForExtension(String sourceExt);\n\t\n\t/**\n\t * Returns an array of command line arguments that have been specified for\n\t * the tool.\n\t * The flags contain build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the flags contain all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the flags contain\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @return String[]\n\t * @throws BuildException\n\t * \n\t * @deprecated - use getToolCommandFlags instead\n\t */\n\tpublic String[] getCommandFlags() throws BuildException;\n\t\n\t/**\n\t * Returns the command line arguments that have been specified for\n\t * the tool.\n\t * The string contains build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the string contains all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the string contains\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @return String\n\t * \n\t * @deprecated - use getToolCommandFlagsString instead\n\t */\n\tpublic String getToolFlags() throws BuildException ;\n\t\n\t/**\n\t * Returns an array of command line arguments that have been specified for\n\t * the tool.\n\t * The flags contain build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the flags contain all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the flags contain\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @param inputFileLocation\n\t * @param outputFileLocation\n\t * @return\n\t * @throws BuildException\n\t */\n\tpublic String[] getToolCommandFlags(IPath inputFileLocation, IPath outputFileLocation) throws BuildException;\n\t\n\t/**\n\t * Returns the command line arguments that have been specified for\n\t * the tool.\n\t * The string contains build macros resolved to the makefile format.\n\t * That is if a user has chosen to expand all macros in the buildfile,\n\t * the string contains all macro references resolved, otherwise, if a user has \n\t * chosen to keep the environment build macros unresolved, the string contains\n\t * the environment macro references converted to the buildfile variable format,\n\t * all other macro references are resolved \n\t * \n\t * @param inputFileLocation\n\t * @param outputFileLocation\n\t * @return\n\t * @throws BuildException\n\t */\n\tpublic String getToolCommandFlagsString(IPath inputFileLocation, IPath outputFileLocation) throws BuildException;\n\n\t/**\n\t * Options are organized into categories for UI purposes.\n\t * These categories are organized into a tree. This is the root\n\t * of that tree.\n\t * \n\t * @return IOptionCategory\n\t */\n\tpublic IOptionCategory getTopOptionCategory(); \n\n\t/**\n\t * Return <code>true</code> if the receiver builds files with the\n\t * specified extension, else <code>false</code>.\n\t * \n\t * @param extension file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean buildsFileType(String extension);\n\n\t/**\n\t * Return <code>true</code> if the receiver uses files with the\n\t * specified extension as input, else <code>false</code>. This\n\t * returns true for a superset of the extensions that buildFileType\n\t * returns true for - it includes secondary inputs.\n\t * \n\t * @param extension file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean isInputFileType(String extension);\n\t\n\t/**\n\t * Answers <code>true</code> if the tool considers the file extension to be \n\t * one associated with a header file.\n\t * \n\t * @param ext file extension of the source\n\t * @return boolean\n\t */\n\tpublic boolean isHeaderFile(String ext);\n\n\t/**\n\t * Answers <code>true</code> if the receiver builds a file with the extension specified\n\t * in the argument, else <code>false</code>.\n\t * \n\t * @param outputExtension extension of the file being produced by a tool\n\t * @return boolean\n\t */\n\tpublic boolean producesFileType(String outputExtension);\n\n\t/**\n\t * Returns <code>true</code> if this tool has changes that need to \n\t * be saved in the project file, else <code>false</code>.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean isDirty();\n\t\n\t/**\n\t * Sets the element's \"dirty\" (have I been modified?) flag.\n\t * \n\t * @param isDirty\n\t */\n\tpublic void setDirty(boolean isDirty);\n\t\n\t/**\n\t * Returns <code>true</code> if this tool was loaded from a manifest file,\n\t * and <code>false</code> if it was loaded from a project (.cdtbuild) file.\n\t * \n\t * @return boolean \n\t */\n\tpublic boolean isExtensionElement();\n\t\n\t/**\n\t * Returns the 'versionsSupported' of this tool\n\t * \n\t * @return String\n\t */\n\tpublic String getVersionsSupported();\n\t\n\t/**\n\t * Returns the 'convertToId' of this tool\n\t * \n\t * @return String\n\t */\n\tpublic String getConvertToId();\n\n\t/**\n\t * Sets the 'versionsSupported' attribute of the tool. \n\t * \n\t * @param versionsSupported\n\t */\t\n\tpublic void setVersionsSupported(String versionsSupported);\n\t\n\t/**\n\t * Sets the 'convertToId' attribute of the tool. \n\t * \n\t * @param convertToId\n\t */\n\tpublic void setConvertToId(String convertToId);\n\t\n\t/**\n\t * Returns an array of the Environment Build Path variable descriptors\n\t * \n\t * @return IEnvVarBuildPath[]\n\t */\n\tpublic IEnvVarBuildPath[] getEnvVarBuildPaths();\n\t\n\t/**\n\t * Returns an IOptionPathConverter implementation for this tool\n\t * or null, if no conversion is required\n\t */\n\tpublic IOptionPathConverter getOptionPathConverter() ;\n\t\n\tCLanguageData getCLanguageData(IInputType type);\n\t\n\tCLanguageData[] getCLanguageDatas();\n\t\n\tIInputType getInputTypeForCLanguageData(CLanguageData data);\n\t\n\tIResourceInfo getParentResourceInfo();\n\t\n/*\tIInputType setSourceContentTypeIds(IInputType type, String[] ids);\n\n\tIInputType setHeaderContentTypeIds(IInputType type, String[] ids);\n\t\n\tIInputType setSourceExtensionsAttribute(IInputType type, String[] extensions);\n\n\tIInputType setHeaderExtensionsAttribute(IInputType type, String[] extensions);\n*/\n\tIInputType getEditableInputType(IInputType base);\n\t\n\tIOutputType getEditableOutputType(IOutputType base);\n\t\n\tboolean isEnabled();\n\t\n//\tboolean isReal();\n\t\n\tboolean supportsBuild(boolean managed);\n\t\n\tboolean matches(ITool tool);\n\t\n\tboolean isSystemObject();\n\t\n\tString getUniqueRealName();\n}", "public ToolScreen addToolbars()\n {\n ToolScreen toolbar = super.addToolbars();\n \n ToolScreen toolbar2 = new EmptyToolbar(this.getNextLocation(ScreenConstants.LAST_LOCATION, ScreenConstants.DONT_SET_ANCHOR), this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null);\n BaseField converter = null;\n ScreenComponent sField = null;\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.GROSS);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NET);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.PRICING_STATUS_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NON_TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n \n return toolbar;\n }", "public String getToolId(){\n\t\treturn \"sakai.gcalendar\";\t\t\n\t}", "public void softwareWareResources() {\n\t\tSystem.out.println(\"softwareResources\");\r\n\t}", "protected MenuTools() {\r\n\t\tthis(null);\r\n\t}", "public String getToolisuse() {\r\n return toolisuse;\r\n }", "public String getTool() {\n\t\treturn tool;\n\t}", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "public Menu createToolsMenu();", "private ItemStack getToolWhenHasnt() {\r\n\t\treturn this.item;\r\n\t}", "private String toolType() {\n\t\tfor (int toolId : mTools) {\n\t\t\tif (toolId == 267) return \"swords\";\n\t\t\tif (toolId == 292) return \"hoes\";\n\t\t\tif (toolId == 258) return \"axes\";\n\t\t\tif (toolId == 270) return \"pickaxes\";\n\t\t\tif (toolId == 257) return \"most picks\";\n\t\t\tif (toolId == 278) return \"high picks\";\n\t\t\tif (toolId == 256) return \"shovels\";\n\t\t}\n\t\treturn \"any tool\";\n\t}", "public Tool() {\n initComponents();\n }", "String getExternalToolName();", "public void setToolhead(String toolhead) {\r\n this.toolhead = toolhead;\r\n }", "public interface ToolConverter {\r\n /**\r\n * This method should return a well formed tool\r\n * from the data given.\r\n * <p>\r\n * If is possible to return multiple tools.\r\n * \r\n * @param toolData The data from the lms.\r\n * @return The tool(s) as described in Unipoole.\r\n */\r\n public List<Tool> getTool(Object toolData);\r\n}", "public UtilityToolUsedEvent(UtilityTool toolUsed, Point locationUsed) {\n super(toolUsed);\n this.locationUsed = locationUsed;\n }", "private ItemStack getToolWhenHas() {\r\n\t\treturn ItemCreator\r\n\t\t\t\t.of(this.item)\r\n\t\t\t\t.glow(true)\r\n\t\t\t\t.lore(\"\", \"&6You already have this item.\", \"&6Click to take it away.\")\r\n\t\t\t\t.makeMenuTool();\r\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tools)) {\n return false;\n }\n Tools other = (Tools) object;\n if ((this.toolid == null && other.toolid != null) || (this.toolid != null && !this.toolid.equals(other.toolid))) {\n return false;\n }\n return true;\n }", "private JadTool() { }", "public String getToolString() {\r\n\t\treturn Utility.convertTo4Byte(ScoolConstants.NEW_WHITEBOARD_ACTION);\r\n\t}", "public void softwareResources() {\n\t\t\r\n\t}", "@Test public void shouldReturnTheToolIntTheListWhenSearchedByItsName() {\n\t\tgiven.imInTheMainPage();\n\t\twhen.searchByAToolName(TOOLS.ADPWEB.toolName());\n\t\tthen.mySearchWillReturnTheTools(TOOLS.ADPWEB);\n\t}", "protected void createTools(Panel palette) {\n Tool tool = createSelectionTool();\n\n fDefaultToolButton = createToolButton(IMAGES+\"SEL\", \"Selection Tool\", tool);\n palette.add(fDefaultToolButton);\n }", "public void setReturnTools(ReturnTools pReturnTools) {\n mReturnTools = pReturnTools;\n }", "public String getTooltype() {\r\n return tooltype;\r\n }", "private boolean hasTools() {\n return hasTools(getAIUnit());\n }", "public String toString() {\n\t\treturn super.toString()+\" for \"+purpose+\" using \";}", "public ClaimableTools getClaimableTools() {\n return mClaimableTools;\n }", "public StoreCatalogTools getCatalogTools() {\n return mCatalogTools;\n }", "private void makeToolsMenu() {\r\n\t\tJMenu toolsMnu = new JMenu(\"Herramientas\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Usuarios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Manejo de Usuarios\",\r\n\t\t\t\t\timageLoader.getImage(\"users.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'm',\r\n\t\t\t\t\t\"Manejar los usuarios del sistema\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F7, 0), Users.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"FacturacionManual\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion Manual\",\r\n\t\t\t\t\timageLoader.getImage(\"kwrite.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Manejar la Facturacion Manual\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F3, 0), ManualInvoice.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\ttoolsMnu.setMnemonic('h');\r\n\t\t\tadd(toolsMnu);\r\n\t\t}\r\n\t}", "private final List<ToggleableTool> compile0(final Object... tools) {\r\n\t\tfinal List<ToggleableTool> list = new ArrayList<>();\r\n\r\n\t\tif (tools != null)\r\n\t\t\tfor (final Object tool : tools)\r\n\t\t\t\tlist.add(new ToggleableTool(tool));\r\n\r\n\t\treturn list;\r\n\t}", "@SuppressWarnings(\"LeakingThisInConstructor\")\n public ToolsMenu(MMStudio studio, JMenuBar menuBar) {\n mmStudio_ = studio;\n core_ = mmStudio_.core();\n quickAccessMenu_ = new JMenu(\"Quick Access Panels\");\n\n JMenu toolsMenu = GUIUtils.createMenuInMenuBar(menuBar, \"Tools\");\n\n GUIUtils.addMenuItem(toolsMenu, \"Refresh GUI\",\n \"Refresh all GUI controls directly from the hardware\", () -> {\n core_.updateSystemStateCache();\n mmStudio_.uiManager().updateGUI(true);\n },\n \"arrow_refresh.png\");\n\n toolsMenu.addSeparator();\n\n GUIUtils.addMenuItem(toolsMenu, \"Script Panel...\",\n \"Open Micro-Manager script editor window\",\n mmStudio_.uiManager()::showScriptPanel);\n\n populateQuickAccessMenu();\n toolsMenu.add(quickAccessMenu_);\n\n GUIUtils.addMenuItem(toolsMenu, \"Shortcuts...\",\n \"Create keyboard shortcuts to activate image acquisition, \"\n + \"mark positions, or run custom scripts\",\n HotKeysDialog::new);\n\n GUIUtils.addMenuItem(toolsMenu, \"Messages...\",\n \"Show the Messages window\", () -> ((DefaultAlertManager)\n mmStudio_.alerts()).alertsWindow().showWithoutFocus(),\n \"bell.png\");\n\n toolsMenu.addSeparator();\n\n GUIUtils.addMenuItem(toolsMenu, \"Stage Control...\",\n \"Control the stage position with a virtual joystick\",\n () -> StageControlFrame.showStageControl(mmStudio_),\n \"move.png\");\n\n centerAndDragMenuItem_ = GUIUtils.addCheckBoxMenuItem(toolsMenu,\n \"Mouse Moves Stage (Use Hand Tool)\",\n \"When enabled, double clicking or dragging in the snap/live\\n\"\n + \"window moves the XY-stage. Requires the hand tool.\", () -> {\n boolean state = centerAndDragMenuItem_.isSelected();\n mmStudio_.updateCenterAndDragListener(state);\n String icon = state ? \"move_hand_on.png\" : \"move_hand.png\";\n centerAndDragMenuItem_.setIcon(IconLoader.getIcon(\n \"/org/micromanager/icons/\" + icon));\n },\n getMouseMovesStage());\n String icon = getMouseMovesStage() ? \"move_hand_on.png\" : \"move_hand.png\";\n centerAndDragMenuItem_.setIcon(IconLoader.getIcon(\n \"/org/micromanager/icons/\" + icon));\n\n GUIUtils.addMenuItem(toolsMenu, \"Stage Position List...\",\n \"Open the stage position list window\",\n () -> mmStudio_.app().showPositionList(),\n \"application_view_list.png\");\n\n toolsMenu.addSeparator();\n\n GUIUtils.addMenuItem(toolsMenu, \"Multi-Dimensional Acquisition...\",\n \"Open multi-dimensional acquisition setup window\",\n mmStudio_.uiManager()::openAcqControlDialog,\n \"film.png\");\n\n toolsMenu.addSeparator();\n\n GUIUtils.addMenuItem(toolsMenu, \"Options...\",\n \"Set a variety of Micro-Manager configuration options\", () -> {\n final int oldBufsize = mmStudio_.settings().getCircularBufferSize();\n\n OptionsDlg dlg = new OptionsDlg(core_, mmStudio_);\n dlg.setVisible(true);\n // adjust memory footprint if necessary\n if (oldBufsize != mmStudio_.settings().getCircularBufferSize()) {\n try {\n core_.setCircularBufferMemoryFootprint(\n mmStudio_.settings().getCircularBufferSize());\n } catch (Exception exc) {\n ReportingUtils.showError(exc);\n }\n }\n });\n\n mmStudio_.events().registerForEvents(this);\n }", "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "public Tool tool(int paramInt) {\r\n\t\treturn new Tool(LeapJNI.Hand_tool(this.swigCPtr, this, paramInt), true);\r\n\t}", "static void TinkersEdits()\n\t{\n\t\tGameRegistry.addShapelessRecipe(new ItemStack(14276/*Seared Brick Ingot*/,3,2), new ItemStack(1474/*Seared Brick Block*/,1,2));\n\t}", "public void refreshToolCollection(List<Tool> tools) {\n\t\tcollectionToolName.getChildren().clear();\n\t\tcollectionPurchaseDate.getChildren().clear();\n\t\tcollectionReturnButtons.getChildren().clear();\n\n\t\tcollectionToolName.setSpacing(8);\n\t\tcollectionPurchaseDate.setSpacing(8);\n\t\t\n collectionToolName.getChildren().add(new Label(\"Tool Names\"));\n collectionPurchaseDate.getChildren().add(new Label(\"Purchase Dates\"));\n collectionReturnButtons.getChildren().add(new Label(\"Return back to owner\"));\n\t\t\n\t\tfor (Tool tool: tools) {\n\t\t\tLabel toolName = new Label(tool.getToolName());\n\t\t\tLabel purchaseDate = new Label(tool.getPurchaseDate().toString());\n\t\t\tButton returnButton = new Button();\n\t\t\treturnButton.setText(\"Return\");\n\t\t\treturnButton.setOnAction(new EventHandler<ActionEvent>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\tappUser.returnTool(tool);\n\t\t\t\t\t\n\t\t\t\t\trefreshToolCollection(appUser.getToolCollection());\n\t\t\t\t\trefreshToolCollection(appUser.getOwnedTools());\n\t\t\t\t\trefreshLogs(appUser.getLendingLogs(), conn.fetchAllUsers());\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tcollectionToolName.getChildren().add(toolName);\n\t\t\tcollectionPurchaseDate.getChildren().add(purchaseDate);\n\t\t\tcollectionReturnButtons.getChildren().add(returnButton);\n\t\t}\n\t}", "public int getToolFlag() {\r\n return toolFlag;\r\n }", "public void setToolisuse(String toolisuse) {\r\n this.toolisuse = toolisuse;\r\n }", "public void setToolname(String toolname) {\r\n this.toolname = toolname;\r\n }", "public String getToolheadid() {\r\n return toolheadid;\r\n }", "public ListIDE() {\n initComponents();\n loadAsset();\n directory = new Directory();\n }", "public interface IToolPart extends IMaterialItem {\n /**\n * Gets the stat type for the given item, limits which materials are supported\n * @return Stat type for the given item\n */\n MaterialStatsId getStatType();\n}", "private void BuildingCombo() {\n \n }", "@Override\n\tpublic String getToolbox()\n\t{\n\t\tString toolbox = \"Image processing\";\n\t\treturn toolbox;\n\t}", "public static LinkTool getTool()\n {\n if (singleton == null) {\n // new Throwable(\"Warning: LinkTool.getTool: class not initialized by VUE\").printStackTrace();\n new LinkTool();\n }\n return singleton;\n }", "public ToolBar(final List<AbstractAction> theToolActions) {\n super();\n myToolActions = theToolActions;\n\n setupButtons();\n\n }", "public void createPartControl(Composite parent) {\n ex = new SWTIRBConsole(parent, new IRBConfigData(){{\n setTitle(\" Welcome to the AWEScript Console \\n\\n\");\n addExtraGlobal(\"view\", RubyConsole.this);\n addExtraGlobal(\"catalog\", net.refractions.udig.catalog.CatalogPlugin.getDefault());\n addExtraGlobal(\"catalogs\", net.refractions.udig.catalog.CatalogPlugin.getDefault().getCatalogs());\n addExtraGlobal(\"projects\", net.refractions.udig.project.ui.ApplicationGIS.getProjects());\n addExtraGlobal(\"active_project\", net.refractions.udig.project.ui.ApplicationGIS.getActiveProject());\n try{\n \t// TODO: Check if 'buddy class loading' is required for this, since the plugins are not explicitly specified as dependencies\n \taddExtraGlobal(\"json_reader_class\", Class.forName(\"org.amanzi.awe.catalog.json.JSONReader\"));\n \taddExtraGlobal(\"neo_reader_class\", Class.forName(\"org.amanzi.awe.catalog.neo.NeoReader\"));\n }catch(ClassNotFoundException e){\n \tSystem.err.println(\"Cannot find possible FeatureSource class: \"+e.getMessage());\n \t//e.printStackTrace(System.err);\n }\n addExtraGlobal(\"feature_source_class\", org.geotools.data.FeatureSource.class);\n \n //manager of spreadsheets\n addExtraGlobal(\"spreadsheet_manager\", SpreadsheetManager.getInstance()); \n \n String userDir = System.getProperty(\"user.home\");\n setExtraLoadPath(new String[]{userDir+\"/.awe/script\",userDir+\"/.awe/lib\"});\n try{\n // Add the code from the internal plugin awescript.rb to the startup\n \taddExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"gisCommands.rb\")));\n addExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"awescript.rb\")));\n addExtraScript(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"spreadsheet.rb\"))); \n \n }catch(Exception e){\n System.err.println(\"Failed to add internal awescript startup: \"+e);\n e.printStackTrace(System.err);\n setExtraRequire(new String[]{\"awescript\"}); // try find the script from Ruby instead\n }\n \n }});\n \t\t// Create the help context id for the viewer's control\n \t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(ex, \"org.amanzi.awe.script.jirb\");\n \t\tmakeActions();\n \t\thookContextMenu();\n \t\tcontributeToActionBars();\n \t}", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:02.373 -0500\", hash_original_method = \"00F8174F9E89D0C972FA6D3F19742382\", hash_generated_method = \"D90463461B2A94FF94D13FDF69BB80C9\")\n \npublic int describeContents() {\n return 0;\n }", "public void itemStateChanged(ItemEvent evt) {\n if(evt.getStateChange() != ItemEvent.SELECTED)\n return;\n\n JToolButton button = (JToolButton)evt.getSource();\n\n String toolId = button.getActionCommand();\n Tool tool = toolIdToToolMap.get(toolId);\n if(currentTool != tool) {\n ViewManager viewManager = ViewManager.getViewManager();\n viewManager.setTool(tool);\n\n int type = tool.getToolType();\n if (type != Entity.TYPE_WORLD) {\n\t ToolBarManager toolManager = ToolBarManager.getToolBarManager();\n\t toolManager.setTool(tool);\n }\n }\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.404 -0500\", hash_original_method = \"CD5C82C799E78C74801FDB521CEE7324\", hash_generated_method = \"CD5C82C799E78C74801FDB521CEE7324\")\n \nContext ()\n {\n copyTables();\n }", "private CheckingTools() {\r\n super();\r\n }", "@RequestMapping(value = \"/tools/{moduleId}\", method = RequestMethod.GET)\n public @ResponseBody List<Tool> getTools(@PathVariable String moduleId){\n return creatorService.getTools(moduleId);\n }", "@Override\n\tpublic String[] getToolEventNames() {\n\t\treturn new String[] { \"DummyToolEvent\" };\n\t}", "Persoana(Tools t, int cr) { ob = null; ti = t; currentrowi = cr; }", "protected static Tool doNothing() {\n return DoNothingTool.INSTANCE;\n }", "public Tool getActiveTool()\n {\n return GametableFrame.getGametableFrame().getGametableCanvas().getActiveTool();\n }", "public ToolStatus getToolStatus() { return toolStatus;\n }", "public Object caseToolDefinition(ToolDefinition object) {\n\t\treturn null;\n\t}", "public Tool getCurrentTool() {\n return fCurrTool;\n }", "private ArrayList<Tool> sellTools(Shop shop, ArrayList<Tool> toolList, String selection) {\n while (selection.contentEquals(\"Y\")) {\n System.out.println(\"What is the tool ID you would like to order?\");\n int toolId = receiveNumberInput();\n System.out.println(\"How many?\");\n int quantity = receiveNumberInput();\n if (checkValidQuantity(quantity)){\n CheckToolSale(shop, toolId, quantity);\n toolList = shop.checkAllStock();\n }\n else {\n System.out.println(\"Quantity entered can not be a negative number.\");\n }\n System.out.println(\"Would you like to add more? \" +\n \"Press Y or hit any other key then press enter to continue.\");\n selection = userInput.nextLine();\n }\n return toolList;\n }", "public void setUseTool(ToolCardEvent event)\n {\n useTool = event;\n }", "@Override\n public List<OasisEditIF> getEditIdsUsed() {\n return super.getEditIdsUsed_base\n (\n OasisEditsEN.EDIT_3060,\n OasisEditsEN.EDIT_4220,\n OasisEditsEN.EDIT_4230\n );\n }", "public void hardWareResources() {\n\t\tSystem.out.println(\"HadwareResources\");\r\n\t}", "@Override()\n public String getToolName()\n {\n return \"ldap-debugger\";\n }", "public void changeBuyerMaker(Record buyerRecord){\n if(doingDB2Gui)return;\r\n try{\r\n //find out the vector to add dbDeps.\r\n if (buyerRecord==null) {\r\n //only the all dep is allow to add now.\r\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\r\n cbxDiv,\r\n prdHead.QRY_CONDITION_DIVISION,\r\n new Vector(),\r\n \"DIV_NAME\",\"DIV_CODE\",\r\n null,\"N/A\",null);\r\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\r\n\r\n if(divCbxDBGUI_index == guis.size()) {\r\n guis.add(DbJcbxcbxDiv);\r\n }else{\r\n //just replace after display & change;\r\n guis.set(divCbxDBGUI_index,DbJcbxcbxDiv);\r\n }\r\n\r\n }else {\r\n //deps and \"ALL\"dep allow to add.\r\n Vector dvsnRecords=\r\n (Vector)tempProperties.tmpHMap_BuyerDivison.get(\r\n buyerRecord.get(0).toString());\r\n DbJcbxcbxDiv=null;\r\n if(dvsnRecords==null){\r\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\r\n cbxDiv,\r\n prdHead.QRY_CONDITION_DIVISION,\r\n new Vector(),\r\n \"DIV_NAME\",\r\n \"DIV_CODE\",\r\n null,\"N/A\",null);\r\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\r\n }else {\r\n DbJcbxcbxDiv=new exgui.DataBindJCombobox(\r\n cbxDiv,\r\n prdHead.QRY_CONDITION_DIVISION,\r\n dvsnRecords,\r\n \"DIV_NAME\",\r\n \"DIV_CODE\",\r\n null,\"N/A\",null);\r\n //cbxDiv.setUI(new exgui.WideComboBoxUI(160));\r\n }\r\n\r\n if (divCbxDBGUI_index == guis.size()) {\r\n guis.add(DbJcbxcbxDiv);\r\n }else{\r\n guis.set(divCbxDBGUI_index,DbJcbxcbxDiv);\r\n }\r\n }\r\n\r\n }catch(Exception exp){\r\n exp.printStackTrace();\r\n }\r\n }", "public void setIndexTool(int index) {\r\n this.indexTool = index;\r\n }", "public YelpTool() {\n initComponents();\n }", "@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}", "public String getToolFlags() throws BuildException ;", "private static boolean hasTools(AIUnit aiUnit) {\n return aiUnit.getUnit().hasAbility(\"model.ability.improveTerrain\");\n }", "protected Tool createSelectionTool() {\n return new SelectionTool(view());\n }", "public void showTool(PlayerClient[] players, DraftPoolMP draft, RoundTrackMP track, int[] tools, int activePlayer, int me, ToolCardEvent event) throws InvalidIntArgumentException, FileNotFoundException {\n printOut(cliToolsManager.sceneInitializer(width));\n printOut(printerMaker.getGameScene(players, draft, track, privateObjective, pubObjs, tools, activePlayer, me));\n\n switch (event.getId()) {\n\n case 1: {\n ToolCardOneEvent currentEvent = (ToolCardOneEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n\n if(currentEvent.getAction() == '+')\n printOut(cliToolsManager.simpleQuestionsMaker(\"L'ha aumentato di valore e piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n else\n printOut(cliToolsManager.simpleQuestionsMaker(\"L'ha diminuito di valore e piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n\n break;\n }\n\n case 2: {\n ToolCardTwoThreeEvent currentEvent = (ToolCardTwoThreeEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getX0()+1) + \" , \" + (currentEvent.getY0()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX1()+1) + \",\" + (currentEvent.getY1()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 3: {\n ToolCardTwoThreeEvent currentEvent = (ToolCardTwoThreeEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getX0()+1) + \",\" + (currentEvent.getY0()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX1()+1) + \",\" + (currentEvent.getY1()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 4: {\n ToolCardFourEvent currentEvent = (ToolCardFourEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso i dadi in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" e \" + (currentEvent.getX02()+1) + \",\" + (currentEvent.getY02()+1) + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e li ha spostati in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \" e \" + (currentEvent.getX22()+1) + \",\" + (currentEvent.getY22()+1) + \"\\n\\n\",40,true));\n break;\n }\n\n case 5: {\n ToolCardFiveEvent currentEvent = (ToolCardFiveEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha scambiato con il dado nel turno \" + (currentEvent.getTurn()+1) + \" della roundtrack, in posizione \" + (currentEvent.getPos()+1),40,false));\n break;\n }\n\n case 6: {\n ToolCardSixEvent currentEvent = (ToolCardSixEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha scelto il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft e l'ha ritirato, nuovo valore \" + currentEvent.getNewValue() + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \",\" + (currentEvent.getY()+1) + \" dello schema\",40,true));\n break;\n }\n\n case 7: {\n ToolCardSevenEvent currentEvent = (ToolCardSevenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha ritirato tutti i dadi della draft\\n\\n\",40,false));\n break;\n\n }\n\n case 8: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso un altro dado dalla draft, in posizione \" + (currentEvent.getIndex()+1) + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" salterà il suo secondo turno in questo round\\n\\n\",40,false));\n break;\n }\n\n case 9: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\",40,false));\n break;\n }\n\n case 10: {\n ToolCardEightNineTenEvent currentEvent = (ToolCardEightNineTenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft , l'ha girato sulla faccia opposta\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\\n\\n\",40,false));\n break;\n }\n\n case 11: {\n ToolCardElevenEvent currentEvent = (ToolCardElevenEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha preso il dado in posizione \" + (currentEvent.getIndex()+1) + \" della draft e l'ha rimesso nel sacchetto\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha pescato un nuovo dado di colore \" + cliToolsManager.getColor(currentEvent.getNewColor()) + \" , ha scelto il valore \" + currentEvent.getNewValue() + \"\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha piazzato in posizione \" + (currentEvent.getX()+1) + \" , \" + (currentEvent.getY()+1) + \" dello schema\" + \"\\n\\n\",40,false));\n break;\n }\n\n case 12: {\n ToolCardTwelveEvent currentEvent = (ToolCardTwelveEvent)event;\n printOut(cliToolsManager.simpleQuestionsMaker(\"Il giocatore \" + players[activePlayer].getName() + \" ha usato la carta strumento \" + currentEvent.getId(),40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha scelto il colore del dado nel turno \" + (currentEvent.getTurn()+1) + \" roundtrack, in posizione \" + (currentEvent.getPos()+1) + \"\\n\",40,false));\n\n if(currentEvent.isOnlyOne()) {\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha deciso di spostare un solo dado\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha preso il dado in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" dello schema\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e l'ha spostato in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \"\\n\\n\",40,true));\n }\n\n else {\n printOut(cliToolsManager.simpleQuestionsMaker(players[activePlayer].getName() + \" ha deciso di spostare un due dadi\\n\",40,false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"ha preso i dadi in posizione \" + (currentEvent.getX01()+1) + \",\" + (currentEvent.getY01()+1) + \" e \" + (currentEvent.getX02()+1) + \",\" + (currentEvent.getY02()+1) + \"\\n\", 40, false));\n printOut(cliToolsManager.simpleQuestionsMaker(\"e li ha spostati in posizione \" + (currentEvent.getX11()+1) + \",\" + (currentEvent.getY11()+1) + \" e \" + (currentEvent.getX22()+1) + \",\" + (currentEvent.getY22()+1) + \"\\n\\n\", 40, true));\n }\n break;\n }\n\n\n\n }\n\n\n }", "private ReferencableComboBox getCbxUsage() {\n\tif (ivjCbxUsage == null) {\n\t\ttry {\n\t\t\tivjCbxUsage = new ch.ehi.umleditor.application.ReferencableComboBox();\n\t\t\tivjCbxUsage.setName(\"CbxUsage\");\n\t\t\tivjCbxUsage.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjCbxUsage;\n}", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "public CommandLineTool getCommandLineToolInstance() {\n \treturn COMMAND_LINE_TOOL;\n }", "public void toolUpdated(ToolGroupEvent evt) { \n \n Tool tool = (Tool)evt.getChild();\n String toolId = tool.getToolID();\n \n if (toolIdToToolMap.containsKey(toolId)) {\n toolIdToToolMap.put(toolId, tool);\n }\n \n // get the button to update\n JToolButton button = toolIdToButtonMap.get(toolId);\n \n // update the hover-over if necessary\n String desc = tool.getDescription();\n if (displayHoverover && desc != null && !desc.equals(\"\")) {\n \n // create the hoverover and re-assign it\n String hoveroverText = generateHoverover(tool);\n button.setToolTipText(hoveroverText);\n \n }\n\n //\n // now request the icon if necessary\n //\n Boolean hiddenTool =\n (Boolean)tool.getProperty(\n Entity.DEFAULT_ENTITY_PROPERTIES,\n ChefX3DRuleProperties.HIDE_IN_CATALOG);\n \n if (hiddenTool == null || !hiddenTool) {\n \n String iconPath = tool.getIcon();\n \n // check the cache for the resource\n if (clientCache.doesAssetExist(iconPath)) {\n \n // call the resource loaded directly\n try {\n InputStream resourceStream =\n clientCache.retrieveAsset(iconPath);\n resourceLoaded(iconPath, resourceStream);\n } catch (IOException io) {\n errorReporter.errorReport(io.getMessage(), io);\n } \n \n } else {\n \n // now try to lazy load the actual image\n resourceLoader.loadResource(iconPath, this);\n \n }\n \n }\n\n }" ]
[ "0.67075586", "0.62195176", "0.6073187", "0.60397017", "0.5944825", "0.5827103", "0.5783904", "0.5780804", "0.57515585", "0.5689301", "0.56832457", "0.5630686", "0.55685127", "0.55616784", "0.55457294", "0.55157685", "0.55058503", "0.54746234", "0.54711264", "0.54572904", "0.5452799", "0.54451305", "0.5404056", "0.5403497", "0.53783345", "0.53651726", "0.53557396", "0.5338453", "0.5332731", "0.5330071", "0.5302706", "0.52901685", "0.52807224", "0.5256406", "0.52506584", "0.5250651", "0.5230951", "0.5229486", "0.5220855", "0.52097523", "0.52087116", "0.52011794", "0.5189302", "0.5185448", "0.51827914", "0.5176696", "0.5157158", "0.51498836", "0.5146256", "0.5137262", "0.5117609", "0.51085114", "0.5096311", "0.507863", "0.50645727", "0.50597775", "0.50587106", "0.5042113", "0.5041478", "0.5039482", "0.503154", "0.50271493", "0.50250673", "0.49975306", "0.49963388", "0.49872062", "0.49823752", "0.49769905", "0.4974325", "0.4972008", "0.49697787", "0.49636877", "0.49577427", "0.4954168", "0.49538413", "0.49483955", "0.4943307", "0.49361038", "0.49338296", "0.4928321", "0.4928238", "0.49200237", "0.49106658", "0.49037677", "0.48993093", "0.48886666", "0.4888267", "0.48871288", "0.48827282", "0.48777896", "0.4875615", "0.48684987", "0.48672065", "0.4864709", "0.4864696", "0.48620337", "0.48620027", "0.48618045", "0.4860253", "0.48563075", "0.48485175" ]
0.0
-1
Se comprueba que se haya seleccionado un elemento de la lista
public void onClick$btnGuardar() throws InterruptedException{ if (lboxPlantilla.getSelectedIndex() != -1) { //se obtiene la plantilla seleccionada plantilla = listaPlantilla.get(lboxPlantilla.getSelectedIndex()); //se obtiene la referencia del formulario Component frmPlanificarMantenimiento = (Component) catalogoPlantilla.getVariable("frmPlanificarMantenimiento",false); //se le asigna el objeto plantilla al formulario frmPlanificarMantenimiento.setVariable("plantilla", plantilla,false); //se le envia una seņal al formulario indicado que el formulario se cerro y que los datos se han enviado Events.sendEvent(new Event("onCatalogoCerrado",frmPlanificarMantenimiento)); //se cierra el catalogo catalogoPlantilla.detach(); } else { Messagebox.show("Seleccione una plantilla ", "Mensaje", Messagebox.YES, Messagebox.INFORMATION); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}", "public void afficherEcranSelectionJoueur() {\n gestionnaireJoueurs.chargerJoueurs();\n ecranSelectionJoueur.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"EcranSelectionJoueur\");\n }", "public abstract List<Usuario> seleccionarTodos();", "abstract void listSeleccionadas_mouseClicked(MouseEvent e);", "public void selectedAdmision(Admision admision) {\r\n if (admision == null) {\r\n datos_seleccion.remove(\"list_item_admision\");\r\n limpiarDatos();\r\n deshabilitarCampos(true);\r\n } else {\r\n Hospitalizacion hospitalizacion = new Hospitalizacion();\r\n\r\n hospitalizacion.setCodigo_empresa(admision.getCodigo_empresa());\r\n hospitalizacion.setCodigo_sucursal(admision.getCodigo_sucursal());\r\n hospitalizacion.setNro_identificacion(admision\r\n .getNro_identificacion());\r\n hospitalizacion.setNro_ingreso(admision.getNro_ingreso());\r\n final Hospitalizacion hsp = getServiceLocator()\r\n .getHospitalizacionService().consultar(hospitalizacion);\r\n\r\n if (admision.getHospitalizacion().equals(\"S\") && hsp != null) {\r\n msgExistencia(hsp);\r\n } else if (admision.getHospitalizacion().equals(\"N\")) {\r\n Messagebox\r\n .show(\"No se ha registrado el ingreso del paciente por hospitalizacion\",\r\n \"Paciente no admisionado\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n Listitem listitem = (Listitem) datos_seleccion\r\n .get(\"list_item_admision\");\r\n lbxNro_ingreso.setSelectedItem(listitem);\r\n Admision admisionTemp = listitem.getValue();\r\n if (admisionTemp != null) {\r\n Utilidades.setValueFrom(lbxCausa_externa,\r\n admisionTemp.getCausa_externa());\r\n }\r\n return;\r\n } else {\r\n datos_seleccion.put(\"list_item_admision\",\r\n lbxNro_ingreso.getSelectedItem());\r\n cargarAdmisiones(admision);\r\n Utilidades.setValueFrom(lbxCausa_externa,\r\n admision.getCausa_externa());\r\n }\r\n }\r\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "public void seleccionarUnidad(int fila, int columna) {\n Iterator<Unidad> iterador = unidades.iterator();\n boolean encontro=false;\n Unidad unidadAzulActual;\n\n /**Si, no pregunta la alianza pq no se me ocurre como comparar la alianza de la unidad con la del jugador\n * pq es jugadorAzul es una clase y no tiene sentido ponerle un atributo que sea AlgoChess.Alianza\n * la principal razon es que no quiero estar preguntando todo el tiempo si soy el jugador azul o rojo*/\n\n /*busco una unidad en la lista del jugador cuya posicion sea la misma que las del parametro*/\n while(iterador.hasNext() && !encontro){\n unidadAzulActual = iterador.next();\n encontro = (unidadAzulActual.getFila() == fila && unidadAzulActual.getColumna() == columna);\n }\n\n if(!encontro){\n throw new CasilleroSeleccionadoNoPoseeNingunaUnidadAliadaException();\n }\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "public void seleccionarBeneficiario(){\n\t\tvisualizarGrabarRequisito = false;\r\n\t\ttry{\r\n\t\t\tlog.info(\"intItemBeneficiarioSeleccionar:\"+intItemBeneficiarioSeleccionar);\r\n\t\t\tif(intItemBeneficiarioSeleccionar.equals(new Integer(0))){\r\n\t\t\t\tbeneficiarioSeleccionado = null;\r\n\t\t\t\tlistaEgresoDetalleInterfaz = new ArrayList<EgresoDetalleInterfaz>();\r\n\t\t\t\tbdTotalEgresoDetalleInterfaz = null;\r\n\t\t\t\t//\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(BeneficiarioPrevision beneficiarioPrevision : expedientePrevisionGirar.getListaBeneficiarioPrevision()){\r\n\t\t\t\tif(beneficiarioPrevision.getId().getIntItemBeneficiario().equals(intItemBeneficiarioSeleccionar)){\r\n\t\t\t\t\tbeneficiarioSeleccionado = beneficiarioPrevision;\r\n\t\t\t\t\tlistaEgresoDetalleInterfaz = previsionFacade.cargarListaEgresoDetalleInterfaz(expedientePrevisionGirar, beneficiarioSeleccionado);\t\t\t\t\t\r\n\t\t\t\t\tbdTotalEgresoDetalleInterfaz = ((EgresoDetalleInterfaz)(listaEgresoDetalleInterfaz.get(0))).getBdSubTotal();;\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\tList<ControlFondosFijos> listaControlValida = new ArrayList<ControlFondosFijos>();\r\n\t\t\tfor(ControlFondosFijos controlFondosFijos : listaControl){\r\n\t\t\t\tAcceso acceso = bancoFacade.obtenerAccesoPorControlFondosFijos(controlFondosFijos);\r\n\t\t\t\tlog.info(controlFondosFijos);\r\n\t\t\t\tlog.info(acceso);\t\t\t\t\r\n\t\t\t\tif(acceso!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo()!=null\r\n\t\t\t\t&& acceso.getAccesoDetalleUsar().getBdMontoMaximo().compareTo(bdTotalEgresoDetalleInterfaz)>=0){\r\n\t\t\t\t\tlistaControlValida.add(controlFondosFijos);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tvisualizarGrabarRequisito = true;\r\n\t\t\tdeshabilitarNuevoBeneficiario = false;\r\n\t\t\t\r\n\t\t\tif(listaControlValida.isEmpty() && intItemBeneficiarioSeleccionar!=0){\r\n\t\t\t\t//Deshabilitamos todos los campos para detener el proceso de grabacion\r\n\t\t\t\tif(validarExisteRequisito()) {\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"No existe un fondo de cambio con un monto máximo configurado que soporte el monto de giro del expediente.\"+\r\n\t\t\t\t\t \"Este giro será realizado por la Sede Central.\";\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = true;\t\r\n\t\t\t\t\tvisualizarGrabarAdjunto = true;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmensajeAdjuntarRequisito = \"Ya existen requisitos registrados para este expediente.\";\r\n\t\t\t\t\tarchivoAdjuntoGiro = previsionFacade.getArchivoPorRequisitoPrevision(lstRequisitoPrevision.get(0));\r\n\t\t\t\t\tmostrarMensajeAdjuntarRequisito = true;\r\n\t\t\t\t\tmostrarPanelAdjuntoGiro = true;\r\n\t\t\t\t\thabilitarGrabarRequisito = false;\r\n\t\t\t\t\tvisualizarGrabarAdjunto =false;\r\n\t\t\t\t\tdeshabilitarNuevo = true;\r\n\t\t\t\t\tdeshabilitarDescargaAdjuntoGiro = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tvisualizarGrabarRequisito = false;\r\n\t\t\t\tmostrarPanelAdjuntoGiro = false;\r\n\t\t\t\tdeshabilitarNuevo = false;\r\n\t\t\t\tdeshabilitarDescargaAdjuntoGiro = false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tlog.error(e.getMessage(),e);\r\n\t\t}\r\n\t}", "private void Label_PesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_Label_PesquisaMouseClicked\n //botão pesquisar\n if (Nome_button.isSelected() || !Nome_button.isSelected()) {\n boolean resultSearch = false;\n ultimaPesquisa = Campo_pesquisa.getText();\n try {\n resultSearch = refreshList();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, e.getMessage(),\n \"Falha ao obter lista\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n if (!resultSearch) {\n JOptionPane.showMessageDialog(rootPane, \"A pesquisa não retornou resultados \",\n \"Sem resultados\", JOptionPane.ERROR_MESSAGE);\n }\n } else if (Tipo_button.isSelected()) {\n boolean resultSearch = false;\n ultimaPesquisa = Campo_pesquisa.getText();\n try {\n resultSearch = refreshListTipo();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, e.getMessage(),\n \"Falha ao obter lista\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n if (!resultSearch) {\n JOptionPane.showMessageDialog(rootPane, \"A pesquisa não retornou resultados \",\n \"Sem resultados\", JOptionPane.ERROR_MESSAGE);\n }\n\n } \n }", "@Test\n public void selectReplacesSelectionOnlyOnce() throws Exception {\n ArgumentCaptor<Set> itemsCaptor = ArgumentCaptor.forClass(Set.class);\n\n // WHEN\n listView.select(Lists.newArrayList(A));\n verify(listener, only()).onItemSelection(itemsCaptor.capture());\n\n // THEN\n Set<?> items = itemsCaptor.getValue();\n assertThat(items, allOf(hasSize(1), contains(A)));\n }", "public void doButtonEinfuegen() {\n\t\tDialogSelectionDjinn dsd = new DialogSelectionDjinn((Frame) this.owner, \"Auswahl Tabellenspalte\",\n\t\t\t\tnew DefaultListViewComponentFactory((allts ? this.tabelle.getDiagramm().getFieldCache()\n\t\t\t\t\t\t: new Vector<Object>(Arrays.asList(this.tabelle.getColumns())))));\n\t\tif (dsd.isSelected()) {\n\t\t\tVector v = dsd.getSelection();\n\t\t\tVector values = new Vector();\n\t\t\tfor (int i = 0, len = v.size(); i < len; i++) {\n\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\tvalues.addElement(v.elementAt(i));\n\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\tvalues.addElement(new ToStringContainer((TabellenspaltenModel) v.elementAt(i), this.tabelle));\n\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createOrderMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createSelectionMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0, len = values.size(); i < len; i++) {\n\t\t\t\tboolean found = false;\n\t\t\t\tfor (int j = 0, lenj = this.tabellenspalten.size(); j < lenj; j++) {\n\t\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\t\tTabellenspaltenModel tsm = (TabellenspaltenModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (values.elementAt(i) == tsm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\t\tToStringContainer tsc = (ToStringContainer) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((ToStringContainer) values.elementAt(i)).getTabellenspalte() == tsc) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\t\tOrderMemberModel omm = (OrderMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((OrderMemberModel) values.elementAt(i)).getOrderColumn() == omm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\t\tSelectionMemberModel smm = (SelectionMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((SelectionMemberModel) values.elementAt(i)).getColumn() == smm) {\n\t\t\t\t\t\t\tfound = 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}\n\t\t\t\tif (!found) {\n\t\t\t\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\t\t\t\tthis.tabellenspalten.add(this.anzeige.getSelectedRow(), values.get(i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.tabellenspalten.add(values.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "public void mouseClicked(MouseEvent e) {\n adaptee.listSeleccionadas_mouseClicked(e);\n }", "public Empleado GetMAterialFromTableEmpleado() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Empleado seleted = listae.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }", "public void seleccionSitio() {\r\n\t\tif (sitioId != null) {\r\n\t\t\tsitio = hashSitios.get(sitioId);\r\n\t\t\tcargarEstudiantesSitio();\r\n\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\tSystem.out.println(libres);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList lista=(JList) e.getSource();\n\t\tif(lista.getSelectedIndex()!= -1)\n\t\t\tvista.setPersona((Persona)lista.getSelectedValue());\n\t\t//System.out.println(lista.getSelectedValue().toString());\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n String item = parent.getItemAtPosition(position).toString();\n\n Toast.makeText(ChercherContactActivity.this, \"Selected : \\t\" + item, Toast.LENGTH_SHORT).show();\n\n textRechercheIntervenant.setFocusable(false);\n int positionVirgule = textRechercheIntervenant.getText().toString().indexOf(\",\");\n int positionParentheseOuverte = textRechercheIntervenant.getText().toString().indexOf(\"(\");\n int positionParentheseFermee = textRechercheIntervenant.getText().toString().indexOf(\")\");\n int positionEtoile = textRechercheIntervenant.getText().toString().indexOf(\"*\");\n\n String nom = textRechercheIntervenant.getText().toString().substring(0, positionVirgule);\n String prenom = textRechercheIntervenant.getText().toString().substring(positionVirgule + 2, positionParentheseOuverte - 1);\n String metier = textRechercheIntervenant.getText().toString().substring(positionParentheseOuverte + 1, positionParentheseFermee);\n String ville=\"\";\n if (positionEtoile != -1) {\n ville = textRechercheIntervenant.getText().toString().substring(positionEtoile + 2);\n }\n //String ville = textRechercheIntervenant.getText().toString().substring(positionEtoile + 2);\n\n if (booleanAutre) {\n Profession profession = Profession.find(Profession.class, \"name = ?\", metier).get(0);\n\n if (ville.equalsIgnoreCase(\"\")) {\n contactSelected = Contact.find(Contact.class, \"nom = ? and prenom = ? and profession = ?\", nom, prenom, profession.getId().toString()).get(0);\n } else {\n contactSelected = Contact.find(Contact.class, \"nom = ? and prenom = ? and profession = ? and ville = ?\", nom, prenom, profession.getId().toString(), ville).get(0);\n }\n\n Toast.makeText(ChercherContactActivity.this, \"Selected Item is: \\t\" + contactSelected.getPrenom() + contactSelected.getNom(), Toast.LENGTH_LONG).show();\n } else if (booleanMedecin) {\n SavoirFaire savoirFaire = SavoirFaire.find(SavoirFaire.class, \"name = ?\", metier).get(0);\n\n if (ville.equalsIgnoreCase(\"\")) {\n contactSelected = Contact.find(Contact.class, \"nom = ? and prenom = ? and savoir_faire = ?\", nom, prenom, savoirFaire.getId().toString()).get(0);\n } else {\n contactSelected = Contact.find(Contact.class, \"nom = ? and prenom = ? and savoir_faire = ? and ville = ?\", nom, prenom, savoirFaire.getId().toString(), ville).get(0);\n }\n\n //mContactSelectionne = Contact.find(Contact.class, \"nom = ? and prenom = ? and savoir_faire = ? and ville = ?\", nom, prenom, savoirFaire.getId().toString(), ville).get(0);\n Toast.makeText(ChercherContactActivity.this, \"Selected Item is: \\t\" + contactSelected.getPrenom() + contactSelected.getNom(), Toast.LENGTH_LONG).show();\n\n }\n\n if (contactSelected != null) {\n AssociationUtilisateurContact associationUtilisateurContact = new AssociationUtilisateurContact(activeUser, contactSelected);\n if (!associationUtilisateurContact.isExistante()) {\n associationUtilisateurContact.save();\n }\n Toast.makeText(ChercherContactActivity.this, activeUser.getName()+\" & \"+ contactSelected.getNom()+\" ont été associés\", Toast.LENGTH_LONG).show();\n\n ouvrirActiviteSuivante(ChercherContactActivity.this,AfficherContactActivity.class,\"contactId\", contactSelected.getId(),true);\n }\n\n\n\n }", "private void btnBuscarMouseClicked(java.awt.event.MouseEvent evt) {\n if(!txtCadena.getText().isEmpty()){\n DefaultListModel mdlList = new DefaultListModel(); \n mdlList=this.BuscarProcesos(txtCadena.getText());\n this.lstBusqueda.setModel(mdlList);\n }\n \n //System.out.println(lst.get(0).toString());\n \n \n }", "private boolean seleccionarItem(KeyEvent kp)\n\t{\n\t\t\n\t\tif (kp.keyCode != 13 && kp.keyCode != 16777296){\n\t\t\t//no es enter, ver que hacer\n\t\t\ttry{\n\t\t\t\tthis.setDocAct(null);\n\t\t\t\tbrowser.setVisible(false);\n//\t\t\t\tbrowser.setText(\"<!DOCTYPE html><html><head><title>no doc</title></head><body>no doc</body></html>\");\n\t\t\t}catch(Exception e){\n\t\t\t\t//que paso?\n\t\t\t}\n\t\t\tthis.setUltIdDoc(-1);\n\t\t}else{ //es Enter\n\t\t\tint indice=0;\n\t\t\tif (kp.getSource() instanceof List){\n\t\t\t\tList l = (List) kp.getSource();\n\t\t\t\tindice = l.getSelectionIndex();\n\t\t\t}else{\n\t\t\t\tTable t = (Table) kp.getSource();\n\t\t\t\tindice = t.getSelectionIndex();\n\t\t\t}\n\t\t\treturn loadDocFromServer(indice, false);\n\t\t}\n\t\treturn true;\n\t}", "public void wypelnij(){\n ArrayList<ComboUserInsert> tmp = a.getAllUsers();\n for(int i = 0 ; i < tmp.size(); i++){\n uzytkownicy.addItem(tmp.get(i));\n }\n uzytkownicy.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n Object item = uzytkownicy.getSelectedItem();\n chosen_id = ((ComboUserInsert)item).id;\n }\n });\n }", "public Selectable getValuableElement();", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "private void jList1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseClicked\n Componente aux = this.d.getComponenteNome(this.jList1.getSelectedValue());\n if(aux!=null) {\n this.jLabel8.setText(aux.getDescricao());\n if (evt.getClickCount()== 2 && this.model2.getSize()<=5){\n if(!this.tipos.contains(aux.getTipo())) {\n this.auxC.addComponente(aux.getID(),aux.getPreco());\n dispose();\n execCriarConfGUI();\n }\n else {\n Object[] options = {\"SIM\",\"NÃO\"};\n int result = JOptionPane.showOptionDialog(null, \"Já existe um Componente do tipo \"+aux.getTipo()+\".\\nDeseja troca-lo?\"\n ,\"TIPOS IGUAIS\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE,null,options,null );\n if (result == JOptionPane.YES_OPTION) {\n this.auxC = this.d.remComp(this.auxC,aux.getTipo());\n List<String> add = new ArrayList<>();\n add.add(aux.getID());\n this.auxC = this.d.addComponente(this.auxC,add);\n dispose();\n execCriarConfGUI();\n }\n }\n \n }\n }\n }", "@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\tif(bean!=null){\t\t\t\t\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(\"Devolpay\");\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\t\t\n\t\tuiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\t\t\n\t\t}else{\n\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null);\n\t\t\t//Window.alert(constants.seleccioneCliente());\n\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccioneCliente());\n\t\t\tnot.showPopup();\n\t\t}\n\t}", "private void jBotonAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBotonAgregarActionPerformed\n // TODO add your handling code here:\n if (this.jnombre.getText().length()!=0){ // validar que jnombre no este vacio\n // otro comentario \n String nombre = this.jnombre.getText();\n boolean activo = this.jactivo.isSelected();\n int tipo = 0;\n if (activo==true) {\n tipo=1;\n }\n JOptionPane.showMessageDialog(rootPane, \"Comuna Ingresada\"); // agregar mensaje\n this.jnombre.setText(\"\");\n this.jactivo.isSelected(); // error falta marcar el select ()\n \n Conexion cn = new Conexion();\n cn.InsertarDatos(nombre,tipo);\n \n IniciarTabla();\n \n \n \n \n \n \n } else {\n \n \n JOptionPane.showMessageDialog(rootPane, \"Tiene que ingresar datos\"); // agregar mensaje \n \n \n \n }//GEN-LAST:event_jBotonAgregarActionPerformed\n }", "public Etiqueta buscador(String nombreEtiqueta){\n for(int i = 0;i < listaEtiquetas.size();i++){\n if(this.listaEtiquetas.get(i).getEtiqueta().equals(nombreEtiqueta)){ //Si coincide el nombre de la etiqueta, se retorna\n return this.listaEtiquetas.get(i);\n }\n }\n return null;\n }", "public void carregaEstadoSelecionado(String nome) throws SQLException{\n String sql = \"SELECT * FROM tb_estados\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"uf\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbUfEditar.addItem(list);\n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbUfEditar.setSelectedItem(nome);\n \n \n \n }", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void onItemSelected(AdapterView<?> parent, android.view.View v, int position, long id) {\n // Log.d(TAGLOG, \"----------------------- pasando7---------------\" + datosCorreos.size());\n correo = parent.getItemAtPosition(position).toString();\n txtEmail3.setText(miTab + \" de \" + correo);\n // Log.d(TAGLOG, \"----------------------- pasando8---------------\" + datosCorreos.size());\n switch (spCorreo.getSelectedItemPosition()) {\n case 0:\n //si se selecciona todos, oculta el boton enviar\n enviar3.setVisibility(View.GONE);\n // Toast.makeText(getApplicationContext(), \"todos seleccionados \"+spCorreo.getSelectedItemPosition(), Toast.LENGTH_LONG).show();\n break;\n default:\n //por defecto muestra el boton enviar\n enviar3.setVisibility(View.VISIBLE);\n // Toast.makeText(getApplicationContext(), \"otros seleccionados \"+spCorreo.getSelectedItemPosition(), Toast.LENGTH_LONG).show();\n break;\n }\n Log.d(TAGLOG, \"----------------------- pasando9---------------\" + datosCorreos.size());\n //llama a muestra mensaje con el correo seleccionado a mostrar o con \"todos\" si no se ha seleccionado ninguno\n //muestraMensajes(correo, miTab);\n DBmensajes conn = new DBmensajes(miTab);\n conn.listaMensajes(correo, miTab);\n\n }", "private void seleccionarFila(List<Paciente> lista, String color) {\n switch (color) {\n case \"Verde\":\n filas.setFilaVerde(lista);\n break;\n case \"Amarillo\":\n filas.setFilaAmarillo(lista);\n break;\n case \"Naranja\":\n filas.setFilaNaranja(lista);\n break;\n case \"Rojo\":\n filas.setFilaRojo(lista);\n break;\n default:\n return;\n }\n }", "protected Select selecionarOpcao(WebElement elemento) {\n\t\taguardaElemento(ExpectedConditions.elementToBeClickable(elemento));\n\t\treturn new Select(elemento);\n\t}", "private void seleccionarFicha(Combinacion combinacion, int posicion) {\n Ficha ficha = null;\n boolean encontrado = false;\n\n if (!fichasUtilizados.contains(combinacion.getCodigo()[posicion])) {\n fichasUtilizados.add(combinacion.getCodigo()[posicion]);\n }\n\n do {\n ficha = pedirFicha();\n if (!(fichasUtilizados.contains(ficha) && !(fichasAcertadas.contains(ficha)))) {\n encontrado = true;\n }\n } while (!encontrado);\n fichasUtilizados.add(ficha);\n combinacion.getCodigo()[posicion] = ficha;\n }", "public void actionPerformed(ActionEvent e) {\n if(e.getSource()==Check_btn) {\n \t ArrayList<userDTO> user;\n boolean idCheck=true;\n client= new Client();\n userDTO userDTO= new userDTO();\n userDTO.setUser_id(Id_text.getText());\n \n \n \n boolean isSuccessful=client.userDTOCom(userDTO, \"select\");\n if(isSuccessful) {\n user = client.getUserList();\n\n for(int i = 0; i < user.size(); i++) {\n if(Id_text.getText().equals(user.get(i).getUser_id())) {\n JOptionPane.showMessageDialog(getContentPane(), \"중복된 아이디 입니다.\");\n idCheck=false; \n break; \n }\n }\n if(idCheck)\n JOptionPane.showMessageDialog(getContentPane(), \"사용가능한 아이디 입니다.\");\n }\n } \n }", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tif (e.getButton()==MouseEvent.BUTTON1 & e.getClickCount()==2)\n\t\t{\n\t\t\tchaine=(String) list.getSelectedValue();\n\t\t\tAccueil.Chaines.addElement(chaine);\n\t\t\tAccueil.list.validate();\n\t\t}\n\t}", "public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}", "public Balanza GetMAterialFromTable() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Balanza seleted = list.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }", "public void verSeleccionarDatosporID(String entidad, String accion)\r\n\t{\r\n\t\tseleccionardatos = new SeleccionarDatosporID(this,entidad,accion);\r\n\t\tseleccionardatos.setVisible(true);\r\n\t}", "@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }", "public static Individuo seleccionAleatoria(Poblacion pob) {\n Random ran = new Random();\n int pos = ran.nextInt(pob.getIndividuos().size());\n Individuo mejor = new Individuo(pob.getIndividuos().get(pos).getGenotipo());\n return mejor;\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n // TODO add your handling code here:\n int index = jList1.getSelectedIndex();\n if (index != -1){\n String conteudo = jList1.getSelectedValue().toString();\n String[] parts = conteudo.split(\" | \", 2);\n String novaCategoria = jComboBox1.getSelectedItem().toString();\n this.facade.mudarCategoriaNova(Integer.parseInt(parts[0]), novaCategoria);\n List<String> conteudos = this.facade.listaConteudo();\n DefaultListModel<String> model = new DefaultListModel<>();\n jList1.setModel(model);\n for (String s : conteudos){\n model.addElement(s);\n }\n }\n }", "@Override\n public void perform() {\n pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()).select();\n pickList.advanced().getAddButtonElement().click();\n pickList.advanced().getRemoveButtonElement().click();\n }", "public Cliente GetMAterialFromTableCliente() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Cliente seleted = lista.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tpistaseleccionada = (int) pista.getSelectedItem();\r\n\r\n\t\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n optionEnvoi = choixMessage.getItemAt(choixMessage.getSelectedIndex());\n }", "public void select(final String value) {\n\t\tif (value == null) {\n\t\t\treturn;\n\t\t}\n\t\twait(action(c -> {\n\t\t\tfor (int i = 0; i < c.getModel().getSize(); i++) {\n\t\t\t\tif (value.equals(c.getModel().getElementAt(i).toString())) {\n\t\t\t\t\tc.setSelectedIndex(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}).withReportText(\"selecting element \" + value));\n\t\tAssertions.assertTrue(getCachedElement().getSelectedIndex() >= 0,\n\t\t\t\t() -> name + \": element must have been selected: \" + value);\n\t}", "@Test\r\n\tpublic final void testGetSelectedElement() {\r\n\t\tassertNull(listener.getSelectedElement());\r\n\t}", "@Override\r\n\tpublic boolean buscar(T elemento) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == lista){\r\n\t\t\tJComboBox cb = (JComboBox)e.getSource();\r\n\t\t\tString msg1 = (String)cb.getSelectedItem();\r\n\t\t\tfor(int i=0; i<listaLineas.size(); i++){\r\n\t\t\t\tif(listaLineas.get(i).equals(msg1)){\r\n\t\t\t\t\tmsg.setText(objetoLinea.GetLineas().get(i).getNombre());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\r\n public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {\n final int checkedCount = lista.getCheckedItemCount();\r\n // Set the CAB title according to total checked items\r\n mode.setTitle(checkedCount + \" Selecionados\");\r\n selPessoas = new ArrayList<Pessoa>();\r\n if(checkedCount > 0){\r\n SparseBooleanArray selected = lista.getCheckedItemPositions();\r\n Log.v(\"TAGSELINI\", \" \"+selected.size() );\r\n for (int i = 0; i < selected.size(); i++) {\r\n if (selected.get(i)) {\r\n Pessoa selecteditem = adapter.getItem(selected.keyAt(i));\r\n Log.v(\"TAGSELLLL\", selecteditem.toString());\r\n selPessoas.add(selecteditem);\r\n }else{\r\n Log.v(\"TAGSEL\", i+\" -|- falhou :( \");\r\n }\r\n }\r\n mInterno.findItem(R.id.action_save).setVisible(true);\r\n }else{\r\n mInterno.findItem(R.id.action_save).setVisible(false);\r\n }\r\n\r\n // Calls toggleSelection method from ListViewAdapter Class\r\n adapter.toggleSelection(position);\r\n }", "private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }", "public void darBaja() {\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n if (coleccion.get(i).getUnidades() == 0) {\r\n String resumen = (\"Se ha dado de baja: \\n\" + coleccion.get(i).getTitulo() + \"\\npor falta de ejemplares\");\r\n JOptionPane.showMessageDialog(null, resumen);\r\n coleccion.remove(i);\r\n }\r\n\r\n }\r\n }", "@Override\n public void selectGolem(int id) {\n }", "public void eliminarLista(){\n //se define la lista seleccionada y se elimina\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n ListasComprasTabla.getItems().remove(listaSeleccionada);\n }else {\n System.out.println(\"No hay lista seleccionada\");\n }\n }", "public void selectionChanged() {\r\n int fila = menuCursos.tablaCursos.getSelectedRow();\r\n try {\r\n actual=(Cursos) rs.get(fila);\r\n if(actual.getCodigo()!=null){\r\n MostrarRegistro();\r\n menuCursos.botonCursosBorrar.setEnabled(fila != -1);\r\n menuCursos.botonCursosModificar.setEnabled(fila != -1);\r\n }\r\n } catch (Exception e) {\r\n actual = null;\r\n }\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\trutaseleccionada = (String) rodadura.getSelectedItem();\r\n\r\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (jcb.isSelected()) {\n\t\t\t\t\t\tselectList.add(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselectList.remove(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t}\n\t\t\t\t}", "public void seleccionarBloque(Bloques bloques) {\n\t\tbloqueSeleccionado = bloques;\n\t\tdataListBloquesHorarios = bloquesHorariosFacade.findByLike(\"SELECT B FROM Bloqueshorarios B \"\n\t\t\t\t+ \"WHERE B.bloques.idbloques = \" + bloques.getIdbloques() + \" ORDER BY B.horainicio\");\n\t}", "public void setSeleccionar(T elementoSeleccionar) {\n\t\tthis.elementoSeleccionar = elementoSeleccionar;\n\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t}", "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 }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n //l.getSelectedItem()\n String geslecteerdJaar = GEBOORTEJAREN.get(position);\n\n //stap 4 om listener in te stellen\n if(mListener != null)\n mListener.geboortejaarGeselecteerd(geslecteerdJaar);\n\n }", "@Override\n public void onChanged(List<EspecieDAO.NombreEspecie> nombreEspecies) {\n arrayNombreEspecies.clear();\n\n switch (accion) {\n case Constantes.GUARDAR:\n for (int i = 0; i < nombreEspecies.size(); i++) {\n arrayNombreEspecies.add(i, nombreEspecies.get(i).getNombreEspecie());\n }\n break;\n\n case Constantes.ACTUALIZAR:\n /**En caso de ser una actualización se busca el valor que coincide con la lista para\n * seleccionarlo y asi asegurarnos que el usuario vea el valor que tenia guardado previamente\n * */\n for (int i = 0; i < nombreEspecies.size(); i++) {\n if (nombreEspecies.get(i).getNombreEspecie().equals(especie)) {\n postionItemEspecie = i + 1; //Obtenemos el id del item\n }\n arrayNombreEspecies.add(i, nombreEspecies.get(i).getNombreEspecie());\n }\n break;\n }\n\n /**Independientemente si es una actualizacion o un se esta guardando una nueva mascota siempre se agrega\n * un valor por defecto en la primera posicion del array. Adememas positionItemEspecie se utiliza para\n * seleccionar un elemente en caso de que la accion se guardar el valor de este es de 0*/\n arrayNombreEspecies.add(0, \"Seleccione especie\");\n\n /**Al utilizar este metodo se ejecuta el llamado a onItemSelected utilizado par determinar, las razas de las\n * especies\n * */\n spiEspecie.setSelection(postionItemEspecie);\n\n }", "public void verSeleccionarCaracterisiticasEscalaId()\r\n\t{\r\n\t\tseleccionarcaract = new SeleccionarCaracterisiticasEscalaId(this);\r\n\t\tseleccionarcaract.setVisible(true);\r\n\t}", "@Override\n public void onClick(View view) {\n IdEvento = obtenerEmegencia().get(recyclerViewEmergencia.getChildAdapterPosition(view)).getId();\n\n //Se muestra un mensaje en pantalla de lo que seleciono\n Next();\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}", "public String btn_edit_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0){\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1){ //En caso de que solo se seleccione un elemento\n \n getgermplasm$SementalSessionBean().setSementalDTO(selected.get(0));\n \n getgermplasm$SemenGatheringSessionBean().resetPagination();\n \n //Llamada al jsp encargado de la edicion de accessiones\n return \"edit\";\n \n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "public void ordenarXNombreSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++) {\r\n\t\t\t\tif((datos.get(j).compare(datos.get(j), menor))==(-1)) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void selectlistname(String selectlist){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Link should be selected in the dropdown\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"dropdowncurrentlist\"));\r\n\t\t\tclick(locator_split(\"dropdowncurrentlist\"));\r\n\r\n\t\t\twaitforElementVisible(returnByValue(getValue(\"listselectname\")));\r\n\t\t\tclick(returnByValue(getValue(\"listselectname\")));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- list is slected\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"dropdowncurrentlist\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dropdowncurrentlist\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "protected boolean selectItemAtIndex(GuiSubitemTestObject guiObj, int index) {\n\t\tString debugmsg = getClass().getName()+\".selectItemAtIndex(): \";\n\t\t\n\t\ttry {\n\t\t\tif(!scrollToIndex(guiObj, index)){\n\t\t\t\tLog.debug(debugmsg+\" can not scroll to index \"+index);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString itemText = getListItem(guiObj, index);\n\t\t\tguiObj.click(Script.localAtText(itemText));\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void select() {\n checkboxElement.click();\n }", "public void abrirVentanaEditarLista(ActionEvent event){\n Parent root;\n try {\n //Se carga la ventana\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"editarListaSample.fxml\"));\n root =loader.load();\n Stage stage = new Stage();\n stage.setTitle(\"Lista\");\n stage.setScene(new Scene(root,600,450));\n //Se define la selecciono de lista y lo que se hara con ella\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n EditarListaSample controllerEditarLista = loader.getController();\n controllerEditarLista.definirPantalla(listaSeleccionada);\n\n listaSeleccionada.getArticulos().forEach(articulo -> controllerEditarLista.anadirArticulos(articulo));\n\n\n //Se muestra la ventana\n stage.show();\n }else{\n System.out.println(\"No ha seleccionado nada\");\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "private void jTablePesquisaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePesquisaMouseClicked\n // Salva a posição da linha selecionada na tabela de pesquisa\n int linhaSelecionada = jTablePesquisa.getSelectedRow();\n Object id_genero = jTablePesquisa.getValueAt(linhaSelecionada, 1);\n System.out.println(id_genero);\n Integer id_generow = (Integer) id_genero;\n jT0Id.setText(jTablePesquisa.getValueAt(linhaSelecionada, 0).toString());\n jComboBox1.setSelectedItem(id_generow);\n //jComboBox1.setName(jTablePesquisa.getValueAt(linhaSelecionada, 1).toString());\n jT2Exemplar.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 2));\n jT3Autor.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 3));\n jT4Edicao.setText(jTablePesquisa.getValueAt(linhaSelecionada, 4).toString());\n jT5Ano.setText(jTablePesquisa.getValueAt(linhaSelecionada, 5).toString());\n jT6Status.setText((String) jTablePesquisa.getValueAt(linhaSelecionada, 6));\n\n // Ao selecionar um registro, os campos são ativados possibilitando fazer alterações\n habilitaCampos();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tJSpinner spinnerQuantite = panelCde.getPanelMajCde()\n\t\t\t\t\t\t.getSpinnerQuantite();\n\t\t\t\t// recuperation de la valeur dans le combo\n\t\t\t\t// reference\n\t\t\t\t// panelCde.getPanelMajCde().getComboReference();\n\t\t\t\tJComboBox comboref = panelCde.getPanelMajCde().getComboReference();\n\t\t\t\t// recuperation de la ligne selectionée dans\n\t\t\t\t// le tableau de la cde\n\t\t\t\trowCde = panelCde.getPanelTableCde().getTable().getSelectedRow();\n\t\t\t\t// initialisation de la valeur du combo\n\t\t\t\t// quantite par rapport\n\t\t\t\t// à la quantité de la ligne selectionnées\n\t\t\t\tspinnerQuantite.setValue(GetCdeTableModel().getValueAt(rowCde, 2));\n\t\t\t\t// recuperation de la reference a la ligne\n\t\t\t\t// selectionnées dans le tableau de la cde\n\t\t\t\tString refint = (String) GetCdeTableModel().getValueAt(rowCde, 1);\n\n\t\t\t\tArticle art;\n\n\t\t\t\t// on parcourt la liste dans le comboref et on\n\t\t\t\t// compare ce qui est ecrit dans le tableau\n\t\t\t\t// avec ce qui est ecrit dans la liste et on\n\t\t\t\t// affiche dans le combo la bonne reference.\n\t\t\t\tfor (int i = 0; i < comboref.getItemCount(); i++) {\n\t\t\t\t\tart = (Article) comboref.getItemAt(i);\n\t\t\t\t\tif (art.getIntitule().equals(refint)) {\n\t\t\t\t\t\tcomboref.setSelectedIndex(i);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "public void itemSelected(boolean selected);", "public void changeSelectAnio(int item){\n\t\tList<CrGeneralDTO> listAnioHRTemp = new ArrayList<CrGeneralDTO>();\n\t\t\n\t\tIterator<CrGeneralDTO> it3 = listAnioHR.iterator();\n\t\t\n\t\twhile (it3.hasNext()) {\n\t\t\tCrGeneralDTO obj = it3.next();\n\t\t\tif(obj.getId() == item) {\n\t\t\t\tobj.setSeleted(true);\n\t\t\t\tselectAnnioRecord = Integer.parseInt(obj.getDescripcion());\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tobj.setSeleted(false);\n\t\t\t}\n\t\t\t\n\t\t\tlistAnioHRTemp.add(obj);\n\t\t}\n\t\t\n\t\tlistAnioHR = new ArrayList<CrGeneralDTO>();\n\t\tlistAnioHR = listAnioHRTemp;\n\t\t\n\t\t//================ Cargar Lista Predios ==============\n\t\t\ttry {\n\t\t\t\tlistPrediosHR = cajaBo.obtenerPredios(this.referencia.getPersonaId(),selectAnnioRecord);\n\t\t\t\t\n\t\t\t\tIterator<CrGeneralDTO> it4 = listPrediosHR.iterator();\n\t\t\t\twhile (it3.hasNext()) {\n\t\t\t\t\tCrGeneralDTO obj = it4.next();\n\t\t\t\t\tobj.setSeleted(false);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t//====================================================\n\t\t\n \t}", "private void pickListCarreras(Proyecto proyecto) {\r\n sessionProyecto.getCarrerasProyecto().clear();\r\n sessionProyecto.getFilterCarrerasProyecto().clear();\r\n List<Carrera> carrerasProyecto = new ArrayList<>();\r\n List<Carrera> usuarioCarreras = new ArrayList<>();\r\n try {\r\n List<ProyectoCarreraOferta> lips = proyectoCarreraOfertaService.buscar(new ProyectoCarreraOferta(proyecto, null, null, Boolean.TRUE));\r\n if (lips != null) {\r\n for (ProyectoCarreraOferta pco : lips) {\r\n Carrera c = carreraService.find(pco.getCarreraId());\r\n if (!carrerasProyecto.contains(c)) {\r\n carrerasProyecto.add(c);\r\n }\r\n }\r\n }\r\n for (Carrera carrera : sessionProyecto.getCarreras()) {\r\n if (!usuarioCarreras.contains(carrera)) {\r\n usuarioCarreras.add(carrera);\r\n }\r\n }\r\n sessionProyecto.setCarrerasDualList(new DualListModel<>(carreraService.diferenciaProyectoCarrera(\r\n usuarioCarreras, carrerasProyecto), carrerasProyecto));\r\n sessionProyecto.setCarrerasProyecto(carrerasProyecto);\r\n sessionProyecto.setFilterCarrerasProyecto(sessionProyecto.getCarrerasProyecto());\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }", "private ElementSelection getSelectedElements()\n {\n final int[] rowViewIndexes = this.getSelectedRows();\n final NetPlan np = callback.getDesign();\n\n final List<NetworkElement> elementList = new ArrayList<>();\n final List<Pair<Demand, Link>> frList = new ArrayList<>();\n\n if (rowViewIndexes.length != 0)\n {\n final int maxValidRowIndex = model.getRowCount() - 1 - (hasAggregationRow() ? 1 : 0);\n final List<Integer> validRows = new ArrayList<Integer>();\n for (int a : rowViewIndexes) if ((a >= 0) && (a <= maxValidRowIndex)) validRows.add(a);\n\n if (networkElementType == NetworkElementType.FORWARDING_RULE)\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final String demandInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_DEMAND);\n final String linkInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_OUTGOINGLINK);\n final int demandIndex = Integer.parseInt(demandInfo.substring(0, demandInfo.indexOf(\"(\")).trim());\n final int linkIndex = Integer.parseInt(linkInfo.substring(0, linkInfo.indexOf(\"(\")).trim());\n frList.add(Pair.of(np.getDemand(demandIndex), np.getLink(linkIndex)));\n }\n } else\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final long id = (long) getModel().getValueAt(viewRowIndex, 0);\n elementList.add(np.getNetworkElement(id));\n }\n }\n }\n\n // Parse into ElementSelection\n final Pair<List<NetworkElement>, List<Pair<Demand, Link>>> selection = Pair.of(elementList, frList);\n final boolean nothingSelected = selection.getFirst().isEmpty() && selection.getSecond().isEmpty();\n\n // Checking for selection type\n final ElementSelection elementHolder;\n\n if (!nothingSelected)\n {\n if (!selection.getFirst().isEmpty())\n elementHolder = new ElementSelection(NetworkElementType.getType(selection.getFirst()), selection.getFirst());\n else if (!selection.getSecond().isEmpty())\n elementHolder = new ElementSelection(selection.getSecond());\n else elementHolder = new ElementSelection();\n } else\n {\n elementHolder = new ElementSelection();\n }\n\n return elementHolder;\n }", "public void selectCheckboxFromDD( By element, WebDriver driver, String class_name, String list_element)\n\t{\n\t\tList<String> xls_col_names = ExcelCache.getExpectedListData(class_name , list_element );\n\t\tList<WebElement> listelement = driver.findElements(element);\n\t\tlogger.info(\"Selecting the following values from Column customization list :\"+xls_col_names);\n\t\tfor (int i=0;i<xls_col_names.size();i++)\n\t\t{\n\t\t\tfor (int j=0;j<listelement.size();j++)\n\t\t\t{\n\t\t\t\tif(listelement.get(j).getAttribute(\"value\").equals(xls_col_names.get(i)) && !listelement.get(j).isSelected() )\n\t\t\t\t{\n\t\t\t\t\tlistelement.get(j).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\t\n\n\t}", "private void comboMultivalores(HTMLSelectElement combo, String tabla, String defecto, boolean dejarBlanco) {\n/* 393 */ SisMultiValoresDAO ob = new SisMultiValoresDAO();\n/* 394 */ Collection<SisMultiValoresDTO> arr = ob.cargarTabla(tabla);\n/* 395 */ ob.close();\n/* 396 */ if (dejarBlanco) {\n/* 397 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 398 */ op.setValue(\"\");\n/* 399 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 400 */ combo.appendChild(op);\n/* */ } \n/* 402 */ Iterator<SisMultiValoresDTO> iterator = arr.iterator();\n/* 403 */ while (iterator.hasNext()) {\n/* 404 */ SisMultiValoresDTO reg = (SisMultiValoresDTO)iterator.next();\n/* 405 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 406 */ op.setValue(\"\" + reg.getCodigo());\n/* 407 */ op.appendChild(this.pagHTML.createTextNode(reg.getDescripcion()));\n/* 408 */ if (defecto.equals(reg.getCodigo())) {\n/* 409 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 410 */ escogida.setValue(\"on\");\n/* 411 */ op.setAttributeNode(escogida);\n/* */ } \n/* 413 */ combo.appendChild(op);\n/* */ } \n/* 415 */ arr.clear();\n/* */ }", "private void itemSelected(ObservableValue<? extends String> observableValue, String s, String t1) {\n if (!(t1 == null)) {\n\n listview.getSelectionModel().selectedItemProperty().removeListener(grSelected);\n listview.getSelectionModel().selectedItemProperty().addListener(grSelected);\n\n currentGr = t1.charAt(0);\n currentSGr = t1.charAt(1);\n currentType = t1.substring(t1.indexOf(\" \")+1);\n for (ArrayList<Object> g: currentGrupos) {\n String idG = (String)g.get(0);\n if (idG.equals(Character.toString(currentGr))) {\n ArrayList<ArrayList<Object>> subgr = (ArrayList<ArrayList<Object>>)g.get(1);\n for (ArrayList<Object> sg : subgr) {\n if (sg.get(0).equals(Character.toString(currentSGr))) {\n currentPlazas = (Integer) sg.get(1);\n }\n }\n }\n }\n setLayout();\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 }", "public HTMLSelectElement getElementFproceso() { return this.$element_Fproceso; }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (listNhanVien.getSelectedIndex() == -1) return;\n\t\t\t\tnvSelected = listNhanVien.getSelectedValue();\n\t\t\t\ttxtMa.setText(nvSelected.getMaNhanVien());\n\t\t\t\ttxtTen.setText(nvSelected.getTenNhanVien());\n\t\t\t\ttxtNgayVaoLam.setText(sdf.format(nvSelected.getNgayVaoLamViec()));\n\t\t\t\ttxtNamSinh.setText(sdf.format(nvSelected.getNamSinh()));\n\t\t\t}", "public boolean isSeleccionarAlRecibirElFoco() {\r\n\t\treturn seleccionarAlRecibirElFoco;\r\n\t}", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "public void addSelectedElement(ReportElement el, boolean fireEvent) {\r\n if (selectedElements.contains(el)) return;\r\n\r\n if (isDefaultCellMode() != (el.getCell().getType() == CrosstabCell.NODATA_CELL)) return;\r\n //label1.setText(\"ADDED\");\r\n // Faccio una corona non selected attorno al nuovo elemento...\r\n Rectangle rect = new Rectangle(el.position.x-5,el.position.y-5,el.width+10, el.height+10);\r\n selectedElements.addElement(el);\r\n\r\n this.repaint();\r\n if (fireEvent) {\r\n fireSelectionChangedEvent();\r\n }\r\n\r\n getMainFrame().setCutCopyEnabled(true);\r\n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n elements = jTable1.getSelectedRows();\n\n /*Comprovem si l'usuari ha seleccionat una fila de la taula*/\n if (elements.length == 0) {\n JOptionPane.showMessageDialog(null, \"Has de seleccionar una fila\");\n } else if (elements.length > 1) {\n JOptionPane.showMessageDialog(null, \"Nomes pots seleccionar una fila\");\n } else {\n /*fem visible la confirmacio*/\n jLabel1.setVisible(true);\n jButton4.setVisible(true);\n\n }\n\n\n }", "@Override\n public void OnSelecterEquipoFavorito(Equipo equipo) {\n FragmentFavoritos fragment = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n String equipoNombre = equipo.getNombre();\n DatabaseReference databaseReferenceEscritura = firebaseDatabase.getReference().child(\"usuarios\").child(nombre);\n databaseReferenceEscritura.child(\"equipos\").child(\"favoritos\").child(equipoNombre).setValue(equipo);\n\n //SE MANDA AL SERVIDOR EL EQUIPO SELECCIONADO\n DatabaseReference databaseRefeceTodos = firebaseDatabase.getReference().child(\"usuarios\").child(nombre).child(\"equipos\").child(\"favoritos\");\n databaseRefeceTodos.get().addOnCompleteListener(new OnCompleteListener<DataSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DataSnapshot> task) {\n DataSnapshot dataSnapshot = task.getResult();\n Iterator<DataSnapshot> iterator = dataSnapshot.getChildren().iterator();\n while (iterator.hasNext()){\n //DataSnapshot hijo = iterator.next();\n //Usuario usuario = hijo.getValue(Usuario.class);\n Equipo favorito1 = iterator.next().getValue(Equipo.class);\n if(favorito1.getNombre().equals(equipo.getNombre())) {\n fragment.addEquipo(favorito1);\n }\n }\n }\n });\n /*FragmentFavoritos fragment = (FragmentFavoritos) getSupportFragmentManager().findFragmentByTag(\"list\");\n fragment.addEquipo(equipo);*/\n }", "private void abrirVentanaChatPublica() {\n\t\tif (!listaUsuarios.isSelectionEmpty()) {\n\t\t\tMenuVentanaChat uiChat = this.seleccionarVentanaChat(listaUsuarios.getSelectedValue());\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione un elemento de la lista\", \"Seleccionar Usuario\",\n\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "public MenuElement getSelectedElement(PortalSiteRequestContext context)\n {\n // test nested menu and option menu\n // elements for selected status\n if (elements != null)\n {\n for (MenuElement element : elements)\n {\n // test element selected\n boolean selected = false;\n if (element instanceof MenuOption)\n {\n selected = ((MenuOption)element).isSelected(context);\n }\n else if (element instanceof Menu)\n {\n selected = ((Menu)element).isSelected(context);\n }\n \n // return selected element\n if (selected)\n {\n return element;\n }\n }\n }\n return null;\n }" ]
[ "0.7129996", "0.66308135", "0.64894676", "0.6195274", "0.60856235", "0.6083653", "0.6076984", "0.59190995", "0.59040886", "0.5902455", "0.5863499", "0.5860375", "0.58474463", "0.583946", "0.5835691", "0.5817673", "0.58021975", "0.5793584", "0.5782117", "0.5776781", "0.57581556", "0.5748582", "0.5728891", "0.57257295", "0.57113403", "0.57113403", "0.57113403", "0.57113403", "0.5705013", "0.5688652", "0.5667657", "0.566352", "0.5662282", "0.5653621", "0.56532", "0.5642425", "0.5637823", "0.5634636", "0.56218594", "0.5615058", "0.5611968", "0.5603416", "0.5592702", "0.5591834", "0.55759287", "0.5572103", "0.55533254", "0.55462277", "0.5545661", "0.55399555", "0.5531254", "0.5529928", "0.5508454", "0.55030906", "0.55002534", "0.5499026", "0.54954445", "0.54923517", "0.54897475", "0.54771286", "0.54755807", "0.5474553", "0.5471285", "0.5467185", "0.54651904", "0.54573125", "0.54483145", "0.54460824", "0.5441025", "0.5436165", "0.54178774", "0.54171646", "0.54134715", "0.5410783", "0.54101", "0.54099536", "0.54098606", "0.54090416", "0.5408999", "0.54046816", "0.5403061", "0.53965414", "0.5396145", "0.539513", "0.53945464", "0.5393844", "0.53920805", "0.5391171", "0.5389845", "0.5381794", "0.53762674", "0.5374553", "0.5371693", "0.53687686", "0.5368756", "0.5368756", "0.5368756", "0.5367194", "0.5358925", "0.5358507", "0.53461" ]
0.0
-1
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "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
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character but a character may map to itself. Example 1: Input: s = "egg", t = "add" Output: true Example 2: Input: s = "foo", t = "bar" Output: false Example 3: Input: s = "paper", t = "title" Output: true Note: You may assume both s and t have the same length. Runtime: O(n)
public static boolean isIsomorphic(String s, String t) { if(s == null || t == null || s.length() != t.length()) return false; HashMap<Character, Character> map = new HashMap<>(); for(int i = 0; i < s.length(); i++) { if(map.containsKey(s.charAt(i))) { if(map.get(s.charAt(i)) == t.charAt(i)) continue; else return false; } if(map.containsValue(t.charAt(i))) return false; map.put(s.charAt(i), t.charAt(i)); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isIsomorphic(String s, String t) {\n // quick check: diff len => cannot match\n if (s.length() != t.length()) {\n return false;\n }\n\n // record mapping of chars s -> t\n Map<Character, Character> map = new HashMap<>();\n // mark chars that has been mapped\n Set<Character> set = new HashSet<>();\n\n for (int i = 0; i < s.length(); ++i) {\n char sc = s.charAt(i);\n char tc = t.charAt(i);\n // check and map s[i] and t[i]\n if (map.containsKey(sc)) {\n if (map.get(sc) != tc) {\n // a is mapped to b & c\n return false;\n }\n } else {\n if (set.contains(tc)) {\n // cannot map a -> c\n // since there exist b -> c\n return false;\n }\n // map sc -> tc\n map.put(sc, tc);\n set.add(tc);\n }\n }\n\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n if (s == null || t == null || s.length() != t.length()) return false;\n Map<Character, Character> map = new HashMap<>();\n Set<Character> set = new HashSet<>();\n\n for (int i = 0; i < s.length(); i++) {\n char c1 = s.charAt(i), c2 = t.charAt(i);\n if (map.containsKey(c1)) {\n if (map.get(c1) != c2) return false;\n } else {\n if (set.contains(c2)) return false;\n map.put(c1, c2);\n set.add(c2);\n }\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n int l1 = s.length();\n int l2 = t.length();\n if (l1 != l2)\n return false;\n\n HashMap<Character, Character> hm = new HashMap<>();\n HashSet<Character> set = new HashSet<>();\n\n int i = 0;\n while (i < l1) {\n char c1 = s.charAt(i), c2 = t.charAt(i);\n Character cc = new Character(c1);\n if (hm.containsKey(cc) == true) {\n if (hm.get(cc) != c2)\n return false;\n\n } else {\n if (set.contains(c2))\n return false;\n hm.put(c1, c2);\n set.add(c2);\n }\n i++;\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n if(s == null || t== null)return false;\n if(s.length() != t.length()) return false;\n \n HashMap<Character, Character> hmap = new HashMap<>();\n for(int i=0; i< s.length(); i++){\n char c1 = s.charAt(i);\n char c2 = t.charAt(i);\n if(hmap.containsKey(c1)){\n if(hmap.get(c1) != c2) return false;\n }else {\n if(hmap.containsValue(c2)) return false;\n }\n hmap.put(c1,c2);\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n\n\t\tMap<Character, Character> map = new HashMap<>();\n\t\tMap<Character, Character> tmap = new HashMap<>();\n\n\t\tint i = 0, j = 0, m = s.length(), n = t.length();\n\t\tif (m != n)\n\t\t\treturn false;\n\t\twhile (i < m && j < n) {\n\t\t\tchar sChar = s.charAt(i);\n\t\t\tchar tChar = t.charAt(j);\n\n\t\t\tif (map.containsKey(sChar) && map.get(sChar) != tChar)\n\t\t\t\treturn false;\n\n\t\t\tif (tmap.containsKey(tChar) && tmap.get(tChar) != sChar)\n\t\t\t\treturn false;\n\n\t\t\tif (!tmap.containsKey(tChar)) {\n\t\t\t\ttmap.put(tChar, sChar);\n\t\t\t}\n\n\t\t\tmap.put(sChar, tChar);\n\t\t\ti++;\n\t\t\tj++;\n\n\t\t}\n\t\treturn true;\n\t}", "public boolean isIsomorphic(String s, String t) {\r\n\r\n Map<Character, Character> map = new HashMap<>();\r\n Set<Character> assignedValues = new HashSet<>();\r\n for (int i = 0; i < s.length(); i++) {\r\n if (map.containsKey(s.charAt(i)) && map.get(s.charAt(i)) != t.charAt(i)) {\r\n return false;\r\n }\r\n if (!map.containsKey(s.charAt(i)) && assignedValues.contains(t.charAt(i))) {\r\n return false;\r\n }\r\n map.put(s.charAt(i), t.charAt(i));\r\n assignedValues.add(t.charAt(i));\r\n }\r\n return true;\r\n }", "public boolean isIsomorphic(String s, String t) {\n Map<Character, Integer> maps = new HashMap<>();\n Map<Character, Integer> mapt = new HashMap<>();\n for (Integer i = 0; i < s.length(); i++) {\n if (maps.put(s.charAt(i), i) != mapt.put(t.charAt(i), i)) {\n return false;\n }\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\r\n int[] preIndexOfS = new int[256];\r\n int[] preIndexOfT = new int[256];\r\n for (int i = 0; i < s.length(); i++) {\r\n char sc = s.charAt(i), tc = t.charAt(i);\r\n if (preIndexOfS[sc] != preIndexOfT[tc]) {\r\n return false;\r\n }\r\n preIndexOfS[sc] = i + 1;\r\n preIndexOfT[tc] = i + 1;\r\n }\r\n return true;\r\n }", "public static boolean isIsomorphic(String s, String t) {\n int schs[] = new int[256], tchs[] = new int[256], len = s.length();\n for (int i = 0; i < len; ++i) {\n if (schs[s.charAt(i)] != tchs[t.charAt(i)]) return false;\n schs[s.charAt(i)] = i + 1;\n tchs[t.charAt(i)] = i + 1;\n }\n return true;\n }", "public boolean isIsomorphic(String s, String t) {\n\t\t\n\t\treturn isA(s, t) && isA(t, s);\n\t}", "static boolean permutation(String s, String t){\n if(s.length() != t.length()){\n return false;\n }\n\n Map<Character, Integer> sCount = new HashMap<>();\n Map<Character, Integer> tCount = new HashMap<>();\n\n for(int i = 0;i < s.length();i++){\n Character sChar = s.charAt(i);\n Character tChar = t.charAt(i);\n sCount.put(sChar, sCount.getOrDefault(sChar, 0) + 1);\n tCount.put(tChar, tCount.getOrDefault(tChar, 0) + 1);\n }\n //Character and Integer objects have their equals methods defined\n return sCount.equals(tCount);\n }", "public static boolean stringPermutation(String s, String t){\r\n if (s.length() != t.length()){\r\n return false;\r\n }\r\n HashMap<Character, Integer> map1 = new HashMap<Character, Integer>();\r\n HashMap<Character, Integer> map2 = new HashMap<Character, Integer>();\r\n for (int i = 0; i < s.length(); i++){\r\n if (map1.get(s.charAt(i)) == null){\r\n map1.put(s.charAt(i), 1);\r\n }\r\n else {\r\n map1.put(s.charAt(i), map1.get(s.charAt(i)) + 1);\r\n }\r\n }\r\n for (int i = 0; i < t.length(); i++){\r\n if (map2.get(t.charAt(i)) == null){\r\n map2.put(t.charAt(i), 1);\r\n }\r\n else {\r\n map2.put(t.charAt(i), map2.get(t.charAt(i)) + 1);\r\n }\r\n }\r\n return map1.equals(map2);\r\n }", "public boolean isIsomorphic(String str1, String str2) {\r\n if(str1.length() != str2.length()) return false;\r\n \r\n int[] arr1 = new int[256];\r\n int[] arr2 = new int[256];\r\n \r\n Arrays.fill(arr1, -1);\r\n Arrays.fill(arr2, -1);\r\n \r\n for(int i=0;i<str1.length();i++){\r\n int value1 = str1.charAt(i);\r\n int value2 = str2.charAt(i);\r\n if(arr1[value1]== -1){\r\n arr1[value1] = value2;\r\n } else {\r\n if(arr1[value1] != value2) return false;\r\n }\r\n \r\n if(arr2[value2]== -1){\r\n arr2[value2] = value1;\r\n } else {\r\n if(arr2[value2] != value1) return false;\r\n }\r\n \r\n }\r\n return true;\r\n \r\n}", "public static boolean isAnagram(String s, String t) {\n int a = 0;\n for(int i=0;i<s.length();i++){\n a = a^s.charAt(i);\n }\n for(int i=0;i<t.length();i++){\n a = a^t.charAt(i);\n }\n return a == 0;\n\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) {\n return false;\n }\n char[] sChars = s.toCharArray();\n Arrays.sort(sChars);\n char[] tChars = t.toCharArray();\n Arrays.sort(tChars);\n\n return new String(sChars).equals(new String(tChars));\n }", "public boolean isAnagram(String s, String t) {\n HashMap<Character, Integer> map = new HashMap<>();\n\n // Return false if the strings are of different length\n if (s.length() != t.length()) {\n return false;\n }\n\n /**\n * Loop through the string and update the count in the hashmap in the following\n * way Increment the counter for the character from string1 Decrement the\n * counter for the character from string2\n */\n\n for (int i = 0; i < s.length(); i++) {\n map.put(s.charAt(i), map.getOrDefault(s.charAt(i), 0) + 1);\n map.put(t.charAt(i), map.getOrDefault(t.charAt(i), 0) - 1);\n }\n\n /**\n * Check if all characters in the hashmap as 0, if yes, return true, \n * else return false, as it isn't a valid anagram\n */\n\n for (Map.Entry mapElement : map.entrySet()) {\n\n if ((int) mapElement.getValue() != 0) {\n return false;\n }\n\n }\n\n return true;\n }", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public static void main(String[] args) {\n IsomorphicStrings mytest = new IsomorphicStrings();\n String st1 = \"ab\";\n String st2 = \"aa\";\n boolean result = mytest.isIsomorphic(st1, st2);\n System.out.println(\"result is \"+result);\n }", "public boolean isAnagram1(String s, String t) {\n if (s.length() != t.length()) return false;\n Function<String, Integer> countCode = str -> {\n int code = 0;\n for (int i = 0; i < str.length(); i++)\n code ^= str.charAt(i);\n return code;\n };\n return countCode.apply(s).equals(countCode.apply(t));\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) return false; // O(1)\n int[] charFrequency = new int[26]; // O(1)\n\n for (char c : s.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n charFrequency[index]++; // O(1)\n }\n\n for (char c : t.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n if (charFrequency[index] == 0) return false; // O(1)\n charFrequency[index]--; // O(1)\n }\n\n for (int i : charFrequency) { // O(26) -> O(1)\n if (i > 0) return false; // O(1)\n }\n\n return true; // O(1)\n }", "public boolean isAnagram(String s, String t) {\n if(s.length() != t.length()) return false;\n char[] chs = s.toCharArray();\n char[] cht = t.toCharArray();\n Arrays.sort(chs);\n Arrays.sort(cht);\n String ss = String.valueOf(chs);\n String tt = String.valueOf(cht);\n return ss.equals(tt);\n }", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }", "boolean permutationOpt(String s, String t) {\n if (s.length() != t.length() ) { return false;}\r\n\r\n int[] charCnt = new int[128];\r\n for (int i = 0; i < s.length(); i ++) {\r\n int val = s.charAt(i);\r\n charCnt[val] ++;\r\n }\r\n\r\n for (int i = 0; i < t.length(); i ++) {\r\n int val = t.charAt(i);\r\n charCnt[val] --;\r\n if (charCnt[val] < 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true; // If the length of two strings are equal, then when there is no negative counts there should not be positive counts either.\r\n }", "public static boolean isPermutation(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] charCounterArr = new int[256];\n\n char[] s1CharArr = s1.toCharArray();\n char[] s2CharArr = s2.toCharArray();\n\n // counting the characters in s1;\n for (int i = 0; i < s1CharArr.length; i++) {\n int index = s1CharArr[i];\n charCounterArr[index] = charCounterArr[index] + 1;\n }\n\n // now check whether characters in s2 are in s1\n // pay attention to characters that appear more than once\n for (int i = 0; i < s2CharArr.length; i++) {\n int index = s2CharArr[i];\n // expecting the value to be 1 or more.\n // if see 0, means that there was a mismatch\n int value = charCounterArr[index];\n if (value == 0) {\n return false;\n }\n value--;\n // now update the value\n charCounterArr[index] = value;\n }\n return true;\n\n }", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public static int matchingPairs(String s, String t) {\n if(s.length() != t.length()) return 0;\r\n StringBuilder sb1 = new StringBuilder();\r\n StringBuilder sb2 = new StringBuilder();\r\n int res = 0;\r\n boolean hasDuplicates = false; //Edge Case where if it has Dups then you can just to inner swap and you will get same result\r\n Set<Character> dupsCheckSet = new HashSet<>();\r\n\r\n for(int idx = 0; idx < s.length(); idx++){\r\n if(s.charAt(idx) != t.charAt(idx)){\r\n sb1.append(s.charAt(idx));\r\n sb2.append(t.charAt(idx));\r\n }else {\r\n if(!dupsCheckSet.add(s.charAt(idx))){\r\n hasDuplicates = true;\r\n }\r\n res++;\r\n }\r\n }\r\n\r\n //if both string are same then you don't have to calculate\r\n if(sb1.length() == 0){\r\n if(hasDuplicates){\r\n return res;\r\n }\r\n return res - 2;\r\n }\r\n\r\n Map<Character, Integer> mapS = new HashMap<>(), mapT = new HashMap<>();\r\n for (int idx = 0; idx < sb1.length(); idx++){ //\"bd\",\"db\";\r\n //if mapS contains chars from sb2 then if we swap them with each other it will be a matching pair\r\n if(mapS.containsKey(sb2.charAt(idx))){\r\n res++;\r\n }\r\n //if both Chars are reverse of each other then we can switch and add 1 to it\r\n if(mapS.getOrDefault(sb2.charAt(idx), -1) == mapT.getOrDefault(sb1.charAt(idx), -2)){\r\n return res + 1;\r\n }\r\n mapS.put(sb1.charAt(idx), idx);\r\n mapT.put(sb2.charAt(idx), idx);\r\n }\r\n\r\n\r\n return res + ((sb1.length() == 1) ? -1 : 0);\r\n }", "public static boolean replace(String s1, String s2){\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s1.length(); i++){\n\t\t\tif (s1.charAt(i) != s2.charAt(i)){\n\t\t\t\tif (flag){\n\t\t\t\t\treturn false;\n\t\t\t\t}else{\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "public static boolean isStringPermutation(String s1, String s2)\n\t{\n\t\tif(s1.length()==s2.length())\n\t\t{\n\t\t\t//convert string to character array\n\t\t\tchar [] name1 = s1.toCharArray();\n\t\t\tchar [] name2 = s2.toCharArray();\n\t\t\t\n\t\t\t//sort new character arrays from smallest to greatest\n\t\t\tArrays.sort(name1);\n\t\t\tArrays.sort(name2);\n\t\t\t\n\t\t\t//compare if it's the same\n\t\t\tboolean checker = Arrays.equals(name1,name2);\n\t\t\tSystem.out.println(\"Is \" + s2 + \" a permutation of \" + s1 + \"?\");\n\t\t\t\tif (checker)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"True\");\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"False\");\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//string lengths are not the same\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, Strings are not equal\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public boolean isScramble(String s1, String s2) {\n if (s1.length() != s2.length())\n return false;\n \n if (hash.containsKey(s1 + \"#\" + s2))\n return hash.get(s1 + \"#\" + s2);\n \n int n = s1.length();\n if (n == 1) {\n return s1.charAt(0) == s2.charAt(0);\n }\n for (int k = 1; k < n; ++k) {\n if (isScramble(s1.substring(0, k), s2.substring(0, k)) &&\n isScramble(s1.substring(k, n), s2.substring(k, n)) ||\n isScramble(s1.substring(0, k), s2.substring(n - k, n)) &&\n isScramble(s1.substring(k, n), s2.substring(0, n - k))\n ) {\n hash.put(s1 + \"#\" + s2, true);\n return true;\n }\n }\n hash.put(s1 + \"#\" + s2, false);\n return false;\n }", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "public static boolean isPermuted(String str1, String str2) {\n if (str1.length() != str2.length())\n return false;\n\n Map<Character, Integer> str1CountMap = new HashMap<>();\n for (char c : str1.toCharArray()) {\n str1CountMap.put(c, str1CountMap.getOrDefault(c, 0) + 1);\n }\n\n for (char c : str2.toCharArray()) {\n if (!str1CountMap.containsKey(c) || str1CountMap.get(c) <= 0)\n return false;\n str1CountMap.put(c, str1CountMap.get(c) - 1);\n }\n\n return true;\n }", "public static void main(String[] args) {\n\t\tString string = \"fo\";\n\t\tString t = \"aa\";\n\t\tSystem.out.println(isIsomorphic(string, t));\n\t}", "public boolean isScramble(String s1, String s2) {\n int lena = s1.length();\n int lenb = s2.length();\n if(lena != lenb) return false;\n if(lena == 0||s1.equals(s2)) return true;\n char[] crr1 = s1.toCharArray();\n char[] crr2 = s2.toCharArray();\n Arrays.sort(crr1);\n Arrays.sort(crr2);\n if(!Arrays.equals(crr1,crr2)) return false;\n \n int i = 1; \n while(i< lena){\n String a1 = s1.substring(0,i);\n String b1 = s1.substring(i);\n String a2 = s2.substring(0,i);\n String b2 = s2.substring(i);\n if(isScramble(a1,a2) && isScramble(b1,b2)) return true;\n String a3 = s2.substring(lenb - i);\n String b3 = s2.substring(0, lenb-i);\n if(isScramble(a1,a3) && isScramble(b1,b3)) return true;\n i++;\n }\n return false;\n }", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "static String twoStrings(String s1, String s2) {\n Hashtable<Character, Integer> shortDict = null;\n Hashtable<Character, Integer> longDict = null;\n \n boolean isCommonSubset = false;\n \n String longerString = s1.length() >= s2.length() ? s1 : s2;\n String shorterString = s1.length() < s2.length() ? s1 : s2;\n \n longDict = prepareHashtable(longerString);\n shortDict = prepareHashtable(shorterString);\n \n for (char ch: shortDict.keySet()) {\n if (longDict.containsKey(ch)) {\n isCommonSubset = true;\n break;\n }\n }\n \n return isCommonSubset ? \"YES\" : \"NO\";\n }", "static Boolean isOneAway(String s1, String s2) {\r\n\t\tboolean results = false;\r\n\t\tchar[] chars1 = s1.toCharArray();\r\n\t\tchar[] chars2 = s2.toCharArray();\r\n\t\tif(s1.equals(s2)) {\r\n\t\t\tresults = true;\r\n\t\t}else if(chars1.length==chars2.length) {\r\n\t\t\tint mismatches = 0;\r\n\t\t\tfor(int i = 0; i < chars1.length; i++ ) {\r\n\t\t\t\tif(chars1[i]!=chars2[i]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else if(Math.abs(s1.length() - s2.length())==1) {\r\n\t\t\tif(s1.length() > s2.length()) {\r\n\t\t\t\tchars1 = s1.toCharArray();\r\n\t\t\t\tchars2 = s2.toCharArray();\r\n\t\t\t}else {\r\n\t\t\t\tchars1 = s2.toCharArray();\r\n\t\t\t\tchars2 = s1.toCharArray();\r\n\t\t\t}\r\n\t\t\tint mismatches = 0;\r\n\t\t\tint cursor1 = 0;\r\n\t\t\tint cursor2 = 0;\r\n\t\t\twhile((cursor1 < chars1.length) && (cursor2 < chars2.length)) {\r\n\t\t\t\tif(chars1[cursor1] != chars2[cursor2]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t\tcursor2++;\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else {\r\n\t\t\tresults = false;\r\n\t\t}\r\n\t\r\n\t\treturn results;\r\n\t}", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "public boolean isScramble(String s1, String s2) {\n if (s1.equals(s2)) return true;\n\n int[] letters = new int[26];\n for (int i = 0; i < s1.length(); i++) {\n letters[s1.charAt(i) - 'a']++;\n letters[s2.charAt(i) - 'a']--;\n }\n for (int i = 0; i < 26; i++) if (letters[i] != 0) return false;\n\n for (int i = 1; i < s1.length(); i++) {\n if (isScramble(s1.substring(0, i), s2.substring(0, i))\n && isScramble(s1.substring(i), s2.substring(i))) return true;\n if (isScramble(s1.substring(0, i), s2.substring(s2.length() - i))\n && isScramble(s1.substring(i), s2.substring(0, s2.length() - i))) return true;\n }\n return false;\n }", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "public static boolean isAnagram2(String s1, String s2) {\r\n List<Character> list = new ArrayList<>();\r\n\r\n for (char c : s1.toCharArray()) {\r\n list.add(c);\r\n }\r\n\r\n for (char c : s2.toCharArray()) {\r\n list.remove(new Character(c));\r\n }\r\n\r\n return (list.isEmpty());\r\n }", "public static boolean isAnagram(char[]s1, char[]s2)\r\n{\n\t if(s1.length!=s2.length)\r\n\t\t return false; \r\n\t \r\n\t //sort both strings using Arrays sort method\r\n\t Arrays.sort(s1); \r\n\t Arrays.sort(s2);\r\n\t \r\n\t for(int i=0; i<s1.length;i++)\r\n\t if(s1[i]!=s2[i])\r\n\t\t return false; \r\n\t\r\n\treturn true; \r\n\t \r\n}", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\r\n\t\t}", "public static boolean stringRotation(String str1, String str2) {\n String temp = str2 + str2;\n return temp.contains(str1);\n }", "public boolean isAPermutation(String st1, String st2) {\n\t\tif(st1.length() != st2.length() || st1.length() == 0 || st2.length() == 0) return false;\n\t\t\n\t\tHashMap<Character, Integer> cc1 = charactersCount(st1);\n\t\tHashMap<Character, Integer> cc2 = charactersCount(st2);\n\t\t\n\t\treturn sameCharactersCount(cc1, cc2);\n\t}", "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.substring(i,i+1);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<b.length();i++) {\n\t\t\tif(!b1.contains(b.substring(i,i+1)))\n\t\t\t\tb1 += b.substring(i,i+1);\n\t\t}\n\t\t\t\t\n\t\tchar[] ch1 = a1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\t\n\t\tchar[] ch2 = b1.toCharArray();\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tArrays.sort(ch1);\n\t\tArrays.sort(ch2);\n\t\t\n\t\tSystem.out.println(\"=====================================================\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(ch1));\n\t\tSystem.out.println(Arrays.toString(ch2));\n\t\t\n\t\tString str1 = Arrays.toString(ch1);\n\t\tString str2 = Arrays.toString(ch2);\n\t\t\n\t\tif(str1.contentEquals(str2)) {\n\t\t\tSystem.out.println(\"true, they build out of same letters\");\n\t\t}else { \n\t\t\tSystem.out.println(\"fasle, there is something different\");\n\t\t}\n\t\t\n\n\t\t\n\t\t// SHORTER SOLUTION !!!!!!!!!!!!!!!!!!!!\n\t\t\n//\t\tString Str1 = \"aaaabbbcc\", Str2 = \"cccaabbb\";\n//\t\t\n//\t\tStr1 = new TreeSet<String>( Arrays.asList(Str1.split(\"\"))).toString();\n//\t\tStr2 = new TreeSet<String>( Arrays.asList(Str2.split(\"\"))).toString();\n//\t\tSystem.out.println(Str1.equals(Str2));\n//\t\t\n//\t\t\n\t\t\n}", "private static String or(String s, String t)\r\n\t{\r\n\t\tchar[] out = s.toCharArray();\r\n\t\tfor (int i = 0; i < out.length; i++)\r\n\t\t{\r\n\t\t\tif(out[i] == '0' && t.charAt(i) == '1')\r\n\t\t\t\tout[i] = '1';\r\n\t\t}\r\n\t\treturn new String(out);\r\n\t}", "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPermutation(String sIn1, String sIn2){\n if (sIn1.length()!= sIn2.length()) return false;\n\n char[] string1 = sIn1.toCharArray();\n char[] string2 = sIn2.toCharArray();\n\n Arrays.sort(string1);\n Arrays.sort(string2);\n\n return Arrays.equals(string1, string2);\n\n }", "public boolean match(String string1, String string2) {\n\t\tMap<Character, Character>hash_map = new HashMap<Character, Character>();\n\n\t\t//If string length is not same, then it will return false\n\t\tif(string1.length()>string2.length() || string1.length()<string2.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<string1.length(); i++) {\t\n\t\t\tif(!hash_map.containsKey(string1.charAt(i))) {\n\t\t\t\thash_map.put(string1.charAt(i), string2.charAt(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!hash_map.get(string1.charAt(i)).equals(string2.charAt(i))) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }", "static void isAnagram(String s1, String s2) {\n\n String copyOfs1 = s1.replaceAll(\"s\", \"\");\n\n String copyOfs2 = s2.replaceAll(\"s\", \"\");\n\n //Initially setting status as true\n\n boolean status = true;\n\n if (copyOfs1.length() != copyOfs2.length()) {\n //Setting status as false if copyOfs1 and copyOfs2 doesn't have same length\n\n status = false;\n } else {\n //Changing the case of characters of both copyOfs1 and copyOfs2 and converting them to char array\n\n char[] s1Array = copyOfs1.toLowerCase().toCharArray();\n\n char[] s2Array = copyOfs2.toLowerCase().toCharArray();\n\n //Sorting both s1Array and s2Array\n\n Arrays.sort(s1Array);\n\n Arrays.sort(s2Array);\n\n //Checking whether s1Array and s2Array are equal\n\n status = Arrays.equals(s1Array, s2Array);\n }\n\n //Output\n\n if (status) {\n System.out.println(s1 + \" and \" + s2 + \" are anagrams\");\n } else {\n System.out.println(s1 + \" and \" + s2 + \" are not anagrams\");\n }\n }", "public static boolean isAnagram1(String s1, String s2) {\r\n int[] arr = new int[256]; //Number of Ascii Values\r\n\r\n for (int i = 0; i < s1.length(); i++) {\r\n arr[s1.charAt(i)]++;\r\n arr[s2.charAt(i)]--;\r\n }\r\n\r\n for (int i = 0; i < arr.length; i++) {\r\n if (arr[i] != 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "public static boolean checkPermutaionSort(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n char c1[] = s1.toCharArray();\n char c2[] = s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n for (int i = 0; i < s1.length(); ++i) {\n if (c1[i] != c2[i]) return false;\n }\n\n return true;\n }", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean uniqueCharStringNoDS(String s){\r\n for (int i = 0; i < s.length(); i++){\r\n for (int j = i+1; j < s.length(); j++){\r\n char temp = s.charAt(i);\r\n if (temp == s.charAt(j)){\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isPermutation(String str1, String str2)\r\n\t{\r\n\t\t if(str1.length() != str2.length()) return false;\r\n\t\t char[] charset1 = str1.toCharArray();\r\n\t\t char[] charset2 = str2.toCharArray();\r\n\t\t HashMap<Character, Integer> hashmap = new HashMap<Character, Integer>();\r\n\t\t \r\n\t\t for(char c : charset1)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c)) hashmap.put(c, 1);\r\n\t\t\t else hashmap.put(c, hashmap.get(c) + 1);\r\n\t\t }\r\n\t\t \r\n\t\t for(char c : charset2)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c) || hashmap.get(c) == 0) return false; \r\n\t\t\t hashmap.put(c, hashmap.get(c) - 1);\r\n\t\t }\r\n\t\t \r\n\t\t return true;\r\n\t}", "public boolean checkPermutaionOfStr(String str1, String str2){\n\tArrayList<Integer> word_cnt1 = new ArrayList<Integer>();\n\tArrayList<Integer> word_cnt2 = new ArrayList<Integer>();\n\t\n\tif(str1.length() != str2.length())\n\t\treturn false;\n\tfor(int i = 0; i< 256; i++){\n\t\tword_cnt1.add(0);\n\t\tword_cnt2.add(0);\n\t}\n\t\n\tfor(int i = 0; i< str1.length(); i++){\n\t\tcntStrChar(str1, word_cnt1, i);\n\t\tcntStrChar(str2, word_cnt2, i);\n\t}\n\t\n\tfor(int i = 0; i< 256; i++){\n\t\tif (word_cnt1.get(i) != word_cnt2.get(i) )\n\t\t\treturn false;\n\t}\n\treturn true;\n}", "public int solution(String S, String T) {\n if(S.length()==T.length()){\n return S.equals(T) ? 1 : 0;\n }\n int first = 0; //pointer to iterate over string S\n int second = 0; //pointer to iterate over string T\n while(second<T.length()){\n //Reached end of T\n if(first>=S.length()){\n return 0;\n }\n if(S.charAt(first)==T.charAt(second)){\n first++;\n second++;\n }\n else{\n first++;\n }\n }\n return 1;\n }", "public static boolean isAnagram(String strOne, String strTwo) throws IllegalArgumentException {\n if (strOne == null || strTwo == null)\n throw new IllegalArgumentException(\"One or both strings is null\");\n\n /**\n * Replace spaces and lower case the strings, note that we could\n * do this check while building up the map, but this is somewhat simpler\n * to understand/read, and it also allows us to not have to check to index\n * out of bounds issues when iterating through characters\n */\n String strOneCopy = strOne.replaceAll(\"\\\\s\", \"\").toLowerCase();\n String strTwoCopy = strTwo.replaceAll(\"\\\\s\", \"\").toLowerCase();\n\n if (strOne.isEmpty() || strTwo.isEmpty())\n return false;\n\n int strOneLen = strOneCopy.length();\n int strTwoLen = strTwoCopy.length();\n\n // If the strings aren't the same length they cannot be anagrams\n if (strOneLen != strTwoLen)\n return false;\n\n HashMap<Character, Integer> charCount = new HashMap<Character, Integer>();\n\n\n /**\n * Build a map of the counts of each character.\n *\n * The count will be positive if a character appears in first string one or more\n * times more than it appears in the second string\n *\n * The count will be negative if a character appears in second string one or more\n * times more than it appears in the first string\n */\n for (int i = 0; i < strOneLen; i++) {\n\n /**\n * Get the character from string one, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n char charValKey = strOneCopy.charAt(i);\n\n int charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Increment the count\n charCount.put(charValKey, ++charKeyCount);\n\n\n /**\n * Get the character from string two, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n charValKey = strTwoCopy.charAt(i);\n charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Decrement the count\n charCount.put(charValKey, --charKeyCount);\n\n }\n\n\n for (int value : charCount.values()) {\n if (value != 0)\n return false;\n }\n\n return true;\n }", "public boolean isOneEditDistance(String s, String t)\n\t{\n\t\tint ns = s.length();\n\t\tint nt = t.length();\n\t\tint d = Math.abs(ns - nt);\n\t\tif(d > 1 || s.equals(t))\n\t\t\treturn false;\n\t\tfor(int i = 0; i < Math.min(ns, nt); i ++)\n\t\t{\n\t\t\tif(s.charAt(i) != t.charAt(i))\n\t\t\t{\n\t\t\t\tif(ns == nt)\n\t\t\t\t\treturn s.substring(i + 1).equals(t.substring(i + 1));\n\t\t\t\telse if(ns > nt)\n\t\t\t\t\treturn s.substring(i + 1).equals(t.substring(i));\n\t\t\t\telse \n\t\t\t\t\treturn s.substring(i).equals(t.substring(i + 1));\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isScramble(String s1, String s2) {\n if(s1 == null || s2 == null) return false;\n if(s1.length() != s2.length()) return false;\n this.s1 = s1;\n this.s2 = s2;\n int len = s1.length();\n sol = new boolean[len + 3][len + 3][len + 3];\n cal = new boolean[len + 3][len + 3][len + 3];\n return isScramble(0, 0, s1.length());\n }", "private static boolean checkPermutationSorting(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n // Since strings are immutable, we wrote a simple sort function that returns the sorted string.\n String sortedS1 = sort(s1);\n String sortedS2 = sort(s2);\n\n return sortedS1.equals(sortedS2);\n }", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "public boolean isTransformable(String s, String t) {\n if(s==null || t==null || s.length()!=t.length()){\n return false;\n }\n Deque<Integer>[] idx=new Deque[10];\n for(int i=0; i<10; i++){\n idx[i]=new LinkedList<>();\n }\n for(int i=0; i<s.length(); i++){\n idx[s.charAt(i)-'0'].offerLast(i);\n }\n for(char c: t.toCharArray()){\n int id=c-'0';\n if(idx[id].isEmpty()){\n return false;\n } else{\n int cIdx=idx[id].peekFirst();\n for(int i=0; i<id; i++){\n if(!idx[i].isEmpty() && idx[i].peekFirst()<cIdx){\n return false;\n }\n }\n idx[id].pollFirst();\n }\n }\n return true;\n }", "boolean isUniqueUsingBruteForce(String str) {\n\t\t// If at any time we encounter 2 same\n\t\t// characters, return false\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t\tfor (int j = i + 1; j < str.length(); j++)\n\t\t\t\tif (str.charAt(i) == str.charAt(j))\n\t\t\t\t\treturn false;\n\t\t// If no duplicate characters encountered,\n\t\t// return true\n\t\treturn true;\n\t}", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "private static boolean checkPermutationCountingHashMap(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) return false;\n\n // Keep a track of the characters using a HashMap.\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i = 0; i < s1.length(); i++) {\n // Increment count for characters in s1\n if (map.containsKey(s1.charAt(i))) {\n map.put(s1.charAt(i), map.get(s1.charAt(i)) + 1);\n } else {\n map.put(s1.charAt(i), 1);\n }\n\n // Decrement count for characters in s2\n if (map.containsKey(s2.charAt(i))) {\n map.put(s2.charAt(i), map.get(s2.charAt(i)) - 1);\n } else {\n map.put(s2.charAt(i), -1);\n }\n }\n\n // If there are any characters not present in both, some value would be -1 or 1.\n // This case would imply that the strings are not permutations.\n for (char c : map.keySet()) {\n if (map.get(c) != 0) return false;\n }\n return true;\n }", "public boolean containsAnagram(String s, String t) {\n\t\tint[] tmap = new int[26];\n\t\tfor (char c : t.toCharArray())\n\t\t\ttmap[c - 'A']++;\n\t\tint p1 = 0, p2 = 0;\n\t\tint minimumLen = Integer.MAX_VALUE;\n\t\tint expandedLength = t.length();\n\t\twhile (p1 < s.length() && p1 < s.length()) {\n\t\t\tif (tmap[s.charAt(p2++) - 'A']-- > 0) expandedLength--;\n\t\t\twhile (expandedLength == 0) {\n\t\t\t\tif (p2 - p1 < minimumLen) {\n\t\t\t\t\tminimumLen = p2 - p1;\n\t\t\t\t\tif (minimumLen == t.length()) return true;\n\t\t\t\t}\n\t\t\t\tif (p1 >= s.length()) break;\n\t\t\t\t// Exists in t.\n\t\t\t\tif (tmap[s.charAt(p1++) - 'A']++ == 0) expandedLength++;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}", "static boolean isPermutation_2(String a, String b){\n boolean isPermutation = true;\n //lets store every char in an array of boolean\n int[] charCount = new int[256];\n for(char c:a.toCharArray()){\n charCount[c]++;\n }\n //now verify the count in another string and subtract the count\n for(char c:b.toCharArray()){\n charCount[c]--;\n }\n //now check if any count is non-zero then the two string have unequal count of that char\n for(int i=0;i<charCount.length;i++)\n if(charCount[i]!=0)\n return false;\n \n return isPermutation;\n }", "static String twoStrings(String s1, String s2) {\n String bigstr = s1.length() > s2.length() ? s1 : s2;\n String smallstr = s1.length() > s2.length() ? s2 : s1;\n int bigstrSize = bigstr.length();\n int smallstrSize = smallstr.length();\n\n boolean string_check[] = new boolean[1000];\n\n for (int i = 0; i < bigstrSize; i++) {\n string_check[bigstr.charAt(i) - 'A'] = true;\n }\n // if at least one char is present in boolean array\n for (int i = 0; i < smallstrSize; i++) {\n if (string_check[smallstr.charAt(i) - 'A'] == true) {\n return \"YES\";\n }\n }\n return \"NO\";\n }", "public boolean isInterleaveDP(String s1, String s2, String s3) {\n\n if(s1.length()+s2.length()!=s3.length()) { return false;}\n\n // standard DP setting\n boolean[][] dp = new boolean[s1.length()+1][s2.length()+1];\n dp[0][0] = true;\n\n for(int i=0;i<=s1.length();i++){\n for(int j=0;j<=s2.length();j++){\n if(i==0&&j==0) {dp[i][j]=true;}\n else if(i==0) {// first row, \"\"+s2\n dp[i][j] = dp[i][j-1] && s3.charAt(i+j-1)==s2.charAt(j-1);\n }\n else if(j==0) { // first column, s1+\"\"\n dp[i][j] = dp[i-1][j] && s3.charAt(i+j-1)==s1.charAt(i-1);\n }\n else{\n dp[i][j] = dp[i-1][j] && s3.charAt(i+j-1)==s1.charAt(i-1) || dp[i][j-1] && s3.charAt(i+j-1)==s2.charAt(j-1);\n }\n }\n }\n return dp[s1.length()][s2.length()];\n }", "public static boolean isPermutation(String s1, String s2) {\n // TODO\n /** using set, and add a compare method in the set interface */\n return false;\n }", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean oneEditDistance(String s, String t) {\n if(s == null || t == null) return false;\n if(Math.abs(s.length() - t.length()) > 1) return false;\n int p1 = 0, p2 = 0, count = 0;\n while (p1 < s.length() && p2 < t.length()) {\n if(count > 1) return false;\n if(s.charAt(p1) == t.charAt(p2)) {\n p1++;\n p2++;\n } else if(s.length() == t.length()) {\n count++;\n p1++;\n p2++;\n } else if(s.length() > t.length()) {\n count++;\n p1++;\n } else {\n count++;\n p2++;\n }\n }\n return (s.length() == t.length() && count == 1)\n || (Math.abs(s.length() - t.length()) == 1 && count == 0);\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "private boolean isStrobogrammaticByTwoPointers(String numStr){\n if(numStr == null || numStr.length() == 0){\n return false;\n }\n\n int len = numStr.length();\n int start = 0;\n int end = len - 1;\n while(start < end){\n if(!isSymmetric(numStr.charAt(start), numStr.charAt(end))){\n return false;\n }\n\n start++;\n end--;\n }\n\n // odd length, check the middle cha\n if(len % 2 != 0){\n if(!(numStr.charAt(start) == '0' || numStr.charAt(start) == '1' || numStr.charAt(start) == '8')){\n return false;\n }\n }\n\n return true;\n }", "public static boolean provera(String s, char[] niz) {\r\n\t\tchar[] rec = s.toCharArray();\r\n\t\tint brojac = 0;\r\n\t\tint pozicija = 0;\r\n\t\tchar trenutni;\r\n\r\n\t\tfor (int i = 0; i < rec.length; i++) {\r\n\t\t\tchar temp = rec[i];\r\n\t\t\tfor (int j = 0 + pozicija; j < niz.length; j++) {\r\n\t\t\t\tif (temp == niz[j]) {\r\n\t\t\t\t\tbrojac++;\r\n\r\n\t\t\t\t\ttrenutni = niz[pozicija];\r\n\t\t\t\t\tniz[pozicija] = niz[j];\r\n\t\t\t\t\tniz[j] = trenutni;\r\n\t\t\t\t\tpozicija++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif (brojac != rec.length)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "static boolean areAnagram(char[] str1, char[] str2)\n\t{\n\t\t// Get lengths of both strings\n\t\tint n1 = str1.length;\n\t\tint n2 = str2.length;\n\n\t\t// If length of both strings is not same,\n\t\t// then they cannot be anagram\n\t\tif (n1 != n2)\n\t\t\treturn false;\n\n\t\t// Sort both strings\n\t\tArrays.sort(str1);\n\t\tArrays.sort(str2);\n\n\t\t// Compare sorted strings\n\t\tfor (int i = 0; i < n1; i++)\n\t\t\tif (str1[i] != str2[i])\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }", "public boolean isAnagram(String a, String b) {\n if (a.length() != b.length()) {\n return false;\n }\n\n HashMap<Character, Integer> aTable = new HashMap<>();\n\n //Store the counts of all the characters of the first string in a hashmap\n for (int i = 0; i < a.length(); i++) {\n Character currChar = a.charAt(i);\n if (aTable.containsKey(currChar)) {\n aTable.put(currChar, aTable.get(currChar) + 1);\n } else {\n aTable.put(currChar, 1);\n }\n }\n\n //Now iterate through the second string and decrement the count of the characters\n for (int j = 0; j < b.length(); j++) {\n Character currChar = b.charAt(j);\n if (!aTable.containsKey(currChar)) {\n return false;\n } else if (aTable.get(currChar) == 0) {\n return false;\n } else if (aTable.get(currChar) > 0) {\n aTable.put(currChar, aTable.get(currChar) - 1);\n }\n\n }\n\n return true;\n\n\n }", "boolean isPermutationSorting(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tchar[] s1Arr = s1.toCharArray();\n\t\tchar[] s2Arr = s2.toCharArray();\n\t\tjava.util.Arrays.sort(s1Arr);\n\t\tjava.util.Arrays.sort(s2Arr);\n\n\t\tString newS1 = new String(s1Arr);\n\t\tString newS2 = new String(s2Arr);\n\t\tif(newS1.equals(newS2)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\n\tString a = \"aabbbc\", b= \"cabbbac\";\n\t// a = abc, b=cab\n\t//we will remove all dublicated values from \"a\"\n\tString a1 = \"\"; //store all the non duplicated values from \"a\"\n\t\n\tfor (int j=0; j<a.length();j++) //this method is with nested loop\n\tfor (int i=0; i<a.length();i++) {\n\t\tif (!a1.contains(a.substring(j, j+1))) {\n\t\t\ta1 += a.substring(j, j+1);\n\t\t}\n\t\t\t\n\t}\n\tSystem.out.println(a1);\n\t//we will remove all duplicated values from \"b\"\n\tString b1 = \"\"; //store all the non duplicated values from \"b\"\n\tfor(int i=0; i<b.length();i++) { //this is with simple loop\n\t\tif(!b1.contains(b.substring(i, i+1))) {\n\t\t\t // \"\"+b.charAt(i)\n\t\t\tb1 += b.substring(i, i+1);\n\t\t\t// \"\"+b.charAt(i);\n\t\t}\n\t}\n\tSystem.out.println(b1);\n\t\n\t\n\t//a1 = \"acb\", b1 = \"cab\"\n\tchar[] ch1 = a1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch1));\n\t\n\tchar[] ch2 = b1.toCharArray();\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\tArrays.sort(ch1);\n\tArrays.sort(ch2);\n\t\n\tSystem.out.println(\"========================\");\n\tSystem.out.println(Arrays.toString(ch1));\n\tSystem.out.println(Arrays.toString(ch2));\n\t\n\t\n\tString str1 = Arrays.toString(ch1);\n\tString str2 = Arrays.toString(ch2);\n\t\n\tif(str1.equals(str2)) {\n\t\tSystem.out.println(\"true, they are same letters\");\n\t}else {\n\t\tSystem.out.println(\"false, they are contain different letters\");\n\t}\n\t\n\t\n\t// solution 2:\n\t\t\t String Str1 = \"cccccaaaabbbbccc\" , Str2 = \"cccaaabbb\";\n\t\t\t \n\t\t\t Str1 = new TreeSet<String>( Arrays.asList( Str1.split(\"\"))).toString();\n\t\t\t Str2 = new TreeSet<String>( Arrays.asList( Str2.split(\"\"))).toString();\n\t\t\t \n\t\t\t System.out.println(Str1.equals(Str2));\n\t\t\t\t \n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n}", "public static boolean areCircularPermutedStrings(String firstWord, String secondWord) {\n int a = 0;\n boolean x = false;\n if (firstWord.length() != secondWord.length()) {\n return false;\n }\n for (int i = firstWord.length() - 1; i > 1; i--) {\n boolean exists = secondWord.contains(firstWord.substring(0, i));\n if (exists == true) {\n boolean exists2 = secondWord.contains(firstWord.substring(i));\n if (exists2 == true) {\n a++;\n x = true;\n break;\n }\n }\n\n }\n return x;\n }", "public static boolean isAnagram(String first, String second) {\n first = first.toLowerCase();\n second = second.toLowerCase();\n // Two strings can't be anagrams if they're not the same length\n if (first.length() != second.length()){\n return false;\n }\n HashMap<Character, Integer> firstWord = new HashMap<Character, Integer>();\n HashMap<Character, Integer> secondWord = new HashMap<Character, Integer>();\n\n // Count character occurences in 1st word\n for(int i = 0; i < first.length(); i++){\n char key = first.charAt(i);\n firstWord.put(key, firstWord.getOrDefault(key, 0)+1);\n }\n // Count character occurrences in 2nd word\n for(int i = 0; i < second.length(); i++){\n char key = second.charAt(i);\n secondWord.put(key, secondWord.getOrDefault(key, 0)+1);\n }\n return firstWord.equals(secondWord);\n }", "public static boolean backspaceCompare(String S, String T) {\n char[] arr1 = S.toCharArray();\n char[] arr2 = T.toCharArray();\n StringBuilder sb1 = new StringBuilder();\n StringBuilder sb2 = new StringBuilder();\n for(int i = arr1.length - 1; i >= 0; i--){\n if(arr1[i] == '#'){\n arr1[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr1[k] != '#' && arr1[k] != ' '){\n arr1[k] = ' ';\n break;\n }\n }\n }else if(arr1[i] != ' '){\n sb1.append(arr1[i]);\n }\n }\n\n for(int i = arr2.length - 1; i >= 0; i--){\n if(arr2[i] == '#'){\n arr2[i] = ' ';\n for(int k = i - 1; k >= 0; k--){\n if(arr2[k] != '#' && arr2[k] != ' '){\n arr2[k] = ' ';\n break;\n }\n }\n }else if(arr2[i] != ' '){\n sb2.append(arr2[i]);\n }\n }\n// System.out.println(\"sb1:\"+sb1.toString()+\"----sb2:\"+sb2.toString());\n return sb1.toString().equals(sb2.toString());\n }", "protected int stringCompare(String s1,String s2)\r\n\t{\r\n\t\tint shortLength=Math.min(s1.length(), s2.length());\r\n\t\tfor(int i=0;i<shortLength;i++)\r\n\t\t{\r\n\t\t\tif(s1.charAt(i)<s2.charAt(i))\r\n\t\t\t\treturn 0;\r\n\t\t\telse if(s1.charAt(i)>s2.charAt(i))\r\n\t\t\t\treturn 1;\t\r\n\t\t}\r\n\t\t//if the first shrotLenghtTH characters of s1 and s2 are same \r\n\t\tif(s1.length()<=s2.length()) //it's a close situation. \r\n\t\t\treturn 0;\r\n\t\telse \r\n\t\t\treturn 1; \r\n\t\t\r\n\t}", "public boolean isInterleave(String s1, String s2, String s3) {\n // write your code here\n\n int l1 = s1.length();\n int l2 = s2.length();\n int l3 = s3.length();\n\n // interleaving condition\n if (l1 + l2 != l3)\n return false;\n\n boolean[][] dp = new boolean[l1+1][l2+2];\n dp[0][0] = true;\n\n // initializing the table based on first string\n for (int i = 1; i <= l1; i++){\n if (s3.charAt(i-1) == s1.charAt(i-1) && dp[i-1][0])\n dp[i][0] = true;\n }\n\n // initializing the table based on second string\n for (int i = 1; i <= l2; i++){\n if (s3.charAt(i-1) == s2.charAt(i-1) && dp[0][i-1])\n dp[0][i] = true;\n }\n\n for (int i = 1; i<=l1; i++){\n for (int j=1; j<=l2; j++){\n if (dp[i][j-1] && (s3.charAt(i+j-1) == s2.charAt(j-1)) ||\n dp[i-1][j] && (s3.charAt(i+j-1) == s1.charAt(i-1)))\n dp[i][j] = true;\n }\n\n }\n return dp[l1][l2];\n }" ]
[ "0.88713944", "0.8779681", "0.872534", "0.87034565", "0.8672806", "0.8660714", "0.85664237", "0.8480057", "0.8221533", "0.79752153", "0.7149985", "0.7149973", "0.7026785", "0.68309873", "0.6823226", "0.68191624", "0.6726521", "0.67035115", "0.6687369", "0.6667013", "0.66373664", "0.6636819", "0.66123056", "0.6588405", "0.65499276", "0.65168625", "0.64939976", "0.6476262", "0.6418596", "0.6392165", "0.63800883", "0.6330265", "0.632783", "0.6315062", "0.6310812", "0.6299514", "0.6293851", "0.62650466", "0.62531734", "0.6242752", "0.62351555", "0.62290245", "0.62231416", "0.6204042", "0.61688685", "0.6156649", "0.6147255", "0.61328113", "0.6128708", "0.6121916", "0.6109531", "0.61024094", "0.60979474", "0.6078454", "0.6076685", "0.607579", "0.60729825", "0.6071506", "0.6063951", "0.60569453", "0.60527825", "0.60512275", "0.6049951", "0.60389674", "0.60382575", "0.6037177", "0.6034709", "0.6033488", "0.60327125", "0.60146075", "0.60095894", "0.6008678", "0.60006636", "0.6000647", "0.5997207", "0.59853196", "0.59792954", "0.59738785", "0.5967886", "0.5955038", "0.5954407", "0.5943693", "0.59395677", "0.5916091", "0.59148264", "0.59115785", "0.589271", "0.5892326", "0.58816093", "0.5878638", "0.58684987", "0.58672774", "0.5863085", "0.5860188", "0.5843606", "0.583765", "0.58290374", "0.5818313", "0.58126515", "0.58124596" ]
0.8693369
4
/ Instance fields. / Constructors. / public & interface method. / private method.
public Page<VendorReqstResult> selectVendorRequestList(VendorReqstDTO vendorReqstDTO, PageParam pageParam) throws Exception { // 페이지 설정 RepositoryHelper.makePageEntityIndex(vendorReqstDTO, pageParam); // 공지사항 리스트 조회 List<VendorReqstResult> resultList = getSession1().selectList("com.plgrim.ncp.biz.vendor.request.selectVendorRequestList", vendorReqstDTO); // 공지사항 게시글 갯수 조회 long totalRow = getSession1().selectOne("com.plgrim.ncp.biz.vendor.request.selectVendorRequestTotal", vendorReqstDTO); return new PageImpl<VendorReqstResult>(resultList, pageParam.getPageable(), totalRow); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void __sep__Constructors__() {}", "public OOP_207(){\n\n }", "private TMCourse() {\n\t}", "@Override\n void init() {\n }", "private MApi() {}", "@Override\n public void init() {}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "private Instantiation(){}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private CommonMethods() {\n }", "public Constructor(){\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "Reproducible newInstance();", "public void init() {\n \n }", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "public Implementor(){}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public SgaexpedbultoImpl()\n {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private void init() {\n }", "private IndexBitmapObject() {\n\t}", "private LOCFacade() {\r\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\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}", "private ObjectRepository() {\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}", "protected void init() {\n // to override and use this method\n }", "private InstanceUtil() {\n }", "private stendhal() {\n\t}", "public void init() { }", "public void init() { }", "private void init() {\n\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public AirAndPollen() {\n\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private Road()\n\t{\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public CSSTidier() {\n\t}", "private OMUtil() { }", "@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 }", "private ChainingMethods() {\n // private constructor\n\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "protected void _init(){}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public Self__1() {\n }", "public void init() {}", "public void init() {}", "public Instance() {\n }", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "public PSRelation()\n {\n }", "public void init(){\n \n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override // opcional\n public void init(){\n\n }", "private void init() {\n\n\n\n }", "protected void init() {\n }", "@Override\n\tpublic void init() {\n\t}", "public void init() {\n\t\t\n\t}", "public API() {}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public Ov_Chipkaart() {\n\t\t\n\t}", "private HYCOM() {\n }", "public void init() {\r\n\r\n\t}", "protected abstract void construct();", "private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "public void init(){}", "@Override\r\n\tpublic void init() {\n\r\n\t}" ]
[ "0.7385603", "0.72886527", "0.72670245", "0.7233677", "0.7106289", "0.7049334", "0.70256823", "0.7015467", "0.69642735", "0.6956014", "0.6931463", "0.6928075", "0.6923835", "0.6916111", "0.6903436", "0.68952316", "0.68948185", "0.6888041", "0.68864286", "0.68623793", "0.68346584", "0.68342996", "0.6825754", "0.68182397", "0.6817138", "0.68145144", "0.6814459", "0.67969626", "0.6786943", "0.6786943", "0.677073", "0.6768422", "0.6761859", "0.67553943", "0.67549485", "0.6752365", "0.67497146", "0.67497146", "0.67497146", "0.67263037", "0.671715", "0.671715", "0.671715", "0.671715", "0.671715", "0.6709215", "0.67090094", "0.6708123", "0.6698812", "0.6698812", "0.66918415", "0.66771114", "0.66771114", "0.66771114", "0.66771114", "0.6674431", "0.66667086", "0.6664695", "0.6663606", "0.66628534", "0.6657095", "0.6655147", "0.66399544", "0.66399544", "0.66399544", "0.66399544", "0.66399544", "0.66399544", "0.66397303", "0.66337794", "0.66337794", "0.6621484", "0.6619822", "0.66191244", "0.6618667", "0.6618667", "0.6618667", "0.66085964", "0.6608195", "0.6608195", "0.6601026", "0.6599599", "0.65982354", "0.65975773", "0.6594762", "0.6594762", "0.65909517", "0.6590297", "0.65884846", "0.65874636", "0.65862674", "0.6583797", "0.65799356", "0.6576076", "0.6575476", "0.65740675", "0.656702", "0.65655696", "0.65654886", "0.65625924", "0.65520024" ]
0.0
-1
soll von javascript aufgerufen werden
public void set(String msg) { eingabeString = msg; JOptionPane.showMessageDialog(null, "nashorn -> java: " + msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Javascript() {\n\n\t}", "String getJavascriptValidation( );", "public JavaScript(String javaScript) {\n this.javaScript = javaScript;\n }", "Container moreJavaScript(){\n\n Container con = new Container();\n con.addItem(\"/*****************************************************************/\\n\");\n con.addItem(\"function writeIt(the_long,the_lat,the_table)\\n\" +\n \"{\\n\" +\n \" var new_long = the_long - 0;\\n\" +\n \" var new_lat = the_lat - 0;\\n\" +\n \" var new_table = the_table - 0;\\n\" +\n \" var word_long_return = new_long + new_table;\\n\" +\n \" window.document.myForm.plongitudeeast.value = word_long_return;\\n\" +\n \" var word_lat_return = new_lat + new_table;\\n\" +\n \" window.document.myForm.platitudesouth.value = word_lat_return;\\n\" +\n \"}\\n\");\n con.addItem(\"function updatePTable(what)\\n\" +\n \"{\\n\" +\n \" var n = what.selectedIndex;\\n\" +\n \" /* window.alert(\\\"n = \\\" + n); */\\n\" +\n \" what.form.ptable.value = what.form.ptablesize.options[n].value;\\n\" +\n \"}\\n\");\n con.addItem(\"/*****************************************************************/\\n\");\n\n con.addItem(\"var menu = new Array (\\n\");\n for (int i = 0; i < sc.MAX1; i++) {\n con.addItem(\"\\\"\" + (i+1) + \"|\" + (i+1) + \"|\" + trueFalse[i] + \"*\");\n for (int j = 0; j < sc.MAX2; j ++) {\n if (sc.BSIZE[i][j] != 0) {\n String quote = \"\\\"\";\n if (j == 0) quote = \"\";\n String truef = \"\";\n if (j == 5) truef = \"|true\";\n String plus = \"+\";\n if (sc.MINSQ[i][j] == 20) plus = \",\";\n if ((i == (sc.MAX1-1)) && (sc.MINSQ[i][j] == 20)) plus = \")\";\n con.addItem(quote + i + \"-\" + j + \"|\" + sc.BSIZE[i][j] + \"(\" +\n sc.MINSQ[i][j] + \"x\" + sc.MINSQ[i][j] + \")\" +\n truef + \"#\\\"\" + plus + \"\\n\");\n } // if (sc.BSIZE[i][j] != 0)\n } // for (int j = 0; j < MAX2; j ++)\n } // for (int i = 0; i < MAX1; i++)\n\n return con;\n\n }", "public void jsContructor() {\n }", "boolean hasJs();", "public static JavaScript js(String javaScript) {\n return js(javaScript);\n }", "private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;", "void setJs(final String js) {\n this.js = js;\n }", "public static String toJSString(String inText)\n {\n //String text = HTMLDocument.simpleConvert(inText);\n // TODO: check if we need HTML conversion here and if this could be moved\n // to util or something\n return \"'\" + escapeJS(inText) + \"'\";\n }", "protected abstract Object evalValue() throws JspException;", "@Override\n\tpublic void handleJs(JavaScriptObject message) {\n\t\t\n\t}", "public String getAsString() {\n return javaScript;\n }", "public String evaluate(final String jsExpression);", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;", "@Test\n public void fixedInHtmlUnit() throws Exception {\n final String html = \"<html></html>\";\n final HtmlPage page = loadPage(html);\n final Window topScope = ((Window) page.getEnclosingWindow().getScriptObject());\n topScope.put(\"str\", topScope, str_);\n topScope.put(\"text\", topScope, text_);\n topScope.put(\"expected\", topScope, expected_);\n page.executeJavaScript(src_);\n }", "private WebResourceResponse m3276a() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"javascript:\");\n sb.append(C5031a.m3289a());\n return new WebResourceResponse(\"text/javascript\", \"UTF-8\", new ByteArrayInputStream(sb.toString().getBytes()));\n }", "@org.junit.Test\n public void jsString()\n {\n assertEquals(\"empty\", \"''\", Encodings.toJSString(\"\"));\n assertEquals(\"simple\", \"'test'\", Encodings.toJSString(\"test\"));\n assertEquals(\"escape\", \"'escape \\\\\\'\\\\\\\"strings\\\\\\\"\\\\''\",\n Encodings.toJSString(\"escape '\\\"strings\\\"'\"));\n }", "private void m48553b(String str) {\n WebView webView = (WebView) this.f34939a.get();\n if (webView != null) {\n StringBuffer stringBuffer = new StringBuffer(XDLJsInterface.JAVASCRIPT_PREFIX);\n stringBuffer.append(\"if(!!\");\n stringBuffer.append(this.f35123d);\n stringBuffer.append(\"){\");\n stringBuffer.append(this.f35123d);\n stringBuffer.append(\"(\");\n stringBuffer.append(str);\n stringBuffer.append(\")}\");\n String stringBuffer2 = stringBuffer.toString();\n SLog.m48368v(\"openSDK_LOG.SecureJsListener\", \"-->callback, callback: \" + stringBuffer2);\n webView.loadUrl(stringBuffer2);\n }\n }", "public String calcWithJs(String mathExpr) throws ScriptException {\r\n\t\tfinal ScriptEngineManager engineManager = new ScriptEngineManager();\r\n\t\tfinal ScriptEngine engine = engineManager.getEngineByName(\"JavaScript\");\r\n\t\t\r\n\t\t// Security for JavaScript to avoid commands injections\r\n\t\t Pattern p = Pattern.compile(\"[a-zA-Z]\");\r\n\t\t Matcher m = p.matcher(mathExpr);\r\n\t\t if(m.find())\r\n\t\t\t throw new ScriptException(\"ERROR Parsing mathExpr, the Expression contains letters\");\r\n\t\ttry {\r\n\t\t\t// Sleep to trigger the log warning\r\n\t\t\tThread.sleep(500);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn engine.eval(mathExpr).toString();\r\n\t}", "ScriptEvaluator createScriptEvaluator();", "public void loadJavaScript(String javascript) {\n if (TextUtils.isEmpty(javascript)) {\n return;\n }\n\n if (Build.VERSION.SDK_INT >= 19) { //Build.VERSION_CODES.KITKAT\n String newJS = clipJacaScriptUrlString(javascript);\n if (!newJS.startsWith(\"javascript:\")) {\n try{\n super.evaluateJavascript(newJS, null);\n }catch (Exception | Error e){\n super.loadUrl(javascript);\n e.printStackTrace();\n }\n } else {\n super.loadUrl(javascript);\n }\n } else {\n super.loadUrl(javascript);\n }\n }", "public void handleScript(HtmlObjects.Script t)\n {\n }", "public interface JavaScriptInterface {\n\n\n\n}", "private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;", "private String getJGrowlAfterOpenJavaScript() {\n StringBuilder javaScript = new StringBuilder();\n javaScript.append(\"function(e,m,o) {\");\n javaScript.append(\"var link = e.find('a');\");\n javaScript.append(\"if (link.size() > 0) {\");\n// javaScript.append(\"window.open(link.attr('href'), '_blank');\");\n javaScript.append(\"link[0].click();\");\n javaScript.append(\"}\");\n javaScript.append(\"}\");\n\n return javaScript.toString();\n }", "@Override\n\tpublic String convertToJavascript() {\n\t\tString str = \"new Property('\" + propType.getSSID() + \"', '\" + displayName + \"', '\" + mode.toString() + \"', '\"\n\t\t\t\t+ value.toString() + \"')\";\n\t\treturn str;\n\t}", "public final synchronized void evaluateJavascript(java.lang.String r2, android.webkit.ValueCallback<java.lang.String> r3) {\n /*\n r1 = this;\n monitor-enter(r1)\n boolean r0 = r1.mo39703C() // Catch:{ all -> 0x0019 }\n if (r0 == 0) goto L_0x0014\n java.lang.String r2 = \"#004 The webview is destroyed. Ignoring action.\"\n com.google.android.gms.internal.ads.acd.m45784f(r2) // Catch:{ all -> 0x0019 }\n if (r3 == 0) goto L_0x0012\n r2 = 0\n r3.onReceiveValue(r2) // Catch:{ all -> 0x0019 }\n L_0x0012:\n monitor-exit(r1)\n return\n L_0x0014:\n super.evaluateJavascript(r2, r3) // Catch:{ all -> 0x0019 }\n monitor-exit(r1)\n return\n L_0x0019:\n r2 = move-exception\n monitor-exit(r1)\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.amu.evaluateJavascript(java.lang.String, android.webkit.ValueCallback):void\");\n }", "private final synchronized void m46509N() {\n this.f40737s = C14793ay.m42898d().mo39091b();\n if (this.f40737s == null) {\n try {\n evaluateJavascript(\"(function(){})()\", null);\n m46522a(Boolean.valueOf(true));\n } catch (IllegalStateException unused) {\n m46522a(Boolean.valueOf(false));\n }\n }\n }", "public void readJSCodeToString() {\n String currProjPath = System.getProperty(\"user.dir\");\n String JSDirPath = \"/src/main/js\";\n this.excludeTagsJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/ExcludeTags.js\");\n this.getClickElementOfDOMJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetClickElementOfDOM.js\");\n this.getElementXPathJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetElementXPath.js\");\n this.getHiddenElementOfDOMJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetHiddenElementsOfDOM.js\");\n this.isDisPlayedJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/IsDisplayed.js\");\n }", "public interface JSCompressor\r\n{\r\n\r\n /**\r\n * Constants for optimization level\r\n */\r\n int NONE = 0;\r\n\r\n int MAX = 9;\r\n\r\n /**\r\n * Javascript language versions\r\n */\r\n int JAVASCRIPT_1_1 = 110;\r\n\r\n int JAVASCRIPT_1_2 = 120;\r\n\r\n int JAVASCRIPT_1_3 = 130;\r\n\r\n /**\r\n * Compress the input script file into the output file (may be same).\r\n * \r\n * @param input source to get compressed\r\n * @param output compressed script\r\n * @param level optimization level from 0 to 9. May have various\r\n * signification dependending on the compressor, from beeing ignored to some\r\n * fine tweaking the output.\r\n * @param language version of javascript to be used (\"130\" for JS 1.3), as\r\n * defined by Mozilla Rhino engine\r\n * @throws CompressionException any error during compression\r\n */\r\n void compress( File input, File output, int level, int language )\r\n throws CompressionException;\r\n}", "protected abstract String evalDefault() throws JspException;", "Value eval(String script, String name, String contentType, boolean interactive) throws Exception;", "public String buildJS() {\n if (className == null || instanceName == null) {\n // The query is only \"select `JS_expression`\" - in that case, just eval it\n return \"{ visitor = wrapVisitor(visitor); let result = \"+selectExpression+\"; let isIterable = result != null && typeof result[Symbol.iterator] === 'function'; if (isIterable) { for (r in result) { if (visitor.visit(result[r])) { break }; }} else { visitor.visit(result); } }\";\n } else {\n // The query is \"select `JS_expression` from `class_name` `identifier`\n // visitor is\n String selectFunction = \"function __select__(\"+instanceName+\") { return \"+selectExpression+\" };\";\n String iteratorConstruction = \"let iterator = heap.objects('\"+className+\"', \"+isInstanceOf+\");\";\n String whereFunction;\n String resultsIterator;\n if (whereExpression == null) {\n whereFunction = \"\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if (visitor.visit(__select__(item))) { break; }; };\";\n } else {\n whereFunction = \"function __where__(\"+instanceName+\") { return \"+whereExpression+\" };\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if(__where__(item)) { if (visitor.visit(__select__(item))) { break; } } };\";\n }\n return \"{ visitor = wrapVisitor(visitor); \" + selectFunction + whereFunction + iteratorConstruction + resultsIterator + \"}\";\n }\n }", "public void handleJava(HtmlObjects.Java t)\n {\n }", "public static void writeJavaScript(final Response response, final CharSequence text)\n\t{\n\t\tAttributeMap attributes = new AttributeMap();\n\t\tattributes.putAttribute(ATTR_TYPE, \"text/javascript\");\n\t\twriteInlineScript(response, text, attributes);\n\t}", "private boolean temNoScript() {\r\n\t\tif (!procurouNoScript) {\r\n\t\t\ttemnoscript = regras.verificaNoscript(codHTML);\r\n\t\t\tprocurouNoScript = true;\r\n\t\t}\r\n\t\treturn temnoscript;\r\n\t}", "Hojas eval();", "public Map<String, String> getEscapeForJavaScript() {\n return FxSharedUtils.getMappedFunction(new FxSharedUtils.ParameterMapper<String, String>() {\n @Override\n public String get(Object key) {\n return FxFormatUtils.escapeForJavaScript(String.valueOf(key), false, true);\n }\n });\n }", "@Test\n public void needCustomFix() {\n final Context ctx = ContextFactory.getGlobal().enterContext();\n final ScriptableObject topScope = ctx.initStandardObjects();\n \n topScope.put(\"str\", topScope, str_);\n topScope.put(\"text\", topScope, text_);\n topScope.put(\"expected\", topScope, expected_);\n \n assertEquals(begin_ + end_, text_.replaceAll(str_, \"\"));\n try {\n ctx.evaluateString(topScope, src_, \"test script\", 0, null);\n }\n catch (final JavaScriptException e) {\n assertTrue(e.getMessage().indexOf(\"Expected >\") == 0);\n }\n }", "public void loadJavaScript(String javascript, final ValueCallback<String> resultCallback) {\n if (TextUtils.isEmpty(javascript)) {\n return;\n }\n\n if(Build.VERSION.SDK_INT >= 19) { //Build.VERSION_CODES.KITKAT\n String newJS = clipJacaScriptUrlString(javascript);\n if (!newJS.startsWith(\"javascript:\")) {\n try{\n super.evaluateJavascript(newJS, resultCallback);\n }catch (Exception | Error e){\n super.loadUrl(javascript);\n e.printStackTrace();\n }\n } else {\n super.loadUrl(javascript);\n }\n } else {\n super.loadUrl(javascript);\n }\n }", "public static String escapeJS(String inText)\n {\n return inText\n .replaceAll(\"(?<!\\\\\\\\)'\", \"\\\\\\\\'\")\n .replaceAll(\"(?<!\\\\\\\\)\\\"\", \"\\\\\\\\\\\"\")\n .replaceAll(\"\\n\", \"\\\\\\\\n\");\n }", "protected String getNoScriptMessage() {\n return \"You have to enable javascript in your browser to use an application built with Vaadin.\";\n }", "private String clipJacaScriptUrlString (String javascript) {\n String newJavaScriptStrin = javascript;\n\n if (!TextUtils.isEmpty(javascript)) {\n int javaScriptStringIndex = javascript.indexOf(\":\");\n if (javaScriptStringIndex > 0) {\n try {\n int clipIndex = javaScriptStringIndex + 1;\n if (clipIndex > 0 && clipIndex <= javascript.length()) {\n newJavaScriptStrin = javascript.substring(clipIndex, javascript.length());\n }\n } catch (StringIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n }\n }\n\n return newJavaScriptStrin;\n }", "@Test\r\n\tpublic void jsopathTest() {\r\n\t\tSystem.err.println(\"Execute: \" + expression);\r\n\t\tString value = (String) executeScript(\"return \" + expression);\r\n\t\tassertThat(value, is(\"Downloads\"));\r\n\t\tSystem.err.println(\"Result value: \" + value);\r\n\t}", "public final void mo53443a(WebView webView, String str) {\n if (webView != null) {\n boolean z = false;\n if (str != null && str.startsWith(\"javascript:\")) {\n try {\n webView.evaluateJavascript(str, null);\n z = true;\n } catch (Throwable th) {\n boolean z2 = th instanceof IllegalStateException;\n }\n }\n if (!z) {\n try {\n C19942i.m65777a(webView, str);\n } catch (Throwable unused) {\n }\n }\n }\n }", "@JavascriptInterface\n @SuppressWarnings(\"unused\")\n public void processHTML(String html) {\n\n Element content;\n String value = \"\";\n try {\n org.jsoup.nodes.Document doc = Jsoup.parse(html, \"UTF-8\");\n content = doc.getElementsByClass(\"rupee\").get(0);\n value = content.text();\n } catch (Exception e) {\n e.printStackTrace();\n }\n listener.update(value);\n }", "javascriptInt(Context c) {\n this.c = c;\n }", "public void visitJSR(JSR o){\n\t\t// nothing to do here.\n\t}", "protected String event2JavaScript(Event event) throws IOException {\n\n\t\t// Convert the event to a comma-separated string.\n\t\tString jsArgs = \"\";\n\t\tfor (Iterator iter = event.getFieldNames(); iter.hasNext();) {\n\t\t\tString name = (String) iter.next();\n\t\t\tString value = event.getField(name);\n\t\t\tString nextArgument = (jsArgs.equals(\"\") ? \"\" : \",\") + \"'\" + name + \"'\" + \", \\\"\" + value + \"\\\"\";\n\t\t\tjsArgs += nextArgument;\n\t\t}\n\n\t\t// Construct and return the function call */\n\t\treturn \"<script language=\\\"JavaScript\\\">parent.push(\" + jsArgs + \");</script>\";\n\t}", "public static String javaScriptStringEnc(String s) {\n int ln = s.length();\n for (int i = 0; i < ln; i++) {\n char c = s.charAt(i);\n if (c == '\"' || c == '\\'' || c == '\\\\' || c == '>' || c < 0x20) {\n StringBuffer b = new StringBuffer(ln + 4);\n b.append(s.substring(0, i));\n while (true) {\n if (c == '\"') {\n b.append(\"\\\\\\\"\");\n } else if (c == '\\'') {\n b.append(\"\\\\'\");\n } else if (c == '\\\\') {\n b.append(\"\\\\\\\\\");\n } else if (c == '>') {\n b.append(\"\\\\>\");\n } else if (c < 0x20) {\n if (c == '\\n') {\n b.append(\"\\\\n\");\n } else if (c == '\\r') {\n b.append(\"\\\\r\");\n } else if (c == '\\f') {\n b.append(\"\\\\f\");\n } else if (c == '\\b') {\n b.append(\"\\\\b\");\n } else if (c == '\\t') {\n b.append(\"\\\\t\");\n } else {\n b.append(\"\\\\x\");\n int x = c / 0x10;\n b.append((char)\n (x < 0xA ? x + '0' : x - 0xA + 'A'));\n x = c & 0xF;\n b.append((char)\n (x < 0xA ? x + '0' : x - 0xA + 'A'));\n }\n } else {\n b.append(c);\n }\n i++;\n if (i >= ln) {\n return b.toString();\n }\n c = s.charAt(i);\n }\n } // if has to be escaped\n } // for each characters\n return s;\n }", "private void doNativeConversion(){\n if(plotValues != null && xLabels != null){\n\n JSFactory factory = new JSFactory();\n JsArrayString jsXValues = factory.getStringJsArray();\n JsArrayMixed jsYValues = factory.getMixedArray();\n JsArrayString jsBarLabels = factory.getStringJsArray();\n JsArrayString jsBarColors = factory.getStringJsArray();\n \n\n //Grab the container of the plotted values, and converts them to\n //native js types.\n for(String name : plotValues.keySet()){\n jsBarLabels.push(name);\n ArrayList<Double> values = plotValues.get(name);\n \n //After here jsNumber may look similar to [1.0, 2.0, 3.0]\n JsArrayNumber jsNumber = factory.getNumberJsArray();\n for(Double value : values){\n jsNumber.push(value);\n }\n jsYValues.push(jsNumber);\n }\n \n //After here, the jsXValues may look similar to ['a', 'b', 'c', 'd'];\n for(String label : xLabels){\n jsXValues.push(label);\n }\n \n //Setting the colors\n// for(String color : colors){\n// \tjsBarColors.push(color);\n// }\n \n plotBar(jsYValues, jsXValues, jsBarLabels, title);\n\n }else{\n GWT.log(\"Values are null!!\");\n }\n }", "public static String md2html() throws ScriptException, FileNotFoundException, NoSuchMethodException {\n ScriptEngineManager manager = new ScriptEngineManager();\n ScriptEngine engine = manager.getEngineByName(\"JavaScript\");\n\n File functionscript = new File(\"public/lib/marked.js\");\n Reader reader = new FileReader (functionscript);\n engine.eval(reader);\n\n Invocable invocableEngine = (Invocable) engine;\n Object marked = engine.get(\"marked\");\n Object lexer = invocableEngine.invokeMethod(marked, \"lexer\", \"**hello**\");\n Object result = invocableEngine.invokeMethod(marked, \"parser\", lexer);\n //invocableEngine.invokeFunction (\"yourFunction\", \"param\");\n return result.toString();\n\n }", "public String toJs(String logMissFn) {\n final StringBuilder sb = new StringBuilder();\n String logMissFnClean = logMissFn.trim();\n if(logMissFnClean.endsWith(\";\")) logMissFnClean = logMissFnClean.substring(0, logMissFnClean.length() - 1);\n sb.append('{');\n sb.append(\"logMiss:\" + logMissFnClean + \",\");\n sb.append(localizeJsFn);\n for(Iterator<String> iter = bundle.keySet().iterator(); iter.hasNext();) {\n final String key = iter.next();\n final String val = bundle.getString(key);\n\n sb.append('\"').append(legalize(key)).append('\"').append(':');\n\n Matcher m = arg.matcher(val);\n if(m.find()) {\n List<String> chunks = new LinkedList<String>();\n List<Integer> args = new ArrayList<Integer>();\n chunks.add(m.group(1));\n\n // Get all of the chunks of the value\n do {\n args.add(Integer.parseInt(m.group(2)));\n chunks.add(m.group(3));\n } while (m.find());\n\n // Build the function declaration\n int numArgs = Collections.max(args);\n sb.append(\"function(\");\n for(int i=0; i<=numArgs; i++) {\n sb.append(\"p\").append(i);\n if(i < numArgs) // this is NOT the last one\n sb.append(\",\");\n }\n sb.append(\"){return\\\"\");\n\n // Assemble the string and arguments for the body of the function\n sb.append(legalize(chunks.get(0))).append('\"'); // Add the leading stuff\n for(int i=1; i<chunks.size(); i++)\n sb.append(\"+p\"+args.get(i-1)+\"+\\\"\").append(legalize(chunks.get(i))).append('\"');\n sb.append(\";}\");\n }\n else {\n sb.append(\"function(){return\");\n sb.append('\"').append(legalize(val)).append('\"');\n sb.append(\";}\");\n }\n\n sb.append(',');\n }\n sb.append('}');\n return sb.toString();\n }", "Editor mo117962b();", "private String js() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.js\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/javascript \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }", "@Override\n\tpublic String javascriptUnbind() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String javascriptUnbind() {\n\t\treturn null;\n\t}", "private void generateJavaScriptCode(JavaToJavaScriptMap jjsMap,\n\t\t\tString[] jsFragments, StatementRanges[] ranges,\n\t\t\tSizeBreakdown[] sizeBreakdowns, List<JsSourceMap> sourceInfoMaps,\n\t\t\tboolean sourceMapsEnabled) {\n\t\tEvent generateJavascriptEvent = SpeedTracerLogger\n\t\t\t\t.start(CompilerEventType.GENERATE_JAVASCRIPT);\n\t\tfor (int i = 0; i < jsFragments.length; i++) {\n\t\t\tDefaultTextOutput out = new DefaultTextOutput(\n\t\t\t\t\t!options.isIncrementalCompileEnabled()\n\t\t\t\t\t\t\t&& options.getOutput().shouldMinimize());\n\t\t\tJsReportGenerationVisitor v = new JsReportGenerationVisitor(out,\n\t\t\t\t\tjjsMap, options.isJsonSoycEnabled());\n\t\t\tv.accept(jsProgram.getFragmentBlock(i));\n\t\t\tStatementRanges statementRanges = v.getStatementRanges();\n\t\t\tString code = out.toString();\n\t\t\tJsSourceMap infoMap = (sourceInfoMaps != null)\n\t\t\t\t\t? v.getSourceInfoMap()\n\t\t\t\t\t: null;\n\t\t\tJsAbstractTextTransformer transformer = new JsNoopTransformer(code,\n\t\t\t\t\tstatementRanges, infoMap);\n\t\t\t/**\n\t\t\t * Cut generated JS up on class boundaries and re-link the source\n\t\t\t * (possibly making use of source from previous compiles, thus\n\t\t\t * making it possible to perform partial recompiles).\n\t\t\t */\n\t\t\tif (options.isIncrementalCompileEnabled()) {\n\t\t\t\ttransformer = new JsTypeLinker(logger, transformer,\n\t\t\t\t\t\tv.getClassRanges(), v.getProgramClassRange(),\n\t\t\t\t\t\tgetMinimalRebuildCache(), jprogram.typeOracle);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\t/**\n\t\t\t * Reorder function decls to improve compression ratios. Also\n\t\t\t * restructures the top level blocks into sub-blocks if they exceed\n\t\t\t * 32767 statements.\n\t\t\t */\n\t\t\tEvent functionClusterEvent = SpeedTracerLogger\n\t\t\t\t\t.start(CompilerEventType.FUNCTION_CLUSTER);\n\t\t\t// TODO(cromwellian) move to the Js AST optimization, re-enable\n\t\t\t// sourcemaps + clustering\n\t\t\tif (!sourceMapsEnabled && !options.isClosureCompilerFormatEnabled()\n\t\t\t\t\t&& options.shouldClusterSimilarFunctions()\n\t\t\t\t\t&& options.getNamespace() == JsNamespaceOption.NONE\n\t\t\t\t\t&& options.getOutput() == JsOutputOption.OBFUSCATED) {\n\t\t\t\ttransformer = new JsFunctionClusterer(transformer);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\tfunctionClusterEvent.end();\n\t\t\tjsFragments[i] = transformer.getJs();\n\t\t\tranges[i] = transformer.getStatementRanges();\n\t\t\tif (sizeBreakdowns != null) {\n\t\t\t\tsizeBreakdowns[i] = v.getSizeBreakdown();\n\t\t\t}\n\t\t\tif (sourceInfoMaps != null) {\n\t\t\t\tsourceInfoMaps.add(transformer.getSourceInfoMap());\n\t\t\t}\n\t\t}\n\t\tgenerateJavascriptEvent.end();\n\t}", "public void executeScript(String js) {\n try {\n this.webView.getEngine().executeScript(js);\n } catch (RuntimeException ex) {\n ex.printStackTrace();\n if (!this.pdfJsLoaded) this.toExecuteWhenPDFJSLoaded += String.format(\"%s;\", js);\n }\n }", "private void dataToJS() {\n\t\tStringBuilder code = new StringBuilder();\n\t\tfor (int i = 0; i < tokens.size(); i++) {\n\t\t\tswitch (tokens.get(i)) {\n\t\t\tcase INPUT:\n\t\t\t\tboolean hasRead = false;\n\t\t\t\twhile (tokens.get(i+1) == VARIABLE_NAME || tokens.get(i+1) == COMMA) {\n\t\t\t\t\thasRead = true;\n\t\t\t\t\tif (tokens.get(i+1) == COMMA) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isReferenced(metadata.get(i+1))) {\n\t\t\t\t\t\tcode.append(metadata.get(i+1)+\" = Number.parseInt(prompt());\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcode.append(\"var \"+metadata.get(i+1)+\" = Number.parseInt(prompt());\\n\");\n\t\t\t\t\t\tvarReferences.add(metadata.get(i+1));\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!hasRead) outputAndThrow(new RuntimeException(\"Error: Expected variable identifier.\\n\"));\n\t\t\t\tbreak;\n\t\t\tcase OUTPUT:\n\t\t\t\ti++;\n\t\t\t\tif (tokens.get(i).isOutputable()) {\n\t\t\t\t\twhile (tokens.get(i).isOutputable()) {\n\t\t\t\t\t\tif (tokens.get(i) == COMMA) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tif (i >= tokens.size()) break;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcode.append(\"alert(\");\n\t\t\t\t\t\ti = appendUntil(code, i, COMMA);\n\t\t\t\t\t\tcode.append(\");\\n\");\n\t\t\t\t\t\tif (i >= tokens.size()) break;\n\t\t\t\t\t}\n\t\t\t\t} else outputAndThrow(new RuntimeException(\"Error: Can only output variables, constants or expressions.\\n\"));\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\tcase VARIABLE_NAME:\n\t\t\t\tif (i+1 >= tokens.size()) break;\n\t\t\t\tif (tokens.get(i+1) == ASSIGNMENT) {\n\t\t\t\t\tif (!varReferences.contains(metadata.get(i))) {\n\t\t\t\t\t\tcode.append(\"var \");\n\t\t\t\t\t\tvarReferences.add(metadata.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tcode.append(metadata.get(i)+\" = \");\n\t\t\t\t\ti += 2;\n\t\t\t\t\ti = appendUntil(code, i, LINE);\n\t\t\t\t\tcode.append(\";\\n\");\n\t\t\t\t} else outputAndThrow(new RuntimeException(\"Error: Expected assignment.\\n\"));\n\t\t\t\tbreak;\n\t\t\tcase IF:\n\t\t\t\tcode.append(\"if (\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, THEN);\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase ELSE:\n\t\t\t\tcode.append(\"} else {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase FOR:\n\t\t\t\tcode.append(\"for (\");\n\t\t\t\tif (tokens.get(i+1) != VARIABLE_NAME && tokens.get(i+2) != ASSIGNMENT) outputAndThrow(new RuntimeException(\"Error: Expected iterator declartion.\\n\"));\n\t\t\t\tString itName = metadata.get(i+1);\n\t\t\t\tif (!varReferences.contains(itName)) varReferences.add(itName);\n\t\t\t\tcode.append(\"var \" + itName + \" = \");\n\t\t\t\ti += 3;\n\t\t\t\ti = appendUntil(code, i, COMMA);\n\t\t\t\ti++;\n\t\t\t\tcode.append(\"; \" + itName);\n\t\t\t\tStringBuilder tmp = new StringBuilder();\n\t\t\t\ti = appendUntil(tmp, i, COMMA);\n\t\t\t\ti++;\n\t\t\t\tStringBuilder perItOp = new StringBuilder();\n\t\t\t\ti = appendUntil(perItOp, i, EXECUTE);\n\t\t\t\tint num;\n\t\t\t\ttry {num = Integer.parseInt(perItOp.toString());}\n\t\t\t\tcatch (NumberFormatException e) {num = -1;}\n\t\t\t\tif (num >= 0) code.append(\" <= \" + tmp.toString() + \"; \" + itName + \"++\");\n\t\t\t\telse code.append(\" > \" + tmp.toString() + \"; \" + itName + \"--\");\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase DO:\n\t\t\t\tcode.append(\"do {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase UNTIL:\n\t\t\t\tcode.append(\"} while (!(\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, LINE);\n\t\t\t\tcode.append(\"));\");\n\t\t\t\tbreak;\n\t\t\tcase WHILE:\n\t\t\t\tcode.append(\"while (\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, EXECUTE);\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase END:\n\t\t\t\tcode.append(\"}\\n\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\toutput = code.toString();\n\t}", "private void Button_EqualsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_EqualsActionPerformed\n // TODO add your handling code here:\n //pass everything into an arrayList then cycle through list\n ScriptEngineManager mgr = new ScriptEngineManager();\n ScriptEngine engine = mgr.getEngineByName(\"JavaScript\");\n String ans = display.getText();\n try {\n display.setText(Double.toString((Double)engine.eval(ans)));\n } catch (ScriptException ex) {\n Logger.getLogger(CalculatorGUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void removeJavascript(ServletContext scontext)\r\n {\r\n String webApp = scontext.getContextPath();\r\n javascriptService.remove(scontext);\r\n }", "public static String encodeJsString(String s) throws Exception {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"\\\"\");\r\n for (Character c : s.toCharArray())\r\n {\r\n switch(c)\r\n {\r\n case '\\\"': \r\n sb.append(\"\\\\\\\"\");\r\n break;\r\n case '\\\\': \r\n sb.append(\"\\\\\\\\\");\r\n break;\r\n case '\\b': \r\n sb.append(\"\\\\b\");\r\n break;\r\n case '\\f': \r\n sb.append(\"\\\\f\");\r\n break;\r\n case '\\n': \r\n sb.append(\"\\\\n\");\r\n break;\r\n case '\\r': \r\n sb.append(\"\\\\r\");\r\n break;\r\n case '\\t': \r\n sb.append(\"\\\\t\");\r\n break;\r\n default: \r\n Int32 i = (int)c;\r\n if (i < 32 || i > 127)\r\n {\r\n sb.append(String.format(StringSupport.CSFmtStrToJFmtStr(\"\\\\u{0:X04}\"),i));\r\n }\r\n else\r\n {\r\n sb.append(c);\r\n } \r\n break;\r\n \r\n }\r\n }\r\n sb.append(\"\\\"\");\r\n return sb.toString();\r\n }", "public static native void _bindingJs(String str, JsCallback jsCallback);", "public GroovyScriptEvaluator() {\n\t}", "private final synchronized void m46523a(String str, ValueCallback<String> valueCallback) {\n if (!mo39703C()) {\n evaluateJavascript(str, null);\n } else {\n acd.m45783e(\"#004 The webview is destroyed. Ignoring action.\");\n }\n }", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "public void mo19854a(Bundle bundle) {\n LollipopFixedWebView lollipopFixedWebView = (LollipopFixedWebView) mo19852a(R.id.web);\n String str = \"web\";\n C8271i.m35382a((Object) lollipopFixedWebView, str);\n lollipopFixedWebView.setWebViewClient(new C3588e(this));\n LollipopFixedWebView lollipopFixedWebView2 = (LollipopFixedWebView) mo19852a(R.id.web);\n C8271i.m35382a((Object) lollipopFixedWebView2, str);\n lollipopFixedWebView2.setWebChromeClient(new C3589f(this));\n LollipopFixedWebView lollipopFixedWebView3 = (LollipopFixedWebView) mo19852a(R.id.web);\n C8271i.m35382a((Object) lollipopFixedWebView3, str);\n WebUtils.m12978a(lollipopFixedWebView3);\n LollipopFixedWebView lollipopFixedWebView4 = (LollipopFixedWebView) mo19852a(R.id.web);\n LollipopFixedWebView lollipopFixedWebView5 = (LollipopFixedWebView) mo19852a(R.id.web);\n C8271i.m35382a((Object) lollipopFixedWebView5, str);\n lollipopFixedWebView4.addJavascriptInterface(new C3591a(lollipopFixedWebView5), \"Travel\");\n ((LollipopFixedWebView) mo19852a(R.id.web)).setDownloadListener(new C3590g(this));\n ((LollipopFixedWebView) mo19852a(R.id.web)).loadUrl(m14966q());\n }", "private void addJsMessages() {\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.deleteBatch.noBatchNo.error\");\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.deleteBatch.confirmation\");\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.saveErp.comments.too.long.error\"); \r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.noErpDataFound.information\");\r\n }", "public String getJS_FUNCTION() {\r\n return JS_FUNCTION;\r\n }", "public static String changeToBostie(String scriptJaws)\r\n\t{\n\t\tString newScript = \"\";\r\n\t\tfor(int i = 0; i < scriptJaws.length(); i++)\r\n\t {\r\n\t\t\tif((i + 4) < scriptJaws.length()){\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(i > 0){\r\n\t \tif((scriptJaws.charAt(i) == 'r') && (isVowel(scriptJaws.charAt(i-1))))\r\n\t \t{\r\n\t \t\tnewScript += 'h';//replace with h\t\r\n\t \t}else if((scriptJaws.charAt(i) == 'a') && (Character.isLetter(scriptJaws.charAt(i - 1)))\r\n\t \t\t\t&& (!Character.isLetter(scriptJaws.charAt(i+1))))\r\n\t \t{\r\n\t \t\tnewScript += \"ar\";\r\n\t \t}else if((!Character.isLetter(scriptJaws.charAt(i-1))) && (scriptJaws.charAt(i) == 'v') && (scriptJaws.charAt(i + 1) == 'e') &&\r\n\t \t\t\t(scriptJaws.charAt(i + 2) == 'r') && (scriptJaws.charAt(i + 3) == 'y') )\r\n\t \t{\r\n\t \t\tnewScript += \"wicked\";\r\n\t \t}\r\n\t \telse if(((!Character.isLetter(scriptJaws.charAt(i-1))) && (scriptJaws.charAt(i) == 'V') && (scriptJaws.charAt(i + 1) == 'e') &&\r\n\t \t\t\t(scriptJaws.charAt(i + 2) == 'r') && (scriptJaws.charAt(i + 3) == 'y')))\r\n\t \t\t\t{\r\n\t \t\tnewScript += \"Wicked\";\r\n\t \t\t\t}\r\n\t \telse if(((!Character.isLetter(scriptJaws.charAt(i+1))) && (scriptJaws.charAt(i) == 'r')) \r\n\t \t\t\t&& (scriptJaws.charAt(i-1) == 'i' || ((scriptJaws.charAt(i-1) == 'e') && scriptJaws.charAt(i-2) == 'e')))\r\n\t \t\t\t{\r\n\t \t\tnewScript += \"yah\";\r\n\t \t\t\t}\r\n\t \telse if((((!Character.isLetter(scriptJaws.charAt(i+1))) && (scriptJaws.charAt(i) == 'r')) && ((scriptJaws.charAt(i-1) == 'o') && scriptJaws.charAt(i-2) == 'o')))\r\n\t \t{\r\n\t \t\tnewScript += \"wah\";\r\n\t \t}else\r\n\t \t{\r\n\t \t\tnewScript += scriptJaws.charAt(i);\r\n\t \t}\r\n\t \t\r\n\t }}else \r\n\t \t{\r\n\t \tnewScript += scriptJaws.charAt(i);\r\n\t \t}\r\n\t \t}\r\n\t\treturn newScript;\r\n\t}", "public String getScriptLanguage() { \n\t\treturn null;\n\t}", "public final String marshallJSConstants() {\n return null;\n }", "public FormValidationScriptVisitor() {\n super();\n }", "private void addJS(String jsLocation) {\n Script ajaxScript = new Script(\"\");\n ajaxScript.attribute(\"src\", jsLocation);\n ajaxScript.attribute(\"type\", \"text/javascript\");\n page.addHeader(ajaxScript);\n }", "abstract public interface Interpreter {\n\n /**\n * Evaluates a given JavaScript expression for a given userid.\n * \n * @param expression the expression to evaluate\n * @return the result of evaluating the expression\n */\n public String evaluate(String expression);\n}", "@Override\n\tprotected void initScript(Element e, Script parent) throws ScriptException {\n\n\t}", "private void addJQueryJS() {\n addJS(\"http://code.jquery.com/jquery-1.9.1.js\");\n addJS(\"http://code.jquery.com/ui/1.10.3/jquery-ui.js\");\n addJS(\"js/auDetails-new.js\");\n }", "public double web(double html,double javascript,double mySQL,double php,double webExam)\n {\n double a = ((10%100)*html)/100;\n double b = ((15%100)*javascript)/100;\n double c = ((12.5%100)*mySQL)/100;\n double d = ((12.5%100)*php)/100;\n double e = ((50%100)*webExam)/100;\n double grade = ((a+b+c+d+e)/8);//*100;\n return grade;\n }", "private String encodeXSS(String s) { \n if (s == null || \"\".equals(s)) { \n return s; \n } \n StringBuilder sb = new StringBuilder(s.length() + 16); \n for (int i = 0; i < s.length(); i++) { \n char c = s.charAt(i); \n switch (c) { \n \n //handle the '<' and '>' which can be used for constructing <script> and </script> \n case '>': \n sb.append('>'); \n break; \n case '<': \n sb.append('<'); \n break; \n \n //since the html can support the characters using $#number format \n //so here also need to escape '#','&' and quote symbol \n case '\\'': \n sb.append('‘'); \n break; \n case '\\\"': \n sb.append('“'); \n break; \n case '&': \n sb.append('&'); \n break; \n case '\\\\': \n sb.append('\'); \n break; \n case '#': \n sb.append('#'); \n break; \n //if not the special characters ,then output it directly \n default: \n sb.append(c); \n break; \n } \n } \n return sb.toString(); \n }", "private static String m1475b(String str) {\n return \"<!DOCTYPE html>\\n<html>\\n<head lang=\\\"en\\\">\\n <meta charset=\\\"UTF-8\\\">\\n <title></title>\\n</head>\\n<body style=\\\"margin:0;padding:0;\\\">\\n <script src=\\\"https://z.moatads.com/\" + str + \"/moatad.js\\\" type=\\\"text/javascript\\\"></script>\\n\" + \"</body>\\n\" + \"</html>\";\n }", "public static String escapeJS(String string) {\n\t\treturn Utils.escapeJS(string, true);\n\t}", "public void jsConstructor(Scriptable source) {\n\t this.source = source;\n\t}", "@Test\n\tpublic void testLetBlockAndLetExpressionAsLegacyJS()\n\t{\n\t\tString[] code = {\n\t\t\t\"let (x=1, y=2, z=3)\",\n\t\t \"{\",\n\t\t \" let(t=4) print(x, y, z, t);\",\n\t\t \" print(let(u=4) u,x);\",\n\t\t \"}\"\n\t\t};\n\t\t\n\t\tth.addError(1, 20, \"Missing semicolon.\");\n\t\tth.addError(3, 11, \"Missing semicolon.\");\n\t\tth.addError(4, 18, \"Expected ')' and instead saw 'u'.\");\n\t\tth.addError(4, 20, \"Expected an assignment or function call and instead saw an expression.\");\n\t\tth.addError(4, 21, \"Missing semicolon.\");\n\t\tth.addError(4, 21, \"Expected an identifier and instead saw ')'.\");\n\t\tth.addError(4, 21, \"Expected an assignment or function call and instead saw an expression.\");\n\t\tth.addError(1, 1, \"'let' is not defined.\");\n\t\tth.addError(3, 3, \"'let' is not defined.\");\n\t\tth.addError(4, 9, \"'let' is not defined.\");\n\t\tth.addError(1, 6, \"'x' is not defined.\");\n\t\tth.addError(3, 18, \"'x' is not defined.\");\n\t\tth.addError(4, 20, \"'x' is not defined.\");\n\t\tth.addError(1, 11, \"'y' is not defined.\");\n\t\tth.addError(3, 21, \"'y' is not defined.\");\n\t\tth.addError(1, 16, \"'z' is not defined.\");\n\t\tth.addError(3, 24, \"'z' is not defined.\");\n\t\tth.addError(3, 7, \"'t' is not defined.\");\n\t\tth.addError(3, 27, \"'t' is not defined.\");\n\t\tth.addError(4, 13, \"'u' is not defined.\");\n\t\tth.test(code, new LinterOptions().set(\"es3\", true).set(\"unused\", true).set(\"undef\", true).setPredefineds(\"print\"));\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.add((Object) \"umd.cs.shop.JSParserError\");\n jSSubstitution0.add((Object) jSTerm0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n JSTerm jSTerm1 = new JSTerm();\n jSTerm1.add((Object) jSTerm0);\n JSJshopVars.exclamation = (-3277);\n JSPredicateForm jSPredicateForm0 = jSTerm0.clonePF();\n JSPredicateForm jSPredicateForm1 = jSTerm0.applySubstitutionPF(jSSubstitution0);\n Object object0 = new Object();\n SystemInUtil.addInputLine(\"umd.cs.shop.JSParserError\");\n jSPredicateForm0.stream();\n Predicate<String> predicate0 = Predicate.isEqual((Object) \"mI!\");\n Predicate<String> predicate1 = predicate0.negate();\n predicate1.negate();\n Predicate<String> predicate2 = predicate1.negate();\n Predicate<String> predicate3 = predicate1.and(predicate0);\n predicate2.or(predicate3);\n SystemInUtil.addInputLine(\"mI!\");\n predicate0.negate();\n JSSubstitution jSSubstitution2 = new JSSubstitution();\n jSTerm0.print();\n jSTerm1.toStr();\n // Undeclared exception!\n try { \n jSPredicateForm1.matches((JSPredicateForm) jSTerm1);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // umd.cs.shop.JSTerm cannot be cast to java.lang.String\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "void mo18324a(C7260j jVar);", "private static String m1472a(String str, String str2, Integer num, Integer num2, JSONObject jSONObject, Integer num3) {\n return String.format(Locale.ROOT, \"<html><head></head><body><div id=\\\"%s\\\" style=\\\"width: %dpx; height: %dpx;\\\"></div><script>(function initMoatTracking(apiname, pcode, ids, duration) {var events = [];window[pcode + '_moatElToTrack'] = document.getElementById('%s');var moatapi = {'dropTime':%d,'adData': {'ids': ids, 'duration': duration, 'url': 'n/a'},'dispatchEvent': function(ev) {if (this.sendEvent) {if (events) { events.push(ev); ev = events; events = false; }this.sendEvent(ev);} else {events.push(ev);}},'dispatchMany': function(evs){for (var i=0, l=evs.length; i<l; i++) {this.dispatchEvent(evs[i]);}}};Object.defineProperty(window, apiname, {'value': moatapi});var s = document.createElement('script');s.src = 'https://z.moatads.com/' + pcode + '/moatvideo.js?' + apiname + '#' + apiname;document.body.appendChild(s);})('%s', '%s', %s, %s);</script></body></html>\", new Object[]{\"mianahwvc\", num, num2, \"mianahwvc\", Long.valueOf(System.currentTimeMillis()), str, str2, jSONObject.toString(), num3});\n }", "default Value eval(String script, String name, boolean literal) throws Exception {\n if (name.endsWith(\".mjs\")) {\n return eval(script, name, \"application/javascript+module\", literal);\n } else {\n return eval(script, name, \"application/javascript\", literal);\n }\n }", "static String checkJavaScriptFile(String path) throws IOException {\n\t\tProcess process = new ProcessBuilder(\"lib/jsl/jsl.exe\", \"-process\",\n\t\t\t\tpath).start();\n\n\t\t// get output from JSL\n\t\tString title = \"Checking JavaScriptFile: \" + path + \"\\n\";\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tprocess.getInputStream()));\n\n\t\tString lines = \"\";\n\t\tString line;\n\t\twhile ((line = input.readLine()) != null) {\n\t\t\tlines += line + \"\\n\";\n\t\t}\n\t\tinput.close();\n\n\t\treturn title + lines;\n\t}", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "public NewScript(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new NewScriptTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 17; i++) jj_la1[i] = -1;\n }", "private final void m46527f(String str) {\n if (C15333p.m44598e()) {\n if (m46510O() == null) {\n m46509N();\n }\n if (m46510O().booleanValue()) {\n m46523a(str, null);\n return;\n }\n String str2 = \"javascript:\";\n String valueOf = String.valueOf(str);\n m46525c(valueOf.length() != 0 ? str2.concat(valueOf) : new String(str2));\n return;\n }\n String str3 = \"javascript:\";\n String valueOf2 = String.valueOf(str);\n m46525c(valueOf2.length() != 0 ? str3.concat(valueOf2) : new String(str3));\n }", "void writeJavaScriptRenderer(PrintStream writer);", "@Override\n public void validateRequest(WebScriptRequest webScriptRequest) {\n }", "public static void equationParse(StringBuilder eqn) {\n ScriptEngine engine = new ScriptEngineManager().getEngineByExtension(\"js\");\n \n try {\n Object result = engine.eval(displayString.toString());\n displayString.replace(0, displayString.length(), result.toString());\n numField.setText(displayString.toString());\n } catch (ScriptException e) {\n displayString.replace(0, displayString.length(), \"ERROR\");\n numField.setText(displayString.toString());\n //e.printStackTrace();\n }\n }", "private String filterScriptMarkup(HttpServletRequest request, HttpServletResponse response, CMAbstractCode code) {\n //construct xmlFilters to strip RichText from <div> and <p> tags\n Markup unfilteredCode = code.getCode();\n List<XMLFilter> filters = new ArrayList<>();\n filters.addAll(xmlFilterFactory.createFilters(request, response, unfilteredCode, \"script\"));\n filters.add(new ScriptFilter());\n\n //strip <div> and <p> from markup\n StringWriter writer = new StringWriter();\n ScriptSerializer handler = new ScriptSerializer(writer);\n unfilteredCode.writeOn(filters, handler);\n return writer.getBuffer().toString();\n }", "Exp getSubscriptExp();", "static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }", "public void allowFractional() {\n APIlib.getInstance().addJSLine(jsBase + \".allowFractional();\");\n }" ]
[ "0.7591195", "0.64348733", "0.6281867", "0.62147856", "0.6073645", "0.59392375", "0.5888094", "0.58140093", "0.57989764", "0.57718927", "0.5771611", "0.5755613", "0.57298106", "0.56873184", "0.5666543", "0.5637626", "0.56051195", "0.5602409", "0.55681604", "0.5561769", "0.5451947", "0.5439152", "0.5403248", "0.5389166", "0.53664714", "0.5337883", "0.5324996", "0.53140116", "0.52658135", "0.5213736", "0.52046865", "0.5192888", "0.5185538", "0.51813865", "0.51744777", "0.51700985", "0.51595473", "0.5148631", "0.5130733", "0.51215935", "0.51135844", "0.5076471", "0.5067533", "0.5056929", "0.50326455", "0.50062424", "0.500473", "0.50029564", "0.49903083", "0.49880993", "0.4967804", "0.49598384", "0.49515474", "0.493706", "0.49313557", "0.4927152", "0.49138606", "0.49017122", "0.49017122", "0.4891291", "0.4883451", "0.48744655", "0.4874331", "0.4872754", "0.48527405", "0.48499358", "0.48493123", "0.48282126", "0.48186734", "0.48180446", "0.48039064", "0.47797248", "0.47707278", "0.47585464", "0.47466213", "0.47374028", "0.47287884", "0.4726509", "0.47214437", "0.47194842", "0.47155914", "0.47155464", "0.471079", "0.4706597", "0.4704804", "0.4703413", "0.4694841", "0.4693799", "0.46742043", "0.4670614", "0.46680483", "0.46676022", "0.46663186", "0.465552", "0.46550906", "0.46499848", "0.46471897", "0.46379665", "0.46337187", "0.46264574", "0.4624386" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { MongoClient client = new MongoClient(); MongoDatabase db = client.getDatabase("db"); MongoCollection<Document> collection = db.getCollection("deleteTest"); collection.drop(); for (int i = 0; i < 8; i++) { collection.insertOne(new Document().append("_id", i)); } collection.deleteMany(Filters.gt("_id", 4)); for (Document cur : collection.find().into(new ArrayList<Document>())) { // printJson(cur); } }
{ "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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static AppointmentsMainFragment newInstance() { AppointmentsMainFragment fragment = new AppointmentsMainFragment(); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public LogFragment() {\n }", "public FragmentMy() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public HeaderFragment() {}", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public PeersFragment() {\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public PersonDetailFragment() {\r\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.72587806", "0.72315", "0.71128035", "0.6989915", "0.69888663", "0.68323874", "0.68284166", "0.6811231", "0.6799868", "0.6799074", "0.6764381", "0.6738079", "0.6738079", "0.67268246", "0.6715347", "0.67061615", "0.6690773", "0.6689529", "0.6687659", "0.6661806", "0.6644326", "0.66413724", "0.6639174", "0.66334546", "0.66162664", "0.6612923", "0.66066813", "0.6604181", "0.65985304", "0.65916866", "0.6590765", "0.6590542", "0.6580825", "0.65777844", "0.6563632", "0.656029", "0.6557861", "0.65497226", "0.6549494", "0.65420955", "0.6539689", "0.653395", "0.65324813", "0.6528364", "0.6523803", "0.65223694", "0.6521728", "0.65150344", "0.65042657", "0.6497416", "0.649707", "0.6494283", "0.6493901", "0.6485082", "0.64849406", "0.64794314", "0.64767885", "0.64747125", "0.6469636", "0.64654803", "0.64569527", "0.64559346", "0.64538103", "0.6451536", "0.645034", "0.64483374", "0.6447979", "0.64471924", "0.6442164", "0.6442164", "0.6442164", "0.6441202", "0.64404285", "0.6439219", "0.64367384", "0.6434118", "0.64292616", "0.6427671", "0.6423538", "0.6419575", "0.6418982", "0.6413233", "0.6412808", "0.6402954", "0.64015436", "0.6396632", "0.6396196", "0.63905257", "0.6388367", "0.63835037", "0.6379759", "0.6375117", "0.6375117", "0.6375117", "0.6373985", "0.6364944", "0.63644207", "0.63595194", "0.6353178", "0.635139", "0.6351071" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_appointments_main, container, false); recyclerView = (RecyclerView) view.findViewById(R.id.hairstyleRecyclerView); recyclerView.setHasFixedSize(true); layoutManager = new LinearLayoutManager(getActivity()); recyclerView.setLayoutManager(layoutManager); recyclerView.setItemAnimator(new DefaultItemAnimator()); hairstyleData = new ArrayList<HairStyleDataModel>(); for (int i = 0; i < HairStylesMenuData.hairStyleArray.length; i++) { hairstyleData.add(new HairStyleDataModel( HairStylesMenuData.hairStyleArray[i], HairStylesMenuData.priceArray[i], HairStylesMenuData.drawableArray[i] )); } mainActivity = (MainActivity) getActivity(); adapter = new HairStylesMenuCustomAdapter(hairstyleData,mainActivity); recyclerView.setAdapter(adapter); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
/ En un proyecto JavaFX el main llama al launch que a su vez llama a start
public static void main(String[] args) { launch(args); donante=new Donante(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"Main.fxml\"));\n primaryStage.setTitle(\"Faulkner Kiosk\");\n primaryStage.setScene(new Scene(root, 600, 400));\n primaryStage.show();\n\n }", "public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }", "@Override\r\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"ui/main.fxml\")); //FXMLLoader.load(Utilities.getResourceURL(\"ui/main.fxml\"));\r\n primaryStage.setTitle(\"Custom Groovy Game Engine\");\r\n primaryStage.setScene(new Scene(root, 960, 480));\r\n primaryStage.show();\r\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n sPrimario = primaryStage;\n //Nos muestra la pantalla Menu, para comenzar. \n Scene s = new Scene(new Menu().getRoot());\n sPrimario.setTitle(\"Quién quiere pasar POO?\");\n sPrimario.setOnCloseRequest((event -> { // Cierra el programa totalmente.\n Platform.exit();\n System.exit(0);\n }));\n sPrimario.setScene(s);\n sPrimario.show();\n }", "public void start(Stage mainStage) {\n\t\t\n\t}", "public void start(Stage mainStage) {\r\n\t\t\r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"sample.fxml\"));\n addExitOnEsc(primaryStage);\n primaryStage.setTitle(\"Hello World\");\n primaryStage.setScene(new Scene(root, 300, 275));\n primaryStage.show();\n\n }", "public static void main(String[] args) {\n JFXPanel fxPanel = new JFXPanel();\n new Main().start();\n }", "@Override\n public void start(Stage primaryStage) {\n AnchorPane root = new PowerOffWindow(null);\n \n Scene scene = new Scene(root);\n \n primaryStage.setTitle(\"JSonFX\");\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.getIcons().add(new Image(getClass().getResource(\"/res/JsonFX.png\").toString()));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n window = primaryStage;\n Parent root = FXMLLoader.load(getClass().getResource(\"UserInterface.fxml\"));\n primaryStage.setTitle(\"Calculator\");\n primaryStage.setOnCloseRequest(e -> Main.closeMe());\n primaryStage.setResizable(false);\n\n primaryStage.setScene(new Scene(root, 600, 300));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n //Cargar primer escena\n Stage inicio = primaryStage;\n Parent rootInicio = FXMLLoader.load(getClass().getResource(\"vistas/inicio.fxml\"));\n inicio.setTitle(\"Baúl de los recuerdos\");\n inicio.setScene(new Scene(rootInicio, 790, 790));\n inicio.setResizable(false);\n //inicio.setResizable(false);\n inicio.show();\n\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n console(\"start...\");\n\n Parent root = FXMLLoader.load(getClass().getResource(\"AutoGraderApp.fxml\"));\n\n primaryStage.setTitle(appName);\n primaryStage.setScene(new Scene(root, MIN_STAGE_WIDTH, MIN_STAGE_HEIGHT));\n primaryStage.setMinWidth(MIN_STAGE_WIDTH);\n primaryStage.setMinHeight(MIN_STAGE_HEIGHT);\n\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"mainMenu/mainMenu.fxml\"));\n primaryStage.setTitle(\"Hello World\");\n Scene s =new Scene(root, defaultWindowWidth, defaultWindowHight);\n s.getStylesheets().add(getClass().getResource(\"css/main.css\").toExternalForm());\n primaryStage.setScene(s);\n primaryStage.setMinHeight(480);\n primaryStage.setMinWidth(480);\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n ApplicationContext ctx = SpringApplication.run(MainFx.class);\n\n Font.loadFont(this.getClass().getResource(\"/mw/uifx/fonts/fontawesome-webfont.ttf\").\n toExternalForm(), 12);\n\n\n ctx.getBean(KontekstAplikacji.class).setMainStage(primaryStage);\n FabrykaZasobow pFabrykaZasobow = ctx.getBean(FabrykaZasobow.class);\n pFabrykaZasobow.setKontekstSpringowy(ctx);\n\n KonfiguratorAplikacji pKonf=ctx.getBean(KonfiguratorAplikacji.class);\n System.out.println(\"katAplikacji=====>\"+pKonf.getKatalogAplikacji());\n System.out.println(\"raw=====>\"+pKonf.getPodkatalog().getRaw());\n System.out.println(\"raw=====>\"+pKonf.getGaleria().getCel());\n\n\n Parent root = pFabrykaZasobow.podajObiektParentDlaZasobu(LokalizacjeFXMLEnum.ZASOBY_GLOWNE_WIDOK);\n Scene scene = new Scene(root, 1000, 900);\n pFabrykaZasobow.dodajStyleCSS(scene);\n primaryStage.setTitle(\"4Fotos\");\n primaryStage.setScene(scene);\n\n primaryStage.setAlwaysOnTop(false);\n // primaryStage.toFront();\n primaryStage.show();\n\n }", "@Override\n public void start(Stage primaryStage) {\n\n // The Stage is where we place GUI stuff, such as a GridPane (see later).\n // I'll look more at this after Easter, but please read the\n // following comments\n stage = primaryStage;\n\n // In this version of the app we will drive\n // the app using a command line menu.\n // YOU ARE REQUIRED TO IMPLEMENT THIS METHOD\n runMenu();\n\n // This is how we can handle a window close event. I will talk\n // about the strange syntax later (lambdas), but essentially it's a Java 8\n // was of providing a callback function: when someone clicks the\n // close window icon then this bit of code is run, passing in the event\n // object that represents the click event.\n primaryStage.setOnCloseRequest((event) -> {\n // Prevent window from closing. We only want quitting via\n // the command line menu.\n event.consume();\n\n System.out.println(\"Please quit the application via the menu\");\n });\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"Scene.fxml\"));\n primaryStage.setTitle(\"Project 3\");\n primaryStage.setScene(new Scene(root, 600, 600));\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml_files/home.fxml\"));\n primaryStage.setScene(new Scene(root, 1000, 700));\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"app_layout.fxml\"));\n\t\tVBox rootNode = loader.load();\n\n\t\tScene scene = new Scene(rootNode);\n \n Pane menuPane= (Pane) rootNode.getChildren().get(0);\n\t\tmenuPane.getChildren().add(createMenubar());\n\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.setTitle(\"Temperature Convertor\");\n\t\t//primaryStage.setResizable(false); to make sure application is not resizable\n\t\tprimaryStage.show();\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t\t//StackPane stackPane = new StackPane();\n\t\t//Button button = new Button(\"Przycisk\");\n\t\t//stackPane.getChildren().add(button);\n\t\t//Scene scene = new Scene(stackPane,400,400);\n\t\t//primaryStage.setScene(scene);\n\t\t\n\t\t\n\t\t//Stack Pane from FXML file\n\t\t//****************************************//\n\t\tFXMLLoader fxmlLoader = new FXMLLoader();\n\t\tfxmlLoader.setLocation(this.getClass().getResource(\"/fxml/MainStackPane.fxml\"));\n\t\tStackPane stackPane = fxmlLoader.load();\n\t\tScene scene = new Scene(stackPane);\n\t\tprimaryStage.setScene(scene);\n\t\t\n\t\tprimaryStage.setTitle(\"First JavaFx app\");\n\t\tprimaryStage.show();\n\t\t\n\t\t\n\t}", "@Override\n public void start(Stage primaryStage)\n {\n myLabel = new Label(\"Kliknij przycisk, aby zobaczyć komunikat.\");\n\n // Tworzenie kontrolki typu Button.\n Button myButton = new Button(\"Kliknij mnie\");\n\n // Rejestrowanie obiektu obsługi zdarzeń.\n myButton.setOnAction(new ButtonClickHandler());\n \n // Dodawanie obiektów typów Label i Button do obiektu typu VBox z odstępami 10 pikseli.\n VBox vbox = new VBox(10, myLabel, myButton);\n\n // Tworzenie obiektu typu Scene z kontenerem typu VBox jako węzłem korzenia.\n Scene scene = new Scene(vbox, 300, 100);\n \n // Wyśrodkowanie sceny.\n vbox.setAlignment(Pos.CENTER);\n \n // Dodawanie obiektu typu Scene do obiektu typu Stage.\n primaryStage.setScene(scene);\n\n // Ustawianie tytułu płótna.\n primaryStage.setTitle(\"Przycisk\");\n\n // Wyświetlanie okna.\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n // Loads the Home view\n Parent root = FXMLLoader.load(getClass().getResource(\"fxml/Home.fxml\"));\n\n primaryStage.setTitle(\"To-Do Manager\"); // Sets the title of the window\n\n // Sets the Home view as the first scene\n Scene scene = new Scene(root, 854, 480);\n\n // Sets the window's scene\n primaryStage.setScene(scene);\n\n // Prevents user from resizing window ( because of UI reasons )\n primaryStage.setResizable(false);\n\n // Displays the window\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) {\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"scenes/main_menu.fxml\"));\n primaryStage.setTitle(\"Führerschein Theorieprüfung\");\n primaryStage.setScene(new Scene(root));\n primaryStage.setResizable(false);\n\n primaryStage.show();\n\n new FadeIn(root).play();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "@Override\n public void start(Stage primaryStage) throws IOException {\n Main.primaryStage = primaryStage;\n Main.primaryStage.setTitle(\"American Travel Bucketlist\");\n\n //Call the extension of the FXMLLoader for the MainView.\n showMainView();\n }", "@Override\n public void start(Stage stage) throws Exception \n {\n \n FXMLLoader appMainLoader = new FXMLLoader(getClass().getResource(Resources.app_main));\n\n Parent root = (Parent)appMainLoader.load();\n root.prefHeight(600);\n root.prefWidth(1100);\n\n AppMainController appMainController = appMainLoader.getController();\n appMainController.setAppLauncher(this);\n\n// stage.initStyle(StageStyle.UNDECORATED);\n stage.setResizable(false);\n stage.setMaxHeight(600);\n stage.setMaxWidth(1000);\n\n Scene scene = new Scene(root, Color.TRANSPARENT);\n scene.getStylesheets().add(Resources.app_css);\n \n stage.setTitle(\"Hims-Lab Equipment Interface\");\n stage.setScene(scene);\n stage.show();\n //init();\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tthis.stage = primaryStage;\r\n\t\tprimaryStage.setResizable(false);\r\n\t\tthis.stage.setTitle(\"Forza 4\");\r\n\t\t\r\n\t\tstartWindow();\r\n\t\thomeStage();\r\n\t\t\r\n\t}", "void start(Stage primaryStage);", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"Splash.fxml\"));\r\n\t\t//Scene scene = new Scene(root,1200,800);\r\n\t\tScene scene = new Scene(root,800,400);\r\n\t\t\r\n\t\tprimaryStage.setResizable(false);\r\n\t\tprimaryStage.setScene(scene);\r\n\t\tprimaryStage.initStyle(StageStyle.UNDECORATED);\t\r\n\t\tprimaryStage.show();\r\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tprimaryStage.setTitle(\"MyMoney Application\");\n\t\t// Set the scene of the application to the new Scene\n\t\tprimaryStage.setScene(createScene());\n\t\tprimaryStage.setResizable(true);\n\t\t// Display the Stage\n\t\tprimaryStage.show();\n\t}", "@Override\n public void start(Stage primaryStage) {\n\n pStage = primaryStage;\n\n try {\n\n\n Parent root = FXMLLoader.load(getClass().getResource(\"/GUI.fxml\"));\n\n Scene scene = new Scene(root, 600, 400);\n\n primaryStage.setTitle(\"Shopper 5000 Ultimate\");\n\n primaryStage.setResizable(false);\n primaryStage.setScene(scene);\n primaryStage.show();\n\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/mainForm.fxml\"));\n Scene sceneOne = new Scene(root);\n primaryStage.setScene(sceneOne);\n primaryStage.show();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n public void start(Stage primaryStage) {\n }", "public static void main(String[] args) {\n\t\t// Define new Runnable for splash screen execution\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tSplashScreenView splash;\n\t\t\tTimer timer;\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\t// Create splash screen boundary object and set visible\n\t\t\t\t\tsplash = new SplashScreenView();\n\t\t\t\t\tsplash.setVisible(true);\n\n\t\t\t\t\t// Begin timer for 2 seconds to display\n\t\t\t\t\ttimer = new Timer(2000, new ActionListener(){ \n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\t// Create event on timer completion that hide the splash screen, and creates\n\t\t\t\t\t\t\t// the Kabasuji and corresponding view for interactions\n\t\t\t\t\t\t\tsplash.setVisible(false);\n\t\t\t\t\t\t\tKabasuji game = new Kabasuji();\n\t\t\t\t\t\t\tLevelSelectorView window = new LevelSelectorView(game);\n\n\t\t\t\t\t\t\t// allow controller to set up GUI based on the levels loaded by 'game'\n\t\t\t\t\t\t\tStartLevelSelectorController selectorController = new StartLevelSelectorController(window, game);\n\t\t\t\t\t\t\tselectorController.process();\n\n\t\t\t\t\t\t\t// show window\n\t\t\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t\t\t\tImageIcon image = new ImageIcon(StartKabasuji.class.getResource(\"/images/heineman.jpg\"));\n\t\t\t\t\t\t\twindow.setIconImage(image.getImage().getScaledInstance(40, 40, 0));\n\t\t\t\t\t\t\tSystem.out.println(image);\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\t// Start the timer and ensure it only runs once\n\t\t\t\t\ttimer.setRepeats(false);\n\t\t\t\t\ttimer.start();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic void start(Stage primaryStage) throws IOException {\n\t Parent root = FXMLLoader.load(getClass().getResource(\"WeatherView.fxml\"));\r\n\t \r\n\t //setting the title of the stage\r\n\t primaryStage.setTitle(\"Weather Forecast\");\r\n\t \r\n\t //Setting the scene in the stage\r\n\t primaryStage.setScene(new Scene(root));\r\n\t \r\n\t //this method shows the stage\r\n\t primaryStage.show();\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception\n {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/main/mainMenu.fxml\"));\n Pane root = loader.load();\n\n MainMenuController controller = loader.getController();\n controller.start(primaryStage);\n\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.setTitle(\"RU Cafe: Main Menu\");\n primaryStage.setResizable(false);\n primaryStage.show();\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\n\t\tprimaryStage.setTitle(\"News from The Guardian\");\n\t\t\n\t\tNewsReader reader = new NewsReader();\n\n\t\tView view = new View(reader);\n\t\t\n\t\tScene scene = new Scene(view.getRoot(), WIDTH, HEIGHT);\n\t\t\n\t\tprimaryStage.setScene(scene);\n\t\ttry{\n\t\t\tscene.getStylesheets().add(News.class.getResource(\"app.css\").toExternalForm());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"boop\");\n//\t\t\te.printStackTrace();\n\t\t}\n\t\tprimaryStage.setResizable(false);\n\t\tprimaryStage.show();\n\t\t\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n\n Music.playBackGroundMusic();\n\n try {\n SpellingListData.getInstance();\n _revisionData.loadFailed();\n _overallStats.loadStats();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n _primaryStage = primaryStage;\n\n Parent root = FXMLLoader.load(getClass().getResource(\"MainMenuV2.fxml\"));\n primaryStage.setTitle(\"VOXSPELL\");\n primaryStage.setScene(new Scene(root, 1200, 800));\n primaryStage.setResizable(false);\n primaryStage.show();\n\n\n }", "@FXML\n void HandleStart(ActionEvent event){\n Runtime runTime = Runtime.getRuntime();\n try {\n Process process = runTime.exec(\"java -jar ~/../target/GameOfLife-1.0-SNAPSHOT.jar \"+StartMain.getInstance().densite+\" \"+StartMain.getInstance().nbCycle+\" \"+StartMain.getInstance().tempo+\" \"+StartMain.getInstance().nbColonnesCellules+\" \"+StartMain.getInstance().nbLignesCellules+\" \"+JeuDeLaVie.getNbminsolitude()+\" \"+JeuDeLaVie.getNbmaxsurpopulation()+\" \"+JeuDeLaVie.getNbminreproduction()+\" \"+JeuDeLaVie.getNbmaxreproduction()+\" \"+StartMain.getInstance().typeJeu);\n }\n catch (IOException ex) {\n Logger.getLogger(ButtonController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void start(Stage primaryStage) {\n this.mainStage = primaryStage;\n mainStage.setTitle(\"Art Sorter\");\n changeScreen( new MainScreen() );\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n checkDllFiles.check(); // Checking if the DLL files for the gamepad is present. If not then it will add them\n Parent root = FXMLLoader.load(getClass().getClassLoader().getResource(\"sdv/gui/scenes/Login.fxml\")); // Loading the FXML file\n primaryStage.getIcons().add(new Image(\"icon/icon.png\", 200, 200, false, true)); // Adding a application icon\n primaryStage.setTitle(sceneTitle); // Setting the scene name\n primaryStage.setScene(new Scene(root, 700, 400)); // Setting the application size\n primaryStage.show(); // Shows the application window\n }", "public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }", "@Override\n public void start(Stage primaryStage) {\n /*\n A JavaFX app defines the user interface container by means of \n a stage and a scene\n \n The JavaFX stage class is the top-level JavaFX container\n \n The JavaFX scene class is the container for all content\n \n */\n Button btn = new Button();\n btn.setText(\"Say 'Hello World'\");\n btn.setOnAction(new EventHandler<ActionEvent>() {\n \n @Override\n public void handle(ActionEvent event) {\n System.out.println(\"Hello World!\");\n }\n });\n /*\n In JavaFX, the content of the scene is represented as a hierarchial\n scene graph of nodes.\n \n In this example, the root node is a StackPane object, which is a \n resizable layout node.\n \n This means that the root node's size tracks the scene's size and \n changes when the stage s resized by the user.\n \n */\n StackPane root = new StackPane();\n root.getChildren().add(btn);\n \n //The root node contains a child node, a button control the text,\n // plus an event handler to print a message when the button is pressed\n \n \n Scene scene = new Scene(root, 300, 250);\n \n // Create a scene for a specific root node with a specific size\n \n primaryStage.setTitle(\"Hello World!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "public static void main(String[] args)\n {\n EventQueue.invokeLater(() ->\n {\n try\n {\n App app = new App();\n app.frame.setVisible(true);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"Application.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tImage icon = new Image(getClass().getResourceAsStream(\"/resources/icon.png\"));\n\t\t\tprimaryStage.getIcons().add(icon);\n\t\t\t\n\t\t\tprimaryStage.setTitle(\"Billing Manager\");\n\t\t\tprimaryStage.setMaximized(true);\n\t\t\t//primaryStage.setFullScreen(true);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\n\t}", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\n Application.launch(args);\n }", "public static void main(String[] args){\n try {\n //wait to initialize toolkit\n final CountDownLatch latch = new CountDownLatch(1);\n SwingUtilities.invokeLater(() -> {\n new JFXPanel(); // initializes JavaFX environment\n latch.countDown();\n });\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Consumer consumer = new Consumer();\n }", "public void start(Stage primaryStage)\n {\n \tint wid = 520;\n int hei = 200;\n Text hello = new Text(50, 50, \"Hello, JavaFX!\");\n Text question = new Text(120, 80, \"How's it going?\");\n Text question2 = new Text(120, 160, \"Are you getting any ideas?\");\n \n Line simpleLine = new Line(0, 0, 520, 200);\n \n Circle simpleCircle = new Circle(260,100,20);\n Rectangle simpleRectangle = new Rectangle(200,100,20,30);\n Ellipse e = new Ellipse(200, 30, 10,20);\n \n Group root = new Group(e,simpleRectangle, hello, question, question2, simpleLine, simpleCircle); \n Scene scene = new Scene(root, 520, 200, Color.ANTIQUEWHITE);\n \n primaryStage.setTitle(\"A JavaFX Program\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n // set up window.\n primaryStage.setWidth(600);\n primaryStage.setHeight(400);\n primaryStage.setResizable(false);\n\n // set up scenes.\n FXMLLoader mainMenuLoader = new FXMLLoader(getClass().getResource(\"FXML/mainMenuLayout.fxml\"));\n Scene mainMenuScene = new Scene(mainMenuLoader.load());\n FXMLLoader gameLoader = new FXMLLoader(getClass().getResource(\"FXML/gameLayout.fxml\"));\n Scene gameScene = new Scene(gameLoader.load());\n\n // set the main menu to load into the game.\n MainMenuController mainMenuController = (MainMenuController) mainMenuLoader.getController();\n mainMenuController.setGameScene(gameScene);\n\n primaryStage.setScene(mainMenuScene);\n\n primaryStage.show();\n\n }", "public static void main(String[] args) {\n mainController controll = new mainController(\"127.0.0.1\");\n MainFrame mf = MainFrame.getInstance();\n mf.setController(controll);\n mf.setVisible(true);\n\n //메인메뉴 띄우기\n mf.changeView(Mode.MAIN);\n }", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"DispatcherLogin/DispatcherLoginView.fxml\"));\n primaryStage.setTitle(\"DISPATCHER LOGIN :P\"); // titel\n primaryStage.setScene(new Scene(root));\n primaryStage.show();\n }", "void launch();", "void launch();", "void launch();", "public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}", "@Override\n public void start(Stage primaryStage) {\n root = new VBox(10);\n root.setPadding(new Insets(30));\n initLabel();\n //set up scene\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.sizeToScene();\n primaryStage.setTitle(\"Mastermind\");\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/application/views/MainMenu.fxml\")); //open up the menu on start up\n Parent root = loader.load();\n MainMenuController controller = loader.getController();\n NameModelManager model = new NameModelManager(); //construct the list of name models1\n CSSManager cssManager = new CSSManager();\n controller.initialise(model, cssManager);\n primaryStage.setTitle(\"Name Sayer\");\n primaryStage.setScene(new Scene(root, 1200, 700));\n primaryStage.show();\n primaryStage.setResizable(false);\n\n primaryStage.setOnCloseRequest(e ->{ //confirmation box for exiting program\n e.consume();\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Quit?\");\n alert.setHeaderText(\"Are you sure you want to exit?\");\n alert.setContentText(\"Hit OK to quit\");\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n primaryStage.close();\n System.exit(0);\n }\n });\n }", "@Override\r\n public void start(Stage stage){\n Text msg = new Text(\"Hola JavaFX\");\r\n \r\n //toplevel node\r\n VBox root = new VBox();\r\n \r\n //add the child node to VBox root node\r\n root.getChildren().add(msg);\r\n \r\n //Create a scene\r\n Scene scene = new Scene(root, 300, 50);\r\n \r\n //set the scene to the stage\r\n stage.setScene(scene);\r\n \r\n //set a title for the stage\r\n stage.setTitle(\"Hola Aplicación JavaFX\");\r\n \r\n //show the stage\r\n stage.show();\r\n }", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }", "@Override\n public void start(Stage primaryStage) {\n primaryStage.setTitle(\"Inventory Home\");\n Image img = new Image(\"file:resources/img/logo.png\");\n primaryStage.getIcons().add(img);\n //log.info(\"before initLoginProcess() method\");\n \tfinal Task<Boolean> startRestTask = new Task<Boolean>() {\n\t\t\t@Override\n\t\t\tprotected Boolean call() throws Exception {\n\t\t\t\tupdateMessage(\"Application is starting the services . . . \");\n\t\t\t\tstartRestAPI(arguments);\n\t\t\t\tupdateMessage(\"All services started successfully . . . \");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tshowSplash(\n primaryStage,\n startRestTask,\n () -> initLoginProcess()\n );\n new Thread(startRestTask).start(); \n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tParent root = FXMLLoader.load(getClass().getResource(\"PlayingCards24GUI.fxml\"));\r\n\t\t// Scene object is created and parent object is used as a parameter\r\n\t\tScene scene = new Scene(root);\r\n\t\t// Stage is set\r\n\t\tprimaryStage.setScene(scene);\r\n\t\t// The Stage title is set\r\n\t\tprimaryStage.setTitle(\"Playing Cards 24\");\r\n\t\t// The Stage icon is set to a .png image\r\n\t\tprimaryStage.getIcons().add(new Image(\"24-logo.png\"));\r\n\t\t// The stage is displayed\r\n\t\tprimaryStage.show();\r\n\t}", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\tGridPane root = FXMLLoader.load(getClass().getResource(\"Sample.fxml\"));\n\t\t\tScene scene = new Scene(root,400,400);\n\t\t\t\n\t\t\t//scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tscene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\t\t\t\n\t}", "@Override\r\n public void start(Stage primaryStage) {\r\n \r\n \r\n // StackPane root = new StackPane(); \r\n Scene scene = new Scene(root, 900, 900); //set up a window with these propotions\r\n \r\n primaryStage.setTitle(\"Keep it Clean simulator\"); //window title\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n setLayout();\r\n \r\n drawUI.Draw(dataInput, tileMin, tileMax);\r\n }", "public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}", "public void start(Stage mainStage) throws IOException { \r\n\r\n\t}", "@Override\n public void start(Stage window) throws Exception\n {\n Parent home = FXMLLoader.load(getClass().getResource(\"Home.fxml\"));\n home.getStylesheets().add(getClass().getResource(\"Style.css\").toExternalForm());\n \n window.setTitle(\"SSUR\");\n window.setScene(new Scene(home));\n window.getIcons().add(new Image(\"ssur/icons/icon.png\"));\n window.setResizable(false);\n window.show();\n }", "public static void main(String[] args) throws Exception {\n Path selfPath = Paths.get(TestBrowser.class.getProtectionDomain().getCodeSource().getLocation().toURI());\n ModuleFinder finder = ModuleFinder.of(\n Paths.get(System.getProperty(\"javafx.sdk.path\")),\n selfPath\n );\n\n // Load the application as a named module and invoke it\n ModuleLayer parent = ModuleLayer.boot();\n Configuration cf = parent.configuration().resolve(finder, ModuleFinder.of(), Set.of(\"ReproduceOpenjfxCrash2\"));\n ClassLoader scl = ClassLoader.getSystemClassLoader();\n ModuleLayer layer = parent.defineModulesWithOneLoader(cf, scl);\n Class appClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"javafx.application.Application\");\n Class testClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"eu.doppel_helix.dev.jdk.reproducecrash.TestBrowserImpl\");\n Method launchMethod = appClass.getMethod(\"launch\", Class.class, String[].class);\n launchMethod.invoke(null, new Object[]{testClass, args});\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t\tSystem.out.println(\"The game begins now...\");\n\t\tBoardConfig boardConfig = new BoardConfig(new XY(25, 25));\n\n\t\tBoard board = new Board(boardConfig);\n\n\t\tState state = new State(board);\n\n\t\tFxUI fxUI = FxUI.createInstance(boardConfig.getSize());\n\n\t\tfinal Game game = new GameImpl(state);\n\n\t\tgame.setUi(fxUI);\n\n\t\tfxUI.setGameImpl((GameImpl) game);\n\n\t\tprimaryStage.setScene(fxUI);\n\t\tprimaryStage.setTitle(\"Welcome to the virtual world of Squirrels.\");\n\t\tprimaryStage.setAlwaysOnTop(true);\n\t\tfxUI.getWindow().setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent evt) {\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\n\t\t});\n\t\tprimaryStage.show();\n\n\t\tstartGame(game);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n Button playBtn = new Button(\"Start!!\");\n playBtn.setMinSize(150, 35);\n\n playBtn.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Application configStage = new GameConfiguration(config);\n try {\n configStage.start(primaryStage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n Button helpBtn = new Button(\"Help!!\");\n helpBtn.setMinSize(110, 30);\n\n VBox panelButtons = new VBox(20);\n panelButtons.setAlignment(Pos.CENTER);\n panelButtons.getChildren().addAll(playBtn, helpBtn);\n\n String GAME_TITLE = \"Mates Rapidas Game\";\n Text title = new Text(GAME_TITLE);\n title.setFont(new Font(30));\n\n VBox panelMain = new VBox(10);\n panelMain.setAlignment(Pos.CENTER);\n panelMain.getChildren().addAll(title, panelButtons);\n\n StackPane canvas = new StackPane();\n canvas.setPadding(new Insets(30));\n canvas.getChildren().add(panelMain);\n\n Scene principal = new Scene(canvas, 400, 400);\n\n primaryStage.setTitle(GAME_TITLE);\n primaryStage.setScene(principal);\n primaryStage.setResizable(false);\n primaryStage.show();\n }", "public void start(Stage primaryStage) {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/pig/gui/Login.fxml\"));\n\t\t\tprimaryStage.setScene(new Scene(root));\n\t\t\tprimaryStage.show();\n\t\t\troot.requestFocus();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tprinc frame = new princ();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\tframe.setTitle(\"Storyteller\");\n\t\t\t\t\t//la ventana no se puede redimensionar\n\t\t\t\t\tframe.setResizable(false);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//falta hacer que la ventana aparezca en el centrode la pantalla\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void start(Stage primaryStage) {\n try {\n stage = primaryStage;\n stage.setTitle(\"Indie Airways\");\n stage.setMinWidth(WINDOW_WIDTH);\n stage.setMinHeight(WINDOW_HEIGHT);\n gotoLogin();\n //gotoMenu();\n primaryStage.show(); \n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "public void start(Stage primaryStage) throws Exception {\n DependencyGraph dg = DependencyGraph.getGraph();\n\n //Validate out arguments and make sure they are correct\n _argumentsParser = new KernelParser(this);\n validateArguments();\n _maxThreads = _argumentsParser.getMaxThreads();\n\n //Parse the graph so that our data is ready for use in any point post this line.\n dg.setFilePath(_argumentsParser.getFilePath());\n dg.parse();\n\n //set up statistics\n ChartModel cModel = new ChartModel(_argumentsParser.getProcessorNo());\n _sModel = new StatisticsModel(cModel, _argumentsParser.getFilePath());\n _sModel.setStartTime(System.nanoTime());\n\n // run the algorithm\n Task task = new Task<Void>() {\n @Override\n public Void call() {\n InitialiseScheduling(_sModel);\n return null;\n }\n };\n\n new Thread(task).start();\n\n // renders the visualisation if nessasary\n if (_argumentsParser.displayVisuals()) {\n MainScreen mainScreen = new MainScreen(primaryStage, _sModel, this);\n }\n\n }", "@Override\r\n public void start(Stage primaryStage){\n primaryStage = new Stage();\r\n mainStage = primaryStage;\r\n primaryStage.setTitle(\"Excel Editor\");\r\n primaryStage.setWidth(750);\r\n primaryStage.setHeight(650);\r\n primaryStage.setMaxWidth(1000);\r\n primaryStage.setMaxHeight(1000);\r\n primaryStage.setResizable(true);\r\n primaryStage.setOnCloseRequest(event -> {\r\n // Create local Buttons for the quitPage\r\n Button yesButton = new Button(\"Yes\");\r\n Button noButton = new Button(\"No\");\r\n // Customize Buttons\r\n yesButton.setMaxWidth(Double.MAX_VALUE);\r\n noButton.setMaxWidth(Double.MAX_VALUE);\r\n yesButton.setAlignment(Pos.CENTER);\r\n noButton.setAlignment(Pos.CENTER);\r\n\r\n TA_AlertPage.alert(\"Quit?\", \"Are you sure you'd like to quit?\", null, yesButton,\r\n noButton);\r\n // Consume the even if the user selects no, otherwise the program will terminate\r\n event.consume();\r\n });\r\n\r\n\r\n // Make BorderPane\r\n makeBorderPane();\r\n\r\n\r\n mainScene= new Scene(borderPane);\r\n primaryStage.setScene(mainScene);\r\n primaryStage.show();\r\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception\n\t{\n\t\ttooltip = new TodoToolTip(primaryStage);\n\t\tCoreLogic.loadConfiguration();\n\t\troot.replaceChildren(new LoginScreen());\n\t\tScene scene = new Scene(root);\n\t\tprimaryStage.setScene(scene);\n\t\tprimaryStage.show();\n\t\tprimaryStage.setOnCloseRequest(e -> System.exit(0));\n\t}", "@Override\r\n public void start(Stage primaryStage) throws Exception {\r\n primaryStage.setTitle(\"PACMAN\");\r\n View v = new HomeView();\r\n v.start(primaryStage);\r\n }", "@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tinitChoice();\n\t\t\n\t\ttry {\n\t\t\tinitBD();\n\t\t\t\n\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t\t\n\t\t// Cargamos el gestor\n\t\tdbManager = new DBManager(getdbCon(), getBd());\n\t\t\n\t\t// \tAntes de iniciar los controladores establecemos las universidades disponibles\n\t\t//----------------------------------------------------------\n\t\t\n\t\tsetMapUniversidades();\n\t\t\n\t\tArrayList<String> nombreUnis = new ArrayList<>();\n\t\t\n\t\tuniMap.forEach( (name,cod) -> {\n\t\t\tnombreUnis.add(name);\n\t\t});\n\t\t\n\t\tCollections.sort(nombreUnis); // Como el map nos lo desordena un poco, lo ordenamos\n\t\tsetUniversidades(nombreUnis);\n\t\t\n\t\t\n\t\t//----------------------------------------------------------\n\t\t\n\t\t// Cargamos la vista, en este caso, la primera es la que no usa procedimientos\n\t\tmainStage = primaryStage;\n\t\tlaunchNormalWindow();\n\t\tmainStage.show();\n\t}", "@Override\n public void start(final Stage primaryStage) throws Exception {\n Parent root = FXMLLoader.load(getClass().getResource(\"/fxml/mainView.fxml\"));\n primaryStage.setTitle(\"Unicorn RayTracer\");\n Scene scene = new Scene(root);\n primaryStage.setScene(scene);\n primaryStage.setMaxWidth(900);\n primaryStage.setHeight(610);\n primaryStage.show();\n\n MenuItem menuItem = ((MenuBar) scene.lookup(\"#menuBar\")).getMenus().get(0).getItems().get(3);\n menuItem.disableProperty().bind(image.imageProperty().isNull());\n menuItem.setOnAction(a -> IO.saveImage(scene.getWindow(), image.getImage()));\n\n primaryStage.setOnCloseRequest(a -> AController.raytracer.stopRender());\n scene.setOnKeyPressed(a -> {\n if (a.getCode() == KeyCode.ESCAPE) AController.raytracer.stopRender();\n });\n primaryStage.setOnCloseRequest(\n a -> Platform.exit()\n );\n\n }", "@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tnombreText = new TextField();\r\n\t\tnombreText.setPrefColumnCount(5);\r\n\t\tnombreText.setMaxWidth(100);// Establecemos el tamaño máximo del componente\r\n\r\n\t\t// Creamos una etiqueta\r\n\t\tcomprobarLabel = new Label();\r\n\t\tcomprobarLabel.setText(\"Introduce un número del 1 al 100\");\r\n\r\n\t\t// Creamos un botón\r\n\t\tcomprobarButton = new Button();\r\n\t\tcomprobarButton.setText(\"Comprobar\");\r\n\t\tcomprobarButton.setOnAction(numIN -> onComprobarButtonAction(numIN));\r\n\t\tcomprobarButton.setDefaultButton(true);\r\n\t\tcontador++;\r\n\r\n\t\t// Creamos un panel con disposición vertical\r\n\t\tVBox root = new VBox();\r\n\t\troot.setSpacing(5);\r\n\t\troot.setAlignment(Pos.CENTER);\r\n\t\troot.getChildren().addAll(comprobarLabel, nombreText, comprobarButton);\r\n\r\n\t\t// Creamos la escena\r\n\t\tScene escena = new Scene(root, 320, 200);\r\n\r\n\t\t// Configuramos la ventana y le ponemos una escena\r\n\t\tprimaryStage.setScene(escena);\r\n\t\tprimaryStage.setTitle(\"AdivinApp\");\r\n\t\tprimaryStage.show();\r\n\r\n\t}", "public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}", "public void start (Stage primaryStage) throws Exception{\r\n\t\t\r\n\t\tfrogScenemanager scenemanager = new frogScenemanager(primaryStage);\r\n\t\tscenemanager.startMainMenu();\r\n\t}", "@Override // Override the start method in the Application class\r\n /**\r\n * Start method for layout building\r\n */\r\n public void start(Stage primaryStage)\r\n {\n Scene scene = new Scene(pane, 370, 200);\r\n primaryStage.setTitle(\"Sales Conversion\"); // Set the stage title\r\n primaryStage.setScene(scene); // Place the scene in the stage\r\n primaryStage.show(); // Display the stage\r\n }", "@Test\n public void testStart() throws InterruptedException {\n Thread thread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n new JFXPanel(); // Initializes the JavaFx Platform\n Platform.runLater(new Runnable() {\n\n @Override\n public void run() {\n try {\n new GOL_Main().start(new Stage()); // Create and\n // initialize app\n } catch (Exception ex) {\n Logger.getLogger(GOL_MainTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n });\n }\n });\n thread.start();// Initialize the thread\n Thread.sleep(10);\n System.out.println(\"start\");\n Stage stage = null;\n GOL_Main instance = new GOL_Main(); \n }", "@Override\n public void start(Stage primaryStage) {\n filePathField.setPrefWidth(300);\n // Adds nodes to mainContent container\n mainContent.getChildren().addAll(label, filePathField, openButton);\n // Sets mainContent container alignment to center\n mainContent.setAlignment(Pos.CENTER);\n // Sets spacing of mainContent children\n mainContent.setSpacing(20);\n // Adds nodes to root container\n root.getChildren().addAll(title, mainContent, result);\n // Sets root alignment to center\n root.setAlignment(Pos.CENTER);\n // Sets spacing of root layout\n root.setSpacing(20);\n // Sets event handler for openButton\n openButton.setOnAction(e-> openFileExplorer());\n // Sets scene container to root and window dimensions\n Scene scene = new Scene(root, 600, 400);\n // Sets title of program window\n primaryStage.setTitle(\"Character Limit Counter\");\n // Sets scene of stage\n primaryStage.setScene(scene);\n // Shows stage\n primaryStage.show();\n }", "@Override\n public void start(Stage primaryStage) {\n\n // Creates the scene and displays it to the main window\n Scene withDrawPaneSetup = new Scene(withDrawPaneSetup(primaryStage), 1024, 768);\n primaryStage.setScene(withDrawPaneSetup);\n }", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "@Override\n public void start(Stage primaryStage)\n throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException {\n makeMainGrid();\n Scene myHomeScene = new Scene(myMainGrid, WINDOW_WIDTH, WINDOW_HEIGHT);\n primaryStage.setScene(myHomeScene);\n primaryStage.show();\n }", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n\tpublic void start(Stage primaryStage) {\n\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/view/History.fxml\"));\n\t\t\tScene window = new Scene(root);\n\t\t\tprimaryStage.setScene(window);\n\t\t\tprimaryStage.show();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n //launch it\n launch();\n }", "@Override\n\tpublic void start(Stage primaryStage) {\n\t\t// Initialize the GUI\n\t\tmodel = new LottoModel();\n\t\tview = new LottoView(primaryStage, model);\n\t\tcontroller = new LottoController(model, view);\n\n\t\t// Display the GUI after all initialization is complete\n\t\t// Disabled einzelne Buttons, welche erst später enabled sein sollen\n\t\tview.start();\n\t\tview.btnZiehung.setDisable(true);\n\t\tview.btnKugelnRollen.setDisable(true);\n\t\tview.btnGewinn.setDisable(true);\n\n\t\t// die Ziehungs-Zahlen sollen nicht bearbeitbar sein\n\t\tfor (int i = 0; i < 6; i++) {\n\t\t\tview.ziehung[i].setEditable(false);\n\t\t}\n\n\t\t// die Ziehungs-Glückszahl soll nicht bearbeitbar sein\n\t\tview.ziehungGlückszahl.setEditable(false);\n\t}" ]
[ "0.80436337", "0.7972131", "0.7767421", "0.769568", "0.76146364", "0.7492703", "0.7469369", "0.7434961", "0.73840296", "0.73626715", "0.73596406", "0.73211133", "0.73199284", "0.7289391", "0.7265379", "0.72232836", "0.7217155", "0.7207649", "0.7198015", "0.7190549", "0.7153159", "0.71356726", "0.71134645", "0.7087474", "0.7082531", "0.70739114", "0.7056186", "0.704139", "0.70257586", "0.70011234", "0.69812244", "0.6974034", "0.6972445", "0.6966495", "0.6963194", "0.6959422", "0.6956769", "0.6937822", "0.6934152", "0.6932658", "0.69254386", "0.69170386", "0.69031507", "0.6893184", "0.6892224", "0.688763", "0.68828", "0.68823224", "0.6881085", "0.6877506", "0.686231", "0.6859024", "0.6859024", "0.68577033", "0.68575495", "0.6849408", "0.683361", "0.6806828", "0.6804311", "0.67995536", "0.67912954", "0.67912954", "0.67912954", "0.6786663", "0.6775936", "0.6775682", "0.6749497", "0.6740594", "0.67380613", "0.6737315", "0.67353743", "0.67332387", "0.6718732", "0.6716829", "0.67149705", "0.6709245", "0.66967976", "0.6695075", "0.66939056", "0.6687798", "0.6687776", "0.66828024", "0.6679807", "0.66782945", "0.6675381", "0.667129", "0.66607285", "0.6657467", "0.6656455", "0.66540414", "0.66481566", "0.6642516", "0.66383797", "0.66306126", "0.6628988", "0.6618976", "0.661433", "0.6612503", "0.6607875", "0.6603915", "0.6599804" ]
0.0
-1
/ cargamos la ventana principal
public void mostrarMenuPrincipal() { try { FXMLLoader loader = new FXMLLoader(Main.class.getResource("../Vista/UIMenuPrincipal.fxml")); rootPane=(AnchorPane) loader.load(); Scene scene = new Scene(rootPane); stagePrincipal.setTitle("Aplicacion de Donantes y Donaciones"); stagePrincipal.setScene(scene); /* * Añadidos las llamadas del main al Controlador y del controlador al main ***/ ControladoraUIMenuPrincipal controller = loader.getController(); controller.setMnPrincipal(this); stagePrincipal.show(); } catch (IOException e) { System.out.println(e); //tratar la excepción. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public VentanaPrincipal() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(this);\n\t\ttry {\n\t\t\tcontroladorCliente = new ControladorVentanaCliente();\n\t\t\tcargarFranquicia();\n\t\t\tcargarTipoTransacion();\n\t\t\ttipoCompra();\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "public VentanaPrincipal() {\n initComponents();\n }", "public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }", "public static void MenuPrincipal() {\n System.out.println(\"Ingrese Opcion deseada :.\\n\"\r\n + \"1. Ingresar un perro a la guardería.\\n\"\r\n + \"2. Contar cuántos Perros de la raza y el Genero deceado hay o pasaron por la guardería durante el verano.\\n\"\r\n + \"3. Listar todos los perros (con su respectiva información) que ingresaron en una determinada fecha.\\n\"\r\n + \"4. Listar todos los Perrros de la Raza que decea con estadía mayor a 20 días.\\n\"\r\n + \"5. Dado el código de un perro, informar los datos de su dueño.\\n\"\r\n + \"6. Terminar.\\n\"\r\n +\"______________________________________________________________________________________________________________\"\r\n \r\n );\r\n\r\n }", "private void iniciar() {\r\n\t\t/*Se instancian las clases*/\r\n\t\tmiVentanaPrincipal=new VentanaPrincipal();\r\n\t\tmiVentanaRegistro=new VentanaRegistro();\r\n\t\tmiVentanaBuscar= new VentanaBuscar();\r\n\t\tmiLogica=new Logica();\r\n\t\tmiCoordinador= new Coordinador();\r\n\t\t\r\n\t\t/*Se establecen las relaciones entre clases*/\r\n\t\tmiVentanaPrincipal.setCoordinador(miCoordinador);\r\n\t\tmiVentanaRegistro.setCoordinador(miCoordinador);\r\n\t\tmiVentanaBuscar.setCoordinador(miCoordinador);\r\n\t\tmiLogica.setCoordinador(miCoordinador);\r\n\t\t\r\n\t\t/*Se establecen relaciones con la clase coordinador*/\r\n\t\tmiCoordinador.setMiVentanaPrincipal(miVentanaPrincipal);\r\n\t\tmiCoordinador.setMiVentanaRegistro(miVentanaRegistro);\r\n\t\tmiCoordinador.setMiVentanaBuscar(miVentanaBuscar);\r\n\t\tmiCoordinador.setMiLogica(miLogica);\r\n\t\t\t\t\r\n\t\tmiVentanaPrincipal.setVisible(true);\r\n\t}", "public void Ordenamiento() {\n\n\t}", "public Principal() {\n initComponents();\n UILogin uilogin = new UILogin(this, true);\n uilogin.setVisible(true);\n\n txtAdmin.setText(\"ADMINISTRADOR: \" + uilogin.login);\n setLocationRelativeTo(null); //Inicia janela Principal centralizado\n setExtendedState(JFrame.MAXIMIZED_BOTH);//Inicia janela Principal maximizado\n this.gerenteDeJanelas = new GerenteDeJanelas(jDesktopPane1);\n\n WebLookAndFeel.install();//Thema WebLaf\n data();//Informa a data no rodapé\n hora();//Informa a hora no rodapé\n setIcon();//Ícone da janela\n\n }", "public vistaPrincipal() {\n initComponents();\n }", "private static void cajas() {\n\t\t\n\t}", "public void asignarVida();", "protected void accionUsuario() {\n\t\t\r\n\t}", "public Gui_producto(Gui_VentanaPrincipalGerente principal) {\n initComponents();\n this.setLocationRelativeTo(null);\n this.gui_principal = principal;\n this.addObserver(this.gui_principal.gui_login.menu);\n deshabilitar();\n botones();\n }", "public JanelaPrincipal() {\r\n\r\n\t\tsetTitle(\"Trabalho de Sistemas Operacionais I\");\r\n\t\tsetSize(tamanhoPrograma);\r\n\t\tsetResizable(false);\r\n\t\taddWindowListener(this);\r\n\t\tsetLocation((screenSize.width - ProgramaLargura) / 2,\r\n\t\t\t\t(screenSize.height - ProgramaAltura) / 2);\r\n\t}", "Petunia() {\r\n\t\t}", "public TelaPrincipal() {\r\n initComponents();\r\n con.conecta();\r\n }", "public PantallaPrincipal() {\n gestor= new Gestor();\n initComponents();\n inicializarTablaCarreras();\n inicializarTablaCorredorTotales();\n inicializarTablaCorredor();\n mostrarCarreras();\n mostrarCorredoresTotales();\n \n \n }", "static void menuPrincipal() {\n System.out.println(\n \"\\nPizzaria o Rato que Ri:\" + '\\n' +\n \"1 - Novo pedido\" + '\\n' +\n \"2 - Mostrar pedidos\" + '\\n' +\n \"3 - Alterar estado do pedido\" + '\\n' +\n \"9 - Sair\"\n );\n }", "public TelaPrincipal3() {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(CadastroFuncionario.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n BeansLogin l = new BeansLogin();\n cpf.setText(\"Bem Vindo, \"+l.getNome());\n String credito = \"\" + l.getCredito();\n saldoMostrar.setText(credito);\n }", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\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 principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }", "public Ventana(){\r\n\t\t\r\n\t\tsuper.setTitle(\"Operaciones\");\r\n\t\tsuper.setSize(320, 480);\r\n\t\tsuper.setDefaultCloseOperation(EXIT_ON_CLOSE); //para el botón de cerrar\r\n\t\tcargarControles();\r\n\t}", "public void altaUsuario();", "public VentaPrincipal() {\n initComponents();\n }", "private UsineJoueur() {}", "public Principal() {\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n asignarListeners();\n listaGatos = Utilidad.leerArchivoGatos();\n listaPerros = Utilidad.leerArchivoPerros();\n // Actualizacion al iniciar el proyecto, carga de informacion de los\n // archivos planos\n actualizarListas();\n }", "public static void main(String args[]){\n ControlAcceso controlador = new ControlAcceso();\n\n //se asignan los comportamientos\n controlador.asignarComportamientoAcceso(new AccesoPassword());\n\n controlador.asignarComportamientoCifrado(new CifradoNormal());\n\n controlador.acceder();\n controlador.cifrar(\"texto\");\n\n //de forma dinamica cmbio el comportamiento\n controlador.asignarComportamientoCifrado(new CifradoNulo());\n controlador.cifrar(\"djad\");\n }", "public Principal() {\n initComponents();\n ab = new adminbarra(pg_Ordenes);\n }", "public TelaPrincipal() {\n initComponents();\n Consultorio.Instance().efetuaBalanco(false);\n setSize(1029,764);\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public static void main(String args []){\n Vista miVista=new Vista();\n ListaEstudiantes miListaEstudiantes=new ListaEstudiantes();\n Grupo miGrupo=new Grupo();\n Controlador miControlador=new Controlador(miVista,miListaEstudiantes,miGrupo);\n miControlador.iniciar();\n\n }", "public VentanaPrincipal() {\r\n\t\t\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 643, 414);\r\n\t\t\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\t\r\n\t\tmnPersona = new JMenu(\"Persona\");\r\n\t\tmenuBar.add(mnPersona);\r\n\t\t\r\n\t\tmntmAgregar = new JMenuItem(\"Agregar\");\r\n\t\tmnPersona.add(mntmAgregar);\r\n\t\t\r\n\t\tmntmModificar = new JMenuItem(\"Modificar\");\r\n\t\tmnPersona.add(mntmModificar);\r\n\t\t\r\n\t\tmntmListar=new JMenuItem(\"Listar\");\r\n\t\tmnPersona.add(mntmListar);\r\n\t\t\r\n\t\tmntmEliminar = new JMenuItem(\"Eliminar\");\r\n\t\tmnPersona.add(mntmEliminar);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\t\r\n\r\n\t}", "public JanelaPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\n\n\t\ttry {\n\n\t\t\t// Aparência do windows ...\n\n\t\t\tUIManager\n\t\t\t\t\t.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\n\t\t\t// Inicializando e lançando uma barra de menu e seus atributos ...\n\n\t\t\tbarraDeMenu = new JMenuBar();\n\t\t\tthis.setJMenuBar(barraDeMenu);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\testoque = new JMenu(\"Estoque\");\n\t\t\tbarraDeMenu.add(estoque);\n\n\t\t\tcompras = new JMenuItem(\"Gerenciar (Compras)\");\n\n\t\t\tcompras.addActionListener(this);\n\t\t\testoque.add(compras);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tvendas = new JMenu(\"Vendas\");\n\t\t\tbarraDeMenu.add(vendas);\n\n\t\t\trealizarVenda = new JMenuItem(\"Realizar Venda\");\n\n\t\t\trealizarVenda.addActionListener(this);\n\n\t\t\tvendas.add(realizarVenda);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tcadastros = new JMenu(\"Cadastros\");\n\t\t\tbarraDeMenu.add(cadastros);\n\n\t\t\tcadProduto = new JMenuItem(\"Produto\");\n\t\t\tcadastros.add(cadProduto);\n\n\t\t\tcadProduto.addActionListener(this);\n\n\t\t\tcadFornecedor = new JMenuItem(\"Fornecedor\");\n\t\t\tcadFornecedor.addActionListener(this);\n\n\t\t\tcadastros.add(cadFornecedor);\n\n\t\t\tcadCliente = new JMenuItem(\"Cliente\");\n\n\t\t\tcadCliente.addActionListener(this);\n\t\t\tcadastros.add(cadCliente);\n\n\t\t\tcadContas = new JMenuItem(\"Contas a Pagar\");\n\t\t\tcadastros.add(cadContas);\n\n\t\t\tcadContas.addActionListener(this);\n\n\t\t\tcadLembretes = new JMenuItem(\"Lembretes\");\n\n\t\t\tcadastros.add(cadLembretes);\n\n\t\t\tcadLembretes.addActionListener(this);\n\n\t\t\tcadUsuarios = new JMenuItem(\"Usuários\");\n\n\t\t\tcadUsuarios.addActionListener(this);\n\t\t\tcadastros.add(cadUsuarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\trelatorios = new JMenu(\"Relatórios\");\n\t\t\tbarraDeMenu.add(relatorios);\n\n\t\t\tvendasRealizadas = new JMenuItem(\"Vendas Realizadas\");\n\t\t\tvendasRealizadas.addActionListener(this);\n\n\t\t\trelatorios.add(vendasRealizadas);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tutilitarios = new JMenu(\"Utilitários\");\n\t\t\tbarraDeMenu.add(utilitarios);\n\n\t\t\tcalculadora = new JMenuItem(\"Calculadora\");\n\t\t\tutilitarios.add(calculadora);\n\n\t\t\tcalculadora.addActionListener(this);\n\n\t\t\tblocoDeNotas = new JMenuItem(\"Bloco De Notas\");\n\t\t\tblocoDeNotas.addActionListener(this);\n\n\t\t\tutilitarios.add(blocoDeNotas);\n\n\t\t\ttecladoVirtual = new JMenuItem(\"Teclado Virtual\");\n\t\t\tutilitarios.add(tecladoVirtual);\n\n\t\t\ttecladoVirtual.addActionListener(this);\n\n\t\t\tbloquearSistema = new JMenuItem(\"Bloquear Sistema\");\n\n\t\t\tbloquearSistema.addActionListener(this);\n\t\t\tutilitarios.add(bloquearSistema);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tgerenciar = new JMenu(\"Gerenciar\");\n\t\t\tbarraDeMenu.add(gerenciar);\n\n\t\t\tgerProdutos = new JMenuItem(\"Produtos\");\n\n\t\t\tgerProdutos.addActionListener(this);\n\t\t\tgerenciar.add(gerProdutos);\n\n\t\t\tgerFornecedores = new JMenuItem(\"Fornecedores\");\n\t\t\tgerFornecedores.addActionListener(this);\n\n\t\t\tgerenciar.add(gerFornecedores);\n\n\t\t\tgerClientes = new JMenuItem(\"Clientes\");\n\n\t\t\tgerClientes.addActionListener(this);\n\t\t\tgerenciar.add(gerClientes);\n\n\t\t\tgerContas = new JMenuItem(\"Contas a Pagar\");\n\t\t\tgerContas.addActionListener(this);\n\n\t\t\tgerenciar.add(gerContas);\n\n\t\t\tgerLembretes = new JMenuItem(\"Lembretes\");\n\t\t\tgerLembretes.addActionListener(this);\n\n\t\t\tgerenciar.add(gerLembretes);\n\n\t\t\tgerUsuarios = new JMenuItem(\"Usuários\");\n\n\t\t\tgerUsuarios.addActionListener(this);\n\t\t\tgerenciar.add(gerUsuarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------------------------\n\n\t\t\tajuda = new JMenu(\"Ajuda\");\n\t\t\tbarraDeMenu.add(ajuda);\n\n\t\t\tSobreSoftware = new JMenuItem(\"Sobre o Software\");\n\n\t\t\tSobreSoftware.addActionListener(this);\n\t\t\tajuda.add(SobreSoftware);\n\n\t\t\tdesenvolvedores = new JMenuItem(\"Desenvolvedores\");\n\n\t\t\tdesenvolvedores.addActionListener(this);\n\n\t\t\tajuda.add(desenvolvedores);\n\n\t\t\tsair = new JMenu(\"Sair\");\n\t\t\tbarraDeMenu.add(sair);\n\n\t\t\tpainelDeElementos = new JDesktopPane();\n\t\t\tpainelDeElementos.setBackground(UIManager\n\t\t\t\t\t.getColor(\"Button.background\"));\n\n\t\t\tbotaoEventos = new JLabel(\n\t\t\t\t\tnew ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/png/Eventos.png\")));\n\n\t\t\tbotaoEventos.addMouseListener(this);\n\n\t\t\tbotaoEventos.setBounds(540, 665, 107, 28);\n\t\t\tpainelDeElementos.add(botaoEventos);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaContas = new JPanel();\n\t\t\tpainelTabelaContas.setLayout(new BorderLayout());\n\t\t\tpainelTabelaContas.setBounds(200, 770, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaContas);\n\n\t\t\tcontasPagar_Tabela = new JTable(modeloTabelaContas) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\tcontasPagar_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 6; i++) {\n\n\t\t\t\tcontasPagar_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaContas = new JScrollPane(contasPagar_Tabela);\n\t\t\tpainelTabelaContas.add(scrollTabelaContas);\n\n\t\t\tcontasPagar_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\tcontasPagar_Tabela.addMouseListener(this);\n\n\t\t\tcontasPagar_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaLembretes = new JPanel();\n\t\t\tpainelTabelaLembretes.setLayout(new BorderLayout());\n\t\t\tpainelTabelaLembretes.setBounds(200, 1110, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaLembretes);\n\n\t\t\tlembretes_Tabela = new JTable(modeloTabelaLembretes) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\tlembretes_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\tlembretes_Tabela.addMouseListener(this);\n\n\t\t\tlembretes_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\tlembretes_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\tlembretes_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaLembretes = new JScrollPane(\n\t\t\t\t\tlembretes_Tabela);\n\n\t\t\tpainelTabelaLembretes.add(scrollTabelaLembretes);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tpainelTabelaAniversarios = new JPanel();\n\t\t\tpainelTabelaAniversarios.setLayout(new BorderLayout());\n\t\t\tpainelTabelaAniversarios.setBounds(200, 1110, 791, 115);\n\n\t\t\tpainelDeElementos.add(painelTabelaAniversarios);\n\n\t\t\taniversarios_Tabela = new JTable(modeloTabelaAniversario) {\n\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\tpublic boolean isCellEditable(int row, int column) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t};\n\n\t\t\taniversarios_Tabela\n\t\t\t\t\t.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n\t\t\taniversarios_Tabela.addMouseListener(this);\n\n\t\t\taniversarios_Tabela.getTableHeader().setReorderingAllowed(false);\n\n\t\t\taniversarios_Tabela.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\n\t\t\tfor (int i = 0; i < 5; i++) {\n\n\t\t\t\taniversarios_Tabela.getColumnModel().getColumn(i)\n\t\t\t\t\t\t.setPreferredWidth(250);\n\n\t\t\t}\n\n\t\t\tJScrollPane scrollTabelaAniversarios = new JScrollPane(\n\t\t\t\t\taniversarios_Tabela);\n\n\t\t\tpainelTabelaAniversarios.add(scrollTabelaAniversarios);\n\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\t\t\t// --------------------------------------------------------------------------------------------\n\n\t\t\tfundoTabela = new JLabel();\n\n\t\t\tfundoTabela\n\t\t\t\t\t.setIcon(new ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/png/Fundo_Tabelas.PNG\")));\n\n\t\t\tfundoTabela.setBounds(138, 700, 900, 580);\n\t\t\tpainelDeElementos.add(fundoTabela);\n\n\t\t\tfundo = new JLabel(\n\t\t\t\t\tnew ImageIcon(\n\t\t\t\t\t\t\tTelaPrincipal.class\n\t\t\t\t\t\t\t\t\t.getResource(\"/views/principais/tela_de_inicio/jpg/Fundo.jpg\")));\n\n\t\t\tfundo.setBounds(0, -5, 2125, 1245);\n\t\t\tpainelDeElementos.add(fundo);\n\n\t\t\t// Propriedades da tela ...\n\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t// this.setExtendedState(MAXIMIZED_BOTH);\n\n\t\t\tthis.setSize(1200, 750);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\tthis.setContentPane(painelDeElementos);\n\t\t\tthis.setTitle(\"Thallyta Móveis - Bem Vindo (a)\");\n\t\t\tthis.setVisible(true);\n\n\t\t\tadicionandoValoresAsTabelas();\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\n\t\t\te.getStackTrace();\n\n\t\t}\n\n\t}", "public TelaPrincipalLocutor() {\n initComponents();\n\n }", "public Principal() {\n initComponents();\n Desabilitar();\n ChoicePro.add(\"\");\n ChoicePro.add(\"Guerrero\");\n ChoicePro.add(\"Mago\");\n ChoicePro.add(\"Arquero\");\n Llenar();\n\n }", "public VentanaPrincipal() {\n \n initComponents();\n DefaultComboBoxModel dcm = new DefaultComboBoxModel();\n for (LookAndFeelInfo lfi : UIManager.getInstalledLookAndFeels()){\n dcm.addElement(lfi.getName());\n }\n jComboBoxTema.setModel(dcm); \n\n String tema=UIManager.getLookAndFeel().getName(); //selecciono en el jComboBox el tema que tiene aplicado\n jComboBoxTema.setSelectedItem(tema); \n jLabelAplicado.setText(\"Tema Aplicado: \" + UIManager.getInstalledLookAndFeels()[jComboBoxTema.getSelectedIndex()].getClassName());\n\n }", "private void arrancaHiloPrincipal() {\n //Creo objeto hilo principal\n HiloPrincipal hilo = new HiloPrincipal(this);\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public static void main(String[] arhg) {\n\n Conta p1 = new Conta();\n p1.setNumConta(1515);\n p1.abrirConta(\"cp\");\n p1.setDono(\"wesley\");\n p1.deposita(500);\n // p1.saca(700); -> irá gera um erro pois o valor de saque especificado é superior ao valor que tem na conta\n\n p1.estadoAtual();\n }", "public static void main(String[] args) {\n \r\n ventanaPrincipal ventana = new ventanaPrincipal();\r\n ventana.setTitle(\"DemoTallerDeProgramacion\");\r\n \r\n\t\t\t\t\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\r\n\t\tif ((screenSize.getWidth() < 1024 || screenSize.getWidth() > 2770)\r\n\t\t\t\t|| (screenSize.getHeight() < 720\r\n\t\t\t\t\t\t|| screenSize.getHeight() > 1600))\r\n\t\t\tJOptionPane.showMessageDialog(ventana,\r\n\t\t\t\t\t\"Resolution [\" + Math.round(screenSize.getWidth()) + \"x\"\r\n\t\t\t\t\t\t\t+ Math.round(screenSize.getHeight())\r\n\t\t\t\t\t\t\t+ \"] No Soportado!\\r\\n\"\r\n\t\t\t\t\t\t\t+ \"Requires [720x720] to [720x720].\",\r\n\t\t\t\t\t\"Resolucion Error!\", JOptionPane.ERROR_MESSAGE);\r\n\t\telse {\r\n\t\t\t//ventana.setUndecorated(true);\r\n\t\t\tventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\tventana.setExtendedState(ventanaPrincipal.MAXIMIZED_BOTH); //JFrame\r\n\t\t\t//ventana.getContentPane().setBackground(new Color(0, 0, 0)); fonfo negro\r\n\t\t\tventana.setVisible(true);\r\n\t\t\t//ventanaPrincipal view = new ventanaPrincipal();//frame, screenSize);\r\n\t\t\t//ventana.getContentPane().add(view);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void presentarMenuPrincipal() {\n\t\tSystem.out.println(\"Ingresa el numero de la opcion deseada y preciona enter\");\n\t\tSystem.out.println(\"1 - Registrar nuevo libro\");\n\t\tSystem.out.println(\"2 - Consultar libros\");\n\t\tSystem.out.println(\"3 - terminar\");\n\t}", "private void menuPrincipal() {\r\n\t\ttelaPrincipal = new TelaPrincipal();\r\n\t\ttelaPrincipal.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttelaPrincipal.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t}", "private ControleurAcceuil(){ }", "void pasarALista();", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "public AfiliadoVista() {\r\n }", "public GUI_Principal() {\n initComponents();\n \n ce = new Calculo_Ecuacion();\n inicializaValores();\n }", "public TelaPrincipal() {\n initComponents();\n }", "public TelaPrincipal() {\n initComponents();\n }", "public static void main(String[] args) {\r\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t VentanaPrincipal = new CInterfazGrafica();\r\n\t\t\t\tVentanaPrincipal.setVisible(true);\r\n\t\t //ColaEntrada Cola1 = new ColaEntrada();\r\n\t\t //ColaSalida Cola2 = new ColaSalida(); \t\r\n\t\t //InterfazHWVer3 Maurix = new InterfazHWVer3(Cola1, Cola2, VentanaPrincipal);\r\n\t\t\t}\r\n\t });\r\n\t}", "public GUI_MenuPrincipal_Profissional(Usuario profissional) {\n initComponents();\n \n // Centraliza o JFrame na tela\n this.setLocationRelativeTo(null);\n this.profissional = profissional;\n }", "private void iniciarVentana()\n {\n this.setVisible(true);\n //Centramos la ventana\n this.setLocationRelativeTo(null);\n //Colocamos icono a la ventana\n this.setIconImage(Principal.getLogo());\n //Agregamos Hint al campo de texto\n txt_Nombre.setUI(new Hint(\"Nombre del Archivo\"));\n //ocultamos los componentes de la barra de progreso general\n lblGeneral.setVisible(false);\n barraGeneral.setVisible(false);\n //ocultamos la barra de progreso de archivo\n barra.setVisible(false);\n //deshabiltamos el boton de ElimianrArchivo\n btnEliminarArchivo.setEnabled(false);\n //deshabilitamos el boton de enviar\n btnaceptar.setEnabled(false);\n //Creamos el modelo para la tabla\n modelo=new DefaultTableModel(new Object[][]{},new Object[]{\"nombre\",\"tipo\",\"peso\"})\n {\n //sobreescribimos metodo para prohibir la edicion de celdas\n @Override\n public boolean isCellEditable(int i, int i1) {\n return false;\n }\n \n };\n //Agregamos el modelo a la tabla\n tablaArchivos.setModel(modelo);\n //Quitamos el reordenamiento en la cabecera de la tabla\n tablaArchivos.getTableHeader().setReorderingAllowed(false);\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void selecao () {}", "public static void main(String[] args) {\n Ventana_Cliente VC = new Ventana_Cliente();\n adm.Iniciar_Juego(VC);\n \n }", "void courir();", "public FrameCadastroUsuario(Principal principal) {\n initComponents();\n\t\tthis.principal = principal;\n }", "private void arrancarHiloCambiosVentas() {\n HiloCambiosVentas hilo = new HiloCambiosVentas();\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "protected Asignatura()\r\n\t{}", "public PantallaPrincipal() {\n initComponents();\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public Cgg_res_oficial_seguimiento_usuario(){}", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public static void main(String[] args) \r\n {\r\n Erreur = MenuPrincipal();\r\n if (Erreur != 0)\r\n { //Afficher l'erreur du programme\r\n }\r\n //Le programme ce termine proprement\r\n }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public static void main(String[] args) { \n Cubo c=new Cubo();\n float arista;\n arista=c.PreguntaArista();\n c.SetLado(arista);\n c.SetÁrea();\n System.out.println(\"Área del cubo cuyas aristas son de \" +arista+ \": \" +c.GetÁrea());\n }", "public FRM_MenuPrincipal() {\n initComponents();\n archivos = new ArchivoUsuarios(); \n controlador = new CNTRL_MenuPrincipal(this, archivos);\n agregarControlador(controlador);\n setResizable(false);\n ordenarVentanas();\n }", "public JfPrincipal() {\n super(\"SURGI - Sistema Unificado para Registro e Gerenciamento de Informações - \" + versao.getVersao() + \" - \" + versao.getAno());\n initComponents();\n\n //Altera icone na barra de titulo\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.getImage(\"C:/SURGI/imagens/SURGI32x32.png\");\n this.setIconImage(img);\n\n //maximiza tela\n this.setExtendedState(MAXIMIZED_BOTH);\n\n //centraliza tela\n setSize(getWidth(), getHeight());\n setLocationRelativeTo(null);\n\n jlbVersao.setText(versao.getVersao());\n iniciaJfLogin();\n jfLogin.fechar();\n jfLogin = null;\n \n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hola Mundo\");\n\t\t\n\t\t//--------------------------------------------------\n\t\t\n\t\t// Tipos de datos primitivos inician con minúscula\n\t\t\n\t\t// Enteros\n\t\tbyte edad = 24; // Tamaño: -128 a 127\n\t\tshort año = 20020;\n\t\tint idUsuario = 1847590;\n\t\tlong idAmazon = 109399029304012092L; // L es necesario al final, para identificarlo como long\n\t\t\n\t\t// Floante (Decimal)\n\t\tfloat radio = 35.63F; //F es necesario al final, para identificarlo como float\n\t\tdouble precio_acumulado = 34542342.546404935945034; // Se usa para datos con mayor precisión\n\t\t\n\t\t// Char (Un solo caracter)\n\t\tchar genero = 'M';\n\t\t\n\t\t// Lógico (Booleano)\n\t\tboolean visible = false;\n\t\tboolean funciona = true;\n\t\t\n\t\t// Constantes siempre en Mayúsculas\n\t\tint INICIA = 1;\n\t\tint VALOR_MAXIMO = 1524;\n\t\t\n\t\t//Lower camel case para variables, métodos u objetos\n\t\tint minValor = 1;\n\t\tboolean pruebaGit = true;\n\t\t\n\t\t//---------------------------------------------------------------\n\t\t\n\t\t// Cast automático\n\t\tbyte b = 24;\n\t\tshort s = b;\n\t\tb = (byte) s; // Cast explícito o manual\n\t\t\n\t\tint i = 24;\n\t\tdouble d = 12.24;\n\t\ti = (int) d; // Recorta el decimal, solo toma la parte entera del número\n\t\t\n\t\tint codigo = 97;\n\t\tchar codigoASCII = (char) codigo; // Cast explícito\t\t\n\t\t\n\t\t// Short a Byte\n\t\tshort numero = 2020;\n\t\tbyte numByte = (byte) numero; // Casting de un dato mas grande que el rango\n\t\t\t\t\t\t\t\t\t // del tipo de dato destino, genera números \"aleatorios\".\n\t\t\n\t\tSystem.out.println(\"\\n\" + numByte); // + variable (Concatenación)\n\t\tSystem.out.println(codigoASCII);\n\t\t\n\t\t//----------------------------------------------------\n\t\t\n\t\t// Arreglos\n\t\t\n\t\t// Formas de declarar un arreglo\n\t\tint[] arrayEntero;\n\t\tdouble arrayDouble[];\n\t\t\n\t\t// Iniciarlo\n\t\t// tipoDeDato[Dimensión] NombreDelArreglo = new tipoDeDato[N° de elementos]\n\t\tdouble[] arreglo1D = new double[3]; \n\t\tint[][] arreglo2D = new int[2][3]; // Arreglo 2D de 6 elementos\n\t\tchar[][][] arreglo3D = new char[3][3][2]; // Arreglo 3D de 18 elementos\n\t\t\n\t\t// Llenando el arreglo\n\t\tchar[][] days = { {'L','M','M'},\n\t\t\t\t\t\t {'J','V','S'} };\n\t\t\n\t\tchar[][][] days3D = { { {'a','b','c'}, {'d','e','f'} },\n\t\t\t\t\t\t\t { {'d','e','f'}, {'a','b','c'} } };\n\t\t\n\t\t// Agregar elementos al arreglo mediante los índices\n\t\tchar[] saludo = new char[4];\n\t\t\n\t\tsaludo[0] = 'H';\n\t\tsaludo[1] = 'o';\n\t\tsaludo[2] = 'l';\n\t\tsaludo[3] = 'a';\n\t\t\n\t\tSystem.out.println(\"\\n\" + saludo[0]);\n\t\tSystem.out.println(saludo[1]);\n\t\tSystem.out.println(saludo[2]);\n\t\tSystem.out.println(saludo[3]);\n\t\t\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Operadores aritméticos\n\t\tSystem.out.println(\"\\n\"+ 12+21);\n\t\tSystem.out.println(20-5);\n\t\tSystem.out.println(12*15);\n\t\tSystem.out.println(15/3);\n\t\tSystem.out.println(17%5);\n\t\t\n\t\t// Operadores de asignación\n\t\tint a = 10;\n\t\tSystem.out.println(\"\\n\" + (a += 2)); // Es equivalente: a = a + 2; + (Asignaciones de variables)\n\t\tSystem.out.println(a -= 3);\n\t\tSystem.out.println(a *= 4);\n\t\tSystem.out.println(a /= 5);\n\t\tSystem.out.println(a %= 6);\n\t\t\n\t\t\n\t\t// Operadores de incremento y decremento (Prefijo y Postfijo)\n\t\tint p = 5;\n\t\t\n\t\t/* ++p\n\t\t * 1. Incrementa el valor p + 1\n\t\t * 2. Asigna el valor a p */\n\t\tSystem.out.println(\"\\n\" + (++p));\n\t\t\n\t\t/* p++\n\t\t * Asigna el valor a p, p = p\n\t\t * Incrementa el valor p + 1 */\n\t\tSystem.out.println(p++); // Imprime el mismo valor 5\n\t\tSystem.out.println(p); // Imprime el valor aumentado en 1, 6\n\t\t\n\t\t// Operadores de equidad (Booleanos)\n\t\tint r = 24;\n\t\tint w = 12;\n\t\t\n\t\tSystem.out.println(\"\\n\" + (r == w));\n\t\tSystem.out.println(r != w);\n\t\t\n\t\t// Operadores relacionales\n\t\tSystem.out.println(\"\\nr > w -> \" + (r > w));\n\t\tSystem.out.println(r < w);\n\t\tSystem.out.println(r >= w);\n\t\tSystem.out.println(r <= w);\n\t\t\n\t\t// Operadores lógicos\n\t\tboolean n = false;\n\t\tboolean m = true;\n\t\t\n\t\tSystem.out.println(\"\\nn && m -> \" + (n && m));\n\t\tSystem.out.println(n || m);\n\t\tSystem.out.println(!n);\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public static void main(String[] args) throws SQLException, ClassNotFoundException {\n CtrlUsuarios us = new CtrlUsuarios(); \n //instancia de un objeto Usuario, para almacenar el usuario obtenido\n Usuarios user = null;\n //Para probar el código solo deben mandar a llamar al método correspondiente creado para la funcionalidad\n //En este caso imprimo el resultado obtenido y el código creado es correcto\n user = us.obtenerPorId(Conexion.conectar(),1);\n System.out.println(user.toString());\n \n //de aquí en seguida podemos seguir agragando las demas prubas...\n }", "public Vencimientos() {\n initComponents();\n \n \n }", "public void iniciarRotina() {\n }", "private ControladorVentanaConsola() {\r\n configure();\r\n\r\n if (window == null){\r\n window = new VentanaConsola(\"Console\", 200, 500);\r\n window.setLocation(50, 112);\r\n }\r\n }", "public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public vistaVentas() {\n initComponents();\n URL url = getClass().getResource(\"/imagenes/logoCarisma.jpg\");\n ImageIcon img = new ImageIcon(url);\n setIconImage(img.getImage());\n llenardescuento();\n }", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "public void asetaTeksti(){\n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "public ControladorCoche() {\n\t}", "public PanelMenu(VentanaPrincipal miVP) {\n initComponents();\n this.miVP=miVP;\n jLabel1.setText(\"Hola \"+miVP.getMiUsuario().getnUsuario()+\"!\");\n }", "public VPrincipal() {\n initComponents();\n }", "private void mostrarEmenta (){\n }", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "public void controlInterfazPrincipal() {\n this.interfazPrincipal.setLocationRelativeTo(null);\n this.interfazPrincipal.setResizable(false);\n this.interfazPrincipal.setVisible(true);\n interfazPrincipal.btnClientes().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelClientes);\n });\n interfazPrincipal.btnUsuario().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelUsuarios);\n });\n interfazPrincipal.btnEquipos().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelEquipos);\n });\n\n }", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public contrustor(){\r\n\t}" ]
[ "0.7194403", "0.71053", "0.70628357", "0.6961611", "0.6848651", "0.68455005", "0.678895", "0.67662925", "0.6746492", "0.67376", "0.6725266", "0.6570873", "0.6568984", "0.6563481", "0.65311384", "0.6530914", "0.65165854", "0.64981836", "0.6483029", "0.6482918", "0.6432725", "0.64180726", "0.64001954", "0.6396396", "0.63917553", "0.63690364", "0.6361601", "0.63596696", "0.6356071", "0.63508976", "0.63385594", "0.6336226", "0.63292605", "0.6313436", "0.63121784", "0.62860507", "0.62842923", "0.62815154", "0.62705195", "0.6257249", "0.6240032", "0.6227601", "0.6217198", "0.6216223", "0.62158644", "0.61878484", "0.6186713", "0.6184944", "0.6173632", "0.6159728", "0.6149296", "0.6145426", "0.61420673", "0.6114843", "0.61145186", "0.61145186", "0.6109525", "0.6101949", "0.60967016", "0.6095685", "0.6091271", "0.60903144", "0.6074795", "0.60624593", "0.60624087", "0.60598993", "0.6050021", "0.6041412", "0.6037358", "0.6034812", "0.60344684", "0.60325706", "0.6032066", "0.60287994", "0.6020326", "0.6016035", "0.60115707", "0.6009442", "0.60086864", "0.60082084", "0.60075563", "0.6006722", "0.6006237", "0.5996655", "0.5990867", "0.5990586", "0.598548", "0.59803706", "0.59750026", "0.5972883", "0.5967363", "0.59662956", "0.59656394", "0.5962737", "0.5962234", "0.59581494", "0.59480363", "0.59476477", "0.5944462", "0.59427685" ]
0.6072628
63