query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Creates new form JDialogFecharVenda2
public JDialogCloseSaleNew(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\...
[ "0.6955947", "0.67856383", "0.67487556", "0.673658", "0.6698104", "0.66937727", "0.669027", "0.6680009", "0.6651017", "0.66182625", "0.65973645", "0.65751785", "0.6569449", "0.6536228", "0.6526655", "0.65181834", "0.6505182", "0.64853436", "0.64559615", "0.6452254", "0.643090...
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() { jDialogCards = new javax.swing.JDialog(); jButton10 = new javax.swing.JButton(); jButton11 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jList1 = new javax.swing.JList(ClassSale.allCards().toArray()); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); jButton7 = new javax.swing.JButton(); jButton8 = new javax.swing.JButton(); jButton9 = new javax.swing.JButton(); jButtonPagCartao = new javax.swing.JButton(); jButton12 = new javax.swing.JButton(); jButton50Reais = new javax.swing.JButton(); jButton10Reais = new javax.swing.JButton(); jButton20Reais = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); jButtonFinalizaCalculoPagameto = new javax.swing.JButton(); jButtonLimpaCalculoPagamento = new javax.swing.JButton(); jButtonSairCalculoPagamento = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jTextValueTotalCoupon = new javax.swing.JTextField(); jTextValueDiscontCoupon = new javax.swing.JTextField(); jTextCash = new javax.swing.JTextField(); jTextSmallCash = new javax.swing.JTextField(); jScrollPane2 = new javax.swing.JScrollPane(); jList2 = new javax.swing.JList(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenuItemPaymentCardCredit = new javax.swing.JMenuItem(); jMenuItemDiscount = new javax.swing.JMenuItem(); jMenuIteExactCash = new javax.swing.JMenuItem(); jMenuExit = new javax.swing.JMenuItem(); jDialogCards.addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { jDialogCardsWindowActivated(evt); } public void windowClosed(java.awt.event.WindowEvent evt) { jDialogCardsWindowClosed(evt); } }); jButton10.setText("OK [Enter]"); jButton10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ActionPerformed(evt); } }); jButton11.setText("Cancelar [Esc]"); jButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton11ActionPerformed(evt); } }); jList1.setToolTipText(""); jList1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jList1MouseClicked(evt); } }); jList1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { jList1KeyPressed(evt); } }); jScrollPane1.setViewportView(jList1); javax.swing.GroupLayout jDialogCardsLayout = new javax.swing.GroupLayout(jDialogCards.getContentPane()); jDialogCards.getContentPane().setLayout(jDialogCardsLayout); jDialogCardsLayout.setHorizontalGroup( jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jDialogCardsLayout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(jDialogCardsLayout.createSequentialGroup() .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(5, 5, 5)) ); jDialogCardsLayout.setVerticalGroup( jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogCardsLayout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE) .addGap(5, 5, 5) .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE) .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(5, 5, 5)) ); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowActivated(java.awt.event.WindowEvent evt) { formWindowActivated(evt); } public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pagamento", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton1.setForeground(new java.awt.Color(102, 102, 102)); jButton1.setText("1"); jButton1.setName("1"); // NOI18N jButton1.setPreferredSize(new java.awt.Dimension(75, 23)); jButton1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton1MouseClicked(evt); } }); jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton2.setForeground(new java.awt.Color(102, 102, 102)); jButton2.setText("2"); jButton2.setName("2"); // NOI18N jButton2.setPreferredSize(new java.awt.Dimension(75, 23)); jButton2.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton2jButton1MouseClicked(evt); } }); jButton3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton3.setForeground(new java.awt.Color(102, 102, 102)); jButton3.setText("3"); jButton3.setName("3"); // NOI18N jButton3.setPreferredSize(new java.awt.Dimension(75, 23)); jButton3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton3jButton1MouseClicked(evt); } }); jButton4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton4.setForeground(new java.awt.Color(102, 102, 102)); jButton4.setText("4"); jButton4.setName("4"); // NOI18N jButton4.setPreferredSize(new java.awt.Dimension(75, 23)); jButton4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton4jButton1MouseClicked(evt); } }); jButton5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton5.setForeground(new java.awt.Color(102, 102, 102)); jButton5.setText("5"); jButton5.setName("5"); // NOI18N jButton5.setPreferredSize(new java.awt.Dimension(75, 23)); jButton5.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton5jButton1MouseClicked(evt); } }); jButton6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton6.setForeground(new java.awt.Color(102, 102, 102)); jButton6.setText("6"); jButton6.setName("6"); // NOI18N jButton6.setPreferredSize(new java.awt.Dimension(75, 23)); jButton6.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton6jButton1MouseClicked(evt); } }); jButton7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton7.setForeground(new java.awt.Color(102, 102, 102)); jButton7.setText("7"); jButton7.setName("7"); // NOI18N jButton7.setPreferredSize(new java.awt.Dimension(75, 23)); jButton7.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton7jButton1MouseClicked(evt); } }); jButton8.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton8.setForeground(new java.awt.Color(102, 102, 102)); jButton8.setText("8"); jButton8.setName("8"); // NOI18N jButton8.setPreferredSize(new java.awt.Dimension(75, 23)); jButton8.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton8jButton1MouseClicked(evt); } }); jButton9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton9.setForeground(new java.awt.Color(102, 102, 102)); jButton9.setText("9"); jButton9.setName("9"); // NOI18N jButton9.setPreferredSize(new java.awt.Dimension(75, 23)); jButton9.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton9jButton1MouseClicked(evt); } }); jButton9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton9ActionPerformed(evt); } }); jButtonPagCartao.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButtonPagCartao.setForeground(new java.awt.Color(102, 102, 102)); jButtonPagCartao.setText("Cartão ( F1 )"); jButtonPagCartao.setPreferredSize(new java.awt.Dimension(75, 23)); jButtonPagCartao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonPagCartaoActionPerformed(evt); } }); jButton12.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton12.setForeground(new java.awt.Color(102, 102, 102)); jButton12.setText("0"); jButton12.setName("0"); // NOI18N jButton12.setPreferredSize(new java.awt.Dimension(75, 23)); jButton12.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jButton12jButton1MouseClicked(evt); } }); jButton50Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton50Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton50Reais.setText("50"); jButton50Reais.setName("50.00"); // NOI18N jButton50Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton50Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton50ReaisActionPerformed(evt); } }); jButton10Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton10Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton10Reais.setText("10"); jButton10Reais.setName("10.00"); // NOI18N jButton10Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton10Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ReaisActionPerformed(evt); } }); jButton20Reais.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jButton20Reais.setForeground(new java.awt.Color(102, 102, 102)); jButton20Reais.setText("20"); jButton20Reais.setName("20.00"); // NOI18N jButton20Reais.setPreferredSize(new java.awt.Dimension(75, 23)); jButton20Reais.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton20ReaisActionPerformed(evt); } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton20Reais, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE) .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false) .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jButton20Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Ações", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jPanel3.setLayout(new java.awt.GridLayout(1, 0)); jButtonFinalizaCalculoPagameto.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonFinalizaCalculoPagameto.setForeground(new java.awt.Color(102, 102, 102)); jButtonFinalizaCalculoPagameto.setText("Fim"); jButtonFinalizaCalculoPagameto.setEnabled(false); jButtonFinalizaCalculoPagameto.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonFinalizaCalculoPagameto.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFinalizaCalculoPagametoActionPerformed(evt); } }); jPanel3.add(jButtonFinalizaCalculoPagameto); jButtonLimpaCalculoPagamento.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonLimpaCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102)); jButtonLimpaCalculoPagamento.setText("Limpa"); jButtonLimpaCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonLimpaCalculoPagamento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonLimpaCalculoPagamentoActionPerformed(evt); } }); jPanel3.add(jButtonLimpaCalculoPagamento); jButtonSairCalculoPagamento.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jButtonSairCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102)); jButtonSairCalculoPagamento.setText("Sair(Esc)"); jButtonSairCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18)); jButtonSairCalculoPagamento.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonSairCalculoPagamentoActionPerformed(evt); } }); jPanel3.add(jButtonSairCalculoPagamento); jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jPanel4.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jPanel4MouseClicked(evt); } }); jTextValueTotalCoupon.setEditable(false); jTextValueTotalCoupon.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextValueTotalCoupon.setForeground(new java.awt.Color(102, 102, 102)); jTextValueTotalCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextValueTotalCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Total R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextValueTotalCoupon.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jTextValueTotalCouponMouseClicked(evt); } }); jTextValueTotalCoupon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextValueTotalCouponActionPerformed(evt); } }); jTextValueDiscontCoupon.setEditable(false); jTextValueDiscontCoupon.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextValueDiscontCoupon.setForeground(new java.awt.Color(102, 102, 102)); jTextValueDiscontCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextValueDiscontCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Desconto R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextValueDiscontCoupon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextValueDiscontCouponActionPerformed(evt); } }); jTextValueDiscontCoupon.addFocusListener(new java.awt.event.FocusAdapter() { public void focusLost(java.awt.event.FocusEvent evt) { jTextValueDiscontCouponFocusLost(evt); } }); jTextValueDiscontCoupon.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextValueDiscontCouponKeyReleased(evt); } }); jTextCash.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background")); jTextCash.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextCash.setForeground(new java.awt.Color(102, 102, 102)); jTextCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Pagamento R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jTextCash.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextCashActionPerformed(evt); } }); jTextCash.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { jTextCashKeyReleased(evt); } }); jTextSmallCash.setEditable(false); jTextSmallCash.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N jTextSmallCash.setForeground(new java.awt.Color(102, 102, 102)); jTextSmallCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING); jTextSmallCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Troco R$:", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N jScrollPane2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)); jList2.setBackground(javax.swing.UIManager.getDefaults().getColor("Button.background")); jList2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N jList2.setForeground(new java.awt.Color(102, 102, 102)); jList2.setModel(listModel); jList2.setAutoscrolls(false); jList2.setEnabled(false); jScrollPane2.setViewportView(jList2); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextCash, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jTextSmallCash) .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(11, 11, 11) .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jTextSmallCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jScrollPane2)) .addContainerGap()) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jMenuBar1.setPreferredSize(new java.awt.Dimension(20, 20)); jMenuBar1.setRequestFocusEnabled(false); jMenu1.setForeground(new java.awt.Color(102, 102, 102)); jMenu1.setText("Ações"); jMenuItemPaymentCardCredit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0)); jMenuItemPaymentCardCredit.setText("Pag. Cartão"); jMenuItemPaymentCardCredit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemPaymentCardCreditActionPerformed(evt); } }); jMenu1.add(jMenuItemPaymentCardCredit); jMenuItemDiscount.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0)); jMenuItemDiscount.setText("Desconto"); jMenuItemDiscount.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemDiscountActionPerformed(evt); } }); jMenu1.add(jMenuItemDiscount); jMenuIteExactCash.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, 0)); jMenuIteExactCash.setText("Dinheiro Certo"); jMenuIteExactCash.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuIteExactCashActionPerformed(evt); } }); jMenu1.add(jMenuIteExactCash); jMenuExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0)); jMenuExit.setText("Sair"); jMenuExit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuExitActionPerformed(evt); } }); jMenu1.add(jMenuExit); jMenuBar1.add(jMenu1); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.6945...
0.0
-1
End of variables declaration//GENEND:variables
private void funcaoTotalPedido() { ClassSale.paymentCoupon(codeCoupon); BigDecimal smallCash = PaymentCoupon.getSmallCash(); jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon())); jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP))); //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento())); if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) { valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); jTextCash.setText("0,00"); jTextValueDiscontCoupon.setText("0,00"); jTextCash.requestFocus(true); } else { if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) { if (JOptionPane.showConfirmDialog(this, "Não é permitido troco para pagamento com cartão.\nDeseja emitir um contra vale?", "Mensagem", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) { JOptionPane.showMessageDialog(this, "Emitindo contra vale..."); fechouVenda = true; //BeanConsulta.setVenda_fechada(fechouVenda); this.dispose(); } else { funcaoLimpaPag(); } } else { valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); jButtonFinalizaCalculoPagameto.setEnabled(true); jButtonFinalizaCalculoPagameto.requestFocus(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
cria uma thread pra gravar o seu arquivo
@Override public void run() { try { //AQUI VAI A FUNCÃO A SER EXECUTADA invokeMethod(method); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "public void createThread() {\n }", "void startThread();", "public synchronized void start(){\n if(jogoAtivo) return;\n jogoAtivo = true;\n thread = new Thread(this);\n thread.start();\n }", "NetThread(){}", "public IThread createThread...
[ "0.6898261", "0.67540085", "0.6207001", "0.6195683", "0.61819077", "0.60546166", "0.6047581", "0.60410225", "0.6040991", "0.60385954", "0.60360825", "0.6031043", "0.5994602", "0.59922004", "0.58963656", "0.5889763", "0.5887079", "0.58830994", "0.5854798", "0.58528", "0.583804...
0.0
-1
cria outra thread pra sua tela de espera
@Override public void run() { //cria a tela de espera e mostra ela JDialogLoading jd = new JDialogLoading(null, false); jd.setVisible(true); try { t1.join();//fica esperando a primeira thread acabar } catch (InterruptedException ex) { Logger.getLogger(JFrameSale_1.class.getName()).log(Level.SEVERE, null, ex); } // quando acabar fecha a janela de espera, podes fazer outras coisas aqui jd.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ThreadStart createThreadStart();", "public void createThread() {\n }", "@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(t...
[ "0.7651856", "0.76175076", "0.7090413", "0.6912405", "0.68458796", "0.6818605", "0.6806083", "0.67932916", "0.6629942", "0.66037226", "0.6549594", "0.6514127", "0.65085816", "0.6493986", "0.64769703", "0.64767087", "0.6463867", "0.6418317", "0.6386439", "0.63838255", "0.63528...
0.0
-1
Creates the pages of the multipage editor.
protected void createPages() { createIntroEditor(); createPageMainEditor(); createPageController(); createCssEditor(); createPageTextEditor(); refreshPageMainEditor(); refreshPageControllerEditor(); refreshCssEditor(); setDirty(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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...
[ "0.7241845", "0.7040695", "0.69481117", "0.6822576", "0.68092126", "0.67983156", "0.6763554", "0.6682627", "0.6586342", "0.6517261", "0.6467837", "0.6284505", "0.62662256", "0.62307584", "0.5969357", "0.5962134", "0.58985895", "0.58738446", "0.5802183", "0.574188", "0.5719683...
0.82448536
0
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors. Subclasses may extend.
public void dispose() { ResourcesPlugin.getWorkspace().removeResourceChangeListener(this); super.dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void dispose() {\n\t\tsuper.dispose();\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.setPage(null);\n\t\t\t\tpe.setPropertyChangeListener(null);\n\t\t\t\tpe.setPreferenceStore(null);\n\...
[ "0.6259621", "0.575208", "0.57427764", "0.560224", "0.554152", "0.5485066", "0.52333224", "0.5179598", "0.517174", "0.5101657", "0.5096866", "0.50887215", "0.5081484", "0.4946827", "0.49443975", "0.49431837", "0.49345368", "0.49318612", "0.49288303", "0.4908555", "0.49063483"...
0.0
-1
Saves the multipage editor's document.
public void doSave(IProgressMonitor monitor) { if (activePage == 0 && (introEditor.isUpdated() || introEditor.isDirty())) updateIntroEditor(); if (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty())) updateFile(); if (activePage == 3 && (cssEditor.isUpdated() || cssEditor.isDirty())) updateCssEditor(); getTextEditor().doSave(monitor); if (pageController.isDirty()) pageController.saveErMessages(); if (cssEditor.isDirty()) cssEditor.saveCssVars(); if (koxEditor != null && koxEditor.isDirty()) koxEditor.doSave(monitor); if (moxEditor != null && moxEditor.isDirty()) moxEditor.doSave(monitor); setDirty(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveDocument() throws IOException;", "public void doSaveAs() {\n\t\tif (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty())\n\t\t\tupdateIntroEditor();\n\t\tif (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty()))\n\t\t\tupdateFile();\n\t\tIEditorPart editor =...
[ "0.7236715", "0.7233356", "0.6865159", "0.67617476", "0.67083234", "0.6514789", "0.64592004", "0.64592004", "0.643202", "0.64257276", "0.6408726", "0.6381028", "0.6217142", "0.6212406", "0.6171021", "0.6165891", "0.6152324", "0.61109996", "0.60742736", "0.6040256", "0.6031276...
0.5926595
31
Saves the multipage editor's document as another file. Also updates the text for page 0's tab, and updates this multipage editor's input to correspond to the nested editor's.
public void doSaveAs() { if (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty()) updateIntroEditor(); if (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty())) updateFile(); IEditorPart editor = getTextEditor(); editor.doSaveAs(); setPageText(getTextEditorIndex(), editor.getTitle()); setInput(editor.getEditorInput()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }", "public void save(){\n\tif(currentFile == null){\n\t /...
[ "0.61412466", "0.6115059", "0.6088262", "0.59165436", "0.5875688", "0.578783", "0.5715929", "0.5699074", "0.5652298", "0.5618457", "0.55986315", "0.55373955", "0.55359226", "0.55359226", "0.55131584", "0.5490583", "0.54720694", "0.54623276", "0.5460144", "0.5456105", "0.54320...
0.7549272
0
/ (nonJavadoc) Method declared on IEditorPart
public void gotoMarker(IMarker marker) { setActivePage(getTextEditorIndex()); IDE.gotoMarker(getTextEditor(), marker); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor getEditor() { return editor; }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "public interface ITextEditor extends ISelectionProvider {\r\n\r\n /**\r\n * a constant for Incresing e.g. the font size\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String IN...
[ "0.68893427", "0.682302", "0.68092054", "0.6788858", "0.6707339", "0.66036946", "0.6592822", "0.6561224", "0.6558784", "0.65431404", "0.6484775", "0.64194906", "0.6414691", "0.6372267", "0.63478816", "0.63309115", "0.63156796", "0.62444687", "0.62277", "0.6219752", "0.6214253...
0.0
-1
The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.
public void init(IEditorSite site, IEditorInput editorInput) throws PartInitException { if (!(editorInput instanceof IFileEditorInput)) throw new PartInitException("Invalid Input: Must be IFileEditorInput"); super.init(site, editorInput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doSetInput(IEditorInput input)\n throws CoreException\n {\n // Map external files into workspace (epic-links)\n if (input instanceof ILocationProvider)\n {\n ILocationProvider l = (ILocationProvider)\n input.getAdapter(ILocationProvider.cl...
[ "0.5438525", "0.53175855", "0.51308024", "0.5048297", "0.48819143", "0.48205742", "0.47921488", "0.47859108", "0.4777567", "0.47039652", "0.46727014", "0.466375", "0.4648248", "0.45842487", "0.45547447", "0.4541425", "0.4534391", "0.4528315", "0.45206738", "0.45148712", "0.44...
0.5517978
0
/ (nonJavadoc) Method declared on IEditorPart.
public boolean isSaveAsAllowed() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Editor getEditor() { return editor; }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\r\n\t}", "public interface ITextEditor extends ISelectionProvider {\r\n\r\n /**\r\n * a constant for Incresing e.g. the font size\r\n * \r\n * @author Lukas Balzer\r\n */\r\n String IN...
[ "0.66419345", "0.65480834", "0.6521256", "0.64872974", "0.6467999", "0.64593", "0.6451705", "0.6448595", "0.63442385", "0.6340461", "0.62868905", "0.62504077", "0.62241143", "0.6220505", "0.6207637", "0.61951447", "0.61768496", "0.6158589", "0.61272085", "0.60823166", "0.6079...
0.0
-1
Closes all project files on project close.
public void resourceChanged(final IResourceChangeEvent event) { if (event.getType() == IResourceChangeEvent.POST_CHANGE) { if (event.getDelta() != null) { if (event.getDelta().getKind() == IResourceDelta.CHANGED || event.getDelta().getKind() == IResourceDelta.REMOVED) { Display.getDefault().asyncExec(new Runnable() { public void run() { pageMainEditor.refreshLstClasses(); pageMainEditor.updateBuildPathStatus(getEditor(1)); pageMainEditor.checkCache(); } }); } } } if (event.getType() == IResourceChangeEvent.PRE_CLOSE) { Display.getDefault().asyncExec(new Runnable() { public void run() { IWorkbenchPage[] pages = getSite().getWorkbenchWindow().getPages(); for (int i = 0; i < pages.length; i++) { if (((FileEditorInput) editor.getEditorInput()).getFile().getProject().equals(event.getResource())) { IEditorPart editorPart = pages[i].findEditor(editor.getEditorInput()); pages[i].closeEditor(editorPart, true); } } } }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void closeFiles() {\n try {\n inputFile.close();\n debugFile.close();\n reportFile.close();\n workFile.close();\n stnFile.close();\n } catch(Exception e) {}\n }", "public void doProjectClose() {\r\n\t\tthis.observerList.notifyObservers(GNoti...
[ "0.7334943", "0.7286342", "0.7157992", "0.7091727", "0.67941433", "0.652609", "0.64192003", "0.63577914", "0.634568", "0.6303673", "0.6277123", "0.62126374", "0.61835176", "0.6175454", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.61186165", "0.6118...
0.0
-1
Sets this ID so nested editor is configured for XML source
public String getId() { return ContentTypeIdForXML.ContentTypeID_XML + ".source"; //$NON-NLS-1$; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setElementId(String arg0)\n {\n \n }", "public void setId(String id) {\n this.ide = id;\n //System.out.println(\"linkyhandler setid \" + ide);\n }", "void xsetID(org.apache.xmlbeans.XmlString id);", "private void setupSpalteID() {\r\n\t\t// legt fest, ...
[ "0.62255365", "0.6099267", "0.6021612", "0.5982268", "0.59115905", "0.5901187", "0.58961767", "0.5895503", "0.58911514", "0.588989", "0.58230734", "0.5802581", "0.5734114", "0.57297224", "0.5727281", "0.5715634", "0.56999105", "0.5693904", "0.5686169", "0.56832665", "0.568231...
0.60250634
2
base type: MSNavigatorDoNotTrack flags: 32768 declared in: apis/browserapi/tsd/lib.es6.d.ts:732752
@JsType(isNative=true, namespace=JsPackage.GLOBAL, name="Object") public interface MSNavigatorDoNotTrack { /* Methods */ /** * Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152)) * TE Signature : S(confirmSiteSpecificTrackingException,P(d152)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732792 */ Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args); /** * Std Signature : S(confirmWebWideTrackingException,27,,P(d153)) * TE Signature : S(confirmWebWideTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732891 */ Boolean confirmWebWideTrackingException(ExceptionInformation args); /** * Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153)) * TE Signature : S(removeSiteSpecificTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@732965 */ void removeSiteSpecificTrackingException(ExceptionInformation args); /** * Std Signature : S(removeWebWideTrackingException,289,,P(d153)) * TE Signature : S(removeWebWideTrackingException,P(d153)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733040 */ void removeWebWideTrackingException(ExceptionInformation args); /** * Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154)) * TE Signature : S(storeSiteSpecificTrackingException,P(d154)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733110 */ void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args); /** * Std Signature : S(storeWebWideTrackingException,289,,P(d155)) * TE Signature : S(storeWebWideTrackingException,P(d155)) * */ /** * apis/browser-api/tsd/lib.es6.d.ts@733202 */ void storeWebWideTrackingException(StoreExceptionsInformation args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void m7753b() {\n f8029a = false;\n }", "@Override\n public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {\n return null;\n }", "@Override\n public Set<SessionTrackingMode> getEffectiveSessionTrackingModes() {\n return null;\n }", "static void m7752a() ...
[ "0.5378401", "0.52770215", "0.51715815", "0.5169373", "0.51204574", "0.48876154", "0.4886587", "0.48793775", "0.48584127", "0.4822454", "0.48029062", "0.4768471", "0.47536564", "0.475337", "0.47037005", "0.46880558", "0.46755502", "0.46669096", "0.46584514", "0.4656334", "0.4...
0.7311178
0
/ Methods Std Signature : S(confirmSiteSpecificTrackingException,27,,P(d152)) TE Signature : S(confirmSiteSpecificTrackingException,P(d152))
Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "void removeWebWideTrackingException(ExceptionInformation args);", "void sto...
[ "0.76328", "0.69899076", "0.6868519", "0.6394668", "0.62680364", "0.5725721", "0.55303705", "0.5505755", "0.5358721", "0.5232941", "0.51815796", "0.51235974", "0.511804", "0.5103334", "0.50961274", "0.50119466", "0.5002618", "0.49808025", "0.49565205", "0.490724", "0.48590797...
0.844774
0
Std Signature : S(confirmWebWideTrackingException,27,,P(d153)) TE Signature : S(confirmWebWideTrackingException,P(d153))
Boolean confirmWebWideTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "synchronized public static String traceErrorForWeb(Throwable e) {\n\n S...
[ "0.67118436", "0.66700745", "0.6363684", "0.58435804", "0.5829917", "0.5776557", "0.5776557", "0.57516825", "0.5717889", "0.5717889", "0.5684393", "0.5646505", "0.56451446", "0.56451446", "0.5641875", "0.5641875", "0.5611291", "0.55905837", "0.5585575", "0.5585575", "0.556919...
0.8014084
0
Std Signature : S(removeSiteSpecificTrackingException,289,,P(d153)) TE Signature : S(removeSiteSpecificTrackingException,P(d153))
void removeSiteSpecificTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "Boolean confirmWebWideTrackingException(ExceptionInformat...
[ "0.76784325", "0.6833928", "0.6739401", "0.6301109", "0.6284865", "0.56054825", "0.5542324", "0.5445207", "0.5163027", "0.5134683", "0.5118083", "0.5109128", "0.5103996", "0.50978297", "0.50955164", "0.5067813", "0.50658303", "0.5064791", "0.5050658", "0.50136024", "0.4992254...
0.82653344
0
Std Signature : S(removeWebWideTrackingException,289,,P(d153)) TE Signature : S(removeWebWideTrackingException,P(d153))
void removeWebWideTrackingException(ExceptionInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);", "void storeWebWideTrackingException(StoreExceptionsInformation args);", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "privat...
[ "0.69993496", "0.6776259", "0.6464051", "0.5855401", "0.5855401", "0.5796961", "0.5796961", "0.57768637", "0.5740302", "0.5740302", "0.5724758", "0.57113504", "0.57113504", "0.56865907", "0.56865907", "0.5653746", "0.5653746", "0.5652807", "0.5597971", "0.55895454", "0.558954...
0.8232305
0
Std Signature : S(storeSiteSpecificTrackingException,289,,P(d154)) TE Signature : S(storeSiteSpecificTrackingException,P(d154))
void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void storeWebWideTrackingException(StoreExceptionsInformation args);", "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "Boolean confirmSiteSpecificTrackingException(ConfirmSiteSpecificExceptionsInformation args);", "void removeSiteSpecificTrackingException(ExceptionInformation args);",...
[ "0.7525147", "0.6610849", "0.659676", "0.6436391", "0.63061285", "0.573345", "0.5664249", "0.54198956", "0.53847146", "0.5370291", "0.5332914", "0.53034484", "0.5256583", "0.5219271", "0.5214219", "0.5206959", "0.5164123", "0.5159255", "0.5154143", "0.5145081", "0.51392794", ...
0.772603
0
Std Signature : S(storeWebWideTrackingException,289,,P(d155)) TE Signature : S(storeWebWideTrackingException,P(d155))
void storeWebWideTrackingException(StoreExceptionsInformation args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "void removeWebWideTrackingException(ExceptionInformation args);", "void storeSiteSpecificTrackingException(StoreSiteSpecificExceptionsInformation args);", "synchronized public static String traceErrorForWeb(Throwable e) {\n\n StringBuf...
[ "0.706374", "0.6867333", "0.63847363", "0.5667935", "0.56139296", "0.5578101", "0.5565547", "0.555003", "0.5518666", "0.55133224", "0.551265", "0.5494318", "0.5459788", "0.5452991", "0.5436819", "0.5436819", "0.5436669", "0.5401196", "0.538958", "0.53876007", "0.5360936", "...
0.7356559
0
Creates node metadata using period and strike.
public static GenericVolatilitySurfacePeriodParameterMetadata of( Period period, Strike strike) { String label = Pair.of(period, strike.getLabel()).toString(); return new GenericVolatilitySurfacePeriodParameterMetadata(period, strike, label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Element createBaseTemporalNode(Node relOpNode, XmlProcessor hqmfXmlProcessor) {\n\n\t\tNamedNodeMap attribMap = relOpNode.getAttributes();\n\t\tElement temporallyRelatedInfoNode = hqmfXmlProcessor.getOriginalDoc()\n\t\t\t\t.createElement(\"temporallyRelatedInformation\");\n\t\ttemporallyRelatedInfoNode.set...
[ "0.54564255", "0.5433199", "0.52579343", "0.5162612", "0.5066154", "0.5040265", "0.50076866", "0.4961291", "0.49522364", "0.48838326", "0.48326343", "0.48027578", "0.47747296", "0.477165", "0.47680223", "0.47578034", "0.47238442", "0.47183162", "0.47139043", "0.47107577", "0....
0.48014402
12
Creates node using period, strike and label.
public static GenericVolatilitySurfacePeriodParameterMetadata of( Period period, Strike strike, String label) { return new GenericVolatilitySurfacePeriodParameterMetadata(period, strike, label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addDotNode(DotNode dt) {\n dotNodes.add(dt);\n }", "public void createCustomNode() {\n final PNode n = new PNode() {\n /**\n * \n */\n private static final long serialVersionUID = 1L;\n\n public void paint(final PPaintContext aP...
[ "0.5850648", "0.58249176", "0.5811102", "0.57800186", "0.54905254", "0.5490521", "0.54663354", "0.5465441", "0.5446369", "0.53902245", "0.53897756", "0.53816754", "0.536302", "0.5337786", "0.5316432", "0.5307689", "0.52827674", "0.5255176", "0.5227898", "0.52185076", "0.52097...
0.0
-1
Gets the period of the surface node. This is the period to expiry that the node on the surface is defined as. There is not necessarily a direct relationship with a date from an underlying instrument.
public Period getPeriod() { return period; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getPeriod();", "public org.hl7.fhir.Period getPeriod()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Period target = null;\n target = (org.hl7.fhir.Period)get_store().find_element_user(PERIOD$2, 0);\n if (target == null)\...
[ "0.63866985", "0.6308739", "0.6281406", "0.6281406", "0.6281406", "0.6281406", "0.62716484", "0.6243861", "0.622081", "0.6170681", "0.61387616", "0.6127275", "0.6094292", "0.6090366", "0.60859126", "0.591276", "0.59009963", "0.5894925", "0.5879301", "0.5774673", "0.5767295", ...
0.59525657
15
Gets the strike of the surface node. This is the strike that the node on the surface is defined as.
public Strike getStrike() { return strike; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int getStrike() {\n\t\treturn 0;\r\n\t}", "public boolean getStrikeout() {\n\t\treturn this.strikeout;\n\t}", "IfcCompositeCurve getSpineCurve();", "public boolean getStrikeout()\n {\n return font.isStruckout();\n }", "@Override\n\t\tpublic double getAvgStrike() {\n\t\t\t...
[ "0.70595914", "0.6598411", "0.5916295", "0.58983177", "0.58302075", "0.57675856", "0.5758622", "0.5709879", "0.5654423", "0.5554628", "0.55452126", "0.5514276", "0.5471001", "0.5445969", "0.5409153", "0.53915524", "0.538266", "0.53126085", "0.5301262", "0.52662176", "0.523736...
0.7952445
0
Gets the label that describes the node.
@Override public String getLabel() { return label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNodeLabel ();", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get().getText();\n }", "public String getLabel() {\n return _label == null ? name() : _label;\n }",...
[ "0.81727475", "0.81420135", "0.8004183", "0.78756845", "0.785059", "0.7801004", "0.77928543", "0.7768803", "0.7768311", "0.7768311", "0.7768311", "0.7760357", "0.7760357", "0.7757545", "0.7757545", "0.7757545", "0.7752084", "0.7746733", "0.7728071", "0.7695204", "0.7695119", ...
0.7065037
84
Use WordsReplace.newBuilder() to construct.
private WordsReplace(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void replaceOneWord(String from, String to) {\n Collections.replaceAll(wordsLinkedList, from, to);\n }", "@Override\n\tpublic void replaceWord(String s) {\n\t\tfinder.replace(s);\n\t}", "public String replaceWords(List<String> dict, String sentence) {\n TrieNode root = bu...
[ "0.5757101", "0.5747235", "0.54810023", "0.5405783", "0.5385159", "0.537559", "0.535074", "0.5323547", "0.5249008", "0.51471", "0.514698", "0.511891", "0.5081926", "0.50342506", "0.5022895", "0.50019735", "0.49926865", "0.49804714", "0.49515676", "0.49359623", "0.49122775", ...
0.8127624
0
The second method dp [i] [j] that the first i pieces of goods can fill the capacity of j backpack. In the case of the first case, the dp [i] [J] = dp [i1] [j A [j]], but this condition requires j A [j]> 0. Take two cases inside the larger value as dp [i] [j].+
public int backpack(int m , int []array){ if(m ==0 || array == null || array.length == 0){ return 0; } int n = array.length; int [][] fillpack = new int[n+1][m+1]; for( int i=0;i<=n;i++){ fillpack[i][0] = 1; // one way to not to selecct any item } for(int j=0;j<=n;j++){ fillpack[0][j] = 0; // with o items we can fill up } fillpack[0][0] = 1; for ( int i=1;i<=n;i++){ // all items for (int j=1;j<=m;j++) // all size of backpack if(array[i-1]<=j){ // if we can fill backup with i-1 elementts fillpack[i][j] = fillpack[i-1][j] | fillpack[i-1][j-array[i-1]]; } else{ fillpack[i][j] = fillpack[i-1][j]; } } for(int i=m;i>=0;i--){ if(fillpack[n][i] == 1){ // mmax amout we can fill return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers...
[ "0.693935", "0.67657965", "0.64821845", "0.613769", "0.61069", "0.6104213", "0.60090226", "0.5987277", "0.5981698", "0.58664995", "0.58373785", "0.5801762", "0.57742274", "0.57737064", "0.5765083", "0.57595974", "0.5701496", "0.5693168", "0.56875426", "0.5672296", "0.56466293...
0.5250029
44
Adds the expected reading to all devices.
public void addExpectedReadingToAllDevices() throws SmartPvException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addReading(Reading newReading) {\n\t\tint i = 0;\n\t\t\n\t\twhile (_readings[i] != null) {\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t_readings[i] = newReading;\n\t}", "public void addReading(Reading r) {\n readingList.add(r);\n }", "public void read() {\n\t\tthis.isRead = true;\n\t}", "public void ...
[ "0.63019943", "0.6194218", "0.5758252", "0.5728684", "0.5658342", "0.55472416", "0.53976464", "0.539387", "0.5328455", "0.53077495", "0.5239977", "0.5208776", "0.5200852", "0.5172592", "0.5135476", "0.5115057", "0.5113083", "0.5102123", "0.5050124", "0.5035064", "0.503497", ...
0.83670473
0
TODO Autogenerated method stub
@Override public void run() { if(Thread.currentThread().isDaemon()){ System.out.println("daemon thread work"); } else { System.out.println("user thread work"); } }
{ "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 getExr...
[ "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.608016...
0.0
-1
Created by mike0 on 12/5/2017.
public interface DetailsPresenter { void init(); void getEvents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Overri...
[ "0.5921149", "0.5876898", "0.58129096", "0.5691649", "0.5631061", "0.5618027", "0.56112546", "0.55843925", "0.55843925", "0.5544087", "0.55311596", "0.55102533", "0.55054104", "0.5499883", "0.54915506", "0.54716736", "0.54614854", "0.5456991", "0.5456839", "0.5447762", "0.539...
0.0
-1
retrieves bugs from database
public List<Bug> fetchAllBugs() { List<Bug> bugs = (List<Bug>) bugRespository.findAll(); if(bugs.isEmpty()){ throw new NotFoundException(Constant.NO_BUGS); }else{ return bugs; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Bug> getAllBugsByProject(int projectId);", "@GetMapping\n\tpublic ResponseEntity<List<Bug>> getAllBugs () {\n\n\t\tHttpStatus status = HttpStatus.OK;\n\t\tHttpHeaders httpHeaders = new HttpHeaders();\n\t\thttpHeaders.setContentType(MediaType.APPLICATION_JSON);\n\t\t\n\t\tList<Bug> providerDetails = bugServi...
[ "0.6877148", "0.63195586", "0.6216345", "0.605009", "0.58003044", "0.5786973", "0.57462704", "0.5737467", "0.56559956", "0.56397635", "0.55253917", "0.5398804", "0.5397104", "0.5347801", "0.5320471", "0.5306543", "0.5305292", "0.52964544", "0.5236103", "0.52138585", "0.521141...
0.75965756
0
Inserts a bug into database
public void createBug(Bug bug) { bugRespository.save(bug); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert() throws SQLException;", "org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);", "@Insert//(onConflict = OnConflictStrategy.IGNORE)\n void insert(Issue issue);", "public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = C...
[ "0.6543285", "0.6386681", "0.6367328", "0.63418573", "0.6262101", "0.61997664", "0.6092603", "0.607368", "0.5982441", "0.59630114", "0.5939225", "0.59122765", "0.5907765", "0.5907386", "0.58845335", "0.58682436", "0.58649325", "0.58577657", "0.58158195", "0.57926273", "0.5792...
0.730514
0
Updates a bug in database.
public void updateBugDetails(Bug updatedBug) { Optional<Bug> existingBug = Optional.ofNullable(bugRespository.findOne(updatedBug.getBugId())); if(existingBug.isPresent()) { Bug bug = existingBug.get(); BeanUtils.copyProperties(updatedBug, bug, BeanUtil.getIgnoredPropertyNames(updatedBug)); bugRespository.save(bug); }else{ throw new NotFoundException("Bug to be updated not found with id:" + updatedBug.getBugId()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n @DataSet(\"BugBeforeUpdateDataSet.xml\")\r\n @ExpectedDataSet(\"BugAfterUpdateDataSet.xml\")\r\n public void testUpdateBug() throws Exception {\n Bug result = (Bug)entityManager.find(Bug.class, BugTestUtils.getDefaultIdentity());\r\n\r\n // Set simple properties\r\n result.s...
[ "0.7045333", "0.6554427", "0.633439", "0.6249589", "0.61700773", "0.59703296", "0.58508736", "0.58157223", "0.56731445", "0.5590472", "0.55903155", "0.55823547", "0.5559826", "0.5555099", "0.55299157", "0.5523284", "0.54873276", "0.5434173", "0.5427029", "0.5417753", "0.53960...
0.62090313
4
TODO Does this crap even need to be here?
public void getDevices(final Subscriber<List<Device>> devicesSubscriber) { if (smartThingsService==null) { devicesSubscriber.onError(new Throwable("Please login to SmartThings before trying to get devices")); return; } Observable.combineLatest(smartThingsService.getSwitchesObservable(), smartThingsService.getLocksObservable(), new Func2<List<Device>, List<Device>, List<Device>>() { @Override public List<Device> call(List<Device> switches, List<Device> locks) { List<Device> devices = new ArrayList<>(); devices.addAll(switches); devices.addAll(locks); return devices; } }).doOnError(new Action1<Throwable>() { @Override public void call(Throwable throwable) { devicesSubscriber.onError(throwable); } }).doOnCompleted(new Action0() { @Override public void call() { // } }).subscribe(new Action1<List<Device>>() { @Override public void call(List<Device> devices) { devicesSubscriber.onNext(devices); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "private stendhal() {\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void perish() {\n \n }", "private void strin() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}",...
[ "0.5683711", "0.5642525", "0.5581114", "0.5480957", "0.544404", "0.5432457", "0.53859615", "0.53256226", "0.53094393", "0.5301536", "0.5269928", "0.5240946", "0.52403295", "0.5207676", "0.51824874", "0.51435345", "0.5142219", "0.5133556", "0.5103018", "0.50912917", "0.5086142...
0.0
-1
TODO phrase was successful
@Override public void success(Object o, Response response) { Log.d(TAG, "Phrase: " + phrase + " was executed"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void process(String s)//check if the phrase guess equals the actual phrase\n {\n String phraseGuess = s.toUpperCase();\n String phraseUp = phrase.toUpperCase();\n //comparing guess and actual\n if (phraseGuess.equals(phraseUp))\n {\n System.out.println(\"You Guessed correctly!\");\n ...
[ "0.659394", "0.6491914", "0.6484938", "0.6408288", "0.633758", "0.63010556", "0.6209421", "0.60593826", "0.5987435", "0.5941014", "0.5885373", "0.5846718", "0.5834259", "0.58047026", "0.5784847", "0.5778968", "0.57751894", "0.57727784", "0.5741605", "0.5702141", "0.5688164", ...
0.70996916
0
TODO phrase was not successful
@Override public void failure(RetrofitError error) { Log.d(TAG, String.valueOf(error)); WearSocket.getInstance().sendMessage(Values.MESSAGE_PATH, "Error: " + phrase + " didn't work"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}", "@Test\n public void testPhrase() {\n assertQ(req(\"q\",\"text:now-cow\", \"indent\",\"true\")\n ,\"//*[@numFound='1']\"\n );\n // should generate a query of (now OR cow) and match both docs\n assertQ(req(...
[ "0.6667965", "0.66552764", "0.6628858", "0.6556502", "0.6485168", "0.64203656", "0.6357364", "0.6329103", "0.62890387", "0.6083328", "0.6000949", "0.5999782", "0.5988895", "0.59172994", "0.5881068", "0.5866819", "0.5831224", "0.58128166", "0.5806798", "0.57923853", "0.5780123...
0.0
-1
TODO Autogenerated method stub
@Override public Category getCategoryById(String id) { Session session = sessionFactory.openSession(); session.beginTransaction(); int catId = Integer.parseInt(id); Query query = session.getNamedQuery(Category.GET); query.setInteger("id", catId); Category category = (Category) query.uniqueResult(); session.getTransaction().commit(); session.close(); return category; }
{ "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 getExr...
[ "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.608016...
0.0
-1
This method is needed to add the necessary values when drawing the threshold graphs TODO: Refactor this away as soon as possible.
private void addThreshold(AbstractThreshold threshold, HashMap<StatusCategory, Number> tholds) { if (threshold instanceof ProjectComplianceThreshold) { tholds.put(StatusCategory.ProjectCompliance, ((ProjectComplianceThreshold) threshold).value); } else if (threshold instanceof FileComplianceThreshold) { tholds.put(StatusCategory.FileCompliance, ((FileComplianceThreshold) threshold).value); } else { tholds.put(StatusCategory.Messages, ((MessageComplianceThreshold) threshold).value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\ti...
[ "0.6521635", "0.6019187", "0.60070306", "0.5969623", "0.59208995", "0.581077", "0.57336044", "0.57099485", "0.5682734", "0.5677832", "0.5656968", "0.56069475", "0.55565816", "0.5552601", "0.55276674", "0.5510931", "0.54805636", "0.5464538", "0.5450206", "0.5436101", "0.543464...
0.5522771
15
COPY only last generated reports
private void copyReportsFromWorkspaceToArtifactsDir(AbstractBuild<?, ?> build, BuildListener listener) throws IOException, InterruptedException { FilePath buildWorkspace = build.getWorkspace(); if (buildWorkspace == null) { throw new IOException("Invalid workspace"); } List<FilePath> workspaceFiles = buildWorkspace.list(); if (workspaceFiles.isEmpty()) { return; } Collections.sort(workspaceFiles, new Comparator<FilePath>() { @Override public int compare(FilePath o1, FilePath o2) { try { return Long.compare(o2.lastModified(), o1.lastModified()); } catch (IOException | InterruptedException e) { return 0; } } }); Map<String, String> artifacts = new HashMap<>(); for (FilePath file : workspaceFiles) { if (file.lastModified() < build.getTimeInMillis()) { break; } if (containsReportName(file.getName())) { artifacts.put(file.getName(), file.getName()); } } if (artifacts.isEmpty()) { return; } BuildListenerAdapter adapter = new BuildListenerAdapter(listener); Launcher launcher = buildWorkspace.createLauncher(adapter); ArtifactManager artifactManager = build.pickArtifactManager(); artifactManager.archive(buildWorkspace, launcher, adapter, artifacts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "WorkoutBatch copy();", "private void main_flow_manual_export(String dateFrom, String dateTo) throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n// ...
[ "0.5658122", "0.55011207", "0.54534066", "0.53732413", "0.5188274", "0.5044314", "0.49801946", "0.49756545", "0.4922297", "0.4888186", "0.4860808", "0.48323014", "0.48114327", "0.47912872", "0.47740313", "0.4771206", "0.47657487", "0.47562623", "0.47523093", "0.4746526", "0.4...
0.5165758
5
Prebuild for the plugin. We use this one to clean up old report files.
@Override public boolean prebuild(AbstractBuild<?, ?> build, BuildListener listener) { boolean success = false; FilePath workspace = build.getWorkspace(); if (workspace == null) { listener.getLogger() .println("Invalid workspace. Cannot continue."); return false; } DeleteReportsFromWorkspace deleter = new DeleteReportsFromWorkspace(); try { success = workspace.act(deleter); } catch (IOException | InterruptedException ex) { log.log(SEVERE, "Cleanup crew missing!", ex); listener.getLogger() .println(ex.getMessage()); } if (!success) { listener.getLogger() .println("Failed to cleanup workspace reports."); build.setResult(FAILURE); } return success; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something ch...
[ "0.5655768", "0.5642145", "0.5411558", "0.532552", "0.5301317", "0.5301317", "0.52842915", "0.5261373", "0.520394", "0.5144979", "0.5141167", "0.5105776", "0.51024544", "0.50785285", "0.50310063", "0.5029717", "0.4993199", "0.4979309", "0.4972847", "0.4971101", "0.4951461", ...
0.607069
0
Fetches the most 'previous' result. The current build is baseline. So any prior build to the passed current build is considered.
private Pair<PRQAReading, AbstractBuild<?, ?>> getPreviousReading(AbstractBuild<?, ?> currentBuild, Result expectedResult) { AbstractBuild<?, ?> iterate = currentBuild; do { iterate = iterate.getPreviousNotFailedBuild(); if (iterate != null && iterate.getAction(PRQABuildAction.class) != null && Objects.equals( iterate.getResult(), expectedResult)) { AbstractBuild<?, ?> second = iterate; Pair<PRQAReading, AbstractBuild<?, ?>> result = Pair.of(iterate.getAction(PRQABuildAction.class).getResult(), second); return result; } } while (iterate != null); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}", "public E previousStep() {\r\n\t\tthis.current = this.values[Math.max(this.current.ordinal() - 1, 0)];\r\n\t\treturn this.current;\r\n...
[ "0.6640118", "0.62776554", "0.6187114", "0.61026347", "0.5955089", "0.5923526", "0.58922905", "0.5879332", "0.58277565", "0.58253336", "0.5811151", "0.5790431", "0.5730423", "0.5703266", "0.5702406", "0.56840116", "0.5680208", "0.5674025", "0.5656299", "0.5610881", "0.5583722...
0.7339721
0
Function to pull details from QAV Configuration.
private QAVerifyServerSettings setQaVerifyServerSettings(String configurationByName) { QAVerifyServerConfiguration qaVerifyServerConfiguration = PRQAGlobalConfig.get() .getConfigurationByName( configurationByName); if (qaVerifyServerConfiguration != null) { return new QAVerifyServerSettings(qaVerifyServerConfiguration.getHostName(), qaVerifyServerConfiguration.getViewerPortNumber(), qaVerifyServerConfiguration.getProtocol(), qaVerifyServerConfiguration.getPassword(), qaVerifyServerConfiguration.getUserName()); } return new QAVerifyServerSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GetConfigDetails() {\n\t\tCursor c = database.rawQuery(\"select * from config\", null);\r\n\t\tif (c != null) {\r\n\t\t\tif (c.moveToFirst()) {\r\n\t\t\t\tdo {\r\n\r\n\t\t\t\t\tmuUid = c.getString(c.getColumnIndex(\"id\"));\r\n\t\t\t\t\tmuUsername = c.getString(c.getColumnIndex(\"username\"));\r\n\t\t...
[ "0.6657441", "0.62545943", "0.6097186", "0.5916513", "0.5722753", "0.5545347", "0.5494034", "0.5489301", "0.54876965", "0.5487327", "0.54702383", "0.54387546", "0.54182523", "0.54058695", "0.54044217", "0.5402803", "0.53942984", "0.538761", "0.5371021", "0.5365298", "0.532575...
0.0
-1
/ TODO in Master Salve Setup copy artifacts method do not work and throw exception. This method need to be expanded or suggest user to use Copy Artifact Plugin.
private void copyArtifacts(AbstractBuild<?, ?> build, QaFrameworkReportSettings qaReportSettings, BuildListener listener) { try { copyReportsToArtifactsDir(qaReportSettings, build, listener); if (qaReportSettings.isPublishToQAV() && qaReportSettings.isLoginToQAV()) { copyResourcesToArtifactsDir("*.log", build, listener); } } catch (IOException | InterruptedException ex) { log.log(SEVERE, "Failed copying build artifacts from slave to server - Use Copy Artifact Plugin", ex); outStream.println("Auto Copy of Build Artifacts to artifact dir on Master Failed"); outStream.println("Manually add Build Artifacts to artifact dir or use Copy Artifact Plugin "); outStream.println(ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute() throws MojoExecutionException, MojoFailureException {\n\n File target = new File(getDistfolder());\n\n // only create the target directoty when it doesn't exist\n // no deletion\n if (!target.exists()) {\n target.mkdir();\n } else {\n g...
[ "0.658796", "0.6457684", "0.62696683", "0.617558", "0.60025144", "0.59148407", "0.5860555", "0.5825232", "0.5733565", "0.5727371", "0.57220894", "0.56224936", "0.5620781", "0.55807453", "0.5572841", "0.556974", "0.5568245", "0.5567604", "0.55652225", "0.5553587", "0.55113435"...
0.6107338
4
TODO Autogenerated method stub
public SalerCustomer getSalerCustomer(int uid) { return this.salerCustomerMapper.getSalerCustomer(uid); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
public void createSalerCustomer(SalerCustomer salerCustomer) { this.salerCustomerMapper.createSalerCustomer(salerCustomer); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomer(SalerCustomer salerCustomer) { this.salerCustomerMapper.updateSalerCustomer(salerCustomer); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomerByForbidden(int uid) { this.salerCustomerMapper.updateSalerCustomerByForbidden(uid); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
public void updateSalerCustomerByDel(int uid) { this.salerCustomerMapper.updateSalerCustomerByDel(uid); }
{ "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 getExr...
[ "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.608016...
0.0
-1
TODO Autogenerated method stub
public void deleteSalerCustomer(int uid) { this.salerCustomerMapper.deleteSalerCustomer(uid); }
{ "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 getExr...
[ "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.608016...
0.0
-1
Retrieves stored folder by locally unique identifier
public Folder get(long id) { return super.get(Folder.class, id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFolderId();", "IStorageService subFolder(String path);", "String folderPath();", "@Override\r\n public Folder getFolderById(long id) {\n Optional <Folder> optional = folderRepository.findById(id);\r\n Folder folder = null;\r\n \r\n if(optional.isPresent()){\r...
[ "0.70391816", "0.6701688", "0.6354408", "0.63349617", "0.61439323", "0.60870355", "0.5992807", "0.59676653", "0.5937796", "0.5931794", "0.58808756", "0.58563435", "0.58498913", "0.581531", "0.5774857", "0.57646084", "0.5756732", "0.5718849", "0.57151914", "0.5709675", "0.5683...
0.6271947
4
Attempt to retrieve a local folder that references a remote folder.
public Folder getRemote(String remoteFolderId, String remoteOwnerEmail) { CriteriaQuery<Folder> query = getBuilder().createQuery(Folder.class); Root<Folder> from = query.from(Folder.class); query.where( getBuilder().equal(from.get("type"), FolderType.REMOTE), getBuilder().equal(from.get("description"), remoteFolderId), getBuilder().equal(from.get("ownerEmail"), remoteOwnerEmail) ); return currentSession().createQuery(query).uniqueResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void downloadingFolder(String remoteFolder);", "void folderDownloaded(String remoteFolder);", "public String getRemoteFolder(String remoteDir, String localDir, Boolean zipResult) throws GRIDAClientException {\n\n try {\n Communication communication = getCommunication();\n communica...
[ "0.69891393", "0.6705057", "0.6467512", "0.6432654", "0.6237192", "0.622466", "0.60464644", "0.59550714", "0.5952907", "0.59467775", "0.5912071", "0.5869442", "0.5642914", "0.5607874", "0.55863833", "0.5540095", "0.54149216", "0.5410726", "0.5291221", "0.52909005", "0.5267234...
0.67846996
1
Removes, from the list of entries in the specified folder, those whose ids match the ids passed in the parameter
public Folder removeFolderEntries(Folder folder, List<Long> entries) { try { folder = currentSession().get(Folder.class, folder.getId()); folder.getContents().removeIf(entry -> entries.contains(entry.getId())); folder.setModificationTime(new Date()); currentSession().update(folder); return folder; } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(String ids);", "public void deleteAllBookMarksOfFolder (long folderId) throws BookMarkException;", "public abstract void delete(Iterable<Long> ids);", "public void deleteMulti(String ids);", "@Override\n\tpublic void remove(List<Long> ids) throws ApplicationException {\n\n\t}", "@Overr...
[ "0.61366576", "0.6029293", "0.5959214", "0.5835029", "0.5754369", "0.5673455", "0.5586253", "0.5579397", "0.55666304", "0.55666304", "0.55320317", "0.5515686", "0.5510417", "0.5462521", "0.5452232", "0.5434459", "0.5421117", "0.540256", "0.5396964", "0.53925365", "0.5388565",...
0.6710236
0
Retrieves the count of the number of contents in the folder. Currently, it is assumed that the contents of folders are only entries. The entries that are counted are those that have a visibility of "OK"
public Long getFolderSize(long id, String filter, boolean visibleOnly) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); List<Predicate> predicates = getPredicates(entry, filter); if (visibleOnly) { predicates.add(entry.get("visibility").in(Arrays.asList(Visibility.OK.getValue(), Visibility.REMOTE.getValue()))); } predicates.add(getBuilder().equal(from.get("id"), id)); query.select(getBuilder().countDistinct(entry.get("id"))); query.where(predicates.toArray(new Predicate[0])); return currentSession().createQuery(query).uniqueResult(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getNumberOfFiles() {\n\t\tIterator<FileSystemItem> it = this.content.iterator();\n\t\tint numberOfFiles = 0;\n\t\t\n\t\twhile (it.hasNext()) {\n\t\t\tif(it.next().isDirectory() == false) {\n\t\t\t\tnumberOfFiles++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn numberOfFiles;\n\t}", "int getContentsCo...
[ "0.70711184", "0.70182973", "0.6828141", "0.6828141", "0.6699118", "0.66578966", "0.6611687", "0.6594894", "0.6375187", "0.6277507", "0.62546873", "0.6253942", "0.62489027", "0.61285985", "0.61265373", "0.6107047", "0.6091024", "0.6084672", "0.60705817", "0.6068664", "0.60678...
0.5971647
35
Retrieves the ids of any entries that are contained in the specified folder; optionally filtered by entry type
public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); ArrayList<Predicate> predicates = new ArrayList<>(); predicates.add(getBuilder().equal(from.get("id"), folderId)); if (visibleOnly) { predicates.add(getBuilder().equal(entry.get("visibility"), Visibility.OK.getValue())); } if (type != null) { predicates.add(getBuilder().equal(entry.get("recordType"), type.getName())); } query.select(entry.get("id")).where(predicates.toArray(new Predicate[0])); return currentSession().createQuery(query).list(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Long> getEntryIds(Folder folder) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n query.select(entry.get(\"id\")).wher...
[ "0.74250925", "0.60035884", "0.58461905", "0.58078885", "0.56576353", "0.5550256", "0.5347074", "0.5323807", "0.52422893", "0.5166877", "0.5150677", "0.50918454", "0.5090082", "0.508666", "0.50663966", "0.50088084", "0.49656937", "0.4926195", "0.49052668", "0.489733", "0.4895...
0.7378357
1
Retrieves list of entries that conforms to the parameters
public List<Long> retrieveFolderContents(long folderId, PageParameters pageParameters, boolean visibleOnly) { try { String sortString; switch (pageParameters.getSortField()) { default: case CREATED: sortString = "id"; break; case STATUS: sortString = "status"; break; case NAME: sortString = "name"; break; case PART_ID: sortString = "partNumber"; break; case TYPE: sortString = "recordType"; break; } CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); List<Predicate> predicates = getPredicates(entry, pageParameters.getFilter()); predicates.add(getBuilder().equal(from.get("id"), folderId)); if (visibleOnly) { predicates.add(entry.get("visibility").in(Arrays.asList(Visibility.OK.getValue(), Visibility.REMOTE.getValue()))); } query.select(entry.get("id")).where(predicates.toArray(new Predicate[0])); query.orderBy(pageParameters.isAscending() ? getBuilder().asc(entry.get(sortString)) : getBuilder().desc(entry.get(sortString))); return currentSession().createQuery(query).setFirstResult(pageParameters.getOffset()) .setMaxResults(pageParameters.getLimit()).list(); } catch (Exception he) { Logger.error(he); throw new DAOException(he); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<V> getAllEntries();", "public java.util.List<DataEntry> findAll();", "CommandContainerEntryListType getEntryList();", "List getValues();", "@Override\n public Set<Map.Entry<String,Pacote>> entrySet() {\n \n //resultado\n Set<Map.Entry<String,Pacote>> r = new HashSet<>();\...
[ "0.64309233", "0.60947233", "0.6000265", "0.5975531", "0.5963127", "0.59626645", "0.59537613", "0.5927832", "0.5906704", "0.5866668", "0.5854483", "0.58467734", "0.5841496", "0.5791133", "0.5779576", "0.5754927", "0.57453275", "0.5732092", "0.5716771", "0.5666987", "0.5664051...
0.0
-1
Retrieves folders that the specified account owns, or has write privileges on based on the permissions
public List<Folder> getCanEditFolders(Account account, Set<Group> accountGroups) { try { CriteriaQuery<Folder> query = getBuilder().createQuery(Folder.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Permission> permission = from.join("permissions", JoinType.LEFT); // where ((account = account or group in groups) and canWrite)) or is owner Predicate permissionPredicate = getBuilder().and( getBuilder().or( getBuilder().equal(permission.get("account"), account), permission.get("group").in(accountGroups) ), getBuilder().equal(permission.get("canWrite"), true), getBuilder().notEqual(from.get("type"), FolderType.SAMPLE) ); // non sample folders that user owns Predicate folderPredicate = getBuilder().and( getBuilder().equal(getBuilder().lower(from.get("ownerEmail")), account.getEmail().toLowerCase()), getBuilder().notEqual(from.get("type"), FolderType.REMOTE), getBuilder().notEqual(from.get("type"), FolderType.SAMPLE) ); query.where(getBuilder().or(permissionPredicate, folderPredicate)).distinct(true); return currentSession().createQuery(query).list(); } catch (Exception e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getUserPermissions(String login) throws IOException;", "public String getFolders()\r\n\t{\r\n\t\tIrUser user = userService.getUser(userId, false);\r\n\t\tif( !item.getOwner().equals(user) && !user.hasRole(IrRole.ADMIN_ROLE) && \r\n\t\t\t\t!institutionalCollectionPermissionHelper.isInstitution...
[ "0.5881872", "0.57752043", "0.5673755", "0.5609461", "0.54487395", "0.5341615", "0.53338104", "0.53025115", "0.5296128", "0.529296", "0.52720153", "0.5267741", "0.52404445", "0.5231442", "0.5133249", "0.5122725", "0.5101295", "0.5084244", "0.5079722", "0.50628084", "0.5061426...
0.6996708
0
Retrieve the list of ids of entries contained in a folder. Using this method is much faster (especially for larger number of entries in a folder) that iterating through all the entries of a folder
public List<Long> getEntryIds(Folder folder) { try { CriteriaQuery<Long> query = getBuilder().createQuery(Long.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); query.select(entry.get("id")).where(getBuilder().equal(from, folder)); return currentSession().createQuery(query).list(); } catch (Exception e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Long> getFolderContentIds(long folderId, EntryType type, boolean visibleOnly) {\n try {\n CriteriaQuery<Long> query = getBuilder().createQuery(Long.class);\n Root<Folder> from = query.from(Folder.class);\n Join<Folder, Entry> entry = from.join(\"contents\");\n\n ...
[ "0.70264643", "0.6546806", "0.6371183", "0.62741596", "0.6169287", "0.61210454", "0.6114523", "0.610529", "0.6058018", "0.60471594", "0.60198957", "0.59467614", "0.59207094", "0.58902234", "0.5785592", "0.57346237", "0.5728969", "0.57232", "0.57028425", "0.5683624", "0.564309...
0.8402768
0
Retrieves distinct list of types for the entries contained in the folder
public List<String> getContentTypes(long folderId) { try { CriteriaQuery<String> query = getBuilder().createQuery(String.class); Root<Folder> from = query.from(Folder.class); Join<Folder, Entry> entry = from.join("contents"); query.select(entry.get("recordType")).distinct(true); query.where(getBuilder().equal(from.get("id"), folderId)); return currentSession().createQuery(query).list(); } catch (HibernateException e) { Logger.error(e); throw new DAOException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getDistinctMimeType() {\r\n\t\treturn wcDao.getDistinctMimeType();\r\n\t}", "String[] getFileTypes();", "public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }", "List<Type> getAllTypeList();", "public List<SecTyp> getAllTypes();", "public JSONObject getSubTypes(C...
[ "0.6549398", "0.65060675", "0.6505823", "0.637623", "0.6261711", "0.61607456", "0.61330414", "0.60699874", "0.60149455", "0.59828216", "0.5970558", "0.59668136", "0.59497726", "0.59431064", "0.5911016", "0.5877527", "0.58151144", "0.5809051", "0.5776973", "0.5773415", "0.5768...
0.7011126
0
Returns the value of the 'Spine Curve' reference. If the meaning of the 'Spine Curve' reference isn't clear, there really should be more of a description here...
IfcCompositeCurve getSpineCurve();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurve() {\r\n return curve;\r\n }", "public int getCurrentSpinePos() {\n return currentSpinePos;\n }", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "public Strike getStrike() {\n return strike;\n }", ...
[ "0.61820734", "0.5811831", "0.5730998", "0.57292104", "0.55977523", "0.55074084", "0.5493759", "0.5384452", "0.53552884", "0.53157306", "0.5310215", "0.5288621", "0.52764994", "0.52228487", "0.5209166", "0.5200578", "0.5185771", "0.51616704", "0.51603836", "0.5125502", "0.510...
0.709963
0
Ensure that we can decode some JSON and create a credential.
@Test public void fromJson() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(options); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testExcludeCredentials() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject firstAttestationObject = authenticator.makeCredential(makeCre...
[ "0.6018513", "0.5843365", "0.5617766", "0.56176686", "0.5540164", "0.5523254", "0.5473635", "0.52904004", "0.5224816", "0.52152103", "0.52103895", "0.5169865", "0.50958633", "0.508715", "0.5081863", "0.50616056", "0.5047323", "0.50401884", "0.5039568", "0.5032162", "0.5030493...
0.7627631
0
Go through the whole dance of creating a new credential and generating an assertion from the credential. Ensure that the signature is valid.
@Test public void makeCredentialAndGetAssertionWithAllowCredential() throws VirgilException, WebAuthnException, CborException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); byte[] cborEncoded = attObj.asCBOR(); ByteArrayInputStream bais = new ByteArrayInputStream(cborEncoded); Map decoded = (Map) new CborDecoder(bais).decode().get(0); String fmt = ((UnicodeString) decoded.get(new UnicodeString("fmt"))).getString(); assertEquals(fmt, "none"); byte[] credentialId = attObj.getCredentialId(); // Now let's see if we can generate an assertion based on the returned credential ID AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON); //getAssertionOptions.allowCredentialDescriptorList.clear(); getAssertionOptions.allowCredentialDescriptorList.add(new PublicKeyCredentialDescriptor("public-key", credentialId, null)); AuthenticatorGetAssertionResult getAssertionResult = authenticator.getAssertion(getAssertionOptions, new CredentialSelector() { @Override public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) { return credentialList.get(0); } }); ByteBuffer resultBuf = ByteBuffer.allocate(getAssertionOptions.clientDataHash.length + getAssertionResult.authenticatorData.length); resultBuf.put(getAssertionResult.authenticatorData); resultBuf.put(getAssertionOptions.clientDataHash); byte[] signedData = resultBuf.array(); List<PublicKeyCredentialSource> sources = this.credentialSafe.getKeysForEntity(makeCredentialOptions.rpEntity.id); PublicKeyCredentialSource source = sources.get(sources.size() - 1); KeyPair keyPair = this.credentialSafe.getKeyPairByAlias(source.keyPairAlias); assertTrue(this.cryptography.verifySignature(keyPair.getPublic(), signedData, getAssertionResult.signature)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException {\n AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n makeCredentialOptions.requireUserVerification = true;\...
[ "0.595775", "0.5916541", "0.586539", "0.5748416", "0.5645981", "0.53964794", "0.5356536", "0.5309008", "0.5288845", "0.5239798", "0.521929", "0.5198514", "0.51945233", "0.5187104", "0.5132271", "0.50715894", "0.5069126", "0.5065101", "0.5040517", "0.5016087", "0.5005499", "...
0.71538
0
Ensure that we fail to create a credential if user verification is requested, but we didn't initialize the Authenticator with biometric auth set to true.
@Test public void testFailureOnVerificationRequiredWithoutSupport() throws WebAuthnException, VirgilException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); makeCredentialOptions.requireUserVerification = true; makeCredentialOptions.requireUserPresence = false; try { AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); Assert.fail("makeCredential should have failed without biometric support"); } catch (ConstraintError e) { // success! any other exception is a failure } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void authenticateTestFailure2() {\n DatabaseTest.setupDevice();\n Device device = new Device(DatabaseTest.DEVICE_ID, \"other_token\");\n assertFalse(device.authenticate());\n DatabaseTest.cleanDatabase();\n }", "@Test\n public void testExcludeCredentials() thro...
[ "0.5942525", "0.5859982", "0.5840442", "0.58073145", "0.5717947", "0.5711746", "0.57056683", "0.55719435", "0.55430025", "0.5540836", "0.5510265", "0.547636", "0.5445034", "0.543959", "0.5417495", "0.5354921", "0.5345121", "0.5304909", "0.52851176", "0.5281387", "0.5276959", ...
0.75881326
0
Ensure that the "exclude credentials" functionality keeps us from creating a new credential when an excluded credential is known.
@Test public void testExcludeCredentials() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject firstAttestationObject = authenticator.makeCredential(makeCredentialOptions); // Now we want to pull out the ID of the just-created credential, add it to the exclude list, // and ensure that we see a failure when creating a second credential. makeCredentialOptions.excludeCredentialDescriptorList.add(new PublicKeyCredentialDescriptor("public-key", firstAttestationObject.getCredentialId(), null)); try { AttestationObject secondAttestationObject = authenticator.makeCredential(makeCredentialOptions); Assert.fail("makeCredential should have failed due to a matching credential ID in the exclude list"); } catch (InvalidStateError e) { // good! the matching credential descriptor caused the authenticator to reject the request } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean exclude(V1Secret secret);", "@Override\r\n\tpublic boolean needsCredentials() {\n\t\treturn false;\r\n\t}", "@Override\npublic boolean isCredentialsNonExpired() {\n\treturn false;\n}", "@Override\n public boolean isCredentialsNonExpired() {\n return false;\n }", "@Override\n public ...
[ "0.6426336", "0.583285", "0.54910314", "0.5371195", "0.5371195", "0.5371195", "0.5336838", "0.52769685", "0.5273922", "0.5264221", "0.5246806", "0.52447563", "0.5235028", "0.523081", "0.52200776", "0.5211205", "0.5183199", "0.51736426", "0.51736426", "0.51653594", "0.51653594...
0.78628343
0
Make sure that we can pass an empty allowed credentials list.
@Test public void testAllowCredentialsEmpty() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions makeCredentialOptions = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(makeCredentialOptions); AuthenticatorGetAssertionOptions getAssertionOptions = AuthenticatorGetAssertionOptions.fromJSON(GET_ASSERTION_JSON); getAssertionOptions.allowCredentialDescriptorList.clear(); authenticator.getAssertion(getAssertionOptions, new CredentialSelector() { @Override public PublicKeyCredentialSource selectFrom(List<PublicKeyCredentialSource> credentialList) { return credentialList.get(0); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Admin> validateCred(String username, String password) {\n\t\treturn null;\n\t}", "@Test(expectedExceptions = IllegalArgumentException.class)\n public void testListSecretsNoOptions() throws Throwable {\n // construct the service\n constructClientService();\n\n serv...
[ "0.6155494", "0.6153064", "0.6053792", "0.6005627", "0.5962393", "0.59457034", "0.58521724", "0.5722862", "0.5676697", "0.56125265", "0.5565877", "0.5563146", "0.5558504", "0.55503297", "0.55384624", "0.55353945", "0.5461691", "0.53927755", "0.5383008", "0.53617746", "0.53290...
0.68223125
0
We do nothing after sending the data, just be happy
@Override public void completed(Integer result, String attachment) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(Object data) {\n\t\t//do nothing - override to do something\n\t}", "public void send() {\n\t}", "void sendData() throws IOException\n\t{\n\t}", "public void sendRemainData();", "protected final boolean send(final Object data) {\n\t\t// enviamos los datos\n\t\treturn this.send(data, null);\...
[ "0.74416757", "0.7245976", "0.7184702", "0.70602673", "0.69401574", "0.6861564", "0.68455917", "0.68411213", "0.6802043", "0.67894834", "0.6779625", "0.6776751", "0.6749528", "0.6737719", "0.67366076", "0.6684448", "0.66817164", "0.6679756", "0.66665167", "0.66397256", "0.663...
0.0
-1
We do nothing with the read data, just smile to the person next tu us
@Override public void completed(Integer result, String attachment) { log.info("Successful read!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n...
[ "0.5819444", "0.5536669", "0.5516014", "0.5491533", "0.5484433", "0.5479393", "0.54191625", "0.53368264", "0.53344303", "0.53288126", "0.5296532", "0.5277041", "0.5272901", "0.52588964", "0.5252766", "0.5240854", "0.5237513", "0.523113", "0.5202307", "0.5201428", "0.51807284"...
0.0
-1
ISimpleDateFormat adjustSDFTZ(ISimpleDateFormat sdf, String tz);
ISimpleDateFormat createSDF(String format, String lang, String country, String tz);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLocalTimeZone(DateFormat df) {\n \n }", "private synchronized void initializeTimeZoneFormat(final boolean bForceUpdate) {\n\t\tif (bForceUpdate || tzFormat == null) {\n\t\t\ttzFormat = TimeZoneFormat.getInstance(locale);\n\n\t\t\tString digits = null;\n\t\t\tif (numberForm...
[ "0.57140446", "0.5567535", "0.5458987", "0.52224404", "0.5130011", "0.51218563", "0.50483984", "0.4997565", "0.4988597", "0.49778304", "0.49358797", "0.49106726", "0.4879166", "0.487044", "0.4864493", "0.47923383", "0.47885254", "0.47556457", "0.47294578", "0.4705799", "0.470...
0.6475592
0
TODO Autogenerated method stub
public static void main(String[] args) { int a, b, c; Scanner S1 = new Scanner(System.in); System.out.println("Enter the value of A:"); a = S1.nextInt(); System.out.println("Enter the value of B:"); b = S1.nextInt(); System.out.println("Enter the value of c:"); c = S1.nextInt(); if (a > b && a > c) { System.out.println("A is greater."); } else if (b > a && b > c) { System.out.println("B is greater:"); } else { System.out.println("C is greater."); } }
{ "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 getExr...
[ "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.608016...
0.0
-1
Initialize this behaviour component, binding class behaviour.
public void init() { this.onContentPropertyUpdate = new JavaBehaviour(this, "onContentPropertyUpdate", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.beforeDeleteNode = new JavaBehaviour(this, "beforeDeleteNode", Behaviour.NotificationFrequency.FIRST_EVENT); this.onMoveNode = new JavaBehaviour(this, "onMoveNode", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.onAddAspect = new JavaBehaviour(this, "onAddAspect", Behaviour.NotificationFrequency.TRANSACTION_COMMIT); this.policyComponent.bindClassBehaviour( ContentServicePolicies.OnContentPropertyUpdatePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "content"), this.onContentPropertyUpdate); this.policyComponent.bindClassBehaviour( NodeServicePolicies.BeforeDeleteNodePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject"), this.beforeDeleteNode); this.policyComponent.bindClassBehaviour( NodeServicePolicies.OnMoveNodePolicy.QNAME, QName.createQName( NamespaceService.CONTENT_MODEL_1_0_URI, "cmobject"), this.onMoveNode); this.policyComponent.bindClassBehaviour( NodeServicePolicies.OnAddAspectPolicy.QNAME, FolderQuotaConstants.ASPECT_FQ_QUOTA, this.onAddAspect); //set up transaction listener to run code after transaction this.transactionListener = new FolderSizeTransactionListener(); logger.info("[FolderQuota] - Bound FolderQuotaBehaviour"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "public void init()\n {\n policyComponent.bindClassBehaviour(NodeServicePolicies.OnUpdatePropertiesPolicy.QNAME,\n WebSiteModel.TYPE_WEB_SITE, new JavaBehaviour(this, \"onUpdate...
[ "0.6560591", "0.6560591", "0.6498756", "0.6487901", "0.6269344", "0.6229981", "0.6087703", "0.607612", "0.6069175", "0.6046107", "0.60458535", "0.60410565", "0.6033309", "0.6009467", "0.5999834", "0.59964305", "0.59889585", "0.5976972", "0.59694624", "0.5967238", "0.5941303",...
0.0
-1
ContentPropertyUpdate fails on actual updates. When an update (upload new version) comes through, the parent node quota check fails.
public void onContentPropertyUpdate(final NodeRef nodeRef, QName propertyQName, final ContentData beforeValue, final ContentData afterValue) { //if the change size will push the folder over quota, roll back the current transaction final UserTransaction tx = serviceRegistry.getTransactionService().getUserTransaction(); AuthenticationUtil.runAsSystem(new RunAsWork<Object>() { @Override public Object doWork() throws Exception { logger.debug("[FolderQuota] - onContentPropertyUpdate"); long change = 0; //beforeValue can be null on new item creation if(beforeValue == null) change = afterValue.getSize(); else change = afterValue.getSize() - beforeValue.getSize(); NodeRef quotaParent = usage.getParentFolderWithQuota(nodeRef); if(change > 0) { if(quotaParent != null) { NodeService nodeService = serviceRegistry.getNodeService(); Long quotaSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_QUOTA); Long currentSize = (Long) nodeService.getProperty(quotaParent, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT); //quotaSize can be null if the aspect has been added but the quota has not yet been set if(quotaSize != null) { if(currentSize + change > quotaSize) { try { tx.rollback(); } catch(SystemException ex) { logger.warn(String.format("[FolderQuota] - An upload to folder %s failed due to quota", quotaParent)); } } else { //queue.enqueueEvent(quotaParent, change); updateSize(quotaParent, change); logger.debug(String.format("[FolderQuota] - Added nodeRef %s to the queue; size change %s", nodeRef, change)); } } else { logger.warn(String.format("[FolderQuota] - Folder %s has the quota aspect added but no quota set", quotaParent)); } } } return null; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean canUpdate()\n {\n return cacheable.getParentNode() != null && cacheable.getPropertyBoolean(PROPERTY_DIRTY);\n }", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsS...
[ "0.5610679", "0.55800796", "0.53529984", "0.5261109", "0.51708317", "0.51386636", "0.5058435", "0.50116", "0.4999462", "0.49720082", "0.49690825", "0.49462077", "0.4910151", "0.49073768", "0.4893423", "0.4871029", "0.4867176", "0.48641935", "0.4864053", "0.48517987", "0.48511...
0.65781325
0
Handles updating the various folder sizes when a node is moved. Old folder gets its size decremented, new one gets incremented (only if quotas are applied).
public void onMoveNode(ChildAssociationRef before, ChildAssociationRef after) { logger.debug("[FolderQuota] - onMoveNode"); NodeRef quotaParentBefore = usage.getParentFolderWithQuota(before.getParentRef()); NodeRef quotaParentAfter = usage.getParentFolderWithQuota(after.getParentRef()); long change = 0L; //only calculate the change size once, if either the before or after parent have a quota. if(quotaParentBefore != null || quotaParentAfter != null) { change = usage.getChangeSize(before.getChildRef()); } if(quotaParentBefore != null) { //queue.enqueueEvent(quotaParentBefore, change * -1); updateSize(quotaParentBefore, change * -1); logger.debug(String.format("[FolderQuota] - Node %s moved from a quota folder, added to the queue; size %s", quotaParentBefore, change * -1)); } if(quotaParentAfter != null) { //queue.enqueueEvent(quotaParentAfter, change); updateSize(quotaParentAfter, change); logger.debug(String.format("[FolderQuota] - Node %s moved to a quota folder, added to the queue; size %s", quotaParentBefore, change)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateSize() {\n setMeAndMyParentsAsDirty();\n }", "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTran...
[ "0.63455915", "0.6331331", "0.6309591", "0.62930495", "0.61523443", "0.6149189", "0.61231667", "0.6091547", "0.58058023", "0.57322407", "0.57189256", "0.57060975", "0.5582808", "0.5561512", "0.55607325", "0.5525001", "0.55084723", "0.5499414", "0.53192896", "0.53126323", "0.5...
0.66805696
0
Called before the node is deleted, decrements the parent quota folder size
public void beforeDeleteNode(NodeRef deleted) { logger.debug("[FolderQuota] - beforeDeleteNode"); NodeRef quotaParent = usage.getParentFolderWithQuota(deleted); if(quotaParent != null) { Long size = usage.getChangeSize(deleted); updateSize(quotaParent, size * -1); //queue.enqueueEvent(quotaParent, size * -1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onMoveNode(ChildAssociationRef before, ChildAssociationRef after) {\n logger.debug(\"[FolderQuota] - onMoveNode\");\n NodeRef quotaParentBefore = usage.getParentFolderWithQuota(before.getParentRef());\n NodeRef quotaParentAfter = usage.getParentFolderWithQuota(after.getParentRef())...
[ "0.62425804", "0.5891308", "0.5891308", "0.586558", "0.5827022", "0.5820895", "0.56989515", "0.56869876", "0.56869876", "0.56847566", "0.5575857", "0.5517549", "0.55126923", "0.55126846", "0.5488836", "0.54764545", "0.5467664", "0.5443145", "0.5423588", "0.5418202", "0.541024...
0.7100568
0
When the folder quota aspect is added, should we go ahead and calculate current usage? I think so, but this could be an expensive operation.
public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName) { logger.debug("[FolderQuota] - onAddAspect"); //check the aspect and calculate the usage if configured to do so if (serviceRegistry.getNodeService().hasAspect(nodeRef, FolderQuotaConstants.ASPECT_FQ_QUOTA) && updateOnAddAspect) { Long size = usage.calculateFolderSize(nodeRef); updateSize(nodeRef, size); //queue.enqueueEvent(nodeRef, size); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Quota.Counts computeQuotaUsage4CurrentDirectory(Quota.Counts counts) {\r\n counts.add(Quota.NAMESPACE, 1);\r\n return counts; \r\n }", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "int getQuotaMetricsCount();", "public void run()\n {\n ...
[ "0.66835386", "0.65893024", "0.6450467", "0.5973509", "0.59110856", "0.58744323", "0.57999593", "0.57970977", "0.57845056", "0.57109207", "0.56577486", "0.56546", "0.5652589", "0.5628054", "0.56182283", "0.56145173", "0.5581908", "0.55795085", "0.5556127", "0.5554553", "0.554...
0.6064051
3
Sets the update queue. This queue receives notifications that a folder's size has changed and by what amount. The events that are pushed onto the queue are then processed by a scheduled job that incrementally updates the folder size
public void setFolderQuotaUpdateQueue(FolderQuotaUpdateQueue queue) { this.queue = queue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long...
[ "0.6317872", "0.6196343", "0.57652247", "0.5608452", "0.55968225", "0.556732", "0.54937387", "0.54356086", "0.5400373", "0.53578717", "0.5268364", "0.5257533", "0.52394044", "0.5226206", "0.52245885", "0.52194643", "0.5207639", "0.52018094", "0.5189358", "0.51826924", "0.5141...
0.709365
0
The folder usage calculator is used to calculate the initial size of a folder when the "quota" aspect is added.
public void setFolderUsageCalculator(FolderUsageCalculator usage) { this.usage = usage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run()\n {\n \tAuthenticationUtil.runAs(new RunAsWork<String>()\n \t{\n \t\tpublic String doWork() throws Exception\n \t\t{\n \t\t\tRetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>()\n \t\t\t{\n \t\t\t\tpublic Long...
[ "0.6396282", "0.6229638", "0.6131152", "0.6007567", "0.5780042", "0.5775353", "0.570056", "0.5680387", "0.5635247", "0.5635247", "0.55432034", "0.5534387", "0.55341035", "0.5530752", "0.55171585", "0.5504063", "0.5468513", "0.5459951", "0.5457673", "0.5436457", "0.5412694", ...
0.69170755
0
Should the folder usage be automatically updated when the quota aspect is added?
public void setUpdateUsageOnAddAspect(boolean updateOnAddAspect) { this.updateOnAddAspect = updateOnAddAspect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Quota.Counts computeQuotaUsage4CurrentDirectory(Quota.Counts counts) {\r\n counts.add(Quota.NAMESPACE, 1);\r\n return counts; \r\n }", "@Override\n public abstract float calculaQuota(float quotaBase) throws ExcepcioClub;", "int getQuotaMetricsCount();", "public void run()\n {\n ...
[ "0.6564596", "0.6465397", "0.63929313", "0.6197697", "0.60489386", "0.5953908", "0.5879785", "0.5859076", "0.5771334", "0.5726326", "0.57105553", "0.56791395", "0.5675623", "0.56712216", "0.56349015", "0.5608381", "0.55907315", "0.55870503", "0.5577213", "0.55698526", "0.5564...
0.0
-1
Should the job queue be used (along with a scheduled job), or should the transaction listener and thread be used instead?
public void setUseJobQueue(boolean useJobQueue) { this.useJobQueue = useJobQueue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface QueueManager {\n /**\n * Method to enqueue a Job inside a transaction.\n * <b> Note that we want to enqueue all tasks within a transaction. So even when this\n * method does not consume Objectify Transaciton directly, it is required to ensure that it was\n * called inside a transaction.\n...
[ "0.6145402", "0.6088626", "0.6083686", "0.59478706", "0.5938379", "0.5873491", "0.5856215", "0.5832326", "0.5790816", "0.5702037", "0.56874305", "0.56828666", "0.5653077", "0.5649086", "0.56108737", "0.56047916", "0.5602311", "0.5557017", "0.5511031", "0.5496988", "0.5492428"...
0.5852745
7
Sets the thread pool executor, this is built by org.alfresco.util.ThreadPoolExecutorFactoryBean, see Spring config for details
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) { this.threadPoolExecutor = threadPoolExecutor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \...
[ "0.65447044", "0.6443947", "0.63533604", "0.6328348", "0.62540686", "0.61309636", "0.61217326", "0.59380674", "0.59090257", "0.58965915", "0.58322644", "0.58065593", "0.57125044", "0.5641045", "0.55627996", "0.5538113", "0.5495962", "0.5487572", "0.5476924", "0.54389566", "0....
0.7556735
0
Increments the read count on the node
public void run() { AuthenticationUtil.runAs(new RunAsWork<String>() { public String doWork() throws Exception { RetryingTransactionCallback<Long> callback = new RetryingTransactionCallback<Long>() { public Long execute() throws Throwable { Long currentSize = (Long) serviceRegistry.getNodeService().getProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT); if (currentSize == null) { currentSize=0L; } Long newSize = currentSize + sizeChange; serviceRegistry.getNodeService().setProperty(quotaFolder, FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize); logger.debug(String.format("Property %s set to %s",FolderQuotaConstants.PROP_FQ_SIZE_CURRENT, newSize)); return newSize; } }; try { RetryingTransactionHelper txnHelper = serviceRegistry.getTransactionService().getRetryingTransactionHelper(); Long newSize = txnHelper.doInTransaction(callback, false, true); if (logger.isDebugEnabled()) { logger.debug( "Incremented folder size on quota folder node: \n" + " Node: " + quotaFolder + "\n" + " New Size: " + newSize); } } catch (InvalidNodeRefException e) { if (logger.isDebugEnabled()) { logger.debug("Unable to update folder size on quota folder node: " + quotaFolder); } } catch (Throwable e) { if (logger.isDebugEnabled()) { logger.debug(e); } logger.error("Failed to update folder size on quota folder node: " + quotaFolder); } return ""; } }, AuthenticationUtil.getSystemUserName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrHedgedReadOps() {\n hedgedReadOps.inc();\n }", "void incrementLinesRead();", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "public final void incNodeCount() {\n nodeCount++;\n if (depth > maxDepth) {\n maxDepth = depth;\n }\n ...
[ "0.69405115", "0.66799974", "0.6619006", "0.647825", "0.63735604", "0.63143414", "0.6308353", "0.62866026", "0.62624824", "0.62553114", "0.6228407", "0.6222949", "0.6220039", "0.6200607", "0.6194414", "0.6193846", "0.6191321", "0.6164122", "0.61306685", "0.6117141", "0.609439...
0.0
-1
En este metodo se crea una instancia de o para pasarlo a String De esta forma se separa los strings con split y se crea un hilo Runnable
@Override public void update(Observable observable, Object o) { if(o instanceof String){ String m = (String)o; String[] partes = m.split(":"); if(m.contains("num") && partes.length == 2){ final int value = Integer.parseInt(partes[1]); runOnUiThread(new Runnable() { @Override public void run() { numberOfRects.setText(""+value); } }); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void m2251c(String str) {\n if (this.f1831d == null || !this.f1831d.isAlive()) {\n this.f1831d = new Thread(new Oa(this, str));\n this.f1831d.start();\n }\n }", "Task1(String c){\n\t\n}", "public interface CommandParser {\n String[] splitStringInto...
[ "0.5615274", "0.5326744", "0.52884686", "0.52839845", "0.52305883", "0.51486564", "0.50917846", "0.5041867", "0.502805", "0.5017037", "0.5006482", "0.4998517", "0.49796823", "0.4973234", "0.4958135", "0.49469885", "0.49433458", "0.4919947", "0.49002823", "0.48926887", "0.4871...
0.0
-1
The constructor for the ray tracer. Currently, the only client of this class is VolumeRenderer.
public RayCastColorMIP (ModelImage kImage, int iRBound, int[] aiRImage) { super(kImage, iRBound, aiRImage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.3...
[ "0.77307385", "0.7149889", "0.70936435", "0.70936435", "0.6642516", "0.6400224", "0.6141719", "0.6121709", "0.6099924", "0.60366607", "0.60300475", "0.6026968", "0.59497464", "0.5905856", "0.58123994", "0.5787121", "0.5787121", "0.5758808", "0.5756933", "0.56944233", "0.56873...
0.0
-1
Return indication as to whether or not the particular renderer uses normal vectors as part of its implementation.
public boolean usesNormals() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean isOmitNorms();", "boolean isAlwaysvectorfont();", "boolean hasNormal();", "@java.lang.Override\n public boolean hasNormal() {\n return normal_ != null;\n }", "boolean getNormal();", "public boolean isNormal()\n {\n return Native.fpaIsNumeralNormal(getContext().nCtx(), getNati...
[ "0.65667796", "0.6550887", "0.62894386", "0.62079805", "0.60499537", "0.6038092", "0.60296303", "0.59169936", "0.5909858", "0.59082985", "0.57869506", "0.5765789", "0.5717202", "0.5711623", "0.56736517", "0.56573856", "0.56517106", "0.56485486", "0.56187993", "0.55951804", "0...
0.69051015
0
Specify the input volume to use for rendering. The image data stored in order of slice indices, each slice stored in rowmajor order. That is, slice z=0 is stored first, slice z=1 is stored next, and so on. In slice z=0, the y=0 row is stored first, the y=1 row is stored next, and so on.
public void setInput(byte[] acImageR, byte[] acImageG, byte[] acImageB, byte[] acImageA) { super.setInput(acImageR, acImageG, acImageB, acImageA); // Reset the intensity image which corresponds to the RGB channels // so that it can be recomputed. m_acImageI = null; // Input color values are scaled by alpha values representing opacity. for (int i = 0; i < acImageA.length; i++) { m_acImageR[i] = (byte) ( ( (int) (m_acImageR[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); m_acImageG[i] = (byte) ( ( (int) (m_acImageG[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); m_acImageB[i] = (byte) ( ( (int) (m_acImageB[i] & 0x0ff)) * ( (int) (m_acImageA[i] & 0x0ff)) / 255); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double volume()\n\t{\n\t\t\n\t\treturn width*height*depth;\n\t\t\n\t}", "public double volume() {\n\t\treturn this.iWidth * this.iLength * this.iDepth\r\n\t}", "double volume() {\n\treturn width*height*depth;\n}", "void setFluidContents(int volume);", "@Override\n public void display(GLAutoDrawable draw...
[ "0.54474366", "0.54019016", "0.54005027", "0.5296449", "0.528823", "0.5275405", "0.526604", "0.5265452", "0.52059644", "0.5196536", "0.51343304", "0.5126698", "0.50657517", "0.50403243", "0.5020477", "0.50155425", "0.4981499", "0.49377626", "0.49365044", "0.49263337", "0.4917...
0.0
-1
Specify the lookup table to use for mapping input RGB colors to intensity.
public void setInputMap(RendererMapColor kMap) { super.setInputMap(kMap); // Reset the intensity image which corresponds to the RGB channels // so that it can be recomputed. m_acImageI = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected float[] getRgbLut() {\n if ( lut_ == null ) {\n String loc = LUT_BASE + resourceName_;\n logger_.config( \"Reading lookup table at \" + loc );\n URL url = Shaders.class.getResource( loc );\n try {\n if ( url == null...
[ "0.6262775", "0.6237288", "0.60926455", "0.60423565", "0.588397", "0.58393663", "0.57602155", "0.5601114", "0.55112255", "0.5394303", "0.53302896", "0.52504075", "0.5248919", "0.52261955", "0.52007675", "0.5180238", "0.5175748", "0.51512104", "0.51049364", "0.5104406", "0.510...
0.5400909
9
Called at the beginning of the trace methods
protected void traceInit() { super.traceInit(); // If the intensity volume is not defined, create it now by // using the map to convert RGB color values to intensity values. if (null == m_acImageI) { m_acImageI = new byte[m_acImageR.length]; for (int i = 0; i < m_acImageI.length; i++) { m_acImageI[i] = (byte) (m_kMap.mapValue( (float) (m_acImageR[i] & 0x0ff), (float) (m_acImageG[i] & 0x0ff), (float) (m_acImageB[i] & 0x0ff))); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized void started(ITrace trace) {\n\t\t//\n\t}", "@Override\n public void onStart(Trace parent) throws Throwable\n {\n \n }", "public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tstack.setCurrentPhase(TracePhase.MAI...
[ "0.7531705", "0.7119003", "0.6961173", "0.68614984", "0.6785147", "0.6737714", "0.6672834", "0.65473485", "0.65281737", "0.6497345", "0.6460586", "0.64333594", "0.6431436", "0.63868326", "0.63729936", "0.63719445", "0.63433224", "0.63307756", "0.62521535", "0.6250223", "0.623...
0.5933701
48
Process a ray that has intersected the oriented bounding box of the 3D image. The method is only called if there is a line segment of intersection. The 'intersectsBox' stores the end points of the line segment in the class members m_kP0 and m_kP1 in image coordinates.
protected synchronized void processRay (int iIndex, int rayTraceStepSize) { // Compute the number of steps to use given the step size of the ray. // The number of steps is proportional to the length of the line segment. m_kPDiff.sub(m_kP1, m_kP0); float fLength = m_kPDiff.length(); int iSteps = (int)(1.0f/rayTraceStepSize * fLength); // find the maximum value along the ray if ( iSteps > 1 ) { int iMaxIntensityColor = getBackgroundColor().getRGB(); float fMax = -1.0f; boolean bHitModel = false; float fTStep = 1.0f/iSteps; for (int i = 1; i < iSteps; i++) { m_kP.scaleAdd(i*fTStep, m_kPDiff, m_kP0); if (interpolate(m_kP, m_acImageA) > 0) { bHitModel = true; float fValue = interpolate(m_kP, m_acImageI); if (fValue > fMax) { fMax = fValue; iMaxIntensityColor = interpolateColor(m_kP); } } } if (bHitModel) { m_aiRImage[iIndex] = iMaxIntensityColor; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean\n doIntersection(Ray inOutRay) {\n double t, min_t = Double.MAX_VALUE;\n double x2 = size.x/2; // OJO: Esto deberia venir precalculado\n double y2 = size.y/2; // OJO: Esto deberia venir precalculado\n double z2 = size.z/2; // OJO: Esto deberia venir precalculado\n ...
[ "0.61535114", "0.59105396", "0.5873958", "0.5837618", "0.5689116", "0.56687057", "0.56199336", "0.55844027", "0.54643005", "0.54573035", "0.5429127", "0.5368927", "0.5367979", "0.52495295", "0.5213116", "0.5190833", "0.5168273", "0.5167379", "0.51490724", "0.51471335", "0.512...
0.4704874
57
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { /* TODO output your page here. You may use following sample code. */ out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<title>Home</title>"); out.println("<meta charset=\"UTF-8\">"); out.println("<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">"); out.println("<link rel=\"stylesheet\" href=\"css/style.css\">"); out.println("</head>"); out.println("<body>"); out.println("<h1>Genesis</h1>"); out.println("<div class=\"wrapper2\">"); out.println("<div class=\"container\">"); out.println("<h1>Genesis</h1>"); out.println("<form class=\"form\" style=\" left: 0px;\">"); out.println("<input type=button onClick=\"location.href='Login'\" value=\"User Login\">"); out.println("<input type=button onClick=\"location.href='LiveSupport'\" value=\"Live Support\">"); out.println("<input type=button onClick=\"location.href='Contacts'\" value=\"Contacts\">"); out.println("<input type=button onClick=\"location.href='Help'\" value=\"Help\">"); out.println("<input type=button onClick=\"location.href='About'\" value=\"About\">"); out.println("</form>"); out.println("</div>");//Container End out.println("<ul class=\"bg-bubbles\">"); for(int i = 0;i <= 5;i++){ out.println("<li></li>"); } out.println("</ul>"); out.println("</div>");//Wrapper End out.println("<script src='js/jquery.min.js'></script>");//Effect Script out.println("</body>"); out.println("</html>"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
TODO Autogenerated method stub super.validate();
@Override public void validate() { if (this.password.length() < 2) { addFieldError("password", "too short"); } System.out.println("**************Validation"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void validate() {\n\t}", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "@Override\n\tpublic void validate() {\n\t\tsuper.validate();\n\t}", "@Override\n\tpublic void validate() {\n\t}", "@Override\r\n public void val...
[ "0.9068746", "0.90544945", "0.89914936", "0.89556867", "0.8861696", "0.88608116", "0.8816851", "0.8734666", "0.8734666", "0.85945666", "0.8581206", "0.8403786", "0.8403786", "0.83428025", "0.8017782", "0.80128634", "0.79758537", "0.7925201", "0.7925201", "0.7914536", "0.78632...
0.0
-1
Font font = new Font("helvitica", Font.BOLD, 24);
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { //Get the selected index. (The index param isn't //always valid, so just use the value.) // int selectedIndex = ((Int // icon = createImageIcon("");eger)value).intValue(); if (isSelected) { setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); } else { setBackground(list.getBackground()); setForeground(list.getForeground()); } //Set the icon and text. If icon was null, say so. if(saveType.equals("Folder")) { } setIcon(icon); if (icon != null) { setFont(list.getFont()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Font createFont();", "FONT createFONT();", "public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }", "public void setTextFont(Font font);", "public Font setFontStyle(String font){\n\t\treturn new Font(font, Font.BOLD, 1);\r\n\t}", "Font getBo...
[ "0.79841197", "0.7908574", "0.78664994", "0.729463", "0.72343135", "0.7218447", "0.7202288", "0.71332663", "0.71214694", "0.71179885", "0.70922273", "0.7046987", "0.70468765", "0.70255435", "0.70226395", "0.6976973", "0.69654965", "0.69527316", "0.6922916", "0.691798", "0.689...
0.0
-1
Handler qui va ouvrir la page d'ajout
public void ajouHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent arg0) { try { aj = new Ajouter(); ((Node) event.getSource()).getScene().getWindow().hide(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this meth...
[ "0.5995982", "0.5742645", "0.5554702", "0.55421674", "0.5529508", "0.55069673", "0.54693484", "0.54624987", "0.5447896", "0.544536", "0.5398172", "0.53646106", "0.5351557", "0.5338119", "0.5322948", "0.531589", "0.5315278", "0.53101623", "0.5299527", "0.52926147", "0.52863204...
0.0
-1
Handler qui va ouvrir la page de suppression
public void suppHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { private String args; @Override public void handle(ActionEvent arg0) { try { sup= new Supprimer(); ((Node) event.getSource()).getScene().getWindow().hide(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void suppress() {\n\n\t}", "@Override \n\t\t public void postHandle(HttpServletRequest request, HttpServletResponse response, \n\t\t Object object, ModelAndView modelAndView) throws Exception {\n\t\t\t List<String> exclusionsScreens = (List<String>) request.getSession(true).getAttribute(\...
[ "0.59198606", "0.587163", "0.58207107", "0.56108165", "0.56108165", "0.56108165", "0.55788434", "0.54823935", "0.54823935", "0.5404931", "0.5402736", "0.5368783", "0.5324681", "0.52959037", "0.52948475", "0.5291468", "0.52901894", "0.5251986", "0.52333575", "0.5214934", "0.51...
0.0
-1
Handler qui va ouvrir la page de modification
public void modifHandler(ActionEvent event) throws Exception { String id= new String(); for (Button bouton : list_bouton) { if(event.getSource()==bouton) { bouton.setOnAction(new EventHandler<ActionEvent>() { private String args; @Override public void handle(ActionEvent arg0) { try { //choisir l'activité à modifier mod= new ChoixActiviteModif(); } catch (Exception e) {e.printStackTrace();} }}); ChoixControler.selectedDomaine=bouton.getId(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void edit(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"../admin/xiaoshuolist.jsp\";\r\n\t\tthis.URL2=\"../novel/one.do\";\r\n\t\tthis.msg1=\"修改成功!\";\r\n\t\tthis.msg2=\"修改失败!\";\r\n\t\tsuper.edit(request, response);\r\n\t}", "@Override\r\n\...
[ "0.66324836", "0.64766765", "0.643631", "0.61927205", "0.6126477", "0.5966936", "0.59578097", "0.59437114", "0.5934959", "0.58861923", "0.58649427", "0.5854672", "0.5834881", "0.5833647", "0.5827974", "0.57988316", "0.57764864", "0.5757782", "0.5753617", "0.57429916", "0.5733...
0.0
-1
Ne pas inclure les attributs d'association. "employeSuperieur","groupes"
public Employe(String nomEmploye) { super(); this.nomEmploye = nomEmploye; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestio...
[ "0.6688627", "0.5997922", "0.5653889", "0.5569157", "0.5521296", "0.5519959", "0.55060905", "0.5467178", "0.5420929", "0.54012024", "0.53650224", "0.53616816", "0.5357495", "0.5354652", "0.5353708", "0.52785295", "0.52768004", "0.52628535", "0.5238255", "0.52336925", "0.52331...
0.495629
75
Creates new form Graficas
public Reportes() { initComponents(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public FormInserir...
[ "0.69371504", "0.6609894", "0.65156555", "0.6199411", "0.618635", "0.6145402", "0.6145031", "0.6124451", "0.60980916", "0.60937923", "0.6056433", "0.6033764", "0.5972879", "0.59511954", "0.5930496", "0.5919141", "0.5905552", "0.59031075", "0.58602625", "0.58592683", "0.583358...
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() { jPanel2 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jComboGrafica = new javax.swing.JComboBox<>(); jLabel2 = new javax.swing.JLabel(); jComboTipo = new javax.swing.JComboBox<>(); jPanelGrafica = new javax.swing.JPanel(); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel1.setText("Seleciona una Grafica"); jComboGrafica.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jComboGrafica.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Seleccione una Grafica", "Número de productos por categoria", "Ganancia por Categoria", "Cantidad de prodctos pedidos", "Inversion" })); jComboGrafica.addItemListener(new java.awt.event.ItemListener() { public void itemStateChanged(java.awt.event.ItemEvent evt) { jComboGraficaItemStateChanged(evt); } }); jLabel2.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jLabel2.setText("Tipo"); jComboTipo.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N jComboTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Seleccione un tipo", "Barras", "Pastel" })); jPanelGrafica.setBackground(new java.awt.Color(153, 153, 153)); jPanelGrafica.setLayout(new java.awt.BorderLayout()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanelGrafica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(32, 32, 32) .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jComboTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jComboGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanelGrafica, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboGrafica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jComboTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(20, 20, 20)) ); 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 ...
[ "0.73213893", "0.72913563", "0.72913563", "0.72913563", "0.7286415", "0.724936", "0.72132975", "0.72076875", "0.71963966", "0.7190991", "0.7184836", "0.71593595", "0.71489584", "0.709429", "0.7080468", "0.70567", "0.6987573", "0.69780385", "0.69556123", "0.69538146", "0.69455...
0.0
-1
private static final String app = "cfx/st";
@SuppressWarnings("deprecation") @Override public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException { this.setBrowserExclusive(); br.setFollowRedirects(true); br.getPage(link.getDownloadURL().replace("http://", "https://")); if (br.getHttpConnection().getResponseCode() == 404) { throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND); } String filename = br.getRegex("property\\s*=\\s*\\'og:title\\'.*?content\\s*=\\s*\"([^<>\"]*?)\"").getMatch(0); if (filename == null) { /* Fallback */ filename = new Regex(link.getPluginPatternMatcher(), "([^/]+)$").getMatch(0); } final String uploadDate = br.getRegex("itemprop='uploadDate'>(\\d{4}-\\d{2}-\\d{2})").getMatch(0); filename = Encoding.htmlDecode(filename.trim()); if (uploadDate != null) { filename = uploadDate + "_" + filename; } link.setFinalFileName(filename + ".mp4"); return AvailableStatus.TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getApp();", "public String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public void myapp() {\n\n\n }", "short appId();", "public String getShortAppName();", "Appinfo createAppinfo();", "public interface M...
[ "0.6231221", "0.5857572", "0.5749865", "0.5749865", "0.5749865", "0.55575925", "0.5375586", "0.53176504", "0.53078425", "0.53052825", "0.52899563", "0.5236552", "0.523537", "0.5234593", "0.5227312", "0.52159184", "0.52060586", "0.52055264", "0.5159521", "0.5157869", "0.515533...
0.0
-1