query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel4 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); applyCellChangesCheckBox = new javax.swing.JCheckBox(); estimateRepairabilityCheckBox = new javax.swing.JCheckBox(); useSymmetricOptimizationCheckBox = new javax.swing.JCheckBox(); generateAllChangesCheckBox = new javax.swing.JCheckBox(); detectEntireEquivalenceClassesCheckBox = new javax.swing.JCheckBox(); randomErrorsCheckBox = new javax.swing.JCheckBox(); outlierErrorsCheckBox = new javax.swing.JCheckBox(); queryWxecutionTimeOutTextField = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); jPanel1 = new javax.swing.JPanel(); printLogCheckBox = new javax.swing.JCheckBox(); debugCheckBox = new javax.swing.JCheckBox(); useDeltaDBForChangesCheckBox = new javax.swing.JCheckBox(); recreateDBOnStartCheckBox = new javax.swing.JCheckBox(); checkCleanInstanceCheckBox = new javax.swing.JCheckBox(); checkChangesCheckBox = new javax.swing.JCheckBox(); excludeCrossProductsCheckBox = new javax.swing.JCheckBox(); avoidInteractionsCheckBox = new javax.swing.JCheckBox(); jSeparator1 = new javax.swing.JSeparator(); jPanel3 = new javax.swing.JPanel(); exportCellChangesCheckBox = new javax.swing.JCheckBox(); exportCellChangesPathTextField = new javax.swing.JTextField(); exportDirtyDBCheckBox = new javax.swing.JCheckBox(); jLabel2 = new javax.swing.JLabel(); exportDirtyDbTypeTextField = new javax.swing.JTextField(); exportDirtyDBPathTextField = new javax.swing.JTextField(); cloneTargetSchemaCheckBox = new javax.swing.JCheckBox(); jSeparator3 = new javax.swing.JSeparator(); jSeparator4 = new javax.swing.JSeparator(); jLabel3 = new javax.swing.JLabel(); cloneSuffixTextField = new javax.swing.JTextField(); jSeparator5 = new javax.swing.JSeparator(); jLabel4 = new javax.swing.JLabel(); sizeFactorReductionTextField = new javax.swing.JTextField(); exportCellChangesButton = new javax.swing.JButton(); exportDirtyDbButton = new javax.swing.JButton(); setMaximumSize(new java.awt.Dimension(1000, 1000)); setMinimumSize(new java.awt.Dimension(660, 340)); setPreferredSize(new java.awt.Dimension(660, 340)); org.openide.awt.Mnemonics.setLocalizedText(applyCellChangesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.applyCellChangesCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(estimateRepairabilityCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.estimateRepairabilityCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(useSymmetricOptimizationCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.useSymmetricOptimizationCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(generateAllChangesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.generateAllChangesCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(detectEntireEquivalenceClassesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.detectEntireEquivalenceClassesCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(randomErrorsCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.randomErrorsCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(outlierErrorsCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.outlierErrorsCheckBox.text")); // NOI18N queryWxecutionTimeOutTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.queryWxecutionTimeOutTextField.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.jLabel1.text")); // NOI18N jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL); 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.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(detectEntireEquivalenceClassesCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(randomErrorsCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(generateAllChangesCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(useSymmetricOptimizationCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(estimateRepairabilityCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(applyCellChangesCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(queryWxecutionTimeOutTextField)) .addComponent(outlierErrorsCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(18, 18, 18) .addComponent(applyCellChangesCheckBox) .addGap(18, 18, 18) .addComponent(estimateRepairabilityCheckBox) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(queryWxecutionTimeOutTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addGap(21, 21, 21) .addComponent(useSymmetricOptimizationCheckBox) .addGap(18, 18, 18) .addComponent(generateAllChangesCheckBox) .addGap(18, 18, 18) .addComponent(detectEntireEquivalenceClassesCheckBox) .addGap(18, 18, 18) .addComponent(randomErrorsCheckBox) .addGap(18, 18, 18) .addComponent(outlierErrorsCheckBox) .addContainerGap(11, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jSeparator2)) ); org.openide.awt.Mnemonics.setLocalizedText(printLogCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.printLogCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(debugCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.debugCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(useDeltaDBForChangesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.useDeltaDBForChangesCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(recreateDBOnStartCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.recreateDBOnStartCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(checkCleanInstanceCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.checkCleanInstanceCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(checkChangesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.checkChangesCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(excludeCrossProductsCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.excludeCrossProductsCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(avoidInteractionsCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.avoidInteractionsCheckBox.text")); // NOI18N jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(useDeltaDBForChangesCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(recreateDBOnStartCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(checkCleanInstanceCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(checkChangesCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(excludeCrossProductsCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(avoidInteractionsCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(debugCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(printLogCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(printLogCheckBox) .addGap(18, 18, 18) .addComponent(debugCheckBox) .addGap(18, 18, 18) .addComponent(useDeltaDBForChangesCheckBox) .addGap(18, 18, 18) .addComponent(recreateDBOnStartCheckBox) .addGap(18, 18, 18) .addComponent(checkCleanInstanceCheckBox) .addGap(18, 18, 18) .addComponent(checkChangesCheckBox) .addGap(18, 18, 18) .addComponent(excludeCrossProductsCheckBox) .addGap(18, 18, 18) .addComponent(avoidInteractionsCheckBox) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) ); org.openide.awt.Mnemonics.setLocalizedText(exportCellChangesCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportCellChangesCheckBox.text")); // NOI18N exportCellChangesPathTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportCellChangesPathTextField.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(exportDirtyDBCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportDirtyDBCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.jLabel2.text")); // NOI18N exportDirtyDbTypeTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportDirtyDbTypeTextField.text")); // NOI18N exportDirtyDBPathTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportDirtyDBPathTextField.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(cloneTargetSchemaCheckBox, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.cloneTargetSchemaCheckBox.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.jLabel3.text")); // NOI18N cloneSuffixTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.cloneSuffixTextField.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.jLabel4.text")); // NOI18N sizeFactorReductionTextField.setText(org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.sizeFactorReductionTextField.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(exportCellChangesButton, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportCellChangesButton.text")); // NOI18N org.openide.awt.Mnemonics.setLocalizedText(exportDirtyDbButton, org.openide.util.NbBundle.getMessage(ConfEGTaskPanel.class, "ConfEGTaskPanel.exportDirtyDbButton.text")); // NOI18N javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(exportCellChangesCheckBox, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(exportDirtyDBCheckBox, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exportDirtyDbTypeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(exportCellChangesPathTextField) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cloneSuffixTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(sizeFactorReductionTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(exportDirtyDBPathTextField)))) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(exportCellChangesButton, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(exportDirtyDbButton, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator5)) .addGap(15, 15, 15)) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(cloneTargetSchemaCheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(exportCellChangesCheckBox) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(exportCellChangesPathTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(exportCellChangesButton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(exportDirtyDBCheckBox) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(exportDirtyDbTypeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(exportDirtyDBPathTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(exportDirtyDbButton)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cloneTargetSchemaCheckBox) .addGap(12, 12, 12) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(cloneSuffixTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(sizeFactorReductionTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); 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(0, 0, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .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, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(0, 0, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public Soru1() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public kunde() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public MusteriEkle() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "public sinavlar2() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.69450074", "0.6944328", "0.6937169", "0.6931577", "0.6927632", "0.692602", "0.6925518", "0.6911884", "0.69111824", "0.6894571", "0.68920577", "0.68919677", "0.6891793", "0.6889509", "0.6884149", "0.6883326", "0.68815684", "0.68778104", "0.6876167", "0.6873792", "0.687072", "0.6859156", "0.6856744", "0.6855844", "0.6854915", "0.68542576", "0.68534344", "0.6852383", "0.6852383", "0.6845196", "0.68370795", "0.6836554", "0.6830521", "0.68290323", "0.6827711", "0.68255705", "0.6822908", "0.68180746", "0.68179923", "0.6811043", "0.6809639", "0.68095654", "0.6808346", "0.68082345", "0.68017685", "0.67943394", "0.67933774", "0.6793048", "0.6791145", "0.67897683", "0.6788624", "0.6788244", "0.6781776", "0.67674303", "0.6767318", "0.6764773", "0.6758625", "0.6757251", "0.6753117", "0.6751926", "0.67432684", "0.6740031", "0.67374456", "0.6737373", "0.6734546", "0.6727067", "0.67267615", "0.67210555", "0.6716679", "0.6715794", "0.6715694", "0.6709429", "0.67086613", "0.67038596", "0.6702431", "0.67014176", "0.67002505", "0.66993576", "0.6694831", "0.66915953", "0.6690518" ]
0.0
-1
End of variables declaration//GENEND:variables
public javax.swing.JCheckBox getApplyCellChangesCheckBox() { return applyCellChangesCheckBox; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[]w=In.readInts("https://algs4.cs.princeton.edu/11model/largeW.txt"); In.readInts(args[0]); StaticSETofInts set=new StaticSETofInts(w); while (!StdIn.isEmpty()) { int key=StdIn.readInt(); if (!set.contains(key)) { StdOut.println(key); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
user service Created by fuzq on 17/7/6.
public interface UserService extends BaseService { ServiceResultHander getPage(int pn, String name); ServiceResultHander insert(User user); ServiceResultHander update(Integer id, String name, Integer age); ServiceResultHander delete(Integer id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UserService {\n\n //创建一个用户\n public void createUser(Sysuser sysuser);\n //修改用户信息\n public void saveUser(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<map>\n public List<Map<String,Object>> signIn(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<Sysuser>\n public List<Sysuser> getUserInfo1(Sysuser Sysuser);\n\n //修改密码\n public int modifyPassword(Map<String, Object> params);\n\n //修改头像\n public int modifyPhoto(String userId, String photoPath, String userType);\n\n //根据用户ID查询用户\n public Sysuser getUserInfoFromId(String userId);\n\n //设置用户是否可登陆后台\n public int setUserConsole(int userId,int state);\n\n //设置用户是否可登陆前台\n public int setUserFront(int userId,int state);\n\n}", "private void getUserInfo() {\n\t}", "public interface UserService {\n public Map enroll(String username,String password,String name);\n public Map login(String username,String password);\n public Map modify(String username,String newPassword);\n //2017.8.15\n public Map consumeTimes(String username);\n public Map personMessage(String username);\n public Map queryHadPublishTrade(String username);\n\n //2017.8.19\n public Map uploadIcon(MultipartFile img, HttpServletRequest request,String username);\n}", "private static void oneUserExample()\t{\n\t}", "public interface UserService {\n\n /**\n * 验证手机号是否已被注册\n * @param phone\n */\n boolean checkPhoneCanReg(String phone);\n\n /**\n * 发送短信验证码\n * @param phone\n */\n void sendRegPhoneVCode(String phone);\n\n /**\n * 注册\n * @param phone\n * @param vcode\n */\n void register(String phone, String vcode,String pwd);\n\n /**\n * 查询用户\n * @param username\n * @param pwd\n * @return\n */\n UserVo queryUser(String username, String pwd);\n}", "public interface UsersService {\n public int register(String userName,String telphone,String passWord);\n public boolean login(String telphone,String passWord);\n public Users getUserByTelphone(String telphone);\n public int editUserMessage(String telphone,String username,String realname,String sex,String userQQ,String email,String userwechat,String birthday);\n public int updatePassword(String telphone,String password);\n public int saveUserimage(String telphone,String userimage);\n public Users getUserByUID(int uid);\n}", "@Override\n\tpublic void GetServerUser() {\n\n\t}", "public interface UserService {\r\n\r\n //注册方法\r\n Integer register(UserForm userForm) throws IOException;\r\n\r\n //登录\r\n UserDTO login(String userName, String userPassword);\r\n\r\n //检查用户名是否有效(str可以是用户名也可以是手机号。对应的type是username和userPhone)\r\n Integer checkValid(String str, String type);\r\n\r\n //获取用户登录信息\r\n UserDTO getUserInfo(String userPhone);\r\n\r\n //忘记密码获取问题\r\n String getQuestion(String userPhone);\r\n\r\n //提交问题答案(返回一个token)\r\n String checkAnswer(String userPhone, String userQuestion, String userAnswer);\r\n\r\n //忘记密码的重设密码\r\n Integer forgetResetPassword(String userPhone, String newPassword, String forgetToken);\r\n\r\n //登录状态中重设密码\r\n Integer resetPassword(String oldPassword, String newPassword, UserDTO userDTO);\r\n\r\n //登录状态更新个人信息\r\n Integer updateInformation(UserDTO userDTO,String userName, String userMail,String userPhone,String userQuestion,String userAnswer);\r\n\r\n //获取当前登录用户的详细信息,并强制登录\r\n UserForm getInformation(UserDTO userDTO);\r\n\r\n //退出登录\r\n Integer logout();\r\n\r\n //管理员查询用户列表\r\n List<UserInfo> list();\r\n\r\n //添加收货地址\r\n Shipping createShipping(ShippingForm shippingForm, String userId);\r\n\r\n //更新收货地址\r\n Shipping updateShipping(ShippingForm shippingForm, String shippingId, String userId);\r\n\r\n //查看收货地址\r\n Shipping shippingDetail(String shippingId);\r\n\r\n //查看收货地址列表\r\n List<Shipping> shippingList(String userId);\r\n\r\n //删除收货地址\r\n void deleteShipping(String shippingId);\r\n\r\n}", "java.lang.String getUser();", "public void setupUser() {\n }", "public abstract String getUser();", "private void initUser() {\n\t}", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "private void loggedInUser() {\n\t\t\n\t}", "public interface UserService {\n\n\tpublic void save(UserEntity userEntity);\n\n\tpublic void saveBatch(HashMap<String, Object> map);\n\n\tpublic void delete(UserEntity userEntity);\n\n\tpublic void update(UserEntity userEntity);\n\n\tpublic void updatePic(UserEntity userEntity);\n\t\n\tpublic void updateRole(UserEntity userEntity);\n\n\tpublic List<UserEntity> findList(UserEntity userEntity);\n\n\t/* find user information to display */\n\tpublic List<UserParam> findUesrDetailInfo(UserEntity userEntity);\n\n\t/* find user information by name */\n\tpublic List<UserParam> findListForManagement(UserEntity userEntity);\n}", "public interface UserService {\n\n\t/**\n\t * Finds a user by email\n\t * \n\t * @param email\n\t * @return\n\t */\n\tUser find(String email);\n\n\t/**\n\t * Finds a user by email\n\t * \n\t * @param email\n\t * @return\n\t */\n\tList<User> addUsersToShowableList(UserListRequest userListRequest);\n\t\n\t/**\n\t * Finds a user by its id\n\t * \n\t * @param id\n\t * @return\n\t */\n\tUser find(long id);\n\n\t/**\n\t * \n\t * @param user\n\t */\n\tvoid save(User user, String token);\n\n\t/**\n\t * \n\t * @param user\n\t */\n\tvoid register(User user, String urlBase);\n\n\t/**\n\t * Load the number of user offering services\n\t * @return\n\t */\n\tInteger loadUserCount();\n\n\t/**\n\t * Validate if email already exists\n\t * @param email\n\t * \t\tThe email to validate\n\t */\n\tvoid validate(String email);\n\n\t/**\n\t * Send a activation email to user who register\n\t * @param email\n\t * @param activationLink\n\t * @param activationKey\n\t * @throws MailServicesErrorException\n\t */\n\tvoid sendActivationLinkEmail(User user, String activationLink, String activationKey)\n\t\t\tthrows MailServicesErrorException;\n\n\t/**\n\t * Activate an user that comes from email activation link\n\t * @param email\n\t * @param activationToken\n\t */\n\tvoid activateUser(String email, String activationToken);\n\n\t/**\n\t * Ends the user session by deleting its security access token\n\t * @param userTokenTokenContent\n\t * \t\tContent of user token to delete\n\t */\n\tvoid logout(String userTokenTokenContent);\n\n\t/**\n\t * filter users by specific request filter\n\t * @param request\n\t * @return\n\t */\n\tUserFilterResult find(UserFilterRequest request);\n}", "public interface UserInfoService extends Service<UserInfo> {\n float getHistoryRate(int userId, int day);\n\n String getEncryPhotoUrl(int userId);\n String getEncryPayPassword(String payPasswor);\n int selectByIdAndPayPassword(String userId,String payPassword);\n int computeAge(String IdNO);\n String computeSex(String IdNo);\n UserInfo anonymousUserInfo(UserInfo userInfo);\n\n List<UserInfo> findFriendByUserId(String userId);\n\n List<UserInfo> findIsAddingFriend(String userId);\n\n Boolean lockPayPassword(int uid);\n\n ErrorEnum addLockPayPassword(int uid);\n\n List<LikePeopleJoinUserInfoVo> findLikePeople(String userId);\n\n}", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public interface UserService {\n\n User login(User user);\n\n /**\n * 用户列表\n *\n * @param user\n * @param pageHelper\n * @return\n */\n List<User> userGrid(User user, PageHelper pageHelper);\n\n /**\n * 保存或者更新\n *\n * @param user\n */\n void saveOrUpdate(User user) throws Exception;\n\n /**\n * 通过主键list集合删除\n *\n * @param list\n */\n void delete(List<String> list);\n\n /**\n * 加载男女管理员\n *\n * @return\n */\n List<Map<String, Object>> userMaleAndFemale();\n}", "public abstract String getUser() throws DataServiceException;", "public interface UserService {\n\n //查询所有用户\n public List<User> selectUserList();\n //根据权限查询用户列表\n public List<User> selectUserListByType(int type);\n //更改用户信息(包括权限)\n public boolean updateUser(User user);\n\n public User selectUserByUserId(String userId);\n}", "private String getUser(String name) {\n\t\treturn null;\n\t}", "String getUser();", "String getUser();", "public interface UserService {\n}", "public interface UserService {\n}", "public interface UserProcessService {\n\n /**\n * Get user chinese name.\n *\n * @param userName user english name (user id)\n * @return user chinese name\n */\n String getUserCnName(String userName);\n\n /**\n * Query all users.\n *\n * @return all users\n */\n List<User> queryAllUsers();\n\n /**\n * Create a user.\n *\n * @param user\n * @return\n */\n Integer createUser(User user);\n}", "public interface UserService {\n\n public User getUserByName(String name);\n\n public User modify();\n\n public boolean add(User user);\n\n int getStatusCount(String userName, int status);\n\n boolean exist(String name);\n\n void edit(String userName, String nick, String note, String newpassword, String school, String email);\n\n int getSubmitCount(String userName);\n}", "public interface UserService {\n\n public List<User> getUsers();\n\n //添加用户\n public boolean addUser(User user);\n\n //通过用户名查user对象\n public List<User> getUserByName(String username);\n //通过用户id获取角色名\n public String getRoleNameByUid(Integer userid);\n //修改密码\n public boolean updateUpw(User user );\n}", "public interface UserService\n{\n}", "public UserService() {\n }", "@Override\r\n public void onUserSet(GenericDevice dev, PDeviceHolder devh, PUserHolder us) {\n\r\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "public interface IUserService extends BaseService<User> {\n\n /**\n * 通过手机号 查询用户所有基础字段\n * @param phone\n * @return\n */\n User getUserByPhone(String phone);\n\n /**\n * 获取该用户下的分销列表\n * @param userId\n * @return\n */\n Map<String,List<DistributionUser>> getDistributionUser(String userId,Integer pageNO,Integer pageSize);\n\n /**\n * 通过邀请码查询用户\n * @param shareCode 邀请码\n * @return\n */\n User getUserByShareCode(String shareCode);\n\n /**\n * 统计昨日数据\n * 积分(score)、欢喜券(bigDecimal)、单元总量(暂无)、转化率(parities)\n * @return\n */\n Map<String,Object> countLastDay();\n\n /**\n * 后台通过/拒绝申请成为代理商\n * @param userId 用户ID\n * @param status 1 通过 2 拒绝通过\n */\n void setAgent(String userId,Integer status) throws Exception;\n\n /**\n * 后台用户列表\n * @param pages\n * @param map\n * @return\n */\n Pages<User> list(Pages pages, Map<String ,Object> map);\n}", "public interface UsersService {\n\n\tvoid login(String email, String password);\n\tvoid getUserProfile(String userId);\n\tvoid sendAvatar(Bitmap avatar);\n}", "public interface UserService {\n\n APIResult oaLogin(User user, APIResult res);\n\n Pageable<User> getList(Pageable<User> pageable, String type, String keyword);\n\n User findById(String id);\n\n APIResult saveWorker(User user, APIResult res);\n\n int delete(User user);\n\n /**\n * 获取用户详情\n *\n * @param user\n * @return\n */\n User getDetail(User user);\n\n /**\n * 获取所有的工人列表\n *\n * @return\n */\n List<User> getWorkerList();\n}", "public interface UserService extends UserDetailsService{\n\n\t/**\n\t * save method is used save record in user table\n\t * \n\t * @param userEntity.\n\t * @return UserEntity\n\t */\n public UserEntity save(UserEntity userEntity); \n\t\n /**\n * getByName method is used to retrieve userId from userName. \n * \n * @param userName\n * @return UUID\n */\n public UserQueryEntity getByName(String userName);\n \n}", "public interface UserService {\r\n\t\r\n\tpublic UserProfileTo readUser(Long id);\r\n\r\n\tpublic UserProfileTo createUser(String login, String password, String email);\r\n}", "public interface UserService {\n HashMap<String,Object> get(String id);\n\n HashMap<String,Object> getUserByName(String name);\n\n HashMap<String,Object> verifyAccessToken(String accessToken);\n\n int genUserToken(String name, String token);\n\n int changePwd(String id, String newPasswordCiphertext);\n}", "public interface UserService {\n String getViewUserName(User user);\n}", "public interface UserService {\n\n /**\n * 获取用户信息列表\n *\n * @return\n */\n List<User> findAllUser();\n\n /**\n * 根据 ID,查询信息\n *\n * @param user\n * @return\n */\n ResponseBean login(User user);\n\n /**\n * 新增信息\n *\n * @param user\n * @return\n */\n ResponseBean saveUser(User user);\n\n /**\n * 更新信息\n *\n * @param user\n * @return\n */\n ResponseBean updateUser(User user);\n\n /**\n * 获取用户信息\n * @param phone\n * @return\n */\n ResponseBean getUserInfo(String phone);\n\n /**\n * 根据 ID,删除信息\n *\n * @param id\n * @return\n */\n ResponseBean deleteUser(Long id);\n\n /**\n * 验证用户的登录情况,Token是否合法\n * @param phoneNum\n * @param token\n * @return\n */\n boolean isUserTokenLegal(String phoneNum, String token);\n\n ResponseBean getAllUserList(String params);\n\n ResponseBean getAllInfo(User user);\n}", "public interface UserService {\n /**\n * 添加\n * @param userName\n * @param age\n */\n void insert(String userName,int age);\n\n /**\n * 插入用户\n */\n void insertUser(String userName);\n\n /**\n * 删除\n * @param userId\n */\n void delete(Long userId);\n\n /**\n * 查询\n * @param userId\n * @return\n */\n String select(Long userId) throws InterruptedException;\n\n /**\n * 抛出异常\n */\n void throwEx() throws Exception;\n}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public interface UserService {\n /**\n * description: 用户登录\n * version: 1.0\n * date: 2021/1/11 22:38\n * author: LIBEL\n *\n * @param param\n * @return com.adp.FTXSecurity.model.vo.UserVo\n */\n UserVo login(LoginParam param);\n\n /**\n * description: 更新用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void update(UserParam param);\n\n /**\n * description: 新增用户信息\n * version: 1.0\n * date: 2021/1/11 22:40\n * author: LIBEL\n *\n * @param param\n * @return void\n */\n void createUser(UserEntity param);\n}", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public interface IUserService {\r\n\r\n /**\r\n * 用户注册,成功返回用户信息\r\n */\r\n User register(String mobile);\r\n\r\n /**\r\n * 用户注册,成功返回用户信息\r\n */\r\n User register(User user);\r\n\r\n /**\r\n * 用户注册,成功返回用户信息(三方登录)\r\n */\r\n User register(String loginId, Byte loginType, String imgUrl, String nickName);\r\n\r\n /**\r\n * 根据用户id返回用户信息\r\n */\r\n User detail(int id,Integer curUserId);\r\n\r\n /**\r\n * 检查旧密码是否正确\r\n */\r\n boolean checkPassword(int userId, String oldPassword);\r\n /**\r\n * 修改个人密码\r\n */\r\n int changePassword(Integer userId, String newPassword);\r\n\r\n /**\r\n * 根据条件查询用户列表\r\n */\r\n List<User> queryList(UserCondition cond,Integer curUserId);\r\n\r\n /**\r\n * 更新某用户的个别信息字段\r\n */\r\n int updateValue(String itemName, String itemValue,Integer userId);\r\n\r\n /**\r\n * 修改用户手机号\r\n */\r\n int updateMobile(String mobile, Integer userId);\r\n\r\n /**\r\n * 提交用户认证申请\r\n */\r\n int certify(int userId, int userGroup, String videoUrl);\r\n\r\n /**\r\n * 查询用户认证申请的状态\r\n * 如多次申请则返回最近一次的状态\r\n */\r\n Integer getCertifyStatus(int userId);\r\n\r\n /**\r\n * 根据昵称查询用户\r\n */\r\n List<User> findByNickName(String nickName);\r\n\r\n /**\r\n * 根据手机号查询用户\r\n */\r\n\r\n int findByMobile(String mobile);\r\n\r\n /**\r\n * 根据唯一标识和登录类型查询用户\r\n */\r\n User findByLoginId(String LoginId, Byte type);\r\n\r\n /**\r\n * 根据passportId从缓存中获取用户对象\r\n */\r\n User loadUserFromCache(String passportId);\r\n\r\n /**\r\n * 根据passportId,将用户对象添加/更新到缓存\r\n */\r\n void syncUserToCache(String passportId, User user);\r\n\r\n /**\r\n * 从缓存中删除用户对象\r\n */\r\n void removeUserFromCache(String passportId);\r\n\r\n /**\r\n * 根据手机号和类型从缓存中获取验证码+时间戳对象\r\n */\r\n String loadSecureCodeFromCache(String mobile, int type);\r\n\r\n /**\r\n * 根据手机号和类型,将验证码+时间戳对象对象添加/更新到缓存\r\n */\r\n void syncSecureCodeToCache(String mobile, int type, String secureCode);\r\n\r\n /**\r\n * 从缓存中删除手机的某类型验证码对象\r\n */\r\n void removeSecureCodeFromCache(String mobile, int type);\r\n\r\n /**\r\n * 从缓存中删除手机对应的所有验证码对象\r\n */\r\n void removeAllSecureCodeFromCache(String mobile);\r\n\r\n /**\r\n * 查询用户是否对女神点赞\r\n */\r\n GodViewLikeVO selectIsLikeGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 查询用户是否点赞\r\n */\r\n boolean isLikedByCurUser(Integer likeId,Integer likeType,Integer likeById);\r\n\r\n /**\r\n * 查询用户是否关注\r\n */\r\n boolean selectIsFocus(Integer focusId,Integer focusType,Integer focusById);\r\n\r\n\r\n boolean selectIsCollection(Integer collectionId,Integer collectionType,Integer focusById);\r\n\r\n /**\r\n * 点赞\r\n */\r\n void giveUpGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 取消点赞\r\n */\r\n void giveDownGod(GodViewLikeVO likeVO);\r\n\r\n /**\r\n * 查询女神的点赞数\r\n */\r\n Integer selectGodLikeCount(Integer godUserId);\r\n\r\n Integer getFocusCount(Integer curUserId, Integer focusUserId);\r\n\r\n int saveFocusUser(Integer curUserId, Integer focusUserId);\r\n\r\n int saveUnfocusUser(Integer curUserId, Integer focusUserId);\r\n\r\n int updateReceiver(User user);\r\n\r\n List<ActivitySupporter> querySupporterTotalRank(Integer curUserId, Integer curUserGroup, Integer start, Integer pageSize);\r\n\r\n int updateAtLogin(User user);\r\n \r\n /**\r\n * 修改用户封面\r\n */\r\n int updateCover(User user);\r\n\r\n UserAccount selectUserAccount(User user);\r\n\r\n void addQingdou(Integer id, Integer qingdouAmount);\r\n\r\n public List<UsersCollection> getPhotoCollectionByUserId(Integer userId,Integer pageNo,Integer pageSize)throws Exception;\r\n /**\r\n * @date 2017-08-07\r\n * 用户信息\r\n */\r\n\t\r\n\tList<User> queryUserAllList(UserCondition cond);\r\n \r\n //修改用户vip\r\n int updateUserVip(User user);\r\n \r\n /**\r\n * @date 2017-08-16\r\n * 用户信息\r\n */\r\n int updateAtLoginTimes(User user);\r\n \r\n User selectUser(User user);\r\n \r\n int updateCacheCount(BigDecimal itemValue,Integer userId);\r\n\r\n \r\n}", "public interface UserService {\n\n public User getOneByAccount(String account);\n\n public boolean existsById(String account);\n\n public List<User> findAll();\n\n String getNickname(String account);\n\n Map<String, String> getNicknames(List<String> accounts);\n\n PageInfo getUserByPage();\n\n PageInfo getUserByConditionWithPage(User condition);\n\n List<String> getAccount(String nickname);\n\n public List<User> findAllById(String id);\n\n boolean changeState(String state, List<String> accounts);\n\n public long count();\n\n public boolean deleteByAccount(String account);\n\n public boolean delete(User user);\n\n public boolean deleteAll();\n\n public boolean deleteInBatch(List<User> users);\n\n public boolean save(User user);\n\n public List<UserDrop> getUserDrop();\n\n public List<User4Org> getUnassignedUsers(List<User4Org> exclude);\n\n public int login(User user);\n}", "public interface UserInfoService extends IService {\n String getUserId();\n String getUserToken();\n}", "public String getUser(){\n \treturn user;\n }", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "public interface User\n extends HttpSessionBindingListener, TurbineUserDelegate, TurbineUser\n{\n /** The 'perm storage' key name for the create_date field. */\n String CREATE_DATE = \"CREATE_DATE\";\n\n /** The 'perm storage' key name for the last_login field. */\n String LAST_LOGIN = \"LAST_LOGIN\";\n\n /** The 'perm storage' key for the confirm_value field. */\n String CONFIRM_VALUE = \"CONFIRM_VALUE\";\n\n /** This is the value that is stored in the database for confirmed users */\n String CONFIRM_DATA = \"CONFIRMED\";\n\n /** The 'perm storage' key name for the access counter. */\n String ACCESS_COUNTER = \"_access_counter\";\n\n /** The 'temp storage' key name for the session access counter */\n String SESSION_ACCESS_COUNTER = \"_session_access_counter\";\n\n /** The 'temp storage' key name for the 'has logged in' flag */\n String HAS_LOGGED_IN = \"_has_logged_in\";\n\n /** The session key for the User object. */\n String SESSION_KEY = \"turbine.user\";\n\n /**\n * Gets the access counter for a user from perm storage.\n *\n * @return The access counter for the user.\n */\n int getAccessCounter();\n\n /**\n * Gets the access counter for a user during a session.\n *\n * @return The access counter for the user for the session.\n */\n int getAccessCounterForSession();\n\n /**\n * Gets the last access date for this User. This is the last time\n * that the user object was referenced.\n *\n * @return A Java Date with the last access date for the user.\n */\n Date getLastAccessDate();\n\n /**\n * Gets the create date for this User. This is the time at which\n * the user object was created.\n *\n * @return A Java Date with the date of creation for the user.\n */\n Date getCreateDate();\n\n /**\n * Returns the user's last login date.\n *\n * @return A Java Date with the last login date for the user.\n */\n Date getLastLogin();\n\n /**\n * Get an object from permanent storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getPerm(String name);\n\n /**\n * Get an object from permanent storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getPerm(String name, Object def);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getPermStorage();\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @return A Map.\n */\n Map<String, Object> getTempStorage();\n\n /**\n * Get an object from temporary storage.\n *\n * @param name The object's name.\n * @return An Object with the given name.\n */\n Object getTemp(String name);\n\n /**\n * Get an object from temporary storage; return default if value\n * is null.\n *\n * @param name The object's name.\n * @param def A default value to return.\n * @return An Object with the given name.\n */\n Object getTemp(String name, Object def);\n\n /**\n * This sets whether or not someone has logged in. hasLoggedIn()\n * returns this value.\n *\n * @param value Whether someone has logged in or not.\n */\n void setHasLoggedIn(Boolean value);\n\n /**\n * The user is considered logged in if they have not timed out.\n *\n * @return True if the user has logged in.\n */\n boolean hasLoggedIn();\n\n /**\n * Increments the permanent hit counter for the user.\n */\n void incrementAccessCounter();\n\n /**\n * Increments the session hit counter for the user.\n */\n void incrementAccessCounterForSession();\n\n /**\n * Remove an object from temporary storage and return the object.\n *\n * @param name The name of the object to remove.\n * @return An Object.\n */\n Object removeTemp(String name);\n\n /**\n * Sets the access counter for a user, saved in perm storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounter(int cnt);\n\n /**\n * Sets the session access counter for a user, saved in temp\n * storage.\n *\n * @param cnt The new count.\n */\n void setAccessCounterForSession(int cnt);\n\n /**\n * Sets the last access date for this User. This is the last time\n * that the user object was referenced.\n */\n void setLastAccessDate();\n\n /**\n * Set last login date/time.\n *\n * @param lastLogin The last login date.\n */\n void setLastLogin(Date lastLogin);\n\n /**\n * Put an object into permanent storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setPerm(String name,\n Object value);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setPermStorage(Map<String, Object> storage);\n\n /**\n * This should only be used in the case where we want to save the\n * data to the database.\n *\n * @param storage A Map.\n */\n void setTempStorage(Map<String, Object> storage);\n\n /**\n * Put an object into temporary storage.\n *\n * @param name The object's name.\n * @param value The object.\n */\n void setTemp(String name, Object value);\n\n /**\n * Sets the creation date for this user.\n *\n * @param date Creation date\n */\n void setCreateDate(Date date);\n\n /**\n * This method reports whether or not the user has been confirmed\n * in the system by checking the TurbineUserPeer.CONFIRM_VALUE\n * column to see if it is equal to CONFIRM_DATA.\n *\n * @return True if the user has been confirmed.\n */\n boolean isConfirmed();\n\n /**\n * Sets the confirmation value.\n *\n * @param value The confirmation key value.\n */\n void setConfirmed(String value);\n\n /**\n * Gets the confirmation value.\n *\n * @return The confirmed value\n */\n String getConfirmed();\n\n /**\n * Updates the last login date in the database.\n *\n * @throws Exception A generic exception.\n */\n\n void updateLastLogin()\n throws Exception;\n}", "public UserInfo() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "GenerateUserAccount () {\r\n }", "@Service\npublic interface UserService {\n\n void userRegister(String username, String password);\n\n String userLogin(String username, String password);\n\n User findUserByUserName(String userName);\n\n boolean insertThirdPartUserInfo(String username, String imageUrl, String thirdPart);\n\n boolean isExistLocalUserName(String username);\n}", "public final void mo91725f(User user) {\n }", "@Override\n public String getUserID() {\n return user_id;\n }", "public interface IUserService {\n\n String SERVICE_NAME = \"com.water.db.service.impl.UserServiceImpl\";\n\n /**\n * @author Zhang Miaojie\n * @description 登录授权\n * @time 2016-08-15\n */\n Map<String,Object> findUserByNameAndPwd(String username, String pwd);\n\n /**\n * @author Meng Sheng\n * @description 根据用户的ID查询用户\n * @time 2016-08-25\n * @param userId;\n */\n Map<String,Object> findUserByUserId(int userId);\n\n /**\n * @author Zhang Miaojie\n * @description 根据用户的手机号码查找用户\n * @time 2016-08-16\n */\n boolean findUserByTelphone(String tel_phone);\n\n Map<String,Object> findUserByTel(String tel_phone);\n\n /**\n * @author Zhang Miaojie\n * @description 用户注册\n * @time 2016-08-16\n */\n boolean saveUser(Map<String, Object> userMap);\n\n /**\n * @author Zhang Miaojie\n * @description 记录用户登录信息\n * @time 2016-08-17\n */\n void recordLoginLog(int userId);\n\n /**\n * @author Zhang Miaojie\n * @description 更新用户的密码\n * @time 2016-08-16\n * @return\n */\n boolean updatePwdByTelphone(String tel_phone, String pwd);\n\n /**\n * @author Zhang Miaojie\n * @descrition 根据账号和密码查找是否存在用户\n * @time 2016/09/06\n */\n Map<String,Object> findEmpInfoByUserNameAndPwd(String username,String password);\n\n /**\n * @author Zhang Miaojie\n * @descrition 添加后台管理员的信息\n * @time 2016/09/08\n */\n boolean addEmpInfo(EmpInfo empInfo);\n\n /**\n * @author Zhang Miaojie\n * @descrition 查询员工列表信息\n * @time 2016/09/09\n */\n List<Map<String,Object>> findEmpInfoList();\n\n /**\n * @author Zhang Miaojie\n * @descrition 删除员工信息\n * @time 2016/09/09\n */\n boolean deleteEmpInfoById(int itemId);\n\n /**\n * @author Zhang Miaojie\n * @descrition 添加权限信息\n * @time 2016/09/12\n */\n boolean addPopem(String role_name, String role_flag);\n\n /**根据条件来查询*/\n List<Map<String,Object>> findTelphoneByCondition(String telPhone);\n\n /**添加投标记录*/\n boolean addRebate(User2BidInfo user2BidInfo);\n\n /**修改账号总额*/\n Map<String,Object> findUserLogByUid(int userId);\n\n /**添加用户邀请码*/\n boolean updateUserInviteCodeByUid(String inviteCode, int userId);\n}", "public interface UserService {\n boolean hasMatchUser(String userName, String password);\n\n User findUserByUserName(String userName);\n\n void loginSuccess(User user);\n\n void createNewUser(User user) throws IOException;\n\n String makeMD5(String password);\n}", "public interface SysUserService {\n\n /**\n * 新增用户\n * @param SysUser\n * @return\n */\n SysUser addSysUser(SysUser SysUser);\n\n /**\n * 根据用户名查询用户\n * @param username\n * @return\n */\n SysUser findUserByUserName(String username);\n\n /**\n * 根据用户姓名查询用户\n * @param name\n * @return\n */\n SysUser findUserByName(String name);\n\n /**\n * 根据id获取用户\n * @param userId\n * @return\n */\n SysUser findUserByUserId(Integer userId);\n\n /**\n * 根据id删除用户\n * @param userId\n */\n void delete(Integer userId);\n\n /**\n * 分页查询用户\n * @param userName 用户名\n * @param page\n * @param rows\n * @return\n */\n List<SysUser> getUsers(String userName, Integer page, Integer rows);\n\n /**\n * 根据用户名查询数量\n * @param userName\n * @return\n */\n Integer getUsersCount(String userName);\n\n /**\n * 根据用户id查询用户\n * @param userId\n * @return\n */\n SysUser getUserById(Integer userId);\n\n /**\n * 更新用户信息\n * @param user\n */\n void update(SysUser user);\n\n /**\n * 修改登录密码\n * @param userId\n * @param newPassword\n */\n void modifyPassword(int userId, String newPassword);\n\n /**\n * 根据用户id获取用户密码\n * @param userId\n * @return\n */\n String getPassword(int userId);\n}", "public interface UserService {\n ResultVo register(UserClassAddVo userClassAddVo);\n\n ResultVo login(LoginClassVo loginClassVo, HttpServletResponse response);\n\n ResultVo inputInvitationCode(String inputInvitationCode, HttpServletRequest request,HttpServletResponse response);\n}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "public interface UserService {\n\n User getById(int id);\n\n User login(User user);\n\n List<User> getByParam(String param,Object value);\n\n List<User> getPageByMap(Map<String,Object> map, int pageIndex, int pageSize);\n\n List<User> getListByMap(Map<String,Object> map);\n\n void addUser(User user);\n\n boolean isExsit(User user);\n\n void logout(User user);\n\n void update (User user);\n\n void delete(int id);\n}", "public String getUser()\n {\n return _user;\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public UserService getUserService() {\n return userService;\n }", "@Override\n\tpublic void doUser(UserInfo ui) {\n\n\t}", "public interface UserDriver extends UosEventDriver {\n\n\tpublic static final String USER_DRIVER = UserDriverNativeSupport.class.getCanonicalName();\n\n\t// possible events\n\tpublic static final String NEW_USER_EVENT_KEY = \"NEW_USER_EVENT_KEY\";\n\tpublic static final String CHANGE_INFORMATION_TO_USER_KEY = \"CHANGE_INFORMATION_TO_USER_KEY\";\n\tpublic static final String LOST_USER_EVENT_KEY = \"LOST_USER_EVENT_KEY\";\n\n\tpublic static final String NAME_PARAM = \"name\";\n\tpublic static final String EMAIL_PARAM = \"email\";\n\tpublic static final String LAST_LABEL_NAME = \"lastlabelname\";\n\tpublic static final String LAST_LABEL_EMAIL = \"lastlabelemail\";\n\tpublic static final String CONFIDENCE_PARAM = \"confidence\";\n\tpublic static final String POSITION_X_PARAM = \"positionX\";\n\tpublic static final String POSITION_Z_PARAM = \"positionZ\";\n\tpublic static final String POSITION_Y_PARAM = \"positionY\";\n\n\tpublic static final String SPECIFIC_FIELD_PARAM = \"specificField\";\n\tpublic static final String EVENT_KEY_PARAM = \"eventKey\";\n\tpublic static final String USER_PARAM = \"user\";\n\n\tpublic static final String BYTES_IMAGE_PARAM = \"bytesImage\";\n\tpublic static final String INDEX_IMAGE_PARAM = \"indexImage\";\n\tpublic static final String LENGTH_IMAGE_PARAM = \"lengthImage\";\n\n\tpublic static final String RETURN_PARAM = \"return\";\n\n\tpublic static final String SPECIAL_CHARACTER_SEPARATOR = \":\";\n\n\t/* ******************\n\t * Services \n\t * ******************/\n\n\t/**\n\t * Retrieve information of the user with email\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void retrieveUserInfo(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Save image for the user with email in parameter\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void saveUserImage(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Remove images of user\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void removeUserImages(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * List all known users\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void listKnownUsers(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n\t/**\n\t * Retrain the recognition algorithm\n\t * \n\t * @param serviceCall\n\t * @param serviceResponse\n\t * @param messageContext\n\t */\n\tpublic abstract void retrain(Call serviceCall, Response serviceResponse, CallContext messageContext);\n\n}", "private void logUser() {\n }", "public interface UserService {\n\n ResponseEntity<?> login(String username, String password, HttpSession session); //用户登录\n\n ResponseEntity<?> auth(String username,String password); //获取token\n\n ResponseEntity<?> register(String username,String password); //用户注册\n\n ResponseEntity<?> getOne(long userId);\n\n ResponseEntity<?> getUserNumber(); //获取用户数量\n\n ResponseEntity<?> saveAndFlush(User user);\n\n ResponseEntity<?> getUsers();\n\n ResponseEntity<?> changeStatus(long userId, int status);\n\n Page<User> list(Pageable pageable);\n\n ResponseEntity<?> search(String name);\n}", "public interface UserService {\n\n SysUser getUser(String username);\n\n BootstrapTable list(SearchVo search);\n\n ResultVo saveOrUpdate(SysUser user, BigDecimal roleId);\n\n SysUser getUserById(BigDecimal id);\n\n ResultVo delete(BigDecimal id);\n}", "public interface UserService {\n Result register(RegisterUser registerUser);\n Result login(LogInUser logInUser);\n Result logout(LogOutUser logOutUser);\n Result updatejpushIDByToken(UpdateJpush updateJpush);\n}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public interface UserService {\n /**\n * 登陆验证\n * @param email\n * @param password\n * @return\n */\n UserInfo findByEmailAndPassword(String email, String password);\n\n /**\n * 通过Id查找用户\n * @param id\n * @return\n */\n UserInfoVO findUserInfo(Long id);\n\n /**\n * 通过邮箱查找用户\n * @param email\n * @return\n */\n\n UserInfo IsExist(String email);\n\n\n /**\n * 注册\n * @param email\n * @param password\n * @return\n */\n UserInfo register(UserInfo user);\n\n /**\n * 用于更新用户信息\n * @param user\n * @return\n */\n UserInfo update(UserInfoVO user);\n /**\n * 注销VO\n * @param email\n */\n void writeOff(String email);\n}", "public interface UserService {\n List<User> findAll();\n\n LoginUser findByUserId(Long userId);\n\n User findDepartLeader(Long departId);\n\n User getById(Long id);\n\n List<UserVo> findVoAll();\n\n void bindUserPro(Long userId, String proCode);\n\n List<UserProVo> findUserProList();\n\n void delUserPro(Long id);\n}", "public interface SysUserService extends Service<SysUser> {\n void sysUserAdd(SysUser sysUser,String userId) throws Exception;\n void sysUserUpdate(SysUser sysUser,String userId);\n String checkSysUsername(String sysUsername);\n\n /**\n * 通过 username 查询 a_sys_user 表中是否含有 username , 若无对应的 username ,则给出相应的提示。 2018/05/19 11:07 rk\n * @param username\n * @return\n */\n String checkUsername(String username);\n\n /**\n * 实现登录功能\n * @param username\n * @param password\n * @return\n */\n SysUser sysUserLogin(String username, String password);\n\n /**\n * 根据username查询role_id 在a_user_role表中查询\n * @param username\n * @return\n */\n // String queryRoleId(String username);\n List<String> queryRoleId(String username);\n\n /**\n * 通过 username 删除用户数据\n * @param username\n */\n void deleteUserByUsername(String username);\n\n /**\n * 模糊匹配,查询 a_sys_user \n * @param username\n * @param name\n * @param user_type\n * @param org_code\n * @param is_ok\n * @return\n */\n List<SysUser> selectByFiveParameter(String username, String name, String user_type, String org_code, String is_ok);\n\n}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "private static void multipleUsersExample()\t{\n\t}", "public interface UserService {\n User findUserById(int id);\n User selectByName(String username);\n User selectByEmail(String email);\n int insrtUser(User user);\n int insertStatus(int id,int status);\n int insertHeader(int id,String headerUrl);\n int insertPassword(int id,String password);\n}", "public interface UserService {\n\n void signUp(String login, String password) throws ServiceSQLException, DataSourceException;\n\n User signIn(String login, String password) throws DataSourceException, ServiceSQLException;\n\n int getID(String login) throws DataSourceException, ServiceSQLException;\n\n String getPassword(String login) throws DataSourceException, ServiceSQLException;\n\n int getBalance(String login) throws DataSourceException, ServiceSQLException;\n\n void setBalance(Connection connection, String userID, int balance) throws DataSourceException, ServiceSQLException;\n\n float setDiscount(Connection connection, String userID) throws DataSourceException, ServiceSQLException;\n}", "public User getUser(){return this.user;}", "@Override\n public User getUser() {\n return user;\n }", "@Override\n public User getUser() {\n return user;\n }", "public interface UserService {\n User getUserById(int userId);\n\n int saveUser(User user);\n\n List<User> findList();\n\n void rename(int id, String zouxiang);\n}", "public String addUser() {\n\t\t\t\treturn null;\r\n\t\t\t}", "public interface UserService {\n\n /**\n * Добавление нового пользователя в БД\n * @param user User\n * @return User\n */\n User add(User user);\n\n /**\n * Поиск пользователя по email\n * @param email String\n * @return User\n */\n User find(String email);\n\n /**\n * Изменения данных пользователя\n * @param user User\n */\n void update(User user);\n}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void setUser(String user)\n {\n _user = user;\n }", "public interface UserService {\n\n User getUserById(String u_id);\n /**\n * 功能说明 :根据id查找\n * @param u_id\n * @return\n */\n}", "public interface UserService {\n List<User> getAllUsers();\n User getUser(Integer id);\n Integer addUser(User user);\n void updateUser(User user);\n void deleteUser(Integer id);\n\n void showPhoto(Integer userId, String path, BufferedOutputStream output);\n\n void uploadPhotoToDB(Integer userId, InputStream stream, int size);\n void updatePhotoInDB(Integer userId, InputStream stream, int size);\n byte[] getPhoto(Integer userId);\n User validateUser(String login, String password) throws IncorrectLoginExceptions;\n}", "public interface UserService {\n\n public User getUserInfoByUsername(String username) throws Exception;\n\n public User getUserInfoFromSession(HttpSession session) throws Exception;\n\n /**\n * 用户注册逻辑\n *\n * @param user\n */\n// public Response merge(User user);\n\n /**\n * 用户获取逻辑\n *\n * @param id\n * @return\n */\n public Response getUserById(String id);\n\n\n /**\n * 获取用户列表\n *\n * @yhxm 用户姓名\n * @dlzh 登录账号\n * @bhxj 包含下级(1 是;2 否;)\n * @jgbh 机构编号\n */\n public Response selectNextLev(String yhxm, String dlzh, String bhxj, String jgbh, int pageindex, int pagesize);\n\n /**\n * 删除\n *\n * @param user_id\n * @throws Exception\n */\n public Response delete(String user_id, String tempId);\n\n public Response getRolesByBmbh(String bmbh);\n\n public Response getSysUserRoles(String type);\n\n public Response getSysUserRolesByID(String roleId);\n\n /**\n * 重置密码\n *\n * @param user_id\n */\n public Response ResetPasswd(int user_id);\n\n /**\n * 功能描述:根据用户名获取用户权限列表\n * 作者:齐遥遥\n * 时间:2017-10-17\n *\n * @param loginname\n * @return\n */\n public Response getUserRoles(String loginname);\n\n /**\n * 功能描述:根据用户名获取用户菜单列表\n * 作者:齐遥遥\n * 时间:2017-10-17\n *\n * @param loginname\n * @return\n */\n public Response getUserMenus(String loginname);\n\n /**\n * 功能描述:根据用户名获取用户信息\n * 作者:齐遥遥\n * 时间:2017-10-18\n *\n * @param loginname\n * @return\n */\n public Response getUserByLoginname(String loginname);\n\n public Response updatePassword(String loginname, String password, String newPassword);\n\n\n public String getUserInfo(String user_id);\n\n //修改用户密码\n boolean updatePwd(Map map)throws Exception;\n\n //用户个人中心信息显示补充查询\n Map getUserInfor(String loginname,String bmbh)throws Exception;\n\n Response addUser(SysUser user);\n\n Response update(SysUser user);\n}", "public interface UserService {\n\n\t/**\n\t * This method is used to create a worker into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param createEmployeeDTO\n\t * worker related information to create the worker\n\t * @return createEmployeeDTO worker information after creating the worker\n\t * into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to update a worker into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param createEmployeeDTO\n\t * worker related information to create the worker\n\t * @return createEmployeeDTO worker information after creating the worker\n\t * into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic EmployeeDTO updateEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to get the user from system.\n\t * \n\t * @author umamaheswarar\n\t * @param username\n\t * username of the logged in user.\n\t * @return UserDTO user details.\n\t */\n\tpublic UserDTO getUserDetails(final String username);\n\n\t/**\n\t * This method is used to create a position into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param positionDTO\n\t * position related information to create the position\n\t * @return positionDTO position information after creating into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic PositionDTO createJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to update a position into the system.\n\t * \n\t * @author umamaheswarar\n\t * @param positionDTO\n\t * position related information to update the position\n\t * @return positionDTO position information after updating into the system.\n\t * @throws ApplicationCustomException\n\t */\n\tpublic PositionDTO updateJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the time off of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param timeOffDTO\n\t * time off DTO object\n\t * @return TimeOffDTO time off details after saving the details\n\t */\n\tpublic TimeOffDTO manageTimeOff(final TimeOffDTO timeOffDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to change the employee job details\n\t * \n\t * @author umamaheswarar\n\t * @param jobChangeDTO\n\t * job change details\n\t * @return jobChangeDTO job change details after completion\n\t * @throws ApplicationCustomException\n\t * custom application message in case of any exception\n\t */\n\tpublic JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to change the address details of the employee\n\t * \n\t * @author umamaheswarar\n\t * @param employeeAddressDTO\n\t * @return addressChangeEventId address change event id\n\t * @throws ApplicationCustomException\n\t * custom application exception message\n\t */\n\tpublic String changeContactDetails(final EmployeeAddressDTO employeeAddressDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the payroll of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param payrollDTO\n\t * payrollDTO object\n\t * @return payrollDTO payroll details after saving the details\n\t */\n\tpublic PayrollDTO managePayroll(final PayrollDTO payrollDTO) throws ApplicationCustomException;\n\n\t/**\n\t * This method is used to manage the payroll of the employees\n\t * \n\t * @author umamaheswarar\n\t * @param registerDTO\n\t */\n\tpublic boolean register(final RegisterDTO registerDTO)\n\t\t\tthrows ApplicationCustomException, HibernateException, SQLException;\n\n}", "public void flagUser() {\n\t\tsuper.flagUser();\n\t}", "public void setUser_name(String user_name);", "public abstract User getUser();", "public void viewUser() {\n\t\tsuper.viewUser();\n\t}", "public interface UserService{\r\n \r\n\t/**\r\n\t * Creates the user\r\n\t * \r\n\t * @param dto\r\n\t * UserModel\r\n\t * @return User If user account exists\r\n\t * @throws UserExistsException\r\n\t * if user account doesn't exists\r\n\t */\r\n\tUser createUser(UserModel dto) throws UserExistsException;\r\n\r\n\t/**\r\n\t * Returns the User by user name.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t */\r\n\tUser getUserByUsername(String username);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * ChangePasswordModel\r\n\t * @param token\r\n\t * String\r\n\t * @return Returns true if the password change succeeded otherwise false\r\n\t * @throws InvalidTokenException\r\n\t */\r\n\tBoolean changePassword(ChangePasswordModel user, String token) throws InvalidTokenException;\r\n\r\n\t/**\r\n\t * Saves the login info to the repository.\r\n\t * \r\n\t * @param login\r\n\t * UserLogin\r\n\t * @return UserLogin\r\n\t */\r\n\tUserLogin recordLogin(UserLogin login);\r\n\r\n\t/**\r\n\t * Verifies the account is locked or not.\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return Boolean\r\n\t */\r\n\tBoolean isAccountLocked(String username);\r\n\r\n\t/**\r\n\t * Saves the user, password and ContactOptIn.\r\n\t * \r\n\t * @param user User\r\n\t * @return User\r\n\t */\r\n\tUser saveUser(User user);\r\n\r\n\t/**\r\n\t * Creates the password reset token\r\n\t * \r\n\t * @param username\r\n\t * String\r\n\t * @return String Password reset token\r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tString createPasswordResetToken(String username) throws UserNotFoundException;\r\n\r\n\t/**\r\n\t * Returns the Authorities based on user.\r\n\t * \r\n\t * @param user User\r\n\t * @return Authority information\r\n\t */\r\n\tSet<Authority> getAuthorities(User user);\r\n\r\n\t/**\r\n\t * Changes the password.\r\n\t * \r\n\t * @param user\r\n\t * UserModel\r\n\t * @return Boolean\r\n\t * \r\n\t * @throws UserNotFoundException\r\n\t */\r\n\tBoolean changePassword(UserModel user) throws UserNotFoundException;\r\n\r\n}" ]
[ "0.7147196", "0.70014113", "0.68696004", "0.68249965", "0.681545", "0.6756421", "0.6720694", "0.66969204", "0.66680056", "0.66195464", "0.6614376", "0.6613077", "0.66128767", "0.66128767", "0.66128767", "0.6600997", "0.6580437", "0.65402406", "0.6538491", "0.6528872", "0.65241617", "0.6519948", "0.6514921", "0.6454872", "0.6444989", "0.64371806", "0.64371806", "0.6421601", "0.6421601", "0.64205056", "0.64112985", "0.6405485", "0.6398698", "0.639686", "0.63849175", "0.6376805", "0.6367139", "0.6358637", "0.634576", "0.6318119", "0.6310465", "0.6299188", "0.62937695", "0.6284067", "0.628192", "0.62644184", "0.6260856", "0.6246767", "0.62410146", "0.6236882", "0.62269306", "0.62200916", "0.62191755", "0.61976653", "0.61955684", "0.61947536", "0.6192116", "0.6187914", "0.618093", "0.61727947", "0.6158884", "0.6157526", "0.61547977", "0.61540055", "0.61502314", "0.6148041", "0.61469865", "0.61469865", "0.61469865", "0.61458445", "0.6140261", "0.6138975", "0.6137548", "0.6131728", "0.61309654", "0.612432", "0.6121742", "0.61152524", "0.6111572", "0.6107618", "0.6102275", "0.61000276", "0.60962707", "0.6090905", "0.6090805", "0.60637265", "0.60637265", "0.6056249", "0.6054861", "0.6053908", "0.60501915", "0.60498667", "0.6047036", "0.6043164", "0.60391474", "0.6036727", "0.6034764", "0.60306376", "0.6026892", "0.60256255", "0.60247546" ]
0.0
-1
We try to get the players configuration from last time
@Override public void onEnable() { log.info("Loading players file"); try { players = this.load(PLAYERS_CONF_PATH); } catch (Exception e) { } if (players == null) { log.info("players == null, creating Map"); players = new HashMap<String, PlayerConfig>(); } log.info("Enabling CanBadia Plugin"); PluginManager pm = this.getServer().getPluginManager(); getCommand("trade").setExecutor(tradeCommandExecutor); getCommand("god").setExecutor(godCommandExecutor); getCommand("godsfullpower").setExecutor(godCommandExecutor); getCommand("market").setExecutor(marketCommandExecutor); getCommand("class").setExecutor(godCommandExecutor); getCommand("wall").setExecutor(wallCommandExecutor); /*Some other example listeners pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.CREATURE_SPAWN, spawnListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.BLOCK_BURN, blockListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.BLOCK_IGNITE, blockListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Event.Priority.Normal, this); pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PlayerConfig getPlayerConfig(){\n outObject = \"getPlayerConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (PlayerConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (PlayerConfig) inObject;\n }", "public static Map<String, PlayerConfig> getPlayers() {\n return players;\n }", "private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }", "protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}", "private void updatePlayersOptions(){\n\t\tfor(Player player : players.keySet()){\n\t\t\tif(player != null) {\n\t\t\t\tBlackjackHand hand = players.get(player).get(0);\n\t\t\t\tList<GameOptionsEnumeration> options = getGameOptions(player);\n\t\t\t\tupdateHandOptions(player, hand, options);\n\t\t\t}\n\t\t}\n\t}", "GameConfiguration getGameConfiguration();", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public PlayerSet getPlayer(){\n return definedOn;\n }", "public static void generateCustomGameConfiguration() {\n // GameConfig.getInstance().setMapWidthX(20);\n // GameConfig.getInstance().setMapHeightY(20);\n // GameConfig.getInstance().setMaxEnergyPirateValue(100);\n // GameConfig.getInstance().setMonkeyErraticSpeed(1000);\n // GameConfig.getInstance().setMonkeyHunterSpeed(750);\n // GameConfig.getInstance().setRumEnergyValue(10);\n // GameConfig.getInstance().setTimeRumVisibility(10000);\n // GameConfig.getInstance().setRumList(Brain.getInstance().getObjectManager().getRumList());\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // ArrayList<Monkey> monkeyArrayList = new ArrayList<Monkey>();\n // for(int i=0;i<10;i++) {\n // if (i % 2 == 0) {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.ERRATIC));\n // } else {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.HUNTER));\n // }\n // }\n // GameConfig.getInstance().setMonkeyList(monkeyArrayList);\n // for(int i=0;i< Brain.getInstance().getMapManager().getMap().getSquareList().size();i++) {\n // for (int j = 0; j < Brain.getInstance().getMapManager().getMap().getSquareList().get(i).size(); j++) {\n // if (i == 0 || j==0 || i == GameConfig.getInstance().getMapWidthX()-1\n // || j == GameConfig.getInstance().getMapHeightY()-1) {\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.SEA);\n // }else{\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.GROUND);\n // }\n // }\n // }\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // saveGameConfiguration();\n }", "private void fillValues() {\n // TODO\n //copy global config\n //copy player\n Player[] newPlayers = new Player[2];\n if (globalConfiguration.isFirstPlayerHuman()){\n newPlayers[0] = new ConsolePlayer(globalConfiguration.getPlayers()[0].getName());\n }else{\n newPlayers[0] = new RandomPlayer(globalConfiguration.getPlayers()[0].getName());\n }\n if (globalConfiguration.isSecondPlayerHuman()){\n newPlayers[1] = new ConsolePlayer(globalConfiguration.getPlayers()[1].getName());\n }else{\n newPlayers[1] = new RandomPlayer(globalConfiguration.getPlayers()[1].getName());\n }\n //create local config\n this.localConfig = new Configuration(globalConfiguration.getSize(),\n newPlayers, globalConfiguration.getNumMovesProtection());\n\n this.localAudio = AudioManager.getInstance().isEnabled();\n\n //fill in values\n this.sizeFiled.setText(String.valueOf(localConfig.getSize()));\n this.numMovesProtectionField.setText(String.valueOf(localConfig.getNumMovesProtection()));\n this.durationField.setText(String.valueOf(DurationTimer.getDefaultEachRound()));\n\n if (localConfig.isFirstPlayerHuman()){\n this.isHumanPlayer1Button.setText(\"Player 1: Human\");\n }else{\n this.isHumanPlayer1Button.setText(\"Player 1: Computer\");\n }\n\n if (localConfig.isSecondPlayerHuman()){\n this.isHumanPlayer2Button.setText(\"Player 2: Human\");\n }else{\n this.isHumanPlayer2Button.setText(\"Player 2: Computer\");\n }\n\n if (localAudio){\n this.toggleSoundButton.setText(\"Sound FX: Enabled\");\n }else{\n this.toggleSoundButton.setText(\"Sound FX: Disabled\");\n }\n }", "public static void onReload(){\n\t\t\n\t\tfor(World w : Bukkit.getWorlds()){\n\t\t\tw.setGameRuleValue(\"doFireTick\", \"false\");\n\t\t\tw.setGameRuleValue(\"doDaylightCycle\", \"false\");\n\t\t}\n\t\t\n\t\tfor(World w : Bukkit.getWorlds()){\n\t\t\tfor(Player p : w.getPlayers()){\n\t\t\t\tif(w.getPlayers() != null){\n\t\t\t\t\t\n\t\t\t\t\t//add player to respawn HashMap\n\t\t\t\t\tHashMaps.respawn.put(p.getUniqueId(), 20);\n\t\t\t\t\t\n\t\t\t\t\t//sets player health\n\t\t\t\t\tif(p.hasPermission(Permissions.healthLvl1)){\n\t\t\t\t\t\tp.setHealthScale(12);\n\t\t\t\t\t}\n\t\t\t\t\tif(p.hasPermission(Permissions.healthLvl2)){\n\t\t\t\t\t\tp.setHealthScale(14);\n\t\t\t\t\t}\n\t\t\t\t\tif(p.hasPermission(Permissions.healthLvl3)){\n\t\t\t\t\t\tp.setHealthScale(16);\n\t\t\t\t\t}\n\t\t\t\t\tif(p.hasPermission(Permissions.healthLvl4)){\n\t\t\t\t\t\tp.setHealthScale(18);\n\t\t\t\t\t}\n\t\t\t\t\tif(p.hasPermission(Permissions.healthLvl5)){\n\t\t\t\t\t\tp.setHealthScale(20);\n\t\t\t\t\t}\n\t\t\t\t\t//create player data in config\n\t\t\t\t\tif(!Main.player.contains(\"Players.\" + p.getName())){\n\t\t\t\t\t\tPlayerConfig.createPlayerConfig(p);\n\t\t\t\t\t}\n\t\t\t\t\t//put player in HashMaps\n\t\t\t\t\tHashMaps.exp.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"Exp\"));\n\t\t\t\t\tHashMaps.check.put(p.getName(), 0);\n\t\t\t\t\tHashMaps.radio.put(p.getName(), Main.player.getDouble(\"Players.\" + p.getName() + \".\" + \"Rads\"));\n\t\t\t\t\tHashMaps.rads.put(p.getName(), 0);\n\t\t\t\t\tHashMaps.thirst.put(p.getName(), (double) Main.player.getDouble(\"Players.\" + p.getName() + \".\" + \"Thirst\"));\n\t\t\t\t\tHashMaps.temp.put(p.getName(), (double) Main.player.getDouble(\"Players.\" + p.getName() + \".\" + \"Temperature\"));\n\t\t\t\t\tHashMaps.mob_kill.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"MobsKilled\"));\n\t\t\t\t\tHashMaps.player_kill.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"PlayerKilled\"));\n\t\t\t\t\tHashMaps.travel.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"Travelled\"));\n\t\t\t\t\tHashMaps.bandage_use.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"BandagesUsed\"));\n\t\t\t\t\tHashMaps.break_leg.put(p.getName(), Main.player.getInt(\"Players.\" + p.getName() + \".\" + \"BreakeLeg\"));\n\t\t\t\t\t//create scoreboard\n\t\t\t\t\tCreateScoreboard.createScoreboard(p);\n\t\t\t\t\t//add scores to scoreboard\n\t\t\t\t\t//exp score\n\t\t\t\t\tif(!HashMaps.expscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.expscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING EXP\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.expscore.get(p.getName()).setScore(6);\n\t\t\t\t\t//guild score\n\t\t\t\t\tif(!HashMaps.gscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.gscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING GUILD\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.gscore.get(p.getName()).setScore(11);\n\t\t\t\t\t//money score\n\t\t\t\t\tif(!HashMaps.mscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.mscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING MONEY\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.mscore.get(p.getName()).setScore(8);\n\t\t\t\t\t//radioactive score\n\t\t\t\t\tif(!HashMaps.rscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.rscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING RADS\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.rscore.get(p.getName()).setScore(2);\n\t\t\t\t\t//thirst score\n\t\t\t\t\tif(!HashMaps.pscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.pscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING H2O\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.pscore.get(p.getName()).setScore(0);\n\t\t\t\t\t//temperature score\n\t\t\t\t\tif(!HashMaps.tscore.containsKey(p.getName())){\n\t\t\t\t\t\tHashMaps.tscore.put(p.getName(), CreateScoreboard.objective.getScore(\"CHECKING TEMP\"));\n\t\t\t\t\t}\n\t\t\t\t\tHashMaps.tscore.get(p.getName()).setScore(4);\n\t\t\t\t\t//campfire limit\n\t\t\t\t\tHashMaps.stop.put(p.getName(), 0);\n\t\t\t\t\t\n//\t\t\t\t\tSetupEconomy.setupEconomy();\n\t\t\t\t\tCreateScoreboard.createScoreboard(p);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static YamlConfiguration getPlayerYMLConfig(String name) {\r\n\t\t\tif (!name.endsWith(\".yml\")) {\r\n\t\t\t\tname += \".yml\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tFile file = new File(plugin.getDataFolder() + File.separator + \"players\", name);\r\n\t\t\t\r\n\t\t\tif (!file.exists()){\r\n\t\t\t\treturn createPlayerConfig(name);\r\n\t\t\t} else {\r\n\t\t\t\treturn YamlConfiguration.loadConfiguration(file);\r\n\t\t\t}\r\n\t\t}", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "public static YamlConfiguration createPlayerConfig(String name) {\r\n\t\t\tif (!name.endsWith(\".yml\")) {\r\n\t\t\t\tname += \".yml\";\r\n\t\t\t}\r\n\t\t\t\r\n\t File file = new File(plugin.getDataFolder() + File.separator + \"players\", name);\r\n\t if (!file.exists()) {\r\n\t try {\r\n\t file.createNewFile();\r\n\t } catch (IOException e) {\r\n\t \tFPSCaste.log(\"Could not save: \" + name + \", is the disk full?\", Level.WARNING);\r\n\t }\r\n\t }\r\n\t YamlConfiguration playerfile = getPlayerYMLConfig(name);\r\n\t FileConfiguration defaultplayer = getConfig(\"defaultplayer\");\r\n\t \r\n\t for (String key : defaultplayer.getKeys(false)){\r\n\t \tplayerfile.set(key, defaultplayer.get(key));\r\n\t }\r\n\t \r\n\t savePlayerConfig(name, playerfile);\r\n\t return playerfile;\r\n\t\t}", "private String[] getConfiguration() {\n String[] result = new String[6];\n // Query the latest configuration file made and send it back in an array of strings\n String query = \"SELECT * FROM configuration ORDER BY configuration_id DESC LIMIT 1\";\n sendQuery(query);\n try {\n if(resultSet.next()) {\n for (int i = 1; i < 7; i++) {\n result[i-1] = resultSet.getString(i);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }", "private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }", "private void loadLastSong() {\n\t\tif(preferences.getBoolean(Preferences.PREFERENCE_OPENLASTSONGONSTART, Preferences.DEFAULT_OPENLASTSONGONSTART)) {\n\t String lastPlayingSong = preferences.getString(Preferences.PREFERENCE_LASTPLAYINGSONG, Preferences.DEFAULT_LASTPLAYINGSONG);\n \tlong lastPlayingSongFromPlaylistId = preferences.getLong(Preferences.PREFERENCE_LASTPLAYINGSONGFROMPLAYLISTID, Preferences.DEFAULT_LASTPLAYINGSONGFROMPLAYLISTID);\n \tif(lastPlayingSong!=null && (new File(lastPlayingSong).exists())) {\n \t\tif(lastPlayingSongFromPlaylistId!=-1) {\n \t\t\tPlaylistSong savedSong = Playlists.getSavedSongFromPlaylist(lastPlayingSongFromPlaylistId);\n \t\t\tif(savedSong!=null) {\n \t\t\t\tplayItem(savedSong, false);\n \t\t\t}\n \t\t} else {\n \t\t\tFile songDirectory = new File(lastPlayingSong).getParentFile();\n \t\t\tBrowserSong song = new BrowserSong(lastPlayingSong, new BrowserDirectory(songDirectory));\n \t\t\t((MusicPlayerApplication)getApplication()).gotoDirectory(songDirectory);\n \t\t\tplayItem(song, false);\n \t\t}\n\t\t if(preferences.getBoolean(Preferences.PREFERENCE_SAVESONGPOSITION, Preferences.DEFAULT_SAVESONGPOSITION)) {\n\t\t \tint lastSongPosition = preferences.getInt(Preferences.PREFERENCE_LASTSONGPOSITION, Preferences.DEFAULT_LASTSONGPOSITION);\n\t\t \tif(lastSongPosition<getDuration()) seekTo(lastSongPosition);\n\t\t }\n \t}\n }\n\t}", "public static PlayerConfigManager getPlayerConfigManager() {\n return playerConfigManager;\n }", "void updateOnlinePlayers(String skipone) { \r\n DynmapPlayer[] players = server.getOnlinePlayers();\r\n DynmapPlayer[] pl = new DynmapPlayer[players.length];\r\n System.arraycopy(players, 0, pl, 0, pl.length);\r\n if(skipone != null) {\r\n for(int i = 0; i < pl.length; i++)\r\n if(pl[i].getName().equals(skipone))\r\n pl[i] = null;\r\n }\r\n online = pl;\r\n }", "void updatePlayerConfig(IPlayerConfig playerCfg) throws RpcException, StateMachineNotExpectedEventException;", "public void loadCurrentPlayer() {\n\t\tScanner sc;\n\t\tFile file = new File(\"data/current_player\");\n\t\tif(file.exists()) {\n\t\t\ttry {\n\t\t\t\tsc = new Scanner(new File(\"data/current_player\"));\n\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\tString player = sc.nextLine();\n\t\t\t\t\t_currentPlayer= player;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t_currentPlayer = null;\n\t\t\t\t}\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\t\t_currentPlayer = null;\n\t\t}\n\t}", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}", "@Override\n\tpublic GameConfig createDefaultConfig() {\n\n\t\t// Define the allowed player types\n\t\tArrayList<GamePlayerType> playerTypes = new ArrayList<GamePlayerType>();\n\n\t\tplayerTypes.add(new GamePlayerType(\"human player\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRHumanPlayer(name);\n\t\t\t}});\n\t\tplayerTypes.add(new GamePlayerType(\"Computer Player (easy)\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRComputerPlayer(name);\n\t\t\t}\n\t\t});\n\t\tplayerTypes.add(new GamePlayerType(\"Computer Player (normal)\") {\n\t\t\tpublic GamePlayer createPlayer(String name) {\n\t\t\t\treturn new GRComputerPlayerSmart(name);\n\t\t\t}\n\t\t});\n\n\t\t// Create a game configuration class for SlapJack\n\t\tGameConfig defaultConfig = new GameConfig(playerTypes, 2, 2, \"Gin Rummy\", PORT_NUMBER);\n\n\t\t// Add the default players\n\t\tdefaultConfig.addPlayer(\"Human\", 0);\n\t\tdefaultConfig.addPlayer(\"Computer\", 1);\n\n\t\t// Set the initial information for the remote player\n\t\tdefaultConfig.setRemoteData(\"Guest\", \"\", 1);\n\n\t\t//done!\n\t\treturn defaultConfig;\n\t}", "private GameConfig() {\n\t\tgameLoopSleepMs = 200;\n\t}", "private void readPref() {\n // get the last update; if not set, lastUpdate gets 31/12/69\n lastUpdate = sp.getLong(UPDATE, 0); \n System.out.println(\"Time of last update: \" + getDateFromLong(lastUpdate));\n }", "public void getConfiguration(final long lastupdate) {\n Logger.log(Logger.Level.DEBUG, TAG, \"getConfiguration\");\n\n configurationApi.getConfiguration(lastupdate)\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n p -> onConfigurationRequestSucess(p),\n this::onConfigurationRequestFailed\n );\n }", "public boolean loadPlayer(P player){\n\n //Is the player already loaded?\n if(playerMap.containsKey(player)){\n System.out.println(\"Tried to load player \" + player.getName() + \"'s data, even though it's already loaded!\");\n return false;\n } else {\n\n if(data.getConfig().contains(player.getUniqueId().toString())){\n //Load player\n PlayerProfile playerProfile = new PlayerProfile(false, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n } else {\n //Create player profile\n PlayerProfile playerProfile = new PlayerProfile(true, data, player);\n playerMap.put(player, playerProfile);\n\n return true;\n }\n }\n }", "public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }", "void refreshPlayerList(Map<String, IPlayerConfig> playerList) throws RpcException;", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}", "public PerWorldConfig getConfig(World world){\n \t\treturn config.get(world);\n \t}", "private ApolloConfig loadApolloConfig() {\n if (!m_loadConfigRateLimiter.tryAcquire(5, TimeUnit.SECONDS)) {\n //wait at most 5 seconds\n try {\n TimeUnit.SECONDS.sleep(5);\n } catch (InterruptedException e) {\n }\n }\n String appId = m_configUtil.getAppId();\n String cluster = m_configUtil.getCluster();\n String dataCenter = m_configUtil.getDataCenter();\n Tracer.logEvent(\"Apollo.Client.ConfigMeta\", STRING_JOINER.join(appId, cluster, m_namespace));\n int maxRetries = m_configNeedForceRefresh.get() ? 2 : 1;\n long onErrorSleepTime = 0; // 0 means no sleep\n Throwable exception = null;\n\n List<ServiceDTO> configServices = getConfigServices();\n String url = null;\n for (int i = 0; i < maxRetries; i++) {\n List<ServiceDTO> randomConfigServices = Lists.newLinkedList(configServices);\n Collections.shuffle(randomConfigServices);\n //Access the server which notifies the client first\n if (m_longPollServiceDto.get() != null) {\n randomConfigServices.add(0, m_longPollServiceDto.getAndSet(null));\n }\n\n for (ServiceDTO configService : randomConfigServices) {\n if (onErrorSleepTime > 0) {\n logger.warn(\n \"Load config failed, will retry in {} {}. appId: {}, cluster: {}, namespaces: {}\",\n onErrorSleepTime, m_configUtil.getOnErrorRetryIntervalTimeUnit(), appId, cluster, m_namespace);\n\n try {\n m_configUtil.getOnErrorRetryIntervalTimeUnit().sleep(onErrorSleepTime);\n } catch (InterruptedException e) {\n //ignore\n }\n }\n\n url = assembleQueryConfigUrl(configService.getHomepageUrl(), appId, cluster, m_namespace,\n dataCenter, m_remoteMessages.get(), m_configCache.get());\n\n logger.debug(\"Loading config from {}\", url);\n HttpRequest request = new HttpRequest(url);\n\n\n HttpResponse<ApolloConfig> response = m_httpUtil.doGet(request, ApolloConfig.class);\n m_configNeedForceRefresh.set(false);\n m_loadConfigFailSchedulePolicy.success();\n\n\n if (response.getStatusCode() == 304) {\n logger.debug(\"Config server responds with 304 HTTP status code.\");\n return m_configCache.get();\n }\n\n ApolloConfig result = response.getBody();\n\n logger.debug(\"Loaded config for {}: {}\", m_namespace, result);\n\n return result;\n\n // if force refresh, do normal sleep, if normal config load, do exponential sleep\n// onErrorSleepTime = m_configNeedForceRefresh.get() ? m_configUtil.getOnErrorRetryInterval() :\n// m_loadConfigFailSchedulePolicy.fail();\n }\n\n }\n String message = String.format(\n \"Load Apollo Config failed - appId: %s, cluster: %s, namespace: %s, url: %s\",\n appId, cluster, m_namespace, url);\n throw new ApolloConfigException(message, exception);\n }", "@Override\n public String getCurrentPlayer() {\n return godPower.getCurrentPlayer();\n }", "IGameConfig getGameConfig() throws RpcException, StateMachineNotExpectedEventException;", "com.google.protobuf.Any getOldConfig();", "static ArrayList<String> createGameConfig(GameEntityDS1 gameEntityDS1) {\n ArrayList<String> gameConfig = new ArrayList<>();\n gameConfig.add(String.valueOf(gameEntityDS1.getGameId()));\n gameConfig.add(gameEntityDS1.getGamePositions());\n gameConfig.add(String.valueOf(gameEntityDS1.getActiveUsers()));\n gameConfig.add(String.valueOf(gameEntityDS1.getGameSize()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserEntityDS1().getUserId()));\n gameConfig.add(String.valueOf(gameEntityDS1.getGameTheme()));\n gameConfig.add(String.valueOf(gameEntityDS1.getGameMaxPlayers()));\n gameConfig.add(gameEntityDS1.getGameName());\n gameConfig.add(String.valueOf(gameEntityDS1.getGameUsers()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserIdOne()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserIdTwo()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserIdThree()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserIdFour()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserIdTurn()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserOneScore()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserTwoScore()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserThreeScore()));\n gameConfig.add(String.valueOf(gameEntityDS1.getUserFourScore()));\n gameConfig.add(String.valueOf(gameEntityDS1.getActiveServer()));\n\n return gameConfig;\n }", "public Map<String, Player> getPlayersMap(){\n return this.players;\n }", "private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }", "public String[] getNearestPlayer(Player p, PlayerData pd)\r\n/* 60: */ {\r\n/* 61:58 */ Game g = pd.getGame();\r\n/* 62: */ \r\n/* 63:60 */ int x = p.getLocation().getBlockX();\r\n/* 64:61 */ int y = p.getLocation().getBlockY();\r\n/* 65:62 */ int z = p.getLocation().getBlockZ();\r\n/* 66: */ \r\n/* 67:64 */ int i = 200000;\r\n/* 68: */ \r\n/* 69:66 */ Player player = null;\r\n/* 70:68 */ for (String s : g.getPlayers())\r\n/* 71: */ {\r\n/* 72:70 */ Player p2 = Bukkit.getPlayer(s);\r\n/* 73:72 */ if ((p2 != null) && (!p2.equals(p)) && (!pd.isOnTeam(s)))\r\n/* 74: */ {\r\n/* 75:74 */ Location l = p2.getLocation();\r\n/* 76: */ \r\n/* 77:76 */ int c = cal((int)(x - l.getX())) + cal((int)(y - l.getY())) + cal((int)(z - l.getZ()));\r\n/* 78:78 */ if (i > c)\r\n/* 79: */ {\r\n/* 80:79 */ player = p2;\r\n/* 81:80 */ i = c;\r\n/* 82: */ }\r\n/* 83: */ }\r\n/* 84: */ }\r\n/* 85:84 */ if (player != null) {\r\n/* 86:84 */ p.setCompassTarget(player.getLocation());\r\n/* 87: */ }\r\n/* 88:86 */ return new String[] { player == null ? \"none\" : player.getName(), String.valueOf(i) };\r\n/* 89: */ }", "static PlayerState findPlayerState(String playerName) {\n PlayerState playerState = null;\n\n try (Connection connection = DriverManager.getConnection(DatabaseUtil.DB_URL);\n PreparedStatement preparedStatement = connection.prepareStatement(\n \"SELECT * \"\n + \"FROM player_state s, player p, alien_wave w \"\n + \"WHERE s.player_name = p.name \"\n + \"AND s.alien_wave = w.wave \"\n + \"AND s.player_name = ?\")) {\n preparedStatement.setString(1, playerName);\n ResultSet results = preparedStatement.executeQuery();\n if (results.next()) {\n if (StringUtils.isBlank(results.getString(\"name\"))) {\n return null;\n }\n Player player = new Player();\n player.setName(results.getString(\"name\"));\n player.setLastGameStarted(results.getTimestamp(\n \"last_game_started\").toLocalDateTime());\n AlienWave alienWave = new AlienWave();\n alienWave.setWave(results.getInt(\"alien_wave\"));\n alienWave.setDescription(results.getString(\"description\"));\n alienWave.setNumberOfRows(results.getInt(\"number_of_rows\"));\n alienWave.setNumberOfColumns(results.getInt(\"number_of_columns\"));\n alienWave.setMissileSpeed(results.getInt(\"missile_speed\"));\n alienWave.setPoints(results.getInt(\"points\"));\n playerState = new PlayerState();\n playerState.setId(results.getInt(\"id\"));\n playerState.setTerminated(results.getBoolean(\"terminated\"));\n playerState.setScore(results.getInt(\"score\"));\n playerState.setPlayer(player);\n playerState.setAlienWave(alienWave);\n LOGGER.info(String.format(\"Retrieved player, %s, playing in wave: %d with player \"\n + \"state id: %d terminated %s wave: %d alien points: %d.\",\n player.getName(), playerState.getAlienWave().getWave(), playerState.getId(), playerState\n .isTerminated(), playerState.getAlienWave().getWave(), playerState.getAlienWave().getPoints()));\n }\n } catch (SQLException e) {\n LOGGER.error(\"SQLException occurred in findPlayerState().\", e);\n }\n\n return playerState;\n }", "public PlayerProfile getPlayer(P player){\n\n if(playerMap.containsKey(player)){\n //Player is safe to send\n return playerMap.get(player);\n } else {\n //Player isn't safe to send\n System.out.println(\"Tried to grab player \" + player.getName() + \"'s data, but it's not available\");\n return null;\n }\n }", "private void setInfoPlayers() {\n\n\t\t//PLAYER 1\n\t\tlblPlayer1name.setText(players.get(0).getName());\n\t\tlblCashP1.setText(\"\" + players.get(0).getMoney());\n\t\tlblBuildP1.setText(\"\" + players.get(0).getNumberBuildings());\n\t\tlblPropP1.setText(\"\" + players.get(0).getOwnproperties().size());\n\t\tlblPosP1.setText(\"\"+ players.get(0).getPosition());\n\n\t\t//PLAYER 2\n\t\tlblPlayer2name.setText(players.get(1).getName());\n\t\tlblCashP2.setText(\"\" + players.get(1).getMoney());\n\t\tlblBuildP2.setText(\"\" + players.get(1).getNumberBuildings());\n\t\tlblPropP2.setText(\"\" + players.get(1).getOwnproperties().size());\n\t\tlblPosP2.setText(\"\"+ players.get(1).getPosition());\n\t\t\n\t\tif(players.size() > 2){\n\t\t\t//PLAYER 3\n\t\t\tlblPlayerName3.setText(players.get(2).getName());\n\t\t\tlblCashP3.setText(\"\" + players.get(2).getMoney());\n\t\t\tlblBuildP3.setText(\"\" + players.get(2).getNumberBuildings());\n\t\t\tlblPropP3.setText(\"\" + players.get(2).getOwnproperties().size());\n\t\t\tlblPosP3.setText(\"\"+ players.get(2).getPosition());\n\n\t\t\tif(players.size() > 3){\n\t\t\t\t//PLAYER 4\n\t\t\t\tlblPlayerName4.setText(players.get(3).getName());\n\t\t\t\tlblCashP4.setText(\"\" + players.get(3).getMoney());\n\t\t\t\tlblBuildP4.setText(\"\" + players.get(3).getNumberBuildings());\n\t\t\t\tlblPropP4.setText(\"\" + players.get(3).getOwnproperties().size());\n\t\t\t\tlblPosP4.setText(\"\"+ players.get(3).getPosition());\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int loadedPlayers(){\n return playerMap.size();\n }", "public static Player getCurrPlayer(){\n\t\treturn players.get(curr);\n\t}", "static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}", "private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "UUID getActivePlayerId();", "public static boolean hasPlayerConfig(String name) {\r\n\t\t\treturn new File(plugin.getDataFolder() + File.separator + \"players\", name + \".yml\").exists();\r\n\t\t}", "private void loadVariablesFromConfig()\n {\n List<String> spawnNames = (List<String>) spawnConfig.getConfig().getList(\"spawns\");\n for (String spawn : spawnNames) {\n Location location = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spawn.\" + spawn + \".world\")),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".x\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".y\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".z\"));\n location.setPitch(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".pitch\"));\n location.setYaw(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".yaw\"));\n\n spawnLocations.add(location);\n }\n\n // Spectator Spawn\n spectatorSpawn = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spectatorSpawn.world\")),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.x\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.y\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.z\"));\n spectatorSpawn.setPitch(spawnConfig.getConfig().getInt(\"spectatorSpawn.pitch\"));\n spectatorSpawn.setYaw(spawnConfig.getConfig().getInt(\"spectatorSpawn.yaw\"));\n }", "public void determineNextPlayer() {\r\n\t\t// Calculate next player\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Current player number before getting next: \"+currentPlayer.getNumber());\r\n//\t\tif (currentPlayer.getNumber() == 0) {\r\n//\t\t\tif (p2 == null) {currentPlayer = p1;} else {currentPlayer = p2;}\r\n//\t\t} else if (currentPlayer.getNumber() == 1) {\r\n//\t\t\tif (p3 == null) {currentPlayer = p1;} else {currentPlayer = p3;}\r\n//\t\t} else if (currentPlayer.getNumber() == 2) {\r\n//\t\t\tif (p4 == null) {currentPlayer = p1;} else {currentPlayer = p4;}\r\n//\t\t} else {\r\n//\t\t\tcurrentPlayer = p1;\r\n//\t\t}\r\n\t\tcurrentPlayer = currentPlayer.getNextPlayer(); // Method already deals with quit\r\n\t\t\r\n\t\t// Player is alive and not free\r\n\t\tif (!currentPlayer.isFree() && !currentPlayer.isDead()) { \r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Next player is not dead and not free: \"+currentPlayer.getNumber());\r\n\t\t\tturnIsEnding = false;\r\n\t\t\tnewTurn();\r\n\t\t// Player is dead\r\n\t\t} else if (currentPlayer.isDead()) {\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is dead, game is not over so skipping\");\r\n\t\t\t\tendTurn(); // DEATH CONDITION 1.5 & 2 & 2.5\r\n\t\t\t}\r\n\t\t// Player is free\r\n\t\t} else {\r\n\t\t\t// Check if game is over\r\n\t\t\tif (!checkIfGameIsOver()) {\r\n\t\t\t\t// End Game Dragon\r\n\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player is free, game is not over\");\r\n\t\t\t\t// Check if this is the first escaped player\r\n\t\t\t\tif (currentPlayer.getPlayerID().contentEquals(firstEscapee.getPlayerID())) {\r\n\t\t\t\t\t// Advance the room and draw next sprite\r\n\t\t\t\t\tcurrentPlayer.setCurrentRoom(currentPlayer.getCurrentRoom()+1);\r\n\t\t\t\t\tint room = currentPlayer.getCurrentRoom();\r\n\t\t\t\t\tcurrentPlayer.getPiece().setX(GlobalVars.playerCoordsPerRoom[room][0]+GlobalVars.playersOffset[currentPlayer.getNumber()][0]);\r\n\t\t\t\t\tcurrentPlayer.getPiece().setY(GlobalVars.playerCoordsPerRoom[room][1]+GlobalVars.playersOffset[currentPlayer.getNumber()][1]);\r\n\t\t\t\t\t// If last room, kill the rest of the players\r\n\t\t\t\t\tif (room == 43) {\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] First escapee has reached last room. Killing all other players\");\r\n\t\t\t\t\t\tfor (int i = 0; i < players.size(); i++) {\r\n\t\t\t\t\t\t\tif (!players.get(i).isDead() && !players.get(i).isFree()) {\r\n\t\t\t\t\t\t\t\tdeath(players.get(i)); // DEATH CONDITION 3.5\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Not run through death because turnIsEnding = true\r\n\t\t\t\t\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\t\t\t\t\tgameOver();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Not last stage so keep going\r\n\t\t\t\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Advanced room in end sequence\");\r\n\t\t\t\t\t\tgameChannel.sendMessage(\":skull: Only **\"+(43-room)+\"** turn(s) left!\").queueAfter(2000,TimeUnit.MILLISECONDS);\r\n\t\t\t\t\t\t// Increased cube dragon attack\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]+room-39);\r\n\t\t\t\t\t\t// Even if the last player died, should pass and then end game\r\n\t\t\t\t\t\tendTurn();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Not first escapee but also free\r\n\t\t\t\t\tendTurn();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Config(HG plugin)\r\n/* 38: */ {\r\n/* 39:46 */ if (!new File(plugin.getDataFolder(), \"config.yml\").exists())\r\n/* 40: */ {\r\n/* 41:47 */ Util.log(\"Config not found. Generating default config!\");\r\n/* 42:48 */ plugin.saveDefaultConfig();\r\n/* 43: */ }\r\n/* 44:51 */ config = plugin.getConfig().getRoot();\r\n/* 45:52 */ config.options().copyDefaults(true);\r\n/* 46:53 */ plugin.reloadConfig();\r\n/* 47:54 */ config = plugin.getConfig();\r\n/* 48: */ \r\n/* 49:56 */ spawnmobs = config.getBoolean(\"settings.spawn-mobs\");\r\n/* 50:57 */ spawnmobsinterval = config.getInt(\"settings.spawn-mobs-interval\") * 20;\r\n/* 51:58 */ freeroam = config.getInt(\"settings.free-roam\");\r\n/* 52:59 */ trackingstickuses = config.getInt(\"settings.trackingstick-uses\");\r\n/* 53:60 */ playersfortrackingstick = config.getInt(\"settings.players-for-trackingstick\");\r\n/* 54:61 */ maxchestcontent = config.getInt(\"settings.max-chestcontent\");\r\n/* 55:62 */ teleAtEnd = config.getBoolean(\"settings.teleport-at-end\");\r\n/* 56:63 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 57:64 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 58:65 */ cash = config.getInt(\"reward.cash\");\r\n/* 59:66 */ maxTeam = config.getInt(\"settings.max-team-size\");\r\n/* 60:67 */ giveReward = config.getBoolean(\"reward.enabled\");\r\n/* 61:68 */ cash = config.getInt(\"reward.cash\");\r\n/* 62:69 */ breakblocks = config.getBoolean(\"rollback.allow-block-break\");\r\n/* 63:70 */ blocks = config.getIntegerList(\"rollback.editable-blocks\");\r\n/* 64:71 */ randomChest = config.getBoolean(\"random-chest.enabled\");\r\n/* 65:72 */ randomChestInterval = config.getInt(\"random-chest.interval\") * 20;\r\n/* 66:73 */ randomChestMaxContent = config.getInt(\"random-chest.max-chestcontent\");\r\n/* 67:75 */ if (giveReward) {\r\n/* 68: */ try\r\n/* 69: */ {\r\n/* 70:77 */ Vault.setupEconomy();\r\n/* 71: */ }\r\n/* 72: */ catch (NoClassDefFoundError e)\r\n/* 73: */ {\r\n/* 74:79 */ Util.log(\"Unable to setup vault! Rewards will not be given out..\");\r\n/* 75:80 */ giveReward = false;\r\n/* 76: */ }\r\n/* 77: */ }\r\n/* 78:84 */ ItemStack i = new ItemStack(Material.FIREWORK, 64);\r\n/* 79:85 */ FireworkMeta fm = (FireworkMeta)i.getItemMeta();\r\n/* 80:86 */ List<Color> c = new ArrayList();\r\n/* 81:87 */ c.add(Color.ORANGE);\r\n/* 82:88 */ c.add(Color.RED);\r\n/* 83:89 */ FireworkEffect e = FireworkEffect.builder().flicker(true).withColor(c).withFade(c).with(FireworkEffect.Type.BALL_LARGE).trail(true).build();\r\n/* 84:90 */ fm.addEffect(e);\r\n/* 85:91 */ fm.setPower(3);\r\n/* 86:92 */ i.setItemMeta(fm);\r\n/* 87: */ \r\n/* 88:94 */ firework = i;\r\n/* 89: */ }", "private void setPlayerInformations() {\n\t\t\t\n\t\t\t\n\t\t}", "public static void savePlayerNames() {\r\n\t\tMain.player1 = GameSetup.choiceBoxPlayer1.getSelectedItem();\r\n\t\tMain.player2 = GameSetup.choiceBoxPlayer2.getSelectedItem();\r\n\t\tMain.player3 = GameSetup.choiceBoxPlayer3.getSelectedItem();\r\n\t\t\r\n\t\t//Don't show fourth player if playing 3 handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tMain.player4 = GameSetup.choiceBoxPlayer4.getSelectedItem();\r\n\t\t}\r\n\t}", "public void showPlayerStats(Player player)\n\t{\n\t\tsynchronized (offlineDataYml)\n\t\t{\n\t\t\tYamlConfiguration yaml = YamlConfiguration.loadConfiguration(offlineDataYml);\n\t\t\tif(!yaml.isSet(player.getUniqueId().toString()))\n\t\t\t{\n\t\t\t\t//no datas\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tDouble earnings = 0.0;\n\t\t\tDouble losses = 0.0;\n\t\t\t\n\t\t\t\n\t\t\tString earningspath = player.getUniqueId().toString() + \".earnings\";\n\t\t\tString lossespath = player.getUniqueId().toString() + \".losses\";\n\t\t\tif(yaml.isSet(earningspath))\n\t\t\t{\n\t\t\t\tearnings = yaml.getDouble(earningspath);\n\t\t\t}\n\t\t\tif(yaml.isSet(lossespath))\n\t\t\t{\n\t\t\t\tlosses = yaml.getDouble(lossespath);\n\t\t\t}\n\t\t\t\n\t\t\tyaml.set(player.getUniqueId().toString(), null); //delete node to reset\n\t\t\t\n\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-message\")\n\t\t\t.replace(\"%earnings%\", Main.econ.format(earnings))\n\t\t\t.replace(\"%losses%\", Main.econ.format(losses)));\n\t\t\t\n\t\t\tif(earnings > losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-plus\")\n\t\t\t\t.replace(\"%win%\", Main.econ.format(earnings - losses)));\n\t\t\t}\n\t\t\telse if(earnings < losses)\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-minus\")\n\t\t\t\t.replace(\"%loss%\", Main.econ.format(losses - earnings)));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tplayer.sendMessage(CasinoManager.getPrefix() + MessageManager.get(\"offlineearnmanager-join-equal\"));\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tyaml.save(offlineDataYml);\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\tCasinoManager.LogWithColor(ChatColor.RED + \"Error while trying to save offlinedata.yml! \" + e.getMessage());\n\t\t\t\te.printStackTrace(CasinoManager.getPrintWriterForDebug());\n\t\t\t}\n\t\t}\n\t}", "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "int getLastUpdatedTurn();", "@Override\r\n\tpublic void playerInit(GameEngine engine, int playerID) {\r\n\t\towner = engine.getOwner();\r\n\t\treceiver = engine.getOwner().receiver;\r\n\t\tnumColors[playerID] = 4;\r\n\t\tojamaHard[playerID] = 4;\r\n\t\tcountdownDecremented[playerID] = true;\r\n\t\tojamaChecked[playerID] = false;\r\n\r\n\t\tif(engine.getOwner().replayMode == false) {\r\n\t\t\tloadOtherSetting(engine, engine.getOwner().modeConfig);\r\n\t\t\tloadPreset(engine, engine.getOwner().modeConfig, -1 - playerID, \"spf\");\r\n\t\t\tversion = CURRENT_VERSION;\r\n\t\t} else {\r\n\t\t\tloadOtherSetting(engine, engine.getOwner().replayProp);\r\n\t\t\tloadPreset(engine, engine.getOwner().replayProp, -1 - playerID, \"spf\");\r\n\t\t\tversion = owner.replayProp.getProperty(\"avalanchevs.version\", 0);\r\n\t\t}\r\n\t}", "public String getCurrentPlayer() {\r\n return this.playerIds[this.currentPlayer];\r\n }", "@Override\r\n public void doUpdateConfig(GameConfig game)\r\n {\n \r\n }", "private void loadOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.loadOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tojamaHard[playerID] = 4;\r\n\t\tojamaRate[playerID] = prop.getProperty(\"avalanchevsspf.ojamaRate.p\" + playerID, 120);\r\n\t\tojamaCountdown[playerID] = prop.getProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, 3);\r\n\t\tdropSet[playerID] = prop.getProperty(\"avalanchevsspf.dropSet.p\" + playerID, 4);\r\n\t\tdropMap[playerID] = prop.getProperty(\"avalanchevsspf.dropMap.p\" + playerID, 0);\r\n\t}", "private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Card[] getLastCardsPlayed() {\n return lastCards;\n }", "private void setupPlayers() {\n\t\tuserData=(UserData) Main.currentStage.getUserData();\n\t\tnumberPlayers=userData.getNumberPlayers();\n\t\tplayerNames=userData.getPlayerNames();\n\t\tcurrentPlayer=userData.getFirstPlayer();\n\t\tlb_currentplayername.setText(playerNames[currentPlayer]);\n\t\tplayers =new Player[4];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif(i<numberPlayers) {\n\t\t\t\tplayers[i]=new Player(playerNames[i], false, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//waiting for player choose what way to go then handler that choice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayers[i]=new Player(playerNames[i], true, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//randomchoice and next player rolldice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\tswitch (i) {\n\t\t\t\tcase 0:{\n\t\t\t\t\tplayers[i].setHorseColor(yh0, yh1, yh2, yh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tplayers[i].setHorseColor(bh0, bh1, bh2, bh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tplayers[i].setHorseColor(rh0, rh1, rh2, rh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tplayers[i].setHorseColor(gh0, gh1, gh2, gh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "static void saveAllPlayersToFiles(){\n \tfor( String playername : GoreaProtect.playersData.getKeys(false))\n \t{\n \t\tFile playerfile = new File(GoreaProtect.datafolder + File.separator + \"Protections\");\n \t\tFile fileplayer= new File(playerfile, playername + \".yml\");\n\n \t\tConfigurationSection playerdata = GoreaProtect.playersData.getConfigurationSection(playername);\n\n \t\tYamlConfiguration PlayersDatayml = new YamlConfiguration();\n\n \t\tfor (String aaa:playerdata.getKeys(false))\n \t\tPlayersDatayml.set(aaa, playerdata.get(aaa));\n \t\t\n \t\t\n \t\ttry {\n\t\t\t\tPlayersDatayml.save(fileplayer);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n \t} \n }", "@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void onLookUp(PlatformPlayer player) {\n\t\t\n\t}", "@Override\n public PlaygroundConfig getPlaygroundConfig(){\n outObject = \"getPlaygroundConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (PlaygroundConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (PlaygroundConfig) inObject;\n }", "public String getSavePitchLast(String team) {\n\n String savePitchLast = \"\";\n\n // if the game status is in preview, pre-game, or warmup\n if (getGameStatus(team).equals(\"Preview\") || getGameStatus(team).equals(\"Pre-Game\") || getGameStatus(team).equals(\"Warmup\")) {\n try {\n if (compareDates(getGameInfo(team, \"original_date\"), 3)) {\n savePitchLast = getPlayerInfo(team, \"home_probable_pitcher\",\"last\");\n }\n else {\n savePitchLast = \"\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n // if the game is in progress get the current pitcher\n if (getGameStatus(team).equals(\"In Progress\")) {\n savePitchLast = getPlayerInfo(team, \"pitcher\",\"last\");\n }\n if (getGameStatus(team).equals(\"Game Over\") || getGameStatus(team).equals(\"Final\") || getGameStatus(team).equals(\"Completed Early\")) {\n savePitchLast = getPlayerInfo(team, \"save_pitcher\",\"last\");\n }\n\n return savePitchLast;\n }", "public GameInfo gameInfoFromJSON(JSONObject gameCreateResponseJSON){\n\n String gameCreateResponseStr = gameCreateResponseJSON.toString();\n\n /*\n GameInfo newGameInfo = gsonConverter.fromJson(gameCreateResponseStr, GameInfo.class);\n System.out.println(\">>>JSONTRANSLATOR: gameCreateRespFromJSON: newGameInfo = \" + newGameInfo.toString());\n System.out.println(\">>>newGameInfoPlayersArr size= \" + newGameInfo.getPlayers().size());\n */\n\n //need to make sure that the players array is not counting empty players as spots\n\n //may do parse manually. trying here:\n GameInfo newGameInfo = new GameInfo();\n // System.out.println(\">>>JSONTRANSLATOR: gameCreateRespFromJSON: gameCreateRespStr= \" + gameCreateResponseStr);\n newGameInfo.setTitle(gameCreateResponseJSON.getString(\"title\"));\n newGameInfo.setId(gameCreateResponseJSON.getInt(\"id\"));\n\n ArrayList<PlayerInfo> tempPIArrayList = new ArrayList<>();\n //we're checking on login that they don't have any blank names, null strings, etc.\n //so we can use the player Name to check if they're a real player or not.\n //only add players to the ArrayList if their name is NOT a null/empty string.\n //this should ensure that each GameInfo object's list of playerInfos only contains real players and not the default null PIs.\n JSONArray newGamePlayerInfosJSONArr = gameCreateResponseJSON.getJSONArray(\"players\");\n\n // System.out.println(\"\\t ******* picking out real playerInfos:\");\n //go through array result from JSON, and add each REAL player to the ArrayList\n for (int p = 0; p < newGamePlayerInfosJSONArr.length(); p++) {\n JSONObject currPlayerInfoJSON = newGamePlayerInfosJSONArr.getJSONObject(p);\n String currPlayerInfoStr = currPlayerInfoJSON.toString();\n // System.out.println(\"\\t\\tCurrPlayerInfo= \" + currPlayerInfoStr);\n\n //check if it's a real player or just blank\n if(!currPlayerInfoStr.equals(\"{}\")){\n //it's ok to make PlayerInfo object, since it's not blank\n PlayerInfo newPlayerInfo = gsonConverter.fromJson(currPlayerInfoStr, PlayerInfo.class);\n tempPIArrayList.add(newPlayerInfo);\n\n // System.out.println(\"\\t Player was good, added player: \" + newPlayerInfo);\n }\n else{\n //it was blank, so don't add it to the arraylist\n // System.out.println(\"\\t Player was null, skipping add\");\n }\n }\n\n newGameInfo.setPlayers(tempPIArrayList);\n\n // System.out.println(\"\\t *******>FINAL GAMEINFO: \" + newGameInfo + \", playersArr size= \" + newGameInfo.getPlayers().size());\n\n return newGameInfo;\n }", "@Override\n public List<Player> getPlayers() {\n return players;\n }", "private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }", "public ProfileConfig getCurrentProfileConfig() {\n return this.currentProfileConfig;\n }", "public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Object savePlayers() {\n Hashtable<String, String> playerTable = new Hashtable<>();\n for(UUID id : playerRegistry.keySet()) {\n playerTable.put(id.toString(), playerRegistry.get(id));\n }\n return playerTable;\n }", "public PlayerSetup() {\n\t\tgetNumPlayers();\n\t\tcreatePlayers();\n\t\t\n\t\tSystem.out.println(\"\\n\" + Players.getInstance().toString() );\n\t}", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "public WalletConfig getCurrentWalletConfig() {\n WalletConfig config = getWalletConfig(PrefsUtil.getCurrentWalletConfig());\n if (config == null && mWalletConfigsJson.mConnections.size() > 0) {\n PrefsUtil.edit().putString(PrefsUtil.CURRENT_WALLET_CONFIG, mWalletConfigsJson.mConnections.get(0).getAlias()).commit();\n return mWalletConfigsJson.mConnections.get(0);\n }\n\n return config;\n }", "public void initConfigurations() {\r\n for (int configId = 0; configId < savedConfigurations.length; configId++) {\r\n if (configId == InterfaceConfiguration.HD_TEXTURES.getId()) {\r\n continue;\r\n }\r\n int value = savedConfigurations[configId];\r\n if (value != 0) {\r\n set(configId, value, false);\r\n }\r\n }\r\n }", "public MultiplayerGameTypeConfigurationData() {\n\t\t// init empty MultiplayerGameTypeConfigurationData\n\t}", "@Override\n\tpublic void loadPlayerCannons() {\n\t\t\n\t}", "public GameConfig createDefaultConfig() {\n\n return null;\n }", "private static void initStatistics(Player p){\n }", "private void handlePlayerConnect(Player player) {\n server.runTaskLater(() -> server.getPaymentLog().checkPendingAccepts(player), 1500, TimeUnit.MILLISECONDS);\n\n if (player.hasPermission(Rank.ADMIN)) {\n server.runTaskLater(() -> server.getDataSource().getCollection(\"archon\", \"dailytop\").count((result, t) -> {\n if (result == null) {\n result = 0L;\n }\n\n List<String> msg = new ArrayList<>();\n msg.add(\"&8\" + Message.BAR);\n msg.add(\"&6[&c&lArchon&6] &aProxy \" + player.getProxy().getId() + \" &7[\" + player.getRegion().name() + \" Network]\");\n msg.add(\"\");\n msg.add(\"&e[Today]\");\n int mostOnlineToday = server.getCache().getCurrentMostOnline();\n int uniqueLoginsToday = (int) (long) result;\n int newPlayersToday = server.getCache().getCurrentNewPlayers();\n\n try (Connection conn = server.getDataSource().getConnection();\n Statement stmt = conn.createStatement()) {\n // 1-day stats\n try (ResultSet rs = stmt.executeQuery(\"SELECT most_online, unique_logins, new_players FROM dailytop WHERE date = (SELECT MAX(date) FROM dailytop)\")) {\n if (rs.next()) {\n int mostOnlineYesterday = rs.getInt(\"most_online\");\n int uniqueLoginsYesterday = rs.getInt(\"unique_logins\");\n int newPlayersYesterday = rs.getInt(\"new_players\");\n\n double mostOnlineChange = Util.getPercentageChange(mostOnlineYesterday, mostOnlineToday);\n String disp = (mostOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(mostOnlineChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6Most Online: &d\" + Util.addCommas(mostOnlineToday) + \" \" + disp);\n\n double uniqueLoginsChange = Util.getPercentageChange(uniqueLoginsYesterday, uniqueLoginsToday);\n disp = (uniqueLoginsChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(uniqueLoginsChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6Unique Logins: &d\" + Util.addCommas(uniqueLoginsToday) + \" \" + disp);\n\n double newPlayersChange = Util.getPercentageChange(newPlayersYesterday, newPlayersToday);\n disp = (newPlayersChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(newPlayersChange) + \"% &7from yesterday)\";\n msg.add(\"&7* &6New Players: &d\" + Util.addCommas(newPlayersToday) + \" \" + disp);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n ZonedDateTime time = ZonedDateTime.now(ZoneId.of(\"America/Los_Angeles\"));\n msg.add(\"&e[From yesterday at this hour: \" + time.format(DateTimeFormatter.ofPattern(\"h a\")) + \" \" + time.getZone().getDisplayName(TextStyle.FULL, Locale.ENGLISH) + \"]\");\n // prev day (same hour) stats\n try (ResultSet rs = stmt.executeQuery(\"SELECT online, most_online, unique_logins, new_players FROM daily_stats WHERE DATE(time) = DATE(SUBDATE(UTC_TIMESTAMP, 1)) && HOUR(time) = HOUR(UTC_TIMESTAMP) LIMIT 1;\")) {\n if (rs.next()) {\n int onlineYesterday = rs.getInt(\"online\");\n int mostOnlineYesterday = rs.getInt(\"most_online\");\n int uniqueLoginsYesterday = rs.getInt(\"unique_logins\");\n int newPlayersYesterday = rs.getInt(\"new_players\");\n\n double currentOnlineChange = Util.getPercentageChange(onlineYesterday, server.getOnlineCount());\n String disp = (currentOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(currentOnlineChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Online: &b\" + Util.addCommas(onlineYesterday) + \" \" + disp);\n\n double mostOnlineChange = Util.getPercentageChange(mostOnlineYesterday, mostOnlineToday);\n disp = (mostOnlineChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(mostOnlineChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Most Online: &b\" + Util.addCommas(mostOnlineYesterday) + \" \" + disp);\n\n double uniqueLoginsChange = Util.getPercentageChange(uniqueLoginsYesterday, uniqueLoginsToday);\n disp = (uniqueLoginsChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(uniqueLoginsChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3Unique Logins: &b\" + Util.addCommas(uniqueLoginsYesterday) + \" \" + disp);\n\n double newPlayersChange = Util.getPercentageChange(newPlayersYesterday, newPlayersToday);\n disp = (newPlayersChange < 0 ? \"&7(&c\" : \"&7(&a+\") + format.format(newPlayersChange) + \"% &7from yesterday at this hour)\";\n msg.add(\"&7* &3New Players: &b\" + Util.addCommas(newPlayersYesterday) + \" \" + disp);\n } else {\n msg.add(\"&7&oNo data to display from this time.\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n msg.add(\"&8\" + Message.BAR);\n\n try (ResultSet rs = stmt.executeQuery(\"SELECT (SELECT COUNT(*) FROM votes) AS total, COUNT(*) AS today FROM votes WHERE DATE(time) = CURDATE();\")) {\n if (rs.next()) {\n msg.add(\"&aVotes Today: &7\" + Util.addCommas(rs.getInt(\"today\"))\n + \"&a, Total Votes: &7\" + Util.addCommas(rs.getInt(\"total\")) + \" (\" + Util.humanReadableNumber(rs.getInt(\"total\")) + \")\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n player.message(msg);\n }), 1, TimeUnit.SECONDS);\n }\n }", "private void m18727a(JSONObject jSONObject) {\n if (jSONObject != null) {\n try {\n this.f16696a = jSONObject.optLong(\"last_config_time\", -1);\n this.f16697b = (jSONObject.optLong(\"oc_interval\", -1) * 60) * 1000;\n } catch (Exception e) {\n OnlineConfigLog.m18737w(C4766a.f16698a, \"fail to parce online config response\", e);\n }\n }\n }", "private void loadSettings() {\n//\t\tSharedPreferences prefs = this.getSharedPreferences(Defs.PREFS_NAME, 0);\n//\t\t\n//\t\tString fileData = prefs.getString(Defs.PREFS_KEY_PREV_RATES_FILE, \"\");\n//\t\tLog.d(TAG, \"Loaded last \" + fileData);\n//\t\tif ( fileData.length() > 0 ) {\n//\t\t\tByteArrayInputStream bias = new ByteArrayInputStream(fileData.getBytes());\n//\t\t\t_oldRates = new ExchangeRate();\n//\t\t\tparseRates(bias, _oldRates);\n//\t\t}\n\t}", "private String getPlaymeidFromConfig(){\n\t\tString playmeid = \"\";\n\t\ttry {\n\t\t\tString filePath = \"/system/etc/manufactory.conf\";\n\t\t\tFile file = new File(filePath);\n\t\t\tif (!file.isFile()) {\n\t\t\t\treturn playmeid;\n\t\t\t}\n\t\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\t\tint length = fin.available();\n\t\t\tif(length == 32){\n\t\t\t\tbyte[] buffer = new byte[length];\n\t\t\t\tfin.read(buffer);\n//\t\t\t\tplaymeid = EncodingUtils.getString(buffer, \"UTF-8\");\n\t\t\t\tfin.close();\n\t\t\t\treturn new String(buffer);\n\t\t\t}\n\t\t\tfin.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn playmeid;\n\t}", "public boolean checkIfPlayerInList(Player player, Player player1) {\n for(int i = 0; i < core.getPlayers().get(player).size(); i++) {\n /*\n if(core.getPlayers().get(player).contains(configList.get(i))) {\n core.getPlayers().get(player).add(configList.get(i));\n }\n */\n if (core.getPlayers().get(player).get(i).equalsIgnoreCase(player1.getName())) {\n return true;\n }\n }\n return false;\n }", "public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}", "private Optional<Player> findPlayer(String playerName, StrategyType strategyType) {\n for (Player player : players) {\n if (player.getName().equals(playerName) && (player.getStrategyType() == strategyType)) {\n return Optional.of(player);\n }\n }\n return Optional.empty();\n }", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "public static void getConfig(){\n\t\tSystem.out.println(\"Name = \" + name);\n\t\tSystem.out.println(\"PrepositionLength = \" + prepositionLength);\n\t\tSystem.out.println(\"PrepositionDelay = \" + prepositionDelay );\n\t\tSystem.out.println(\"Strings = \" + setOfStrings.length);\n\t\tfor(int i = 0; i < setOfStrings.length; i++){\n\t\t\tSystem.out.println(\"LowNote = \" + setOfStrings[i].lowNote);\n\t\t\tSystem.out.println(\"HighNote = \" + setOfStrings[i].highNote);\n\t\t\tString output = \"\";\n\t\t\tfor(int j = 0; j < setOfStrings[i].interval.length;j++){\n\n\t\t\t\toutput += setOfStrings[i].interval[j] + \",\";\n\t\t\t}\n\t\t\tSystem.out.println(output);\n\t\t}\n\t}", "void acknowledgeConfiguration() {\n // First ensure that both players have their correct color\n Player player0 = game.getPlayers().get(0);\n Player player1 = game.getPlayers().get(1);\n player1.setStone(player0.getStone() == Stone.BLACK ? 2 : 1);\n\n leader.acknowledgeConfig();\n opponent.acknowledgeConfig();\n }", "private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}", "public Data repeatedConfig(Dictionary dict){\n String config = gameBoardToString();\n\n // Returns Data object for key config if found. Otherwise, returns null\n return dict.get(config);\n }", "private void peek_server_update(){\n java.util.Timer timer = new java.util.Timer(true);\n TimerTask taskPeek = new TimerTask() {\n public void run() {\n try {\n String user_id = RegistrationManager.getUserId();\n if (user_id == null || user_id.length() == 0) {\n return;\n }\n// WifiManager wifi = (WifiManager) getSystemService(WIFI_SERVICE);\n// if (wifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED) {\n// JsonManager.peek_request(user_id);\n// }\n JsonManager.peek_request(user_id);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n };\n JsonManager.getServerConfig();\n int periodPeek = Config.PEEK_TIMER() * 1000;\n timer.schedule(taskPeek, periodPeek, periodPeek);\n }" ]
[ "0.61825883", "0.61688405", "0.59623015", "0.58741397", "0.57406324", "0.5644512", "0.5626778", "0.55317974", "0.5490031", "0.54791164", "0.54567945", "0.54477775", "0.5441126", "0.54291683", "0.54230756", "0.5422074", "0.541756", "0.5414876", "0.5406209", "0.53869885", "0.5384511", "0.5378468", "0.5362071", "0.53612214", "0.5346885", "0.5325532", "0.5321206", "0.53208864", "0.5317638", "0.5315141", "0.5309147", "0.5309147", "0.5261216", "0.52313054", "0.52229756", "0.521981", "0.52186775", "0.52180433", "0.52074367", "0.5204707", "0.5162941", "0.5152757", "0.5147524", "0.5130852", "0.51249963", "0.5123082", "0.51210606", "0.5116048", "0.5080747", "0.5074906", "0.50566185", "0.50502235", "0.50413185", "0.5032056", "0.5031017", "0.5023529", "0.502113", "0.50126076", "0.49951008", "0.49689573", "0.49681866", "0.49668437", "0.4963266", "0.49604192", "0.49544638", "0.49501994", "0.49435624", "0.49385467", "0.49342674", "0.49279687", "0.4923961", "0.49223945", "0.49217173", "0.49189797", "0.49158663", "0.4908601", "0.49051574", "0.49034932", "0.49030977", "0.49020538", "0.49017343", "0.48988947", "0.48987275", "0.4897224", "0.4888686", "0.48767185", "0.48742762", "0.48730564", "0.48722312", "0.4866073", "0.48659813", "0.48647243", "0.48594382", "0.48591644", "0.48589793", "0.4858", "0.48572043", "0.48569345", "0.48561144", "0.4851983" ]
0.49920505
59
Get the Map(UserName, Map(configName, object))
public static Map<String, PlayerConfig> getPlayers() { return players; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.getName(), userOne);\n users.put(userTwo.getName(), userTwo);\n\n return users;\n }", "public Map<Object, Object> getUserMap() {\n\t\treturn userMap;\n\t}", "public HashMap<String, Object> getUserConfig() {\n return userConfig;\n }", "Map<String, Object> getUserProfile();", "public Map<String, Object> toMap() {\n\t\tMap<String, Object> map = new LinkedHashMap<String, Object>();\n\t\tmap.put(\"user_id\", user_id);\n\t\tmap.put(\"username\", username);\n\t\tmap.put(\"password\", \"confidential\");\n\t\tmap.put(\"email\", email);\n\t\tmap.put(\"mobile\", mobile);\n\t\tmap.put(\"dep_id\", dep_id);\n\t\tmap.put(\"creator\", creator);\n\t\tmap.put(\"create_time\", create_time);\n\t\tmap.put(\"last_login_addr\", last_login_addr);\n\t\tmap.put(\"last_login_time\", last_login_time);\n\t\tmap.put(\"user_enable\", user_enable);\n\t\tmap.put(\"user_status\", user_status);\n\t\treturn map;\n\t}", "java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();", "Map<String, Object> getPropertiesAsMap();", "public Map<String, IUser> getUserMap() {\n return userMap;\n }", "Map<String, Object> readConfig(Request request, String id);", "public static final Map<String,String> getAcctAndConfig(){\n Map<String,String> configMap = new HashMap<String,String>();\n configMap.putAll(getConfig());\n\n // Account Credential\n configMap.put(\"acct1.UserName\", \"davidvuletas-facilitator_api1.hotmail.com\");\n configMap.put(\"acct1.Password\", \"9VDE7D2FNEEV7NNZ\");\n configMap.put(\"acct1.Signature\", \"A3ejB8ILKLcnXEmI9gnSbvIApl3WAKiiOReECJ1icAFpbFLuYNW0O1sN\");\n configMap.put(\"acct1.AppId\", \"APP-80W284485P519543T\");\n\n // Sandbox Email Address\n configMap.put(\"sandbox.EmailAddress\", \"[email protected]\");\n\n return configMap;\n }", "Map<String, Object> createConfig(Request request, String configtype);", "Map<Long, Map<String, Parametro>> getParametrosConfigMap();", "Map<String, String> getConfigProperties();", "public Map<String, Object> getInfo();", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "private Map<String, Object> userMap(boolean synced) {\n Map<String, Object> user = new HashMap<>();\n user.put(IS_SYNCED, synced);\n if(!synced) {\n user.put(FIRST, sUserInfo.getFirstName());\n user.put(LAST, sUserInfo.getLastName());\n user.put(EMAIL, sUserInfo.getEmail());\n }\n return user;\n }", "public Map<String, InterceptABTestModel> getConfigMap() {\n return Collections.unmodifiableMap(configMap);\n }", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "public Map getUserSelectFromMap(User user) {\n\t\t\r\n\t\tList us = dao.getUsers(null);\r\n\t\t\r\n\t\tMap reply = new LinkedHashMap();\r\n\t\t\r\n\t Iterator it = us.iterator();\r\n \treply.put(\"0\",\"==业务员==\");\r\n\t while(it.hasNext()){\r\n\t \t\r\n\t \tUser users = (User) it.next();\r\n\t \t\r\n\t \treply.put(users.getId(),users.getFullName());\r\n\t }\r\n\t\treturn reply;\r\n\t\t\r\n\t}", "protected Map getProfileMap() {\n \t\t\treturn profileMap;\n \t\t}", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public Map getProperties();", "<K extends Object, V extends Object> Map<K, V> getMap(String mapName);", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "@SuppressWarnings(\"unchecked\")\n private Map<String, String> getUsers() {\n try {\n return (HashMap<String, String>) FileUtil.getInstance().readObjectFromFile(openFileInput(\"users.ser\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return new HashMap<>();\n }", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();", "public static Map<Property, String> getProperties(User user) {\n HashMap<Property, String> result = new HashMap<>();\n result.put(PASSWORD, user.getPassword());\n return result;\n }", "List<Map<String,Object>> getConfigList(Request request, String configtype);", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "java.util.Map<java.lang.String, java.lang.String>\n getDetailsMap();", "Map getConnectionManagerMap();", "protected Map getProfileMap() {\n \t\tif (profiles != null) {\n \t\t\tMap result = (Map) profiles.get();\n \t\t\tif (result != null)\n \t\t\t\treturn result;\n \t\t}\n \t\tMap result = restore();\n \t\tif (result == null)\n \t\t\tresult = new LinkedHashMap(8);\n \t\tprofiles = new SoftReference(result);\n \t\treturn result;\n \t}", "private Map<String, AttributeInfo> getUserSchemaMap() {\n if (userSchemaMap == null) {\n schema();\n }\n return userSchemaMap;\n }", "public TreeMap<String, User> getClientUsersMap() {\n TreeMap<String, User> clients = new TreeMap<>();\n usersConnected.values().stream().forEach((user) -> {\n clients.put(user.getName(), user.toClientUser());\n });\n return clients;\n }", "public Map<String, Object> getContextMap(MessageInfo messageInfo) {\n Map<String, Object> internalMap = (Map<String, Object>) messageInfo.getMap()\n .get(AuthenticationFramework.ATTRIBUTE_AUTH_CONTEXT);\n\n if (internalMap == null) {\n internalMap = new HashMap<>();\n messageInfo.getMap().put(AuthenticationFramework.ATTRIBUTE_AUTH_CONTEXT, internalMap);\n }\n\n return internalMap;\n }", "public static Map<String, Object> initUser() {\n\n Map<String, Object> user = new HashMap<String, Object>();\n Map<String, Object> tone = new HashMap<String, Object>();\n\n Map<String, Object> emotionTone = new HashMap<String, Object>();\n emotionTone.put(\"current\", null);\n\n Map<String, Object> socialTone = new HashMap<String, Object>();\n socialTone.put(\"current\", null);\n\n Map<String, Object> languageTone = new HashMap<String, Object>();\n languageTone.put(\"current\", null);\n\n tone.put(\"emotion\", emotionTone);\n tone.put(\"social\", socialTone);\n tone.put(\"language\", languageTone);\n\n user.put(\"tone\", tone);\n\n return user;\n }", "Map<String, String> properties();", "Map<String, String> properties();", "public static HashMap<Long, User> userMapInit() {\n HashMap<Long, User> userMap = new HashMap<Long, User>();\n\n\n User user = UserFactory.getNewUser(\"firstName\", \"secondName\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"first2\", \"second2\", \"890006662525\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"fir3\", \"sec3\", \"72563698562\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"firstN1\", \"secondN1\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bbbbb\", \"nbvnbn\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"first2\", \"second2\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"bb\", \"nb\", \"72563698588\"));\n userMap.put(user.getId(), user);\n\n user = UserFactory.getNewUser(\"fir3\", \"sec3\");\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"asdfdsf\", \"secovbnd2\", \"890006662577\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"firstN1\", \"secondN1\", \"88005553535\"));\n user.addPhone(PhoneService.getPhoneFactory().getNewPhone(\"sfg\", \"gdsfg\", \"88005693599\"));\n userMap.put(user.getId(), user);\n\n return userMap;\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public Map<String, ConfigItem<String, State>> getMap() {\n\t\treturn cfg;\n\t}", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n // user name\n\n user.put(KEY_ID, pref.getString(KEY_ID, null));\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n return user;\n }", "Map<String, Object> properties();", "Map<String, Object> exportConfiguration();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "public Map<String, String> loggableMap() {\n final TreeMap<String, String> map = new TreeMap<>();\n for (final ConfigProperty cp : _properties.values()) {\n map.put(cp.getKey(), cp.loggableValue());\n }\n return map;\n }", "Map<String, Object> getServiceSpecificObjects();", "public PropertyMap getPropertyMap(String propertyName);", "public LinkedHashMap<String, String> toMap() {\n final LinkedHashMap<String, String> map = new LinkedHashMap<>();\n for (final ConfigProperty cp : _properties.values()) {\n map.put(cp.getKey(), cp.getValue());\n }\n return map;\n }", "Map<String, String> getEndpointMap();", "private static Map<String, String> getCatalogProperties(\n Configuration conf, String catalogName, String catalogType) {\n Map<String, String> catalogProperties = Maps.newHashMap();\n String keyPrefix = InputFormatConfig.CATALOG_CONFIG_PREFIX + catalogName;\n conf.forEach(config -> {\n if (config.getKey().startsWith(InputFormatConfig.CATALOG_DEFAULT_CONFIG_PREFIX)) {\n catalogProperties.putIfAbsent(\n config.getKey().substring(InputFormatConfig.CATALOG_DEFAULT_CONFIG_PREFIX.length()),\n config.getValue());\n } else if (config.getKey().startsWith(keyPrefix)) {\n catalogProperties.put(\n config.getKey().substring(keyPrefix.length() + 1),\n config.getValue());\n }\n });\n\n return catalogProperties;\n }", "public HashMap<String, String> getUserDetails()\n {\n HashMap<String, String> user = new HashMap<>();\n\n user.put(KEY_NAME, pref.getString(KEY_NAME, null));\n user.put(KEY_EMAIL, pref.getString(KEY_EMAIL, null));\n user.put(KEY_PHONE, pref.getString(KEY_PHONE, null));\n\n return user;\n }", "protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}", "ValueMap getProfileMap(\n Authorizable authorizable,\n Session session) throws RepositoryException, StorageClientException, AccessDeniedException;", "private Map<String, Object> getMap(List<User> users) {\r\n\r\n Map<String, Object> modelMap = new HashMap<String, Object>(3);\r\n modelMap.put(\"total\", users.size());\r\n modelMap.put(\"data\", users);\r\n modelMap.put(\"success\", true);\r\n\r\n return modelMap;\r\n }", "Map<String, Result> getOrganizationsMap();", "HashMap<String,Object> getCollectionConfig(String collectionName) {\n if (!this.collections.containsKey(collectionName)) return null;\n return (HashMap<String,Object>)collections.get(collectionName);\n }", "default Map<String, Set<String>> getActiveDataCenterMap() {\n Map<String, Set<String>> result = new HashMap<>();\n Set<String> val = new HashSet<>();\n val.add(getLocalNodeName());\n result.put(\"local\", val);\n return result;\n }", "ValueMap getProfileMap(Authorizable authorizable, Session session)\n throws RepositoryException;", "public ConfigMapDTO getMapProperty(final String name) {\n \t\treturn mapProperties.get(name);\n \t}", "Map<String, Object> exportDefaultConfiguration();", "@SuppressWarnings(\"unchecked\")\n public Map getMap(String name)\n {\n Object v = getProperty(name);\n return (v == null) ? null : (Map) v;\n }", "public Dictionary<String, Object> getProperties();", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<>();\n // user name\n user.put(KEY_NAME, sharedPreferences.getString(KEY_NAME, null));\n // user rol\n user.put(KEY_ROL, sharedPreferences.getString(KEY_ROL, null));\n // user user\n user.put(KEY_USER, sharedPreferences.getString(KEY_USER, null));\n // user email id\n user.put(KEY_EMAIL, sharedPreferences.getString(KEY_EMAIL, null));\n // user avatar\n user.put(KEY_PHOTO, sharedPreferences.getString(KEY_PHOTO, null));\n // return user\n return user;\n }", "public Map<String, User> getUserIdUserMap(List<String> userIds)\n {\n return null;\n }", "public final Map<String, String> getConnectionPropertiesMap(DatabaseConnection connection, String version){\n Map<String, String> result = new HashMap<>();\n result.put(getJdbcDriver(), connection != null ? connection.getDriverClass() : \"\");\n result.put(getJdbcUrl(), connection != null ? connection.getDatabaseURL() : \"\");\n result.put(getJdbcUsername(), connection != null ? connection.getUser(): \"\");\n // must set an empty string for password if a null password\n // was returned from the connection, see #81729\n result.put(getJdbcPassword(), \n connection != null && connection.getPassword() != null ? connection.getPassword() : \"\");\n return result;\n }", "public Map<String, Object> map() {\n Map<String, Object> tomcatInstanceMap = new HashMap<>();\n tomcatInstanceMap.put(\"instanceUUID\", tomcatInstanceUUID);\n tomcatInstanceMap.put(\"instanceName\", instanceName);\n tomcatInstanceMap.put(\"environmentName\", environmentName);\n tomcatInstanceMap.put(\"tomcatVersion\", tomcatVersion);\n tomcatInstanceMap.put(\"destinationFolder\", destinationFolder.getAbsolutePath());\n tomcatInstanceMap.put(\"compressed\", compressed);\n tomcatInstanceMap.put(\"primaryPort\", primaryPort);\n tomcatInstanceMap.put(\"protocolPrimaryPort\", protocolPrimaryPort);\n tomcatInstanceMap.put(\"shutdownPort\", shutdownPort);\n tomcatInstanceMap.put(\"ajpPort\", ajpPort);\n tomcatInstanceMap.put(\"secureInstance\", secureInstance);\n tomcatInstanceMap.put(\"securePort\", securePort);\n tomcatInstanceMap.put(\"protocolSecurePort\", protocolSecurePort);\n tomcatInstanceMap.put(\"keystoreSourceFilename\", keystoreSourceFilename);\n tomcatInstanceMap.put(\"keystoreCredentials\", keystoreCredentials);\n tomcatInstanceMap.put(\"jvmOptionXms\", jvmOptionXms);\n tomcatInstanceMap.put(\"jvmOptionXmx\", jvmOptionXmx);\n tomcatInstanceMap.put(\"jvmOptionXss\", jvmOptionXss);\n tomcatInstanceMap.put(\"jvmOptionXXMaxMetaspaceSize\", jvmOptionXXMaxMetaspaceSize);\n tomcatInstanceMap.put(\"jvmOptions\", jvmOptions);\n tomcatInstanceMap.put(\"instanceManagement\", instanceManagement);\n /**\n * Serialize our Instance Management Properties\n */\n List<Map<String,String>> instanceManagementPropertiesMapList =\n new ArrayList<>(instanceManagementProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceManagementProperties) {\n instanceManagementPropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceManagementProperties\", instanceManagementPropertiesMapList);\n /**\n * Serialize our Instance Properties\n */\n List<Map<String,String>> instancePropertiesMapList =\n new ArrayList<>(instanceProperties.size());\n for(TomcatInstanceProperty tomcatInstanceProperty : instanceProperties) {\n instancePropertiesMapList.add(tomcatInstanceProperty.map());\n }\n tomcatInstanceMap.put(\"instanceProperties\", instancePropertiesMapList);\n /**\n * Return the Map for Persisting as YAML.\n */\n return tomcatInstanceMap;\n }", "@SuppressWarnings(\"unchecked\")\n public <K, V> Map<K, V> createMap(String name, Class<K> keyClass, Class<V> valueClass) {\n\n if (Globals.threadTxMap.get(Thread.currentThread()) == null ||\n Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) {\n throw new ClientNotInTxException(\"Cannot create map: not in an active transaction\");\n }\n //ensure name is not blank/whitespace:\n if(name.trim().isEmpty()){\n throw new IllegalArgumentException(\"Invalid map name\");\n }\n //ensure keyClass/valueClass is not null:\n if(keyClass == null || valueClass == null){\n throw new IllegalArgumentException(\"Key/value class cannot be null\");\n }\n //ensure serializable\n if(!Serializable.class.isAssignableFrom(keyClass))\n throw new IllegalArgumentException(\"Key class is not serializable\");\n\n if(!Serializable.class.isAssignableFrom(valueClass))\n throw new IllegalArgumentException(\"Value class is not serializable\");\n\n //ensure that the name is not in use:\n if(Globals.alreadyExists(name)){\n throw new IllegalArgumentException(\"This name is already in use\");\n }\n\n //let's start by creating the object:\n DBTable<K, V> table = new DBTable<>(name, keyClass, valueClass);\n //set the object's types:\n Globals.addNameTable(name, table);\n Globals.addTableToThread(name);\n //send it to TxMgrImpl:\n //writeToDisk(table, name);\n return (Map<K, V>) Globals.getTable(name);\n }", "public Map<String, Object> publicMap(boolean includeSingleRelationShip) {\n\t\tMap<String, Object> map = publicMap();\n\t\tif (includeSingleRelationShip) {\n\t\t\tmap.put(\"user\", this.user == null ? null\t: this.user.publicMap());\n\t\t\tmap.put(\"field\", this.field == null ? null : this.field.publicMap());\n\t\t}\n\t\treturn map;\n\t}", "public static HashMap<String,String> getUsernameEmailMappings()\r\n\t{\r\n\t\treturn usernameToEmail;\r\n\t}", "public Map<String, String> getInformations()\n {\n\n if (userProfile == null)\n {\n return EMPTY_STRING_TO_STRING_MAP;\n }\n\n Map<String, String> infoMap = userProfile.getUserInfoMap();\n Map<String, String> filteredMap = new HashMap<String, String>();\n\n for (String key : infoMap.keySet())\n {\n if (JSR_168_P3P.contains(key))\n {\n filteredMap.put(key, infoMap.get(key));\n }\n }\n\n return Collections.unmodifiableMap(filteredMap);\n }", "public Map instantiateBackingMap(String sName);", "Map<String, String> asMap();", "public static Map createUserViewMap(Map fieldsMap) {\n if (!fieldsMap.isEmpty() && fieldsMap != null) {\n Map userMap = new LinkedHashMap<>();\n\n fieldsMap.forEach((k, v) -> {\n if (!StringUtils.contains((String) k, \"tablename\")) {\n userMap.put(k, v);\n }\n });\n return userMap;\n\n } else {\n return new LinkedHashMap<>();\n }\n }", "default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }", "protected static Map<String, User> createUsers( Element elem )\n throws XMLParsingException {\n Map<String, User> users = new HashMap<String, User>();\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix, \"User\" ), cnxt );\n for ( Element child : list ) {\n String username = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"UserName\" ), cnxt );\n String password = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"Password\" ), cnxt );\n String firstName = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"FirstName\" ), cnxt );\n String lastName = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"LastName\" ), cnxt );\n String email = XMLTools.getRequiredNodeAsString( child,\n StringTools.concat( 100, \"./\", dotPrefix, \"Email\" ), cnxt );\n String rolesValue = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"Roles\" ), cnxt );\n List<String> roles = Arrays.asList( rolesValue.split( \",\" ) );\n User user = new User( username, password, firstName, lastName, email, roles );\n users.put( username, user );\n }\n return users;\n }", "public Map<String, Map<String, Set<String>>> getLocationMap();", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "public Map<SolutionsContainer.SOLUTION_TYPE, List<String>> getSolutionsMapFromConfig() throws Exception\n {\n DMLogger.methodStarted();\n // TODO add path for QH DM2Web config (system-config.json)\n // String jsonTxt = ssh.runCommand( \"less /opt/ddn/directmon/web/etc/ddn/directmon/system-config.json\" );\n String jsonTxt = ssh.runCommand( \"less /etc/ddn/directmon/system-config.json\" );\n\n JSONObject json = ( JSONObject ) JSONSerializer.toJSON( jsonTxt );\n Set<?> s = json.keySet();\n\n List<String> result = new ArrayList<String>();\n\n Map<SolutionsContainer.SOLUTION_TYPE, List<String>> mapResult =\n new HashMap<SolutionsContainer.SOLUTION_TYPE, List<String>>();\n\n for( Object value : s )\n {\n Set<String> keySet = json.getJSONObject( value.toString() ).keySet();\n result.addAll( keySet );\n }\n\n List<String> sfaSolutions = new ArrayList<String>();\n List<String> gsSolutions = new ArrayList<String>();\n for( String aResult : result )\n {\n String element = aResult.toString();\n String typeOfElement = element.substring( element.indexOf( \":\" ) + 1, element.length() );\n\n if( SolutionsContainer.SOLUTION_TYPE.SFA.getType().equals( typeOfElement ) )\n {\n sfaSolutions.add( element.substring( 0, element.indexOf( \":\" ) ) );\n }\n\n if( SolutionsContainer.SOLUTION_TYPE.GRID_SCALER.getType().equals( typeOfElement ) )\n {\n gsSolutions.add( element.substring( 0, element.indexOf( \":\" ) ) );\n }\n\n }\n mapResult.put( SolutionsContainer.SOLUTION_TYPE.SFA, sfaSolutions );\n mapResult.put( SolutionsContainer.SOLUTION_TYPE.GRID_SCALER, gsSolutions );\n\n DMLogger.methodFinished( result );\n return mapResult;\n }", "public HashMap<String, String> getUserDetails() {\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(KEY_USER_ID, pref.getString(KEY_USER_ID, null));\n user.put(KEY_AUTH_TOKEN, pref.getString(KEY_AUTH_TOKEN, null));\n user.put(KEY_USER_NAME, pref.getString(KEY_USER_NAME, \"\"));\n user.put(KEY_USER_EMAIL, pref.getString(KEY_USER_EMAIL, null));\n user.put(KEY_USER_MOBILE, pref.getString(KEY_USER_MOBILE, null));\n user.put(KEY_USER_ADDRESS, pref.getString(KEY_USER_ADDRESS, null));\n user.put(KEY_USER_IMAGE, pref.getString(KEY_USER_IMAGE, null));\n user.put(KEY_USER_STRIPE_ID, pref.getString(KEY_USER_STRIPE_ID, null));\n user.put(KEY_REFFERAL_CODE, pref.getString(KEY_REFFERAL_CODE, \"\"));\n user.put(KEY_REFFERAL_LINK, pref.getString(KEY_REFFERAL_LINK, \"\"));\n user.put(KEY_USER_PASSWORD, pref.getString(KEY_USER_PASSWORD, \"\"));\n // return user\n return user;\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "public Map<String, String> toMap() {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"id\", id + \"\");\n map.put(\"name\", name);\n map.put(\"value\", value);\n map.put(\"type\", type);\n map.put(\"description\", description);\n\n return map;\n\n }", "public static Map<String, String> getPropertiesMap(String filename) throws IOException{\n Map<String, String> map = new LinkedHashMap();\n Properties p = new Properties();\n loadProperties(p, filename);\n Set<String> keys = p.stringPropertyNames();\n for (String k : keys) {\n map.put(k, p.getProperty(k));\n }\n return map;\n }", "java.util.Map<String, String>\n getReplicationMap();", "public static Map<String, User> getUsers() {\n\t\treturn users;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(AppConfig.USER_NAME, name);\n params.put(AppConfig.USER_LAST_NAME, lastname);\n params.put(AppConfig.USER_EMAIL, email);\n params.put(AppConfig.USER_PASSWORD, password);\n params.put(AppConfig.USER_TYPE, typeofuser);\n return params;\n }", "public List<Map> getWatchListBasedOnUserName(String userName);", "public static Map<String, Object> toMap() {\n return toMap(null);\n }", "public Map<Integer, List<String>> getUsers() {\n\t\tMap<Integer, List<String>> userMap = new HashMap<Integer, List<String>>();\n\t\tList<String> userData = new ArrayList<String>();\n\t\t\n\t\t// Step 1: read the data.csv file\n\t\t// STep 2: fill out the userMap and userData\n\t\t// userID is the key, everything else is userData\n\t\t\n\t\treturn userMap;\n\t}", "Map<String, Object> readConfig(VirtualHost vhost, String id);", "public static Map<String, Admin> getAdminMap() {\r\n return adminMap;\r\n }", "public static Map<String, Client> getClientMap() {\r\n return clientMap;\r\n }", "@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }", "public Map<String, Long> getUserIdLetterMap() throws UserManagementException;", "public Map<String, String> get(HelixConfigScope scope, List<String> keys) {\n if (scope == null || scope.getType() == null || !scope.isFullKey()) {\n LOG.error(\"fail to get configs. invalid config scope. scope: {}, keys: {}.\", scope, keys);\n return null;\n }\n ZNRecord record = getConfigZnRecord(scope);\n\n if (record == null) {\n LOG.warn(\"No config found at {}.\", scope.getZkPath());\n return null;\n }\n\n Map<String, String> map = new HashMap<String, String>();\n String mapKey = scope.getMapKey();\n if (mapKey == null) {\n for (String key : keys) {\n if (record.getSimpleFields().containsKey(key)) {\n map.put(key, record.getSimpleField(key));\n }\n }\n } else {\n Map<String, String> configMap = record.getMapField(mapKey);\n if (configMap == null) {\n LOG.warn(\"No map-field found in {} using mapKey: {}.\", record, mapKey);\n return null;\n }\n\n for (String key : keys) {\n if (record.getMapField(mapKey).containsKey(key)) {\n map.put(key, record.getMapField(mapKey).get(key));\n }\n }\n }\n\n return map;\n }" ]
[ "0.6427255", "0.6414585", "0.63940984", "0.6386048", "0.6374765", "0.6338859", "0.6286635", "0.622289", "0.6215324", "0.62104166", "0.61712325", "0.61484784", "0.60990745", "0.608458", "0.6004767", "0.5986441", "0.5970495", "0.5925035", "0.5916905", "0.5877257", "0.5869219", "0.58669025", "0.58669025", "0.5860402", "0.5854378", "0.5853354", "0.57892877", "0.57890475", "0.5783797", "0.5783797", "0.57715243", "0.5766565", "0.5757378", "0.5753339", "0.57147133", "0.5688116", "0.56839186", "0.5678179", "0.566976", "0.5667164", "0.5663129", "0.5663129", "0.565912", "0.56467783", "0.56434435", "0.5639083", "0.56390154", "0.5629064", "0.5616437", "0.5616437", "0.56018007", "0.5598959", "0.5576439", "0.55735195", "0.5542212", "0.55381995", "0.55349046", "0.5525673", "0.5515008", "0.55104065", "0.5509512", "0.54902023", "0.5483145", "0.54751", "0.5460088", "0.54521316", "0.5433762", "0.5422093", "0.54156995", "0.5413422", "0.5409965", "0.5407757", "0.5404762", "0.54026866", "0.5399559", "0.53938025", "0.53868556", "0.5384917", "0.5364868", "0.53605765", "0.5354089", "0.5344343", "0.5332496", "0.5332123", "0.5330425", "0.532888", "0.532888", "0.53158224", "0.5312141", "0.53103423", "0.5303266", "0.5300417", "0.52992207", "0.52970946", "0.52920085", "0.52871", "0.5279142", "0.5275151", "0.52679014", "0.52639973", "0.5259262" ]
0.0
-1
/ / / / /
public ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory) { /* 96 */ this(requestWriterFactory, responseParserFactory, null, null); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void gored() {\n\t\t\n\t}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public abstract String division();", "private int leftChild(int i){return 2*i+1;}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "double passer();", "public String ring();", "private int rightChild(int i){return 2*i+2;}", "public String toString(){ return \"DIV\";}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "static void pyramid(){\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public void stg() {\n\n\t}", "void mo33732Px();", "Operations operations();", "void sharpen();", "void sharpen();", "public void skystonePos4() {\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\n public void bfs() {\n\n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "int getWidth() {return width;}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "void ringBell() {\n\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "int width();", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double volume() {\n\treturn width*height*depth;\n}", "@Override\r\n public void draw()\r\n {\n\r\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "double defendre();", "public void getTile_B8();", "public void SubRect(){\n\t\n}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo21076g();", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void skystonePos2() {\n }", "public void skystonePos5() {\n }", "public double getPerimiter(){return (2*height +2*width);}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void skystonePos3() {\n }", "double seBlesser();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "public int upright();", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public Integer getWidth(){return this.width;}", "public void skystonePos6() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void breath() {\n\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\t}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}" ]
[ "0.5654086", "0.5282051", "0.5270874", "0.5268489", "0.5230159", "0.5229372", "0.5205559", "0.51923394", "0.51524484", "0.50993294", "0.50948834", "0.5071109", "0.5043058", "0.5009983", "0.5006536", "0.49739555", "0.49691963", "0.4959123", "0.49568397", "0.49425906", "0.49421698", "0.49421698", "0.4903223", "0.4897176", "0.48879617", "0.48803073", "0.48741165", "0.48718095", "0.48679698", "0.48646608", "0.48598114", "0.48402584", "0.48362267", "0.48321876", "0.48310882", "0.4825809", "0.48227587", "0.48175377", "0.48045233", "0.48045233", "0.48002362", "0.47911668", "0.47906598", "0.4776121", "0.47734705", "0.47673976", "0.475685", "0.47517157", "0.47446346", "0.47364715", "0.47353277", "0.47321412", "0.47242466", "0.4721296", "0.47190621", "0.47164857", "0.47148356", "0.47142458", "0.47103566", "0.47027764", "0.47023293", "0.4701804", "0.46992764", "0.46985114", "0.46954885", "0.4695406", "0.46914175", "0.4690724", "0.46901584", "0.4686765", "0.4682771", "0.46786475", "0.46786475", "0.4676364", "0.46714565", "0.46710065", "0.46701837", "0.46698236", "0.46671712", "0.466633", "0.4663725", "0.46617198", "0.46599096", "0.46593648", "0.4654308", "0.46481097", "0.46472353", "0.46443266", "0.46441418", "0.46438584", "0.4642061", "0.46387514", "0.46382058", "0.46375832", "0.4636777", "0.46365395", "0.46365395", "0.46359038", "0.4635539", "0.46332848", "0.46326485" ]
0.0
-1
No promise on order < solution.size()1. Use carefully
void boxContentFill(Array99Compute computeContents, int order){ Array99 solution = computeContents.solutions.get(order); for (int index=0;index<81;index++){ int temp = solution.getContent(index); temp = Array99Mother.findNumber(temp); this.setCellNumber(index,temp+1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSolution(ArrayList<Pair> order) {\n for (int i = 0; i < order.size(); i++) {\n currentSol.set(order.get(i).index, 1);\n }\n }", "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n break;\n } else {\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }\n if (null != orderTreeNode) {\n OrderGlobalTreeNode orderGlobalTreeNode = OrderGlobalTreeNode.class.cast(orderTreeNode);\n TreeNode aggTreeNode = orderTreeNode.getOutputNode();\n while (aggTreeNode != null && aggTreeNode.getNodeType() != NodeType.AGGREGATE) {\n aggTreeNode = aggTreeNode.getOutputNode();\n }\n if (null != aggTreeNode) {\n if (aggTreeNode instanceof FoldTreeNode) {\n TreeNode inputTreeNode = UnaryTreeNode.class.cast(aggTreeNode).getInputNode();\n if (inputTreeNode == orderTreeNode) {\n return;\n }\n UnaryTreeNode inputUnaryTreeNode = UnaryTreeNode.class.cast(inputTreeNode);\n if (inputUnaryTreeNode.getInputNode() == orderTreeNode &&\n (inputUnaryTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(inputUnaryTreeNode).getDirection() != Direction.BOTH)) {\n return;\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(inputUnaryTreeNode, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n OrderGlobalTreeNode addOrderTreeNode = new OrderGlobalTreeNode(inputUnaryTreeNode, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n UnaryTreeNode.class.cast(aggTreeNode).setInputNode(addOrderTreeNode);\n }\n } else {\n if (treeLeaf instanceof OrderGlobalTreeNode) {\n return;\n }\n TreeNode currTreeNode = orderTreeNode.getOutputNode();\n boolean hasSimpleShuffle = false;\n while (currTreeNode != null) {\n if (currTreeNode.getNodeType() == NodeType.FLATMAP\n || (currTreeNode instanceof PropertyNode &&\n !(UnaryTreeNode.class.cast(currTreeNode).getInputNode().getOutputValueType() instanceof EdgeValueType))) {\n hasSimpleShuffle = true;\n break;\n }\n currTreeNode = currTreeNode.getOutputNode();\n }\n if (!hasSimpleShuffle) {\n return;\n }\n\n UnaryTreeNode outputTreeNode = UnaryTreeNode.class.cast(treeLeaf);\n if (outputTreeNode.getInputNode() == orderTreeNode) {\n if (outputTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(outputTreeNode).getDirection() != Direction.BOTH) {\n return;\n }\n if (orderTreeNode.getOutputValueType() instanceof EdgeValueType && outputTreeNode instanceof PropertyNode) {\n return;\n }\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(treeLeaf, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n treeLeaf = new OrderGlobalTreeNode(treeLeaf, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n }\n }\n }", "public int[] solve() {\n setupAnts();\n clearTrails();\n IntStream.range(0, maxIterations)\n .forEach(i -> {\n moveAnts();\n updateTrails();\n updateBest();\n });\n System.out.println(\"Best tour length: \" + (bestTourLength));\n System.out.println(\"Best tour order: \" + Arrays.toString(bestTourOrder));\n\n IntStream.range(1, bestTourOrder.length)\n .forEach(i -> {\n if (graph[bestTourOrder[i]][bestTourOrder[i - 1]] == 0.01)\n System.out.println(\"Не подходит по пути\");\n });\n IntStream.range(1, bestTourOrder.length)\n .forEach(i -> {\n if (emcMatrix[bestTourOrder[i]][bestTourOrder[i - 1]] == 0)\n System.out.println(\"Не подходит по ЭМС\");\n });\n\n List<Element> sortedElements = new ArrayList<>();\n for (int i = 0; i < bestTourOrder.length; i++) {\n sortedElements.add(elements.get(bestTourOrder[i]));\n }\n\n return bestTourOrder.clone();\n }", "public void solution() {\n\t\t\n\t}", "public void makeComplete(Order order) {}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "boolean isOrderCertain();", "@Test\n public void testSolution() throws Exception {\n assertEquals(4, new Task5().solution(4, new int[]{1, 2, 3}));\n // 1. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1\n // 2. 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1\n // 3. 2, 2, 1, 1, 1, 1, 1, 1, 1, 1\n // 4. 2, 2, 2, 1, 1, 1, 1, 1, 1\n // 5. 2, 2, 2, 2, 1, 1, 1, 1\n // 6. 2, 2, 2, 2, 2, 1, 1\n // 7. 2, 2, 2, 2, 2, 2\n // 8. 5, 1, 1, 1, 1, 1, 1, 1\n // 9. 5, 2, 1, 1, 1, 1, 1\n // 10. 5, 2, 2, 1, 1, 1\n // 11. 5, 2, 2, 2, 1\n // 12. 5, 5, 1, 1\n // 13. 5, 5, 2\n assertEquals(13, new Task5().solution(12, new int[]{1, 2, 5}));\n // 1. 2, 2, 2, 2, 2, 2\n // 2. 5, 5, 2\n assertEquals(2, new Task5().solution(12, new int[]{2, 5}));\n }", "@Override\n public Matching solve() {\n while (!matching.freeElements().isEmpty()) {\n /* get first element from the queue */\n Element element = problem.element(matching.freeElements().poll().elemId());\n\n /* get its preference element: looping through its list => by the level value */\n while (!element.preferences().isEmpty()) {\n Element pref = problem.element(element.preferences().poll().elemId());\n\n /* check if is an acceptable partner for current preference */\n if (!pref.accepts(element)) {\n continue;\n }\n\n /* verify the availability of its current preference */\n if (problem.isAvailable(pref.elemId())) {\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n matching.addPair(new Pair(element, pref));\n break;\n }\n else {\n /* if the preference is already taken, get the best one between current element and its current match */\n String currMatchName = matching.getElementPair(pref);\n Element currentMatch = pref.getIndex(currMatchName);\n Element elem = pref.getIndex(element.elemId());\n\n /* when current element is better than the current match */\n if (currentMatch.level() > elem.level()){\n if (matching.isFree(elem))\n matching.removeFreeElement(elem);\n\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n problem.element(currentMatch.elemId()).setAvailability(true);\n\n /* add the current pair to the Matching and the old match for the woman to the free list */\n matching.addPair(new Pair(problem.element(element.elemId()), problem.element(pref.elemId())));\n\n matching.addFreeElement(problem.element(currMatchName));\n break;\n }\n else {\n matching.addPair(new Pair(currentMatch, pref));\n }\n }\n }\n /* when man was rejected by all its preferences */\n if (element.preferences().isEmpty())\n element.setAvailability(true);\n }\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(Element::remakeList);\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(element -> matching.addFreeElement(problem.element(element.elemId())));\n\n return matching;\n }", "@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "@Test\n public void addOrderTest_sizeMin() {\n order.addOrder(1, 0);\n }", "@Test\n public void testAdvanceWithHighNumberOfArmies() {\n List<Country> l_countryList = d_gameData.getD_warMap().getD_continents().get(1).getD_countryList();\n l_countryList.add(d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0));\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).getD_neighbourCountries().add(\"nepal\");\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(7);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n d_orderProcessor.processOrder(\"advance india nepal 15\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }", "@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\n \t}", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "@Test\n\tpublic void orderingItemsIncreasesCumulativeOrders() {\n\t\tItemQuantity itemQ1 = new ItemQuantity(101, 5);\n\t\tItemQuantity itemQ2 = new ItemQuantity(102, 10);\n\t\tList<ItemQuantity> itemQuantities = new ArrayList<ItemQuantity>();\n\t\titemQuantities.add(itemQ1);\n\t\titemQuantities.add(itemQ2);\n\t\tOrderStep step = new OrderStep(1, itemQuantities);\n\t\t\n\t\ttry {\n\t\t\titemSupplier.executeStep(step);\n\t\t} catch (OrderProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tList<ItemQuantity> ordersPerItem = null;\n\t\ttry {\n\t\t\tordersPerItem = itemSupplier.getOrdersPerItem(supplierItemIds);\n\t\t} catch (InvalidItemException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tfor (ItemQuantity itemQ : ordersPerItem) {\n\t\t\tif (itemQ.getItemId() == 101)\n\t\t\t\tassertEquals(5, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 102)\n\t\t\t\tassertEquals(10, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 103)\n\t\t\t\tassertEquals(0, itemQ.getQuantity());\n\t\t}\n\t\t\n\t\t/*\n\t\t * Place another order\n\t\t */\n\t\titemQ1 = new ItemQuantity(101, 10);\n\t\titemQ2 = new ItemQuantity(103, 3);\n\t\titemQuantities = new ArrayList<ItemQuantity>();\n\t\titemQuantities.add(itemQ1);\n\t\titemQuantities.add(itemQ2);\n\t\tstep = new OrderStep(1, itemQuantities);\n\t\t\n\t\ttry {\n\t\t\titemSupplier.executeStep(step);\n\t\t} catch (OrderProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tordersPerItem = null;\n\t\ttry {\n\t\t\tordersPerItem = itemSupplier.getOrdersPerItem(supplierItemIds);\n\t\t} catch (InvalidItemException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t\t\n\t\tfor (ItemQuantity itemQ : ordersPerItem) {\n\t\t\tif (itemQ.getItemId() == 101)\n\t\t\t\tassertEquals(15, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 102)\n\t\t\t\tassertEquals(10, itemQ.getQuantity());\n\t\t\tif (itemQ.getItemId() == 103)\n\t\t\t\tassertEquals(3, itemQ.getQuantity());\n\t\t}\n\t}", "int order();", "protected void processOrder( Game game )\n {\n }", "@Test\n public void testSolution() {\n assertArrayEquals(new int[]{3,2,1} , new Task().reverse3( new int[]{1, 2, 3}));\n assertArrayEquals(new int[]{5, 11, 9} , new Task().reverse3( new int[]{9, 11, 5}));\n assertArrayEquals(new int[]{7, 0, 0} , new Task().reverse3( new int[]{0, 0, 7}));\n assertArrayEquals(new int[]{2, 1, 2} , new Task().reverse3( new int[]{2, 1, 2}));\n assertArrayEquals(new int[]{1, 2, 1} , new Task().reverse3( new int[]{1, 2, 1}));\n assertArrayEquals(new int[]{2, 11, 3} , new Task().reverse3( new int[]{3, 11, 2}));\n assertArrayEquals(new int[]{7, 2, 3} , new Task().reverse3( new int[]{3, 2, 7}));\n\n }", "public static void main(String[] args) throws Throwable {\n\n Main object = new Main();\n String target = \"4\";\n Map<String, List<String>> deps = new HashMap<>();\n List<String> a = new ArrayList<>();\n a.add(\"3\");\n a.add(\"2\");\n deps.put(\"4\", a);\n List<String> b = new ArrayList<>();\n b.add(\"1\");\n deps.put(\"3\",b);\n deps.put(\"2\",b);\n List<String> res = object.buildOrder(\"4\",deps);\n\n System.out.print(\"res\" + Arrays.toString(res.toArray()));\n\n }", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "@Test\n public void badChoicePunisher() {\n Edge[] edgelist = {new Edge(new int[] {1, 7}), new Edge(new int[] {1, 8}),\n new Edge(new int[] {7, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist, 8, 2);\n\n\n Edge[] edgelist1 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist1, 7, 1);\n\n Edge[] edgelist2 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5}), new Edge(new int[] {2, 8})};\n timeMethod(edgelist2, 8, 2);\n\n Edge[] edgelist3 = {new Edge(new int[] {1, 6}), new Edge(new int[] {1, 7}),\n new Edge(new int[] {6, 3}), new Edge(new int[] {3, 2}), new Edge(new int[] {2, 4}),\n new Edge(new int[] {2, 5})};\n timeMethod(edgelist3, 7, 1);\n }", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tint[] postOrder={110,121,135,71,101,116,40,22,32,100,82,142,6,143,25,49,123,87,77,31,120,12,48,41,66,17,109,63,28,35,140,113,70,79,122,92,53,96,90,75,8,114,21,36,91,9,115,43,128,37,93,107,86,1,104,138,16,65,14,2,102,111,98,83,10,119,52,68,19,85,84,80,118,13,130,94,18,50,112,11,44,124,51,134,55,99,62,56,33,57,30,137,81,39,105,108,89,42,5,126,64,23,60,141,136,127,103,3,78,139,4,74,26,129,88,20,7,59,69,133,73,97,61,131,45,38,125,54,76,46,95,106,47,67,24,72,15,34,27,29,58,117,132,0};\n\t\tint[] inOrder={117,58,67,95,46,54,125,73,69,59,7,88,26,139,78,103,136,60,23,126,42,89,105,81,137,30,33,56,99,51,44,112,50,18,13,118,80,84,85,68,52,10,83,98,111,102,2,16,86,36,21,114,8,75,90,53,92,122,70,66,41,120,31,77,87,123,25,143,6,82,100,22,116,101,135,110,121,71,40,32,142,49,12,48,17,109,63,28,35,140,113,79,96,91,9,115,43,128,37,93,107,1,104,138,65,14,119,19,130,94,11,124,134,55,62,57,39,108,5,64,141,127,3,4,74,129,20,133,97,61,131,45,38,76,106,47,24,72,15,34,27,29,132,0};\n\t\tTreeNode root=null;\n\t\tSystem.out.println(\"Size \"+postOrder.length);\n\t\t\n\t\ttry {\n\t\t\troot = new CreateTreeGivenPostAndInOrder().createBinaryTree(postOrder, 0, postOrder.length-1, inOrder, 0, inOrder.length-1);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t}\n\t\t\n\t\troot.inOrderTraversal(root);\n\t\tnew DeepestNodeInBinaryTree().findDeepestNode(root, 0);\n\t\tSystem.out.println(\"\\nNode Data \"+deepestNode.node.data+\" Depth \"+deepestNode.depth);\n\t\t\n\t}", "public void solveGame4() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "public static void main(String[] args) {\n\t\tlis= Arrays.asList(new Integer[] {4,2,0,3,2,5});\n\t\tsolve();\n\n\t}", "@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }", "public static <U> void main(String[] args) {\n\t\t\n\t\tExecutorService service = Executors.newFixedThreadPool(10);\n\t\t//String orderValue = \"\";\n\t\tFuture<String> order1 = service.submit(()->{return \"GetOrders111\";});\n\t\ttry {\n\t\t\tString orders = order1.get();\n\t\t\t//orderValue = orders;\n\t\t\tFuture<String> orderEnrich = service.submit(()->{return \"enrichingOrders : \"+orders;});\n\t\t\tFuture<String> orderReconciliation = service.submit(()->{return \"orderReconciliation : \"+orders;});\n\t\t\tFuture<String> orderAutoCreate = service.submit(()->{return \"orderAutoCreate : \"+orders;});\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//In above code if too many heavy loaded tasks are there then its a big problem, for ex. get order is fetching millions of records and other services need to wait above code is going to fail.\n\t\t\n\t\tProcessOrder p = (String s)->{System.out.println(\"S \"+s); return 0;};\n\t\t//Solution\n\t\tCompletableFuture<String> cfuture = new CompletableFuture<>();\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tcfuture.supplyAsync(()->{return \"GetOrders111\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"enrichingOrders\";})\n\t\t\t\t\t\t.thenApply((x)->{return \"orderReconciliation\";})\n\t\t\t\t\t\t.thenAccept((x)->{System.out.println(\"orderAutoCreate\");});\n\t\t}\n\t\t\n\t}", "public ListNode1 solve(ListNode1[] lists){\n Queue<ListNode1> pq = new PriorityQueue<>(Comparator.comparingInt(a -> a.val)); //작은거 부터 뽑아냄\n ListNode1 head = new ListNode1(0); //하나씩 뽑아낸걸 담아둘 list\n ListNode1 res = head; //최종적으로 정렬된 값들이 들어있는 list (처음에는 head와 같이 0을 가짐)\n\n /*//1-2\n Queue<ListNode1> pq1 = new PriorityQueue<>(new Comparator<ListNode1>() {\n @Override\n public int compare(ListNode1 o1, ListNode1 o2) {\n return o1.val-o2.val;\n }\n });\n //1-3\n Queue<ListNode1> pq2 = new PriorityQueue<>(Comp);*/\n\n //2. for while\n for(ListNode1 list : lists){\n if(list != null)\n pq.offer(list); //list 들을 일단 다 넣기(첫 번째 숫자 기준 오름차순 정렬)\n //[1,4,5] - [1,3,4] - [2,6] 순서로 pq 에 들어감\n }\n while(!pq.isEmpty()){\n //pq = [1,4,5]-[1,3,4]-[2,6] >> [1,3,4]-[2,6]-[4,5] >> [2,6]-[3,4]-[4,5] >> [3,4]-[4,5]-[6] >> [4]-[4,5]-[6]\n ListNode1 node = pq.poll(); //리스트 별로 하나씩 빼기 ([1,4,5] > [1,3,4] > [2,6] > [3,4] > [4]\n //System.out.println(\"node.val = \" + node.val);\n res.next = node; //res = [0,'1',4,5] > [1,'1',3,4] > [1,'2',6] > [2,'3',4]\n res = res.next; //res = [1] > [1] > [2] > [3]\n\n if(node.next != null){\n pq.offer(node.next); //[1,4,5] >> [4,5] | [1,3,4] >> [3,4] | [2,6] >> [6] | [3,4] >> [4]\n }\n }\n\n return head.next;\n }", "@Override\n public Solution solve(ISearchable domain) {\n if(domain==null)\n return null;\n Solution s2=domain.checkIfIsSmall();\n if(s2!=null){\n domain.isClear();\n return s2;\n }\n Solution sol = new Solution();\n temp.add(domain.getStartState());\n numOfNude++;\n domain.isVisit(domain.getStartState());\n ArrayList<AState> neighbors=new ArrayList<AState>();\n while(!temp.isEmpty()){\n AState curr=temp.poll();\n if(domain.isEqual(domain.getGoalState(),curr)){\n numOfNude++;\n sol =solutionPath(curr,sol);\n\n break;\n }\n neighbors=domain.getAllPossibleState(curr);\n for(int i=0;i<neighbors.size();i++){\n if(domain.isEqual(domain.getGoalState(),neighbors.get(i))){\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n numOfNude++;\n sol =solutionPath(neighbors.get(i),sol);\n break;\n }\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n temp.add(neighbors.get(i));\n numOfNude++;\n }\n }\n\n domain.isClear();\n return sol;\n }", "@Override\n\tprotected void notifyNewBest(LinkedList<City> goodSolution, double length) {\n\t}", "public ArrayList<ArrayList<Furniture>> produceOrder(){\n ArrayList<ArrayList<Furniture>> orders = new ArrayList<ArrayList<Furniture>>();\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> orderedCheapest = comparePrice(valid);\n\n int n = 0;\n boolean set;\n // adding up to the number requested\n while(n != getRequestNum()){\n for(int i = 0; i < orderedCheapest.size(); i++){\n set = true;\n for(int j = 0; j < orderedCheapest.get(i).size(); j++){\n // looking at furniture item\n for(ArrayList<Furniture> furn : orders){\n // if the list of orders already contains an id dont add that furniture combo to the order\n if(furn.contains(orderedCheapest.get(i).get(j))){\n set = false;\n }\n }\n }\n if(set){\n orders.add(orderedCheapest.get(i));\n }\n }\n n++;\n }\n return orders;\n }", "@Test\n void test04_checkOrder() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addVertex(\"d\");\n graph.addVertex(\"e\");\n graph.addVertex(\"f\"); // added 6 items\n if (graph.order() != 6) {\n fail(\"graph has counted incorrect number of vertices\");\n }\n }", "public StandardSolution (long[] nums){\n \t\tsequence = nums;\n \t\tpartitions = new boolean[sequence.length];\n \t\t\n \t\tRandom rand = new Random();\n \t\tfor (int i = 0; i < partitions.length; i++){\n \t\t\t// worry about seeing?\n \t\t\tpartitions[i] = rand.nextBoolean();\n \t\t}\n \t}", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }", "static void testAProblem(Problem aProblem,Problem optimisedSortProblem){\n\t\t\t\tIndividual originalIndividual = new Individual(aProblem);\n\t\t\t\t//Individual.initialise(originalIndividual.ourProblem.getStrings());\n\t\t\t\toriginalIndividual.gpMaterial.printAll();\n\t\t\t\tIndividualEvaluator indEval = new ByteCodeIndividualEvaluator();\n\t\t\t\tindEval.evaluateIndNoTimeLimit(originalIndividual); // This is our reference individual\n\t\t\t\toriginalIndividual.ourProblem.setBaselineRuntimeAvg(originalIndividual.getRuntimeAvg());\n\t\t\t\t\n\t\t\t\t// create a variant to compare against\n\t\t\t\t//Problem optimisedSortProblem = new Sort1Optimised();\n\t\t\t\tIndividual sortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityErrorCount()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *\t9 May 2014 (commented out 15 Jan 2015)\n\t\t\t\t * Added to test multithreaded evaluation,\n\t\t\t\t * create a generation of individuals, then evaluate the lot. \n\t\t\t\t * (not needed, bug found in multi-threaded eval, due to programs accessing static methods when collecting results\n\t\t\t\t */\n\t\t\t\t/*for ( int i = 1 ; i < 100 ; i++){\n\t\t\t\t\toptimisedSortProblem = new Sort1Optimised();\n\t\t\t\t\tsortVariant = new Individual(originalIndividual, optimisedSortProblem,null);\n\t\t\t\t\tindEval.evaluateIndNoTimeLimit(sortVariant);\n\t\t\t\t\tSystem.out.println(\"Variant \"+sortVariant +\" \"+ sortVariant.getFunctionalityScore()+\" \"+ sortVariant.getRuntimeAvg());\n\t\t\t\t\tSystem.out.println(\"timeratio: \" + sortVariant.getTimeFitnessRatio()+ \" correctness \"+ sortVariant.getCorrectness());\n\t\t\t\t\tSystem.out.println(\"Fitness \" + sortVariant.getFitness()+\"\\n\");\n\t\t\t\t}*/\n\t}", "@Override\n public void handleSolution(String solution,long time) {\n \n }", "public void getSolution(TaskState state){\n\n if(state.isNew) {\n state.isNew = false;\n state.hasSolution = true;\n }\n else {\n if(!(state.hasSolution = rollBack(state)))\n return;\n }\n\n while (state.moveStack.size() < 64 ||\n !state.moveStack.peek().getStandElement().hasNeighbour(state.graph.getFirst())){\n\n if(state.moveStack.size() == 64 && !rollBack(state)) {\n state.hasSolution = false;\n return;\n }\n\n if(state.moveStack.peek().hasNextMove())\n state.moveStack.push(\n new HorseMove(state.moveStack.peek().getNextMove())\n );\n\n else if(!rollBack(state)){\n state.hasSolution = false;\n return;\n }\n\n }\n\n }", "public SolutionSet execute() throws JMException, ClassNotFoundException {\n int maxEvaluations ;\n int evaluations ;\n\n SolutionSet population ;\n SolutionSet offspringPopulation ;\n\n Solution betterIndividual ;\n\n Operator mutationOperator ;\n Comparator comparator ;\n Operator localSearchOperator ;\n\n\n comparator = new ObjectiveComparator(0) ; // Single objective comparator\n\n // Read the params\n maxEvaluations = ((Integer)this.getInputParameter(\"maxEvaluations\")).intValue();\n\n // Initialize the variables\n population = new SolutionSet(mu_) ;\n offspringPopulation = new SolutionSet(lambda_) ;\n\n evaluations = 0;\n\n // Read the operators\n mutationOperator = this.operators_.get(\"mutation\");\n localSearchOperator = (LocalSearch) operators_.get(\"improvement\");\n\n System.out.println(\"(\" + mu_ + \" + \" + lambda_+\")ES\") ;\n\n // Create 1-parent population of mu solutions\n Solution newIndividual;\n newIndividual = new Solution(problem_);\n problem_.evaluate(newIndividual);\n evaluations++;\n betterIndividual = new Solution(newIndividual);\n population.add(betterIndividual);\n\n // Main loop\n while (evaluations < maxEvaluations) {\n // STEP 1. Generate the offspring\n Solution offspring = new Solution(population.get(0)) ;\n mutationOperator.execute(offspring);\n /*Solution mutated_solution = (Solution) mutationOperator.execute(offspring);\n if(offspring.getObjective(0) < mutated_solution.getObjective(0))\n offspring = mutated_solution;*/\n problem_.evaluate(offspring);\n Solution local_offspring = (Solution) localSearchOperator.execute(offspring);\n offspring.setObjective(0, local_offspring.getObjective(0));\n offspringPopulation.add(offspring);\n evaluations++;\n\n if(comparator.compare(betterIndividual, offspringPopulation.get(0)) > 0) {\n betterIndividual = new Solution(offspringPopulation.get(0));\n population.clear();\n // STEP 4. Create the new mu population\n population.add(betterIndividual);\n }\n\n System.out.println(population.get(0).getObjective(0)) ;\n\n // STEP 6. Delete the offspring population\n offspringPopulation.clear() ;\n } // while\n\n // Return a population with the best individual\n SolutionSet resultPopulation = new SolutionSet(1) ;\n resultPopulation.add(population.get(0)) ;\n\n return resultPopulation ;\n }", "@Test\r\n void test_check_order_properly_increased_and_decreased() {\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"C\");\r\n graph.addVertex(\"D\");\r\n graph.addVertex(\"C\");\r\n if(graph.order() != 3) {\r\n fail();\r\n } \r\n graph.removeVertex(\"A\");\r\n graph.removeVertex(\"B\");\r\n graph.removeVertex(\"C\");\r\n if(graph.order() != 1) {\r\n fail();\r\n }\r\n \r\n }", "@Test\n public void testOrderInNegotiation() {\n Player l_player = new Player();\n l_player.setD_playerName(\"user2\");\n l_player.setD_negotiatePlayer(d_player.getD_playerName());\n\n Country l_country2 = new Country();\n l_country2.setD_continentIndex(1);\n l_country2.setD_countryIndex(3);\n l_country2.setD_countryName(\"nepal\");\n List<Country> l_countryList = new ArrayList();\n l_countryList.add(l_country2);\n l_player.setD_ownedCountries(l_countryList);\n\n d_gameData.getD_playerList().add(l_player);\n\n d_orderProcessor.processOrder(\"negotiate user2\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n\n d_orderProcessor.processOrder(\"advance india nepal 5\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order1 = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order1.executeOrder());\n }", "public static void main(String[] args) {\n\t\tList<List<Integer>> res = new ArrayList<List<Integer>>();\n\t\t\n\t\tList<Integer> list = new ArrayList<>();\n\t\tlist.add(2);\n\t\tlist.add(3);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(4);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(5);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(6);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(7);\n\t\tlist.add(8);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(9);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(10);\n\t\tlist.add(11);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tSystem.out.println(res);\n\t\tSystem.out.println(Inorder(res));\n\t\tList<Integer> queries = new ArrayList<>();\n\t\tqueries.add(2);\n\t\tqueries.add(4);\n\t\tswapNodes(res, queries);\n\n\t}", "public static void main(String[] args) {\n int[] arr = {10, 2, 5, 1, 8, 12};\n System.out.println(solution(arr));\n }", "public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }", "@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }", "public static void main(String[] args) {\n System.out.println(solution(5, new int[]{1, 3, 1, 4, 2, 3, 5, 4})); // 6\n }", "public List<T> nextSolution() {\r\n\r\n\t\t/* check whether solution has been canceled */\r\n\t\tif (canceled) {\r\n\t\t\tthrow new IllegalStateException(\"Search has been canceled, no more solutions can be requested.\");\r\n\t\t}\r\n\r\n\t\t/* do preliminary stuff: init graph (only for first call) and return unreturned solutions first */\r\n\t\tlogger.info(\"Starting search for next solution. Size of OPEN is {}\", open.size());\r\n\t\ttry {\r\n\t\t\tinitGraph();\r\n\t\t} catch (Throwable e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tif (!solutions.isEmpty()) {\r\n\t\t\tlogger.debug(\"Still have solution in cache, return it.\");\r\n\t\t\treturn solutions.poll();\r\n\t\t}\r\n\t\tdo {\r\n\r\n\t\t\t/* busy waiting for new nodes in OPEN */\r\n\t\t\twhile (open.isEmpty() && activeJobs.get() > 0) {\r\n\t\t\t\tlogger.debug(\"Waiting 100ms, because OPEN size is {} and there are {} active jobs.\", open.size(), activeJobs.get());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\tlogger.info(\"Received interrupt signal\");\r\n\t\t\t\t\tinterrupted = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (open.isEmpty() || interrupted) {\r\n\t\t\t\tlogger.debug(\"OPEN has size {} and interrupted is {}\", open.size(), interrupted);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tlogger.debug(\"Iteration of main loop starts. Size of OPEN now {}. Now performing next expansion step.\", open.size());\r\n\t\t\tstep();\r\n\t\t\tif (!solutions.isEmpty()) {\r\n\t\t\t\tList<T> solution = solutions.poll();\r\n\t\t\t\tlogger.debug(\"Iteration of main loop terminated. Found a solution to return. Size of OPEN now {}\", open.size());\r\n\t\t\t\treturn solution;\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"Iteration of main loop terminated. Size of OPEN now {}. Number of active jobs: {}\", open.size(), activeJobs.get());\r\n\t\t} while ((!open.isEmpty() || activeJobs.get() > 0) && !interrupted);\r\n\t\tif (interrupted)\r\n\t\t\tlogger.info(\"Algorithm was interrupted\");\r\n\t\tif (open.isEmpty())\r\n\t\t\tlogger.info(\"OPEN is empty, terminating (possibly returning a solution)\");\r\n\t\treturn solutions.isEmpty() ? null : solutions.poll();\r\n\t}", "public boolean prepareOrder() throws IOException {\n\n Order order = getCurrentOrder();\n\n if (order == null) {\n\n return false;\n\n } else {\n\n boolean possible = true;\n\n HashMap<String, Double> currentStock = this.getInventory().getStock();\n\n for (HashMap.Entry<String, Double> ingredient : order.getDish().getIngredients().entrySet()) {\n String key = ingredient.getKey();\n if (!currentStock.containsKey(key) || currentStock.get(key) < ingredient.getValue()) {\n possible = false;\n getRestaurant().getOrderSystem().cancelOrder(order);\n\n break;\n }\n }\n\n if (possible) {\n for (HashMap.Entry<String, Double> ingredient : order.getDish().getIngredients()\n .entrySet()) {\n String key = ingredient.getKey();\n getInventory().changeIngredientAmt(key, ingredient.getValue() * -1);\n }\n } else {\n doneWithOrder();\n }\n\n return possible;\n }\n }", "@Override\n public List<Vertex> solution(){\n return solution;\n }", "void solve() throws IOException {\n\t\tint n = ni();\n\t\tint[] v = new int[n];\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tv[i] = ni();\n\t\tsolve(v);\n\t\tout.println(result.size());\n\t\tfor (int a : result)\n\t\t\tout.print(a + \" \");\n\t}", "@Override\n public void solve(Problem p) {\n Queue queue = new LinkedList();\n queue.add(p);\n closeList.add(p);\n\n while (!queue.isEmpty()) {\n\n Problem node = (Problem) queue.remove();\n if (node.isAnswer()) {\n printPath(node);\n return;\n }\n// System.out.println(node);\n node.generateNodes();\n nodesExpanded++;\n for (Iterator<Problem> it = node.nodes.iterator(); it.hasNext();) {\n nodesSeen++;\n Problem problem = it.next();\n if (closeList.contains(problem)) {\n continue;\n }\n problem.visited = true;\n problem.distanceTraveled = node.distanceTraveled + 1;\n// System.out.println(problem.distanceTraveled);\n// System.out.println(problem);\n queue.add(problem);\n closeList.add(problem);\n }\n maxNodes = Math.max(maxNodes, queue.size());\n }\n \n }", "int[] solve() {\n us = new V[vs.length];\n cur = vs.length;\n for (V v : vs) {\n if (!v.visit)\n dfs(v);\n }\n cur = 0;\n for (V u : us) {\n if (u.comp == -1) {\n dfsrev(u);\n ++cur;\n }\n }\n\n int[] ret = new int[n];\n\n for (int i = 0; i < n; i++) {\n V a = vs[i * 2], b = vs[i * 2 + 1];\n if (a.comp == b.comp) {\n return null;\n }\n ret[i] = a.comp > b.comp ? 0 : 1;\n }\n\n return ret;\n }", "protected static List<Conflict> solve() {\n\t\tcleaned = false;\n\t\tif (curMIDI != null)\n\t\t\ttry {\n\t\t\t\tSolver greedy = new OOGreedySolver(setOfStrings);\n\t\t\t\tcurMIDI = TrackSplitter.split(curMIDI, setOfStrings.length, bassTrack);\n\t\t\t\tcurMIDI = greedy.solve(curMIDI);\n\t\t\t\tsetOfConflicts = Cleaner.getConflicts(curMIDI, setOfStrings);\n\n\t\t\t\t//serve users valid choices\n\t\t\t\t//receive users choice\n\t\t\t\t//call appropriate method\n\n\t\t\t\t// give the simulation the new midi\n\t\t\t\tcurMIDI = Cleaner.prePos(curMIDI, prepositionDelay, setOfStrings, prepositionLength);\n\t\t\t\tif (sim!=null) sim.setSequence(curMIDI);\n\t\t\t\treturn setOfConflicts;\n\t\t\t} catch (InvalidMidiDataException e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static void main (String[] args) {\n \tTopologicalOrderingInfoWorksProblem<Integer> graph = new TopologicalOrderingInfoWorksProblem<Integer>();\n graph.add(0, 1);\n graph.add(0, 2);\n graph.add(0, 3);\n graph.add(1, 2);\n graph.add(1, 3);\n graph.add(2, 3);\n graph.add(2, 4);\n// System.out.println(\"current graph: \" + graph);\n graph.printVertexOrder();\n System.out.println(\"check order 1,2 \" + graph.checkIfInOrder(1, 2));\n graph.add(4, 1); // Create a cycle\n// System.out.println(\"current graph: \" + graph);\n System.out.println(\"check order 4,1 \" + graph.checkIfInOrder(4, 1));\n graph.add(4, 5); \n graph.printVertexOrder();\n System.out.println(\"check order 1,5 \" + graph.checkIfInOrder(1, 5));\n }", "public boolean isPossible(Order order) {\n for (DishWrapper dishWrapper : order.getItems()) {\n for (Ingredient ingredient : dishWrapper.getDish().getIngredients()) {\n if (dishWrapper.getAmount() * ingredient.getAmount() > stock.get(stock.indexOf(ingredient)).getAmount()) {\n return false;\n }\n }\n }\n return true;\n }", "public static long solve(/* change signature to provide required inputs */) {\n throw new UnsupportedOperationException(\"Problem141 hasn't been solved yet.\");\n }", "public List<Tuple> solutionToTuples_strict_order()\n {\n return this.solutionToTuples();\n }", "private static boolean checkAndAddDependency(int trans_id, int independent_trans_id) {\n List<Integer> txnsInCycle = new ArrayList<Integer>();\n txnsInCycle.add(trans_id);\n if (DeadlockHandler.isThereACycleInGraph(trans_id, independent_trans_id, txnsInCycle)) {\n // System.out.println(\"List contents are\" + txnsInCycle.toString());\n long youngestTxnTime = transactions.get(txnsInCycle.get(0)).getStartTime();\n Integer youngestTxnId = txnsInCycle.get(0);\n for (Integer t : txnsInCycle) {\n if (youngestTxnTime < transactions.get(t).getStartTime()) {\n youngestTxnTime = transactions.get(t).getStartTime();\n youngestTxnId = t;\n }\n }\n\n\n\n System.out.println(\"Cycle in graph. DEADLOCK\");\n System.out.println(\"Aborted : T\" + youngestTxnId);\n releaseResources(youngestTxnId);\n clearWaitingOperations();\n if (youngestTxnId != trans_id && youngestTxnId != independent_trans_id) {\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n return true;\n }\n\n\n\n return false;\n\n }\n\n else {\n\n // if edge exists we don't need to do anything\n if (!DeadlockHandler.ifThereIsAnEdgeFromT1toT2(trans_id, independent_trans_id)) {\n\n // System.out.println(\"checkAndAddDependency::Edge is not present\");\n // System.out.println(\"checkAndAddDependency::Add dependency edge\");\n // no deadlock hence we can add the edge\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n }\n }\n\n return true;\n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "private void phaseOne(){\r\n\r\n\t\twhile (allNodes.size() < endSize){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//Pick a random node from allNodes\r\n\t\t\t\tint idx = random.nextInt(allNodes.size());\r\n\t\t\t\tNode node = allNodes.get(idx);\r\n\r\n\t\t\t\t//Get all relationships of node\t\t\t\t\r\n\t\t\t\tIterable<Relationship> ite = node.getRelationships(Direction.BOTH);\r\n\t\t\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\r\n\t\t\t\t//Pick one of the relationships uniformly at random.\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\ttempRels.add(rel);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tidx = random.nextInt(tempRels.size());\r\n\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\tNode neighbour = rel.getOtherNode(node);\r\n\r\n\t\t\t\t//Add the neighbour to allNodes\r\n\t\t\t\tif (!allNodes.contains(neighbour)){\r\n\t\t\t\t\tallNodes.add(neighbour);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.success();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If reached here, then phase one completed successfully.\r\n\t\treturn;\r\n\t}", "public void generateSolutionList() {\n // Will probably solve it in a few years\n while (!isSolved()) {\n RubiksMove move = RubiksMove.random();\n solutionMoves.add(move);\n performMove(move);\n }\n }", "public void solveGame3() {\n\t\tlosingStates = new HashSet<S>();\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tint[] uncontrollableCount = new int[game.getStates().size()+1];\n\t\tint[] uncontrollableLosingCount = new int[game.getStates().size()+1];\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> uncontrollableSuccesors;\n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\t uncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\n\t\t\t uncontrollableCount[indexCount] = uncontrollableSuccesors.size();\n\t\t\t uncontrollableLosingCount[indexCount] = 0;\n\t\t\t isUncontrollable[indexCount] = game.isUncontrollable(state);\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableLosingCount[i]++;\n\t\t\t\t\tif (uncontrollableLosingCount[i] == uncontrollableCount[i])\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "@Override\n protected boolean stoppingCriteriaSatisfied(KPMPSolution generatedSolution, FirstImprovementStepFunction stepFunction) {\n KPMPSolutionChecker solutionChecker = new KPMPSolutionChecker();\n int crossingsOnOriginalPage = solutionChecker.getCrossingNumberOfEdge(bestSolution.getSpineOrder(), bestSolution.getEdgePartition(), originalPageIndex, edge);\n int crossingsOnNewPage = solutionChecker.getCrossingNumberOfEdge(generatedSolution.getSpineOrder(), generatedSolution.getEdgePartition(), newPageIndex, edge);\n if (crossingsOnNewPage < crossingsOnOriginalPage) {\n bestSolution = generatedSolution;\n return true;\n }\n if (index == bestSolution.getEdgePartition().size() && pageCounter != bestSolution.getNumberOfPages() - 1) {\n index = 0;\n pageCounter++;\n }\n return ((System.nanoTime() - Main.START) / 1000000) >= (Main.secondsBeforeStop * 1000) || index == bestSolution.getEdgePartition().size() && pageCounter == bestSolution.getNumberOfPages() - 1;\n }", "public static void main(String[] args) {\n\t\tint numCourses = 5;\n\t\tint[][] prerequisites = {\n\t\t\t\t{0,1},\n\t\t\t\t{2,4},\n\t\t\t\t{3,4},\n\t\t\t\t{1,3},\n\t\t\t\t{2,3}\n\t\t\t};\n\t\t\n\t\tint res[] = findOrder(numCourses, prerequisites);\n\t\t\n\t\tfor(int val: res)\n\t\t\tSystem.out.print(\" \" + val);\n\t\t\n\t}", "@Test\n void Adventure_ShouldReuseOrderOfRemovedStoryPiecesAndIncrementTheOrderOnlyIfThereAreNoSpareOrdersLeft() {\n for (int i=0; i<5; i++) {\n StoryPiece sp = new StoryPiece();\n defaultAdventure.addStoryPiece(sp);\n }\n\n // Removing StoryPieces with orders 3 and 5\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(2));\n defaultAdventure.removeStoryPiece(defaultAdventure.getStoryPieces().get(3));\n\n // Adventure should reuse the unassigned orders before incrementing the order\n StoryPiece spWithOrder3 = new StoryPiece();\n StoryPiece spWithOrder5 = new StoryPiece();\n\n defaultAdventure.addStoryPiece(spWithOrder3);\n defaultAdventure.addStoryPiece(spWithOrder5);\n\n // At this point all orders 1-6 should be assigned, so we expect this to have order 7\n StoryPiece newSP = new StoryPiece();\n defaultAdventure.addStoryPiece(newSP);\n\n assertEquals(3, spWithOrder3.getOrder(),\n \"Order not reused - StoryPiece should have order 3\");\n assertEquals(5, spWithOrder5.getOrder(),\n \"Order not reused, StoryPiece should have order 5\");\n assertEquals(7, newSP.getOrder(),\n \"StoryPiece should have been assigned a new incremented order 7.\");\n\n }", "public void run(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n checkOrder(orders, false);\n }", "public void solveGame() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\n\t\t\tif(!relaxAllControllables){\n\t\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\n\t\t\t\t\t\tcurrentSet.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "public void makeFirstRound() {\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n for (Distributor dst : listOfDistributors.getList()) {\n if (dst.getSubscribedproducers().isEmpty()) {\n int auxNeededPower = dst.getEnergyNeededKW();\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower < 0) {\n break;\n }\n }\n }\n }\n }\n\n Distributor bestDist = listOfDistributors.getBestDistinRound();\n\n for (Consumer auxcons : listOfConsumers.getList()) {\n auxcons.setBudget(auxcons.getInitialBudget() + auxcons.getMonthlyIncome());\n auxcons.setIdofDist(bestDist.getId());\n auxcons.setMonthstoPay(bestDist.getContractLength());\n auxcons.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(auxcons);\n if (auxcons.getBudget() >= auxcons.getToPay()) {\n auxcons.addtoBudget(-auxcons.getToPay());\n auxcons.reduceMonths();\n bestDist.addBudget(auxcons.getToPay());\n } else {\n auxcons.setDuepayment(auxcons.getToPay());\n auxcons.reduceMonths();\n }\n if (auxcons.getMonthstoPay() == 0) {\n auxcons.setIdofDist(-1);\n }\n }\n\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n }", "private static int[] findOrder( int numCourses, int[][] prerequisites ) {\n\n ArrayList<Integer>[] graphList = new ArrayList[numCourses];\n int[] inDegree = new int[numCourses];\n\n for (int i = 0; i < numCourses; i++)\n graphList[i] = new ArrayList<>();\n\n //here {0,1} represent differently as compared to CourseScheduleIV\n for (int[] graph : prerequisites) {\n graphList[graph[1]].add(graph[0]);\n inDegree[graph[0]]++; //logically it is outdegree of Jth Node\n }\n\n Queue<Integer> queue = new LinkedList<>();\n int[] list = new int[numCourses];\n int resIndex = 0;\n\n //now whatever node's in-degree is zero then that is a END node\n for (int i = 0; i < inDegree.length; i++) {\n if (inDegree[i] == 0) {\n queue.offer(i);\n list[resIndex++] = i;\n }\n }\n\n int countVisited = 0;\n while (!queue.isEmpty()) {\n int node = queue.poll();\n\n countVisited++;\n for (int neighbour : graphList[node]) {\n\n if (--inDegree[neighbour] == 0) {\n queue.offer(neighbour);\n list[resIndex++] = neighbour;\n }\n }\n }\n\n if (countVisited != numCourses)\n return new int[]{};\n\n return list;\n }", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "Ordering<Part> getOrdering();", "@Test\n public void shouldEvaluateWorkProperlyCase3() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.5, 1.5})) ;\n\n assertEquals((1.5 - 0.75) * (1.5 - 0.25) + (0.75 - 0.5) * (1.5 - 0.5) + (0.5 - 0.25) * (1.5 - 0.75), result, 0.0001) ;\n }", "public List<String> getSequentialPlan() {\n // ==========================================\n // Computing the (cheapest) sequence of steps\n // ==========================================\n \n // Maps of steps and cost from the global state s to the others\n Map<GlobalState,List<Step>> steps = new HashMap();\n steps.put(current,new ArrayList());\n Map<GlobalState,Integer> costs = new HashMap();\n costs.put(current,0);\n // List of visited states\n List<GlobalState> visited = new ArrayList();\n visited.add(current);\n\n // List of global states still to be visited\n List<GlobalState> toBeVisited = new ArrayList();\n \n // Adding the states reachable from start to \"toBeVisited\"\n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations towards \"next\" \n List<Step> stepSeq = new ArrayList();\n stepSeq.add(step);\n steps.put(next,stepSeq);\n // Adding the cost of the sequence of operation towards \"next\"\n costs.put(next,step.getCost());\n toBeVisited.add(next);\n }\n \n // Exploring the graph of global states by exploiting \"toBeVisited\"\n while(toBeVisited.size() > 0) {\n // Removing the first global state to be visited and marking it\n // as visited\n GlobalState current = toBeVisited.remove(0);\n visited.add(current);\n \n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations from \"start\" to \"next\"\n // (if more convenient)\n int nextCost = costs.get(current) + step.getCost();\n if(visited.contains(next)) {\n // If current path is cheaper, updates \"steps\" and \"costs\"\n if(costs.get(next) > nextCost) {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next,nextCost);\n }\n } else {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next, nextCost);\n if(!(toBeVisited.contains(next))) toBeVisited.add(next);\n }\n }\n }\n \n // ====================================================\n // Computing the sequence of operations from \"s\" to \"t\"\n // ====================================================\n // If no plan is available, return null\n if(steps.get(target) == null) \n return null;\n // Otherwise, return the corresponding sequence of operations\n List<String> opSequence = new ArrayList();\n for(Step step : steps.get(target)) {\n if(!(step.getReason().contains(Step.handling))) {\n opSequence.add(step.getReason());\n }\n }\n return opSequence;\n }", "public static void main(String[] args) {\n System.out.println(solution(new int[]{3,1,2,4,3}));\n }", "public SolutionType getBestSolution();", "@Override\n protected boolean stoppingCriteriaSatisfied(KPMPSolution generatedSolution, BestImprovementStepFunction stepFunction) {\n KPMPSolutionChecker solutionChecker = new KPMPSolutionChecker();\n int crossingsOnOriginalPage = solutionChecker.getCrossingNumberOfEdge(bestSolution.getSpineOrder(), bestSolution.getEdgePartition(), originalPageIndex, edge);\n int crossingsOnNewPage = solutionChecker.getCrossingNumberOfEdge(generatedSolution.getSpineOrder(), generatedSolution.getEdgePartition(), newPageIndex, edge);\n if (crossingsOnNewPage < crossingsOnOriginalPage) {\n bestSolution = generatedSolution;\n index = 0;\n pageCounter = 0;\n\n crossingNumber = crossingNumber - (crossingsOnOriginalPage - crossingsOnNewPage);\n\n //assert(crossingNumber == new KPMPSolutionChecker().getCrossingNumber(bestSolution));\n }\n if (index == bestSolution.getEdgePartition().size() && pageCounter != bestSolution.getNumberOfPages() - 1) {\n index = 0;\n pageCounter++;\n }\n return ((System.nanoTime() - Main.START) / 1000000) >= (Main.secondsBeforeStop * 1000) || index == bestSolution.getEdgePartition().size() && pageCounter == bestSolution.getNumberOfPages() - 1 || numberOfIterations >= Main.localSearchIterationLimit;\n }", "@Test\n public void testDeployCommandInOpponentCountry() {\n d_gameData.getD_playerList().get(0).setD_noOfArmies(10);\n d_orderProcessor.processOrder(\"deploy nepal 6\", d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertEquals(false, l_order.executeOrder());\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "public void solveGame5() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "public static void main(String[] args) {\n\t\tint A[]={1,3,1,4,2,3,5,4};\n\t\tint result=solution(5,A);\n\t\tSystem.out.println(result);\n\t}", "public ArrayList<float[]> getSolutions( LockScreen problem ) {\n\t\t\n\t\tArrayList<float[]> solutions = new ArrayList<float[]>();\n\t\tint pbSize = problem._disks.size();\n\t\t\n\t\t// init all to -PI\n\t\tfor (LockDisk disk : problem._disks) {\n\t\t\tdisk.reset();\n\t\t\tdisk._rotAngle = - MathUtils.PI;\t\n\t\t}\n\t\t// Solution\n\t\tSystem.out.println( \"****** Cherche Solution pour\");\n\t\tfor (LockDisk d : problem._disks) {\n\t\t\tSystem.out.println( \"Disk \"+d._id+ \" ang=\"+d._rotAngle*MathUtils.radDeg);\n\t\t}\n\t\tboolean fgSol = evaluateSolution(problem);\n\t\tif (fgSol) {\n\t\t\tfloat[] oneSolution = new float[pbSize];\n\t\t\tfor (int i = 0; i < oneSolution.length; i++) {\n\t\t\t\toneSolution[i] = problem._disks.get(i)._rotAngle;\n\t\t\t}\n\t\t\tsolutions.add( oneSolution );\n\t\t}\n\t\t\n\t\t// increment while not finished\n\t\tboolean fgFinished = false;\n\t\twhile ( !fgFinished ) {\n\t\t\t// CHECK if SOLUTION\n\t\t\t// INCREMENT\n\t\t\tboolean fgNeedIncrement = true;\n\t\t\tLockDisk disk = problem._disks.get(problem._disks.size()-1);\n\t\t\twhile (fgNeedIncrement == true && disk != null) {\n\t\t\t\tdisk._rotAngle += ANG_INCREMENT;\n\t\t\t\n\t\t\t\t// If over PI -> will try to increment next disk\n\t\t\t\tif (disk._rotAngle >= MathUtils.PI) {\n\t\t\t\t\tdisk._rotAngle = - MathUtils.PI;\n\t\t\t\t\tdisk = disk._nextDisk;\n\t\t\t\t}\n\t\t\t\t// else ok, increment is finished\n\t\t\t\telse {\n\t\t\t\t\tfgNeedIncrement = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Finished if disk=null and still need increment\n\t\t\tif (fgNeedIncrement == true && disk == null ) {\n\t\t\t\tfgFinished = true;\n\t\t\t\tSystem.out.println(\">>>>>>> FINISHED <<<<<<\");\n\t\t\t}\n\t\t\t// else, do we have a solution\n\t\t\telse {\n\t\t\t\t// Solution\n\t\t\t\tSystem.out.println( \"****** Cherche Solution pour\");\n\t\t\t\tfor (LockDisk d : problem._disks) {\n\t\t\t\t\tSystem.out.println( \"Disk \"+d._id+ \" ang=\"+d._rotAngle*MathUtils.radDeg);\n\t\t\t\t}\n\t\t\t\tfgSol = evaluateSolution(problem);\n\t\t\t\tif (fgSol) {\n\t\t\t\t\tfloat[] oneSolution = new float[pbSize];\n\t\t\t\t\tfor (int i = 0; i < oneSolution.length; i++) {\n\t\t\t\t\t\toneSolution[i] = problem._disks.get(i)._rotAngle;\n\t\t\t\t\t}\n\t\t\t\t\tsolutions.add( oneSolution );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println( \"**** SOLUTIONS ****\");\n\t\tString solStr = \"\";\n\t\tfor (float[] fs : solutions) {\n\t\t\tsolStr += \" (\";\n\t\t\tfor (int i = 0; i < fs.length; i++) {\n\t\t\t\tsolStr += (fs[i]*MathUtils.radDeg)+\", \";\n\t\t\t}\n\t\t\tsolStr += \"),\";\n\t\t}\n\t\tSystem.out.println(solStr);\n\t\t\n\t\t\n\t\treturn solutions;\n\t}", "public static boolean solve(Problem inputProblem, int popLimit, double mutChance, int iterLimit) {\n\n // Check All the Input Parameter\n // popLimit: Make as Even\n int evenBase = 2;\n if (popLimit % evenBase != 0){\n popLimit = popLimit + 1;\n }\n // mutChance: in the Range of 0% and 100%\n if (mutChance < 0 || mutChance > 1){\n System.out.println(\"Invalid Mutation Chance: \" + mutChance);\n return false;\n }\n\n // Initialization\n Solution[] currentPop = initPopulation(inputProblem, popLimit);\n Solution[] generatedPop, nextPop;\n\n System.out.println(0 + \"\\t\" +0+ \"\\t\" +currentPop[0].distance);\n long time = System.nanoTime();\n\n // Loop For Counting Iteration\n for (int turn = 0; turn < iterLimit; turn++) {\n //System.out.println(currentPop[0].distance);\n // Initialization Next Generation\n generatedPop = new Solution[popLimit];\n\n // Loop for Generating Next Population\n Solution[] parent, offspring;\n for (int leftChild = popLimit; leftChild > 0; leftChild = leftChild - 2) {\n // Selection\n parent = rankSelection(currentPop);\n // CrossOver\n offspring = CrossOver_mapping(currentProblem, parent[0], parent[1]);\n // Prevent Duplicated Offspring\n if (haveDuplicated(generatedPop, offspring[0]) || haveDuplicated(generatedPop, offspring[1])) {\n leftChild = leftChild + 2;\n continue;\n }\n // Add Child into generatedPop\n generatedPop[leftChild - 1] = offspring[0];\n generatedPop[leftChild - 2] = offspring[1];\n }\n\n // Mutation For Each Solution\n Solution newElement;\n for (int index = 0; index < popLimit; index++){\n if(Math.random() < mutChance){\n // Use Local Search to Finish Mutation\n newElement = HillClimbing.solve_invoke(inputProblem, generatedPop[index]);\n // Prevent Duplicated Offspring\n if (!haveDuplicated(generatedPop, newElement)) {\n generatedPop[index] = newElement;\n }\n }\n }\n\n // Sort the Generated Array\n Arrays.sort(generatedPop);\n // Produce Next Generation\n nextPop = getTopSolutions(currentPop, generatedPop, popLimit);\n\n // Switch nextPop to currentPop\n currentPop = nextPop;\n System.out.println((System.nanoTime() - time) + \"\\t\" + (turn+1) + \"\\t\" + currentPop[0].distance);\n }\n // Store into the Static Variable\n optimalSolution = currentPop[0];\n return true;\n }", "public boolean p4_canBeReturned(Order order) {\n\t\t//return true; // order.getOrderLines().stream() // INITIAL\n\t\t// SOLUTION(\n\t\treturn order.getOrderLines().stream()\n\t\t\t\t\t//.filter(OrderLine::wasDelivered) // Change: daca v-as fi spus ca doar orderline-urile livrate...\n\t\t\t\t\t.noneMatch(line -> line.isSpecialOffer());\n\t\t// SOLUTION)\n\t}", "public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}", "@Test\n public void testSubsequentRunsWithUnsatisfiableConstraint() {\n System.out.println(\" - test subsequent runs with unsatisfiable constraint\");\n // set constraint\n problem.addMandatoryConstraint(new NeverSatisfiedConstraintStub());\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n // verify\n assertNull(searchLowTemp.getBestSolution());\n assertNull(searchMedTemp.getBestSolution());\n assertNull(searchHighTemp.getBestSolution());\n }", "public static Nodo buscarSolucionPorAmplitud(Nodo inicio, int[][] solucion) {\n\t\tArrayList<Nodo> abiertos = new ArrayList<Nodo>();\n\t\tabiertos.add(inicio);\n\t\tint cont = 0;\n\t\tArrayList<Nodo> visitados = new ArrayList<Nodo>();\n\t\twhile(abiertos.size()!=0) {\n\t\t\tSystem.out.println(\"Visitados\");\n\t\t\tSystem.out.println(\"#################################\");\n\t\t\tfor(Nodo n : visitados) {\n\t\t\t\timprimirEstado(n.getEstado());\n\t\t\t\tSystem.out.println(\"Costo de este nodo: \" + n.getCosto());\n\t\t\t\tSystem.out.println(\"---------------\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#################################\");\n\t\t\tNodo revisar = abiertos.remove(0);\n\t\t\trevisar.setCosto(calcularCosto(revisar.getEstado(), solucion));\n\t\t\timprimirEstado(revisar.getEstado());\n\t\t\tint[] pcero = ubicarPosicionCero(revisar.getEstado());\n\t\t\tSystem.out.println(\"Iteracion # \" + ++cont);\n\t\t\tif(Arrays.deepEquals(revisar.getEstado(), solucion)) {\n\t\t\t\tSystem.out.println(\"***** SOLUCION ENCONTRADA *****\");\n\t\t\t\treturn revisar;\n\n\t\t\t}\n\n\t\t\tArrayList<Nodo> hijos = new ArrayList<Nodo>();\n\t\t\tvisitados.add(revisar);\n\t\t\tif(pcero[0]!=0) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint arriba = hijo.getEstado()[pcero[0]-1][pcero[1]];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = arriba;\n\t\t\t\thijo.getEstado()[pcero[0]-1][pcero[1]] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[0]!=2) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint abajo = hijo.getEstado()[pcero[0]+1][pcero[1]];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = abajo;\n\t\t\t\thijo.getEstado()[pcero[0]+1][pcero[1]] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[1]!=0) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint izq = hijo.getEstado()[pcero[0]][pcero[1]-1];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = izq;\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]-1] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\tif(pcero[1]!=2) {\n\t\t\t\tNodo hijo = new Nodo(clonar(revisar.getEstado()));\n\t\t\t\thijo.setCosto(calcularCosto(hijo.getEstado(), solucion));\n\t\t\t\tint der = hijo.getEstado()[pcero[0]][pcero[1]+1];\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]] = der;\n\t\t\t\thijo.getEstado()[pcero[0]][pcero[1]+1] = 0;\n\t\t\t\tif(!estaEnVisitados(visitados, hijo))\n\t\t\t\t\tabiertos.add(hijo); //Esta linea es para hacer recorrido em amplitud\n\t\t\t\thijos.add(hijo);\n\t\t\t}\n\t\t\trevisar.setHijos(hijos);\n\t\t}\n\t\treturn null;\n\n\t}", "public static void main (String[] args)\n {\n\n int A[] ={ 1, 0, 8, 9, 20, 39};\n\n int res = solution2(A);\n\n\n }", "public SolutionSet execute() throws Exception {\r\n\t\tint bisections, archiveSize, maxEvaluations, evaluations;\r\n\t\tAdaptiveGridArchive archive;\r\n\t\tOperator mutationOperator;\r\n\t\tComparator dominance;\r\n\r\n\t\t// Read the params\r\n\t\tbisections = ((Integer) this.getInputParameter(\"biSections\")).intValue();\r\n\t\tarchiveSize = ((Integer) this.getInputParameter(\"archiveSize\")).intValue();\r\n\t\tmaxEvaluations = ((Integer) this.getInputParameter(\"maxEvaluations\")).intValue();\r\n\r\n\t\t// Read the operators\r\n\t\tmutationOperator = this.operators_.get(\"mutation\");\r\n\r\n\t\t// Initialize the variables\r\n\t\tevaluations = 0;\r\n\t\tarchive = new AdaptiveGridArchive(archiveSize, bisections, problem_.getNumberOfObjectives());\r\n\t\tdominance = new DominanceComparator();\r\n\r\n\t\t// -> Create the initial solution and evaluate it and his constraints\r\n\t\tSolution solution = new Solution(problem_);\r\n\t\tproblem_.evaluate(solution);\r\n\t\tproblem_.evaluateConstraints(solution);\r\n\t\tevaluations++;\r\n\r\n\t\t// Add it to the archive\r\n\t\tarchive.add(new Solution(solution));\r\n\t\tint fileNum = 0, num = 0;\r\n\t\ttry {\r\n\t\t\tcreateFile(fileNum);\r\n\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t}\r\n\t\t\tfileTime.close();\r\n\t\t\tfileNum++;\r\n\t\t\tnum += 1000;\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// Iterations....\r\n\t\tdo {\r\n\t\t\t// Create the mutate one\r\n\t\t\tSolution mutatedIndividual = new Solution(solution);\r\n\t\t\tmutationOperator.execute(mutatedIndividual);\r\n\r\n\t\t\tproblem_.evaluate(mutatedIndividual);\r\n\t\t\tproblem_.evaluateConstraints(mutatedIndividual);\r\n\t\t\tevaluations++;\r\n\t\t\t// <-\r\n\r\n\t\t\t// Check dominance\r\n\t\t\tint flag = dominance.compare(solution, mutatedIndividual);\r\n\r\n\t\t\tif (flag == 1) { // If mutate solution dominate\r\n\t\t\t\tsolution = new Solution(mutatedIndividual);\r\n\t\t\t\tarchive.add(mutatedIndividual);\r\n\t\t\t} else if (flag == 0) { // If none dominate the other\r\n\t\t\t\tif (archive.add(mutatedIndividual)) {\r\n\t\t\t\t\tsolution = test(solution, mutatedIndividual, archive);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * if ((evaluations % 100) == 0) {\r\n\t\t\t * archive.printObjectivesToFile(\"FUN\"+evaluations) ;\r\n\t\t\t * archive.printVariablesToFile(\"VAR\"+evaluations) ;\r\n\t\t\t * archive.printObjectivesOfValidSolutionsToFile(\"FUNV\"+evaluations) ; }\r\n\t\t\t */\r\n\t\t\tif (evaluations >= num) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcreateFile(fileNum);\r\n\t\t\t\t\tFileWriter fwTime = new FileWriter(fileName.getAbsoluteFile(), true);\r\n\t\t\t\t\tBufferedWriter fileTime = new BufferedWriter(fwTime);\r\n\t\t\t\t\tfor (int i = 0; i < archive.size(); i++) {\r\n\r\n\t\t\t\t\t\tfileTime.write(archive.get(i).getObjective(0) + \" \" + archive.get(i).getObjective(1) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(2) + \" \" + archive.get(i).getObjective(3) + \" \"\r\n\t\t\t\t\t\t\t\t+ archive.get(i).getObjective(4));\r\n\t\t\t\t\t\tfileTime.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfileTime.close();\r\n\t\t\t\t\tfileNum++;\r\n\t\t\t\t\tnum += 1000;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (evaluations < maxEvaluations);\r\n\r\n\t\t// Return the population of non-dominated solution\r\n\t\tarchive.printFeasibleFUN(\"FUN_PAES\");\r\n\r\n\t\treturn archive;\r\n\t}", "public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }", "@Test\n public void shouldEvaluateWorkProperlyCase2() throws FileNotFoundException {\n DoubleProblem problem = new MockDoubleProblem(2) ;\n\n List<DoubleSolution> frontToEvaluate = new ArrayList<>() ;\n\n DoubleSolution solution = problem.createSolution() ;\n solution.setObjective(0, 0.25);\n solution.setObjective(1, 0.75);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.75);\n solution.setObjective(1, 0.25);\n frontToEvaluate.add(solution) ;\n\n solution = problem.createSolution() ;\n solution.setObjective(0, 0.5);\n solution.setObjective(1, 0.5);\n frontToEvaluate.add(solution) ;\n\n WFGHypervolume<DoubleSolution> hypervolume = new WFGHypervolume<>() ;\n double result = hypervolume.computeHypervolume(frontToEvaluate, new ArrayPoint(new double[]{1.0, 1.0})) ;\n\n assertEquals(0.25*0.75 + 0.25*0.5 + 0.25*0.25, result, 0.0001) ;\n }", "protected abstract int solve(List<Integer> myList);", "@Test\n public void StuckInLine() {\n\n int[] line = {2,5,3,4,5};\n int position = 2;\n Assert.assertEquals(12,Computation.getNeededTickets(line,position));\n\n int[] line2 = {5,5,2,3};\n position = 3;\n Assert.assertEquals(11,Computation.getNeededTickets(line2,position));\n\n int[] line3 = {1,1,1,1};\n position = 0;\n Assert.assertEquals(1,Computation.getNeededTickets(line3,position));\n\n\n }", "@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }", "private int runOnce(List<Integer> myList) {\n return solve(myList);\n }", "public boolean solve()\n\t{\n Position[] pos=path.getLastStep().neighbors();\n if (grid.isOnBoundary(path.getLastStep())&&grid.isOpen(path.getLastStep()))\n\t\treturn true;\n if (path.getLastStep()==start)\n return false;\n for (int i=0;i<4;i++)\n {\n if (pos[i]!=path.getLastStep() && grid.isOpen(pos[i]))\n path.extend(pos[i]);\n }\n if (grid.isBlocked(path.getLastStep())||grid.isRejected(path.getLastStep()))\n {\n path.backUp();\n solve();\n }\n return false;\n \n\t}", "@Override\n protected boolean stoppingCriteriaSatisfied(KPMPSolution generatedSolution, RandomStepFunction stepFunction) {\n numberOfIterations++;\n numberOfIterationsWithoutImprovement++;\n KPMPSolutionChecker solutionChecker = new KPMPSolutionChecker();\n int crossingsOnOriginalPage = solutionChecker.getCrossingNumberOfEdge(bestSolution.getSpineOrder(), bestSolution.getEdgePartition(), originalPageIndex, edge);\n int crossingsOnNewPage = solutionChecker.getCrossingNumberOfEdge(generatedSolution.getSpineOrder(), generatedSolution.getEdgePartition(), newPageIndex, edge);\n if (crossingsOnNewPage < crossingsOnOriginalPage) {\n bestSolution = generatedSolution;\n numberOfIterationsWithoutImprovement = 0;\n\n crossingNumber = crossingNumber - (crossingsOnOriginalPage - crossingsOnNewPage);\n }\n return numberOfIterations >= Main.localSearchIterationLimit || numberOfIterations >= bestSolution.getEdgePartition().size() * bestSolution.getNumberOfPages() || numberOfIterationsWithoutImprovement >= Main.iterationMultiplier || ((System.nanoTime() - Main.START) / 1000000) >= (Main.secondsBeforeStop * 1000) || numberOfIterations >= Main.localSearchIterationLimit;\n }", "public int solution(int[] A) {\n ArrayList<Integer> fibonacci = new ArrayList<>();\n\n fibonacci.add(0); // note: f(0) = 0 (as in the quesion)\n fibonacci.add(1);\n // note: using \"while\" is better than \"for\" (avoid errors)\n\n while (true) {\n int temp1 = fibonacci.get(fibonacci.size() - 1);\n int temp2 = fibonacci.get(fibonacci.size() - 2);\n\n fibonacci.add(temp1 + temp2);\n\n // if already bigger than length, then break;\n if (temp1 + temp2 > A.length) {\n break;\n }\n }\n\n // reverse \"List\": from big to small\n Collections.reverse(fibonacci);\n\n // use \"queue\" with \"point\"\n // point(x,y) = point(\"position\", \"number of steps\")\n ArrayList<Point> queue = new ArrayList<>();\n\n queue.add(new Point(-1, 0)); // position:-1, steps:0\n\n // index: the current index for queue element\n int index = 0;\n while (true) {\n // cannot take element from queue anymore\n if (index == queue.size()) {\n return -1;\n }\n\n // take element from queue\n Point current = queue.get(index);\n\n // from big to small\n for (Integer n : fibonacci) {\n int nextPosition = current.x + n;\n\n // case 1: \"reach the other side\"\n if (nextPosition == A.length) {\n // return the number of steps\n return current.y + 1;\n }\n\n // case 2: \"cannot jump\"\n // note: nextPosition < 0 (overflow, be careful)\n else if ((nextPosition > A.length) || (nextPosition < 0) || (A[nextPosition] == 0)) {\n // note: do nothing\n }\n\n // case 3: \"can jump\" (othe cases)\n else {\n // jump to next position, and step+1\n Point temp = new Point(nextPosition, current.y + 1);\n // add to queue\n queue.add(temp);\n\n A[nextPosition] = 0; // key point: for high performance~!!\n }\n }\n\n index++; // take \"next element\" from queue\n }\n }" ]
[ "0.64073485", "0.57313406", "0.56960976", "0.5690505", "0.56681913", "0.5640321", "0.5637767", "0.5602559", "0.5585022", "0.55776083", "0.55650353", "0.5527866", "0.5484728", "0.542512", "0.5379713", "0.53645116", "0.5357779", "0.5346574", "0.533268", "0.53151953", "0.5306813", "0.5292208", "0.52647525", "0.52626735", "0.5257307", "0.52441883", "0.5242034", "0.5241219", "0.5235263", "0.5229996", "0.52250826", "0.5224215", "0.52232456", "0.5215356", "0.5192671", "0.5191017", "0.5188253", "0.51800984", "0.5173386", "0.51698077", "0.5164565", "0.5157042", "0.5147335", "0.51441133", "0.5132147", "0.5131656", "0.5131644", "0.5125269", "0.51078767", "0.51018995", "0.5099646", "0.5084348", "0.5073605", "0.5058652", "0.5055106", "0.50478244", "0.5045581", "0.50447184", "0.50446904", "0.5043475", "0.50426733", "0.5040267", "0.5039813", "0.5039338", "0.50299734", "0.50249124", "0.50246644", "0.5017067", "0.5015851", "0.50128853", "0.50079787", "0.500459", "0.499862", "0.49985313", "0.49926862", "0.49898678", "0.49816856", "0.49749038", "0.49718386", "0.49711066", "0.49683735", "0.49652597", "0.49569526", "0.49517846", "0.49451855", "0.49432263", "0.4941349", "0.4936909", "0.49346715", "0.49341682", "0.49296945", "0.4929601", "0.49282876", "0.49211878", "0.49187943", "0.49114716", "0.49073678", "0.49071822", "0.49067408", "0.4905977", "0.49055988" ]
0.0
-1
Created by taylor on 12/18/16.
public interface TodoPresenter extends BaseListPresenter<TodoView> { Item createItem(String name); void completeItem(Item item, int position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n public int describeContents() { return 0; }", "public void mo12628c() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void m50367F() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "public void m23075a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public abstract void mo56925d();", "public void mo12930a() {\n }", "public void mo21878t() {\n }", "public void mo21779D() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo6081a() {\n }", "protected void mo6255a() {\n }", "public void mo21825b() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "public void mo23813b() {\n }", "public void skystonePos6() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n }", "@Override public int describeContents() { return 0; }", "public void mo115190b() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo9848a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "static void feladat4() {\n\t}", "public void mo55254a() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo21793R() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}" ]
[ "0.5730765", "0.5705413", "0.5630205", "0.5595633", "0.5559497", "0.55334586", "0.5520913", "0.5516857", "0.54759717", "0.5466684", "0.54615885", "0.54615885", "0.54437083", "0.544147", "0.5441365", "0.5429972", "0.5412962", "0.53844684", "0.5377189", "0.5322561", "0.5321769", "0.531991", "0.5303073", "0.5282786", "0.52809125", "0.5275744", "0.52622217", "0.52463114", "0.524336", "0.5240951", "0.5235004", "0.5235004", "0.5235004", "0.5235004", "0.5235004", "0.5231253", "0.52261496", "0.52261496", "0.52261496", "0.52261496", "0.52261496", "0.52261496", "0.52261496", "0.5226066", "0.5224889", "0.5223106", "0.5214835", "0.5213974", "0.5195128", "0.5191612", "0.5188099", "0.51821816", "0.51802605", "0.51722836", "0.5171755", "0.5171755", "0.5170528", "0.51628363", "0.5151843", "0.5146936", "0.5142699", "0.5127949", "0.5126927", "0.512018", "0.5117844", "0.5115668", "0.51135004", "0.5110635", "0.5108075", "0.51055384", "0.5103471", "0.5101691", "0.51004976", "0.509788", "0.5095608", "0.5093494", "0.5093436", "0.5085591", "0.507668", "0.50739634", "0.50681984", "0.5064103", "0.50634325", "0.50634325", "0.50634325", "0.50634325", "0.50634325", "0.50634325", "0.5063105", "0.5063105", "0.5063105", "0.5055619", "0.50556135", "0.50556135", "0.50556135", "0.5054002", "0.5047159", "0.5045744", "0.50438315", "0.50432885", "0.5041715" ]
0.0
-1
Convert hex string to byte[]
public static byte[] hexStringToBytes(String hexString) { if (hexString == null || hexString.equals("")) { return null; } hexString = hexString.toUpperCase(); int length = hexString.length() / 2; char[] hexChars = hexString.toCharArray(); byte[] d = new byte[length]; for (int i = 0; i < length; i++) { int pos = i * 2; d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1])); } return d; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] fromHex(String hex) {\n byte[] bytes = new byte[hex.length() / 2];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return bytes;\n }", "public static byte[] fromHex(String hex) {\n\t\tbyte[] bytes = new byte[hex.length() / 2];\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tbytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n\t\t}\n\t\treturn bytes;\n\t}", "private static byte[] fromHex(String hex) throws NoSuchAlgorithmException {\n byte[] bytes = new byte[hex.length() / 2];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return bytes;\n }", "@NotNull\n public static byte[] convertHexToBytes(@NotNull String s) {\n checkNotNull(s);\n int len = s.length();\n checkArgument(len % 2 == 0);\n\n len /= 2;\n byte[] buff = new byte[len];\n for (int i = 0; i < len; i++) {\n buff[i] = (byte) ((getHexDigit(s, i + i) << 4) | getHexDigit(s, i + i + 1));\n }\n return buff;\n }", "public static byte[] fromHex(String hex) {\n hex = hex.toUpperCase();\n byte[] b = new byte[hex.length() / 2];\n for (int i = 0; i < b.length; i++) {\n b[i] = (byte)((toBinaryFromHex((byte)hex.charAt(2 * i)) << 4) +\n toBinaryFromHex((byte)hex.charAt((2 * i + 1))));\n }\n return b;\n }", "public static byte[] fromHex(String hex) {\n byte[] binary = new byte[hex.length() / 2];\n for (int i = 0; i < binary.length; i++) {\n binary[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return binary;\n }", "public static byte[] convert(String hex) {\n/* 51 */ ByteArrayOutputStream baos = new ByteArrayOutputStream();\n/* 52 */ for (int i = 0; i < hex.length(); i += 2) {\n/* 53 */ char c1 = hex.charAt(i);\n/* 54 */ if (i + 1 >= hex.length())\n/* 55 */ throw new IllegalArgumentException(); \n/* 56 */ char c2 = hex.charAt(i + 1);\n/* 57 */ byte b = 0;\n/* 58 */ if (c1 >= '0' && c1 <= '9') {\n/* 59 */ b = (byte)(b + (c1 - 48) * 16);\n/* 60 */ } else if (c1 >= 'a' && c1 <= 'f') {\n/* 61 */ b = (byte)(b + (c1 - 97 + 10) * 16);\n/* 62 */ } else if (c1 >= 'A' && c1 <= 'F') {\n/* 63 */ b = (byte)(b + (c1 - 65 + 10) * 16);\n/* */ } else {\n/* 65 */ throw new IllegalArgumentException();\n/* 66 */ } if (c2 >= '0' && c2 <= '9') {\n/* 67 */ b = (byte)(b + c2 - 48);\n/* 68 */ } else if (c2 >= 'a' && c2 <= 'f') {\n/* 69 */ b = (byte)(b + c2 - 97 + 10);\n/* 70 */ } else if (c2 >= 'A' && c2 <= 'F') {\n/* 71 */ b = (byte)(b + c2 - 65 + 10);\n/* */ } else {\n/* 73 */ throw new IllegalArgumentException();\n/* 74 */ } baos.write(b);\n/* */ } \n/* 76 */ return baos.toByteArray();\n/* */ }", "private static byte[] fromHex(final String hex) {\n final byte[] binary = new byte[hex.length() / 2];\n for (int i = 0; i < binary.length; i++) {\n binary[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return binary;\n }", "private static byte[] fromHex(String hex) throws NoSuchAlgorithmException\n {\n byte[] bytes = new byte[hex.length() / 2];\n for(int i = 0; i<bytes.length ;i++)\n {\n bytes[i] = (byte)Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return bytes;\n }", "private static byte[] fromHex(String hex) {\r\n byte[] binary = new byte[hex.length() / 2];\r\n for (int i = 0; i < binary.length; i++) {\r\n binary[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\r\n }\r\n return binary;\r\n }", "private static byte[] fromHex(String hex)\n\t {\n\t byte[] binary = new byte[hex.length() / 2];\n\t for(int i = 0; i < binary.length; i++)\n\t {\n\t binary[i] = (byte)Integer.parseInt(hex.substring(2*i, 2*i+2), 16);\n\t }\n\t return binary;\n\t }", "public static byte[] hexToArray(String hex) {\n byte[] result = new byte[hex.length()/2];\n for (int i=0; i<hex.length(); i+=2) {\n result[i/2] = (byte) Integer.parseInt(hex.substring(i, i+2), 16);\n }\n return result;\n }", "public static byte[] hexToBytes(String hex) {\n\t\tbyte[] bytes = new byte[hex.length() / 2];\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tbytes[i] = (byte) ((Character.digit(hex.charAt(i * 2), 16) << 4)\n\t\t\t\t\t+ Character.digit(hex.charAt(i * 2 + 1), 16));\n\t\t}\n\t\treturn bytes;\n\t}", "private byte[] fromHex(String hex)\n {\n byte[] binary = new byte[hex.length() / 2];\n for(int i = 0; i < binary.length; i++)\n {\n binary[i] = (byte)Integer.parseInt(hex.substring(2*i, 2*i+2), 16);\n }\n return binary;\n }", "private static byte[] hexStringToByteArray(String s) {\n final int len = s.length();\n final byte[] data = new byte[len / 2];\n \n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n \n return data;\n }", "private static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n\t\t\t\t\t+ Character.digit(s.charAt(i+1), 16));\n\t\t}\n\t\treturn data;\n\t}", "public static byte[] bytesFromHexString(String hex) throws NumberFormatException {\n if (hex.length() == 0) return null;\n String myhex = hex + \" \";\n int len = myhex.length();\n if ((len % 3) != 0) throw new NumberFormatException();\n byte[] buf = new byte[len / 3];\n int i = 0, j = 0;\n while (i < len) {\n try {\n buf[j++] = (byte) ((fromDigit(myhex.charAt(i++)) << 4) |\n fromDigit(myhex.charAt(i++)));\n } catch (IllegalArgumentException e) {\n throw new NumberFormatException();\n }\n if (myhex.charAt(i++) != ' ') throw new NumberFormatException();\n }\n return buf;\n }", "public static byte[] hexStringToByteArray(String s) {\n\t\tint len = s.length();\n\t\tbyte[] data = new byte[len / 2];\n\t\tfor (int i = 0; i < len; i += 2) {\n\t\t\tdata[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n\t\t}\n\t\treturn data;\n\t}", "public static byte[] fromHex(String hex)\n {\n if (hex == null)\n {\n return null;\n }\n\n int length = hex.length();\n if ((length & 0x01) != 0)\n {\n return null;\n }\n\n byte[] result = new byte[length / 2];\n\n for (int i = 0; i < length; i += 2)\n {\n int c1 = fromHex(hex.charAt(i));\n if (c1 < 0)\n {\n return null;\n }\n\n int c2 = fromHex(hex.charAt(i + 1));\n if (c2 < 0)\n {\n return null;\n }\n\n result[i / 2] = (byte) (c1 * 16 + c2);\n }\n\n return result;\n }", "public static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i+1), 16));\n }\n return data;\n }", "private static byte[] hexStr2Bytes(String hex) {\n // Adding one byte to get the right conversion\n // values starting with \"0\" can be converted\n byte[] bArray = new BigInteger(\"10\" + hex, 16).toByteArray();\n\n // Copy all the REAL bytes, not the \"first\"\n byte[] ret = new byte[bArray.length - 1];\n for (int i = 0; i < ret.length; i++)\n ret[i] = bArray[i + 1];\n return ret;\n }", "public static byte[] hexStringToByteArray(String s) {\n if (s == null)\n return null;\n\n byte[] b = new byte[s.length() / 2];\n for (int i = 0; i < b.length; i++) {\n int index = i * 2;\n int v = Integer.parseInt(s.substring(index, index + 2), 16);\n b[i] = (byte) v;\n }\n return b;\n }", "public static byte[] HexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i+1), 16));\n }\n return data;\n }", "public static final byte[] hexStrToBytes(String s) {\n\t\tbyte[] bytes;\n\n\t\tbytes = new byte[s.length() / 2];\n\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tbytes[i] = (byte) Integer.parseInt(s.substring(2 * i, (2 * i) + 2), 16);\n\t\t}\n\n\t\treturn bytes;\n\t}", "public static byte[] hexStringToByteArray(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i+1), 16));\n }\n return data;\n }", "public static byte[] toBytes(String strhex ){\r\n\t\t \r\n\t\t String hexString = strhex.trim();\t\t \r\n\t int length = hexString.length();\r\n\t if ( length % 2 != 0 ) {\r\n\t \thexString = \"0\" ;\r\n\t \thexString += strhex.trim();\r\n\t }\r\n\t length = hexString.length();\r\n\t byte[] data = new byte[ length / 2 ];\r\n\t char highChar, lowChar;\r\n\t byte highNibble, lowNibble;\r\n\t for (int i = 0, offset = 0; i < length; i += 2, offset ++ )\r\n\t {\r\n\t highChar = hexString.charAt( i );\r\n\t if ( highChar >= '0' && highChar <= '9')\r\n\t {\r\n\t highNibble = (byte)(highChar - '0');\r\n\t }\r\n\t else if (highChar >= 'A' && highChar <= 'F')\r\n\t {\r\n\t highNibble = (byte)(10 + highChar - 'A');\r\n\t }\r\n\t else if (highChar >= 'a' && highChar <= 'f')\r\n\t {\r\n\t highNibble = (byte)(10 + highChar - 'a');\r\n\t }\r\n\t else\r\n\t {\r\n\t throw new NumberFormatException( \"Invalid hex char: \" + highChar );\r\n\t }\r\n\r\n\t lowChar = hexString.charAt( i + 1 );\r\n\t if ( lowChar >= '0' && lowChar <= '9')\r\n\t {\r\n\t lowNibble = (byte)(lowChar - '0');\r\n\t }\r\n\t else if (lowChar >= 'A' && lowChar <= 'F')\r\n\t {\r\n\t lowNibble = (byte)(10 + lowChar - 'A');\r\n\t }\r\n\t else if (lowChar >= 'a' && lowChar <= 'f')\r\n\t {\r\n\t lowNibble = (byte)(10 + lowChar - 'a');\r\n\t }\r\n\t else\r\n\t {\r\n\t throw new NumberFormatException( \"Invalid hex char: \" + lowChar );\r\n\t }\r\n //System.out.println(\"len = \" + length +\", offset = \" + offset);\r\n\t data[ offset ] = (byte)(highNibble << 4 | lowNibble);\r\n\t }\r\n\t return data;\r\n\t}", "public static byte[] hexStringToBytes(String hexString) {\n if (hexString == null || hexString.equals(\"\")) {\n return null;\n }\n //2A51704910EA2922\n hexString = hexString.toUpperCase();\n //8\n int length = hexString.length() / 2;\n //\n char[] hexChars = hexString.toCharArray();\n LogUtils.e(\"ANKUR\", \"hexChars : \" + hexChars);\n byte[] d = new byte[length];\n for (int i = 0; i < length; i++) {\n int pos = i * 2;\n d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n }\n LogUtils.e(\"ANKUR\", \"byteArray d : \" + d);\n return d;\n }", "public static byte[] hexStringToByteArray(String s) {\r\n\t int len = s.length();\r\n\t byte[] data = new byte[len / 2];\r\n\t for (int i = 0; i < len; i += 2) {\r\n\t data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\r\n\t + Character.digit(s.charAt(i+1), 16));\r\n\t }\r\n\t return data;\r\n\t}", "private static byte[] HexStringToByteArray(String input){\n\n\t\tint len = input.length();\n\n\t\tbyte[] inputByte = new byte[len/2];\n\n\t\tfor(int i=0; i< len; i+=2){\n\t\t\tinputByte[i/2] = (byte) ((Character.digit(input.charAt(i), 16) << 4)\n\t\t\t\t\t+(Character.digit(input.charAt(i+1), 16)));\n\t\t}\n\n\t\treturn inputByte;\n\t}", "public static byte[] hexString2bytes(String s)\r\n\t{\r\n\t\tif (null == s)\r\n\t\t\treturn null;\r\n\t\ts = trimSpace(s);\r\n\t\treturn hex2byte(s, 0, s.length() >> 1);\r\n\t}", "public static byte[]\n hexStringToBytes(String s) {\n byte[] ret;\n\n if (s == null) return null;\n\n int sz = s.length();\n\n ret = new byte[sz/2];\n\n for (int i=0 ; i <sz ; i+=2) {\n ret[i/2] = (byte) ((hexCharToInt(s.charAt(i)) << 4)\n | hexCharToInt(s.charAt(i+1)));\n }\n\n return ret;\n }", "private byte[] fromHex(String hexString) {\n int len = hexString.length() / 2;\n byte[] ret = new byte[len];\n for (int i = 0; i < len; i++) {\n ret[i] = (byte) Short.parseShort(hexString.substring(i * 2, i *\n 2 + 2), 16);\n }\n return ret;\n }", "public static byte[] hexStringToByteArray(String hex) \r\n{\r\n\tif((hex.length()%2)==1) // Falls die Länge des Strings ungerade ist, wird eine 1 angehängt\r\n\t{\r\n\t\tchar c = '1';\r\n\t\thex += c;\r\n\t\tSystem.out.println(\"Fehler in Convert.hexStringToByteArray: Ungerade String-Zeichenfolge!\");\r\n\t}\r\n\tint l = hex.length();\r\n\tbyte[] data = new byte[l/2];\r\n\tfor (int i = 0; i < l; i += 2) \r\n\t{\r\n\t\tdata[i/2] = (byte) ((Character.digit(hex.charAt(i), 16) << 4) + Character.digit(hex.charAt(i+1), 16));\r\n\t}\r\n\treturn data;\r\n}", "public static byte[] hexStringToByteArray(String text) {\r\n StringBuilder builder = new StringBuilder();\r\n for (int i = 0; i < text.length(); i++) {\r\n char c = text.charAt(i);\r\n if (Character.isLetterOrDigit(c))\r\n builder.append(c);\r\n }\r\n String data = builder.toString();\r\n if (data.length() % 2 != 0)\r\n return null;\r\n byte[] ret = new byte[data.length() / 2];\r\n int c = 0;\r\n for (int i = 0; i < data.length(); i += 2) {\r\n String hex = data.substring(i, i + 2);\r\n ret[c] = (byte) Integer.parseInt(hex, 16);\r\n c++;\r\n }\r\n return ret;\r\n }", "public static byte[] hexToBytes(String s) {\n int len = s.length();\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] =\n (byte) ((Character.digit(s.charAt(i), 16) << 4) + Character.digit(s.charAt(i + 1), 16));\n }\n return data;\n }", "public static byte[] fromHexString( String s ) \r\n { \r\n int stringLength = s.length(); \r\n if ( ( stringLength & 0x1 ) != 0 ) \r\n { \r\n throw new IllegalArgumentException( \"fromHexString requires an even number of hex characters\" ); \r\n } \r\n byte[] bytes = new byte[stringLength / 2]; \r\n \r\n for ( int i = 0, j = 0; i < stringLength; i += 2, j++ ) \r\n { \r\n int high = charToNibble( s.charAt( i ) ); \r\n int low = charToNibble( s.charAt( i + 1 ) ); \r\n // You can store either unsigned 0..255 or signed -128..127 bytes in a byte type. \r\n bytes[ j ] = ( byte ) ( ( high << 4 ) | low ); \r\n } \r\n return bytes; \r\n }", "public static byte[] HexStringToBytes(String s) {\n\n int size = s.length();\n byte[] b = new byte[size / 2];\n\n for (int i = 0; i < size; i += 2) {\n b[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n return b;\n }", "public static byte[] hexStringToBytes(String str) {\n\t\treturn hexStringToBytes(str,str.length()/2); \n\t}", "public static byte[] toByteArray(String s) {\n return DatatypeConverter.parseHexBinary(s.toUpperCase());\n }", "public static byte[] hexToBytes(String txtInHex) {\n byte[] txtInBytes = new byte[txtInHex.length() / 2];\n for (int i = 0; i < txtInBytes.length; i++) {\n int index = i * 2;\n int v = Integer.parseInt(txtInHex.substring(index, index + 2), 16);\n txtInBytes[i] = (byte) v;\n }\n return txtInBytes;\n }", "public static byte[] toBytes(final String hexadecimal) {\n\t\treturn toBytes(hexadecimal.toCharArray());\n\t}", "public static byte[] hexStringToBytes(String hexString) {\r\n\t\tif (hexString == null || hexString.equals(\"\")) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\thexString = hexString.toUpperCase();\r\n\t\tint length = hexString.length() / 2;\r\n\t\tchar[] hexChars = hexString.toCharArray();\r\n\t\tbyte[] d = new byte[length];\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\tint pos = i * 2;\r\n\t\t\td[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static byte[] toAscii(String hex) {\n\t\thex = hex.toLowerCase().replaceAll(\"[^0-9a-f]\", \"\");\n\t\tbyte[] res = new byte[hex.length() >> 1];\n\t\tbyte currentByte = 0;\n\t\tfor (int i = 0; i < hex.length(); i++) {\n\t\t\tchar c = hex.charAt(i);\n\t\t\tif ('0' <= c && c <= '9') {\n\t\t\t\tcurrentByte |= (byte) ((c - '0') << ((i + 1) & 1) * 4);\n\t\t\t} else if ('a' <= c && c <= 'f') {\n\t\t\t\tcurrentByte |= (byte) ((10 + c - 'a') << ((i + 1) & 1) * 4);\n\t\t\t}\n\t\t\tif ((i & 1) == 1) {\n\t\t\t\tres[i >> 1] = currentByte;\n\t\t\t\tcurrentByte = 0;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "public static byte[] hextobyte(String keyText) {\n\t\tif (Objects.requireNonNull(keyText).length() == 0) {\n\t\t\treturn new byte[0];\n\t\t}\n\t\tif (keyText.length() % 2 == 1) {\n\t\t\tthrow new IllegalArgumentException(\"keyText is odd-sized.\");\n\t\t}\n\t\tbyte[] bytearray = new byte[keyText.length() / 2];\n\t\tfor (int index = 0, length = keyText.length(); index < length; index += 2) {\n\t\t\tbytearray[index / 2] = (byte) (toNibble(keyText.charAt(index)) << 4 | toNibble(keyText.charAt(index+1)));\n\t\t}\n\t\treturn bytearray;\n\t}", "public static byte[] hexStringToBytes(String hexString) {\n\t\tif (hexString == null || hexString.equals(\"\")) {\n\t\t\treturn null;\n\t\t}\n\t\thexString = hexString.toUpperCase();\n\t\tint length = hexString.length() / 2;\n\t\tchar[] hexChars = hexString.toCharArray();\n\t\tbyte[] d = new byte[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint pos = i * 2;\n\t\t\td[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n\t\t}\n\t\treturn d;\n\t}", "public static byte[] toByteArray(String hexStr) throws UnsignedBigIntUtilsException {\n return DatatypeConverter.parseHexBinary(UnsignedBigIntUtils.validateHexStr(hexStr));\n }", "public static byte[] hexToBytes(String hexString) {\n int len = hexString.length();\n Preconditions.checkArgument(len % 2 == 0);\n int nBytes = len / 2;\n byte[] decoded = new byte[nBytes];\n int j = 0;\n for (int i = 0; i < nBytes; i += 1) {\n int d1 = Character.digit(hexString.charAt(j++), 16);\n int d2 = Character.digit(hexString.charAt(j++), 16);\n if (d1 < 0 || d2 < 0) {\n throw new IllegalArgumentException(\"Non-hexadecimal character in string: \" + hexString);\n }\n decoded[i] = (byte) ((d1 << 4) + d2);\n }\n return decoded;\n }", "public static byte[] hextobyte(String keyText) {\n\t\tif (keyText.length() % 2 == 1) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid size\");\n\t\t}\n\n\t\tbyte[] byteArray = new byte[keyText.length() / 2];\n\t\tchar[] charArray = keyText.toCharArray();\n\n\t\tfor (int i = 0; i < charArray.length;) {\n\t\t\tchar c1 = charArray[i++];\n\t\t\tchar c2 = charArray[i];\n\n\t\t\tif (checkChar(c1) && checkChar(c2)) {\n\t\t\t\tint value = Integer.parseInt(new StringBuilder().append(c1).append(c2).toString(), 16);\n\t\t\t\tbyteArray[i / 2] = (byte) value;\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid character\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\n\t\treturn byteArray;\n\t}", "public static byte[] hextobyte(String keyText) {\n\t\tif (keyText.length() % 2 != 0) throw new IllegalArgumentException(\"Length must be even.\");\n\t\tchar[] hexInput = keyText.toCharArray();\n\t\tbyte[] byteOutput = new byte[keyText.length() / 2];\n\t\tfor (int i = 0; i < hexInput.length; i += 2) {\n\t\t\tbyteOutput[i / 2] = (byte) ((Character.digit(hexInput[i], HEX_BASE) * HEX_BASE)\n\t\t\t\t\t+ Character.digit(hexInput[i + 1], HEX_BASE));\n\t\t}\n\t\treturn byteOutput;\n\t}", "public static byte[] convertFromHex(String otp) throws SaslException {\n final CodePointIterator cpi = CodePointIterator.ofString(otp);\n final CodePointIterator di = cpi.delimitedBy(DELIMS);\n // Remove any white space\n final StringBuilder sb = new StringBuilder();\n while (di.hasNext()) {\n di.drainTo(sb);\n skipDelims(di, cpi);\n }\n return CodePointIterator.ofString(sb.toString()).hexDecode().drain();\n }", "private byte[] toByteArray(String s)\r\n\t\t{\n\t\t\tlong l = 0;\r\n\t\t\tif (s.startsWith(\"0x\") || s.startsWith(\"0X\")) {\r\n\t\t\t\tfinal byte[] d = new byte[(s.length() - 1) / 2];\r\n\t\t\t\tint k = (s.length() & 0x01) != 0 ? 3 : 4;\r\n\t\t\t\tfor (int i = 2; i < s.length(); i = k, k += 2)\r\n\t\t\t\t\td[(i - 1) / 2] = (byte) Short.parseShort(s.substring(i, k), 16);\r\n\t\t\t\treturn d;\r\n\t\t\t}\r\n\t\t\telse if (s.length() > 1 && s.startsWith(\"0\"))\r\n\t\t\t\tl = Long.parseLong(s, 8);\r\n\t\t\telse if (s.startsWith(\"b\"))\r\n\t\t\t\tl = Long.parseLong(s.substring(1), 2);\r\n\t\t\telse\r\n\t\t\t\tl = Long.parseLong(s);\r\n\t\t\tint i = 0;\r\n\t\t\tfor (long test = l; test != 0; test /= 0x100)\r\n\t\t\t\t++i;\r\n\t\t\tfinal byte[] d = new byte[i == 0 ? 1 : i];\r\n\t\t\tfor (; i-- > 0; l /= 0x100)\r\n\t\t\t\td[i] = (byte) (l & 0xff);\r\n\t\t\treturn d;\r\n\t\t}", "public static byte[] hexStringToByte(String command) {\n\t\tString[] s = command.split(\" \");\r\n\t\tbyte []bs=new byte[s.length];\r\n\t\tfor(int i=0;i<s.length;i++) {\r\n\t\t\tint temp=hexTool(s[i]);\r\n\t\t\tbyte bt=(byte) (temp&0xff);\r\n//\t\t\tSystem.out.print(bt);\r\n\t\t\tbs[i]=bt;\r\n\t\t}\r\n\t\treturn bs;\r\n//\t\tSystem.out.println(bs);\r\n\t}", "static public byte[] hexToByteArr(String hex, boolean complete) {\n\n\t\tif ( (hex.length() % 2 > 0) && (complete))\n\t\t\thex+=\"0\"+hex;\n\n\t\tif ( (hex.length() % 2 > 0) && (!complete))\n\t\t\tthrow new NumberFormatException(\"Odd number of digits: \"+hex);\n\n\t\tbyte[] b = new byte[hex.length() / 2];\n\t\tfor(int i=0; i<b.length; i++) {\n\t\t\tint i1 = digit(hex.charAt(i*2));\n\t\t\tint i2 = digit(hex.charAt(i*2+1));\n\t\t\tif(i1 < 0 || i2 < 0)\n\t\t\t\tthrow new NumberFormatException(\"Invalid digit\");\n\t\t\tb[i] = (byte)(i1 * 16 + i2);\n\t\t}\n\t\t// b[i] = (byte)Integer.parseInt(hex.substring(i*2, i*2 + 2), 16);\n\t\t// Have to use parseInt: parseByte doesn't like\n\t\t// too large values, e.g. 0x81 since that is supposed\n\t\t// to be negative.\n\n\t\treturn b;\n\t}", "public static byte[] hexStringToByteArray(String digits) {\n int len = digits.length();\n // Check if string is valid hex\n if (!RegEx.VALID_HEX.matcher(digits).matches() || (len & 0x1) != 0) {\n Logger.warn(\"Invalid hexadecimal string: {}\", digits);\n return new byte[0];\n }\n byte[] data = new byte[len / 2];\n for (int i = 0; i < len; i += 2) {\n data[i / 2] = (byte) (Character.digit(digits.charAt(i), Normal._16) << 4\n | Character.digit(digits.charAt(i + 1), Normal._16));\n }\n return data;\n }", "ByteArray(String s) {\n\tdata = StringConverter.hexToByte(s);\n }", "public static byte[] hex2byte(String s, int offset, int len)\r\n\t{\r\n\t\tbyte[] d = new byte[len];\r\n\t\tint byteLen = len * 2;\r\n\t\tfor (int i = 0; i < byteLen; i++)\r\n\t\t{\r\n\t\t\tint shift = (i % 2 == 1) ? 0 : 4;\r\n\t\t\td[i >> 1] |= Character.digit(s.charAt(offset + i), 16) << shift;\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static byte [] toBytesBinary(String in) {\n byte [] b = new byte[in.length()];\n int size = 0;\n for (int i = 0; i < in.length(); ++i) {\n char ch = in.charAt(i);\n if (ch == '\\\\' && in.length() > i+1 && in.charAt(i+1) == 'x') {\n // ok, take next 2 hex digits.\n char hd1 = in.charAt(i+2);\n char hd2 = in.charAt(i+3);\n\n // they need to be A-F0-9:\n if (!isHexDigit(hd1) ||\n !isHexDigit(hd2)) {\n // bogus escape code, ignore:\n continue;\n }\n // turn hex ASCII digit -> number\n byte d = (byte) ((toBinaryFromHex((byte)hd1) << 4) + toBinaryFromHex((byte)hd2));\n\n b[size++] = d;\n i += 3; // skip 3\n } else {\n b[size++] = (byte) ch;\n }\n }\n // resize:\n byte [] b2 = new byte[size];\n System.arraycopy(b, 0, b2, 0, size);\n return b2;\n }", "public static byte[] toBytes(final char[] hexadecimal) {\n\t\tbyte[] bytes = new byte[hexadecimal.length / 2];\n\t\tfor (int i = 0, j = 0; i < bytes.length; i++, j += 2) {\n\t\t\tbytes[i] = (byte) ((fromHexChar(hexadecimal[j]) << 4) | fromHexChar(hexadecimal[j + 1]));\n\t\t}\n\t\treturn bytes;\n\t}", "protected static byte[] toByteArray(String str) {\n byte[] bytes = new byte[str.length()];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) str.charAt(i);\n }\n return bytes;\n }", "protected byte[] createMacBytes(String macStr) throws NumberFormatException {\n byte[] bytes = new byte[6];\n \n String[] hex = macStr.split(\"(\\\\:|\\\\-)\");\n \n if (hex.length != 6) {\n throw new IllegalArgumentException(\"Invalid MAC address.\");\n }\n try {\n for (int i = 0; i < 6; i++) {\n bytes[i] = (byte) Integer.parseInt(hex[i], 16);\n }\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Invalid hex digit in MAC address.\");\n }\n return bytes;\n }", "public static byte[] hex2byte(byte[] b) {\n if ((b.length % 2) != 0)\n throw new IllegalArgumentException(\"hello\");\n byte[] b2 = new byte[b.length / 2];\n for (int n = 0; n < b.length; n += 2) {\n String item = new String(b, n, 2);\n b2[n / 2] = (byte) Integer.parseInt(item, 16);\n }\n return b2;\n }", "static int[] hexStringToBits(String hex) {\n int[] bits = new int[128];\n for (int i = 0; i < hex.length(); i++) {\n int n = (int)hex.charAt(i);\n for (int j = 0; j < 4; j++) {\n bits[4 * i + j] = (n >> (3 - j)) & 1;\n }\n }\n return bits;\n }", "public static byte[] stringToHash (String hash)\n {\n if (hash == null || hash.length() % 2 != 0) {\n return null;\n }\n\n hash = hash.toLowerCase();\n byte[] data = new byte[hash.length() / 2];\n for (int ii = 0; ii < hash.length(); ii += 2) {\n int value = (byte) (HEX.indexOf(hash.charAt(ii)) << 4);\n value += HEX.indexOf(hash.charAt(ii + 1));\n\n // values over 127 are wrapped around, restoring negative bytes\n data[ii / 2] = (byte) value;\n }\n\n return data;\n }", "private static byte[] convertToBytes(final String macNumber) {\n byte[] bytes = new byte[6];\n String[] hex = macNumber.split(\"(\\\\:|\\\\-)\");\n if (hex.length != 6) {\n return new byte[0];\n }\n try {\n for (int i = 0; i < 6; i++) {\n bytes[i] = (byte) Integer.parseInt(hex[i], 16);\n }\n } catch (NumberFormatException e) {\n LOG.error(e);\n return new byte[0];\n }\n return bytes;\n }", "public static byte[] hexStringToBytes(String str, int n) {\n\t\tif (str.indexOf(\":\")>=0) {\n\t\t\t// the string is in the form of xx:yy:zz:ww.., so remove all ':' first\n\t\t\tString aux=\"\";\n\t\t\tchar c;\n\t\t\tfor (int i=0; i<str.length(); i++)\n\t\t\t\tif ((c=str.charAt(i))!=':') aux+=c;\n\t\t\tstr=aux; \n\t\t} \n\t\tbyte[] b=new byte[n];\n\t\tfor (int i=0; i<n; i++) {\n\t\t\t//int lo=Integer.parseInt(String.valueOf(str.charAt(i*2)),16);\n\t\t\t//int hi=Integer.parseInt(String.valueOf(str.charAt(i*2+1)),16);\n\t\t\t//b[i]=hi*16+lo;\n\t\t\tif (n<str.length()/2) b[i]=(byte)Integer.parseInt(str.substring(i*2,i*2+2),16);\n\t\t\telse b[i]=0;\n\t\t}\n\t\treturn b;\n\t}", "public void convert_Hex_To_Binary(String hex) {\n String binary_string = hexToBinary(hex, true);\n int[] data = new int[64];\n for (int k = 0; k < data.length; k++)\n data[k] = Character.getNumericValue(binary_string.charAt(k));\n key_user = data;\n }", "private byte[] stringToArrayOfByte(String string)\n\t\t\tthrows NumberFormatException {\n\n\t\tbyte[] bytes = new byte[string.length() + 1];\n\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tbytes[i] = charToByte(string.charAt(i));\n\t\t}\n\n\t\tbytes[string.length()] = nullByte;\n\n\t\treturn bytes;\n\n\t}", "private byte[] stringToBytes(String bytesInStringForm) {\n byte[] bytes = new byte[16];\n String[] byteValues = bytesInStringForm.split(\",\");\n for (int byteIndex = 0; byteIndex < 16; byteIndex++) {\n bytes[byteIndex] = (byte) Integer.parseInt(byteValues[byteIndex]);\n }\n return bytes;\n\n }", "public static byte[] dataStringToByteArray(String inDataString) throws JCavernInternalError\n\t{\n\t\tStringTokenizer aTokenizer = new StringTokenizer(inDataString);\n\t\tint\t\t\t\tindex = 0;\n\t\tbyte[]\t\t\ttheBytes = new byte[aTokenizer.countTokens()];\n\n\t\twhile (aTokenizer.hasMoreTokens())\n\t\t{\n\t\t\tString\taToken = aTokenizer.nextToken();\n\t\t\ttheBytes[index] = (byte) Integer.parseInt(aToken, 16);\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn theBytes;\n\t}", "public static ByteBuffer toBytes(String hexString) {\n\t\tint length = hexString.length() / 2;\n\t\tbyte bytes[] = new byte[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tbytes[i] = (byte) ( getValueE(hexString.charAt(2 * i)) + \n\t\t\t\t\tgetValueD(hexString.charAt(2 * i + 1)) );\n\t\t}\n\t\treturn ByteBuffer.wrap(bytes);\t\n\t}", "@Test\n public void testHexAndBytesTransformation() {\n byte[] bytes = ByteUtils.stringToBytes(ByteUtils.bytesToHexString(testBytes));\n assertArrayEquals(testBytes, bytes); \n }", "public static byte[] toByteArray(String string) {\n byte[]\tbytes = new byte[string.length()];\n char[] chars = string.toCharArray();\n\n for (int i = 0; i != chars.length; i++) {\n bytes[i] = (byte)chars[i];\n }\n\n return bytes;\n }", "public static byte[] convertToByteArray(String key)\n\t{\n\t byte[] b = new byte[key.length()/2];\n\t\n\t for(int i=0, bStepper=0; i<key.length()+2; i+=2)\n\t if(i !=0)\n\t b[bStepper++]=((byte) Integer.parseInt((key.charAt(i-2)+\"\"+key.charAt(i-1)), 16));\n\t\n\t return b;\n\t}", "private byte[] convertingTobyteArray(String result) {\n String[] splited = result.split(\"\\\\s+\");\n byte[] valueByte = new byte[splited.length];\n for (int i = 0; i < splited.length; i++) {\n if (splited[i].length() > 2) {\n String trimmedByte = splited[i].split(\"x\")[1];\n valueByte[i] = (byte) convertstringtobyte(trimmedByte);\n }\n\n }\n return valueByte;\n\n }", "public static byte[] toBytes(String s) {\n return s.getBytes(UTF8_CHARSET);\n }", "public static byte[] stringToByteArray(String str) {\r\n return str.getBytes();\r\n }", "@NonNull\n public static byte[] StringToByte(String string) throws UnsupportedEncodingException\n {\n return string.getBytes(\"UTF-8\");\n }", "public byte[] getHexString(String key) {\n Object value = get(key);\n return ((value instanceof String) ? Utils.parseHexString(((String)value).trim()) : null);\n }", "static String hexToBin(String s) {\n\t\treturn new BigInteger(s, 16).toString(2);\n\t}", "public static byte[] convertBech32AddressToBytesAddress(String bech32Address) {\n return Bech32Util.decodeAddress(bech32Address, null);\n }", "public static byte[] stringToBytes(String string) {\n return string.getBytes(ENCODING);\n }", "private String toHex(byte[] data) {\r\n char[] chars = new char[data.length * 2];\r\n for (int i = 0; i < data.length; i++) {\r\n chars[i * 2] = HEX_DIGITS[(data[i] >> 4) & 0xf];\r\n chars[i * 2 + 1] = HEX_DIGITS[data[i] & 0xf];\r\n }\r\n return new String(chars);\r\n}", "public static byte[] array(final String binary_str)\n\t{\n\t\tfinal String[] split_binary = binary_str.split(BYTE_DELIMITER);\n\t\tfinal ByteBuffer decoded_binary_str = ByteBuffer.allocate(split_binary.length);\n\t\tfinal byte base = 2;\n\t\tfor(int byte_index = 0 ; byte_index < split_binary.length; byte_index ++)\n\t\t\tdecoded_binary_str.put((byte)Long.parseLong(split_binary[byte_index], base));\n\t\t\n\t\treturn decoded_binary_str.array();\n\t}", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public byte[] toByteArray() {\n final byte[] data = new byte[maxIndex];\n for (Map.Entry<Integer, String> entry : addr2str.entrySet()) {\n final String str = entry.getValue();\n final int addr = entry.getKey();\n for (int k = 0; k < str.length(); k++) {\n data[addr + k] = (byte) str.charAt(k);\n }\n }\n return data;\n }", "private byte[] macStringToByteArray(String dstMac) {\n byte[] dstMAC = new byte[6];\n if (dstMac != null) {\n for (int i = 0; i < 6; i++) {\n dstMAC[i] = (byte) Integer.parseInt(dstMac.substring(i * 3, (i * 3) + 2), 16);\n }\n }\n return dstMAC;\n }", "public static String asHex(byte[] buf) {\n \t char[] HEX_CHARS = \"0123456789abcdef\".toCharArray();\n \t char[] chars = new char[2 * buf.length];\n \t for (int i = 0; i < buf.length; ++i) {\n \t chars[2 * i] = HEX_CHARS[(buf[i] & 0xF0) >>> 4];\n \t chars[2 * i + 1] = HEX_CHARS[buf[i] & 0x0F];\n \t }\n \t return new String(chars);\n \t}", "public static char[] toHexadecimalChars(final byte[] bytes) {\n\t\tfinal char[] chars = new char[bytes.length * 2];\n\t\tfor (int i = 0, j = 0; i < bytes.length; i++, j += 2) {\n\t\t\tfinal int v = bytes[i] & 0xFF;\n\t\t\tchars[j] = toHexChar(v >>> 4);\n\t\t\tchars[j + 1] = toHexChar(v & 0x0F);\n\t\t}\n\t\treturn chars;\n\t}", "public abstract byte[] parse(String input);", "public static byte[] GetBytesFromOctetString(String p) throws IOException {\n Charset encoding = StandardCharsets.UTF_8;\n return StringUtility.GetBytesFromOctetString(p, encoding);\n }", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "public static byte[] decode(String s) {\r\n \t\treturn decode(s.toCharArray());\r\n \t}", "public static final byte[] asUTF8(final String s) {\n return s.getBytes(StandardCharsets.UTF_8);\n }", "public static byte[] decode(String input) throws CorruptedCodeException {\r\n\tint i;\r\n\tbyte[] b;\r\n\r\n\tif (input.length() == 0) {\r\n\t return new byte[0];\r\n\t}\r\n\tb = new byte[input.length()];\r\n\r\n\tfor (i = input.length() - 1; i >= 0; i--) {\r\n\t b[i] = (byte) input.charAt(i);\r\n\t}\r\n\treturn decode(b);\r\n }", "public String encodeHex(String hexa) {\n if (!hexa.matches(\"^[0-9a-fA-F]+$\")) {\n return \"\";\n }\n\n final List<Long> matched = new ArrayList<Long>();\n final Matcher matcher = WORD_PATTERN.matcher(hexa);\n\n while (matcher.find()) {\n matched.add(Long.parseLong('1' + matcher.group(), 16));\n }\n\n // conversion\n final long[] result = new long[matched.size()];\n for (int i = 0; i < matched.size(); i++) {\n result[i] = matched.get(i);\n }\n\n return this.encode(result);\n }", "protected byte[] binaryToHex(byte[] digest) throws UnsupportedEncodingException {\n StringBuffer digestString = new StringBuffer();\n for (int i = 0; i < digest.length; i++) {\n if ((digest[i] & 0x000000ff) < 0x10) {\n digestString.append(\"0\" + Integer.toHexString(digest[i] & 0x000000ff));\n } else {\n digestString.append(Integer.toHexString(digest[i] & 0x000000ff));\n }\n }\n return digestString.toString().getBytes(encoding);\n }", "public static String toHex(byte[] bytes){\r\n\t\treturn hexEncode(bytes);\r\n\t}", "public static byte[] stringToBytes(String input) {\n return Base64.decodeBase64(input);\n }", "public static byte[] asciiStringToByteArray(String text, int length) {\n return Arrays.copyOf(text.getBytes(Charset.US_ASCII), length);\n }" ]
[ "0.8038169", "0.799736", "0.7987502", "0.7959192", "0.79075354", "0.78710693", "0.7846612", "0.7845528", "0.7838391", "0.7838175", "0.7813091", "0.7812218", "0.7778942", "0.7647208", "0.76060516", "0.7549759", "0.75265247", "0.7515443", "0.74980223", "0.7467007", "0.7463343", "0.74489546", "0.74481153", "0.7441682", "0.7440686", "0.7436767", "0.74066657", "0.7403764", "0.7392017", "0.73874635", "0.73689085", "0.7349272", "0.7321454", "0.73201174", "0.7318405", "0.7297653", "0.7267633", "0.7265571", "0.72613275", "0.7214438", "0.72025895", "0.7166212", "0.7161552", "0.7136317", "0.71332145", "0.71304536", "0.7088133", "0.7048027", "0.70031995", "0.69220436", "0.6890136", "0.68872714", "0.68187124", "0.6789292", "0.67761534", "0.6555946", "0.6519868", "0.65183127", "0.6430052", "0.63968253", "0.63649774", "0.6342929", "0.6310397", "0.62890756", "0.62004066", "0.6133062", "0.6077387", "0.6076654", "0.60668176", "0.60651153", "0.60314596", "0.6018341", "0.60100716", "0.5961385", "0.5960876", "0.59364396", "0.5917928", "0.58903116", "0.5868726", "0.58333397", "0.58325046", "0.58086824", "0.580231", "0.5800227", "0.5797034", "0.5790597", "0.57879114", "0.5784276", "0.57696366", "0.5743552", "0.574044", "0.57200396", "0.5716041", "0.5711531", "0.57110476", "0.57107425", "0.56677926", "0.56665546", "0.566589" ]
0.72075164
40
Convert char to byte
private static byte charToByte(char c) { return (byte) "0123456789ABCDEF".indexOf(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte charToByte(char c) {\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\n\t}", "private static byte charToByte(char c) {\r\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\r\n\t}", "public byte[] charToByte(char char1, String encoding);", "private static byte charToByte(char c) {\n if (c >= 0x30 && c <= 0x39) {\n return (byte) (c - 0x30);\n } else if (c >= 0x41 && c <= 0x46) {\n return (byte) (c - 0x37);\n } else if (c >= 0x61 && c <= 0x66) {\n return (byte) (c - 0x57);\n }\n return 0;\n }", "private static char toChar(byte theByte) {\n if (theByte < 0) {\n return (char) (256 + theByte);\n } else {\n return (char) theByte;\n }\n }", "public byte[] charToByte(String text, String encoding);", "public static byte[] charToByte(TextInputEditText editText)\n {\n int length = editText.length();\n char[] charArray = new char[length];\n editText.getText().getChars(0, length, charArray, 0);\n\n ByteBuffer buffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(charArray));\n byte[] byteArray = new byte[buffer.limit()];\n buffer.get(byteArray);\n\n return byteArray;\n }", "public String byteToChar(byte b[], String encoding);", "public static byte[] getBytes(char value) {\r\n\t\treturn ByteBuffer.allocate(2).order(ByteOrder.LITTLE_ENDIAN).putChar(value).array();\r\n\t}", "byte decodeByte();", "public int toByte(){\n return toByte(0);\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "byte toByteValue() {\n return (byte) value;\n }", "public byte toByte() {\n return this.toByteArray()[0];\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default @ZenCodeType.Unsigned byte asByte() {\n \n return notSupportedCast(BasicTypeID.BYTE);\n }", "public static byte getUniqueByte() {\n return (byte) getUniqueChar();\n }", "public static char reverseBytes(char c) {\n return (char)((c<<8) | (c>>8));\n }", "public static byte str2byte(String s) {\r\n byte b = (byte) 0;\r\n int i;\r\n if (s.length() == 8 && s.matches(regex)) {\r\n i = Integer.parseInt(s, 2);\r\n if (i >= 0 && i <= 255) {\r\n b = (byte) i;\r\n } else {\r\n System.out.println(\"string out of range\");\r\n }\r\n }\r\n return b;\r\n }", "private static byte toNibble(char nibble) {\n\t\tif (nibble >= 'a') {\n\t\t\tnibble = (char) (nibble - 'a' + 'A');\n\t\t}\n\n\t\tif ('0' <= nibble && nibble <= '9') {\n\t\t\treturn (byte)(nibble - '0');\n\t\t} else if ('A' <= nibble && nibble <= 'F') {\n\t\t\treturn (byte)(nibble - 'A' + 10);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Character is invalid.\");\n\t\t}\n\t}", "char convert (int c1, int c2) {\n char c = 0;\n c |= ((c1 & 0x1f) << 6); // 00011111\n c |= ((c2 & 0x3f) << 0); // 00111111\n return c;\n }", "public static char toChar(Character ch) {\n/* 130 */ if (ch == null) {\n/* 131 */ throw new IllegalArgumentException(\"The Character must not be null\");\n/* */ }\n/* 133 */ return ch.charValue();\n/* */ }", "public byte readScalarByte() throws java.io.IOException;", "public static byte toByte(Boolean bool)\r\n {\r\n return bool == null ? (byte)0 : Boolean.FALSE.equals(bool) ? (byte)1 : (byte)2;\r\n }", "private byte nextByte(ByteBuffer inputBuffer) throws IOException {\n getAtLeastBytes(inputBuffer, 1);\n return inputBuffer.get();\n }", "public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }", "private String toBinary(byte caracter){\n byte byteDeCaracter = (byte)caracter;\n String binario=\"\";\n for( int i = 7; i>=0; i--){\n binario += ( ( ( byteDeCaracter & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario;\n }", "private static char nibbleToChar(byte nibble) {\n\t\tif (nibble <= 9) {\n\t\t\treturn (char) ('0' + nibble);\n\t\t}\n\t\treturn (char) ('a' + nibble - 10);\n\t}", "public abstract char read_char();", "byte readByte();", "private char convert(char Char) {\n int num = (int) Char;\n\n num = (num - '0' + 7) % 10; // Subtracts '0' to get the integer value and the\n // rest is as instructed\n Char = (char) (num + '0'); // Translates it back to ASCII value by adding '0'\n\n return Char;\n\n }", "public byte readByte() throws IOException {\n return in.readByte();\n }", "public static char toChar(Character ch, char defaultValue) {\n/* 150 */ if (ch == null) {\n/* 151 */ return defaultValue;\n/* */ }\n/* 153 */ return ch.charValue();\n/* */ }", "private char toChar(int u)\r\n { \r\n return (char)(u + 64);\r\n }", "byte getEByte();", "public static int charToNybbl(char c) {\n int val;\n switch (c) {\n case '0':\n val = 0;\n break;\n case '1':\n val = 1;\n break;\n case '2':\n val = 2;\n break;\n case '3':\n val = 3;\n break;\n case '4':\n val = 4;\n break;\n case '5':\n val = 5;\n break;\n case '6':\n val = 6;\n break;\n case '7':\n val = 7;\n break;\n case '8':\n val = 8;\n break;\n case '9':\n val = 9;\n break;\n case 'A':\n case 'a':\n val = 10;\n break;\n case 'B':\n case 'b':\n val = 11;\n break;\n case 'C':\n case 'c':\n val = 12;\n break;\n case 'D':\n case 'd':\n val = 13;\n break;\n case 'E':\n case 'e':\n val = 14;\n break;\n case 'F':\n case 'f':\n val = 15;\n break;\n default:\n throw new NumberFormatException(\"Invalid character '\" + c\n + \"' is not hex\");\n }\n return val;\n }", "public byte getByte(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "public char readChar() {\n return ((char) readLong());\n }", "public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }", "private char toChar(int u) {\n\t\t \n\t\treturn (char)(u + 64);\n\t}", "byte[] IntToByte(int i)\r\n {\r\n return Integer.toString(i).getBytes();\r\n }", "public static char[] encode(byte[] in) {\r\n \t\treturn encode(in, in.length);\r\n \t}", "public char getChar();", "final byte getByte(int column) {\n switch (jdbcTypes_[column - 1]) {\n case Types.BOOLEAN:\n return CrossConverters.getByteFromBoolean(get_BOOLEAN(column));\n case Types.SMALLINT:\n int smallInt = get_SMALLINT(column);\n if (smallInt > Byte.MAX_VALUE || smallInt < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + smallInt);\n return (byte) smallInt;\n case Types.INTEGER:\n int i = get_INTEGER(column);\n if (i > Byte.MAX_VALUE || i < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + i);\n return (byte) i;\n case Types.BIGINT:\n long l = get_BIGINT(column);\n if (l > Byte.MAX_VALUE || l < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + l);\n return (byte) l;\n case Types.REAL:\n float f = get_FLOAT(column);\n if (f > Byte.MAX_VALUE || f < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + f);\n return (byte) f;\n case Types.DOUBLE:\n double d = get_DOUBLE(column);\n if (d > Byte.MAX_VALUE || d < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + d);\n return (byte) d;\n case Types.DECIMAL:\n // For performance we don't materialize the BigDecimal, but convert directly from decimal bytes to a long.\n long ld = getLongFromDECIMAL(column, \"byte\");\n if (ld > Byte.MAX_VALUE || ld < Byte.MIN_VALUE)\n throw new IllegalArgumentException(\"Value outside of byte range: \" + ld);\n return (byte) ld;\n case Types.CHAR:\n return CrossConverters.getByteFromString(get_CHAR(column));\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n return CrossConverters.getByteFromString(get_VARCHAR(column));\n default:\n throw coercionError( \"byte\", column );\n }\n }", "void writeChar(char value);", "public Byte getByte(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).byteValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null && string.length() > 0) {\n return Byte.parseByte(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }", "@Test\n public void testToByte() {\n System.out.println(\"toByte\");\n String hexString = \"\";\n byte[] expResult = null;\n byte[] result = Crypto.toByte(hexString);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public final byte byte_literal() throws RecognitionException {\n byte value = 0;\n\n\n CommonTree BYTE_LITERAL194 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1193:3: ( BYTE_LITERAL )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1193:5: BYTE_LITERAL\n {\n BYTE_LITERAL194 = (CommonTree) match(input, BYTE_LITERAL, FOLLOW_BYTE_LITERAL_in_byte_literal3292);\n value = LiteralTools.parseByte((BYTE_LITERAL194 != null ? BYTE_LITERAL194.getText() : null));\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }", "private static int charToNibble( char c ) \r\n { \r\n if ( c > 'f' ) \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n int nibble = correspondingNibble[ c ]; \r\n if ( nibble < 0 ) \r\n { \r\n throw new IllegalArgumentException( \"Invalid hex character: \" + c ); \r\n } \r\n return nibble; \r\n }", "public static String a(byte paramByte) {\n/* 65 */ return \"\" + a[(paramByte & 0xF0) >>> 4] + a[paramByte & 0xF];\n/* */ }", "public byte readByte() throws IOException {\n\t\treturn (byte) read();\n\t}", "String charWrite();", "public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}", "public static Attribute.Type charToType(final char charType) {\r\n\t\t\r\n\t\tString type = String.valueOf(charType);\r\n\t\tif (type.equalsIgnoreCase(\"I\")) {\r\n\t\t\treturn Type.Int;\r\n\t\t} else if (type.equalsIgnoreCase(\"C\")) {\r\n\t\t\treturn Type.Char;\r\n\t\t} else if (type.equalsIgnoreCase(\"D\")) {\r\n\t\t\treturn Type.DateTime;\r\n\t\t} else if (type.equalsIgnoreCase(\"L\")) {\r\n\t\t\treturn Type.Long;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "void writeByte(byte value);", "public byte readByte() {\n return ((byte) readLong());\n }", "public Byte _parseByte(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (_hasTextualNull(trim)) {\n return (Byte) _coerceTextualNull(gVar, this._primitive);\n }\n if (trim.length() == 0) {\n return (Byte) _coerceEmptyString(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n int a = NumberInput.m23779a(trim);\n if (_byteOverflow(a)) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"overflow, value cannot be represented as 8-bit value\", new Object[0]);\n }\n return Byte.valueOf((byte) a);\n } catch (IllegalArgumentException unused) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"not a valid Byte value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NUMBER_FLOAT) {\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Byte\");\n }\n return Byte.valueOf(jVar.mo29335A());\n } else if (l == JsonToken.VALUE_NULL) {\n return (Byte) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Byte) _deserializeFromArray(jVar, gVar);\n }\n if (l == JsonToken.VALUE_NUMBER_INT) {\n return Byte.valueOf(jVar.mo29335A());\n }\n return (Byte) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "public byte getByte(String name, byte defaultValue) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "public static byte GetByte()\n\t{\n\t Random rand = new Random();\n\t return (byte)rand.nextInt(127);\n\t}", "public static byte promptForByte(String prompt, byte min, byte max) {\n if(min > max) throw new IllegalArgumentException(\"min cannot be greater than the max\");\n if(prompt == null) throw new IllegalArgumentException(\"prompt cannot be null.\");\n byte result = (byte) promptForInt(prompt, min, max);\n return result;\n }", "byte mo30283c();", "public abstract byte read_octet();", "public static char[] byteToChar(byte[] byteArray)\n {\n CharBuffer buffer = StandardCharsets.UTF_8.decode(ByteBuffer.wrap(byteArray));\n char[] charArray = new char[buffer.limit()];\n buffer.get(charArray);\n\n return charArray;\n }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "char readChar();", "public static char getCharForNum(byte number) {\n if (number > 9) {\n throw new IndexOutOfBoundsException(\"number > 9\");\n }\n // the ascii offset for numbers is 48, adding 48 gets the right char\n return (char) (number + 48);\n }", "private int byteToInt(byte b) { int i = b & 0xFF; return i; }", "public static byte readByte(InputStream input) throws IOException {\n\n return readBytes(input, 1)[0];\n }", "public static byte byteArrayToByte(byte[] ba, int offset) {\n return ba[offset];\n }", "public char getChar(int index) throws ArrayIndexOutOfBoundsException\n\t{\n\t\treturn (char) bytes[index];\n\t}", "public static byte[] ECP_to_byte(ECP ecp){\n byte[] temp = new byte[65];\n ecp.toBytes(temp, false);\n return temp;\n }", "@Override\n public byte byteValue() {\n return value;\n }", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "@Deprecated\n/* */ public static Character toCharacterObject(char ch) {\n/* 88 */ return Character.valueOf(ch);\n/* */ }", "public static char getKey() {\n try {\n return (char) Input.read(true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return 0;\n }", "public static byte getNumForChar(char c) {\n if (c < 48 || c > 57) {\n throw new IndexOutOfBoundsException(\"not 0-9\");\n }\n // the ascii offset for numbers is 48, subtracting 48 gets the right\n // byte\n return (byte) (c - 48);\n }", "char cipher(int charToCipher);", "public static char toChar(String str) {\n/* 173 */ if (StringUtils.isEmpty(str)) {\n/* 174 */ throw new IllegalArgumentException(\"The String must not be empty\");\n/* */ }\n/* 176 */ return str.charAt(0);\n/* */ }", "private int convertstringtobyte(String string) {\n return Integer.parseInt(string, 16);\n }", "public byte getByte(int row, int column) {\n return columns[column].getByte(row);\n }", "public static char datochar(){\n try {\n char respuesta=dato().charAt(0);\n return respuesta;\n } catch (Exception e) {\n return('z');\n }\n }", "ByteConstant createByteConstant();", "@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}", "public abstract void writeByte(byte b) throws IOException;", "public static String toByteString(byte value) {\n String str = String.format(\"%x\", value);\n if (str.length() == 1)\n str = \"0\" + str;\n return str;\n }", "@NonNull\n public static byte[] StringToByte(String string) throws UnsupportedEncodingException\n {\n return string.getBytes(\"UTF-8\");\n }", "public boolean isChar(char c) \n\t{\n\t\tif (this.numBytes==1 && (charBytes[0]==c))\n\t\t\treturn true; \n\t\treturn false; \n\t}", "public Self aByte(int b) {\n return aByte((byte) b);\n }", "public byte getByteC() {\n\t\treturn (byte) -get();\n\t}", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "public static char toChar(String str, char defaultValue) {\n/* 195 */ if (StringUtils.isEmpty(str)) {\n/* 196 */ return defaultValue;\n/* */ }\n/* 198 */ return str.charAt(0);\n/* */ }", "@Test(expected=IndexOutOfBoundsException.class)\n public void testCharAt_Byte() {\n System.out.println(\"charAt_Byte\");\n int index = 0;\n Charset cs = Charset.forName(UTF_8);\n InputStream stream = getInputStream(TypeOfStream.BYTE, TypeOfContent.BYTE_0, cs);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs.newDecoder(), 0);\n instance.charAt(index);\n }", "public static char highSurrogate(int c) {\n return (char) (((c - 0x00010000) >> 10) + 0xD800);\n }", "public static byte promptForByte(String prompt, byte min, byte max) throws IOException {\r\n\t\treturn (byte) promptForLong(prompt, min, max);\r\n\t}", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "private void handleCharacterByte(int ch) throws IOException {\n\t\tif (parsingHex) {\n\t\t\tint b = HexUtils.parseHexDigit(ch) << 4;\n\t\t\tch = source.read();\n\t\t\tif (ch == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Unexpected end of file\");\n\t\t\t}\n\t\t\tb += HexUtils.parseHexDigit(ch);\n\t\t\tbuffer.add(b);\n\t\t\tparsingHex = false;\n\t\t} else {\n\t\t\tbuffer.add(ch);\n\t\t}\n\t}", "public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "private static byte int2(int x) { return (byte)(x >> 16); }", "public int getUByte() { return bb.get() & 0xff; }" ]
[ "0.78342247", "0.78290373", "0.7714342", "0.75176287", "0.71069795", "0.6991925", "0.65177435", "0.63550323", "0.6307373", "0.6303687", "0.62804484", "0.62684244", "0.62092304", "0.6108648", "0.6070187", "0.59423536", "0.59309584", "0.59102666", "0.59092975", "0.5893046", "0.58830667", "0.5879829", "0.5863317", "0.5848352", "0.5821328", "0.58113766", "0.5789393", "0.5778357", "0.5774313", "0.5719997", "0.56861377", "0.5673739", "0.56630063", "0.56579936", "0.5645082", "0.5619419", "0.5615586", "0.5614353", "0.56077904", "0.5598573", "0.55933154", "0.5553122", "0.55446684", "0.5535476", "0.55225635", "0.5521245", "0.55139005", "0.5504444", "0.5501512", "0.5485141", "0.54696083", "0.54624027", "0.545915", "0.54572076", "0.545692", "0.5448901", "0.5442498", "0.5422864", "0.5411785", "0.5409411", "0.54018843", "0.5401008", "0.5375703", "0.53617626", "0.5349111", "0.5341524", "0.53255427", "0.532208", "0.5316919", "0.5316792", "0.53157175", "0.5307415", "0.53044426", "0.52960885", "0.52923995", "0.5286594", "0.5286445", "0.52845925", "0.5276093", "0.5275689", "0.52710027", "0.52684695", "0.5264937", "0.52515906", "0.52485853", "0.52473795", "0.5244718", "0.5244352", "0.5236488", "0.522993", "0.5223538", "0.51947397", "0.5194439", "0.5181322", "0.51728415", "0.51604915", "0.5159564", "0.515767" ]
0.78358483
1
TODO Autogenerated method stub
@Override public boolean createApplicant(ApplicantEntity applicantEntity) { entityManager.persist(applicantEntity); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("unchecked") @Override public List<ApplicantEntity> getApplicantList() { List<ApplicantEntity> applicantList = new ArrayList<>(); StringBuilder builder = new StringBuilder("from ApplicantEntity"); Query statement = entityManager.createQuery(builder.toString()); applicantList = statement.getResultList(); return applicantList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateApplicant(ApplicantEntity applicantEntity) { entityManager.merge(applicantEntity); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean deleteApplicant(int id) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
size of the job directory on disk
public Long getSize(Job job) { File dir = getFileDir(job); if (dir != null && dir.exists()) { return FileUtils.sizeOfDirectory(dir); } else { return 0L; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getSize() throws FileSystemException;", "public long size(String path);", "Long diskSizeBytes();", "public long getFileSize();", "public long getFileSize();", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "long getFileSize();", "long getSize() throws IOException;", "long getSize();", "public long size() {\n return file.length();\n }", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "public long getSize();", "public final long getSize() { return size; }", "public long size() {\n try {\n return Files.size(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to get the size of staged document!\", e);\n }\n }", "long storageSize();", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public abstract long size() throws IOException;", "public long getSize() {\n return size;\n }", "public long getSize() {\r\n return size;\r\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "long getWorkfileSize();", "long sizeInBytes() throws IOException;", "private long directorySize(String name) {\n\t\tFile directory = new File(name);\n\t\tif (!directory.exists())\n\t\t\treturn 0;\n\t\tif (directory.isFile()) \n\t\t\treturn directory.length();\n\t\tlong length = 0;\n\t\tfor (File file : directory.listFiles()) {\n\t\t\tif (file.isFile())\n\t\t\t\tlength += file.length();\n\t\t\telse if (file.isDirectory())\n\t\t\t\tlength += directorySize(file.getPath());\n\t\t}\n\t\treturn length;\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n }", "public long size() {\n\t\treturn size;\n\t}", "@Override public long getSize() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public long getSize() {\n return size.get();\n }", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public abstract long getSize();", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public int getTotalSize();", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "public long getFileSize() {\r\n return fileSize;\r\n }", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "long getOccupiedSize();", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "public long getFileSize() {\n return fileSize_;\n }", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public long getEntrySize() {\n return size;\n }", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "@NotPersistent\n public String getSize() {\n return size;\n }", "public String getSize() {\r\n return size;\r\n }", "int getTotalSize();", "public int GetSize() \n\t{\n\t\treturn numEntries; //dummy return so file would compile\n\t}", "@ApiModelProperty(required = true, value = \"Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\\\"local\\\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\\\"not available\\\")\")\n\n public Long getSize() {\n return size;\n }", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public static long getDownloadingFileSize() {\n\t\treturn downloadingFileSize;\n\t}", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public Integer getWorkSize(){\r\n\t\treturn work.size();\t\t\r\n\t}", "public int size() {\n return files.size();\n }", "Integer diskSizeGB();", "public long size();", "public static long getAllSize(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) || file.getPath().equals(path.getPath()))\n \t\t\t{\n \t\t\t\tif(file.canRead())\n \t\t\t\t{\n\t\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tStatFs stat = new StatFs(path.getPath()); \n\t\t\tlong blockSize = stat.getBlockSize(); \n\t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t\tsize = availableBlocks * blockSize; \n\t\t}\n\t\treturn size;\n\t}", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "public long getTotalSize() {\n return totalSize;\n }", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "long getMaxFileSizeBytes();", "public long getFileSize()\n throws IOException\n {\n return file.length();\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "private static long dirSize(File dir) {\n\t long result = 0;\n\t File[] fileList = dir.listFiles();\n\n\t for(int i = 0; i < fileList.length; i++) {\n\t // Recursive call if it's a directory\n\t if(fileList[i].isDirectory()) {\n\t result += dirSize(fileList[i]);\n\t } else {\n\t // Sum the file size in bytes\n\t result += fileList[i].length();\n\t }\n\t }\n\t return result; // return the file size\n\t}", "@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public String getFileSize() {\n return fileSize;\n }", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "public long getSize() {\n return mSize;\n }", "public int getPathLength()\r\n\t{\r\n\t\treturn path.size();\r\n\t}", "public int getSize( )\n {\n return size;\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "double getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "long getFileSize(String path) throws NotFoundException;" ]
[ "0.716032", "0.70666945", "0.6861767", "0.6841801", "0.6841801", "0.67235273", "0.6682264", "0.66661555", "0.66466707", "0.658743", "0.65864664", "0.658432", "0.6549602", "0.65178657", "0.6492777", "0.6465259", "0.64420414", "0.64420414", "0.64420414", "0.64420414", "0.64377195", "0.6434901", "0.6409263", "0.64082825", "0.640411", "0.6400081", "0.6391537", "0.6384122", "0.63011146", "0.62926185", "0.6284518", "0.6277905", "0.6272837", "0.6256573", "0.62516695", "0.6216034", "0.62068677", "0.61922365", "0.61909103", "0.6174042", "0.6168484", "0.6156612", "0.6128344", "0.61270297", "0.6126915", "0.6123514", "0.6108889", "0.6099241", "0.60833615", "0.60833615", "0.6070401", "0.6064072", "0.6064072", "0.6057257", "0.60551864", "0.6051167", "0.602687", "0.60124785", "0.6009848", "0.6000061", "0.5999736", "0.5995798", "0.59933555", "0.59914416", "0.5989058", "0.59844714", "0.5981358", "0.5980408", "0.5974713", "0.5968309", "0.59501904", "0.5935764", "0.59315187", "0.5928544", "0.59204704", "0.59089065", "0.59087104", "0.5907317", "0.5900096", "0.5897894", "0.58785737", "0.58695054", "0.5864436", "0.58489", "0.58478975", "0.58252287", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.5819684", "0.58187467" ]
0.79629505
0
downloads results of the job to the local storage
public Boolean downloadResults(Job job) { if (job.getUwsJob() == null || job.getUwsJob().getResults() == null) { return false; } File results = new File(getFileDir(job), "results.zip"); Boolean result; try { result = Toolbox.downloadFile(job.getUwsJob().getResultUrl(), results); ZipUtil.unpack(results, results.getParentFile()); logger.info("results for job " + job.getId() + " downloaded"); } catch (Exception ex) { result = false; logger.log(Level.SEVERE, null, ex); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void download(SearchResult result, String downloadPath);", "public void download() {\n }", "default void download(SearchResult result) {\n download(result, \".\");\n }", "public boolean download(int jid, Job job){\r\n\t\ttry {\r\n\t\t\tbyte[] tmp =null;\r\n\t\t\ttmp = this.fileHanler.downloadFile(\r\n\t\t\t\t\tjid, \r\n\t\t\t\t\tjob.getResultFileString(), \r\n\t\t\t\t\tthis.getPassword());\r\n\t\t\t\r\n\t\t\tif(tmp==null)return false;\r\n\t\t\treturn FileUtil.saveToFile(\r\n\t\t\t\t\tjob.getResultFileString(), tmp\r\n\t\t\t\t\t);\r\n\t\t} catch (IOException e) {\r\n\t\t\tdead = true;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void finish() {\n\t\t\t\t\t\t\tSystem.out.println(\"下载成功\");\n\t\t\t\t\t\t}", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n String urlPath = intent.getStringExtra(URL);\n String fileName = intent.getStringExtra(FILENAME);\n File output = new File(Environment.getExternalStorageDirectory(),\n fileName);\n if (output.exists()) {\n output.delete();\n }\n\n InputStream stream = null;\n FileOutputStream fos = null;\n try {\n\n URL url = new URL(urlPath);\n stream = url.openConnection().getInputStream();\n InputStreamReader reader = new InputStreamReader(stream);\n fos = new FileOutputStream(output.getPath());\n int next = -1;\n while ((next = reader.read()) != -1) {\n fos.write(next);\n }\n // successfully finished\n result = Activity.RESULT_OK;\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n publishResults(output.getAbsolutePath(), result);\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n progressBar.setVisibility(View.GONE);\n Toast.makeText(getContext(), \"Your file is saved in \" + localFile.toString(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void Download(DownloadBatchResult getBatchRes) {\n }", "public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void run() {\n if (latch != null)\n latch.countDown();\n\n System.out.println(\"transferring from \" + job.srcUrl + \" to \" + job.dstUrl);\n\n String srcScheme;\n String dstScheme;\n\n try {\n srcScheme = SchemeParser.getScheme(job.srcUrl);\n dstScheme = SchemeParser.getScheme(job.dstUrl);\n } catch (Exception e) {\n setError(e.getMessage());\n return;\n }\n\n Receiver probe = Receiver.getProbeForScheme(srcScheme);\n if (probe == null) {\n setError(String.format(\"unsupported scheme: %s\", srcScheme));\n return;\n }\n\n FileInfo info;\n try {\n System.out.println(\"query src file header information...\");\n info = probe.getFileInfo(job.srcUrl, new HashMap<>());\n System.out.println(\"file size: \" + info.size);\n } catch (Receiver.ReceiverOperationError e) {\n setError(e.getMessage());\n return;\n }\n\n Receiver receiver = Receiver.getReceiverForScheme(srcScheme, info.size);\n if (receiver == null) {\n setError(String.format(\"unsupported scheme: %s\", srcScheme));\n return;\n }\n\n Sender sender = Sender.getSenderForScheme(dstScheme, info.size);\n if (sender == null) {\n setError(String.format(\"unsupported scheme: %s\", dstScheme));\n return;\n }\n\n Downloader downloader = Downloader.getDownloader();\n Uploader uploader = Uploader.getUploader();\n\n File buffer = new File(\"buffer.file\");\n\n try {\n System.out.println(\"start downloading...\");\n FileOutputStream writer = new FileOutputStream(buffer);\n downloader.download(job.srcUrl, new HashMap<>(), receiver, writer);\n writer.close();\n System.out.println(\"download finished\");\n\n System.out.println(\"start uploading...\");\n FileInputStream reader = new FileInputStream(buffer);\n uploader.upload(job.dstUrl, new HashMap<>(), sender, reader);\n reader.close();\n System.out.println(\"upload finished\");\n\n } catch (FileNotFoundException e) {\n setError(\"can't crate buffer file for download\");\n return;\n } catch (Exception e) {\n setError(String.format(\"download error: %s\", e.getMessage()));\n return;\n }\n }", "public void download() {\r\n\t\t\ttThread = new Thread(this);\r\n\t\t\ttThread.start();\r\n\t\t}", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "@Override\n public void run() {\n long[] saved = AppDatabase.getInstance().modelByName(name).insertAll((List) response);\n updateProgressDownload(1, name);\n }", "@Override\r\n\tpublic void downloadHomework() {\n\t\t\r\n\t}", "public void sendResults(Job job) {\n if (job.getResultsEmail() == null) {\n return;\n }\n Message message = new MimeMessage(mailSession);\n try {\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(job.getResultsEmail()));\n message.setFrom();\n\n // \n message.setSubject(\"vo-korel: Results of '\" + job.getLabel() + \"' job\");\n\n //multipart\n Multipart mp = new MimeMultipart();\n\n // message body\n StringBuilder sb = new StringBuilder();\n sb.append(\"Your job '\").append(job.getLabel()).append(\"' \");\n if (job.getPhase() == Phase.COMPLETED) {\n sb.append(\"finished successfully.\");\n }\n if (job.getPhase() == Phase.ERROR) {\n sb.append(\"finished with error.\");\n }\n if (job.getPhase() == Phase.ABORTED) {\n sb.append(\"has been aborted,\");\n }\n sb.append(\"\\n\");\n sb.append(\"Complete results are in the attachment.\");\n\n MimeBodyPart text = new MimeBodyPart();\n text.setText(sb.toString());\n\n mp.addBodyPart(text);\n\n //attachments\n File resultsFile = new File(getFileDir(job), \"results.zip\");\n\n if (resultsFile.exists()) {\n MimeBodyPart attachment = new MimeBodyPart();\n try {\n attachment.attachFile(resultsFile);\n } catch (IOException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n attachment.setFileName(\"results\" + job.getStringId() + \".zip\");\n mp.addBodyPart(attachment);\n }\n\n message.setContent(mp);\n message.setHeader(\"X-Mailer\", \"My Mailer\");\n Transport.send(message);\n logger.log(Level.INFO, \"Result were sent to {0}\", job.getResultsEmail());\n } catch (Exception ex) {\n logger.log(Level.SEVERE, \"failed to send email with job results\", ex);\n }\n }", "private void onPostDownloadListener(String result){\n\n\t\tIntent intent = new Intent();\n\t\tintent.putExtra(\"json_items\", result);\n\t\tthis.setResult(RESULT_OK, intent);\n\t\tfinish();\n\t\t//(\"json_items\", result);\n\t}", "protected void download() {\r\n\t\tsetState(DOWNLOADING);\r\n\t\t\r\n\t\tThread t = new Thread(this);\r\n\t\tt.start();\r\n\t}", "public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}", "public void saveResults();", "@Override\r\n\t\tprotected File doInBackground(String... arg0) {\n\t\t\t URL url;\r\n\t\t\t file = null;\r\n\t\t\t int downloadedSize = 0 ;\r\n\t\t\t long totalsize=0;\r\n\t\t\t Float per = 0f;\r\n\t\t\t String extStorageDirectory = Environment.getExternalStorageDirectory().toString();\r\n\t\t\t File folder = new File(extStorageDirectory, \"Ioannina_GTG\");\r\n\t\t\t String fileName = url_attach.substring( url_attach.lastIndexOf('/')+1, url_attach.length() );\r\n\t\t\t\tSystem.out.println(fileName);\r\n\t\t\t\t\t folder.mkdir();\r\n\t\t\t\t\t file = new File(folder, fileName);\r\n\t\t\t\t\t try {\r\n\t\t\t\t\t file.createNewFile();\r\n\t\t\t\t\t } catch (IOException e1) {\r\n\t\t\t\t\t e1.printStackTrace();\r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\ttry {\r\n\t\t\t\turl = new URL(arg0[0]);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\r\n\t\t \r\n\t\t urlConnection.setRequestMethod(\"GET\");\r\n\t\t urlConnection.setDoOutput(true);\r\n\t\t \r\n\t\t // connect\r\n\t\t urlConnection.connect();\r\n\t\t ////////////////////////////////////// \r\n\t\t HttpClient client=new DefaultHttpClient();\r\n\t\t\t\t\tURI website=new URI(arg0[0]);\r\n\t\t\t\t\tHttpGet request=new HttpGet();\r\n\t\t\t\t\trequest.setURI(website);\r\n\t\t\t\t\tHttpResponse response=client.execute(request);\r\n\t\t\t\t\tHttpEntity entity=response.getEntity();\r\n\t\t\t\t\tInputStream inputStream=null;\r\n\t\t\t\t\tif(entity!=null){\r\n\t\t\t\t\t\ttotalsize=entity.getContentLength();\r\n\t\t\t\t\t\tinputStream=entity.getContent();\r\n\t\t\t\t\t}\r\n\t\t /////////////////////////////////////////////////////////////////////////////// \r\n\t\t FileOutputStream fileOutput = new FileOutputStream(file);\r\n\t\t // InputStream inputStream = urlConnection.getInputStream();\r\n\t\t // totalsize = urlConnection.getContentLength();\r\n\t\t \r\n\t\t byte[] buffer = new byte[1024 * 1024]; \r\n\t\t int bufferLength = 0;\r\n\t\t \r\n\t\t while ((bufferLength = inputStream.read(buffer)) > 0) {\r\n\t\t fileOutput.write(buffer, 0, bufferLength);\r\n\t\t downloadedSize += bufferLength;\r\n\t\t System.out.println(\" the total size is :\"+totalsize );\r\n\t\t System.out.println(\" the buffer lenght is :\"+bufferLength );\r\n\t\t System.out.println(\" the downloaded size is :\"+downloadedSize );\r\n\t\t // per = ((float) downloadedSize / totalsize) * 100;\r\n\t\t per=(((float)downloadedSize*100)/totalsize);\r\n\t\t int intper=per.intValue();\r\n\t\t System.out.println(intper);\r\n\t\t pDialog.setProgress(intper);\r\n\t\t //pDialog.incrementProgressBy(per.intValue());\r\n\t\t // setText(\"Total PDF \"\r\n\t\t // + (totalsize / 1024)\r\n\t\t // + \" KB\\n\\nDownloading PDF \" + (int) per\r\n\t\t // + \"% complete\");\r\n\t\t }\r\n\t\t // close the output stream when complete //\r\n\t\t fileOutput.close();\r\n\t\t \r\n\t\t \r\n\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (URISyntaxException e) {\r\n\t\t\t\t //TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t \r\n\t\t\t// for (int i = 0; i < 100; i++) {\r\n\t\t\t\t //publishProgress(10);\r\n\t\t\t\t\r\n\t\t\t\t \r\n\r\n\t\t\t// }\r\n\r\n\t\t\treturn file;\r\n\t\t}", "@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n try {\r\n String root = Environment.getExternalStorageDirectory().toString();\r\n\r\n System.out.println(\"Downloading\");\r\n URL url = new URL(f_url[0]);\r\n\r\n URLConnection conection = url.openConnection();\r\n conection.connect();\r\n // getting file length\r\n int lenghtOfFile = conection.getContentLength();\r\n\r\n // input stream to read file - with 8k buffer\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n\r\n // Output stream to write file\r\n\r\n OutputStream output = new FileOutputStream(root+\"/downloadedfile.jpg\");\r\n byte data[] = new byte[1024];\r\n\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n\r\n // writing data to file\r\n output.write(data, 0, count);\r\n\r\n }\r\n\r\n // flushing output\r\n output.flush();\r\n\r\n // closing streams\r\n output.close();\r\n input.close();\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n\r\n return null;\r\n }", "void fileDownloaded(String path);", "@Override\n protected Boolean doInBackground(Void... params) {\n\n fileSize = entry.bytes;\n\n // Download file\n\n String filePath = context.getFilesDir().getPath() + \"/\" + entry.fileName();\n File file = new File(filePath);\n FileOutputStream outputStream = null;\n\n try {\n outputStream = new FileOutputStream(file);\n dropboxAPI.getFile(entry.path, null, outputStream, new ProgressListener() {\n @Override\n public long progressInterval() {\n // Update the progress bar every half-second or so\n return 500;\n }\n\n @Override\n public void onProgress(long current, long total) {\n publishProgress(current);\n }\n });\n outputStream.close();\n return true;\n\n } catch (DropboxException | IOException e) {\n e.printStackTrace();\n }\n return false;\n }", "@Override\n protected Integer doInBackground(Void... params) {\n URL url = null;\n File file;\n File output_file;\n InputStream inputStream = null;\n FileOutputStream fos = null;\n try {\n url = new URL(url_link);\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n file = new File(url_link);\n String name = file.getName();\n output_file = new File(Environment.getExternalStorageDirectory(), name);\n fos = new FileOutputStream(output_file.getPath());\n inputStream = httpURLConnection.getInputStream();\n path = output_file.getAbsolutePath();\n // output_file = new File(file.getPath());\n //fos = new FileOutputStream(Environment.getExternalStorageDirectory(),output_file);\n int count = 0;\n int total = 0;\n int filelength = httpURLConnection.getContentLength();\n byte bytes[] = new byte[filelength];\n while ((count = inputStream.read(bytes, 0, filelength)) != -1) {\n total += count;\n publishProgress((total * 100) / filelength);\n\n fos.write(bytes, 0, count);\n }\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "private void startDownloadJob(final DownloadJob job) {\n\n\t\tfinal int notificationId = ++NOTIFICATION_ID;\n\n\t\tfinal NotificationManager mNotifyManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tfinal NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);\n\t\t// mBuilder.setContentTitle(\"Message Download\")\n\t\tString notificationTitle = job.getFolderName();\n\t\tFBFriend loggedUser = DataStorage.getLoggedUser();\n\t\tif (loggedUser != null) {\n\t\t\tnotificationTitle = job.getThread().getFriendsNames(loggedUser);\n\t\t}\n\t\tmBuilder.setContentTitle(notificationTitle).setContentText(\"Download in progress\")\n\t\t\t\t.setSmallIcon(R.drawable.ic_launcher).setAutoCancel(true);\n\n\t\tIntent resultIntent = new Intent(this, StatusActivity.class);\n\t\tresultIntent.putExtra(StatusActivity.INTENT_EXTRA_STATUS, 1);\n\t\tresultIntent.putExtra(StatusActivity.INTENT_EXTRA_JOB, job);\n\t\tresultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t| Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t// resultIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |\n\t\t// Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\n\t\t// generate unique request id\n\t\tint n = new Random().nextInt(50) + 1;\n\t\tint requestID = n * notificationId;\n\n\t\tPendingIntent resultPendingIntent = PendingIntent.getActivity(this, requestID, resultIntent,\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\t\t// PendingIntent.FLAG_ONE_SHOT);\n\t\tmBuilder.setContentIntent(resultPendingIntent);\n\n\t\tThread thread = new Thread() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\n\t\t\t\tdownloading = true;\n\t\t\t\tString threadId = job.getThread().getThreadId();\n\n\t\t\t\tFBMessageTable dbTable = new FBMessageTable(getApplicationContext(), threadId);\n\t\t\t\tdbTable.createTableIfNotExist();\n\n\t\t\t\t// indexes starts from 0\n\t\t\t\t// start from begining or from the last index\n\t\t\t\t// long start = Math.max(job.getMinIndex() - 1,\n\t\t\t\t// job.getDownloadIndex());\n\t\t\t\tlong start = job.getMinIndex() - 1;\n\t\t\t\tlong end = job.getMaxIndex() - 1;\n\n\t\t\t\tlong current = start;\n\n\t\t\t\tAppLogger.log(TAG, \"Job started thread_id=\" + threadId + \" from \" + start + \" to \" + end);\n\n\t\t\t\tDate startDate = new Date();\n\n\t\t\t\tboolean working = true;\n\t\t\t\tjob.setWorking(true);\n\t\t\t\tsaveJobList();\n\t\t\t\twhile (working) {\n\n\t\t\t\t\tlong lowerLimit = current;\n\t\t\t\t\t// long upperLimit = Math.min(end, current +\n\t\t\t\t\t// FB_MAX_MESSAGE_LIMIT);\n\t\t\t\t\tlong upperLimit = Math.min(end, current + FB_MAX_MESSAGE_LIMIT);\n\n\t\t\t\t\t// check if already found in the database\n\t\t\t\t\tCursor cursor = dbTable.getExportMessages(threadId, lowerLimit, upperLimit);\n\n\t\t\t\t\tboolean contains = containsAll(lowerLimit, upperLimit, cursor);\n\t\t\t\t\tdbTable.closeReadableDatabase();\n\t\t\t\t\tif (contains) {\n\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\tsb.append(\"found in database from \");\n\t\t\t\t\t\tsb.append(lowerLimit);\n\t\t\t\t\t\tsb.append(\" to \");\n\t\t\t\t\t\tsb.append(upperLimit);\n\t\t\t\t\t\tAppLogger.log(TAG, sb.toString());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// List<FBMessage> messages =\n\t\t\t\t\t\t// DataLoader.loadMessages(threadId, lowerLimit,\n\t\t\t\t\t\t// upperLimit);\n\t\t\t\t\t\tList<FBMessage> messages = DataLoader.loadMessages(threadId, lowerLimit, FB_MAX_MESSAGE_LIMIT);\n\n\t\t\t\t\t\tif (messages == null) {\n\t\t\t\t\t\t\t// error occured\n\n\t\t\t\t\t\t\t// 104 = OAuthException.\n\t\t\t\t\t\t\tif (DataLoader.getErrorCode() == 104) {\n\t\t\t\t\t\t\t\t// try to create session from cache\n\t\t\t\t\t\t\t\tvalidateFBLogin();\n\t\t\t\t\t\t\t\t// try missed one again\n\t\t\t\t\t\t\t\tupperLimit = lowerLimit;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// TODO testing use. should remove after testing\n\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\tsb.append(\"Messages from \");\n\t\t\t\t\t\t\tsb.append(lowerLimit);\n\t\t\t\t\t\t\tsb.append(\" to \");\n\t\t\t\t\t\t\tsb.append(upperLimit);\n\t\t\t\t\t\t\tsb.append(\" size=\");\n\t\t\t\t\t\t\tsb.append(messages.size());\n\n\t\t\t\t\t\t\tAppLogger.log(TAG, sb.toString());\n\n\t\t\t\t\t\t\t// save to database\n\t\t\t\t\t\t\tdbTable.addAll(messages, lowerLimit);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tjob.setDownloadIndex(current);\n\t\t\t\t\t// saveJobList();\n\n\t\t\t\t\t// prepare for next iteration\n\t\t\t\t\tcurrent = upperLimit;\n\n\t\t\t\t\tif (current >= end) {\n\t\t\t\t\t\tworking = false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (job.isStop()) {\n\t\t\t\t\t\tworking = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tint progress = 0;\n\t\t\t\t\tif (end == start) {\n\t\t\t\t\t\tprogress = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprogress = (int) ((current - start) * 100 / (end - start));\n\t\t\t\t\t}\n\t\t\t\t\tmBuilder.setProgress(100, progress, false);\n\t\t\t\t\tmNotifyManager.notify(notificationId, mBuilder.build());\n\t\t\t\t\tpublishStatus(job, progress);\n\t\t\t\t}\n\n\t\t\t\tAppLogger.log(TAG, \"Job ended thread_id=\" + threadId + \" from \" + start + \" to \" + end + \" in \"\n\t\t\t\t\t\t+ (new Date().getTime() - startDate.getTime()) / 1000 + \"seconds\");\n\n\t\t\t\t// write csv file\n\t\t\t\tmBuilder.setContentText(\"Download complete. Generating file\").setProgress(0, 0, false);\n\t\t\t\tCursor cursor = dbTable.getExportMessages(threadId, start, end);\n\n\t\t\t\tif (cursor != null) {\n\t\t\t\t\tgenerateOutFile(job, cursor);\n\t\t\t\t}\n\n\t\t\t\tdbTable.closeReadableDatabase();\n\n\t\t\t\t// //////////////\n\t\t\t\tif (job.isStop()) {\n\t\t\t\t\tmBuilder.setContentText(\"Download stopped\").setProgress(0, 0, false);\n\t\t\t\t} else {\n\t\t\t\t\tmBuilder.setContentText(\"Finished\").setProgress(0, 0, false);\n\t\t\t\t}\n\t\t\t\tmNotifyManager.notify(notificationId, mBuilder.build());\n\n\t\t\t\t// //////////////\n\t\t\t\tjob.setStop(true);\n\t\t\t\tboolean removed = removeJob(job);\n\t\t\t\tif (removed) {\n\t\t\t\t\tsaveJobList();\n\t\t\t\t}\n\t\t\t\tdownloading = false;\n\t\t\t\tif (jobs != null) {\n\t\t\t\t\tif (jobs.size() == 0) {\n\t\t\t\t\t\tstopSelf();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstartAllDownloads();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t};\n\n\t\tif (threads == null) {\n\t\t\tthreads = new ArrayList<Thread>();\n\t\t}\n\t\tthreads.add(thread);\n\t\tthread.start();\n\n\t}", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n // Do what you want\n }", "@Override\n protected Void call() {\n if(download_queue.isEmpty()) return null;\n \n //Proceed to create a file with a list of addresses\n Writer writer = null;\n String file_dir = Configuration.root_dir + \"Download_list.txt\";\n try{\n writer = new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\n file_dir), \"utf-8\"));\n String server_root = Configuration.getInstance().getSina_server_root();\n //Traverse through the download list and write each download address to file\n String content = \"\";\n for(int i = 0; i < download_queue.size(); i++){\n SoundTrack track = download_queue.get(i);\n String address = server_root + track.getLocalFileName();\n content += address;\n if(i < (download_queue.size() - 1)){\n content += \"\\n\";\n }\n }\n //Write to file\n writer.write(content);\n \n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n try {\n if(writer != null)\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n //Run wget command to download the listed files\n String command = \"wget\";\n command += \" -P \" + Configuration.root_dir + \"SoundTracks/\";\n command += \" -i list\";\n try {\n Process p = Runtime.getRuntime().exec(command);\n p.waitFor();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InterruptedException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return null;\n }", "@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n System.out.println(\"Starting download\");\r\n }", "@Override\n protected String doInBackground(ArrayList<String>... arrayLists) {\n int count;\n try {\n File path = new File(Environment.getExternalStorageDirectory() + File.separator + Constants.APP_NAME);\n //File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);\n URL url = new URL(arrayLists[0].get(0));\n URLConnection conection = url.openConnection();\n conection.connect();\n // getting file length\n int lenghtOfFile = conection.getContentLength();\n // input stream to read file - with 8k buffer\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\n // Output stream to write file\n if (!path.exists()) {\n path.mkdir();\n }\n File file = new File(path, arrayLists[0].get(1));\n OutputStream output = new FileOutputStream(file);\n byte data[] = new byte[1024];\n long total = 0;\n while ((count = input.read(data)) != -1) {\n total += count;\n publishProgress((int)(total*100)/lenghtOfFile);\n // writing data to file\n output.write(data, 0, count);\n\n }\n\n // flushing output\n output.flush();\n // closing streams\n output.close();\n input.close();\n\n } catch (Exception e) {\n// Log.e(\"Error: \", e.getMessage());\n }\n\n return null;\n }", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "@Override\n protected String doInBackground(String... f_url) {\n int count;\n try {\n URL url = new URL(f_url[0]);\n URLConnection connection = url.openConnection();\n connection.connect();\n // getting file length\n int lengthOfFile = connection.getContentLength();\n\n\n // input stream to read file - with 8k buffer\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\n\n String timestamp = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n\n //Extract file name from URL\n fileName = f_url[0].substring(f_url[0].lastIndexOf('/') + 1, f_url[0].length());\n\n //Append timestamp to file name\n fileName = timestamp + \"_\" + fileName;\n\n //External directory path to save file\n // folder = Environment.getExternalStorageDirectory() + \"Needyyy\";\n\n //Create androiddeft folder if it does not exist\n\n String folder = \"Needyyy\";\n// File f = new File(Environment.getExternalStorageDirectory(), folder);\n// if (!f.exists()) {\n// f.mkdirs();\n// }\n\n\n File directory = new File(Environment.getExternalStorageDirectory(), folder);\n\n if (!directory.exists()) {\n directory.mkdirs();\n }\n\n // Output stream to write file\n OutputStream output = new FileOutputStream(directory + fileName);\n\n byte data[] = new byte[1024];\n\n long total = 0;\n\n while ((count = input.read(data)) != -1) {\n total += count;\n // publishing the progress....\n // After this onProgressUpdate will be called\n publishProgress(\"\" + (int) ((total * 100) / lengthOfFile));\n Log.d(TAG, \"Progress: \" + (int) ((total * 100) / lengthOfFile));\n\n // writing data to file\n output.write(data, 0, count);\n }\n\n // flushing output\n output.flush();\n\n // closing streams\n output.close();\n input.close();\n return \"Downloaded at: \" + directory + fileName;\n\n } catch (Exception e) {\n// Log.e(\"Error: \", e.getMessage());\n }\n\n return \"Something went wrong\";\n }", "private void startDownload(){\n final DownloadCurrent downloadCurrent = new DownloadCurrent(this);\n downloadCurrent.execute(UpdateTalesData.sData_HTTP);\n sProgDialDownload.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n downloadCurrent.cancel(true);\n }\n });\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n try{\n final DownloadManager downloadManager = DownloadManager.getInstance();\n String downloadUrl = jTextField1.getText();\n String qQString = \"http://dldir1.qq.com/qqfile/qq/QQ2013/QQ2013Beta2.exe\";\n String fileName = jTextField2.getText();\n final DownloadMission downloadMission;\n downloadMission = new DownloadMission(qQString, jFileChooser1.getCurrentDirectory().getName(), \"Sample\");\n downloadManager.addMission(downloadMission);\n \n jButton2 = new JButton();\n jButton2.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e) {\n downloadManager.start();\n }\n });\n add(jButton2);\n downloadManager.start();\n //initialise the progress bar with a counter\n int counter = 0;\n while(true){\n jProgressBar1.setMinimum(0);\n jProgressBar1.setMaximum(Integer.parseInt(downloadManager.getReadableDownloadSize()));\n \n jTextField3.setText(downloadManager.getReadableTotalSpeed());\n jTextField4.setText(downloadManager.getReadableDownloadSize());\n counter++;\n }\n \n \n } catch (IOException ex) {\n Logger.getLogger(DownloadInterface.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n int result;\n \n jFileChooser1 = new JFileChooser();\n jFileChooser1.setCurrentDirectory(new java.io.File(\" \"));\n jFileChooser1.setDialogTitle(chooserTitle);\n jFileChooser1.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n \n //disable all files option\n jFileChooser1.setAcceptAllFileFilterUsed(false);\n if (jFileChooser1.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { \n System.out.println(\"getCurrentDirectory(): \" \n + jFileChooser1.getCurrentDirectory());\n System.out.println(\"getSelectedFile() : \" \n + jFileChooser1.getSelectedFile());\n }\n else {\n System.out.println(\"No Selection \");\n }\n }", "@NonNull\n private File getDownloadLocation() {\n System.out.println(\"Hello. in download start\");\n File root = android.os.Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath() + \"/V2A\");\n if (!file.exists()) {\n file.mkdirs();\n }\n System.out.println(file.toString());\n System.out.println(\"Hello. in download end\");\n //Toast.makeText(this, \"Starting Download\", Toast.LENGTH_SHORT).show();\n\n return file;\n\n }", "@Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n }", "@Override\n\t\tprotected String doInBackground(String... url) {\n\n\t\t\t// For storing data from web service\n\t\t\tString data = \"\";\n\n\t\t\ttry {\n\t\t\t\t// Fetching the data from web service\n\t\t\t\tdata = downloadUrl(url[0]);\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Background Task\", e.toString());\n\t\t\t}\n\t\t\treturn data;\n\t\t}", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "@Override\r\n\t\t\tprotected String doInBackground(String... url) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdata = downloadUrl(url[0]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tLog.d(\"Background Task\", e.toString());\r\n\t\t\t\t}\r\n\t\t\t\treturn data;\r\n\t\t\t}", "public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }", "void downloadingFile(String path);", "@Override\n\t\tprotected String doInBackground(String... url)\n\t\t{\n\n\t\t\t// For storing data from web service\n\t\t\tString data = \"\";\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Fetching the data from web service\n\t\t\t\tdata = MainActivity.this.downloadUrl(url[0]);\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tLog.d(\"Background Task\", e.toString());\n\t\t\t}\n\t\t\treturn data;\n\t\t}", "public void downloadStarted();", "@Override\n\t\tprotected String doInBackground(String... f_url) {\n\t\t\tint count;\n\n\t\t\ttry {\n\n\t\t\t\tFile folder = new File(\n\t\t\t\t\t\tEnvironment.getExternalStorageDirectory() + \"/sdcard\");\n\t\t\t\tboolean success = true;\n\t\t\t\tif (!folder.exists()) {\n\t\t\t\t\tsuccess = folder.mkdir();\n\t\t\t\t}\n\t\t\t\tFile folder2 = new File(\n\t\t\t\t\t\tEnvironment.getExternalStorageDirectory()\n\t\t\t\t\t\t\t\t+ \"/sdcard/RBK\");\n\t\t\t\tif (!folder2.exists()) {\n\t\t\t\t\tsuccess = folder2.mkdir();\n\t\t\t\t}\n\n\t\t\t\tURL url = new URL(f_url[0]);\n\t\t\t\tURLConnection conection = url.openConnection();\n\t\t\t\tconection.connect();\n\t\t\t\t// getting file length\n\t\t\t\tint lenghtOfFile = conection.getContentLength();\n\n\t\t\t\t// input stream to read file - with 8k buffer\n\t\t\t\tInputStream input = new BufferedInputStream(url.openStream(),\n\t\t\t\t\t\t8192);\n\n\t\t\t\t// Output stream to write file\n\n\t\t\t\tOutputStream output = new FileOutputStream(Environment\n\t\t\t\t\t\t.getExternalStorageDirectory().toString()\n\t\t\t\t\t\t+ \"/sdcard/RBK/downloadedfile\" + j + \".jpg\");\n\n\t\t\t\tbyte data[] = new byte[1024];\n\n\t\t\t\tlong total = 0;\n\t\t\t\tj++;\n\t\t\t\tLog.v(\"log_tag\", \"j ::: \" + j);\n\n\t\t\t\twhile ((count = input.read(data)) != -1) {\n\t\t\t\t\ttotal += count;\n\n\t\t\t\t\t// writing data to file\n\t\t\t\t\toutput.write(data, 0, count);\n\n\t\t\t\t}\n\n\t\t\t\t// flushing output\n\t\t\t\toutput.flush();\n\n\t\t\t\t// closing streams\n\t\t\t\tinput.close();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tIntent intent = new Intent(getApplicationContext(), Error.class);\n\n\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\tLog.e(\"Error: \", e.getMessage());\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}", "@Override\r\n protected void executeAction() throws Exception {\r\n // get the submission of the project\r\n Submission[] submissions = getContestServiceFacade().getSoftwareProjectSubmissions(getCurrentUser(), projectId);\r\n // check whether the project contains the submission the user want to download\r\n for (Submission sub : submissions) {\r\n if (sub.getUpload() != null && sub.getId() == submissionId) {\r\n submission = sub;\r\n break;\r\n }\r\n }\r\n\r\n if (submission == null) {\r\n // the user can't download the upload which is not belongs to the project\r\n throw new Exception(\"Cannot find submission \" + submissionId + \" in project \" + projectId);\r\n }\r\n\r\n contest = getContestServiceFacade().getSoftwareContestByProjectId(getCurrentUser(), projectId);\r\n\r\n if (submission.getUpload().getUrl() == null) {\r\n if (DirectUtils.isStudio(contest)) {\r\n Long userId = null;\r\n String handle = null;\r\n for (Resource r : contest.getResources()) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = r.getUserId();\r\n handle = r.getProperty(RESOURCE_PROPERTY_HANDLE);\r\n }\r\n }\r\n\r\n uploadedFile = studioFileUpload.getUploadedFile(DirectUtils.createStudioLocalFilePath(contest.getId(), userId, handle,\r\n submission.getUpload().getParameter()));\r\n } else {\r\n uploadedFile = fileUpload.getUploadedFile(submission.getUpload().getParameter());\r\n }\r\n } else {\r\n externalUrl = submission.getUpload().getUrl();\r\n }\r\n\r\n }", "public void exportResultsToFile(){\r\n\t\t\t\t\r\n\t\t// This if clause shouldn't fire as the icon is grayed out if there is no tab open\r\n\t\tif(currentView == null \r\n\t\t\t\t|| currentView.getDynamicModelView() == null \r\n\t\t\t\t|| currentView.getDynamicModelView().getModel() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open, and a model and table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();\r\n\r\n\t\tStringBuffer buffer = new StringBuffer(30000);\r\n\r\n\t\tif(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){\r\n\t\t\r\n\t\t\t// Get the filename\r\n\t\t\tYorkGUIUtils guiUtils = new YorkGUIUtils();\r\n\t\t\tString selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), \"txt csv\", \"Results files (.txt, .csv)\", JFileChooser.SAVE_DIALOG);\r\n\r\n\t\t\tif(selectedFile == null || guiUtils.wasCancelled()){\r\n\t\t\t\trequestFocusInWindow();\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tlogger.info(\"Selected file for exporting results:\" + selectedFile);\r\n\t\t\r\n\t\t\tbuffer.append(\"time point\").append(\"\\t\");\r\n\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\tbuffer.append(t).append(\"\\t\");\r\n\t\t\t}\r\n\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){\r\n\t\t\t\tString name = it.next();\r\n\t\t\t\tbuffer.append(name).append(\"\\t\");\r\n\t\t\t\t// For all time points\r\n\t\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\t\tbuffer.append(history.getSnapshot(t).get(name).getOutputValue()).append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t}\r\n\t\t\tFileLoader.save(selectedFile, buffer.toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tJOptionPane.showMessageDialog(this, \"No results available in the selected tab. Run the model first.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@GetMapping(\"/runExportPesertaJob\")\n public String runExportPesertaBatchJob(){\n try {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"JobId\", \"31\")\n .toJobParameters();\n jobLauncher.run(exportPesertaJob, parameters);\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \",ex.getMessage(),ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \"+ex.getMessage();\n } \n return \"JOB DONE !!\";\n }", "public void onDownloadSuccess(String fileInfo);", "@Override\n protected void onPostExecute(HttpResponse result) {\n if (result != null)\n\t\t\ttry {\n\t\t\t\tLog.i(\"Conexao\", \"Dentrodopost\");\n\t\t\t\t//result.getEntity().writeTo(new FileOutputStream(f));\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n }", "@Override\n public void onPause() {\n super.onPause();\n try {\n storeRetrieveData.saveToFile((ArrayList<TaskCollector>) taskCollectors);\n } catch (JSONException | IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n protected String doInBackground(String... params) {\n String result = \"\";\r\n try {\r\n String sdcardPath;\r\n if (Environment.getExternalStorageDirectory() != null) {\r\n sdcardPath = Environment.getExternalStorageDirectory().toString();\r\n File file = new File(sdcardPath + File.separator + DEFAULT_DOWNLOAD_PATH);\r\n if (!file.exists()) {\r\n file.mkdir();\r\n }\r\n int pos = resourceUrl.lastIndexOf(\".\");\r\n StringBuffer endTag = new StringBuffer().append(\"TBS download\" + new Date().getTime()).append(resourceUrl.substring(pos));\r\n InputStream inputStream;\r\n URL url = new URL(resourceUrl);\r\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\r\n urlConnection.setConnectTimeout(20000);\r\n urlConnection.setRequestMethod(\"GET\");\r\n if (urlConnection.getResponseCode() == 200) {\r\n inputStream = urlConnection.getInputStream();\r\n byte[] buffer = new byte[4 * 1024];\r\n int len = inputStream.read(buffer);\r\n FileOutputStream fileOutputStream = new FileOutputStream(file);\r\n while (len >= 0) {\r\n fileOutputStream.write(buffer);\r\n len = inputStream.read(buffer);\r\n }\r\n result = \"文件选择:\" + sdcardPath + File.separator + DEFAULT_DOWNLOAD_PATH + endTag;\r\n fileOutputStream.close();\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n result = \"failed\";\r\n }\r\n return result;\r\n }", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "public void startInlineDownloading() {\n inDownloadingProgress.add(photoId);\n if (fullPhotosCaching.containsKey(photoId)) {\n final PhotoCache photoCache = fullPhotosCaching.get(photoId);\n saveImageFile(photoCache, DEFAULT_PATH, MAX_QUALITY, this);\n }\n else {\n getPhotoCache(photoId, DEFAULT_PATH, context, this);\n }\n }", "public FileInputStream downloadCompletedJobReport(String start, String end, int flag, int client) throws Exception;", "public void setResult(download.Map result) {\n this.result = result;\n }", "void mo54428b(DownloadTask downloadTask);", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n StorageReference downloadUrl = taskSnapshot.getStorage();\n downloadImage(downloadUrl);\n Log.e(\"downloadUrl\", \" \" + downloadUrl);\n\n\n }", "protected void jobFinished(Progress job) {\n }", "@Override\r\n protected String doInBackground(String... url) {\r\n\r\n // For storing data from web service\r\n String data = \"\";\r\n\r\n try{\r\n // Fetching the data from web service\r\n data = downloadUrl(url[0]);\r\n }catch(Exception e){\r\n Log.d(\"Background Task\",e.toString());\r\n }\r\n return data;\r\n }", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n }", "public void saveResult() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(resultFile));\n\t\t\tout.println(record.resultToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void download() {\n // Attempt to perform the download\n Log.d(TAG, \"download\");\n try {\n // Open a connection to the PHP server.\n // Get the response code\n // Open an input stream as well as a buffered input reader\n try {\n // if (responseCode == HttpURLConnection.HTTP_OK) {\n // Attempt to parse the data from the server\n\n /* Add the crumb objects, but only add the coordinates, the rating,\n * the name, and the number of visits to the local database structure.\n */\n\n // Perhaps add a post method to add the crumbs to the hashmap\n\n // Post: Notify the UI thread that the markers are ready to be loaded.\n\n } catch (Exception e) {\n\n } finally {\n // Close the input streams\n }\n } catch(Exception e) {\n\n }\n }", "@Override\n public boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher,\n final BuildListener listener) {\n\n boolean result = false;\n if (Result.SUCCESS.equals(build.getResult()) || Result.UNSTABLE.equals(build.getResult())) {\n\n FilePath ws = build.getWorkspace();\n if (ws == null) {\n listener.error(\"No workspace defined!\");\n build.setResult(Result.FAILURE);\n result = false;\n } else {\n for (ResultSet resultSet : getResultSets()) {\n if (StringUtils.isEmpty(resultSet.getSpec())) {\n listener.getLogger().println(\"Empty result spec implementation detected\");\n } else {\n listener.getLogger().println(\n \"The test result(s) contained in target \" + resultSet.getSpec()\n + \" will be exported to the \" + \"Klaros-Testmanagement Server at \"\n + getUrl(url) + \" using the \" + resultSet.getFormat() + \" format.\");\n listener.getLogger().print(\"With parameters Project[\" + config + \"]\");\n if (StringUtils.isNotBlank(iteration)) {\n listener.getLogger().print(\" Iteration[\" + iteration + \"]\");\n }\n listener.getLogger().println(\n \" Environment[\" + env + \"] and SUT[\" + sut + \"].\");\n\n try {\n FileCallableImplementation exporter =\n new FileCallableImplementation(getJenkinsInstance().getRootUrl(), build\n .getProject().getName(), build.getNumber(), build\n .getEnvironment(listener), build.getBuildVariables(), listener);\n exporter.setKlarosUrl(getKlarosUrl(url));\n exporter.setResultSet(resultSet);\n exporter.setConfig(config);\n exporter.setIteration(iteration);\n exporter.setSut(sut);\n exporter.setEnv(env);\n exporter.setUsername(username);\n exporter.setPassword(password.getPlainText());\n exporter.setCreateTestSuite(createTestSuite);\n ws.act(exporter);\n\n listener.getLogger().println(\"Test result(s) successfully exported.\");\n\n } catch (IOException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (InterruptedException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (RuntimeException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n }\n\n result = true;\n }\n }\n }\n } else {\n listener.getLogger().println(\n \"Skipping export of test results to Klaros-Testmangement due to build status\");\n result = true;\n }\n return result;\n }", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "public void saveSearchTaskResult(String writePath, JsonObject request) {\t\n\t\t\tthis.rwl.lockRead();\n\t\t\t//Search songs according to request\n\t\t\tJsonObject result = this.search(request);\t\n\t\t\tPath outpath = Paths.get(writePath);\n\t\t\t//Create the file.\n\t\t\toutpath.getParent().toFile().mkdir();\n\t\t\ttry(BufferedWriter output = Files.newBufferedWriter(outpath)) {\n\t\t\t\t//Write the result to the file.\n\t\t\t\toutput.write(result.toString());\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Exception in saveSearchTaskResult in SongLibrary class!! \" + e.getMessage());\n\t\t\t}\n\t\t\tthis.rwl.unlockRead();\n\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Override\n protected void onPostExecute(String message) {\n this.progressDialog.dismiss();\n\n // Display File path after downloading\n Toast.makeText(context,\n message, Toast.LENGTH_LONG).show();\n }", "@Override\r\n protected String doInBackground(String... f_url) {\r\n int count;\r\n if (f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"null\" || f_url[0].substring(f_url[0].lastIndexOf('/') + 1) != \"\") {\r\n try {\r\n URL url = new URL(f_url[0]);\r\n HttpURLConnection connection = (HttpURLConnection)url.openConnection();\r\n connection.connect();\r\n int lengthOfFile = connection.getContentLength();\r\n InputStream input = new BufferedInputStream(url.openStream(), 8192);\r\n fileName = f_url[0].substring(f_url[0].lastIndexOf('/') + 1);\r\n File directory = getExternalFilesDir(null);\r\n String folder = directory.getAbsolutePath();\r\n if (!directory.exists()) {\r\n directory.mkdirs();\r\n }\r\n OutputStream output = new FileOutputStream(folder + \"/\" + fileName);\r\n byte[] data = new byte[16384];\r\n long total = 0;\r\n while ((count = input.read(data)) != -1) {\r\n total += count;\r\n publishProgress(\"\" + (int) ((total * 100) / lengthOfFile));\r\n output.write(data, 0, count);\r\n }\r\n output.flush();\r\n output.close();\r\n input.close();\r\n return \"Downloaded at: \" + folder + fileName;\r\n\r\n } catch (Exception e) {\r\n Log.e(\"Error: \", e.getMessage());\r\n }\r\n return \"CMV files is missing in the server.Please contact your Admin\";\r\n } else {\r\n return \"These is some issue in downloading the file.Please contact your Admin\";\r\n }\r\n }", "@Override\n public void run() {\n downloadInfo.state = STATE_DOWNLOADING;\n notifyStateChange(downloadInfo);\n\n //6.specific download, two kinds of education\n // re-download and resume downloads\n Request request;\n File file = new File(downloadInfo.path);\n if (!file.exists() || file.length() != downloadInfo.currentLength) {\n //file is not exists, or file size in downloadInfo saved inconsistent\n //the file is invalid\n file.delete();\n downloadInfo.currentLength = 0;\n\n //need to re-download\n String url = String.format(Url.APP_DOWNLOAD, downloadInfo.downloadUrl);\n request = new Request.Builder().url(url).build();\n } else {\n //need to resume download\n String url = String.format(Url.APP_BREAK_DOWNLOAD, downloadInfo.downloadUrl, downloadInfo.currentLength);\n request = new Request.Builder().url(url).build();\n }\n\n Response response = null;\n InputStream is = null;\n FileOutputStream fos = null;\n\n try {\n response = okHttpClient.newCall(request).execute();\n is = response.body().byteStream();\n\n if (response != null && is != null) {\n fos = new FileOutputStream(file, true);\n\n byte[] buffer = new byte[1024 * 8];\n int len = -1;\n while ((len = is.read(buffer)) != -1 && downloadInfo.state == STATE_DOWNLOADING) {\n fos.write(buffer, 0, len);\n fos.flush();\n\n downloadInfo.currentLength = downloadInfo.currentLength + len;\n notifyProgressChange(downloadInfo);\n }\n } else {\n //the server return an error\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n } finally {\n try {\n fos.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //handle the case did not come here,there are has three situation\n //1.download finish 2.download error 3.download pause\n if (file.length() == downloadInfo.currentLength && downloadInfo.state == STATE_DOWNLOADING) {\n //说明下载完成\n downloadInfo.state = STATE_FINISH;\n notifyStateChange(downloadInfo);\n } else if (downloadInfo.state == STATE_PAUSE) {\n notifyStateChange(downloadInfo);\n } else {\n downloadInfo.state = STATE_ERROR;\n downloadInfo.currentLength = 0;\n file.delete();\n notifyStateChange(downloadInfo);\n }\n\n //requires runnable is removed from the current from downloadTaskMap at the end of the task\n downloadTaskMap.remove(downloadInfo.id);\n }", "@Override\n public void processFinish(String result) {\n MyAsyncTask getGlobalModel = new MyAsyncTask(MainActivity.this, file, \"\",\"\",\"getModel\", new MyAsyncTask.AsyncResponse() {\n @Override\n public void processFinish(String result) {\n Log.i(\"Output: GetGlobalModel\", result);\n }\n });\n getGlobalModel.execute();\n Toast.makeText(MainActivity.this, \"Fetched Global Model Successfully\", Toast.LENGTH_SHORT).show();\n Log.i(\"Output: isModelUpdated\", \"Done\");\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "void completeJob();", "@Override\r\n\t protected String doInBackground(String... url) {\r\n\t \r\n\t // For storing data from web service\r\n\t String data = \"\";\r\n\t \r\n\t try{\r\n\t // Fetching the data from web service\r\n\t data = downloadUrl(url[0]);\r\n\t }catch(Exception e){\r\n\t Log.d(\"Background Task\",e.toString());\r\n\t }\r\n\t return data;\r\n\t }", "@Override\n protected String doInBackground(String... url) {\n\n // For storing data from web service\n String data = \"\";\n\n try{\n // Fetching the data from web service\n data = downloadUrl(url[0]);\n }catch(Exception e){\n Log.d(\"Background Task\",e.toString());\n }\n return data;\n }", "@Override\n protected String doInBackground(String... url) {\n\n // For storing data from web service\n String data = \"\";\n\n try{\n // Fetching the data from web service\n data = downloadUrl(url[0]);\n }catch(Exception e){\n Log.d(\"Background Task\",e.toString());\n }\n return data;\n }", "@Override\n protected String doInBackground(String... url) {\n\n // For storing data from web service\n String data = \"\";\n\n try{\n // Fetching the data from web service\n data = downloadUrl(url[0]);\n }catch(Exception e){\n Log.d(\"Background Task\",e.toString());\n }\n return data;\n }", "@Override\n protected String doInBackground(String... url) {\n\n // For storing data from web service\n String data = \"\";\n\n try{\n // Fetching the data from web service\n data = downloadUrl(url[0]);\n }catch(Exception e){\n Log.d(\"Background Task\",e.toString());\n }\n return data;\n }", "public ResultFile(String jobId) {\n super(SimpleConfig.getProperty(\"datacenter.cache.directory\"), jobId);\n }", "void downloadCompleted(String blobId);", "private void startDownloadActivity() {\n checking();\n numDownloading = 0;\n updateMax = 0;\n updateProgress = 0;\n readPref();\n writePref();\n update();\n }", "private void fetchingData() {\n loadingDialog.startLoadingDialog();\n\n FirebaseStorage.getInstance().getReference().child(\"course-details\").child(\"course-details.pdf\")\n .getBytes(1024 * 1024).addOnSuccessListener(bytes -> {\n loadingDialog.dismissDialog();\n Toast.makeText(getApplicationContext(), \"Zoom out !!\", Toast.LENGTH_LONG).show();\n pdfView.fromBytes(bytes).load();\n }).addOnFailureListener(e ->\n Toast.makeText(getApplicationContext(), \"download unsuccessful\", Toast.LENGTH_LONG).show());\n }", "private void downloadThisDocumentAndStoreToLocalStorage(final StorageDocument storageDocument) {\n if (FirebaseGlobals.makeDocumentDirectory()) {\n\n String documentDirectory = \"/\" + storageDocument.getName();\n\n File file = new File(FirebaseGlobals.Directory.LOCAL_DOCUMENT_DIRECTORY + documentDirectory);\n\n try {\n\n if (file.createNewFile()) {\n\n CommonUtils.downloadThisStorageItem(storageDocument, file, new FirebaseSuccessListener() {\n @Override\n public void onSuccess(Object obj) {\n\n hideDownloadBox(storageDocument);\n openThisDocumentViaUri((Activity) context, storageDocument.getName());\n }\n\n @Override\n public void onFailure(Exception ex) {\n\n showDownloadBox(storageDocument);\n Toast.makeText(context, \"Error downloading \" + storageDocument.getName() + \" \" + ex.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n\n } else {\n\n throw new IOException();\n\n }\n\n } catch (IOException e) {\n\n Log.d(TAG, \"File not made: \" + e.toString());\n Log.d(TAG, \"Directory not made\");\n Toast.makeText(context, \"Error while making documents file. check storage permissions\", Toast.LENGTH_SHORT).show();\n showDownloadBox(storageDocument);\n\n }\n\n }\n //displaying error here\n else {\n\n Log.d(TAG, \"Directory not made\");\n Toast.makeText(context, \"Error while making documents directory. check storage permissions\", Toast.LENGTH_SHORT).show();\n showDownloadBox(storageDocument);\n }\n }", "private void downloadThisDocumentAndStoreToLocalStorage(final StorageDocument storageDocument) {\n if (FirebaseGlobals.makeDocumentDirectory()) {\n\n String documentDirectory = \"/\" + storageDocument.getName();\n\n File file = new File(FirebaseGlobals.Directory.LOCAL_DOCUMENT_DIRECTORY + documentDirectory);\n\n try {\n\n if (file.createNewFile()) {\n\n CommonUtils.downloadThisStorageItem(storageDocument, file, new FirebaseSuccessListener() {\n @Override\n public void onSuccess(Object obj) {\n\n hideDownloadBox(storageDocument);\n openThisDocumentViaUri((Activity) context, storageDocument.getName());\n }\n\n @Override\n public void onFailure(Exception ex) {\n\n showDownloadBox(storageDocument);\n Toast.makeText(context, \"Error downloading \" + storageDocument.getName() + \" \" + ex.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n\n } else {\n\n throw new IOException();\n\n }\n\n } catch (IOException e) {\n\n Log.d(TAG, \"File not made: \" + e.toString());\n Log.d(TAG, \"Directory not made\");\n Toast.makeText(context, \"Error while making documents file. check storage permissions\", Toast.LENGTH_SHORT).show();\n showDownloadBox(storageDocument);\n\n }\n\n }\n //displaying error here\n else {\n\n Log.d(TAG, \"Directory not made\");\n Toast.makeText(context, \"Error while making documents directory. check storage permissions\", Toast.LENGTH_SHORT).show();\n showDownloadBox(storageDocument);\n }\n }", "@Override\n protected String doInBackground(String... url) {\n try {\n data = downloadUrl(url[0]);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }", "@Override\n protected String doInBackground(String... url) {\n try {\n data = downloadUrl(url[0]);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }", "public ResultFile(String jobId) {\n file = new File(directory, jobId + \".vot\");\n if (file.exists()) {\n mimeType = \"application/x-votable+xml\";\n }\n else {\n file = new File(directory, jobId + \".csv\");\n if (file.exists()) {\n mimeType = \"text/csv\";\n }\n else {\n file = new File(directory, jobId + \".html\");\n if (file.exists()) {\n mimeType = \"text/html\";\n }\n else {\n throw new IllegalArgumentException(\"Job \" + jobId + \" has no results file\");\n }\n }\n }\n }", "@Override\n protected String doInBackground(String... url) {\n\n // For storing data from web service\n String data = \"\";\n\n try {\n // Fetching the data from web service\n data = downloadUrl(url[0]);\n Log.e(\"place json\", data);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }", "public File getFile() {\n return resultsFile;\n }", "@Override\n\t\t\t\t\tprotected void onPostExecute(String file_url) {\n\t\t\t\t\t\t// Dismiss the dialog after the Music file was downloaded\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\tdismissDialog(progress_bar_type);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Download complete, Image saved at: \"+Environment.getExternalStorageDirectory().getPath()+\"/Space Monitor/\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t// Play the music\n\t\t\t\t\t//\tplayMusic();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t}catch (Exception d) {\n\t\t\t\t\t //Log.d(\"Exception\", e.getMessage());\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "void mo54418a(DownloadTask downloadTask);", "@Override\n protected Integer doInBackground(String... params) {\n\n // Set current thread priority lower than main thread priority, so main thread Pause, Continue and Cancel action will not be blocked.\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY - 2);\n\n String downloadFileUrl = \"\";\n if(params!=null && params.length > 0)\n {\n downloadFileUrl = params[0];\n }\n\n currDownloadUrl = downloadFileUrl;\n File downloadLocalFile = createDownloadLocalFile(downloadFileUrl);\n\n int ret = DownloadUtil.downloadFileFromUrl(downloadFileUrl, downloadLocalFile);\n\n return ret;\n }", "public synchronized void writeResults(WorkDirectory workDir, BackupPolicy backupPolicy)\n throws IOException {\n if (isMutable()) {\n throw new IllegalStateException(\"This TestResult is still mutable - set the status!\");\n }\n\n // could attempt a reload() I suppose\n if (props == null) {\n props = emptyStringArray;\n }\n\n String wrp = getWorkRelativePath(desc).replace('/', File.separatorChar);\n resultsFile = workDir.getFile(wrp);\n\n File resultsDir = resultsFile.getParentFile();\n resultsDir.mkdirs(); // ensure directory created for .jtr file\n\n File tempFile = createTempFile(workDir, backupPolicy);\n try {\n writeResults(tempFile, backupPolicy);\n } finally {\n if (tempFile.exists()) {\n tempFile.delete();\n }\n }\n }", "@Override\n public void completed(Integer result, String attachment)\n {\n }", "public void downloadJobOutputFilesTo(Job job, String path)\n\t\t\tthrows IOException, ClassNotFoundException {\n\t\tCore.downloadJobFiles(job, getHttpMethodExecutor(), path, true);\n\t}", "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Uri downloadUrl = taskSnapshot.getDownloadUrl();\n if (downloadUrl != null) {\n mStringArrayList.add(downloadUrl.toString());\n }\n startUploading();\n }", "@Override\n public void sendResultToOutput(JobTask jobTask, JobTaskResult jobTaskResult) {\n\n }", "private void startAllDownloads() {\n\t\tif (!downloading && jobs != null && jobs.size() > 0) {\n\t\t\tfor (DownloadJob nextJob : jobs) {\n\t\t\t\tAppLogger.log(TAG, \"job \" + nextJob.getJobId() + \" working=\" + nextJob.isWorking());\n\t\t\t\tif (!nextJob.isWorking()) {\n\t\t\t\t\tstartDownloadJob(nextJob);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// for (DownloadJob job : jobs) {\n\t\t\t// AppLogger.log(TAG, \"job \" + job.generateJobId() + \" working=\" +\n\t\t\t// job.isWorking());\n\t\t\t// if (!job.isWorking()) {\n\t\t\t// startDownloadJob(job);\n\t\t\t// }\n\t\t\t// }\n\t\t}\n\t}", "@Override\n protected void onPostExecute(File result) {\n try {\n\n if(result!=null) {\n\n // we need to check the file size here\n if(result.length()<filesize){\n\n Log.d(\"DownloadData\",\"File size does not match\");\n Log.d(\"DownloadData\",\"Current size \"+String.valueOf(result.length()));\n Log.d(\"DownloadData\",\"Expected size \"+String.valueOf(filesize));\n String size = String.valueOf(filesize);\n new DownloadData().execute(url,size);\n return ;\n }else{\n\n filesdownloaded = filesdownloaded +1;\n Log.i(\"FileProgress\",\"Total files downloaded \"+String.valueOf(filesdownloaded));\n\n\n //Log.d(\"FileName\",result.getAbsolutePath());\n String unzipPath = Utils.getROOTDIR() + \"/data/\"+uriPath;\n //Log.d(\"Unzip \",unzipPath);\n //unzip(result.getAbsolutePath(), unzipPath);\n String csize = String.valueOf(filesize);\n UpdateRequest ur = new UpdateRequest();\n ur.setFilename(fileName.substring(fileName.lastIndexOf(\"/\")+1));\n ur.setFilesize(csize);\n ur.setUpdatedate(new SimpleDateFormat(\"yyyy-mm-dd\").format(new Date()));\n updateRequestDao.insert(ur);\n String attempts=\"0\";\n new UnZipTask().execute(result.getAbsolutePath(), unzipPath,url,String.valueOf(filesize),attempts);\n\n }\n\n\n }else{\n Log.i(\"FileProgress\",\"Failed to download file \"+url);\n //System.out.println(\"Failed to download file \"+url);\n Log.d(\"FailedDownload\",url);\n String size = String.valueOf(filesize);\n new DownloadData().execute(url,size);\n return ;\n }\n }\n catch(Exception ex) {\n ex.printStackTrace();\n Log.d(\"FailedDownload\",url);\n String size = String.valueOf(filesize);\n new DownloadData().execute(url,size);\n return ;\n }\n }" ]
[ "0.6836547", "0.638821", "0.6260466", "0.62435615", "0.6060234", "0.60545707", "0.60439634", "0.60293597", "0.6012008", "0.5997884", "0.59946954", "0.5990547", "0.59405255", "0.5824927", "0.5822485", "0.5821124", "0.5786213", "0.57141155", "0.56965303", "0.56697005", "0.5664089", "0.5663924", "0.5660722", "0.56454605", "0.56402266", "0.5610888", "0.5602137", "0.5600593", "0.5566292", "0.55646265", "0.5563443", "0.556059", "0.5559822", "0.5528918", "0.5527341", "0.55195624", "0.55137235", "0.55037206", "0.54873085", "0.54873043", "0.5487251", "0.54750633", "0.54696715", "0.5467578", "0.5466429", "0.5465025", "0.54635876", "0.545327", "0.54463786", "0.5435015", "0.54232424", "0.54170924", "0.5414908", "0.5407312", "0.5406344", "0.5401507", "0.5396913", "0.53781897", "0.5376685", "0.5375468", "0.53686625", "0.5367321", "0.53637123", "0.53636885", "0.5363417", "0.5360977", "0.5355817", "0.53432244", "0.53391993", "0.53385603", "0.5337973", "0.5334291", "0.5325073", "0.53197986", "0.53184146", "0.53129184", "0.53129184", "0.53129184", "0.53129184", "0.5312158", "0.53071725", "0.5300324", "0.5297046", "0.529485", "0.529485", "0.52944815", "0.52944815", "0.5290274", "0.5282657", "0.52677774", "0.52558434", "0.5253958", "0.5242266", "0.5238532", "0.5237313", "0.5235037", "0.5229828", "0.5226816", "0.52210957", "0.52204204" ]
0.6511268
1
size of the total disk space used by the useraccount
public Long getSize(UserAccount user) { Long sum = 0L; for (Job j : userJobList(user)) { sum += getSize(j); } return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long diskSizeBytes();", "long getTotalFreeSpaceInBytes();", "long getTotalFreeSpaceInBytes();", "Integer diskSizeGB();", "@ApiModelProperty(required = true, value = \"Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\\\"local\\\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\\\"not available\\\")\")\n\n public Long getSize() {\n return size;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getTotalFreeSpaceInBytes() {\n return totalFreeSpaceInBytes_;\n }", "public long getDiskUsage() {\n\t\treturn diskUsage;\n\t}", "public Integer getDiskSizeGB() {\n return this.diskSizeGB;\n }", "public long getTotalSize() {\n return totalSize;\n }", "public long getTotalSpace(){\n return totalSpace;\n }", "long storageSize();", "public int getTotalSize();", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "long getUsedSpace() throws IOException;", "int getTotalSize();", "public static long getTotalInternalStorageSize() {\n StatFs stat = new StatFs(getInternalStoragePath());\n return stat.getBlockSize() * stat.getBlockCount();\n }", "public long getTotalStorage() {\n return totalStorage;\n }", "public static long getAvailableDiskSpace() {\r\n\t\treturn availableDiskSpace;\r\n\t}", "public static long getAllSize(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) || file.getPath().equals(path.getPath()))\n \t\t\t{\n \t\t\t\tif(file.canRead())\n \t\t\t\t{\n\t\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tStatFs stat = new StatFs(path.getPath()); \n\t\t\tlong blockSize = stat.getBlockSize(); \n\t\t\tlong availableBlocks = stat.getBlockCount();\n\t\t\tsize = availableBlocks * blockSize; \n\t\t}\n\t\treturn size;\n\t}", "public Long getVolumeSizeInBytes() {\n return this.volumeSizeInBytes;\n }", "public int getTotalSize() {\n return totalSize_;\n }", "public static long getAllSize1(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tStatFs stat = new StatFs(path.getPath()); \n\t\tlong blockSize = stat.getBlockSize(); \n\t\tlong availableBlocks = stat.getBlockCount();\n\t\tsize = availableBlocks * blockSize; \n\t\treturn size;\n\t}", "@Deprecated\n long getOnDiskSizeInBytes();", "public static long getTotalExternalStorageSize() {\n StatFs stat = new StatFs(getExternalStoragePath());\n return stat.getBlockSize() * stat.getBlockCount();\n }", "@Override public long getUsedSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public static long getAllSize2(){\n\t\tFile path = Environment.getExternalStorageDirectory(); \n\t\t\n\t\tlong size = 0;\n\t\tif (path.getPath().startsWith(\"/mnt\"))\n\t\t{\n \tFile dir = new File(\"/mnt\");\n \tif(dir.isDirectory())\n \t{\n \t\tFile[] files = dir.listFiles();\n \t\tif(files!=null)\n \t\t{\n \t\tfor(File file : files)\n \t\t{\n \t\t\tif((file.getPath().contains(\"sdcard\") || file.getPath().contains(\"SdCard\")) && !file.getPath().equals(path.getPath()))\n \t\t\t{\n\t \t\t\tStatFs stat = new StatFs(file.getPath()); \n\t \t\t\tlong blockSize = stat.getBlockSize(); \n\t \t\t\tlong availableBlocks = stat.getBlockCount();\n\t \t\t\tsize += availableBlocks * blockSize; \n \t\t\t}\n \t\t}\n \t\t}\n \t}\n\t\t}\n\t\treturn size;\n\t}", "public long getFileSize();", "public long getFileSize();", "@Override\n public long ramBytesUsed() {\n ensureOpen();\n return sizeInBytes.get();\n }", "public int getTotalSize() {\n return totalSize_;\n }", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "long getFileSize();", "public final double terabytes()\n\t{\n\t\treturn gigabytes() / 1024.0;\n\t}", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "long getOccupiedSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "long sizeInBytes() throws IOException;", "public Long getVolumeUsedInBytes() {\n return this.volumeUsedInBytes;\n }", "public static long getRealSizeOnSdcard() {\n File path = new File(Environment.getExternalStorageDirectory().getAbsolutePath());\n StatFs stat = new StatFs(path.getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n return availableBlocks * blockSize;\n }", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public int getEEPROMUserAreaSize() throws FTD2XXException {\n IntByReference size = new IntByReference();\n ensureFTStatus(ftd2xx.FT_EE_UASize(ftHandle, size));\n return size.getValue();\n }", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "public int getLogDiskSpaceLimit() {\n return agentConfig.getLogDiskSpaceLimit();\n }", "@Override\n\tpublic long getUsedSpace()\n\t{\n\t\treturn 0;\n\t}", "long getSize() throws FileSystemException;", "public Long getUsedSpace() {\n return usedSpace;\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public void calculateDiskUsage() {\n\t\tdiskUsage = 0;\n\t\t// FIXME the speed of this can be improved by using a static map of content/ncc doc sizes \n\t\tfor (FilesetFile fsf : allFiles) {\n\t\t\tdiskUsage += fsf.getFile().length();\n\t\t}\t\t\n\t}", "public long getTotalRam();", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public int getSize() {\n\n\treturn getSectors().size() * getUnitSize(); // 254 byte sectors\n }", "public double getOutputSizeInBytes()\n {\n return totalSize;\n }", "public long getStorageCardSize() {\n long size = 0;\n String status = Environment.getExternalStorageState();\n\n if (status.equals(Environment.MEDIA_MOUNTED)) {\n try {\n File path = Environment.getExternalStorageDirectory();\n StatFs stat = new StatFs(path.getPath());\n long blockSize = stat.getBlockSize();\n long totalBlocks = stat.getBlockCount();\n\n size = totalBlocks * blockSize;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n }\n return size;\n }", "long getSize();", "public long getFileSize() {\r\n return fileSize;\r\n }", "public int getLogicalDiskSizeInGB() {\n return this.logicalDiskSizeInGB;\n }", "public int getLogicalDiskSizeInGB() {\n return this.logicalDiskSizeInGB;\n }", "public int getIdentifiedUserDataSize() {\n return super.getCdSector().getCdUserDataSize() - 20;\n }", "public double getHardDisk()\n\t{\n\t\treturn hardDiskSize;\n\t}", "public int getDiskUtil() {\n\t\treturn getSize();\n\t}", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "private long getTotal(String path) {\n StatFs statFs = new StatFs(path);\n\n if (Constants.BETA)\n Log.i(\"DeviceModel\", \"Free on \"+path+\"=\"+statFs.getBlockSize());\n return (isJellyBean)\n ? statFs.getBlockCountLong() * statFs.getBlockSizeLong()\n : (long)statFs.getBlockCount() * (long)statFs.getBlockSize();\n }", "public Integer getStorageSize() {\n\t return this.storageSize;\n\t}", "public double getOccupiedHdGB () { return getHdBaseResource().getOccupiedCapacity(); }", "public int getUnitSize() {\n\t\n\treturn 254; // A d64 block is 254 bytes (256 - pointer to the next sector).\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "private long getSize(String securedFolderPath) {\n\n logger.info(\"Current secured folder size in FolderMonitor\");\n\n long size = 0;\n\n File folder = new File(securedFolderPath);\n\n File[] listOfFiles = folder.listFiles();\n\n if (listOfFiles.length > 0) {\n\n for (File file : listOfFiles) {\n\n if (file.toString().contains(CommonConstants.BATCH)\n || file.toString().contains(CommonConstants.SH)) {\n\n file.delete();\n logger.info(\"File deleted :\" + file.getName());\n continue;\n }\n if (file.isFile()) {\n\n size += file.length();\n }\n }\n }\n return size;\n\n }", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public Long getMaximumPersistentDisksSizeGb() {\n return maximumPersistentDisksSizeGb;\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "@Override public long getAvailableSpace() {\n throw new UnsupportedOperationException(\"Filesystem size is not (yet) supported\");\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public long getSize() {\r\n return size;\r\n }", "long getMemorySize() {\n return MemoryBudget.DELTAINFO_OVERHEAD +\n MemoryBudget.byteArraySize(key.length);\n }", "public static long getUsableSpace(File path) {\n\t\t// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t// return path.getUsableSpace();\n\t\t// }\n\t\tfinal StatFs stats = new StatFs(path.getPath());\n\t\treturn (long) stats.getBlockSize() * (long) stats.getAvailableBlocks();\n\t}", "public static long getTotalInternalMemorySize() {\r\n File path = Environment.getDataDirectory();\r\n StatFs stat = new StatFs(path.getPath());\r\n long blockSize = stat.getBlockSize();\r\n long totalBlocks = stat.getBlockCount();\r\n return totalBlocks * blockSize;\r\n }", "public long getBytesUsed(){\r\n\t\treturn bytesUsed;\r\n\t}", "public long getFileSize() {\n return fileSize_;\n }", "public long getEntrySize() {\n return size;\n }", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "public static long diskUsage(File root) {\n\t\tlong total = root.length();\t\t\t\t\t\t\t//start with direct disk usage\n\t\tif(root.isDirectory()) {\t\t\t\t\t\t\t//and if this is a directory,\n\t\t\tfor(String childName : root.list()) {\t\t\t//then for each child\n\t\t\t\tFile child = new File(root, childName);\t\t//compose a full path to child\n\t\t\t\ttotal += diskUsage(child);\t\t\t\t\t//add child's usage to total\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(total + \"\\t\" + root); \t\t\t//descriptive output\n\t\treturn total;\t\t\t\t\t\t\t\t\t\t//return grand total\n\t}", "public long getSize();", "public static long getAvailableExternalStorageSize() {\n StatFs stat = new StatFs(getExternalStoragePath());\n return stat.getBlockSize() * stat.getAvailableBlocks();\n }", "public String getFileSize() {\n return fileSize;\n }", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public long getFreeSpace(){\n return freeSpace;\n }" ]
[ "0.7914949", "0.7761727", "0.7761727", "0.76436156", "0.7343711", "0.7062444", "0.7062444", "0.69899577", "0.69899577", "0.69744843", "0.6929671", "0.6895179", "0.68744916", "0.685677", "0.68077546", "0.6755924", "0.6672534", "0.6671447", "0.6661717", "0.6626078", "0.6618898", "0.6615375", "0.66082174", "0.66059005", "0.65883976", "0.6587581", "0.6551852", "0.65187335", "0.6513731", "0.6507753", "0.6507753", "0.6502735", "0.64963037", "0.64763397", "0.64084363", "0.63986456", "0.63948226", "0.63904876", "0.63864356", "0.6383007", "0.6355", "0.63397455", "0.6337038", "0.6317903", "0.63007563", "0.62894213", "0.6287693", "0.6283265", "0.6281506", "0.62765646", "0.62728465", "0.6269538", "0.626844", "0.6263532", "0.6261974", "0.6261262", "0.6250571", "0.6242969", "0.62246025", "0.6219732", "0.6218753", "0.62150514", "0.62150514", "0.621262", "0.62031186", "0.61996055", "0.61988735", "0.6198154", "0.61934525", "0.61851126", "0.6165329", "0.61610395", "0.61610395", "0.61610395", "0.61610395", "0.6159453", "0.61591077", "0.615438", "0.6153855", "0.61537373", "0.6153113", "0.6150424", "0.61486065", "0.61482763", "0.61388713", "0.6137432", "0.61371607", "0.6131403", "0.61196524", "0.6116956", "0.6113173", "0.61112326", "0.6108076", "0.6104231", "0.60975987", "0.6096717", "0.6095887", "0.60649997", "0.60649997", "0.6062776" ]
0.6640209
19
sends results of the job to the email set in the job
public void sendResults(Job job) { if (job.getResultsEmail() == null) { return; } Message message = new MimeMessage(mailSession); try { message.addRecipient(Message.RecipientType.TO, new InternetAddress(job.getResultsEmail())); message.setFrom(); // message.setSubject("vo-korel: Results of '" + job.getLabel() + "' job"); //multipart Multipart mp = new MimeMultipart(); // message body StringBuilder sb = new StringBuilder(); sb.append("Your job '").append(job.getLabel()).append("' "); if (job.getPhase() == Phase.COMPLETED) { sb.append("finished successfully."); } if (job.getPhase() == Phase.ERROR) { sb.append("finished with error."); } if (job.getPhase() == Phase.ABORTED) { sb.append("has been aborted,"); } sb.append("\n"); sb.append("Complete results are in the attachment."); MimeBodyPart text = new MimeBodyPart(); text.setText(sb.toString()); mp.addBodyPart(text); //attachments File resultsFile = new File(getFileDir(job), "results.zip"); if (resultsFile.exists()) { MimeBodyPart attachment = new MimeBodyPart(); try { attachment.attachFile(resultsFile); } catch (IOException ex) { logger.log(Level.SEVERE, null, ex); } attachment.setFileName("results" + job.getStringId() + ".zip"); mp.addBodyPart(attachment); } message.setContent(mp); message.setHeader("X-Mailer", "My Mailer"); Transport.send(message); logger.log(Level.INFO, "Result were sent to {0}", job.getResultsEmail()); } catch (Exception ex) { logger.log(Level.SEVERE, "failed to send email with job results", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendEmail(Job job, String email);", "private static void mailResults(String experimentID, String content) {\r\n }", "public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":8080/job/git-DataDriven-Framework/Extent_20reports//\";\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n //System.out.println(hostname);\r\n \r\n try {\r\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody);\r\n\t} catch (AddressException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (MessagingException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\t\r\n\t}", "public void execute(JobExecutionContext context) throws JobExecutionException\n\t{\n\t\t\tJobDataMap jdMap = context.getMergedJobDataMap();\n\n\n\t\t\t//Pulling params from our JobDataMap\n\t\t\tString recipentEmail = jdMap.getString(\"emailAddress\");//Email Were Sending to\n\t\t\tString subject = jdMap.getString(\"subject\");//Subject\n\t\t\tString messageText = jdMap.getString(\"message\");//Message to be Sent\n\t\t\tString host = jdMap.getString(\"host\");//Smtp Server pulled from web.xml\n\t\t\tString port = jdMap.getString(\"port\");//Port pulled from web.xml\n\t\t\tString adminUserName = jdMap.getString(\"adminUserName\");//Account info pulled from web.xml\n\t\t\tString adminPassword = jdMap.getString(\"adminPassword\");\n\n\n\t\t\t//Configuring smtp server\n\t\t\tProperties properties = new Properties();\n\t properties.put(\"mail.smtp.host\", host);\n\t properties.put(\"mail.smtp.port\", port);\n\t properties.put(\"mail.smtp.auth\", \"true\");\n\t properties.put(\"mail.smtp.starttls.enable\", \"true\");\n\n\t //Creates a new session with an authenticator\n\t Session emailSession = Session.getInstance(properties, new javax.mail.Authenticator()\n\t {\n\t \t protected PasswordAuthentication getPasswordAuthentication()\n\t \t {\n\n\t \t\t return new PasswordAuthentication (adminUserName,adminPassword);\n\n\t \t }\n\t });\n\n\n\t //Compose Message\n\t try {\n\n\n\t \tMimeMessage msg = new MimeMessage(emailSession);\n\t \tmsg.setFrom(new InternetAddress(adminUserName));\n\t \tmsg.addRecipient(Message.RecipientType.TO, new InternetAddress(recipentEmail));\n\t \tmsg.setSubject(subject);\n\t \tmsg.setSentDate(new Date());\n\t \tmsg.setText(messageText);\n\t \tTransport.send(msg);\n\n\n\t }catch(MessagingException e){\n\t \te.printStackTrace();\n\n\t }\n\n\n\t }", "@Override\r\n\tpublic void sendEmails() {\n\t\tSystem.out.println(\"All e-mails sent from e-mail service!\");\r\n\t}", "public void sendMailReport() {\n mailService.sendMail(\"[email protected]\", \"ToDo report\",\n String.format(\"There are '%s' todo entries!\", todoListService.getAllEntries().size()));\n }", "@Override\n\tpublic void sendJobResult(int[] result) throws RemoteException {\n\t\tServer.results.add(result);\n Server.listResults();\n\t}", "@Override\n public void sendResultToOutput(JobTask jobTask, JobTaskResult jobTaskResult) {\n\n }", "private void processNotificationJob(NotificationJob job) {\n\t\ttry {\n\t\t\tList<InternetAddress> recipients;\n\t\t\tList<String> userList;\n\t\t\t\n\t\t\tswitch (job.getAction()) {\n\t\t\t\tcase NS_CREATED:\n\t\t\t\tcase NS_DELETED:\n\t\t\t\t\tuserList = getNotificationList( job.getAffectedNamespace(), job.getAction() );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tuserList = getNotificationList( job.getItem(), job.getAction() );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\trecipients = getEmailAddresses( userList );\n\t\t\tlog.info(\"Processing notification job: \" + job.getAction() +\n\t\t\t\t\t\" (\" + recipients.size() + \" recipients)\");\n\t\t\t\n\t\t\tif (!recipients.isEmpty()) {\n//\t\t\t\tSession mailSession = Session.getInstance( smtpConfig.getSmtpProps() );\n\t\t\t\tfinal String smtpUser = smtpConfig.getSmtpUser();\n\t\t\t\tfinal String smtpPassword = smtpConfig.getSmtpPassword();\n\t\t\t\tSession mailSession = smtpConfig.isAuthEnable() ?\n\t\t\t\t\t\tSession.getInstance( smtpConfig.getSmtpProps(),\n\t\t\t\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\t\t\t\treturn new PasswordAuthentication( smtpUser, smtpPassword );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t }) :\n\t\t\t\t\t\tSession.getInstance( smtpConfig.getSmtpProps() );\n\t\t\t\t\t\t\t\t\t \n\t\t\t\tInternetAddress fromAddress = new InternetAddress(\n\t\t\t\t\t\tsmtpConfig.getSenderAddress(), smtpConfig.getSenderName() );\n\t\t\t\tMessage message = new MimeMessage( mailSession );\n\t\t\t\tboolean successInd = false;\n\t\t\t\tboolean abortInd = false;\n\t\t\t\tint retryCount = 1;\n\t\t\t\t\n\t\t\t\tfor (InternetAddress recipient : recipients) {\n\t\t\t\t\tmessage.addRecipient( RecipientType.TO, recipient );\n\t\t\t\t}\n\t\t\t\tfor (String ccAddress : smtpConfig.getCcRecipients()) {\n\t\t\t\t\tmessage.addRecipient( RecipientType.CC, new InternetAddress( ccAddress ) );\n\t\t\t\t}\n\t\t\t\tif (smtpConfig.getReplyToAddress() != null) {\n\t\t\t\t\tmessage.setReplyTo( new Address[] {\n\t\t\t\t\t\t\tnew InternetAddress( smtpConfig.getReplyToAddress(), smtpConfig.getReplyToName() ) } );\n\t\t\t\t}\n\t\t\t\tmessage.setFrom( fromAddress );\n\t\t\t\tmessage.setSubject( buildMessageSubject( job ) );\n\t\t\t\tmessage.setContent( buildMessageBody( job ), \"text/html\" );\n\t\t\t\t\n\t\t\t\twhile (!successInd && !abortInd && (retryCount <= MAX_RETRIES)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!smtpConfig.isAuthEnable() && (smtpUser != null) && (smtpPassword != null)) {\n\t\t\t\t\t\t\tTransport.send( message, smtpUser, smtpPassword );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tTransport.send( message );\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsuccessInd = true;\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SendFailedException | AuthenticationFailedException e) {\n\t\t\t\t\t\tString errorMessage = e.getMessage();\n\t\t\t\t\t\tif (errorMessage == null) errorMessage = e.getClass().getSimpleName();\n\t\t\t\t\t\tlog.error( \"Fatal error sending email notification - \" + errorMessage );\n\t\t\t\t\t\tabortInd = true;\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tString errorMessage = e.getMessage();\n\t\t\t\t\t\tif (errorMessage == null) errorMessage = e.getClass().getSimpleName();\n\t\t\t\t\t\tlog.error( \"Error sending email notification (attempt \" + retryCount + \") - \" + errorMessage );\n\t\t\t\t\t\tretryCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Throwable t) {\n\t\t\tlog.error(\"Error processing notification job.\", t);\n\t\t}\n\t}", "@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}", "public void processMailJob(TypedProperties props, String jobName) throws MegatronException {\n MailExportManager mailExportManager = new MailExportManager(props);\n mailExportManager.execute(jobName);\n }", "public void sendEmail(String username, String password) throws Throwable {\r\n\t\tString emailSubject = \"Test Report on \" + new Date();\r\n\t\tString emailMsg = \"This is an automatically generated email for test run\";\r\n\t\tEmailAttachment attachment = new EmailAttachment();\r\n\t\tattachment.setPath(\"test-output/emailable-report.html\");\r\n\t\tattachment.setDisposition(EmailAttachment.ATTACHMENT);\r\n\t\tattachment.setDescription(\"Test Report\");\r\n\t\tMultiPartEmail email = new MultiPartEmail();\r\n\t\temail.setHostName(\"imap.gmail.com\");\r\n\t\temail.setSmtpPort(465);\r\n\t\temail.setAuthenticator(new DefaultAuthenticator(username, password));\r\n\t\temail.setSSLCheckServerIdentity(true);\r\n\t\temail.setSSLOnConnect(true);\r\n\t\tSystem.out.println(\"Connected to gmail..\");\r\n\t\tSystem.out.println(\"Sending mail to: \" + toEmails);\r\n\t\tSystem.out.println(\"Subject: \" + emailSubject + \"\\nEmail Body: \" + emailMsg);\r\n\t\temail.setFrom(username);\r\n\t\temail.setSubject(emailSubject);\r\n\t\temail.setMsg(emailMsg);\r\n\t\tString[] emails = toEmails.split(\",\");\r\n\t\temail.addTo(emails);\r\n\t\temail.attach(attachment);\r\n\t\temail.send();\r\n\t\tSystem.out.println(\"Email Sent..\");\r\n\t}", "@Override\n @Transactional\n protected void executeInternal(JobExecutionContext context) throws JobExecutionException {\n if (batchProcessEnabled()) {\n StringBuilder builder = new StringBuilder();\n // The cron job runs as this user\n UserSession userSession = new UserSession(user);\n GlobalVariables.setUserSession(userSession);\n try {\n List<ReportTrackingNotificationDetails> results = reportTrackingNotificationService.runReportTrackingNotifications();\n buildMessage(builder, results);\n } catch (Exception e) {\n LOG.error(\"Error running report tracking notification service.\", e);\n builder.append(\"Message: Error running report tracking notification service. See log for more details. \").append(e.getMessage());\n }\n\n String message = builder.toString();\n\n LOG.info(message);\n\n String recipient = getRecipient();\n // Send notification only if recipient has been set in the param\n if (StringUtils.isNotEmpty(recipient)) {\n kcNotificationService.sendNotification(CONTEXT_NAME, SUBJECT, message, Collections.singletonList(recipient));\n }\n }\n }", "@RequestMapping(value=\"/batchJobEmail\", method = RequestMethod.POST)\n public String batchJobSendEmail(@RequestBody EmailPayLoad emailPayLoad) {\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, emailPayLoad, RecapConstants.EMAIL_FOR, RecapConstants.BATCHJOB);\n return RecapConstants.SUCCESS;\n }", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "public void execute(JobExecutionContext context) {\n sendSevenDaysExpiringEmails();\n sendOneDayExpiringEmails();\n sendOneDayExpiredEmails();\n }", "@Override\n public void sendEmail() {\n return;\n }", "public void execute(DelegateExecution execution) {\n System.out.println(\"Sending email now\");\n }", "void send(Email email);", "public void run() {\n\t\tlog.info(\"Weekly Scheduled Asset Report Job starting >> isMasterInstance:{} and isAuthorInstance:{}.\", isMasterInstance, isAuthorInstance);\r\n\t\tSession session = null;\r\n\t\t\r\n if (isMasterInstance && isAuthorInstance) {\r\n \r\n \tif(sendWeeklyReport) {\r\n\t\t try {\r\n\t\t\t\t\t session = getSession();\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t //TODO- \r\n\t\t\t\t\t String lowerBoundDate = \"2014-06-19\";\r\n\t\t\t\t\t String upperBoundDate = \"2014-06-26\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t String dateRange = lowerBoundDate + \" - \" + upperBoundDate;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t String templatePath = MISReportConstant.REPORT_EMAIL_TEMPLATE;\r\n\t\t\t\t\t Map<String, String> emailParams = MISReportUtil.buildEmailParams(reportType, reportFrequency, dateRange);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t DataSource reportDatasource = generateReport.generateReport(lowerBoundDate, upperBoundDate, reportType, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Get the UserGroup name for the reporType\t\t\r\n\t\t\t\t\t String userGroup = userManagement.getUserGroup(reportType);\r\n\t\t\t\t\t\r\n\t\t\t\t\t String[] authors = userManagement.getAllUsersOfGroup(userGroup, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t for(String authorID: authors) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailParams.put(MISReportConstant.FIRST_NAME, userManagement.getUserName(authorID, session));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailService.sendEmail(templatePath, emailParams, session, reportDatasource, userManagement.getEmailAddress(authorID, session));\r\n\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\t log.error(\"[Exception]\",e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(session.isLive())\r\n\t\t\t\t\t\tsession.logout();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t log.info(\"Weekly Asset Report Job finished sending {} reports\", reportType);\r\n \t}\r\n \telse {\r\n \t\tlog.info(\"Weekly Asset Report Job not executed>> Enable it from the AEM Felix console to execute\");\r\n \t}\r\n }\r\n \r\n\t}", "public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }", "void sendScheduledNotifications(JobProgress progress);", "String submitJob(JPPFJob job);", "SendEmail() {\t\n\t}", "Collection<String> submitJob(Job job) throws JobExecutionException;", "@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }", "protected void processJobSubmissionResponse(JobSubmissionResponseTO result) {\n\t\tList<Integer> jobID = result.getJobIDs();\n\t\tUserModel userModel = OurGridPortal.getUserModel();\n\t\tfor (Integer integer : jobID) {\n\t\t\tuserModel.addJobId(getJobViewId(), integer);\n\t\t}\n\t\t\n\t}", "private void sendEmail(String result){\n \t\n \tIntent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n \temailIntent.setType(\"plain/text\");\n \t\n \t//emailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n \t/* Fill it with Data */\n \temailIntent.setType(\"plain/text\");\n \t//emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{\"[email protected]\"});\n \temailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Here's the code from FlipSHA\");\n \temailIntent.putExtra(android.content.Intent.EXTRA_TEXT, \"After the coin is flipped and\" +\n \t\t\t\" you don't believe in your friend, check this hash \"+ result);\n\n \t/* Send it off to the Activity-Chooser */\n \tstartActivity(emailIntent); \n }", "public void sendEmailForMatchingReports(Exchange exchange) {\n logger.info(\"matching algorithm reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForMatching(exchange), RecapConstants.EMAIL_FOR, RecapConstants.MATCHING_REPORTS);\n }", "@Override\n\tpublic void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\t new SchoolMsgService().writeIntoSchoolMsg_ReceivedStu();\n//\t\t System.out.println(\"just test: \" + new Date());\n\t}", "public void emailResult(View view) {\n // Getting username only\n Intent myIntent = getIntent();\n String nameOfUser = myIntent.getStringExtra(\"EditTextValue\");\n\n String result = \"Name: \" + nameOfUser;\n result += \"\\nMy score: \" + score;\n\n // Create a new intent to send information to any mailing app\n Intent myResult = new Intent(Intent.ACTION_SENDTO);\n myResult.setData(Uri.parse(\"mailto:\"));\n myResult.putExtra(Intent.EXTRA_SUBJECT, \"Quiz result for \" + nameOfUser);\n myResult.putExtra(Intent.EXTRA_TEXT, result);\n if (myResult.resolveActivity(getPackageManager()) != null) {\n startActivity(myResult);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void sendOutFailedJobAlert(List<BatchJobInstance> jobs) {\r\n\t\tif (StringUtils.isNotEmpty(alertRecipients)) {\r\n\t\t\tString[] sendToArray = alertRecipients.split(\",\");\r\n\t\t\tif (sendToArray.length > 0) {\r\n\t\t\t\tif (StringUtils.isNotEmpty(alertTemplateId)) {\r\n\t\t\t\t\tList<Object> sendTo = new ArrayList<Object>();\r\n\t\t\t\t\tfor (int i=0; i<sendToArray.length; i++) {\r\n\t\t\t\t\t\tsendTo.add(sendToArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tMap<String,Object> noticeData = new HashMap<String,Object>();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tnoticeData = (Map<String,Object>) notifier.getStandardNoticeData(null, null);\r\n\t\t\t\t\t} catch (ClassCastException e) {\r\n\t\t\t\t\t\tlog.warn(\"Exception encountered when attempting to obtain standard notice data\", e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tnoticeData.put(\"jobs\", jobs);\r\n\t\t\t\t\tnotifier.sendNotification(sendTo, alertTemplateId, noticeData);\r\n\t\t\t\t\tnoticesSent = sendTo.size();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlog.error(\"Unable to send out alerts: no alert template configured\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tlog.error(\"Unable to send out alerts: no alert recipients configured\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tlog.error(\"Unable to send out alerts: no alert recipients configured\");\r\n\t\t}\r\n\t}", "public void execute() throws ProcbatchDisparadorEmailException {\n\t\tdisparadorEmailExecutor.execute(this);\n\t}", "public static void main(String[] args) throws IOException, ParseException, MessagingException, ClassNotFoundException {\n Gmail service = getGmailService();\n \n // Fetch all COL Trading Confirmation Messages\n String user = \"me\";\n String pageToken = \"\";\n List<Message> messages = new ArrayList<>();\n do {\n \tif (pageToken == null || pageToken.isEmpty()) {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \n \t} else {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).setPageToken(pageToken).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \t}\n } while (pageToken != null && !pageToken.isEmpty());\n \n if (messages.size() == 0) {\n System.out.println(\"No COL Trading Confirmation email found\");\n } else {\n \t\n \t// Read last processed\n \tDate lastProcessed = null;\n \tif (LAST_PROCESSED.exists()) {\n \ttry (ObjectInputStream in = new ObjectInputStream(new FileInputStream(LAST_PROCESSED))) {\n lastProcessed = (Date) in.readObject();\n \t}\n \t}\n \t\n \tDate latest = null;\n \t\n for (Message message : messages) {\n \t// Fetch raw email\n message = service.users().messages().get(\"me\", message.getId()).setFormat(\"raw\").execute();\n \n byte[] emailBytes = Base64.decodeBase64(message.getRaw());\n\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session, new ByteArrayInputStream(emailBytes));\n \n \n // Write only if email is COL Trading Confirmation\n if (email.getSubject().startsWith(\"COL Trading Confirmation\")) {\n\n \t// Compose file name\n \tSimpleDateFormat readDf = new SimpleDateFormat(\"MM/dd/yyyy\");\n \treadDf.setLenient(false);\n Date tradeDate = readDf.parse(email.getSubject().substring(email.getSubject().length()-10));\n \n // Skip if current message was previously processed\n if (lastProcessed != null && !tradeDate.after(lastProcessed)) {\n \tbreak;\n }\n \n \tSimpleDateFormat writeDf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \tString fileName = writeDf.format(tradeDate) + \" COL Trading Confirmation\";\n \n \tif (!TRADING_CONFIRMATION.exists()) {\n \t\tTRADING_CONFIRMATION.mkdir();\n \t}\n \t\n \t// Write to file\n \ttry (FileWriter fw = new FileWriter(TRADING_CONFIRMATION.getAbsolutePath()+\"/\"+fileName+\".txt\")) {\n \tfw.write(new String(emailBytes));\n\n \tSystem.out.printf(\"Added %s\\n\", fileName + \".txt\");\n\n \tif (latest == null || latest.before(tradeDate)) {\n \tlatest = tradeDate;\n \t}\n }\n \t\n }\n }\n \n // Store last processed\n if (latest != null) {\n try (ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(LAST_PROCESSED))) {\n out.writeObject(latest);\n }\n }\n System.out.printf(\"Done processing\");\n }\n }", "public void execute(int threadcount,int pagesize,String hostname) {\n\t\tlogger.info(\"start send subscript email...\");\n\t\tList<Map> subscribers=subscribeDao.getValideSubscribe();\n\t\tlogger.info(\"subscribers count:\"+subscribers.size());\n\t\tif(subscribers!=null&&subscribers.size()>0){\n\t\t\tExecutorService executor=Executors.newFixedThreadPool(threadcount);\n\t\t\tfor(Map subscriber:subscribers){\n\t\t\t\texecutor.execute(new UserSubscribe(mailSender,hostname,subscriber,pagesize,mailsubject));\n\t\t\t}\n\t\t\texecutor.shutdown();\n\t\t\t\n\t\t\ttry {\n\t\t\t\texecutor.awaitTermination(1000, TimeUnit.DAYS);\n\t\t\t\tlogger.info(\"Email send over!\");\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "String submitJob(JPPFJob job, JobStatusListener listener);", "private void sendEmail() {\n\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n Log.i(TAG, \"sendEmail: \"+currentEmail);\n\n Log.i(TAG, \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n\n\n String email = currentEmail.trim();\n String subject = \"Garbage Report Handeled\";\n\n String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" +\" \"+textViewDescription.getText().toString();\n\n// String message = textViewStreet.getText().toString() + \" \" + \"request has been handeled\" + \" \" +time+\" \"+textViewDescription.getText().toString();\n //Creating SendMail object\n SendMail sm = new SendMail(this, email, subject, message);\n\n //Executing sendmail to send email\n sm.execute();\n }", "void sendEmail(Task task, String taskTypeName, String plantName);", "public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }", "protected void sendEmails() {\n\t\tboolean sent;\n\t\tVector<Email> unsent = new Vector<Email>();\n\n\t\twhile (messages.size() > 0) {\n\t\t\tEmail email = messages.remove(0);\n\t\t\tsent = sendEmail(email);\n\n\t\t\t// If the mail can not be sent, trace the email\n\t\t\tif (!sent) {\n\t\t\t\temail.increaseRetryCount();\n\t\t\t\t// Only if maximum retries has not exceed\n\t\t\t\tif (email.getRetryCount() <= maxRetries) {\n\t\t\t\t\tunsent.add(email);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// At the end of the loop, store all emails which were not able to be sent, for \n\t\t// later sending.\n\t\tmessages.addAll(unsent);\n\t}", "@Scheduled(cron = \"*/10 * * * * *\")\n\tpublic void startJob() {\n\n\t\tBooleanBuilder booleanIssuer = new BooleanBuilder();\n\t\tbooleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));\n\n\t\tQIssuer qIssuer = QIssuer.issuer;\n\t\tJPAQuery<?> query = new JPAQuery<Void>(entityManager);\n\t\tList<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();\n\n\t\tfor (Issuer issuer : listIssuer) {\n\t\t\tSystem.out.println(issuer.toString());\n\t\t}\n\n\t\tFileWriter fileWirter = null;\n\t\tif (!(CollectionUtils.isEmpty(listIssuer))) {\n\t\t\ttry {\n\t\t\t\tfileWirter = new FileWriter(\"test.csv\");\n\t\t\t\tfileWirter.append(FILE_HEADER.toString());\n\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\tfor (Issuer issuer : listIssuer) {\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getId()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getIssuerCode());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getName());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getStatus()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getLastUpdate()));\n\t\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"writer successfully !\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tslackService.send(\" \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tMimeMessage msg=javaMailSender.createMimeMessage();\n\t\t\t\tMimeMessageHelper helper=null;\n\t\t\t\ttry {\n\t\t\t\t\thelper = new MimeMessageHelper(msg,true,\"utf-8\");\n\t\t\t\t} catch (MessagingException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\thelper.setTo(to);\n\t\t\t\t\thelper.setSubject(subject);\n\t\t\t\t\thelper.setText(text,true);\n\t\t\t\t\t\n\t\t\t\t\thelper.setFrom(getFromAddress());\n\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tjavaMailSender.send(msg);\n\t\t\t\tSystem.out.println(\"send ---------\");\n\t\t\t}", "@Override\n\tvoid email() {\n\t\tSystem.out.println(\"[email protected]\");\n\t\t\n\t}", "private void sendResultQueue() {\n\t\tfor (PluginResult pluginResult : resultQueue) {\n\t\t\tmainCallback.sendPluginResult(pluginResult);\n\t\t}\n\t\tresultQueue.clear();\n\t}", "public void sendEmail(String receiver, Integer indexID){\r\n\t \r\n\t Properties props = new Properties();\r\n\t props.put(\"mail.smtp.host\", EMAIL_SERVER);\r\n\t props.put(\"mail.smtp.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.starttls.enable\", \"true\");\r\n\t props.put(\"mail.smtp.auth\", \"true\");\r\n\t props.put(\"mail.smtp.socketFactory.port\", SERVER_PORT);\r\n\t props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\r\n\t \r\n\t Session sess = Session.getInstance(props,\r\n\t\t\t new javax.mail.Authenticator() {\r\n\t\t \t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t \t\t\treturn new PasswordAuthentication(EMAIL_SENDER, PW_SENDER);\r\n\t\t \t\t}\r\n\t \t});\r\n\t \r\n\t try{ \r\n\t Message msg = new MimeMessage(sess);\r\n\t msg.setFrom(new InternetAddress(EMAIL_SENDER));\r\n\t msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(receiver));\r\n\t msg.setSubject(\"Notification regarding waitlist\");\r\n\t \r\n\t Transport.send(msg);\r\n\t System.out.println(\"Email has been send successfully!\"); \r\n\t }\r\n\t \r\n\t catch (MessagingException e){\r\n\t\t throw new RuntimeException(e);\r\n\t }\r\n\t \r\n\t \r\n\t }", "public Historique SendMail( Historique h,String resultat ,String date,String heure) throws Exception {\n\r\n\r\n Logger log = LoggerFactory.getLogger(MailController.class);\r\n\r\n \r\n\r\n \r\n log.info(\"Spring Mail - Sending Simple Email with JavaMailSender Example\");\r\n\r\n Mail mail = new Mail();\r\n mail.setFrom(\"[email protected]\");\r\n \r\n //mail.setTo(h.get().getEmails());\r\n String [] res =h.getEmails().split(\"\\\\s\");\r\n for(int i=0; i<res.length;i++)\r\n \r\n {\r\n \tSystem.out.println(res[i]);\r\n mail.setTo(res[i]);\r\n \r\n if(resultat.equals(\"echec\"))\r\n { \t mail.setSubject(\" échec d'éxécution du test\");\r\n mail.setContent(\"Echec de test \"+h.getNom()+\" éffectué à \"+date+\"à l'heure \"+heure);}\r\n else\r\n { \t\r\n mail.setSubject(\"Retard d'éxécution du test\");\r\n mail.setContent(\"Retard d'éxecution :temps de réponse réél est \"+h.getTemps_rep_reel()+\" et le temps de réponse attendu = est:\"+h.getResultat_attendu());}\r\n emailService.sendSimpleMessage(mail);\r\n }\r\n \r\n\r\n \r\n\t\treturn null; \r\n\r\n }", "protected void sendEmail() {\n\t\t//get all the assets from both accounts\n\t\tMap<String, MediaBinDeltaVO> srcAssets = makeTitleMap(srcDivision.getAllAssets().values(), true);\n\t\tMap<String, MediaBinDeltaVO> destAssets = makeTitleMap(destDivision.getAllAssets().values(), true);\n\t\tSet<String> iter = new HashSet<>(destAssets.keySet()); //copy the keyset - make one that is not backed by the Map.\n\t\t//prune the above lists by comparing the two. We only want records that don't exist on both sides.\n\t\tfor (String destTitle: iter) {\n\t\t\tif (srcAssets.containsKey(destTitle)) {\n\t\t\t\tsrcAssets.remove(destTitle);\n\t\t\t\tdestAssets.remove(destTitle);\n\t\t\t\tlog.debug(\"removed \" + destTitle);\n\t\t\t}\n\t\t}\n\t\tMap<String, GenericVO> data = new HashMap<>();\n\t\tdata.put(\"Account Replicator\", new GenericVO(new ArrayList<>(srcAssets.values()), new ArrayList<>(destAssets.values())));\n\t\tReconcileExcelReport rpt = new ReconcileExcelReport(data);\n\t\tEmailMessageVO eml = new EmailMessageVO();\n\t\ttry {\n\t\t\teml.setFrom(\"[email protected]\");\n\t\t\teml.addRecipients(props.getProperty(\"replicatorEmailRcpt\"));\n\t\t\teml.setSubject(props.getProperty(\"replicatorEmailSubj\"));\n\t\t\tbyte[] rptBytes = rpt.generateReport();\n\t\t\tif (rptBytes.length > 0)\n\t\t\t\teml.addAttachment(rpt.getFileName(), rptBytes);\n\n\t\t\teml.setHtmlBody(rpt.getEmailSummary() + \"\\n\\n\\\"Mediabin\\\" represents the source account, \\\"Showpad\\\" represents the destination account\");\n\t\t\tsuper.sendEmail(eml);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"could not send report email\", e);\n\t\t}\n\t}", "public void sendDiscrepancyEmail() throws Exception;", "@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id [email protected]\");\n\t\t\n\t}", "public void run() {\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tPostMethod post = new PostMethod(Config.get(\"reportpage\"));\r\n//\t\t\t\t\tpost.addParameter(\"user\", Main.USER);\r\n//\t\t\t\t\tpost.addParameter(\"email\", email);\r\n//\t\t\t\t\tpost.addParameter(\"notes\", notes);\r\n//\t\t\t\t\tpost.addParameter(\"info\", info);\r\n\t\t\t\t String product = Config.get(\"product\", \"JMARS\");\r\n\t\t\t\t product = product.toUpperCase();\r\n\t\t\t\t \r\n\t\t\t\t\tJmarsHttpRequest request = new JmarsHttpRequest(Config.get(\"reportpage\"), HttpRequestType.POST);\r\n\t\t\t\t\trequest.addRequestParameter(\"user\", Main.USER);\r\n\t\t\t\t\trequest.addRequestParameter(\"email\", email);\r\n\t\t\t\t\trequest.addRequestParameter(\"notes\", notes);\r\n\t\t\t\t\trequest.addRequestParameter(\"info\", info);\r\n\t\t\t\t\trequest.addRequestParameter(\"product\",product);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n//\t\t\t\t\tHttpClient http = new HttpClient();\r\n//\t\t\t\t\thttp.getHttpConnectionManager().getParams().setConnectionTimeout(timeout);\r\n\t request.setConnectionTimeout(timeout);\r\n\t request.setLaxRedirect();\r\n\t boolean successful = request.send();\r\n//\t\t\t\t\tint code = Util.postWithRedirect(http, post, 3);\r\n int code = request.getStatus();\r\n\t if (code != HttpStatus.SC_OK) {\r\n\t\t\t\t\t\terror = \"Server returned unexpected code \" + code;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString response = new BufferedReader(\r\n\t\t\t\t\t\t\tnew InputStreamReader(\r\n\t\t\t\t\t\t\t\trequest.getResponseAsStream())).readLine();\r\n\t\t\t\t\t\tif (response.equals(\"OKAY\")) {\r\n\t\t\t\t\t\t\t// mail sent properly\r\n\t\t\t\t\t\t} else if (response.equals(\"FAILURE\")) {\r\n\t\t\t\t\t\t\terror = \"Server was unable to deliver the message: \" + response;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t} catch (HttpException e) {\r\n//\t\t\t\t\terror = \"Error communicating with server\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\terror = \"Unable to establish a connection, are you connected?\";\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\terror = \"Unexpected exception occurred: \" + e.getMessage();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// get back on the AWT thread to handle the result\r\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttimer.stop();\r\n\t\t\t\t\t\tdlg.dispose();\r\n\t\t\t\t\t\tif (error != null) {\r\n\t\t\t\t\t\t\t// failure sending report, suggest e-mail\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tMain.mainFrame,\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message: \" + error + \"\\n\\nEmail \" + Config.get(\"email\"),\r\n\t\t\t\t\t\t\t\t\"Unable to deliver message\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tsendingThread = null;\r\n\t\t\t}", "public void sendWaitingDatas()\n\t{\n\t\tProcessExecuterModule processExecuterModule = new ProcessExecuterModule();\n\t\t\n\t\tString sendResultByEmail = (settings.getBoolean(\"sendResultByEmail\", false)) ? \"0\" : \"1\";\n\t\t\n\t\tint numberOfWaitingDatas = settings.getInt(\"numberOfWaitingDatas\", 0);\n\t\t\n\t\twhile (numberOfWaitingDatas > 0)\n\t\t{\n\t\t\tprocessExecuterModule.runSendTestData(MainActivity.this,settings.getString(\"fileTitle\"+numberOfWaitingDatas, \"\"),\n\t\t\t\t\tsettings.getString(\"testData\"+numberOfWaitingDatas, \"\"),sendResultByEmail,\n\t\t\t\t\tsettings.getString(\"fileTitle2\"+numberOfWaitingDatas, \"\"), settings.getString(\"xmlResults\"+numberOfWaitingDatas, \"\"));\n\t\t\t\n\t\t\tnumberOfWaitingDatas--; \n\t\t}\n\t\t\n\t\teditor.putInt(\"numberOfWaitingDatas\", 0);\n\t\teditor.putBoolean(\"dataToSend\", false);\n\t\t\n\t\teditor.commit(); \n\t}", "private void sendCompleteEmail(String fileLocation, String prettyXML) throws AddressException, MessagingException, TransformerConfigurationException, TransformerException, URISyntaxException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n File xslFile = null;\n try {\n URL xsltFileLocation = cl.getResource(\"wps-result.xsl\");\n xslFile = new File(xsltFileLocation.toURI());\n } catch (URISyntaxException ex) {\n // Could not load the XSL. We will default to the prettyXML\n log.warn(ex.getMessage());\n }\n \n String processInfo;\n if (xslFile != null && xslFile.exists()) {\n // Do the transformation\n TransformerFactory tFact = TransformerFactory.newInstance();\n Transformer trans = tFact.newTransformer(new StreamSource(xslFile));\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n trans.transform(\n new StreamSource(new StringReader(prettyXML)),\n new StreamResult(bos)\n );\n processInfo = bos.toString();\n } else {\n processInfo = prettyXML;\n }\n \n String from = AppConstant.FROM_EMAIL.getValue();\n String subject = \"Processing Complete\";\n String content = \"The processing has completed on your request.\"\n + \" You can retrieve your file at \" + fileLocation\n + \"\\n\\n\\nProcess Information Follows:\\n\"\n + processInfo;\n if (callbackBaseURL != null) {\n try {\n content = content.concat(\"\\n\\nAdd result to ScienceBase: \" + callbackBaseURL + URLEncoder.encode(wpsCheckPoint, CheckProcessCompletion.URLENCODE_CHARSET));\n } catch (UnsupportedEncodingException e) {\n log.error(\"Unable to encode Callback URL arguments\", e);\n }\n }\n List<String> bcc = new ArrayList<String>();\n String bccAddr = AppConstant.TRACK_EMAIL.getValue();\n if (!\"\".equals(bccAddr)) {\n bcc.add(bccAddr);\n }\n\n EmailMessage message = new EmailMessage(from, addr, null, bcc, subject, content);\n EmailHandler.sendMessage(message);\n\t}", "@Override\n public void send(Email email) {\n email = EmailBuilder.copying(email)\n .clearRecipients()\n .to(sinkName, sinkAddress)\n .buildEmail();\n mailService.send(email);\n }", "void send(String emailName, Map model);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLOGGER.info(\"***************************************邮件发送服务启动******************************************************\");\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n//\t\t\t\t\t\tlog.debug(\"************************************ Email task check******************************************************\");\n\t\t\t\t\t\tEmail email = emailCollection.poll();\n\t\t\t\t\t\tif (null != email) {\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email begin send******************************************************\");\n\t\t\t\t\t\t\trealSendMailReal(email);\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email end send******************************************************\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOGGER.error(\"{}\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "void send(String emailName, Map model, EmailPreparator emailPreparator);", "@Override\n\tpublic boolean sendEmail() {\n\t\treturn true;\n\t}", "void send(String emailName);", "JobResponse apply();", "private void publishResults(String outputPath, int result) {\n Intent intent = new Intent(NOTIFICATIOND);\n intent.putExtra(FILENAME, outputPath);\n intent.putExtra(RESULT, result);\n sendBroadcast(intent);\n\n stopSelf();\n }", "void completeJob();", "private void email() throws IOException {\n\t\t/*\n\t\tString emailText = \"This email includes the following Play Types: \" + playSort.getSelectedItem().toString() + \n\t\t\t\t\"\\nFrom the gameplan: \" + gamePlans.getSelectedItem().toString();\n\t\tString subject = playSort.getSelectedItem().toString() + \" from \" + gamePlans.getSelectedItem().toString();\n\t\t\t\t\n\t\t// TODO: save image to file system, and add the file paht to atachment\n\t\tArrayList<String> attachments = DigPlayDB.getInstance(getBaseContext()).getAllPlayNames();\n\t\tArrayList<String> attachmentPath = new ArrayList<String>();\n\t\tfor (int att = 0; att < attachments.size(); att++) \n\t\t{\n\t\t\tFile myFile = new File(\"/sdcard/DCIM/Play/temp.jpeg\");\n\t\t\tmyFile.setWritable(true);\n\t FileOutputStream myOutWriter =new FileOutputStream(myFile);\n\t myOutWriter.write(DigPlayDB.getInstance(getBaseContext()).getImage(attachments.get(att)));\n\t myOutWriter.flush();\n\t myOutWriter.close();\n\t myFile.setReadable(true);\n\t attachmentPath.add(myFile.getAbsolutePath());\n\t\t}\n\n\t\tEmailPlaybook.EmailAttachment(this, \"[email protected]\", subject, emailText, attachmentPath);\n\t\t*/\n\t}", "public void sendEmail(SendEmailRequestDocument parameters) {\r\n\t\t// Add the business logic here\r\n\t\treturn;\r\n\t}", "@Override\n public void completed(Integer result, String attachment)\n {\n }", "@Override\n\tpublic void sendMail(Mail mail) {\n\t\t\n\t}", "public static void SendReportAsEmail(String[] EmailIds) {\n\t\t// Recipient's email ID needs to be mentioned.\n\t\t// Sender's email ID needs to be mentioned\n\t\tString from = \"[email protected]\";\n\t\tString pass = \"Password123$\";\n\t\t// Recipient's email ID needs to be mentioned.\n\t\t;\n\t\tString host = \"smtp.mail.yahoo.com\";\n\n\t\t// Get system properties\n\t\tProperties properties = System.getProperties();\n\t\t// Setup mail server\n\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tproperties.put(\"mail.smtp.host\", host);\n\t\tproperties.put(\"mail.smtp.user\", from);\n\t\tproperties.put(\"mail.smtp.password\", pass);\n\t\tproperties.put(\"mail.smtp.port\", \"587\");\n\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\n\t\t// Get the default Session object.\n\t\tSession session = Session.getDefaultInstance(properties);\n\n\t\ttry {\n\t\t\t// Create a default MimeMessage object.\n\t\t\tMimeMessage message = new MimeMessage(session);\n\n\t\t\t// Set From: header field of the header.\n\t\t\tmessage.setFrom(new InternetAddress(from));\n\n\t\t\t// Set To: header field of the header.\n\t\t\tfor (int i = 0; i < EmailIds.length; i++) {\n\t\t\t\tmessage.addRecipient(Message.RecipientType.TO, new InternetAddress(EmailIds[i]));\n\t\t\t}\n\n\t\t\t// Set Subject: header field\n\t\t\tmessage.setSubject(\"TEST REPORT\" + \" | Framework Generated Report\");\n\t\t\tDate dt = new Date();\n\t\t\tMultipart multipart = new MimeMultipart();\n\t\t\tBodyPart textpart = new MimeBodyPart();\n\t\t\t// Now set the actual message\n\t\t\tmultipart.addBodyPart(textpart);\n\n\t\t\ttextpart.setText(\"Please find the attached report\" + \"\\n\" + \"This report was generated on \" + dt.toString()\n\t\t\t\t\t+ \"\\n\" + \"Testing Team\" + \"\\n\" + \"Thank You\");\n\n\t\t\tString filename = System.getProperty(\"user.dir\") + \"/\" + \"report.html\";\n\t\t\t// Multipart multipart = new MimeMultipart();\n\n\t\t\tBodyPart messageBodyPart = new MimeBodyPart();\n\t\t\tDataSource ds = new FileDataSource(filename);\n\t\t\tmessageBodyPart.setDataHandler(new DataHandler(ds));\n\t\t\tmessageBodyPart.setFileName(filename);\n\t\t\tmultipart.addBodyPart(messageBodyPart);\n\n\t\t\t// Send the complete message parts\n\t\t\tmessage.setContent(multipart);\n\t\t\t// Send message\n\t\t\tTransport transport = session.getTransport(\"smtp\");\n\t\t\ttransport.connect(host, from, pass);\n\t\t\ttransport.sendMessage(message, message.getAllRecipients());\n\t\t\ttransport.close();\n\t\t\tSystem.out.println(\"Sent message successfully....\");\n\t\t} catch (MessagingException mex) {\n\t\t\tmex.printStackTrace();\n\t\t}\n\t}", "public void send(String result) {\n streamOut.println(result);\n //streamOut.flush();\n\n }", "public void send(String toEmail){\n Session session = Session.getInstance(props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(this.username));\n message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toEmail));\n message.setSubject(\"RWS TICKET SUPPORT\");\n\n BodyPart messageBodyPart = new MimeBodyPart();\n messageBodyPart.setText(\"Thank you for using the services of our company!\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(messageBodyPart);\n messageBodyPart = new MimeBodyPart();\n\n String filename = String.format(\n \"C:/Users/Ozhmegov/Desktop/t-systems/RWS/service/src/main/java/util/tickets/ticket_%s.pdf\", trainNumber\n );\n DataSource source = new FileDataSource(filename);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(String.format(\"ticket_%s.pdf\", trainNumber));\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n LOG.info(\"Message sended on email: {}\", toEmail);\n } catch (MessagingException e) {\n LOG.error(\"Message not sended on email: {}\", toEmail);\n throw new EmailSenderServiceException(String.format(\"Message not sended on email: %s\", toEmail));\n }\n }", "public void sendEmailForAccessionReports(Exchange exchange) {\n logger.info(\"accession reports email started \");\n producerTemplate.sendBodyAndHeader(RecapConstants.EMAIL_Q, getEmailPayLoadForAccession(exchange), RecapConstants.EMAIL_FOR, RecapConstants.ACCESSION_REPORTS);\n }", "public void scheduleJobs();", "@Override\n\tpublic void resSubmitJobEmployee(int je_id, String caller) {\n\n\t}", "public String runPesertaBatchJobScheduled() {\n try {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"JobId\", \"50\") //mengirim parameter ke job\n .toJobParameters();\n jobLauncher.run(importDataPesertaFromCsv, parameters);\n\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \", ex.getMessage(), ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \" + ex.getMessage();\n }\n return \"JOB DONE !!\";\n }", "@Override\n public void sendEmail(String emailBody) {\n }", "@Override\n public void run()\n {\n List<Integer> sendedItemsIds = new ArrayList<>();\n\n final Collection<Map.Entry<Integer, ExerciseScore> > allExerciseItems = m_reportedScores.entrySet();\n try\n {\n for (Map.Entry<Integer, ExerciseScore> item : allExerciseItems)\n {\n final ExerciseScore exerciseScore = item.getValue();\n m_serverOperations.reportExerciseScore(exerciseScore.date, exerciseScore.exerciseName, exerciseScore.score);\n sendedItemsIds.add(item.getKey());\n }\n }\n catch (CommonException | NetworkException exp)\n {\n Log.w(LogTag, String.format(\"Failed to send cache item, exp:\\\"%s\\\"\", exp.getMessage()));\n if (exp instanceof CommonException)\n m_commonErrorCode = ((CommonException)exp).getResultCode();\n else\n m_networkErrorCode = ((NetworkException) exp).getResultCode();\n }\n\n m_exerciseScoreCache.removeCacheItems(sendedItemsIds);\n }", "public static void email(GlobalProperties gp, String[] to, String subject, String body, String[] attachments) {\n\t\tif (((to == null) || (to.length==0)))\n\t\t\tto = gp.getReportEmails();\n\t\t\n\t\tString currentDataSource = gp.getCurrentDataSource();\n\t\tDbHelperDataSource db = new DbHelperDataSource(gp, \"analytics\");\n\t\ttry {\n\t\t\tfor (String aReceipient: to) {\n\t\t\t\t// Add email to queue in db\n\t\t\t\tdb.executeStatement(\"INSERT INTO email_queue VALUES (\" \n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"'\" + InetAddress.getLocalHost().getHostName() + \"',\"\n\t\t\t\t\t\t+ \"utc_timestamp(),\"\n\t\t\t\t\t\t+ \"'n/a',\"\n\t\t\t\t\t\t+ \"'\" + aReceipient + \"',\"\n\t\t\t\t\t\t+ ((subject==null)?\"null\":(\"'\" + subject.replace(\"\\\\\", \"\\\\\\\\\") + \"'\")) + \",\" \n\t\t\t\t\t\t+ ((body==null)?\"null\":(\"'\" + body.replace(\"\\\\\", \"\\\\\\\\\") + \"'\")) + \",\"\n\t\t\t\t\t\t+ (((attachments == null) || (attachments.length==0))?\"null\":(\"'\" + StringUtils.join(attachments , \",\") + \"'\")).replace(\"\\\\\", \"\\\\\\\\\") + \",\"\n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"null,\"\n\t\t\t\t\t\t+ \"0,0)\"\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//handleError(gp, e);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tgp.setCurrentDataSource(currentDataSource);\n\t\t}\n\t}", "public void mailList() {\n for (int index = 0; index < emails.size(); index++) {\n Mensagem mensagem = emails.get(index);\n System.out.println(\"Email \" + index + \": \");\n System.out.println(\"De: \" + mensagem.remetente);\n System.out.println(\"Para: \" + mensagem.destinatario + \"\\n\");\n }\n }", "public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }", "@Override\n\tpublic void alert() {\n\t\ttry {\n\t\t\tSystem.out.println(\"ala\");\n\t\t\tfM.sendMail(text, topic, toWho);\n\t\t} finally {\n\t\t\tif (al != null)\n\t\t\t\tal.alert();\n\t\t}\n\t}", "public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }", "private void scheduleJob() {\n\n }", "public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }", "public void buildFinished(BuildEvent event) {\n if (isEnabled()) {\n // Determine whether notification is required due to a failure\n boolean success = (event.getException() == null);\n\n if (success) {\n // Set the counter to the current changelist number\n resetCounter();\n } else {\n // Determine the list of changes that went into the build\n Changelist[] changes = getChanges();\n\n // Determine the list of users\n User[] users = getUsers(changes);\n\n // Attempt to load the body of the message from a file\n StringBuffer msg = null;\n try {\n msg = loadFile(reportFile);\n } catch (IOException ioex) {\n System.out.println(\"Failure reading report file. Defaulting to generated message body.\");\n }\n\n // Generate the body of the message\n String msgMimeType = null;\n if (P4BlameReport.HTML_FORMAT.equals(parent.getFormat())) {\n msgMimeType = \"text/html\";\n if (msg == null) { \n msg = new StringBuffer();\n msg.append(\"<html>\");\n msg.append(\"<body>\");\n msg.append(formatEventsAsHtml());\n msg.append(\"<table border=0 cellspacing=1 cellpadding=1 width=\\\"100%\\\">\\n\");\n msg.append(formatEventAsHtml(event));\n msg.append(\"</table>\\n\");\n msg.append(\"<p>\\n\");\n msg.append(formatChangesAsHtml(changes, users));\n msg.append(\"</body>\");\n msg.append(\"</html>\");\n }\n } else {\n msgMimeType = \"text/plain\";\n if (msg == null) {\n msg = new StringBuffer();\n msg.append(\"The plain text report format is not yet implemented.\");\n }\n }\n\n // Determine the unique list of users for the e-mail notification\n User[] uniqueUsers = getUniqueUsers(users);\n\n // Iterate through the list of messages that must be sent\n Vector<EmailMessage> msgList = parent.getEmailMessages();\n if (msgList.size() > 0) {\n Iterator<EmailMessage> msgIterator = msgList.iterator();\n while (msgIterator.hasNext()) {\n EmailMessage current = (EmailMessage) msgIterator.next();\n if ((uniqueUsers != null) && (uniqueUsers.length > 0)) {\n for (int idx = 0; idx < uniqueUsers.length; idx++) {\n current.addTo(new EmailAddress(uniqueUsers[idx].getEmailAddress()));\n }\n } else {\n current.addTo(new EmailAddress(parent.getDefaultTo()));\n }\n current.setMessage(msg.toString());\n current.setMessageMimeType(msgMimeType);\n try {\n current.sendMessage();\n } catch (BuildException ex) {\n StringBuffer addrStr = new StringBuffer();\n for (int idx = 0; idx < uniqueUsers.length; idx++) {\n if (idx > 0) addrStr.append(\", \");\n addrStr.append(uniqueUsers[idx].getEmailAddress());\n }\n System.out.println(\"Unable to notify the following users: \" + addrStr);\n ex.printStackTrace();\n }\n }\n } else {\n System.out.println(\"No messages found. Nothing to do.\");\n }\n\n }\n }\n }", "@Override\n\tpublic void submitJobEmployee(int je_id, String caller) {\n\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\ttry {\r\n\t\t\t\tfor (Student student : StudentArray) {\r\n\t\t\t\t\tif(mng.sendFromGMail(student.getEmail(), student.getName(), student.getCode(), student.getGrade())) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t}catch(SendFailedException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error\");\r\n\t\t\t\t}\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void execute(JobExecutionContext context)\n\t\t\tthrows JobExecutionException {\n\t\tJobDataMap map = context.getJobDetail().getJobDataMap();\n\t\tString json = map.getString(getArg());\n\t\tif(json==null){\n\t\t\techo(\"json is null\");\n\t\t\treturn ;\n\t\t}\n\t\tMsg = JSON.parseObject(json, Map.class);\n\t\t\t\t\n\t\tSendEmail();\n\t}", "public String execute() {\n\t\t\n\t\tjobs = new ArrayList<Map<String, String>>();\n\t\tMap<String, String> job = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n\t\tjob = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n \n\t\treturn \"SUCCESS\";\n \n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tArrayList<Double> ttscorelist = new ArrayList<>();\r\n\t\t\t\tSendEmailManager mng = new SendEmailManager(course, section);\r\n\t\t\t\tfor (Student list : StudentArray) {\r\n\t\t\t\t\tttscorelist.add(list.getTotalPoint());\r\n\t\t\t\t}\r\n\t\t\t\tStdDiv cal = new StdDiv(ttscorelist);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfor (Student list : StudentArray) {\r\n\t\t\t\t\t\tif(mng.sendStatisticFromGMail(list.getEmail(), list.getName(), list.getCode(), list.getTotalPoint(), cal.getMin(), cal.getMax(), cal.getMean(), cal.getDiv())) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tthrow new SendFailedException(\"send failed\");\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Send Successed\");\r\n\t\t\t\t} catch (SendFailedException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"send failed\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void sendMail(Mail mail, boolean flag) {\n\t\t\n\t}", "public void run() {\n\t\t\tArrayList<GoobiScriptResult> templist = new ArrayList<>(resultList);\n for (GoobiScriptResult gsr : templist) {\n\t\t\t\tif (gsr.getResultType() == GoobiScriptResultType.WAITING && gsr.getCommand().equals(command)) {\n\t\t\t\t\tProcess p = ProcessManager.getProcessById(gsr.getProcessId());\n\t\t\t\t\tgsr.setProcessTitle(p.getTitel());\n\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.RUNNING);\n\t\t\t\t\tgsr.updateTimestamp();\n\t p.setProjekt(project);\n\t p.setProjectId(project.getId());\n\t try {\n\t\t\t\t\t\tProcessManager.saveProcess(p);\n\t\t\t\t\t\tHelper.addMessageToProcessLog(p.getId(), LogType.DEBUG, \"Project '\" + project + \"' assigned using GoobiScript.\", username);\n\t logger.info(\"Project '\" + project + \"' assigned using GoobiScript for process with ID \" + p.getId());\n\t gsr.setResultMessage(\"Project '\" + project + \"' assigned successfully.\");\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t} catch (DAOException e) {\n\t\t\t\t\t\tgsr.setResultMessage(\"Problem assigning new project: \" + e.getMessage());\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t}\n\t gsr.updateTimestamp();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }", "public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}", "public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}", "public void send(Email email) {\n\t\t\n\t\tSimpleMailMessage message = new SimpleMailMessage(); \n\t message.setTo(email.getTo()); \n\t message.setSubject(email.getSubject()); \n\t message.setText(email.getBody());\n\t \n\t System.out.println(\"Sending Email \");\n\t \n\t javaMailSender.send(message);\n\n\t System.out.println(\"Email Sent Successfully!!\");\n\n\t}", "public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }", "private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}", "public void run() {\n\t\tZMQ.Socket sender = context.socket(ZMQ.PUSH);\n\t\tsender.bind(\"tcp://*:5557\");\n\t\t\n\t\t//this lets you go to another machine to start a worker\n\t\tSystem.out.println(\"Press Enter when the workers are ready: \");\n\t\ttry {\n\t\t\tSystem.in.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Messaging sending loop\n\t\tSystem.out.println(\"Sending tasks to workers\\n\");\n\t\twhile (!Thread.interrupted()) {\n\t\t\ttry {\n\t\t\t\t// If there are jobs to be sent, send them\n\t\t\t\t// Synchronize access to workParts structure before accessing it\n\t\t\t\tsynchronized (Master.lock) {\n\t\t\t\t\tif (!workParts.isEmpty()) {\t\n\t\t\t\t\t\tfor (Computation comp : workParts.values()) {\n\t\t\t\t\t\t\t// Submit only unsubmitted jobs\n\t\t\t\t\t\t\tif (!comp.isSubmitted()) {\n\t\t\t\t\t\t\t\tfor (int i=0; i < comp.getNumOfSubmissions(); i++) {\n\t\t\t\t\t\t\t\t\tsendJob(sender, comp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Set submitted flag\n\t\t\t\t\t\t\t\tcomp.setSubmitted(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Take a short break before reading the job list again\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n PrintWriter writer = new PrintWriter(new FileWriter(new File(\"amazonReviewSentimentsNew.txt\")));\n writer.println(\"RECORD_ID,RECORD_DATETIME,RECORD_URL,RECORD_TITLE,RECORD_TEXT,DOMAIN_ROOT_URL,CITY_NAME,STATE_CODE,COUNTRY_CODE,GPS_COORDINATES,AUTHOR_ID,AUTHOR_HANDLE,AUTHOR_NAME,AUTHOR_GENDER,AUTHOR_DESCRIPTION,_AUTHOR_PROFILE_URL,AUTHOR_AVATAR_URL,AUTHOR_FOLLOWERS,AUTHOR_VERIFIED_STATUS,META_TAGS,META_TAGS2,NET_PROMOTER_SCORE,OVERALL_STAR_RATING,OVERALL_SURVEY_SCORE,SOURCE_TYPE\");\n writer.flush();\n\n\n // Create the scheduler\n SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory();\n Scheduler sched = schedFact.getScheduler();\n sched.start();\n\n // instantiate the threads and the job repo\n int numThreads = 8;\n int numPagesToRead = 20;\n JobDetail[] jobs = new JobDetail[numThreads];\n AmazonJobRepo repo = AmazonJobRepo.getInstance();\n int page = 1;\n\n // start crawling\n while (page < numPagesToRead) {\n // politeness delay\n Thread.sleep(1000);\n\n // check for a new link\n if (repo.hasNextLink()) {\n\n // iterate through all threads, assign a crawling task to the first available thread\n for (int i = 0; i < numThreads; i++) {\n if (jobs[i] == null || !repo.isRunning(i)) { // create a new job to use this\n page++;\n String link = repo.getNextLink();\n JobDetail job = newJob(AmazonJob.class)\n .withIdentity(\"crawler number \" + i)\n .usingJobData(\"url\", link)\n .usingJobData(\"crawler number\", i)\n .build();\n Trigger trigger = newTrigger()\n .startNow()\n .build();\n sched.scheduleJob(job, trigger);\n jobs[i] = job;\n break;\n }\n }\n }\n }\n sched.shutdown(true);\n\n for (Entry e : repo.getData()) {\n writer.println(e);\n }\n writer.close();\n\n\n }", "private void sendErrorEmail(FlowRunner runner) {\n \t\tExecutableFlow flow = runner.getFlow();\n \t\tList<String> emailList = flow.getFailureEmails();\n \t\tif (emailList != null && !emailList.isEmpty() && mailer != null) {\n \n \t\t\ttry {\n \n \t\t\t\tString subject = \"Flow '\" + flow.getFlowId() + \"' has completed on \"\n \t\t\t\t\t\t+ InetAddress.getLocalHost().getHostName() + \"!\";\n \t\t\t\tString body = \"The Flow '\" + flow.getFlowId() + \"' failed. \\n See logs below: \\n\";\n \t\t\t\tfor (String URL : getLogURLs(runner)) {\n \t\t\t\t\tbody += (URL + \"\\n\");\n \t\t\t\t}\n \n \t\t\t\tmailer.sendEmailIfPossible(senderAddress, emailList, subject, body);\n \t\t\t} catch (UnknownHostException uhe) {\n \t\t\t\tlogger.error(uhe);\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.error(e);\n \t\t\t}\n \t\t}\n \t}", "public int sendSupplierOrderNotificationEmail(int customerID, int orderId, int confirmationNumber, Collection<OrderedProduct> orderedProducts, Date orderDate) {\r\n // SMTP Setting\r\n String smtpServer = \"smtp.gmail.com\";\r\n\r\n //Email Addresses\r\n String from = \"[email protected]\";\r\n for (OrderedProduct orderedProduct_outer : orderedProducts) {\r\n int supplierId = orderedProduct_outer.getProduct().getSupplierID().getSupplierID();\r\n String supplierEmail = supplierFacade.find(supplierId).getSupplierEmail().trim();\r\n\r\n String to = supplierEmail;\r\n String bcc = \"[email protected]\";\r\n\r\n //Message\r\n String subject = \"New Order for Collection: \" + orderId + \"|\" + \"Confirmation Number: \" + confirmationNumber;\r\n String message = \"Please liaise with our shipper as soon as possible to get the products listed below shipped to the customer.\";\r\n String productNameAndQuantitySubheader = \"<tr><td>Product</td><td>Quantity</td></tr>\";\r\n String productNameAndQuantity = null;\r\n\r\n for (OrderedProduct orderedProduct_inner : orderedProducts) {\r\n \r\n int productSupplier = orderedProduct_inner.getProduct().getSupplierID().getSupplierID();\r\n \r\n // if productSupplier matches the supplier's id whom email has been retrived above, then send them the product and quantity details below\r\n if(supplierId == productSupplier){\r\n String productName = orderedProduct_inner.getProduct().getProductName();\r\n int productQuantity = orderedProduct_inner.getOrderedProductQuantity();\r\n productNameAndQuantity += \"<tr><td>\" + productName + \"</td><td>\" + productQuantity + \"</td></tr>\";\r\n }\r\n }\r\n\r\n String messageBody\r\n = \"<table>\"\r\n + \"<tr><td colspan=2>\" + message + \"</td></tr>\"\r\n + \"<tr><td colspan=2>Order Details</td></tr>\"\r\n + \"<tr><td>Order Number:</td><td>\" + orderId + \"</td></tr>\"\r\n + \"<tr><td>Confirmation Number:</td><td>\" + confirmationNumber + \"</td></tr>\"\r\n + \"<tr><td>Order Date:</td><td>\" + orderDate + \"</td></tr>\"\r\n + productNameAndQuantitySubheader\r\n + productNameAndQuantity\r\n + \"</table>\";\r\n\r\n try {\r\n Properties properties = System.getProperties();\r\n properties.put(\"mail.transport.protocol\", \"smtp\");\r\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n properties.put(\"mail.smtp.host\", smtpServer);\r\n properties.put(\"mail.smtp.auth\", \"true\");\r\n Authenticator authenticator = new SMTPAuthenticator();\r\n Session session = Session.getInstance(properties, authenticator);\r\n\r\n // Create a new messageBody\r\n Message mimeMessage = new MimeMessage(session);\r\n\r\n // Set the FROM and TO fields\r\n mimeMessage.setFrom(new InternetAddress(from));\r\n mimeMessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));\r\n mimeMessage.setRecipients(Message.RecipientType.BCC, InternetAddress.parse(bcc, false)); // Change this to be hard-coded Peripherals email\r\n mimeMessage.setSubject(subject);\r\n mimeMessage.setContent(messageBody, \"text/html; charset=utf-8\");\r\n\r\n // Set some other header information\r\n mimeMessage.setHeader(\"Order Confirmation\", \"Peripherals\");\r\n mimeMessage.setSentDate(new Date());\r\n\r\n // Send the messageBody\r\n Transport.send(mimeMessage);\r\n System.out.println(\"Message sent successfully!\");\r\n return 0;\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Exception \" + ex);\r\n return -1;\r\n }\r\n }\r\n return 1;\r\n }", "protected void sendResultMessage(Object data) {\n EventBus.getDefault().post(data);\n }" ]
[ "0.7626754", "0.6747886", "0.66603893", "0.63554496", "0.63344204", "0.633012", "0.6263829", "0.61632544", "0.6140394", "0.6095691", "0.6079678", "0.5991952", "0.59752756", "0.59740174", "0.5957762", "0.58962613", "0.58918726", "0.5890533", "0.5876448", "0.5870792", "0.5869623", "0.5852812", "0.5846318", "0.58385885", "0.58351547", "0.5811587", "0.58084214", "0.58030045", "0.5800492", "0.5779085", "0.57765055", "0.5770285", "0.5720198", "0.57131183", "0.56964874", "0.56824", "0.5677982", "0.5624915", "0.5623028", "0.5622148", "0.56047004", "0.5585924", "0.5579392", "0.557112", "0.5551026", "0.5548716", "0.554141", "0.5535905", "0.55270046", "0.55139595", "0.5507583", "0.5497528", "0.5487038", "0.5486564", "0.5480254", "0.54438955", "0.5427046", "0.54232776", "0.54175365", "0.54159236", "0.5406552", "0.53996736", "0.5393737", "0.5388945", "0.5388129", "0.5379436", "0.536712", "0.535209", "0.53417695", "0.532508", "0.5317669", "0.531542", "0.5308155", "0.52990925", "0.5294973", "0.52875245", "0.52829427", "0.5281997", "0.5281859", "0.52680695", "0.5266707", "0.52622265", "0.52570873", "0.5249578", "0.5247813", "0.52472967", "0.5244709", "0.5233799", "0.52321726", "0.5219882", "0.52181566", "0.5218094", "0.52026445", "0.5196431", "0.519333", "0.51903605", "0.51902634", "0.51745266", "0.51744455", "0.51742274" ]
0.7753123
0
this method run asynchronously to start post process scripts for a job requires java 7
@Asynchronous public void postProcess(Job job) { String jobScripts = scriptsDir+"/"+job.getJobType(); logger.log(Level.INFO, "starting post-process of job, scripts folder: {0} ", jobScripts); File jobScriptsDir = new File(jobScripts); if (!jobScriptsDir.exists() || !jobScriptsDir.isDirectory() || jobScriptsDir.list().length < 1) { logger.log(Level.INFO, "skipping post process because there are no scripts"); return; } job.setPhase(Phase.PROCESSING); File workingDir = getFileDir(job); // prepare post-process File postOutput = new File(workingDir, "post-scripts.out"); try { postOutput.createNewFile(); } catch (IOException ex) { logger.log(Level.SEVERE, null, ex); return; } Process postProcess; // run parts run any executable (must have permission) scripts *.sh in scripts directory ProcessBuilder postPB = new ProcessBuilder("run-parts", "-v", "--regex=", jobScripts); postPB.directory(workingDir); try { postPB.redirectErrorStream(true); postPB.redirectOutput(postOutput); postProcess = postPB.start(); postProcess.waitFor(); } catch (Exception e) { logger.log(Level.SEVERE, null, e); } job.setPhase(Phase.COMPLETED); File results = new File(workingDir,"results.zip"); Toolbox.delete(results); Toolbox.compressFiles(workingDir, results); sendResults(job); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}", "@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }", "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "public void execute() {\n\t\tlaunch();\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autStartParallelProcess() {\n\t\t\t\t\r\n\t\t\t}", "abstract Object doPMJob() throws PackageManagerException;", "@Override\n protected void onPreExecute(){\n //do before task doing in background\n }", "ProcessRunner waitFor();", "public RunProcDefJob() {\n\t}", "@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}", "private void addGroovyScriptMultiJob() {\r\n\t\tString html_text = \"\";\r\n\t\tString html_newline = \"\";\r\n\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n html_newline = \"<br>\";\r\n } else {\r\n html_text = \".txt\";\r\n html_newline = \"\\\\n\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_c = new FilePath(manager.build.getWorkspace(),'CombinedReport\" + html_text + \"')\\n\" +\r\n\"FilePath fp_f = new FilePath(manager.build.getWorkspace(),'@PROJECT_BASE@_full_report\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (fp_c.exists() && fp_f.exists())\\n\" +\r\n// Must put HTML in createSummary and not description. Description will be truncated\r\n// and shown in Build history on left and cause corruption in the display, particularly\r\n// if using 'anything-goes-formatter'\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"monitor.png\\\").appendText(fp_c.readToString() + \\\"\" + html_newline + \"\\\" + fp_f.readToString(), false)\\n\" +\r\n\"}\\n\" +\r\n\"else\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"General Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"General Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@PROJECT_BASE@\", getBaseName());\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n getTopProject().getPublishersList().add(groovy);\r\n }", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "@Override\n\tpublic void run()\t{\n\t\tRuntime runTimeProcess = Runtime.getRuntime();\n\t\tString[] processJob = {\"java\",\"-jar\", \"ComparingJob.jar\", dbDirectory, fileName, userBeat};\n\t\ttry {\n\t\t\tProcess process = new ProcessBuilder(processJob).start();\n\t\t\t/*\n\t\t\t * If you want to see debugging tools...\n\t\t\tSequenceInputStream seqIn = new SequenceInputStream(process.getInputStream(), process.getErrorStream());\t\n\t\t\tScanner s = new Scanner(seqIn); \n\t\t\twhile (s.hasNextLine() == true) { \n\t\t\t\tSystem.out.println(s.nextLine()); \n\t\t\t}\t\n\t\t\t*/\n\t\t\t\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void runScript() throws Exception;", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n System.out.println(\"Starting download\");\r\n }", "public void run() {\n\t\t\tArrayList<GoobiScriptResult> templist = new ArrayList<>(resultList);\n for (GoobiScriptResult gsr : templist) {\n\t\t\t\tif (gsr.getResultType() == GoobiScriptResultType.WAITING && gsr.getCommand().equals(command)) {\n\t\t\t\t\tProcess p = ProcessManager.getProcessById(gsr.getProcessId());\n\t\t\t\t\tgsr.setProcessTitle(p.getTitel());\n\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.RUNNING);\n\t\t\t\t\tgsr.updateTimestamp();\n\t p.setProjekt(project);\n\t p.setProjectId(project.getId());\n\t try {\n\t\t\t\t\t\tProcessManager.saveProcess(p);\n\t\t\t\t\t\tHelper.addMessageToProcessLog(p.getId(), LogType.DEBUG, \"Project '\" + project + \"' assigned using GoobiScript.\", username);\n\t logger.info(\"Project '\" + project + \"' assigned using GoobiScript for process with ID \" + p.getId());\n\t gsr.setResultMessage(\"Project '\" + project + \"' assigned successfully.\");\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t} catch (DAOException e) {\n\t\t\t\t\t\tgsr.setResultMessage(\"Problem assigning new project: \" + e.getMessage());\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t}\n\t gsr.updateTimestamp();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void Sample() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"java -version\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}", "protected void execute() {\n command.start();\n }", "public void executeASync (ProcessInfo pi)\r\n\t {\r\n\t }", "public static void main(String[] args) throws Exception {\n // construct a new executor that will run async tasks\n AsyncExecutor executor = new ThreadAsyncExecutor();\n\n // start few async tasks with varying processing times, two last with callback handlers\n AsyncResult<Integer> asyncResult1 = executor.startProcess(lazyval(10, 5000));\n AsyncResult<String> asyncResult2 = executor.startProcess(lazyval(\"test\", 3000));\n AsyncResult<Long> asyncResult3 = executor.startProcess(lazyval(50L, 7000));\n AsyncResult<Integer> asyncResult4 = executor.startProcess(lazyval(20, 4000), callback(9999));\n AsyncResult<String> asyncResult5 =\n executor.startProcess(lazyval(\"I am result5\", 6000), callback(\"Callback result 5\"));\n\n // emulate processing in the current thread while async tasks are running in their own threads\n Thread.sleep(3500); // Oh boy I'm working hard here\n log(\"Some hard work done\");\n\n // wait for completion of the tasks\n Integer result1 = executor.endProcess(asyncResult1);\n String result2 = executor.endProcess(asyncResult2);\n Long result3 = executor.endProcess(asyncResult3);\n asyncResult4.await();\n asyncResult5.await();\n\n // log the results of the tasks, callbacks log immediately when complete\n log(\"Result 1: \" + result1);\n log(\"Result 2: \" + result2);\n log(\"Result 3: \" + result3);\n log(\"Result 4: \" + asyncResult4.getValue());\n log(\"Result 5: \" + asyncResult5.getValue());\n }", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tprocessAsync();\t\t\r\n\t}", "private void scheduleJob() {\n\n }", "private static void performProcessBuilder() throws IOException, InterruptedException {\n\t final File batchFile = new File(\"C:\\\\Users\\\\prabhun\\\\Desktop\\\\test2.bat\");\r\n\r\n\t // The output file. All activity is written to this file\r\n\t final File outputFile = new File(String.format(\"C:\\\\Users\\\\prabhun\\\\Desktop\\\\output_%tY%<tm%<td_%<tH%<tM%<tS.txt\",\r\n\t System.currentTimeMillis()));\r\n\r\n\t // The argument to the batch file. \r\n\t final String argument = \"Prabhu Narayan Jaiswal\";\r\n\r\n\t // Create the process\r\n\t final ProcessBuilder processBuilder = new ProcessBuilder(batchFile.getAbsolutePath(), argument);\r\n\t // Redirect any output (including error) to a file. This avoids deadlocks\r\n\t // when the buffers get full. \r\n\t processBuilder.redirectErrorStream(true);\r\n\t //processBuilder.redirectOutput(outputFile);\r\n\r\n\t // Add a new environment variable\r\n\t //processBuilder.environment().put(\"message\", \"Example of process builder\");\r\n\r\n\t // Set the working directory. The batch file will run as if you are in this\r\n\t // directory.\r\n\t //processBuilder.directory(new File(\"C:\\\\Users\\\\prabhun\\\\Desktop\"));\r\n\r\n\t // Start the process and wait for it to finish. \r\n\t final Process process = processBuilder.start();\r\n\t final int exitStatus = process.waitFor();\r\n\t System.out.println(\"Processed finished with status: \" + exitStatus);\r\n}", "public void startTask() {\n\t}", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "protected void executePostProcessingScripts(List<Script> postProcessingScripts) {\n for (Script script : postProcessingScripts) {\n try {\n logger.info(\"Executing post processing script \" + script.getFileName());\n scriptRunner.execute(script.getScriptContentHandle());\n\n } catch (UnitilsException e) {\n logger.error(\"Error while executing post processing script \" + script.getFileName(), e);\n throw e;\n }\n }\n }", "private void addPostbuildGroovy(Project project, MultiJobDetail detail, String baseName) {\r\n String html_text;\r\n if (getOptionHTMLBuildDesc().equalsIgnoreCase(\"HTML\")) {\r\n html_text = \".html\";\r\n } else {\r\n html_text = \".txt\";\r\n }\r\n String script =\r\n\"import hudson.FilePath\\n\" +\r\n\"\\n\" +\r\n\"Boolean buildFailed = false\\n\" +\r\n\"Boolean buildUnstable = false\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*py did not execute correctly.*\\\") || manager.logContains(\\\".*Traceback .most recent call last.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Jenkins Integration Script Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Jenkins Integration Script Failure\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Failed to acquire lock on environment.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Failed to acquire lock on environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Failed to acquire lock on environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment Creation Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Environment Creation Failed\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Environment Creation Failed\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*FLEXlm Error.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"FLEXlm Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"FLEXlm Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*INCR_BUILD_FAILED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment was not successfully built.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*NOT_LINKED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Link Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Link Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Preprocess Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Preprocess Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Preprocess Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Value Line Error - Command Ignored.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"Test Case Import Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildUnstable = true\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"Test Case Import Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*Abnormal Termination on Environment.*\\\")) \\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Abnormal Termination of at least one Environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Abnormal Termination of at least one Environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if (buildFailed && !buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildFailure()\\n\" +\r\n\"}\\n\" +\r\n\"if (buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"FilePath fp_i = new FilePath(manager.build.getWorkspace(),'@NAME@_rebuild\" + html_text + \"')\\n\" +\r\n\"\\n\" +\r\n\"if (!fp_i.exists())\\n\" +\r\n\"{\\n\" +\r\n\" manager.build.description = \\\"General Failure, Incremental Build Report or Full Report Not Present. Please see the console for more information\\\"\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n script = StringUtils.replace(script, \"@BASENAME@\", baseName);\r\n script = StringUtils.replace(script, \"@NAME@\", detail.getProjectName());\r\n \r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n project.getPublishersList().add(groovy);\r\n }", "@HandleAfterCreate\n public void scriptRunning(Script script) {\n scriptProccessingService.perform(script.getId());\n }", "public void execute() throws org.apache.ant.common.util.ExecutionException {\n try {\n executeMethod.invoke(worker, null);\n } catch (java.lang.Throwable t) {\n throw new org.apache.ant.common.util.ExecutionException(t);\n }\n }", "private static void runStandalone(ApplicationContext context) throws InterruptedException {\r\n\t\tJobParameters jobParameters = new JobParametersBuilder()\r\n\t\t\t.addString(\"user\", \"satadru02\").toJobParameters(); \r\n \t\r\n \tJobLauncher launcher = (JobLauncher)context.getBean(JobLauncher.class);\r\n \tJob dbToCsvJob = (Job)context.getBean(Job.class);\r\n \t\r\n \tJobExecution jobExecution = null;\r\n \ttry{\r\n \t jobExecution = launcher.run(dbToCsvJob, jobParameters);\r\n \t}catch(JobExecutionException e)\r\n \t{\r\n \t\tSystem.out.println(\"#### OOPS #### Job Launch Exception !!\" + e.getMessage());\r\n \t\tSystem.exit(0);\r\n\t }\r\n \t\r\n \tBatchStatus batchStatus = jobExecution.getStatus();\r\n \twhile(batchStatus.isRunning()){\r\n \t\tSystem.out.println(\"..... Batch Is running .....................\");\r\n \t\tThread.sleep(5000);\r\n \t}\r\n\t\t\tExitStatus exitStatus = jobExecution.getExitStatus();\r\n\t\t\tString exitCode = exitStatus.getExitCode();\r\n\t\t\tSystem.out.println(String.format(\"###### Exit status: %s\", exitCode));\r\n\r\n\t\t\tif(exitStatus.equals(ExitStatus.COMPLETED)){\r\n\t\t\t\tSystem.out.println(\"####### COMPLETED STATUS #######\");\r\n\t\t\t}\r\n\t}", "public abstract void runProcess();", "@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}", "@Override\n public void taskStarting() {\n\n }", "public void onPreExecute() {\n\t\t}", "protected void onPreExecute() {\n\t\t}", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "public abstract void processJob() throws Exception;", "java.util.concurrent.Future<StartJobRunResult> startJobRunAsync(StartJobRunRequest startJobRunRequest);", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "protected void beforeJobExecution() {\n\t}", "@Override\n public void execute() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n exportData();\n return null;\n }\n\n @Override\n protected void succeeded(){\n callback.onSuccess();\n super.succeeded();\n }\n\n @Override\n protected void failed(){\n callback.onFail(this.getException());\n super.failed();\n }\n };\n new Thread(task).start();\n }", "@Override\n protected void postProcessEngineInitialisation() {\n }", "public void startExecution() {\n \n \t\tfinal Thread thread = this.environment.getExecutingThread();\n \t\tthread.start();\n \t\tthis.startTime = System.currentTimeMillis();\n \t}", "@Override\n\t protected void onPreExecute() {\n\t }", "<T> AsyncResult<T> startProcess(Callable<T> task);", "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "@PostConstruct\n public void init() {\n threadPoolTaskScheduler.scheduleWithFixedDelay(this::process, Instant.now(), Duration.ofSeconds(30));\n }", "public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }", "public void execute()\n throws BuildException\n {\n if (_resinHome == null)\n throw new BuildException(\"resinHome is required by jspc\");\n\n if (_rootDirectory == null)\n throw new BuildException(\"rootDirectory is required by jspc\");\n\n File resinJar = new File(_resinHome,\n \"lib\" + File.separatorChar + \"resin.jar\");\n\n if (! resinJar.exists())\n throw new BuildException(\"resinHome '\"\n + _resinHome\n + \"' does not appear to be valid\");\n\n Java java = new Java(this);\n java.setFailonerror(true);\n java.setFork(true);\n java.setJar(resinJar);\n\n List<String> args = new ArrayList<String>();\n args.add(\"jspc\");\n args.add(\"-app-dir\");\n args.add(_rootDirectory.getPath());\n\n for (String arg : args)\n java.createArg().setLine(arg);\n\n log(java.getCommandLine().toString(), _level.intValue());\n\n java.executeJava();\n }", "protected void waitDownloads() throws Exception {\n runtimeWrapper.newCommand();\n }", "public void run()\n\t{\n\t\t\n\t\t\n\t\tString[] args = new String[] { };\n\t\ttry \n\t\t{\n\t\t\tToolRunner.run(this, args);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.error(\"Hadoop job execution failed\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void runSequential() {\n int exitVal = -101;\n try {\n exitVal = tsk.executeTask(ss == null ? null : ss.getHiveHistory());\n } catch (Throwable t) {\n if (tsk.getException() == null) {\n tsk.setException(t);\n }\n LOG.error(\"Error in executeTask\", t);\n }\n if (tsk.getException() != null) {\n result.setTaskError(tsk.getException());\n }\n result.setExitVal(exitVal);\n taskQueue.releaseRunnable();\n }", "private void runScript(String script) throws IOException, InterruptedException, RootToolsException, TimeoutException {\r\n\r\n// File tmpFolder = ctx.getDir(\"tmp\", Context.MODE_PRIVATE);\r\n//\r\n// File f = new File(tmpFolder, TEMP_SCRIPT);\r\n// f.setExecutable(true);\r\n// f.deleteOnExit();\r\n//\r\n// // Write the script to be executed\r\n// PrintWriter out = new PrintWriter(new FileOutputStream(f));\r\n// if (new File(\"/system/bin/sh\").exists()) {\r\n// out.write(\"#!/system/bin/sh\\n\");\r\n// }\r\n// out.write(script);\r\n// if (!script.endsWith(\"\\n\")) {\r\n// out.write(\"\\n\");\r\n// }\r\n// out.write(\"exit\\n\");\r\n// out.flush();\r\n// out.close();\r\n\r\n Log.d(this.getClass().getSimpleName(), \"Requesting file execution\");\r\n// Process exec = Runtime.getRuntime().exec(\"su -c \" + f.getAbsolutePath());\r\n// int res = exec.waitFor();\r\n// Toast.makeText(ctx, \"result: \" + res, Toast.LENGTH_LONG).show();\r\n \r\n// if (res != 0) {\r\n// ExceptionHandler.handle(this, R.string.error_script_loading, ctx);\r\n// }\r\n \r\n\r\n if (RootTools.isAccessGiven()) {\r\n List<String> output = RootTools.sendShell(script, SCRIPT_MAX_TIMEOUT);\r\n Log.d(\"\" + this, \"\" + output);\r\n }\r\n }", "public void run() { wait for the launcher script to talk to us\n //\n try {\n ssocket.setSoTimeout(30 * 1000); // 30 seconds\n socket = ssocket.accept();\n socket.setSoTimeout(3 * 60 * 1000);\n socket.setTcpNoDelay(true);\n } catch (SocketTimeoutException stmo) {\n String msg = \"timeout error on initial connection from \" + execName();\n task.log(msg, Project.MSG_ERR);\n failure = new BuildException(msg);\n } catch (Exception e) {\n String err = \"error establishing communication with \" + execName();\n String msg = e.getMessage();\n if (msg != null) {\n err = err + \": \" + msg;\n } else {\n err = err + \": \" + e;\n }\n task.log(err, Project.MSG_ERR);\n failure = new BuildException(err);\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tSystem.out.println(\"All processes: \");\n\t\tProcessHandle.allProcesses().filter(pa -> pa.info().command().isPresent()).forEach(pa -> System.out\n\t\t\t\t.println(pa.pid() + \": \" + pa.info().command() + \" - \" + pa.info().user().orElse(\"N/A\")));\n\n\t\t// spawn a new process and show more process infos\n\t\tProcessBuilder pb = new ProcessBuilder(\"jshell\");\n\t\tProcess p = pb.inheritIO().start();\n\t\tSystem.out.println(\"\\nProcess \" + p.pid() + \" started\");\n\t\tProcessHandle.Info info = p.info();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"PID: \" + p.pid()).append(\"\\n\").append(\"Command: \").append(info.command().orElse(\"N/A\")).append(\"\\n\")\n\t\t\t\t.append(\"Start: \").append(info.startInstant().isPresent() ? info.startInstant() : \"N/A\").append(\"\\n\")\n\t\t\t\t.append(info.user().orElse(\"N/A\")).append(\"\\n\").append(\"Output: \").append(\"\\n\");\n\t\tSystem.out.println(sb.toString());\n\n\t\t// trigger an oncomplete action and kill the process, wait for demo purposes\n\t\tp.onExit().thenAccept(ps -> System.out.println(\"Process \" + ps.pid() + \" killed\"));\n\t\tThread.sleep(2000);\n\t\tSystem.out.println(\"\\nDuration: \" + info.totalCpuDuration().orElse(Duration.ofMillis(0)));\n\t\tSystem.out.println(\"Kill process \" + p.pid());\n\t\tp.destroy();\n\t\tThread.sleep(2000);\n\t}", "public void run() {\n super.executeStep();\n }", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onTaskPreExecute() {\n\t\tLog.i(TAG, \"pre executing\");\n\t}", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "private static Object executeAsyncJavascript(WebDriver driver, String script) {\n System.out.println(\"Executing Async javascript: \" + script);\n return ((JavascriptExecutor) driver).executeAsyncScript(script);\n }", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n // Do something like display a progress bar\n }", "private static void executeTask02() {\n }", "protected void onPreExecute(){\n\t Utils.logThreadSignature(this.tag);\n\t pd = newPDinstance(0);\n\t pd.show();\n }", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "protected void startProcess() {\n System.out.println(\"Process started\");\r\n }", "@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}", "private void startProcess() {\r\n \t\tstartCount++;\r\n \t\tString threadName = Thread.currentThread().getName() + \"-starter-\" + startCount;\r\n \t\tThread starter = new Thread(threadName) {\r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tstartupThrotle.acquireUninterruptibly();\r\n \t\t\t\tlong startTime = System.currentTimeMillis();\r\n \t\t\t\tMaximaProcess mp = makeProcess();\r\n \t\t\t\tstartupTimeHistory.add(System.currentTimeMillis() - startTime);\r\n \t\t\t\tmp.deactivate();\r\n \t\t\t\tpool.add(mp);\r\n \t\t\t\tstartupThrotle.release();\r\n \t\t\t}\r\n \t\t};\r\n \t\tstarter.start();\r\n \t}", "private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "public abstract void runProcess(String[] args) throws Exception;", "protected void onPreExecute() {\r\n\r\n }", "@Override\n public Void run() throws Exception {\n Callable<Job> jobCreator = ReflectionUtils.newInstance(jobConfig.getJobCreator(), jobConfiguration);\n Job job = jobCreator.call();\n job.submit();\n\n // Blocking mode is only for testing\n if(waitForCompletition) {\n job.waitForCompletion(true);\n }\n\n // And generate event with further job details\n EventRecord event = getContext().createEventRecord(\"job-created\", 1);\n Map<String, Field> eventMap = ImmutableMap.of(\n \"tracking-url\", Field.create(job.getTrackingURL()),\n \"job-id\", Field.create(job.getJobID().toString())\n );\n event.set(Field.create(eventMap));\n getContext().toEvent(event);\n return null;\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "public void run() throws Exception {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Launching JVM with command line: \" + String.join(\" \", args));\n }\n process = new ProcessBuilder(args)\n .inheritIO()\n .directory(workingDir)\n .start();\n //https://github.com/quarkusio/quarkus/issues/232\n Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {\n @Override\n public void run() {\n process.destroy();\n }\n }, \"Development Mode Shutdown Hook\"));\n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "public void exec();", "abstract void doTaskOnRun();", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "@Override\n protected void onPreExecute() {\n }", "public final void run() {\n final long contextID = Nodex.instance.getContextID();\n Runnable runner = new Runnable() {\n public void run() {\n try {\n final T result = execute();\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(result));\n }\n });\n } catch (final Exception e) {\n NodexInternal.instance.executeOnContext(contextID, new Runnable() {\n public void run() {\n completionHandler.onEvent(new Completion(e));\n }\n });\n } catch (Throwable t) {\n //Not much we can do, just log it\n t.printStackTrace(System.err);\n }\n }\n };\n\n NodexInternal.instance.executeInBackground(runner);\n }", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "<T> AsyncResult<T> startProcess(Callable<T> task, AsyncCallback<T> callback);", "public void start() throws IOException {\n ServerSocket socket = new ServerSocket(80);\n while (!exec.isShutdown()) {\n try {\n final Socket conn = socket.accept();\n exec.execute(new Runnable() {\n @Override\n public void run() {\n handleRequest(conn);\n }\n });\n } catch (RejectedExecutionException e) {\n if (!exec.isShutdown()) {\n System.out.println(\"task submission rejected\" + e);\n }\n\n }\n\n }\n }" ]
[ "0.5883405", "0.5712868", "0.56945425", "0.56260484", "0.5612927", "0.5592942", "0.5592942", "0.5590877", "0.5590877", "0.5590877", "0.5590877", "0.5590877", "0.5590877", "0.5590877", "0.55804545", "0.557874", "0.5577259", "0.55640835", "0.5537286", "0.551738", "0.5430068", "0.5415984", "0.54121006", "0.53862643", "0.5366504", "0.5332586", "0.5329573", "0.5280683", "0.52693987", "0.5247604", "0.52198", "0.51987785", "0.51915896", "0.51860625", "0.5183938", "0.51624703", "0.51495296", "0.5135128", "0.5131972", "0.5131468", "0.51292866", "0.5128784", "0.5127771", "0.5109267", "0.5102899", "0.50981027", "0.50814146", "0.5058467", "0.5057557", "0.5051741", "0.50478816", "0.5041423", "0.50266874", "0.5026544", "0.50264776", "0.50224537", "0.5016757", "0.50065964", "0.500157", "0.49987832", "0.49962887", "0.49927846", "0.4974888", "0.49709538", "0.49700466", "0.49663037", "0.49626333", "0.49417946", "0.49391437", "0.4928291", "0.49272078", "0.4926396", "0.49256083", "0.49254695", "0.49241793", "0.4921735", "0.4912911", "0.4912734", "0.49101081", "0.49078283", "0.49055454", "0.4904413", "0.49004993", "0.49003753", "0.49003753", "0.49003753", "0.49003753", "0.48982403", "0.48868585", "0.48827314", "0.48820403", "0.4879786", "0.4879786", "0.4879786", "0.4879786", "0.4879786", "0.4871684", "0.4870959", "0.48642784", "0.48634192" ]
0.66247046
0
store the location name in fulltextsearch enabled table...
public long insertLocation(String locationName, String type, String longitude, String latitude, String accuracy, String color) { ContentValues values = new ContentValues(); values.put(LOCATION_NAMES_TABLE, locationName); long rowId = 0; // TODO: SB causes errors on htc... // rowId = getDB().insert(LOCATION_NAMES_TABLE, null, values); values = new ContentValues(); values.put(COLUMN_LOCATION_NAME, locationName); values.put(COLUMN_LOCATION_TYPE, type); values.put(COLUMN_LOCATION_LONGITUDE, longitude); values.put(COLUMN_LOCATION_LATITUDE, latitude); values.put(COLUMN_LOCATION_ACCURACY, accuracy); values.put(COLUMN_LOCATION_FTS_NAME_REF, rowId); values.put(COLUMN_LOCATION_COLOR, color); return getDB().insert(LOCATIONS_TABLE, null, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "public void setLocation(String location);", "public List<Location> searchLocations(String search) {\n Query query = entityManager.createQuery(\"select loc from Location loc where loc.code like :search or loc.name like :search or loc.shortName like :search order by loc.locationId\");\r\n query.setParameter(\"search\", \"%\" + search + \"%\");\r\n return query.getResultList();\r\n\t\t/*\r\n Session session = (Session) getEntityManager().getDelegate();\r\n Criteria crit = session.createCriteria(Location.class);\r\n // If this is not set in a hibernate many-to-many criteria query, we'll get multiple results of the same object\r\n crit.setResultTransformer(Criteria.ROOT_ENTITY);\r\n Criterion name = Restrictions.ilike(\"name\", \"%\" + search + \"%\");\r\n Criterion shortName = Restrictions.ilike(\"shortName\", \"%\" + search + \"%\");\r\n Criterion code = Restrictions.ilike(\"code\", \"%\" + search + \"%\");\r\n Criterion shortCode = Restrictions.ilike(\"shortCode\", \"%\" + search + \"%\");\r\n LogicalExpression orExpName = Restrictions.or(name,shortName);\r\n LogicalExpression orExpCode = Restrictions.or(code,shortCode);\r\n LogicalExpression orExpNameCode = Restrictions.or(orExpName,orExpCode);\r\n crit.add(orExpNameCode);\r\n return crit.list();\r\n */\r\n\t}", "public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}", "public void search(String location){\n List<Address> addressList = null;\n if(location != null || !location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try{\n addressList = geocoder.getFromLocationName(location,1);\n }\n catch (IOException e){}\n Address address =addressList.get(0);\n LatLng latlng = new LatLng(address.getLatitude(), address.getLongitude());\n mMap.addMarker(new MarkerOptions().position(latlng).title(location));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latlng));\n Toast.makeText(getApplication(), location, Toast.LENGTH_LONG).show();\n }\n }", "public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "@Override\n public String save(Location location) throws MaxEntitiesReachedException,\n SimilarEntityExistsException {\n if (!validTitle(location.getTitle())) {\n throw new SimilarEntityExistsException();\n }\n\n if (maxLocationsReached()) {\n throw new MaxEntitiesReachedException();\n }\n\n // If we reach here, then the new location is valid and we can add it to the database.\n Entity entity = new Entity(\"Location\");\n entity.setProperty(\"title\", location.getTitle());\n entity.setProperty(\"lat\", location.getLat());\n entity.setProperty(\"lng\", location.getLng());\n entity.setProperty(\"note\", location.getNote());\n entity.setProperty(\"voteCount\", location.getVoteCount());\n ds.put(entity);\n\n return KeyFactory.keyToString(entity.getKey());\n }", "public void searchLocation(View v){\n EditText locationSearch = findViewById(R.id.location);\n String location = locationSearch.getText().toString();\n search(location);\n }", "public void setLocation(String location) {\n this.location = location;\n }", "void AddSuggestion(String babyName) {\n\r\n\tT.insert(babyName);\r\n\t\r\n\r\n }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "static public void set_location_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"location name:\", \"rating:\", \"population:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\n\t\t\t\t\" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\t\t\t\t\"c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_countries c, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.country_id=c.id and lc.location_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by c.`GDP (billion $)` desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct c.`id`, c.`name`, c.`area (1000 km^2)`, c.`GDP per capita (1000 $)`, \" +\n\t\t\t\t\" c.`population (million)`, c.`capital`, c.`GDP (billion $)` \" +\n\t\t\t\t\" from curr_places_countries c \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id:\", \"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"COUNTRIES\";\n\t}", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public void setLocation(String location)\n {\n this.location = location;\n }", "public void setLocation(String location) {\r\n this.location = location;\r\n }", "public long addLoc(String location) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_LOC_NAME, location); \n return db.insert(DATABASE_TABLE_LOC, null, initialValues);\n }", "public void setLocation(String location) {\n this.location = location;\n }", "void search( RealLocalizable reference );", "@RequestMapping(value = \"/search\", params = {\"type=site\"})\n @Transactional\n public String renderSearchWithKeywordAndSpatial(\n @RequestParam(value = \"query\", required = false) String query,\n @RequestParam(value = \"location\", required = false) String location,\n @RequestParam(value = \"range\", required = false) String range,\n Model model) {\n boolean locationPresent;\n Logger logger = Logger.getLogger(getClass().getName());\n FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(entityManager);\n\n try {\n locationPresent = checkLocations(location, range);\n } catch (Exception e) {\n return \"redirect:/search?error\";\n }\n // Adds site statistics to the model\n model.addAttribute(\"statisticsUtils\", new StatisticsUtils());\n\n\n QueryBuilder queryBuilder = queryBuilder(logger, fullTextEntityManager);\n\n BooleanJunction<BooleanJunction> booleanQuery = QueryByKeyword(query, logger, queryBuilder);\n\n QueryByLocation(locationPresent, logger, booleanQuery, queryBuilder);\n\n QueryByEmpty(locationPresent, query, booleanQuery, queryBuilder);\n\n Query builtQuery = QueryCompiler(logger, booleanQuery);\n\n\n FullTextQuery fullTextQuery = ExecuteQuery(logger, fullTextEntityManager, builtQuery);\n\n List resultList = SortSites(locationPresent, queryBuilder, fullTextQuery);\n\n List<Site> siteList = FilterSites(resultList);\n\n // Finally, adds sites to model\n model.addAttribute(\"nosites\", siteList.isEmpty());\n model.addAttribute(\"siteList\", siteList);\n return \"search/search-page\";\n }", "public void searchPlace(String value)\n\t\t{ \n\t\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault()); \n\t\t try {\n\t\t List<Address> addresses = geoCoder.getFromLocationName(\n\t\t value, 5);\t\t \n\t\t if (addresses.size() > 0) {\n\t\t \t\n\t\t \tdouble latitude= 0.0, longtitude= 0.0;\n\t\t \tGeoPoint p = new GeoPoint(\n\t\t (int) (addresses.get(0).getLatitude() * 1E6), \n\t\t (int) (addresses.get(0).getLongitude() * 1E6));\n\t\t \tlatitude=p.getLatitudeE6()/1E6;\n\t\t\t\t\t\tlongtitude=p.getLongitudeE6()/1E6;\t \n\t\t\t\t\t\tlat = String.valueOf(latitude);\n\t\t\t\t\t\tlongi = String.valueOf(longtitude);\n\t\t\t\t\t\torigin = new LatLng(latitude,longtitude);\n\t\t \tmap.moveCamera( CameraUpdateFactory.newLatLngZoom(origin, (float) 14.0) ); \n\t\t } \n\t\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t }\n\n\n\n\t\t \n\n\t\t}", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "public void setLocation(String location) {\n this.location = location;\n }", "private void getLocation() {\n fields = Arrays.asList(Place.Field.ID, Place.Field.NAME, Place.Field.LAT_LNG);\n\n // Start the autocomplete intent.\n Intent intent = new Autocomplete.IntentBuilder(\n AutocompleteActivityMode.FULLSCREEN, fields)\n .build(this);\n startActivityForResult(intent, AUTOCOMPLETE_REQUEST_CODE);\n }", "public void setSearchName(String name) {\n\n searchName = \"&q=\" + name;\n System.out.println(\"searchName changing = \" + searchName);\n }", "void stateStored (Search search);", "public void typeDatabaseLocation(String text) {\n txtDatabaseLocation().typeText(text);\n }", "protected void setLocation(String location){\r\n this.location = location;\r\n }", "protected void setSearch(ArrayList<Contact> search){\n this.search = search;\n }", "public TokenLocationSearchAnalyzer() {\n foundLocations = new LinkedHashMap<String, List<Integer>>();\n currentTokenLocation = -1;\n }", "public void setLSearch (boolean value) {\r\n l_search = value; }", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "private void searchWord()\n {\n String inputWord = searchField.getText();\n \n if(inputWord.isEmpty())\n queryResult = null;\n \n else\n {\n char firstLetter = inputWord.toUpperCase().charAt(0);\n \n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n if(lexiNodeTrees.get(i).getCurrentCharacter() == firstLetter)\n {\n queryResult = lexiNodeTrees.get(i).searchWord(inputWord, false);\n i = lexiNodeTrees.size(); // escape the loop\n }\n }\n }\n \n // update the list on the GUI\n if(queryResult != null)\n {\n ArrayList<String> words = new ArrayList<>();\n for(WordDefinition word : queryResult)\n {\n words.add(word.getWord());\n }\n \n // sort the list of words alphabetically \n Collections.sort(words);\n \n // display the list of wordsin the UI\n DefaultListModel model = new DefaultListModel();\n for(String word : words)\n {\n model.addElement(word);\n }\n\n this.getSearchSuggestionList().setModel(model);\n }\n \n else\n this.getSearchSuggestionList().setModel( new DefaultListModel() );\n }", "public void setLocation(String location) {\n inputParameters.Location = location;\n\n }", "public abstract void updateLocation(Location location, String newLocationName, int newLocationCapacity);", "public void setWordSearched(String wordSearched){\r\n this.wordSearched = wordSearched;\r\n setWordSearchedLower(wordSearched);\r\n }", "public void setDocumentLocation(L documentLocation);", "public SearchResult(String location) {\n\t\t\tthis.location = location;\n\t\t\tthis.count = 0;\n\t\t\tthis.score = 0;\n\t\t}", "public void setLocation(String location) {\r\n\t\tthis.location = location;\r\n\t}", "public void search() {\r\n \t\r\n }", "public org.apache.xmlbeans.XmlAnySimpleType addNewSearchTerms()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(SEARCHTERMS$6);\n return target;\n }\n }", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void setNewSearch(String query){\n isNewSearch = true;\n this.query = query;\n }", "@Override\n public void setLocation(String location) {\n this.location = location;\n }", "public String prepareTextQuery(String name) {\n String formattedName = name.replaceAll(\"[^a-zA-Z0-9 ]\", \"\").replaceAll(\" \",\"+\");\n return \"https://maps.googleapis.com/maps/api/place/textsearch/json?query=\" +\n formattedName +\n \"&location=\" + lat + \",\" + lng +\n \"&key=\" + apikey;\n }", "public void onSearch(View view){\n List<Address> addressList = null;\n EditText location_tf = (EditText) findViewById(R.id.TFaddress);\n String location = location_tf.getText().toString();\n if(location!=null || location.equals(\"\")){\n Geocoder geocoder = new Geocoder(this);\n try {\n addressList = geocoder.getFromLocationName(location, 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Address address = addressList.get(0);\n LatLng latLng = new LatLng(address.getLatitude(), address.getLongitude());\n marker = mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.addMarker(new MarkerOptions().position(latLng).title(\"Marker\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLng(latLng));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng,17));\n\n }\n\n }", "public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndLocation\").setString(\"name\", name).setString(\"location\", location);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void setLocation(String location) {\n\t\tthis.location = location;\n\t}", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "public void onSearchSubmit(String queryTerm);", "private static void addKeywordSearch()\r\n\t{\r\n\t\tString userInput;\r\n\t\tSystem.out.println(\"Enter a new keyword to search for:\");\r\n\t\tuserInput = input.nextLine();\r\n\t\tkeywords.add(userInput);\r\n\t}", "public void setSearchArea(String searchArea) {\r\n this.searchArea = searchArea;\r\n }", "private void setLocation(){\r\n\t\t//make the sql command\r\n\t\tString sqlCmd = \"INSERT INTO location VALUES ('\" + commandList.get(1) + \"', '\"\r\n\t\t\t\t+ commandList.get(2) + \"', '\" + commandList.get(3) + \"');\";\r\n\r\n\t\ttry {//start SQL statement\r\n\t\t\tstmt.executeUpdate(sqlCmd);\r\n\t\t} catch (SQLException e) {\r\n\t\t\terror = true;\r\n\t\t\tout.println(e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif(error == false)\r\n\t\t\tout.println(\"true\");\r\n\t}", "@Override\n\tpublic void search() {\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "void setSearchedReagentSynonym(ReagentSynonym searchedReagentSynonym);", "public String search(String term, String location) {\n\t\t\t String limit = \"6\";\n\t\t OAuthRequest request = new OAuthRequest(Verb.GET, \"http://api.yelp.com/v2/search\");\n\t\t request.addQuerystringParameter(\"term\", term);\n\t\t request.addQuerystringParameter(\"location\", location);\n\t\t request.addQuerystringParameter(\"limit\", limit);\n\t\t this.service.signRequest(this.accessToken, request);\n\t\t Response response = request.send();\n\t\t return response.getBody();\n\t\t }", "public void addLocation(LocationLocal location) {\n java.util.Set locationsCol = getLocations();\n locationsCol.add(location);\n }", "public final void setLocation(String value) {\n location = value;\n }", "private void addLocationToDatabase(Location location){\n if(recordLocations){\n JourneyLocation journeyLocation = new JourneyLocation(currentJourneyId, new LatLng(location.getLatitude(), location.getLongitude()), System.currentTimeMillis());\n interactor.addLocation(journeyLocation);\n }\n }", "private void createSampleSearch() {\n String userNameToFind = \"mweston\";\n CustomUser user = userService.findByUserName(userNameToFind);\n List<Search> searches = user.getSearches();\n long mwestonUserId = user.getId();\n\n /**\n * The below check is done because when using a Postgres database I will not be using the\n * create-drop but instead validate so I do not want to make too many sample API requests\n * (such as every time I start up this application).\n */\n if(searches.size() > 0) {\n return ;\n }\n\n Search search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n Search secondSearch = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS_TWO);\n searchService.saveSearch(secondSearch, mwestonUserId);\n\n searchService.createSearch(SpringJPABootstrap.STONERIDGE_MALL_RD_SAMPLE_ADDRESS);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n }", "Long countByLocationContaining(String search);", "public void setLocation(String location){\n mLocation = location;\n loadData();\n }", "void addLocation(Location location) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_NAME, location.getName()); // assign location name\n values.put(KEY_CATEGORY, location.getCategory()); // religion\n values.put(KEY_DESCRIPTION, location.getDescription()); // description\n values.put(KEY_LATITUDE, location.getLatitude());\n values.put(KEY_LONGITUDE, location.getLongitude());\n\n // Inserting Row\n db.insert(TABLE_LOCATIONS, null, values);\n db.close(); // Closing database connection\n }", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public void setLocationType(String locationType);", "public void setLocationName(String locationName) {\n this.locationName = locationName;\n }", "public Boolean verifySearchResult(String location) {\r\n\t\tBoolean flag = false;\r\n\t\tWaitHelper wait = new WaitHelper(driver);\r\n\t\tWebElement confirmation = wait.setExplicitWait(driver, By.xpath(\"//div[@class='row searchWidgetRow propertySection']\"), 25);\r\n\t\tList<WebElement> searchConfirmation = confirmation.findElements(By.xpath(\".//strong\"));\r\n\t\tfor(WebElement eachElement: searchConfirmation){\r\n\t\t\tif(location.contains(eachElement.getText())){\r\n\t\t\t\tSystem.out.println(\"Search locality \"+location+\" contains the text \"+eachElement.getText());\r\n\t\t\t\tflag=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void setLocation(final String location) {\n this.location = location;\n }", "public void search() {\n }", "com.google.ads.googleads.v14.services.SuggestGeoTargetConstantsRequest.LocationNames getLocationNames();", "public void addLocation(LocationHandler locationHandlerArray) { \n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put ( key_base_id, locationHandlerArray.base_id);\n\t\tvalues.put ( key_date_entry, locationHandlerArray.date_entry);\n\t\tvalues.put ( key_latitude, locationHandlerArray.longitude);\n\t\tvalues.put ( key_longitude, locationHandlerArray.latitude);\n\t\tvalues.put ( key_name, locationHandlerArray.name);\n\t\tvalues.put ( key_type, locationHandlerArray.type);\n\t\tvalues.put ( key_search_tag, locationHandlerArray.getSearchTag());\n\t\tvalues.put ( key_amountables, locationHandlerArray.getAmountables());\n\t\tvalues.put ( key_description, locationHandlerArray.getDescription());\n\t\tvalues.put ( key_best_seller, locationHandlerArray.getBestSeller());\n\t\tvalues.put ( key_web_site, locationHandlerArray.getWebsite());\n\t\tlong addLog = db.insert( table_location, null, values);\n\t\tLog.i(TAG, \"add data : \" + addLog);\n\t\tdb.close();\n\t}", "private void searchBoxUsed(String txt){\n\t\t\tJFrame frame = new JFrame();\n\t\t\tArrayList<location> simLoc = dataBase.search(txt);\n\t\t\tif (simLoc == null) JOptionPane.showMessageDialog(frame, \"'\" + txt + \"' not found.\");\n\t\t\telse if (simLoc.size() == 1){\n\t\t\t\tlocation searchedLoc = simLoc.get(0);\n\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\trefreshPanels();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tString [] possibilities = new String[simLoc.size()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < simLoc.size(); i ++){\n\t\t\t\t\tpossibilities[i] = i + 1 + \". \" + simLoc.get(i).getName() + \", \" + simLoc.get(i).getCountryCode() + \" Lat: \" \n\t\t\t\t\t\t\t+ simLoc.get(i).getLatitude() + \" Long: \" + simLoc.get(i).getLongitude();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString response = (String) JOptionPane.showInputDialog(frame, \"Which '\" + txt + \"' did you mean?\", \"Search Location\", \n\t\t\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, possibilities, \"Titan\");\n\t\t\t\n\t\t\t\tif (response != null) {\n\t\t\t\t\t\tlocation searchedLoc = simLoc.get(Integer.parseInt(response.substring(0, response.indexOf('.'))) - 1);\n\t\t\t\t\t\tString[] temp = response.split(\" \");\n\t\t\t\t\t\tint length = app.getMyLocations().length;\n\t\t\t\t\t\tboolean add = true;\n\t\t\t\t\t\tfor (int i = 0; i < length; i ++){\n\t\t\t\t\t\t\tlocation checkLoc = app.getMyLocations()[i];\n\t\t\t\t\t\t\tif (checkLoc.getCityID() == searchedLoc.getCityID())\n\t\t\t\t\t\t\t\tadd = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (add) {\n\t\t\t\t\t\t\tapp.addLocation(searchedLoc);\n\t\t\t\t\t\t\tlocBar.removeActionListener(Jcombo);\n\t\t\t\t\t\t\tpopulateMyLocationsBox();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tapp.setVisibleLocation(searchedLoc);\n\t\t\t\t\t\trefreshPanels();\n\t\t\t\t }\n\t\t\t}\n\t\t}", "Builder addContentLocation(Place value);", "public void setDatabaseLocation(String text) {\n txtDatabaseLocation().setText(text);\n }", "@Test\n public void testFullTextSearch_on_a_field() {\n ReadResponse resp = factual.fetch(TABLE,\n new Query().field(\"name\").search(\"Fried Chicken\"));\n\n for (String name : resp.mapStrings(\"name\")) {\n assertTrue(name.toLowerCase().contains(\"frie\")\n || name.toLowerCase().contains(\"fry\")\n || name.toLowerCase().contains(\"chicken\"));\n }\n }", "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n System.out.print(lstAddress);\n if (lstAddress != null) {\n double lat = lstAddress.get(0).getLatitude();\n double lng = lstAddress.get(0).getLongitude();\n LatLng latLng = new LatLng(lat, lng);\n goToMaps(latLng);\n } else {\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "private static boolean storeMunicipalityStreets(String country, String municipality_name, String ags, String[] streets, \n\t\tString[] streetids, Integer streetcount,\n\t\tString sourceCopyrighttext, String sourceUseagetext, String sourceUrl, String sourceContentdate, String sourceFiledate) {\n\t\tString municipality_nameunique = municipality_name;\n\t\tDateFormat date_formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t// in iso8601 format, with timezone\n\n\t\ttry {\n\t\t\t// If there is only a osm relation id available, get the municipality-record with this id\n\t\t\t// code removed, because didn't find relation-ids in Sven Anders lists\n\n\t\t\tif( ! ags.equals(\"\")) {\t\t\t\t\t\n\t\t\t\tString officiakeysSelectSql = \"SELECT name, name_unique, hierarchy FROM officialkeys, country WHERE level = 6 AND\"\n\t\t\t\t\t+ \" ags = ? AND officialkeys.country_id = country.id and country = ?;\";\n\t\t\t\tSystem.out.println(\"SQL-Query officialkeys ===\"+officiakeysSelectSql+\"===\");\n\t\t\t\tPreparedStatement officiakeysSelectStmt = con_listofstreets.prepareStatement(officiakeysSelectSql);\n\t\t\t\tofficiakeysSelectStmt.setString(1, ags);\n\t\t\t\tofficiakeysSelectStmt.setString(2, country);\n\t\t\t\tResultSet officiakeysSelectRS = officiakeysSelectStmt.executeQuery();\n\t\t\t\tif(officiakeysSelectRS.next()) {\n\t\t\t\t\tif(!municipality_name.equals(officiakeysSelectRS.getString(\"name\"))) {\n\t\t\t\t\t\tSystem.out.println(\"found other spelling of municipality name ===\" + officiakeysSelectRS.getString(\"name\") + \"=== for search name ===\" + municipality_name + \"===\");\n\t\t\t\t\t\tmunicipality_name = officiakeysSelectRS.getString(\"name\");\n\t\t\t\t\t}\n\t\t\t\t\tif((officiakeysSelectRS.getString(\"name_unique\") != null) && ( ! officiakeysSelectRS.getString(\"name_unique\").equals(\"\"))) {\n\t\t\t\t\t\tmunicipality_nameunique = officiakeysSelectRS.getString(\"name_unique\");\n\t\t\t\t\t\tSystem.out.println(\"found unique-municipality-name ===\"+municipality_nameunique+\"=== for municipality officialkeys_id ===\"+ags+\"===\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tofficiakeysSelectRS.close();\n\t\t\t\tofficiakeysSelectStmt.close();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ERROR: municipality could not be verified due to missing officialkeys-id \");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch( SQLException e) {\n\t\t\tSystem.out.println(\"Error occured while tried to connect to database\");\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\tif( ! municipality_nameunique.equals(municipality_name)) {\n\t\t\tSystem.out.println(\"Warning: change municipality name from file ===\"+municipality_name+\"=== to unique name ===\"+municipality_nameunique+\"===\");\n\t\t}\n\n\n\t\tlong country_id = -1L;\n\t\tlong municipality_id = -1L;\n\n\t\ttry {\n\t\t\tString sqlbefehl_country = \"SELECT id FROM country WHERE country = ?\";\n\t\t\tPreparedStatement selectqueryStmt = con_listofstreets.prepareStatement(sqlbefehl_country);\n\t\t\tselectqueryStmt.setString(1, country);\n\t\t\tSystem.out.println(\"Info: get country id \" + sqlbefehl_country);\n\t\t\tResultSet existingcountryRS = selectqueryStmt.executeQuery();\n\t\t\tif( existingcountryRS.next() ) {\n\t\t\t\tcountry_id = existingcountryRS.getLong(\"id\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"ERROR, Country unknown\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\texistingcountryRS.close();\n\t\t\tselectqueryStmt.close();\n\t\t}\n\t\tcatch( SQLException e) {\n\t\t\tSystem.out.println(\"Error occured while query country\");\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tString municipalityQuerySql = \"SELECT id, name, osm_hierarchy FROM municipality\"\n\t\t\t\t+ \" WHERE country_id = ? AND officialkeys_id = ?;\";\n\t\t\tSystem.out.println(\"Info: select query for searching in municipality ===\" + municipalityQuerySql + \"===\");\n\t\t\tPreparedStatement municipalityQueryStmt = con_listofstreets.prepareStatement(municipalityQuerySql);\n\t\t\tmunicipalityQueryStmt.setLong(1, country_id);\n\t\t\tmunicipalityQueryStmt.setString(2, ags);\n\t\t\tResultSet municipalityQueryRS = municipalityQueryStmt.executeQuery();\n\t\t\tif( municipalityQueryRS.next() ) {\n\t\t\t\tmunicipality_id = municipalityQueryRS.getLong(\"id\");\n\n\t\t\t\tString municipalityUpdateSql = \"UPDATE municipality SET\"\n\t\t\t\t\t+ \" officialsource_copyrighttext = ?,\"\n\t\t\t\t\t+ \" officialsource_useagetext = ?,\"\n\t\t\t\t\t+ \" officialsource_url = ?,\"\n\t\t\t\t\t+ \" officialsource_contentdate = ?,\"\t\t// MUST BE CASTED TO DATE\n\t\t\t\t\t+ \" officialsource_filedate = ?\" // MUST BE CASTED TO DATE\n\t\t\t\t\t+ \" WHERE id = ?;\";\n\t\t\t\tPreparedStatement municipalityUpdateStmt = con_listofstreets.prepareStatement(municipalityUpdateSql);\n\t\t\t\tmunicipalityUpdateStmt.setString(1, sourceCopyrighttext);\n\t\t\t\tmunicipalityUpdateStmt.setString(2, sourceUseagetext);\n\t\t\t\tmunicipalityUpdateStmt.setString(3, sourceUrl);\n\t\t\t\tif(!sourceContentdate.equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjava.util.Date tempdate = date_formatter.parse(sourceContentdate);\n\t\t\t\t\t\tmunicipalityUpdateStmt.setDate(4, new java.sql.Date(tempdate.getTime()));\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\tSystem.out.println(\"Parameter sourceContentdate could not be parsed as date, content ===\" + sourceContentdate + \"===\");\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tmunicipalityUpdateStmt.setDate(4, null);\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tmunicipalityUpdateStmt.setDate(4, null);\n\t\t\t\tif(!sourceFiledate.equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjava.util.Date tempdate = date_formatter.parse(sourceContentdate);\n\t\t\t\t\t\tmunicipalityUpdateStmt.setDate(5, new java.sql.Date(tempdate.getTime()));\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\tSystem.out.println(\"Parameter sourceFiledate could not be parsed as date, content ===\" + sourceFiledate + \"===\");\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tmunicipalityUpdateStmt.setDate(5, null);\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tmunicipalityUpdateStmt.setDate(5, null);\t\t\t\t\n\t\t\t\tmunicipalityUpdateStmt.setLong(6, municipality_id);\n\t\t\t\tSystem.out.println(\"Update municipality copyright ===\" + sourceCopyrighttext + \"===, useage ===\" + sourceUseagetext\n\t\t\t\t\t+ \"=== , url ===\" + sourceUrl + \"===, contentdate ===\" + sourceContentdate + \"===, filedate ===\" + sourceFiledate\n\t\t\t\t\t+ \"=== WHERE muni-db-id: \" + municipality_id);\n\t\t\t\tmunicipalityUpdateStmt.execute();\n\t\t\t\ttry {\n\t\t\t\t\tmunicipalityQueryRS = municipalityQueryStmt.executeQuery();\n\t\t\t\t\tif( municipalityQueryRS.next() ) {\n\t\t\t\t\t\tmunicipality_id = municipalityQueryRS.getLong(\"id\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch( SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"FEHLERHAFTER Insert-Befehl sqlinsert_string ===\" + municipalityUpdateSql + \"===\");\n\t\t\t\t\tSystem.out.println(\" Forts. FEHLER: municipality_name ===\"+municipality_name+\"===\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tmunicipalityUpdateStmt.close();\n\t\t\t\tmunicipalityQueryRS.close();\n\t\t\t} // end of municipilaty already exists - if( rs_municipality.next() ) { \n\t\t\telse {\n\t\t\t\tmunicipalityQueryRS.close();\n\t\t\t\tString municipalityInsertSql = \"INSERT INTO municipality (country_id, name, officialkeys_id, osm_relation_id, polygon_state,\"\n\t\t\t\t\t+ \"officialsource_copyrighttext, officialsource_useagetext, officialsource_url, officialsource_contentdate, officialsource_filedate)\"\n\t\t\t\t\t+ \" VALUES (?, ?, ?, '', 'missing', ?, ?, ?, ?, ?);\";\n\t\t\t\tPreparedStatement municipalityInsertStmt = con_listofstreets.prepareStatement(municipalityInsertSql);\n\t\t\t\tmunicipalityInsertStmt.setLong(1, country_id);\n\t\t\t\tmunicipalityInsertStmt.setString(2, municipality_name);\n\t\t\t\tmunicipalityInsertStmt.setString(3, ags);\n\t\t\t\tmunicipalityInsertStmt.setString(4, sourceCopyrighttext);\n\t\t\t\tmunicipalityInsertStmt.setString(5, sourceUseagetext);\n\t\t\t\tmunicipalityInsertStmt.setString(6, sourceUrl);\n\t\t\t\tif(!sourceContentdate.equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjava.util.Date tempdate = date_formatter.parse(sourceContentdate);\n\t\t\t\t\t\tmunicipalityInsertStmt.setDate(7, new java.sql.Date(tempdate.getTime()));\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\tSystem.out.println(\"Parameter sourceContentdate could not be parsed as date, content ===\" + sourceContentdate + \"===\");\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tmunicipalityInsertStmt.setDate(7, null);\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tmunicipalityInsertStmt.setDate(7, null);\n\t\t\t\tif(!sourceFiledate.equals(\"\")) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tjava.util.Date tempdate = date_formatter.parse(sourceFiledate);\n\t\t\t\t\t\tmunicipalityInsertStmt.setDate(8, new java.sql.Date(tempdate.getTime()));\n\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\tSystem.out.println(\"Parameter sourceFiledate could not be parsed as date, content ===\" + sourceFiledate + \"===\");\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tmunicipalityInsertStmt.setDate(8, null);\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tmunicipalityInsertStmt.setDate(8, null);\n\t\t\t\tSystem.out.println(\"Insert municipality country_id ===\" + country_id + \"===, muni-name ===\" + municipality_name\n\t\t\t\t\t+ \"===, ags ===\" + ags + \"===, copyright ===\" + sourceCopyrighttext + \"===, useage ===\" + sourceUseagetext\n\t\t\t\t\t+ \"=== , url ===\" + sourceUrl + \"===, contentdate ===\" + sourceContentdate + \"===, filedate ===\" + sourceFiledate\n\t\t\t\t\t+ \"=== WHERE muni-db-id: \" + municipality_id);\n\t\t\t\tmunicipalityInsertStmt.execute();\n\t\t\t\ttry {\n\t\t\t\t\tmunicipalityQueryRS = municipalityQueryStmt.executeQuery();\n\t\t\t\t\tif( municipalityQueryRS.next() ) {\n\t\t\t\t\t\tmunicipality_id = municipalityQueryRS.getLong(\"id\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch( SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.out.println(\"FEHLERHAFTER Insert-Befehl sqlinsert_string ===\" + municipalityInsertSql + \"===\");\n\t\t\t\t\tSystem.out.println(\" Forts. FEHLER: municipality_name ===\"+municipality_name+\"===\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tmunicipalityInsertStmt.close();\n\t\t\t}\n\t\t\tmunicipalityQueryStmt.close();\n\t\t\tmunicipalityQueryRS.close();\n\t\t}\n\t\tcatch( SQLException e) {\n\t\t\tSystem.out.println(\"Error occured while tried to get municipality\");\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\n\t\tPreparedStatement deleteStreetsStmt = null;\n\t\tString deleteStreetsSql = \"\";\n\n\t\ttry {\n\t\t\tdeleteStreetsSql = \"DELETE FROM streetoriginal WHERE municipality_id = ?;\";\n\t\t\tdeleteStreetsStmt = con_listofstreets.prepareStatement(deleteStreetsSql);\n\t\t\tdeleteStreetsStmt.setLong(1, municipality_id);\n\t\t\tSystem.out.println(\"deleete streets in streetoriginal muni-id \" + municipality_id + \" sql was ===\" + deleteStreetsSql + \"===\");\n\t\t\ttry {\n\t\t\t\tdeleteStreetsStmt.executeUpdate();\n\t\t\t}\n\t\t\tcatch( SQLException sqle) {\n\t\t\t\tSystem.out.println(\"FEHLERHAFTER Insert-Befehl insertbefehl_street ===\" + deleteStreetsSql + \"===\");\n\t\t\t\tsqle.printStackTrace();\n\t\t\t}\n\t\t\tdeleteStreetsStmt.close();\n\t\t}\n\t\tcatch( SQLException sqle) {\n\t\t\tSystem.out.println(\"Error occured while tried to delete streets in streetoriginal\");\n\t\t\tsqle.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//TODO complete transaction mode\t\t\n\t\tInteger streets_imported = 0;\n\t\tString insertStreetSql = \"\";\n\t\tPreparedStatement insertStreetStmt = null;\n\t\n\t\tfor(Integer streetindex = 0; streetindex < streetcount; streetindex++) {\n\t\t\tString street = streets[streetindex];\n\t\t\tString streetref = streetids[streetindex];\n\n\t\t\ttry {\n\t\t\t\tinsertStreetSql = \"INSERT INTO streetoriginal (country_id, municipality_id, name, streetref) VALUES (?, ?, ?, ?);\";\n\t\t\t\tinsertStreetStmt = con_listofstreets.prepareStatement(insertStreetSql);\n\t\t\t\tinsertStreetStmt.setLong(1, country_id);\n\t\t\t\tinsertStreetStmt.setLong(2, municipality_id);\n\t\t\t\tinsertStreetStmt.setString(3, street);\n\t\t\t\tinsertStreetStmt.setString(4, streetref);\n\t\t\t\tSystem.out.println(\"insert streetoriginal country_id \" + country_id + \" muni-id \" + municipality_id + \" .street ===\" + street + \"=== ref ===\" + streetref + \"===\");\n\t\t\t\tif((streets_imported % 100) == 0)\n\t\t\t\t\tSystem.out.println(\" beim importieren Zwischenmeldung bei # \"+streets_imported+\" ist konkret ===\" + street + \"===\");\n\t\t\t\tinsertStreetStmt.executeUpdate();\n\t\t\t\tstreets_imported++;\n\t\t\t\tinsertStreetStmt.close();\n\t\t\t}\n\t\t\tcatch( SQLException insertsqle) {\n\t\t\t\tinsertsqle.printStackTrace();\n\t\t\t\tSystem.out.println(\"FEHLERHAFTER Insert-Befehl insertbefehl_street ===\" + insertStreetSql + \"===\");\n\t\t\t\tSystem.out.println(\" Forts. FEHLER: municipality_name ===\" + municipality_name + \"=== strasse ===\" + street + \"===\");\n\t\t\t\tSystem.out.println(\" Forts. Straße ===\" + street + \"=== Ref ===\" + streetref + \"===\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" Number of streets, insert into db: \" + streetcount);\n\t\treturn true;\n\t}", "void search();", "void search();", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "private void loadLocation(Location location, ResultSet resultSet, int index) throws SQLException {\n\t\t\tlocation.setLocationID(resultSet.getInt(index++));\n\t\t\tlocation.setLongDescription(resultSet.getString(index++));\n\t\t\tlocation.setShortDescription(resultSet.getString(index++));\n\t\t}", "public void SearchPhrase(Object_Ord temp) {\n\tif (!Doneloading) {\r\n\t return;\r\n\t}\r\n\tif (temp == null) {\r\n\t return;\r\n\t} else if (temp.Ordet.equals(\"\")) {\r\n\t return;\r\n\t}\r\n\ttemp.Set_Searched();\r\n\t//PrintAction( this.getClass().toString() + \" Searching for phrase \" + temp.Ordet );\r\n\tThread thread = new Thread_PhraseSearcher(this, temp);\r\n\tThreadsRunning++;\r\n\tThreadsStarted++;\r\n }", "Search getSearch();", "public void setLocationId(String locationId);", "public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }", "abstract public void search();", "@Override\n public void onMapLongClick(LatLng latLng) {\n textPlace.setText(\"\");\n initiateSearch(latLng);\n }", "public void addSearchZone(SearchZone s)\n {\n this.search_zone = s;\n\n }", "private List<TravelData> searchLocations(String keywords,\n String[] fieldsToSearch,\n String[] fieldsToGet,\n int resultSize) throws Exception {\n SearchResult result = searchingExecutor.search(\n fieldsToGet,\n fieldsToSearch,\n keywords,\n resultSize\n );\n\n // 2. build travel-data list ...\n List<TravelData> travelDataList = new ArrayList<>();\n for(Map<String, String> docMap : result.getDocMapList()) {\n String tmpLocationId = docMap.get(TravelDataIndexField.CONTENT_ID.label());\n if(tmpLocationId == null) continue;\n\n // 2-1. increment impress count !!\n locationStorage.impress(tmpLocationId);\n travelDataList.add(new TravelData(locationStorage.getSnapshot(tmpLocationId), docMap));\n }\n\n // 3. sort by score\n Collections.sort(travelDataList);\n return travelDataList;\n }", "private boolean saveLocationString(Location location) {\n\t\t\t\t\n\t\t// Use google's example location strategy\n\t\tif (location != null && LocationStrategy.isBetterLocation(location, mCurrentLocation)) {\n\t\t\tmCurrentLocation = location;\n\t\t\t\n\t\t\tmLocationString = locateToUsFormat(mCurrentLocation);\n\t\t\tmLastAccuracyInMeters = location.getAccuracy();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void updateResults(String s) {\n ArrayList<String> tempName = new ArrayList<String>();\n ArrayList<String> tempUid = new ArrayList<String>();\n for(int i=0;i<userName.size();i++){\n if(userName.get(i).toLowerCase().contains(s.toLowerCase())){\n tempName.add(userName.get(i));\n tempUid.add(uid.get(i));\n }\n }\n userName.clear();\n uid.clear();\n userName.addAll(tempName);\n uid.addAll(tempUid);\n }", "public QueryLocusLocusSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }", "public static void AddLocation(Location location){\n\ttry (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT City, AirportCode from Location\")){\n \n resultSet.moveToInsertRow();\n resultSet.updateString(\"City\", location.getCity());\n resultSet.updateString(\"AirportCode\", location.getAirportCode());\n resultSet.insertRow();\n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n }" ]
[ "0.60109717", "0.5764547", "0.55909646", "0.5493374", "0.5447778", "0.54156846", "0.5409402", "0.5409402", "0.5406696", "0.5406451", "0.5375841", "0.5369193", "0.5353653", "0.5344284", "0.5334666", "0.53140134", "0.52829534", "0.52707165", "0.52602386", "0.52583516", "0.5224267", "0.5216757", "0.52163434", "0.52163434", "0.52163434", "0.52163434", "0.52120686", "0.52076584", "0.52036697", "0.52007335", "0.5196675", "0.51761454", "0.5160203", "0.51584107", "0.5153802", "0.51528025", "0.51527345", "0.51509976", "0.51484287", "0.5141736", "0.5131796", "0.5126671", "0.5126013", "0.51223207", "0.5119866", "0.5114456", "0.5112135", "0.51072335", "0.51065224", "0.5080266", "0.5057197", "0.5057197", "0.5057197", "0.505527", "0.5043212", "0.50358665", "0.50223416", "0.5019229", "0.50165635", "0.5014488", "0.5010972", "0.5004902", "0.5002708", "0.49970323", "0.49908817", "0.4988617", "0.4979086", "0.49785042", "0.49627027", "0.49562362", "0.49550074", "0.4951265", "0.49446455", "0.49406087", "0.49387217", "0.49294108", "0.4927308", "0.4921656", "0.4903948", "0.4898807", "0.48983052", "0.48916134", "0.4890525", "0.48838338", "0.48707741", "0.48694098", "0.48694098", "0.48634908", "0.48625314", "0.48576796", "0.4857459", "0.4853688", "0.48489928", "0.4848481", "0.48433262", "0.484068", "0.48352712", "0.4834181", "0.48292243", "0.48275092", "0.48256055" ]
0.0
-1
This class supports the registration of widgets and the commands they generate. This can then be used by a program to set values and states of 'commands', instead of 'widgets'. This is usefull because many programs have no knowledge of what widgets generate what commands, nor should they. For example: setCommandSensitivity(String command, boolean flag); sets the sensitivity of the widgets that generate the command. Many classes that implement this interface just delegate (forward) the methods that implement the interface to an instance of MiCommandManager.
public interface MiiCommandManager { /**------------------------------------------------------ * Registers the given widget and the command it generates. * This permits (de)sensitization of the widget by the * setCommandSensitivity method. * @param widget the widget that generates the command * @param command the command * @see #unRegisterWidgetGeneratedCommand *------------------------------------------------------*/ void registerCommandDependentWidget(MiPart widget, String command); /**------------------------------------------------------ * UnRegisters the given widget and the command it generates. * Either the given widget or the given command may be null. * @param widget the widget that generates the command * @param command the command * @see #registerCommandDependentWidget *------------------------------------------------------*/ void unRegisterWidgetGeneratedCommand(MiPart widget, String command); /**------------------------------------------------------ * Sets whether the given command is to be visible to the * user. This method typically (hides)shows the widgets * that have been associated with the command. * @param command the command * @param flag true if the user can now see the * command (whether sensitive or not) * @see #registerCommandDependentWidget * @implements * MiiCommandManager#setCommandVisibility *------------------------------------------------------*/ void setCommandVisibility(String command, boolean flag); /**------------------------------------------------------ * Sets whether the given command can be processed at this * time. Otherwise, possibly based on the current state of * the application, the given command cannot/should not be * processed at this time. This method typically (de)sensitizes * the widgets that have been associated with the command * (see registerCommandDependentWidget). * @param command the command * @param flag true if the system can now process * the command * @see #registerCommandDependentWidget *------------------------------------------------------*/ void setCommandSensitivity(String command, boolean flag); /**------------------------------------------------------ * Sets whether the given command can be processed at this * time. Otherwise, possibly based on the current state of * the application, the given command cannot/should not be * processed at this time. This method typically (de)sensitizes * the widgets that have been associated with the command * (see registerCommandDependentWidget). This method is designed * to display a status bar message that describes why a * particular widget is desensitized. * @param command the command * @param flag true if the system can now process * the command * @param statusHelpMsg the new status bar message * @see #registerCommandDependentWidget * @see MiiCommandManager#setCommandSensitivity * @see MiCommandManager#setCommandSensitivity *------------------------------------------------------*/ void setCommandSensitivity(String command, boolean flag, String statusHelpMsg); /**------------------------------------------------------ * Sets the state of the boolean widget that generates the * given command. This is used for initializing toggle * buttons. * @param command the command * @param flag true if the two state widget is * to be 'set'. *------------------------------------------------------*/ void setCommandState(String command, boolean flag); /**------------------------------------------------------ * Sets the state of the multi-state widget that generates * the given command. This is used for initializing widgets * like combo boxes and lists. * @param command the command * @param state the current state, one of many. *------------------------------------------------------*/ void setCommandState(String command, String state); /**------------------------------------------------------ * Sets the label of the widget that generates the given * command. This is used for initializing widgets like * labels and menubar buttons, push button etc. * @param command the command * @param label the new label *------------------------------------------------------*/ void setCommandLabel(String command, String label); /**------------------------------------------------------ * Sets the values of the multi-state widget that generates * the given command. This is used for setting the possible * values of widgets like combo boxes and lists. * @param command the command * @param options the new contents of the widget *------------------------------------------------------*/ void setCommandOptions(String command, Strings options); /**------------------------------------------------------ * Sets the given property to the given value for all parts * that generates the given command. This is used for, say, * changing the status help message on a widget that may * only be situationally and temporarily desensitized. * @param command the command * @param propertyName the property name * @param propertyValue the value * @implements MiiCommandManager#setCommandState *------------------------------------------------------*/ void setCommandPropertyValue(String command, String propertyName, String propertyValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "private void registerCommands() {\n }", "public void addCommand(Command m);", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "protected abstract void registerCommands(CommandHandler handler);", "public interface IController {\n\n /**\n * add action command to the Button.\n */\n void configureButtonListener();\n\n /**\n * add mouse command to the editView.\n */\n void configureMouseListener();\n\n}", "public CommandPanel(){\n\t\tsetLayout(new MigLayout(\"fill\"));\n\n\t\tadd(inputField, \"dock south, growx\");\n\t\tinputField.setText(\"Enter command\");\n\n\t\tcentralArea.setEditable(false);\n\t\tJScrollPane scrollPane = new JScrollPane(centralArea);\n\t\tadd(scrollPane, \"grow\");\n\n\t\tinitCommands();\n\t\tinitHelp();\n\n\t\tinputField.addFocusListener(new FocusListener() {\n\n\t\t\t@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tif (inputField.getText().equals(\"Enter command\"))\n\t\t\t\t\tinputField.setText(\"\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\tif (inputField.getText().equals(\"\"))\n\t\t\t\t\tinputField.setText(\"Enter command\");\n\n\t\t\t}\n\t\t});\n\n\t\tinputField.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_ENTER){\n\t\t\t\t\tString command = inputField.getText();\n\t\t\t\t\tString reply = processCommand(command);\n\t\t\t\t\tinputField.setText(\"\");\n\t\t\t\t\tif (!command.equals(\"clear\"))\n\t\t\t\t\t\tcentralArea.setText(centralArea.getText() + \"\\n\" + command + \"> \" + reply);\n\t\t\t\t}\n\t\t\t\telse if (e.getKeyCode() == KeyEvent.VK_UP){\n\t\t\t\t\tif (currentCommandIndex > 0)\n\t\t\t\t\t\tcurrentCommandIndex --;\n\t\t\t\t\tinputField.setText(allCommands.get(currentCommandIndex));\n\t\t\t\t}\n\t\t\t\telse if (e.getKeyCode() == KeyEvent.VK_DOWN){\n\t\t\t\t\tif (currentCommandIndex < allCommands.size() - 1)\n\t\t\t\t\t\tcurrentCommandIndex ++;\n\t\t\t\t\tif (currentCommandIndex < allCommands.size())\n\t\t\t\t\t\tinputField.setText(allCommands.get(currentCommandIndex));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t}", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "public CommandHandler() {\r\n\t\tcommands.put(\"userinfo\", new UserInfoCommand());\r\n\t\tcommands.put(\"verify\", new VerifyCommand());\r\n\t\tcommands.put(\"ping\", new PingCommand());\r\n\t\tcommands.put(\"rapsheet\", new RapsheetCommand());\r\n\t\tcommands.put(\"bet\", new BetCommand());\r\n\t\tcommands.put(\"buttons\", new ButtonCommand());\r\n\r\n\t\t// for each command in commands\r\n\t\t// call getAlternativeName and assign to that key\r\n\t\tcommands.keySet().stream().forEach(key -> {\r\n\t\t\tList<String> alts = commands.get(key).getAlternativeNames();\r\n\t\t\tif (alts != null)\r\n\t\t\t\talts.forEach(a -> commandAlternative.put(a, key));\r\n\t\t});\r\n\t}", "private void createCommands()\n{\n exitCommand = new Command(\"Exit\", Command.EXIT, 0);\n helpCommand=new Command(\"Help\",Command.HELP, 1);\n backCommand = new Command(\"Back\",Command.BACK, 1);\n}", "public RobotContainer() {\n\nleftJoystick = new Joystick(0);\nrightJoystick = new Joystick(1);\n\ndriveBase = new DriveBase();\ndriveWithJoystick = new DriveWithJoystick();\nCommandScheduler.getInstance().setDefaultCommand(driveBase, driveWithJoystick);\n\n\n // Configure the button bindings\n configureButtonBindings();\n }", "public interface AbstractCommandFactory {\n\n /**\n * Abstrakte Methode zur erzeugung eines Kommndos.\n *\n * @param param alle Parameter die zur Erzeugung benoetigt werden.\n * @return das entsprechende erzeugte Kommando.\n */\n public Command create(Object... param);\n}", "CommandsFactory getCommandsFactory();", "public interface ICmd2ModelAdapter_deprecated {\r\n\t\r\n\t/**\r\n\t * Appends the given string onto a text display somewhere on the host ChatApp's GUI.\r\n\t * @param s A string to display\r\n\t */\r\n\tpublic abstract void append(String s);\r\n\t\r\n\t/**\r\n\t * Allows the command to give a java.awt.Component to the host ChatApp to be displayed on \r\n\t * its GUI somewhere. \r\n\t * @param name A title for the component, useful for tabs, frame titles, etc.\r\n\t * @param newComp The component to display.\r\n\t */\r\n\tpublic void addComponent(String name, Component newComp);\r\n}", "public interface Command {\n\n\n}", "private void putCommands() {\r\n ShellCommand charset = new CharsetCommand();\r\n commands.put(charset.getCommandName(), charset);\r\n ShellCommand symbol = new SymbolCommand();\r\n commands.put(symbol.getCommandName(), symbol);\r\n ShellCommand exit = new ExitCommand();\r\n commands.put(exit.getCommandName(), exit);\r\n ShellCommand cat = new CatCommand();\r\n commands.put(cat.getCommandName(), cat);\r\n ShellCommand copy = new CopyCommand();\r\n commands.put(copy.getCommandName(), copy);\r\n ShellCommand ls = new LsCommand();\r\n commands.put(ls.getCommandName(), ls);\r\n ShellCommand mkdir = new MkdirCommand();\r\n commands.put(mkdir.getCommandName(), mkdir);\r\n ShellCommand hexdump = new HexdumpCommand();\r\n commands.put(hexdump.getCommandName(), hexdump);\r\n ShellCommand tree = new TreeCommand();\r\n commands.put(tree.getCommandName(), tree);\r\n ShellCommand help = new HelpCommand();\r\n commands.put(help.getCommandName(), help);\r\n ShellCommand pwd = new PwdCommand();\r\n commands.put(pwd.getCommandName(), pwd);\r\n ShellCommand cd = new CdCommand();\r\n commands.put(cd.getCommandName(), cd);\r\n ShellCommand pushd = new PushdCommand();\r\n commands.put(pushd.getCommandName(), pushd);\r\n ShellCommand popd = new PopdCommand();\r\n commands.put(popd.getCommandName(), popd);\r\n ShellCommand listd = new ListdCommand();\r\n commands.put(listd.getCommandName(), listd);\r\n ShellCommand dropd = new DropdCommand();\r\n commands.put(dropd.getCommandName(), dropd);\r\n ShellCommand rmtree = new RmtreeCommand();\r\n commands.put(rmtree.getCommandName(), rmtree);\r\n ShellCommand cptree = new CptreeCommand();\r\n commands.put(cptree.getCommandName(), cptree);\r\n ShellCommand massrename = new MassrenameCommand();\r\n commands.put(massrename.getCommandName(), massrename);\r\n }", "Commands createCommands();", "protected void initializeCommands() {\n\t\t\r\n\t\tcommands.add(injector.getInstance(Keys.inputQuestionCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.backCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.helpCommand));\r\n\t\tcommands.add(injector.getInstance(Keys.quitCommand));\r\n\t}", "public interface Command {\n \n /**\n * Méthode utilisée pour réaliser l'action voulue.\n */\n public void execute();\n \n /**\n * Méthode utilisée pour annuler la dernière action.\n */\n public void undo();\n}", "public interface IGUIFactory {\n Component label(String text);\n Component labelEmpty();\n Component fieldReadOnly(int length, String text);\n Component fieldEditable(int length, String text);\n Component fieldCalc(int length, String text, boolean readonly);\n Component button(String text);\n Component button(String text, ActionListener listener);\n Component button(ImageIcon image, ActionListener listener);\n Component password();\n Container panelEmpty();\n Container panel(LayoutManager manager);\n Container panelBordered();\n TablePanel tablePanel(IGUIEditor parent, Table table);\n TablePanel tablePanel(IGUIEditor parent, TableModel tableModel);\n Table table(TableModel tableModel);\n Component comboBoxFilled(Collection priorities);\n Component checkBox(String text);\n Component checkBox(String text, boolean flag);\n LayoutManager boxLayout(Container comp, int direction);\n LayoutManager gridLayout(int rows, int cols);\n Dimension size(int width, int height);\n JTabbedPane tabbedPane();\n JMenuItem menuItem(String text, Icon icon);\n JMenu menu(String text);\n JMenuBar menuBar();\n WindowEvent windowEvent(Window source, int id);\n}", "CommandHandler() {\n registerArgument(new ChallengeCmd());\n registerArgument(new CreateCmd());\n }", "public WidgetManager()\n {\n fEditingMode = null;\n fPickingEngine = null;\n fPickingRenderer = null;\n fPickingRenderingEngine = null;\n fRenderer = new WidgetJOGLRenderer(new SimpleJOGLRenderer());\n fRenderingEngine = null;\n fScene = null;\n fWidgets = new HashMap<EditingMode, Widget>();\n fWidgetScene = null;\n }", "public abstract void setCommand(String cmd);", "public interface Command {\r\n \r\n /** set the coordinates of the mouse down event;\r\n * where the image is moved FROM.\r\n * @param fromX x coordinate of mouse \r\n * @param fromY y coordinate of mouse\r\n */\r\n public void setFromCoordinates(int fromX, int fromY);\r\n\r\n /** set the coordinates of the mouse up event;\r\n * where the image is moved TO.\r\n * @param toX x coordinate of mouse \r\n * @param toY y coordinate of mouse\r\n */\r\n public void setToCoordinates(int toX, int toY);\r\n \r\n /** execute encapsulates the method call on the board game. \r\n * NOTE: it is this method's responsibility return false\r\n * in case the given from and to coordinates cannot\r\n * be translated into a meaningful board game invokation\r\n * and in this case return false. Example: moving a\r\n * piece outside the board may translate into calling\r\n * a game's move method with a null parameter which\r\n * will next generate a null pointer exception in the\r\n * game logic.\r\n * @return false if the action, typically a move, is illegal\r\n * in the board game. \r\n * */\r\n public boolean execute();\r\n}", "public interface ICommand {\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return long description of the command\r\n\t */\r\n\tString description();\r\n\r\n\t/**\r\n\t * \r\n\t * @return name of the command\r\n\t */\r\n\tString name();\r\n\r\n\t/**\r\n\t * Get called when the comma\r\n\t * @param console callback for output\r\n\t * @param options of the command invocation\r\n\t */\r\n\tvoid exec(ICommandConsole console, List<String> options);\r\n\r\n\t/**\r\n\t * \r\n\t * @return usage of the command\r\n\t */\r\n\tString usage();\r\n}", "public CommandManager() {}", "public static void initializeDefaultCommands()\n {\n m_chassis.setDefaultCommand(m_inlineCommands.m_driveWithJoystick);\n // m_intake.setDefaultCommand(null);\n m_chamber.setDefaultCommand(new ChamberIndexBalls());\n // m_launcher.setDefaultCommand(null);\n // m_climber.setDefaultCommand(null);\n // m_controlPanel.setDefaultCommand(null);\n }", "private ConsoleCommand[] registerCommands(){\r\n\t\tHelpCommand help = new HelpCommand(this.application, \"Help\", \"?\");\r\n\t\t\r\n\t\tConsoleCommand[] commands = {\r\n\t\t\t\tnew WebServicesCommand(this.application, \"WebService\"),\r\n\t\t\t\tnew ScannerCommand(this.application, \"Scanner\"),\r\n\t\t\t\tnew ShowConfigCommand(this.application, \"System.Config\", \"Config\"),\r\n\t\t\t\tnew ShowStatsCommand(this.application, \"System.Stats\", \"Stats\"),\r\n\t\t\t\tnew ShutdownCommand(this.application, \"System.Shutdown\", \"Exit\", \"Shutdown\"),\r\n\t\t\t\tnew DisableUserCommand(this.application, \"User.Disable\"),\r\n\t\t\t\tnew EnableUserCommand(this.application, \"User.Enable\"),\r\n\t\t\t\tnew ListUsersCommand(this.application, \"User.List\"),\r\n\t\t\t\tnew SetPasswordCommand(this.application, \"User.SetPassword\"),\r\n\t\t\t\tnew UnlockUserCommand(this.application, \"User.Unlock\"),\r\n\t\t\t\tnew AddUserCommand(this.application, \"User.Add\"),\r\n\t\t\t\tnew ShowEventsCommand(this.application, \"ShowEvents\"),\r\n\t\t\t\tnew TaskListCommand(this.application, \"Task.List\"),\r\n\t\t\t\tnew TaskStopCommand(this.application, \"Task.Stop\"),\r\n\t\t\t\tnew EventLogLastCommand(this.application, \"EventLog.Last\"),\r\n\t\t\t\tnew EventLogViewCommand(this.application, \"EventLog.View\"),\r\n\t\t\t\thelp\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tdefaultCommand = help;\r\n\t\thelp.setCommands(commands);\r\n\t\t\r\n\t\treturn commands;\r\n\t}", "public AMMSMIDlet() {\n\tdisplay = Display.getDisplay(this);\n\tcanvas = new MansionCanvas(display);\n\tcanvas.addCommand(exitCommand);\n\tcanvas.addCommand(toggleCommand);\n\tcanvas.addCommand(helpCommand);\n\tcanvas.addCommand(aboutCommand);\n\tcanvas.setCommandListener(this);\n }", "private void initializeAvailableCommandMap() {\n availableCommandMap = new HashMap<String, Command>();\n availableCommandMap.put(\"cd\", new CdCommand());\n availableCommandMap.put(\"ls\", new LsCommand());\n availableCommandMap.put(\"mkdir\", new MkdirCommand());\n availableCommandMap.put(\"upload\", new UploadCommand());\n availableCommandMap.put(\"download\", new DownloadCommand());\n availableCommandMap.put(\"exit\", new ExitCommand());\n }", "public interface CommandHandlerFactory {\n public CommandHandler getHandler(Command command);\n}", "public interface ICommand {\n /**\n * The action each implementation of ICommand will execute when called\n */\n void execute();\n}", "private void initComponents() {\n\n // Executes when window is closed\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent) {\n store.run();\n setVisible(false);\n }\n });\n\n // Set up commands label\n commands = new JLabel(\"Commands: \");\n newGUI.setButtonFontSize(commands, fontSize);\n\n String[] userCommands = store.currentUser.returnSelectCommandsList();\n // Set up commands Combo Box\n availableCommands = new JComboBox<>(userCommands);\n availableCommands.setEditable(false);\n newGUI.setButtonFontSize(availableCommands, fontSize);\n availableCommands.addActionListener(this);\n\n currentCommand = availableCommands.getItemAt(0); // Set first command as default\n\n // Set up enter button\n enterButton = new JButton(\"Enter\");\n newGUI.setButtonFontSize(enterButton, fontSize);\n enterButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n enterButtonActionPerformed(evt);\n }\n });\n\n addComponents(getContentPane());\n }", "public CommandsFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public RobotContainer() { \n // Configure the button bindings\n configureButtonBindings();\n\n rDrive.setDefaultCommand(manualDrive);\n lift.setDefaultCommand(moveArm);\n }", "public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}", "void registerCommandBusForCommand( CommandBus commandBus, String commandName );", "public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }", "public interface CommandManagerService {\n\n\t/**\n\t * This method gets the available command types on the edge server and the\n\t * ID of the ReaderFactory that the command type works with.\n\t * \n\t * @return A set of CommandConfigPluginDTOs\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactories();\n\n\t/**\n\t * Get all the CommandConfigFactoryID associated with a readerFactoryID.\n\t * \n\t * @param readerFactoryID\n\t * @return\n\t */\n\tSet<CommandConfigFactoryDTO> getCommandConfigFactoriesByReaderID(String readerFactoryID);\n\n\t/**\n\t * Get the CommandConfigurationFactory\n\t * @param commandFactoryID\n\t * @return\n\t */\n\tCommandConfigFactoryDTO getCommandConfigFactory(\n\t\t\tString commandFactoryID);\n\n\t/**\n\t * Gets the DTOs for configured commands.\n\t * \n\t * @return a set of configured commands\n\t */\n\tSet<CommandConfigurationDTO> getCommands();\n\n\t/**\n\t * Gets the DTO for a given Command Configuration.\n\t * \n\t * @param commandConfigurationID\n\t * The ID of the commandConfiguration to get\n\t * @return A DTO for the configured command, or null if no command\n\t * configuration is available for the given ID\n\t */\n\tCommandConfigurationDTO getCommandConfiguration(\n\t\t\tString commandConfigurationID);\n\n\t/**\n\t * Gets the meta information necessary to construct a new Command.\n\t * \n\t * @param commandType\n\t * the type of command to make\n\t * @return an MBeanInfo object that describes how to make a new command\n\t */\n\tMBeanInfo getCommandDescription(String commandType);\n\n\t/**\n\t * Create a new Command.\n\t * \n\t * @param commandType\n\t * The type of the Command to make\n\t * @param properties\n\t * the properties of a Command\n\t * @return the id of new created command\n\t */\n\tString createCommand(String commandType, AttributeList properties);\n\n\t/**\n\t * Sets the properties of a Command.\n\t * \n\t * @param commandID\n\t * the ID of the command to set\n\t * @param properties\n\t * the new properties of the command\n\t */\n\tvoid setCommandProperties(String commandID, AttributeList properties);\n\n\t/**\n\t * Delete a command configuration.\n\t * \n\t * @param commandConfigurationID\n\t * the ID of the commandConfiguration to delete\n\t */\n\tvoid deleteCommand(String commandID);\n}", "public interface GuiFactory {\n\n Button createButton();\n CheckBox createCheckbox();\n\n\n}", "public interface CommandSender \n{\n /**\n * Handle a respond from the robot.\n * @param result The result.\n * @param originalCommand The command which was sent to the robot.\n */\n public void handleResponse(byte[] result, Command originalCommand);\n \n /**\n * Handle an error that occured when communicating to the robot.\n * @param code The error code that was sent by the robot.\n */\n public void handleError(int code);\n \n /**\n * Needed when sending a command repetitively to the robot.\n * @return The command string that should be used.\n */\n public Command getCurrentCommand();\n \n}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n drivetrain.setDefaultCommand(new RunCommand(\n () -> drivetrain.setTank(Math.pow(-joystick1.getY(), 3), Math.pow(joystick2.getY(), 3)), drivetrain));\n\n }", "private HorizontalPanel createCommands() {\n\t\tfinal HorizontalPanel bar = new HorizontalPanel();\n\t\tbar.addStyleName(AbstractField.CSS.cbtAbstractCommand());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Save button\n\t\t//-----------------------------------------------\n\t\tfinal CommandButton saveButton = new CommandButton(this, AbstractField.CONSTANTS.allSave(), actorUpdate, tab++);\n\t\tsaveButton.addStyleName(AbstractField.CSS.cbtCommandButtonTwo());\n\t\tsaveButton.addStyleName(AbstractField.CSS.cbtGradientBlue());\n\t\tsaveButton.setTitle(AbstractField.CONSTANTS.helpSave());\n\t\tbar.add(saveButton);\n\n\t\t//-----------------------------------------------\n\t\t// Delete button\n\t\t//-----------------------------------------------\n\t\tfinal CommandButton deleteButton = new CommandButton(this, AccessControl.DELETE_PERMISSION, AbstractField.CONSTANTS.allDelete(), actorDelete, tab++);\n\t\tdeleteButton.addStyleName(AbstractField.CSS.cbtCommandButtonTwo());\n\t\tdeleteButton.addStyleName(AbstractField.CSS.cbtGradientRed());\n\t\tdeleteButton.setTitle(AbstractField.CONSTANTS.helpDelete());\n\t\tbar.add(deleteButton);\n\n\t\t//-----------------------------------------------\n\t\t// Transition array that defines the finite state machine\n\t\t//-----------------------------------------------\n\t\tfsm = new ArrayList<Transition>();\n\t\tfsm.add(new Transition(Party.CREATED, saveButton, Party.CREATED));\n\t\tfsm.add(new Transition(Party.CREATED, deleteButton, Party.FINAL));\n\n\t\treturn bar;\n\t}", "public interface Command {\n void execute(final View view, CommandListener listener);\n}", "public CommandDirector() {\n\t\t//factory = ApplicationContextFactory.getInstance();\n\t\t//context = factory.getClassPathXmlApplicationContext();\n\t\t\n\t\t//commands.put(\"createEntry\", context.getBean(\"creationEntryCommand\", CreationEntryCommand.class));\n\t\t//commands.put(\"searchEntry\", context.getBean(\"searchingEntryCommand\", SearchingEntryCommand.class));\n\t\t\n\t\tcommands.put(\"createEntry\", new CreationEntryCommand());\n\t\tcommands.put(\"searchEntry\", new SearchingEntryCommand());\n\t\t\n\t}", "public interface CMLEditor {\n\n\tvoid executeCommand(CMLElement cmlIn);\n\n}", "public CommandFactory() {\n command = new HashMap<>();\n command.put(\"GET/login\", new EmptyCommand());\n command.put(\"POST/login\", new LoginCommand());\n command.put(\"GET/admin\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/user\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"GET/profile\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.USER_PATH));\n command.put(\"POST/ban\", new BanUserCommand());\n command.put(\"POST/changelang\", new ChangeLanguageCommand());\n command.put(\"POST/unban\", new UnbanUserCommand());\n command.put(\"POST/add\", new AddPublicationCommand());\n command.put(\"POST/delete\", new DeletePublicationCommand());\n command.put(\"GET/main\", new ForwardToMainCommand());\n command.put(\"GET/controller/error\", new ForwardToErrorCommand());\n command.put(\"GET/logout\", new LogoutCommand());\n command.put(\"POST/subscribe\", new SubscribeCommand());\n command.put(\"POST/unsubscribe\", new UnsubscribeCommand());\n command.put(\"POST/changename\", new ChangeNameCommand());\n command.put(\"POST/changepassword\", new ChangePasswordCommand());\n command.put(\"POST/adminchangename\", new SetUserNameCommand());\n command.put(\"POST/changebalance\", new SetUserBalanceCommand());\n command.put(\"POST/changepublicationprice\", new SetPublicationPriceCommand());\n command.put(\"POST/changepublicationname\", new SetPublicationNameCommand());\n command.put(\"POST/changepublicationtype\", new SetPublicationTypeCommand());\n command.put(\"GET/admin/publications\", new ForwardToProfileCommand(Pages.PUBLICATIONS_PATH, Pages.USER_PATH));\n command.put(\"GET/user/payments\", new ForwardToProfileCommand(Pages.ADMIN_PATH, Pages.PAYMENTS_PATH));\n command.put(\"GET/admin/users\", new ForwardToProfileCommand(Pages.USERS_PATH, Pages.USERS_PATH));\n command.put(\"POST/login/restore\", new RestorePasswordCommand());\n\n }", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private interface Command {\n public void execute();\n }", "public Widget() {\r\n\t\t\r\n\t\twidgets = new LinkedHashMap<Component, String>();\r\n\t\t\r\n\t}", "public void registerGui()\n {\n }", "public CommandBar(String[] towerNames, double ax, \r\n double awidth, double aheight)\r\n {\r\n towerTypes = towerNames;\r\n initX = ax;\r\n width = awidth;\r\n height = aheight;\r\n \r\n //initialize \"buttons\" and dummy list\r\n dummyList = new ArrayList<Unit>();\r\n towerButtons = new Rectangle2D.Double[towerTypes.length];\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n double x = initX + GAP;\r\n double y = (3*GAP + FONT_SIZE)*i + GAP;\r\n towerButtons[i] = new Rectangle2D.Double(x, y,\r\n width - 2*GAP, \r\n 2*GAP + FONT_SIZE);\r\n dummyList.add(generateDummy(towerTypes[i]));\r\n }\r\n \r\n display = new UnitDisplay();\r\n selectedIndex = -1;\r\n }", "public interface ReloadViewUICommand extends UICommandMdsl\n{\n}", "private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}", "public interface Command {\n void execute();\n\n void printCommandInfo();\n}", "public interface Command extends ResponseElement\n{\n\tpublic void setParameter(String paramName, Object paramValue);\n\n\tpublic void setModel(String model);\n\n\t/**\n\t * Return the name of the model specified for this command, in the form it would appear\n\t * in the configuration file\n\t */\n\tpublic String getModel();\n\n\t/**\n\t * Return a map of any parameter specified for this command\n\t */\n\tpublic Map getParameters();\n\n\t/**\n\t * Convenience method, equivilant to execute(req, res, false, false)\n\t */\n\tpublic ModelResponse execute(ModelRequest req, ModelResponse res) throws ModelException;\n\n\t/**\n\t * Execute the model specified by this command and return the model\n\t * response.\n\t * @param req The previous request. The model being will have this request available via\n\t * it's getPreviousRequest method\n\t * @param res The current response. The new response will always include any errors stored in this response,\n\t * but will not include any response elements already generated unless includeResponseElements is true\n\t * @param includeParams Include request parameters from the old request when building the new request. Normally,\n\t * a command has it's parameters set via \"setParameter\", just like a request, and these are the only parameters\n\t * used in the new request. If this flag is true, however, any parameters that exist in the current request\n\t * and that have not been specified via setParameter are populated from the current request.\n\t * @param includeResponseElements Include any response elements from the current response (res) in the newly\n\t * generated response. If an element in the new response has the same name as an element in the current response,\n\t * use the new one only.\n\t */\n\tpublic ModelResponse execute(ModelRequest req, ModelResponse res, boolean includeParams,\n\t\t\t\t\tboolean includeResponseElements) throws ModelException;\n\n\tpublic void setLabel(String newLabel);\n\n\tpublic String getLabel();\n\n\tpublic void setRelativeMovement(int numberOfSteps);\n\n\tpublic int getRelativeMovement();\n\n\tpublic void setBean(String bean);\n\n\tpublic String getBean();\n}", "@Override\r\n public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n setDefaultCommand(new joystick_lift_upAndDown());\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // Set the default command for a subsystem here.\r\n // setDefaultCommand(new MySpecialCommand());\r\n }", "public interface CommandLoader {\n\n\t/**\n\t * Gets list of commands in bundle\n\t * @return\n\t */\n\tList<CommandInfo> list();\n\t\n\t/**\n\t * Executes command\n\t * @param cmdName command name\n\t * @return\n\t */\n\tObject execute(String cmdName, String param);\n}", "interface DrawCommand {\n void draw();\n}", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "interface CommandBase {}", "ICommandTypeRegistry getCommandTypeRegistry();", "public Driver()\n {\n // instantiate joysticks & controllers here.\n\n // bind button objects to physical buttons here.\n\n // bind buttons to commands here.\n\n }", "public interface Command {\r\n \r\n /**\r\n * Executes this Command.\r\n */\r\n void execute();\r\n \r\n /**\r\n * Undoes this Commands.\r\n */\r\n void undo();\r\n}", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "private void AddUIViewAndHandlers()\n\t{\n\t\t// Set view and autocomplete text\t\t\n\t\tSetViewAndAutoCompleteText(VIEW_ID_COMMAND);\n\t\tSetViewAndAutoCompleteText(VIEW_ID_KEY);\n\t\t\n\t\t// Set handler\n\t\tmCommandViewHandler = MakeViewHandler(VIEW_ID_COMMAND);\t\t\n\t\tmKeyViewHandler = MakeViewHandler(VIEW_ID_KEY);\n\t}", "public interface GUIManagerInterface {\n\n \n /**\n * Methode zum abrufen der Eingabedaten\n * \n * @return Tabelle mit Eingabedaten\n */\n public Table<Integer, Integer, String> getData();\n \n /**\n * Methode zum Abrufen der bereits anonymisierten Daten\n * \n * @return Tabelle mit den anonymisierten Daten\n */\n public Table<Integer, Integer, String> getAnonymizedData();\n \n /**\n * Methode zum Abrufen der Metadaten\n * \n * @return MetaData-Objekt\n */\n public MetaData getMetaData();\n \n /**\n * Methode zum Aktualisieren der Metadaten\n * \n * @param newMetaData Das aktualisierte MetaData-Objekt\n */\n public void setMetaData(MetaData newMetaData);\n \n \n /**\n * Methode zum anonymisieren der Daten. \n * \n * @param metadata Die Metadaten zu den Daten\n * @param data\tDie zu anonymisierenden Daten\n * @param method\tDie Anonymisierungsmethode\n */\n public void anonymize(MetaData metadata, AnonymizingMethods method, \n\t Table<Double, Double, Double> data);\n \n /**\n * Methode zur Simulation eines Datenangriffs\n * \n * @param metadata\t Die Metadaten zu den Daten\n * @param method\t Die Matching-Methode\n * @param data\t Die echten Daten\n * @param anonymData Die anonymisierten Daten\n */\n public void match(MetaData metadata, MatchingMethods method, \n\t Table<Integer, Integer, String> data, \n\t Table<Integer, Integer, String> anonymData);\n\n \n}", "public interface Command {\r\n\r\n\tpublic void execute();\r\n\r\n}", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n setDefaultCommands();\n }", "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n configureDefaultCommands();\n }", "public interface Command {\n\n String getName();\n\n String getUsage();\n\n String getShortDescription();\n\n void execute(String command, PrintStream out);\n}", "public OI() {\n // Xbox Controller 0 Buttons\n \tButtonMap.xbox0_Y.whileHeld(new TransmissionAscend());\n \tButtonMap.xbox0_A.whileHeld(new TransmissionDescend());\n \tButtonMap.xbox0_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox0_L1.whenPressed(new ClawOpen());\n \t\n \t// Drive Commands\n \tButtonMap.xbox0_B.whileHeld(new DriveFullSpeedWithJoystick());\n ButtonMap.xbox0_B.whenReleased(new ArcadeTriggerDriveWithJoystick());\n \t\n \t// Xbox Controller 1 Buttons\n \tButtonMap.xbox1_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox1_L1.whenPressed(new ClawOpen()); \n \tButtonMap.xbox1_Y.whileHeld(new TransmissionAscend()); \n \tButtonMap.xbox1_A.whileHeld(new TransmissionDescend()); \n }", "@FunctionalInterface\n\tpublic interface Command {\n\t\t/**\n\t\t * Decides whether a certain code is down or not.\n\t\t *\n\t\t * @param code The button code\n\t\t *\n\t\t * @return True if the button specified by the code is down in the input system, false otherwise.\n\t\t */\n\t\tboolean isDown(int code);\n\t}", "public Command() {\r\n\t\t// If default, use a local one.\r\n\t\tmYCommandRegistry = LocalCommandRegistry.getGlobalRegistryStatic();\r\n\t}", "public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}", "private ProgramGUI() {\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(1, 2));\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n\t\tpanel.add(new JLabel(\"Enter Command: \"));\n\t\tcmd = new JTextField();\n\t\tpanel.add(cmd);\n\t\tadd(panel, BorderLayout.NORTH);\n\t\tJPanel button = new JPanel();\n\t\tJButton ok = new JButton(\"Confirm Command\");\n\t\tJButton logout = new JButton(\"Log Out\");\n\t\tok.addActionListener(new OKListener());\n\t\tlogout.addActionListener(new LogoutListener());\n\t\tbutton.add(ok);\n\t\tbutton.add(logout);\n\t\tadd(button, BorderLayout.SOUTH);\n\t\tsetVisible(true);\n\t\tif(isTillOpen) {\n\t\t\tsetTitle(\"Till Open\");\n\t\t}\n\t\telse {\n\t\t\tsetTitle(\"Till Closed\");\n\t\t}\n\t}", "public interface Command {\n void doSomothing();//具体做什么\n}", "public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}", "public PacManUiBuilder() {\n this.defaultButtons = false;\n this.buttons = new LinkedHashMap<>();\n this.keyMappings = new HashMap<>();\n }", "public interface Command{\n public void execute();\n\n}", "public interface CommandHandler {\n\n\t/**\n\t * Receive and handle the given Command.\n\t * @param c The Command to be handled.\n\t */\n\tpublic void handleCommand(String command);\n}", "@Override\n public Cli<C> build() {\n ParserMetadata<C> parserConfig = this.parserBuilder.build();\n\n CommandMetadata defaultCommandMetadata = null;\n List<CommandMetadata> allCommands = new ArrayList<CommandMetadata>();\n if (defaultCommand != null) {\n defaultCommandMetadata = MetadataLoader.loadCommand(defaultCommand, baseHelpSections, parserConfig);\n }\n\n List<CommandMetadata> defaultCommandGroup = defaultCommandGroupCommands != null\n ? MetadataLoader.loadCommands(defaultCommandGroupCommands, baseHelpSections, parserConfig)\n : new ArrayList<CommandMetadata>();\n\n allCommands.addAll(defaultCommandGroup);\n if (defaultCommandMetadata != null)\n allCommands.add(defaultCommandMetadata);\n\n // Build groups\n List<CommandGroupMetadata> commandGroups;\n if (groups != null) {\n commandGroups = new ArrayList<CommandGroupMetadata>();\n for (GroupBuilder<C> groupBuilder : groups.values()) {\n commandGroups.add(groupBuilder.build());\n }\n } else {\n commandGroups = new ArrayList<>();\n }\n\n // Find all commands registered in groups and sub-groups, we use this to\n // check this is a valid CLI with at least 1 command\n for (CommandGroupMetadata group : commandGroups) {\n allCommands.addAll(group.getCommands());\n if (group.getDefaultCommand() != null)\n allCommands.add(group.getDefaultCommand());\n\n // Make sure to scan sub-groups\n Queue<CommandGroupMetadata> subGroups = new LinkedList<CommandGroupMetadata>();\n subGroups.addAll(group.getSubGroups());\n while (!subGroups.isEmpty()) {\n CommandGroupMetadata subGroup = subGroups.poll();\n allCommands.addAll(subGroup.getCommands());\n if (subGroup.getDefaultCommand() != null)\n allCommands.add(subGroup.getDefaultCommand());\n subGroups.addAll(subGroup.getSubGroups());\n }\n }\n\n // add commands to groups based on the value of groups in the @Command\n // annotations\n // rather than change the entire way metadata is loaded, I figured just\n // post-processing was an easier, yet uglier, way to go\n MetadataLoader.loadCommandsIntoGroupsByAnnotation(allCommands, commandGroups, defaultCommandGroup,\n baseHelpSections, parserConfig);\n\n // Build restrictions\n // Use defaults if none specified\n if (restrictions.size() == 0)\n withDefaultRestrictions();\n\n if (allCommands.size() == 0)\n throw new IllegalArgumentException(\"Must specify at least one command to create a CLI\");\n\n // Build metadata objects\n GlobalMetadata<C> metadata = MetadataLoader.<C> loadGlobal(name, description, defaultCommandMetadata,\n ListUtils.unmodifiableList(defaultCommandGroup), ListUtils.unmodifiableList(commandGroups),\n ListUtils.unmodifiableList(restrictions), Collections.unmodifiableCollection(baseHelpSections.values()),\n parserConfig);\n\n return new Cli<C>(metadata);\n }", "private ControllerHelper() {\n commands.put(\"userlogin\", new UserLoginCommand());\n commands.put(\"register\", new RegisterCommand());\n commands.put(\"gotocategory\", new GoCategoryCommand());\n commands.put(\"gotomainpage\", new GoToMainPageCommand());\n commands.put(\"showitem\", new ShowItemCommand());\n commands.put(\"addtocart\", new AddToCartCommand());\n commands.put(\"removeitemfromcart\", new RemoveItemFromCartCommand());\n\n commands.put(\"makeorder\", new MakeOrderCommand());\n commands.put(\"removeitemfromorder\", new RemoveItemFromOrderCommand());\n commands.put(\"cancelorder\", new CancelOrderCommand());\n commands.put(\"payorder\", new PayOrderCommand());\n commands.put(\"editorder\", new EditOrderCommand());\n commands.put(\"confirmpayment\", new ConfirmPaymentCommand());\n commands.put(\"removeallnotpaidorders\", new RemoveAllNotPaidOrders());\n\n commands.put(\"gotousermanagementpage\", new GoToUserManagementPageCommand());\n commands.put(\"gotoitemmanagementpage\", new GoToItemManagementPage());\n\n commands.put(\"edititem\", new EditItemCommand());\n commands.put(\"updateitem\", new UpdateItemCommand());\n commands.put(\"additem\", new AddNewItemCommand());\n commands.put(\"deleteitem\", new DeleteItemCommand());\n\n commands.put(\"addusertoblocklist\", new AddUserToBlockList());\n commands.put(\"removeuserfromblocklist\", new RemoveUserFromBlockList());\n commands.put(\"userregistration\", new UserRegistrationCommand());\n commands.put(\"userlogout\", new UserLogOutCommand());\n commands.put(\"userupdate\", new UserUpdateCommand());\n commands.put(\"changeuserpassword\", new ChangeUserPassword());\n }", "public interface AbstractWidgetFactory {\n public Window createWindow();\n}", "public TUI(MazeGameData maze, ArrayList<Command> commands) {\n\t\tif (maze == null) {\n\t\t\tthrow new IllegalArgumentException(ExceptionMessages.NULL_MAZE_GAME_DATA);\n\t\t}\n\t\tif (commands == null) {\n\t\t\tthrow new IllegalArgumentException(ExceptionMessages.NULL_COMMAND_LIST);\n\t\t}\n\t\tthis.mazeData = maze;\n\t\tthis.mazeViewBuilder = new MazeViewBuilder(this.mazeData.getMaze(), this.mazeData.getCurrentPosition());\n\t\tthis.commands = commands;\n\t\tthis.console = new Scanner(System.in);\n\t}", "public CommandWords()\n {\n validCommands = new HashMap<String, CommandWord>();\n for(CommandWord command : CommandWord.values()) \n {\n if(command != CommandWord.UNKNOWN) \n {\n validCommands.put(command.toString(), command);\n }\n }\n \n commands = new HashMap<CommandWord, Command>();\n commands.put(CommandWord.GO, new GoCommand());\n commands.put(CommandWord.HELP, new HelpCommand());\n commands.put(CommandWord.QUIT, new QuitCommand());\n commands.put(CommandWord.EAT, new EatCommand());\n commands.put(CommandWord.SEE, new SeeCommand());\n commands.put(CommandWord.TAKE, new TakeCommand());\n commands.put(CommandWord.DROP, new DropCommand());\n //commands.put(CommandWord.TO, new ToCommand());\n //commands.put(CommandWord.LOCK, new LockCommand());\n //commands.put(CommandWord.UNLOCK, new UnlockCommand());\n commands.put(CommandWord.USEITEM, new UseCommand());\n commands.put(CommandWord.INSPECT, new InspectCommand());\n commands.put(CommandWord.TEST, new TestCommand());\n commands.put(CommandWord.INSPECTBAG, new InspectBagCommand());\n //commands.put(CommandWord.BACK, new BackCommand());\n commands.put(CommandWord.TALK, new TalkCommand());\n commands.put(CommandWord.BUY, new BuyCommand());\n commands.put(CommandWord.ALEA, new AleaCommand());\n commands.put(CommandWord.FREEZE, new FreezeCommand());\n }", "@Override\r\n\t//launches commands at idle to\r\n\tprotected void initDefaultCommand() {\n\t\tsetDefaultCommand(new OperateJoystick());\r\n\t}", "public static void register()\r\n {\r\n // This handles ridden input controls, auto-recalling of pokemobs, and\r\n // auto-selection of moves.\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onPlayerTick);\r\n\r\n // This one handles allowing the player to interact with mobs which are\r\n // larger than the vanilla hitboxes.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onMouseInput);\r\n\r\n // This one handles scrolling the message display while in chat.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onMouseScroll);\r\n\r\n // Here we handle the various keybindings for the mod\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onKeyInput);\r\n\r\n // This renders the pokemob's icons over the pokecubes when alt is held\r\n // in an inventory.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onRenderGUIScreenPre);\r\n // And this does it for the hotbar.\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, EventsHandlerClient::onRenderHotbar);\r\n\r\n // Now for some additional client side handlers\r\n\r\n // Register the event for drawing the move messages\r\n MinecraftForge.EVENT_BUS.addListener(EventPriority.LOWEST, false, GuiInfoMessages::draw);\r\n // Register the handler for drawing things like evolution, etc\r\n MinecraftForge.EVENT_BUS.addListener(RenderMobOverlays::renderSpecial);\r\n // Register the handler for drawing selected box around targeted\r\n // entities for throwing cubes at\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::renderBounds);\r\n // Used to dismount shoulder mobs\r\n MinecraftForge.EVENT_BUS.addListener(EventsHandlerClient::onLeftClickEmpty);\r\n\r\n // Initialise this gui\r\n GuiDisplayPokecubeInfo.instance();\r\n MoveAnimationHelper.Instance();\r\n }", "public interface CommManagerInterface {\r\n\r\n /**\r\n * 执行comm命令\r\n */\r\n public String comm(List<String> paramerList);\r\n}", "public interface Command {\n\t\t\n\t/**\n\t * Executes the command.\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @return the value the command evaluates to\n\t * @throws InvalidCommandException\n\t */\n\tabstract public double execute(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Executes the command and replaces it with a constant command if the command is not a turtle command\n\t * @param (TurtleModel) t the turtle executing the command\n\t * @throws InvalidCommandException\n\t */\n\tabstract public void execNonTurtle(TurtleModel t) throws InvalidCommandException;\n\t\n\t/**\n\t * Checks if the command is a turtle command\n\t * @return true iff the command is a turtle command\n\t */\n\tabstract public boolean isTurtleCommand();\n\t\n\t/**\n\t * Checks if the command is a variable command\n\t * @return true iff the command is a variable command\n\t */\n\tabstract public boolean isVariableCommand();\n\t\n\t/**\n\t * Adds a command to this commands list of children/arguments\n\t * @param cmd\n\t */\n\tabstract public void addChild(Command cmd);\n\t\n\t/**\n\t * Replaces this command with another, by making the replacement the parent's child instead of this.\n\t * @param replacement\n\t */\n\tabstract public void selfReplace(Command replacement);\n\t\n\t/**\n\t * Checks if the command needs more arguments\n\t * @return true iff command can hold more arguments\n\t */\n\tabstract public boolean argsNotFull();\n\t\n\t/**\n\t * Gets the maximum arguments the command can hold\n\t * @return maximum arguments\n\t */\n\tabstract public int maxArgs();\n\t\n\t/**\n\t * Gets string representation of the command. Mostly used for debugging.\n\t * @return string representation\n\t */\n\tabstract public String toString();\n\t\n\t/**\n\t * Gets the command's name \n\t * @return the command's name\n\t */\n\tabstract public String getName();\n\t\n\t/**\n\t * Gets the commands children\n\t * @return the list of children\n\t */\n\tabstract public List<Command> getChildren();\n\t\n\t/**\n\t * Gets child index\n\t * @param index\n\t * @return the child at index index\n\t */\n\tabstract public Command getChild(int index);\n\t\n\t/**\n\t * Gets the command's parent\n\t * @return parent\n\t */\n\tabstract public Command getParent();\n\t\n\t/**\n\t * Sets the command's parent to cmd\n\t * @param cmd\n\t */\n\tabstract public void setParent(Command cmd);\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to t\n\t * @param t\n\t */\n\tabstract public void setTurtle(TurtleModel t);\n\t\n\t/**\n\t * Gets the TurtleModel used for execution\n\t * @return the TurtleModel used for execution\n\t */\n\tabstract public TurtleModel getTurtle();\n\t\n\t/**\n\t * Sets the TurtleModel used for execution to value, and calls setTurtleRecursive(value)\n\t * on this turtle's parent\n\t * @param value\n\t */\n\tpublic abstract void setTurtleRecursive(TurtleModel value);\n}", "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n setDefaultCommand(new joystickDrive());\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \n \n \n }", "public interface IActivityCommandFactory {\n /**\n * creates command to be executed.\n * @param requestType\n * @param title\n * @param points\n * @param source\n * @param activity_id\n * @return\n * @throws Exception\n */\n ICommand getCommand(String requestType, String title, String points, String source, String activity_id) throws Exception;\n}", "public void register(Class<? extends Command> c) {\n CommandInfo info = c.getAnnotation(CommandInfo.class);\n if (info == null) return;\n \n try {\n commands.put(info.pattern(), c.newInstance());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "public interface\n\t\tCommandHandler\n\t{\n\t\t/**\n\t\t Interprets a command string\n\n\t\t @param command the command string\n\t\t*/\n\t\tpublic void\n\t\t\thandleCommand(/*@ non_null */ String command);\n\t}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}" ]
[ "0.66856664", "0.6573705", "0.64285094", "0.6344556", "0.6218171", "0.6178763", "0.6160701", "0.605374", "0.60045505", "0.59994745", "0.5963101", "0.5936064", "0.58887345", "0.5849163", "0.5843804", "0.5833636", "0.582343", "0.5805027", "0.5785961", "0.57672876", "0.5739513", "0.5665231", "0.56211686", "0.5617357", "0.55915314", "0.5590154", "0.55895096", "0.55758625", "0.5557763", "0.555296", "0.5534129", "0.5531461", "0.55300444", "0.55298454", "0.55269074", "0.55263424", "0.55261797", "0.5520571", "0.55057645", "0.5504597", "0.5498732", "0.5493634", "0.5491245", "0.54908526", "0.5471567", "0.54503363", "0.5449733", "0.544688", "0.54403365", "0.54351985", "0.5431178", "0.54217887", "0.5419781", "0.5419453", "0.5406012", "0.54032034", "0.5398363", "0.53877795", "0.53738296", "0.5369767", "0.53673357", "0.53445363", "0.5335194", "0.5334581", "0.5330426", "0.53290546", "0.53265417", "0.53087777", "0.53058285", "0.53040093", "0.5297922", "0.5297126", "0.5295379", "0.5295219", "0.5294268", "0.5278816", "0.5268506", "0.5266836", "0.5260091", "0.5259404", "0.5256625", "0.52539104", "0.52536494", "0.5251242", "0.52484214", "0.52464265", "0.52264524", "0.52226484", "0.52218413", "0.52109444", "0.5208308", "0.52009106", "0.5198614", "0.51924103", "0.51918215", "0.5191436", "0.51912373", "0.5191094", "0.51910377", "0.51910377" ]
0.7960992
0
Registers the given widget and the command it generates. This permits (de)sensitization of the widget by the setCommandSensitivity method.
void registerCommandDependentWidget(MiPart widget, String command);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void registerWidget(String socketName, IWidget widget) {\n\t\tint widgetId = widgetIdCounter++;\n\t\tHeadElement head = Document.get().getHead();\n\t\tif(widget.getStylingUrls() != null) {\n\t\t\tfor(String styleUrl : widget.getStylingUrls()) {\n\t\t\t\tLinkElement cssLink = LinkElement.as(DOM.createElement(\"link\"));\n\t\t\t\tcssLink.setRel(\"stylesheet\");\n\t\t\t\tcssLink.setHref(styleUrl);\n\t\t\t\tcssLink.addClassName(\"sccp-widget-\" + widgetId);\n\t\t\t\thead.appendChild(cssLink);\n\t\t\t}\n\t\t}\n\t\tif(widget.getScriptUrls() != null) {\n\t\t\tfor(String scriptUrl : widget.getScriptUrls()) {\n\t\t\t\tScriptElement scriptLink = ScriptElement.as(DOM.createElement(\"script\"));\n\t\t\t\tscriptLink.setSrc(scriptUrl);\n\t\t\t\tscriptLink.addClassName(\"sccp-widget-\" + widgetId);\n\t\t\t\thead.appendChild(scriptLink);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(widget.getStaticContent() != null) {\n\t\t\tBodyElement body = Document.get().getBody();\n\t\t\tDivElement staticContentDiv = DivElement.as(DOM.createDiv());\n\t\t\tstaticContentDiv.setInnerHTML(widget.getStaticContent());\n\t\t\tstaticContentDiv.setId(\"sccp-widget-\" + widgetId);\n\t\t\tbody.appendChild(staticContentDiv);\n\t\t}\n\t\t\n\t\twidgets.put(widgetId, widget);\n\t\tISocketDefinition socket = getOrCreateSocketDefinition(socketName);\n\t\tsocket.addWidget(widget);\n\t\t\n\t\t//TODO: Check if this Widget is usable by any Sockets awaiting Widget\n\t}", "void\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);", "@Override\n public void add(Widget widget) {\n add(widget, getElement());\n }", "protected void register(String widgetClass, Invoker creator) {\n creators.put(widgetClass, creator);\n }", "public void addWidget(Widget w) {\n widgets.add(w);\n selectNone();\n selectWidget(w);\n PropManager.getInstance().addPropEditor(w.getModel());\n TreeView.getInstance().addWidget(getKey(), w.getKey());\n repaint();\n }", "public static void createWidget(Activity act) {\n logger.debug(\"/onCreateWidget/suggesting user to add widget to dashboard\");\n AppWidgetHost host = new AppWidgetHost(act, HOST_CODE);\n int nextId = host.allocateAppWidgetId();\n Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK);\n pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, nextId);\n act.startActivityForResult(pickIntent, ADD_WIDGET_KEY_CODE);\n\n }", "private void addAppWidget(Intent data) {\n int appWidgetId = data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);\n\n AppWidgetProviderInfo appWidget = mAppWidgetManager.getAppWidgetInfo(appWidgetId);\n\n if (appWidget.configure != null) {\n // Launch over to configure widget, if needed\n Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);\n intent.setComponent(appWidget.configure);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n\n startActivityForResult(intent, REQUEST_CREATE_APPWIDGET);\n } else {\n // Otherwise just add it\n onActivityResult(REQUEST_CREATE_APPWIDGET, Activity.RESULT_OK, data);\n }\n }", "private void configureWidget(Intent data) {\n Bundle extras = data.getExtras();\n int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);\n AppWidgetProviderInfo appWidgetInfo = getAppWidgetManager().getAppWidgetInfo(appWidgetId);\n\n if (appWidgetInfo.configure != null) {\n Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE);\n intent.setComponent(appWidgetInfo.configure);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n startActivityForResult(intent, REQUEST_CREATE_APPWIDGET);\n } else {\n createWidget(data);\n }\n }", "protected abstract void registerCommands(CommandHandler handler);", "@Override\n\tpublic LSystemBuilder registerCommand(char symbol, String command) {\n\t\tcommands.put(symbol, command);\n\t\treturn this;\n\t}", "private void registerCommands() {\n }", "@Override\n public void setWidget(Object arg0)\n {\n \n }", "public void registerCommand(Commands cmd) {\n\n String cmdName = cmd.getName();\n if(cmdMap.containsKey(cmdName))\n throw new IllegalArgumentException(cmdName + \" already defined.\");\n\n cmdMap.put(cmdName, cmd);\n }", "void setWidget(Button widget) {\n mWidget = widget;\n }", "private void setWidgetAsExample (Widget widget)\n {\n exampleArea.clear();\n exampleArea.add(widget);\n }", "public static void register(LiteralArgumentBuilder<CommandSource> subCommand) {\n subCommand.requires(sender -> sender.hasPermissionLevel(MantleCommand.PERMISSION_GAME_COMMANDS))\n .then(Commands.argument(\"targets\", EntityArgument.entities())\n // slots <target> add <slot_type> [<count>]\n .then(Commands.literal(\"add\")\n .then(Commands.argument(\"slot_type\", SlotTypeArgument.slotType(false))\n .executes(context -> run(context, Operation.ADD, 1))\n .then(Commands.argument(\"count\", IntegerArgumentType.integer())\n .executes(context -> run(context, Operation.ADD)))))\n // slots <target> set <slot_type> <count>\n .then(Commands.literal(\"set\")\n .then(Commands.argument(\"slot_type\", SlotTypeArgument.slotType(false))\n .then(Commands.argument(\"count\", IntegerArgumentType.integer(0))\n .executes(context -> run(context, Operation.SET))))));\n }", "public final void register(ConsoleCmd cmd) {\n if (cmdList.containsKey(cmd.name)) {\n logger.warn(\"Trying to add command '{}', which already exists!\", cmd.getName());\n return;\n }\n cmdList.put(cmd.name, cmd);\n }", "@Test\n public void testCreateWidget() throws Exception {\n WidgetUtils.RemoveWidgetByName(driver, wait, baseUrl, widgetName);\n\n //Create widget with specific parameter\n driver = WidgetUtils.CreateWidgetWithParameter(driver, wait, baseUrl, widgetName, paramName);\n }", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "public void addCommand(Command m);", "public void addDrawingCommand(DrawingCommand drawingCommand) {\r\n\t\tthis.commands.add(drawingCommand);\r\n\t\tthis.setChanged();\r\n\t\tthis.notifyObservers();\r\n\t\temptyRedo();\r\n\t}", "public void initiateWidgetRename(IWidget w)\n {\n view.setWidgetName(w.getName());\n view.requestRename();\n }", "public interface MiiCommandManager\n\t{\n\t\t\t/**------------------------------------------------------\n\t\t\t * Registers the given widget and the command it generates.\n\t\t\t * This permits (de)sensitization of the widget by the\n\t\t\t * setCommandSensitivity method. \n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#unRegisterWidgetGeneratedCommand\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tregisterCommandDependentWidget(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * UnRegisters the given widget and the command it generates.\n\t\t\t * Either the given widget or the given command may be null.\n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command is to be visible to the\n\t\t\t * user. This method typically (hides)shows the widgets \n\t\t\t * that have been associated with the command.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the user can now see the\n\t\t\t *\t\t\tcommand (whether sensitive or not)\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @implements\t\t\n\t\t\t *\tMiiCommandManager#setCommandVisibility\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandVisibility(String command, boolean flag);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget).\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget). This method is designed\n\t\t\t * to display a status bar message that describes why a \n\t\t\t * particular widget is desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @param statusHelpMsg the new status bar message\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @see\tMiiCommandManager#setCommandSensitivity\n\t\t\t * @see\tMiCommandManager#setCommandSensitivity\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag, String statusHelpMsg);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the boolean widget that generates the \n\t\t\t * given command. This is used for initializing toggle \n\t\t\t * buttons.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the two state widget is\n\t\t\t *\t\t\tto be 'set'.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the multi-state widget that generates\n\t\t\t * the given command. This is used for initializing widgets \n\t\t\t * like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param state\t\tthe current state, one of many.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, String state);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the label of the widget that generates the given \n\t\t\t * command. This is used for initializing widgets like\n\t\t\t * labels and menubar buttons, push button etc.\n\t\t\t * @param command \tthe command\n\t\t\t * @param label\t\tthe new label\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandLabel(String command, String label);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the values of the multi-state widget that generates\n\t\t\t * the given command. This is used for setting the possible\n\t\t\t * values of widgets like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param options\tthe new contents of the widget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandOptions(String command, Strings options);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the given property to the given value for all parts\n\t\t\t * that generates the given command. This is used for, say,\n\t\t\t * changing the status help message on a widget that may\n\t\t\t * only be situationally and temporarily desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param propertyName\tthe property name\n\t\t\t * @param propertyValue\tthe value\n\t\t\t * @implements\t\tMiiCommandManager#setCommandState\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);\n\t}", "public void registerCommand(Command c) {\n\t\tcommands.add(c);\n\t}", "public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }", "public void setWidget(Widget widget, String location) {\n \n if (widget == null) {\n return;\n }\n \n // If no given location is found in the layout, and exception is throws\n Element elem = (Element) locationToElement.get(location);\n if (elem == null && hasTemplate()) {\n throw new IllegalArgumentException(\"No location \" + location\n + \" found\");\n }\n \n // Get previous widget\n Widget previous = (Widget) locationToWidget.get(location);\n // NOP if given widget already exists in this location\n if (previous == widget) {\n return;\n }\n remove(previous);\n \n // if template is missing add element in order\n if (!hasTemplate()) {\n elem = getElement();\n }\n \n // Add widget to location\n super.add(widget, elem);\n locationToWidget.put(location, widget);\n }", "private void notifyWidget() {\n if (getActivity() != null) {\n ComponentName widget = new ComponentName(getActivity().getApplication(),\n RecipeWidgetProvider.class);\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(getActivity());\n int[] ids = appWidgetManager.getAppWidgetIds(widget);\n appWidgetManager.notifyAppWidgetViewDataChanged(ids, R.id.widget_list);\n RecipeWidgetProvider widgetProvider = new RecipeWidgetProvider();\n widgetProvider.updateWidget(getActivity().getApplication(), ids);\n }\n }", "public void registerGui()\n {\n }", "private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }", "void registerCommandBusForCommand( CommandBus commandBus, String commandName );", "public void registerCommand(String cmd, BaseCommand executor) throws Exception {\n\t\tPluginCommand command = Bukkit.getServer().getPluginCommand(cmd.toLowerCase());\n\t\tif (command == null) {\n\t\t\tConstructor<?> constructor = PluginCommand.class.getDeclaredConstructor(String.class, Plugin.class);\n\t\t\tconstructor.setAccessible(true);\n\t\t\tcommand = (PluginCommand) constructor.newInstance(cmd, RavenPlugin.get());\n\t\t}\n\t\tcommand.setExecutor(executor);\n\t\tList<String> list = Arrays.asList(executor.aliases);\n\t\tcommand.setAliases(list);\n\t\tif (command.getAliases() != null) {\n\t\t\tfor (String alias : command.getAliases())\n\t\t\t\tunregisterCommand(alias);\n\t\t}\n\t\ttry {\n\t\t\tField field = executor.getClass().getDeclaredField(\"description\");\n\t\t\tfield.setAccessible(true);\n\t\t\tif (field != null && field.get(executor) instanceof String)\n\t\t\t\tcommand.setDescription(ChatColor.translateAlternateColorCodes('&', (String) field.get(executor)));\n\t\t} catch (Exception ex) {}\n\t\tcommandMap.register(cmd, command);\n\t}", "public void add(Widget w) {\n throw new UnsupportedOperationException();\n }", "public void addWidget(String name,Widget element){\n contentForm.addWidget(name, element);\r\n }", "@Override\n public void addCommand(CommandConfig command) {\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n\n // Excute add widget to homescreen\n AppWidgetManager appWidgetManager =\n context.getSystemService(AppWidgetManager.class);\n ComponentName myProvider = widget.getComponentName();\n\n if (appWidgetManager.isRequestPinAppWidgetSupported()) {\n // Create the PendingIntent object only if your app needs to be notified\n // that the user allowed the widget to be pinned. Note that, if the pinning\n // operation fails, your app isn't notified.\n Intent pinnedWidgetCallbackIntent = new Intent();\n\n // Configure the intent so that your app's broadcast receiver gets\n // the callback successfully. This callback receives the ID of the\n // newly-pinned widget (EXTRA_APPWIDGET_ID).\n PendingIntent successCallback = PendingIntent.getBroadcast(context, 0,\n pinnedWidgetCallbackIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n appWidgetManager.requestPinAppWidget(myProvider, null, successCallback);\n }\n\n }", "public void createWidget(Intent data) {\n\n if (data == null) return;\n\n Bundle extras = data.getExtras();\n\n int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);\n AppWidgetProviderInfo appWidgetInfo = getAppWidgetManager().getAppWidgetInfo(appWidgetId);\n\n // Build Launcher-specific widget info and save\n LauncherAppWidgetInfo launcherInfo = new LauncherAppWidgetInfo(appWidgetId);\n launcherInfo.setHostView(getAppWidgetHost().createView(MainActivity.this, appWidgetId, appWidgetInfo));\n launcherInfo.getHostView().setAppWidget(appWidgetId, appWidgetInfo);\n\n WidgetFragment fragment = getCurrentWidgetFragment();\n if (fragment != null) {\n ItemInfo info = fragment.attachWidget(launcherInfo);\n if (info != null) {\n WidgetPersistance.addDesktopAppWidget(fragment.getScreen(), info);\n }\n getAppWidgetHost().startListening();\n }\n }", "public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }", "public void put(WidgetData widgetData) {\n\t\tthis.put(widgetData.getId(), widgetData);\n\t}", "public JComponent setWidget( JComponent w ) {\n widget = w;\n return w;\n }", "@SuppressWarnings(\"unchecked\")\n public void insertCommand(final @NonNull Command<C> command) {\n synchronized (this.commandLock) {\n Node<CommandArgument<C, ?>> node = this.internalTree;\n for (final CommandArgument<C, ?> argument : command.getArguments()) {\n Node<CommandArgument<C, ?>> tempNode = node.getChild(argument);\n if (tempNode == null) {\n tempNode = node.addChild(argument);\n } else if (argument instanceof StaticArgument && tempNode.getValue() != null) {\n for (final String alias : ((StaticArgument<C>) argument).getAliases()) {\n ((StaticArgument<C>) tempNode.getValue()).registerAlias(alias);\n }\n }\n if (node.children.size() > 0) {\n node.children.sort(Comparator.comparing(Node::getValue));\n }\n tempNode.setParent(node);\n node = tempNode;\n }\n if (node.getValue() != null) {\n if (node.getValue().getOwningCommand() != null) {\n throw new IllegalStateException(String.format(\n \"Duplicate command chains detected. Node '%s' already has an owning command (%s)\",\n node.toString(), node.getValue().getOwningCommand().toString()\n ));\n }\n node.getValue().setOwningCommand(command);\n }\n // Verify the command structure every time we add a new command\n this.verifyAndRegister();\n }\n }", "public void register(Class<? extends Command> c) {\n CommandInfo info = c.getAnnotation(CommandInfo.class);\n if (info == null) return;\n \n try {\n commands.put(info.pattern(), c.newInstance());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void bindDEAppWidget(Sentence latestSentence, int widgetType) {\n RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.widget);\n views.setTextViewText(R.id.content, latestSentence.getContent());\n views.setTextViewText(R.id.day, latestSentence.getDateline());\n\n Intent launchIntent = new Intent(mContext, MainActivity.class);\n launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n launchIntent.setAction(\"launch list\");\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, launchIntent, 0);\n views.setOnClickPendingIntent(R.id.launcher_icon, pendingIntent);\n if (latestSentence.getId() != null) {\n Intent detailIntent = new Intent(mContext, MainActivity.class);\n detailIntent.putExtra(Constants.KEY_WIDGET_SENTENCE_ID, latestSentence.getId());\n detailIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);\n detailIntent.setAction(\"launch detail\");\n pendingIntent = PendingIntent.getActivity(mContext, 0, detailIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n }\n views.setOnClickPendingIntent(R.id.right_part, pendingIntent);\n AppWidgetManager.getInstance(mContext).updateAppWidget(new ComponentName(mContext,\n widgetType == TYPE_4_1 ? DEAppWidgetProvider41.class : DEAppWidgetProvider51.class), views);\n }", "public void addCommand(ICommand command) {\n command.setBlockStart(currentBlockStart);\n if (command instanceof BlockEnd) {\n currentBlockStart.setBlockEnd((BlockEnd) command);\n currentBlockStart = blockStack.pop();\n }\n if (command instanceof BlockStart) {\n blockStack.push(currentBlockStart);\n currentBlockStart = (BlockStart) command;\n }\n commandList.add(command);\n hasNativeAlertHandler |= command.isNativeAlertHandler();\n }", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "CommandHandler() {\n registerArgument(new ChallengeCmd());\n registerArgument(new CreateCmd());\n }", "@Override\n public void visit(WidgetVisitor visitor) {\n }", "private void createSearchPanel(Composite comp) {\n\t\tComposite searchPanel = new Composite(comp, SWT.NONE);\n\t\tGridLayout layout = new GridLayout(6, false);\n\t\tlayout.verticalSpacing = layout.horizontalSpacing = 0;\n\t\tlayout.marginHeight = 0;\n\t\tsearchPanel.setLayout(layout);\n\t\tsearchPanel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tLabel label = new Label(searchPanel, SWT.LEFT);\n\t\tlabel.setText(Messages.HexEditorControl_17);\n\t\tfindText = new Text(searchPanel, SWT.LEFT | SWT.BORDER);\n\t\tfindText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tToolBar bar1 = new ToolBar(searchPanel, SWT.HORIZONTAL | SWT.FLAT);\n\t\tfinal ToolItem findHex = new ToolItem(bar1, SWT.CHECK);\n\t\tfindHex.setText(\"0x\"); //$NON-NLS-1$\n\t\tfindHex.setToolTipText(Messages.HexEditorControl_19);\n\t\tfinal ToolItem next = new ToolItem(bar1, SWT.PUSH);\n\t\tnext.setText(Messages.HexEditorControl_20);\n\t\tfinal ToolItem prev = new ToolItem(bar1, SWT.PUSH | SWT.FLAT);\n\t\tprev.setText(Messages.HexEditorControl_21);\n\t\tfinal ToolItem matchCase = new ToolItem(bar1, SWT.CHECK);\n\t\tmatchCase.setText(Messages.HexEditorControl_22);\n\t\tfinal ToolItem wrap = new ToolItem(bar1, SWT.CHECK);\n\t\twrap.setText(Messages.HexEditorControl_23);\n\n\t\treplaceText = new Text(searchPanel, SWT.LEFT | SWT.BORDER);\n\t\treplaceText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n\t\tToolBar bar2 = new ToolBar(searchPanel, SWT.HORIZONTAL | SWT.FLAT);\n\t\tfinal ToolItem replaceHex = new ToolItem(bar2, SWT.CHECK);\n\t\treplaceHex.setText(\"0x\"); //$NON-NLS-1$\n\t\treplaceHex.setToolTipText(Messages.HexEditorControl_25);\n\t\tfinal ToolItem replace = new ToolItem(bar2, SWT.PUSH | SWT.FLAT);\n\t\treplace.setText(Messages.HexEditorControl_26);\n\t\tfinal ToolItem replaceFind = new ToolItem(bar2, SWT.PUSH | SWT.FLAT);\n\t\treplaceFind.setText(Messages.HexEditorControl_27);\n\t\tfinal ToolItem replaceAll = new ToolItem(bar2, SWT.PUSH);\n\t\treplaceAll.setText(Messages.HexEditorControl_28);\n\n\t\tListener replaceListener = new Listener() {\n\t\t\t@Override\n public void handleEvent(Event event) {\n\t\t\t\treplace(findText.getText(), findHex.getSelection(), replaceText.getText(), replaceHex.getSelection(),\n\t\t\t\t true, matchCase.getSelection(), wrap.getSelection(),\n\t\t\t\t event.widget == replaceFind, event.widget == replaceAll);\n\t\t\t}\n\t\t};\n\t\treplace.addListener(SWT.Selection, replaceListener);\n\t\treplaceFind.addListener(SWT.Selection, replaceListener);\n\t\treplaceAll.addListener(SWT.Selection, replaceListener);\n\n\t\tclass UpdateActions {\n\t\t\tboolean validateAndUpdate() {\n\t\t\t\tboolean findValid = validate(findHex, findText);\n\t\t\t\tboolean replaceValid = validate(replaceHex, replaceText);\n\t\t\t\thexEditor.getEditorSite().getActionBars()\n\t\t\t\t.getStatusLineManager().setMessage(findValid && replaceValid ? null : Messages.HexEditorControl_29);\n\t\t\t\tboolean hasText = findText.getText().length() > 0;\n\t\t\t\tnext.setEnabled(hasText && findValid);\n\t\t\t\tprev.setEnabled(hasText && findValid);\n\t\t\t\treplace.setEnabled(hasText && findValid && replaceValid);\n\t\t\t\treplaceFind.setEnabled(hasText && findValid && replaceValid);\n\t\t\t\treplaceAll.setEnabled(hasText && findValid && replaceValid);\n\t\t\t\treturn findValid && replaceValid;\n\t\t\t}\n\n\t\t\tprivate boolean validate(ToolItem item, Text text) {\n\t\t\t\tboolean valid = item.getSelection() && HexUtils.isValidHexString(text.getText(), true) || !item.getSelection();\n//\t\t\t\ttext.setBackground(PropertyChangeListener.getColor(valid ? new RGB(255, 255, 255) : new RGB(255, 0, 0)));\n\t\t\t\treturn valid;\n\t\t\t}\n\t\t}\n\n\t\tfinal UpdateActions updateActions = new UpdateActions();\n\n\t\tListener findListener = new Listener() {\n\t\t\t@Override\n public void handleEvent(Event event) {\n\t\t\t\tif (!updateActions.validateAndUpdate())\n\t\t\t\t\treturn;\n\t\t\t\tboolean forward = event.widget != prev;\n\t\t\t\tHexTablePointer position = getCursorPosition();\n\t\t\t\tif (event.type == SWT.DefaultSelection || event.widget == next)\n\t\t\t\t\tposition.move(1);\n\t\t\t\telse if (event.widget == prev)\n\t\t\t\t\tposition.move(-1);\n\t\t\t\tsearch(position, findText.getText(), findHex.getSelection(), forward, matchCase.getSelection(), wrap.getSelection());\n\t\t\t}\n\t\t};\n\t\tfindText.addListener(SWT.Modify, findListener);\n\t\tfindText.addListener(SWT.DefaultSelection, findListener);\n\t\tnext.addListener(SWT.Selection, findListener);\n\t\tprev.addListener(SWT.Selection, findListener);\n\n\t\tListener validateListener = new Listener() {\n\t\t\t@Override\n public void handleEvent(Event event) {\n\t\t\t\tupdateActions.validateAndUpdate();\n\t\t\t}\n\t\t};\n\t\tfindHex.addListener(SWT.Selection, validateListener);\n\t\treplaceHex.addListener(SWT.Selection, validateListener);\n\t\treplaceText.addListener(SWT.Modify, validateListener);\n\n\t\tKeyAdapter keyListener = new KeyAdapter() {\n\t\t\t@Override\n public void keyReleased(KeyEvent e) {\n\t\t\t\tif (e.keyCode == SWT.ESC) {\n\t\t\t\t\tsetRulerVisible(false);\n\t\t\t\t\tselectFindResult(true);\n\t\t\t\t\ttable.updateVisibleTable(false, true, false);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tfindText.addKeyListener(keyListener);\n\t\treplaceText.addKeyListener(keyListener);\n\n\t\tListener savePropertiesListener = new Listener() {\n\t\t\t@Override\n public void handleEvent(Event event) {\n\t\t\t\tActivator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_FIND_HEX, findHex.getSelection());\n\t\t\t\tActivator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_REPLACE_HEX, replaceHex.getSelection());\n\t\t\t\tActivator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_MATCH_CASE, matchCase.getSelection());\n\t\t\t\tActivator.getDefault().getPreferenceStore().setValue(HexEditorConstants.PROPERTY_WRAP, wrap.getSelection());\n\t\t\t}\n\t\t};\n\t\tfindHex.addListener(SWT.Selection, savePropertiesListener);\n\t\treplaceHex.addListener(SWT.Selection, savePropertiesListener);\n\t\tmatchCase.addListener(SWT.Selection, savePropertiesListener);\n\t\twrap.addListener(SWT.Selection, savePropertiesListener);\n\n\t\tfindHex.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_FIND_HEX));\n\t\treplaceHex.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_REPLACE_HEX));\n\t\tmatchCase.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_MATCH_CASE));\n\t\twrap.setSelection(Activator.getDefault().getPreferenceStore().getBoolean(HexEditorConstants.PROPERTY_WRAP));\n\n\t\tupdateActions.validateAndUpdate();\n\t}", "public void updateWidgetFor(String name) {\n }", "@Override\n public void onEnabled(Context context) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);\n CharSequence widgetText = context.getString(R.string.appwidget_text);\n RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.my_widget);\n remoteViews.setTextViewText(R.id.widgetText, widgetText);\n Intent intent = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n remoteViews.setOnClickPendingIntent(R.id.widgetLogo, pendingIntent);\n ComponentName componentName = new ComponentName(context, MyWidget.class);\n appWidgetManager.updateAppWidget(componentName, remoteViews);\n }", "@Override\n\tpublic void replaceWidget(Widget wi) {\n\t\tif (wi instanceof PaperSlider)\n\t\t\tb = new PaperSliderBinder((PaperSlider) wi);\n\t\t// important: HTML before Label\n\t\telse if (wi instanceof HTML)\n\t\t\tb = new HTMLBinderWidget((HTML) wi);\n\t\t// before Label\n\t\telse if (wi instanceof InlineLabel)\n\t\t\t// the same as Label, the difference is constructor only\n\t\t\tb = new LabelBinderWidget((InlineLabel) wi);\n\t\telse if (wi instanceof Label)\n\t\t\tb = new LabelBinderWidget((Label) wi);\n\t\telse {\n\t\t\tString mess = LogT.getT().BinderReplaceWidget(v.getId(), wi.getClass().getName());\n\t\t\tUtils.errAlertB(mess);\n\t\t}\n\t}", "@Override\n int setImmediate(ImmediateCommand command) {\n\n int handle = addCommand(command);\n postMessage(window, MESSAGE_PREFIX + handle);\n return handle;\n }", "public abstract void setCommand(String cmd);", "private void registerCommands() {\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HOME.toString())) {\r\n\t\t\t(new HomeCommand(this)).register();\r\n\t\t\t(new SetHomeCommand(this)).register();\r\n\t\t\t(new DelHomeCommand(this)).register();\r\n\t\t\t(new ListHomesCommand(this)).register();\r\n\t\t\t(new NearbyHomesCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.BACK.toString())) {\r\n\t\t\t(new Back(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TPASK.toString())) {\r\n\t\t\t(new TeleportToggle(this)).register();\r\n\t\t\t(new TpAsk(this)).register();\r\n\t\t\t(new TpAskHere(this)).register();\r\n\t\t\t(new TeleportAccept(this)).register();\r\n\t\t\t(new TeleportDeny(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.TELEPORT.toString())) {\r\n\t\t\t(new Teleport(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.SPEED_SETTING.toString())) {\r\n\t\t\t(new SpeedCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.FLY.toString())) {\r\n\t\t\t(new FlyCommand(this)).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.GAMEMODE.toString())) {\r\n\t\t\tGameModeCommand gmc = new GameModeCommand(this);\r\n\t\t\tPlayerLoader loader = new PlayerLoader(true, false, false, false);\r\n\t\t\tGameModeLoader gml = new GameModeLoader(true);\r\n\t\t\tgmc.setLoader(gml);\r\n\t\t\tgml.setLoader(loader);\r\n\t\t\tgmc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.PLAYER_CMD.toString())) {\r\n\t\t\t// create command and player loader\r\n\t\t\tPlayerCommand pc = new PlayerCommand();\r\n\t\t\tPlayerLoader playerLoader = new PlayerLoader(true, false, false, false);\r\n\t\t\t\r\n\t\t\t// create components\r\n\t\t\tFeedComponent fc = new FeedComponent();\r\n\t\t\tfc.setLoader(playerLoader);\r\n\t\t\tStarveComponent sc = new StarveComponent();\r\n\t\t\tsc.setLoader(playerLoader);\r\n\t\t\tHealComponent hc = new HealComponent();\r\n\t\t\thc.setLoader(playerLoader);\r\n\t\t\tKillComponent kc = new KillComponent();\r\n\t\t\tkc.setLoader(playerLoader);\r\n\t\t\tBurnComponent bc = new BurnComponent();\r\n\t\t\tbc.setLoader(playerLoader);\r\n\t\t\tExtinguishComponent ec = new ExtinguishComponent();\r\n\t\t\tec.setLoader(playerLoader);\r\n\t\t\tLightningComponent lc = new LightningComponent();\r\n\t\t\tlc.setLoader(playerLoader);\r\n\t\t\tLightningEffectComponent lec = new LightningEffectComponent();\r\n\t\t\tlec.setLoader(playerLoader);\r\n\t\t\t\r\n\t\t\tPlayerLoader gcLoader = new PlayerLoader(false, false, false, false);\r\n\t\t\tBinaryLoader ooc = new BinaryLoader(true, BinaryLoader.BINARY.ENABLE_DISABLE);\r\n\t\t\tooc.setLoader(gcLoader);\r\n\t\t\t\r\n\t\t\tInvincibleComponent gc = new InvincibleComponent();\r\n\t\t\tgc.setLoader(ooc);\r\n\t\t\t\r\n\t\t\t// add components\r\n\t\t\tpc.addComponent(\"feed\", fc);\r\n\t\t\tpc.addComponent(\"starve\", sc);\r\n\t\t\tpc.addComponent(\"heal\", hc);\r\n\t\t\tpc.addComponent(\"invincible\", gc);\r\n\t\t\tpc.addComponent(\"kill\", kc);\r\n\t\t\tpc.addComponent(\"burn\", bc);\r\n\t\t\tpc.addComponent(\"extinguish\", ec);\r\n\t\t\tpc.addComponent(\"lightning\", lc);\r\n\t\t\tpc.addComponent(\"lightningeffect\", lec);\r\n\t\t\t\r\n\t\t\t// register command\r\n\t\t\tpc.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.HAT.toString())) {\r\n\t\t\t// /hat command\r\n\t\t\t(new HatCommand()).register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.WORKBENCH_ENDERCHEST.toString())) {\r\n\t\t\t// /enderchest and /workbench commands\r\n\t\t\tWorkbenchCommand wb = new WorkbenchCommand();\r\n\t\t\twb.setPermission(\"karanteenials.inventory.workbench\");\r\n\t\t\twb.register();\r\n\t\t\t\r\n\t\t\tEnderChestCommand ec = new EnderChestCommand();\r\n\t\t\tec.setPermission(\"karanteenials.inventory.enderchest\");\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.CLEAR_INVENTORY.toString())) {\r\n\t\t\tClearInventoryCommand cic = new ClearInventoryCommand();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, false, false);\r\n\t\t\tMaterialLoader ml = new MaterialLoader(true, false, false);\r\n\t\t\tpl.setLoader(ml);\r\n\t\t\tcic.setLoader(pl);\r\n\t\t\tpl.setPermission(\"karanteenials.inventory.clear-multiple\");\r\n\t\t\tcic.setPermission(\"karanteenials.inventory.clear\");\r\n\t\t\tcic.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /nick command\r\n\t\t/*if(getSettings().getBoolean(KEY_PREFIX+KEYS.NICK.toString())) {\r\n\t\t\tNickCommand nc = new NickCommand();\r\n\t\t\tnc.register();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t// /enchant command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.ENCHANT_COMMAND.toString())) {\r\n\t\t\tEnchantCommand ec = new EnchantCommand();\r\n\t\t\t\r\n\t\t\tGiveEnchantmentComponent gec = new GiveEnchantmentComponent();\r\n\t\t\tgec.setPermission(\"karanteenials.enchant.set\");\r\n\t\t\t\r\n\t\t\tRemoveEnchantmentComponent rec = new RemoveEnchantmentComponent();\r\n\t\t\trec.setPermission(\"karanteenials.enchant.remove\");\r\n\t\t\t\r\n\t\t\tec.addComponent(\"give\", gec);\r\n\t\t\tec.addComponent(\"remove\", rec);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader giveEnchLoader = new EnchantmentLoader();\r\n\t\t\tgec.setLoader(giveEnchLoader);\r\n\t\t\t\r\n\t\t\tEnchantmentLoader removeEnchLoader = new EnchantmentLoader();\r\n\t\t\trec.setLoader(removeEnchLoader);\r\n\t\t\t\r\n\t\t\tLevelLoader ll = new LevelLoader();\r\n\t\t\tgiveEnchLoader.setLoader(ll);\r\n\t\t\t\r\n\t\t\tec.register();\r\n\t\t}\r\n\t\t\r\n\t\t// /rtp command\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.RANDOM_TELEPORT.toString())) {\r\n\t\t\tRandomTeleport rtp = new RandomTeleport();\r\n\t\t\tPlayerLoader pl = new PlayerLoader(true, false, true, false);\r\n\t\t\trtp.setLoader(pl);\r\n\t\t\trtp.register();\r\n\t\t}\r\n\t\t\r\n\t\tif(getSettings().getBoolean(KEY_PREFIX+KEYS.NEAR_COMMAND.toString())) {\r\n\t\t\tNearCommand nc = new NearCommand();\r\n\t\t\tnc.setPermission(\"karanteenials.near\");\r\n\t\t\tnc.register();\r\n\t\t}\r\n\t}", "public <T extends Item> void registerItem(Class<T> clazz, ICapabilityConstructor<?, T, ItemStack> constructor) {\n checkNotBaked();\n List<ICapabilityConstructor<?, ? extends Item, ? extends ItemStack>> constructors = capabilityConstructorsItem.get(clazz);\n if (constructors == null) {\n constructors = Lists.newArrayList();\n capabilityConstructorsItem.put(clazz, constructors);\n }\n constructors.add(constructor);\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }", "protected Widget attachNodeWidget(String node) {\n EDMNodeWidget widget = new EDMNodeWidget(this);\n mainLayer.addChild(widget);\n revalidate();\n widget.getHeader().getActions().addAction(createObjectHoverAction());\n widget.getActions().addAction(createSelectAction());\n widget.getActions().addAction(moveAction);\n\n return widget;\n }", "public Widget() {\r\n\t\t\r\n\t\twidgets = new LinkedHashMap<Component, String>();\r\n\t\t\r\n\t}", "public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\t\t\tRoomAdd ra=new RoomAdd();\r\n\t\t\t\t\t\tra.getsShell().open();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsShell.setMinimized(true);\r\n\t\t\t\t\t\t/*if(ra.flag){\r\n\t\t\t\t\t\t\tnewRoom=ra.getRoom();\r\n\t\t\t\t\t\t\ttableViewer.add(SystemManageShell.newRoom);\r\n\t\t\t\t\t\t}*/\r\n\t\t\t\t\t\t}", "public void addCommand(Object cmd) {\n Message msg = this.handler.obtainMessage(0);\n msg.obj = cmd;\n this.handler.sendMessage(msg);\n }", "public KeyboardActionRegister(RichDialogGridBagPanel panel, KeyStroke keyStroke, String methodName) {\r\n this.panel = panel;\r\n this.methodName = methodName;\r\n this.keyStroke = keyStroke;\r\n }", "protected void addCommandExecutor(ExecutorBase executor) {\n PluginCommand command = getCommand(executor.getName());\n command.setExecutor(executor);\n command.setTabCompleter(executor);\n }", "@Override\n protected void addCustomWidgetsToDialogPanel(VerticalPanel panel) {\n panel.add(createLoginNameInput());\n panel.add(createLoginPasswordInput());\n }", "private void handleActionUpdateDriverWidget() {\n\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager\n .getAppWidgetIds(new ComponentName(this, WidgetProvider_Driver.class));\n\n //Trigger data update to handle the ListView widgets and force a data refresh\n appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, R.id.widget_list_view_orders);\n\n //Now update all widgets\n WidgetProvider_Driver.updateDriverWidgets(this, appWidgetManager, appWidgetIds);\n\n\n }", "void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }", "public synchronized final void addWatcher(OptionWidgetWatcher ow) {\n if (_watchers.contains(ow)) {\n return;\n }\n\n _watchers.addElement(ow);\n }", "private void make_widget_action(Context context, int appWidgetId, Rect widgetPos) {\n\t\t\tIntent start = new Intent(context, MainActivity.class);\r\n\t\t\tstart.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\tstart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\r\n\t\t\tstart.putExtra(PARAM_WIDGET_ID, appWidgetId); // key/value pair, where key needs current package prefix.\r\n\t\t\tstart.putExtra(PARAM_WIDGET_POSITION, Utils.RectToStr(widgetPos)); // key/value pair, where key needs current package prefix.\r\n\r\n\t\t\tcontext.startActivity(start);\r\n\t }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }", "@Override\r\n\t public void onReceive(Context context, Intent intent) {\r\n\t final String action = intent.getAction();\r\n\t if (action.equals(AppWidgetManager.ACTION_APPWIDGET_DELETED)) {\r\n\t final int appWidgetId = intent.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);\r\n\t if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {\r\n\t this.onDeleted(context, new int[] { appWidgetId });\r\n\t }\r\n\t } else if (action.equals(ACTION_WIDGET_CONTROL)) {\r\n\t \tUri uri = intent.getData();\r\n\t \tRect widget_pos = intent.getSourceBounds();\r\n\t \tint widget_id = Integer.parseInt(uri.getQueryParameter(\"widget_id\"));\r\n\t if (widget_id != AppWidgetManager.INVALID_APPWIDGET_ID) {\r\n\t \tmake_widget_action(context, widget_id, widget_pos);\r\n\t }\t\r\n\t } else if (action.equals(ACTION_UPDATE_WIDGET_CONTEXT)) {\r\n\t \tUri uri = intent.getData();\r\n\t \tint widget_id = Integer.parseInt(uri.getQueryParameter(\"widget_id\"));\r\n\t if (widget_id != AppWidgetManager.INVALID_APPWIDGET_ID) { \t\r\n\t \tRemoteViews remote_views = new RemoteViews(context.getPackageName(), R.layout.widget);\r\n\t \tWidgetInstanceManager wim = get_instance(widget_id);\r\n\t \twim.ReinitializeWidgetBitmap(context);\r\n\t \t\tupdate_widget_view(AppWidgetManager.getInstance(context), widget_id, remote_views);\r\n\t } else super.onReceive(context, intent);\t\r\n\t } else {\r\n\t super.onReceive(context, intent);\r\n\t }\r\n\t }", "public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }", "public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }", "private String instantiateWidget(Element widget){\n\t\tString response = null;\n\t\tString widgetUri = widget.getAttributeValue(\"identifier\");\n\t\t// instantiate widget and parse results\n\t\ttry {\n\t\t\tHttpClient client = new HttpClient();\n\t\t\tPostMethod post = new PostMethod(TEST_INSTANCES_SERVICE_URL_VALID);\n\t\t\tpost.setQueryString(\"api_key=\"+API_KEY_VALID+\"&widgetid=\"+widgetUri+\"&userid=test&shareddatakey=test\");\n\t\t\tclient.executeMethod(post);\n\t\t\tresponse = IOUtils.toString(post.getResponseBodyAsStream());\n\t\t\tpost.releaseConnection();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t//e.printStackTrace();\n\t\t\tfail(\"failed to instantiate widget\");\n\t\t}\n\t\treturn response;\t\t\n\t}", "@Override\n\tpublic void register() {\n\t\tsdClass.withdraw();\n\t}", "public void set(int slot, Command command) {\n commands[slot] = command;\n }", "public JsStatement widget()\n\t{\n\t\treturn new JsQuery(getComponent()).$().chain(\"draggable\", \"'widget'\");\n\t}", "private void setWidgetAsExample(Widget w) {\n\t\texampleArea.clear();\n\t\texampleArea.add(w);\n\t}", "private void registerArgument(final CmdProperties baseCmd) {\n commandClasses.put(baseCmd.getCommand(), baseCmd);\n }", "public void registerCommand(BaseCommand baseCommand) throws Exception {\n baseCommand.setShard(shard);\n Command botCommand = baseCommand.botCommand;\n for (BaseCommand cmd : baseCommands) {\n if (StringUtils.stripAccents(cmd.getCommandIdentifier()).equalsIgnoreCase(StringUtils.stripAccents\n (botCommand.getCommandIdentifier())))\n {\n System.out.println(\"Multiple baseCommands cannot be registered under the same name. Ignoring new \" +\n \"instance\" +\n \".\\n\" +\n \"Name: \" + baseCommand.toString());\n return;\n }\n }\n botCommand.setupSubcommands();\n baseCommands.add(baseCommand);\n commandUsages.put(baseCommand.commandIdentifier, (long) 0);\n System.out.println(\"Successfully registered \" + baseCommand.toString());\n }", "void save(final Widget widget);", "protected void addFrameWidgetHandler()\n {\n AlertHandler frameWidgetHandler =\n new AlertHandler() {\n\n public void handleAlert(EventObject alert)\n {\n Frame.WidgetChange chg = (Frame.WidgetChange) alert;\n IWidget chgWidget = chg.getChangeElement();\n\n if (chg != null) {\n // Check what action was performed\n switch (chg.action) {\n // Switch the selection to the newly-added widget\n case Frame.WidgetChange.ELEMENT_ADD: {\n GraphicalWidget<?> gw =\n frameUI.getWidgetFigure(chgWidget);\n\n gw.addChangeHandler(widgetChangeHandler,\n Widget.WidgetChange.class);\n gw.addChangeHandler(widgetChangeHandler,\n IAttributed.AttributeChange.class);\n gw.addChangeHandler(widgetChangeHandler,\n IAttributed.AuthorityChange.class);\n delayedWidgetSelection.addToSelection(chgWidget,\n gw);\n view.requestRename();\n break;\n }\n\n // Reflect the change in selection state\n case Frame.WidgetChange.ELEMENT_DELETE: {\n // Cannot depend on the frameUI to have removed\n // this widget's graphical version.\n // Call deselect with the model itself.\n selection.deselectElement(chgWidget);\n\n delayedWidgetSelection.removeFromSelection(chgWidget);\n\n // call to clean up any resize handles.\n delayedRepainting.requestRepaint(REPAINT_SELECT_HANDLES);\n break;\n }\n }\n }\n }\n };\n\n frame.addHandler(this,\n Frame.WidgetChange.class,\n frameWidgetHandler);\n\n AlertHandler frameEltHandler =\n new AlertHandler() {\n\n public void handleAlert(EventObject alert)\n {\n delayedRepainting.requestRepaint(REPAINT_SELECT_HANDLES);\n }\n };\n\n // Do the above for both widget and association changes!\n frame.addHandler(this,\n Frame.ElementChange.class,\n frameEltHandler);\n\n AlertHandler frameAssocHandler =\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Frame.FrameEltGrpChange chg =\n (Frame.FrameEltGrpChange) alert;\n\n if (chg.action == Frame.FrameEltGrpChange.ELEMENT_DELETE)\n {\n selection.deselectElement(chg.getChangeElement());\n }\n else if (chg.action == Frame.FrameEltGrpChange.ELEMENT_ADD)\n {\n selection.setSelectedSelnFig(uiModel.getGroupHalo(chg.getChangeElement()));\n }\n }\n };\n\n frame.addHandler(this,\n Frame.FrameEltGrpChange.class,\n frameAssocHandler);\n }", "void registerCommandCoordinator(@NonNull ICommandCoordinator coordinator);", "static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,\n int appWidgetId) {\n RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.recipe_app_widget);\n\n Intent intent = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);\n views.setOnClickPendingIntent(R.id.appwidget_name, pendingIntent);\n\n RecipeDatabase db = RecipeDatabase.getInstance(context);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n List<RecipeEntry> entries = db.recipeDao().getAllRecipes();\n if(entries != null && !entries.isEmpty()){\n RecipeEntry randomRecipe = entries.get(new Random().nextInt(entries.size()));\n StringBuilder fullIngredients = new StringBuilder(randomRecipe.getName() + \"\\n\\nIngredients\\n\");\n for(Ingredient ingredient : randomRecipe.getIngredients()){\n fullIngredients.append(context.getString(R.string.list_ingredients,\n String.valueOf(ingredient.getQuantity()),\n ingredient.getMeasure(),\n ingredient.getIngredient()));\n }\n\n views.setTextViewText(R.id.appwidget_name, fullIngredients);\n } else {\n views.setTextViewText(R.id.appwidget_name, context.getString(R.string.lbl_check_new_recipe_in_app));\n }\n\n // Instruct the widget manager to update the widget\n appWidgetManager.updateAppWidget(appWidgetId, views);\n }\n });\n }", "private void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId)\n {\n RemoteViews views=new RemoteViews(context.getPackageName(), R.layout.new_app_widget);\n\n\n appWidgetManager.updateAppWidget(appWidgetId, views);\n }", "public void registraControlador(ActionListener controller) { //Registro els botons\n jbReserva.addActionListener(controller);\n jbDemanar.addActionListener(controller);\n jbReserva.setActionCommand(\"RESERVAR\");\n jbDemanar.setActionCommand(\"DEMANAR\");\n }", "public JQMFooter(Widget... widgets) {\n\t\tthis((String) null);\n\t\tfor (Widget widget : widgets) {\n\t\t\tadd(widget);\n\t\t}\n\t}", "@Override\r\n public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n setDefaultCommand(new joystick_lift_upAndDown());\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // Set the default command for a subsystem here.\r\n // setDefaultCommand(new MySpecialCommand());\r\n }", "public void registerPanel(DockPanelW dockPanel) {\n\t\tdockManager.registerPanel(dockPanel);\n\t}", "protected void addCommand(String command) {\r\n\t\tcommand = command.replaceAll(\"\\n\", \"\\n\" + OUT_SYMBOL); //TODO ugly, fix this\r\n\t\tadd(command, styles.getRegular());\r\n\t}", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new HatchExtenderCommand());\n\t}", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "@Override\n\tprotected void configureBindings() {\n\t\tbuttonBinder(Undo::new).on(undoB).bind();\n\t\tbuttonBinder(Redo::new).on(redoB).bind();\n\t}", "@Override\n\tpublic void widgetClick(View v) {\n\n\t}", "@RequiresApi(api = Build.VERSION_CODES.ICE_CREAM_SANDWICH)\n static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,\n int appWidgetId) {\n RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.baking_recipes_widget);\n\n Intent intent = new Intent(context, RecipesActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);\n\n views.setOnClickPendingIntent(R.id.widget_toolbar, pendingIntent);\n // Instruct the widget manager to update the widget\n Intent intnt = new Intent(context, WidgetService.class);\n views.setRemoteAdapter(R.id.widget_ingredients_list_view, intnt);\n\n Intent ingListIntent = new Intent(context, RecipeListActivity.class);\n PendingIntent ingPendingIntent = PendingIntent.getActivity(context, 0, ingListIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n views.setPendingIntentTemplate(R.id.widget_ingredients_list_view, ingPendingIntent);\n\n appWidgetManager.updateAppWidget(appWidgetId, views);\n }", "public void textBoxAction( TextBoxWidgetExt tbwe ){}", "@Action\n public void showSetRegisterBox()\n {\n SwapMote mote = null;\n\n RegisterPanel regPanel = new RegisterPanel();\n int answer = JOptionPane.showConfirmDialog(null, regPanel, \"Set register value\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n if (answer == JOptionPane.OK_OPTION)\n {\n int index = getMoteIndexFromList();\n\n if (index > -1)\n mote = swapDmt.getMote(index);\n\n boolean runSync = false;\n // Mote not selected or mote with power-down mode?\n if (mote == null)\n runSync = true;\n else if (mote.getPwrDownMode())\n runSync = true;\n\n if (runSync)\n {\n // Display SYNC waiting screen\n syncDiag = new SyncDialog(null, true);\n syncDiag.setVisible(true);\n\n // Sync dialog closed by the user?\n if (syncDiag != null)\n {\n syncDiag = null;\n return;\n }\n\n // Sync signal received\n if (syncAddress > 0)\n mote = swapDmt.getMoteFromAddress(syncAddress);\n }\n\n int regId = regPanel.getRegisterId();\n String val = regPanel.getRegisterValue();\n setRegVal(mote, regId, val);\n }\n }", "public JQMFooter(Widget... widgets) {\r\n\t\tthis((String) null);\r\n\t\tfor (Widget widget : widgets)\r\n\t\t\tadd(widget);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_add_widget) {\n\n selectWidget();\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\tsetDefaultCommand(new ReverseBatterShot());\n\t}", "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }", "public void addCommand(CommandIF command) {\r\n\t\tmelody.add(command);\r\n\t}", "private void register(final Intent intent) {\n\t\tLog.i(TAG, \"register(\" + intent.getAction() + \")\");\n\t\tsynchronized (this.pendingIOOps) {\n\t\t\tif (this.wakelock == null) {\n\t\t\t\tfinal PowerManager pm = (PowerManager) this\n\t\t\t\t\t\t.getSystemService(Context.POWER_SERVICE);\n\t\t\t\tthis.wakelock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,\n\t\t\t\t\t\tTAG);\n\t\t\t\tthis.wakelock.acquire();\n\t\t\t}\n\t\t\tfinal ConnectorCommand c = new ConnectorCommand(intent);\n\t\t\tif (c.getType() == ConnectorCommand.TYPE_SEND) {\n\t\t\t\tif (this.mNM == null) {\n\t\t\t\t\tthis.mNM = (NotificationManager) this\n\t\t\t\t\t\t\t.getSystemService(NOTIFICATION_SERVICE);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tfinal Notification notification = getNotification(this, c);\n\t\t\t\t\tthis.mNM.notify(NOTIFICATION_PENDING, notification);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tLog.e(TAG, \"illegal argument\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t\tthis.pendingIOOps.add(intent);\n\t\t\tLog.d(TAG, \"currentIOOps=\" + this.pendingIOOps.size());\n\t\t}\n\t}", "public <T> void registerInheritableItem(Class<T> clazz, ICapabilityConstructor<?, ?, ? extends ItemStack> constructor) {\n checkNotBaked();\n capabilityConstructorsItemSuper.add(\n Pair.<Class<?>, ICapabilityConstructor<?, ?, ?>>of(clazz, constructor));\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }" ]
[ "0.608168", "0.60567486", "0.577141", "0.56002086", "0.55563325", "0.55485195", "0.5457418", "0.54082274", "0.5351477", "0.53359634", "0.5216381", "0.5208745", "0.51846534", "0.51294875", "0.51099515", "0.50887394", "0.50699574", "0.5067813", "0.5041133", "0.50405914", "0.5008283", "0.49934205", "0.4982057", "0.49812466", "0.49801683", "0.4978125", "0.49761632", "0.49565193", "0.49449366", "0.49156287", "0.490506", "0.48927173", "0.48872766", "0.48759246", "0.4863603", "0.48214653", "0.48047864", "0.47323737", "0.46899173", "0.46761927", "0.4655314", "0.46453518", "0.46452418", "0.4633452", "0.46023053", "0.45872468", "0.4571241", "0.45702237", "0.45512092", "0.4547436", "0.45357192", "0.45224226", "0.4501255", "0.44955692", "0.44855034", "0.44828957", "0.44806135", "0.44797972", "0.4474435", "0.44661993", "0.44203067", "0.4418704", "0.44125634", "0.44117424", "0.44089243", "0.44030172", "0.4397759", "0.43805996", "0.43801758", "0.43745637", "0.43725994", "0.43710172", "0.43674654", "0.43662986", "0.43652216", "0.43511772", "0.43503514", "0.43485147", "0.43421128", "0.4337953", "0.43379477", "0.43359068", "0.4332765", "0.4331193", "0.43301725", "0.43250263", "0.43190393", "0.43142584", "0.4309008", "0.43082458", "0.42955664", "0.4287075", "0.42864025", "0.42797312", "0.42718583", "0.427068", "0.42702514", "0.4262358", "0.42535728", "0.42511553" ]
0.74796075
0
UnRegisters the given widget and the command it generates. Either the given widget or the given command may be null.
void unRegisterWidgetGeneratedCommand(MiPart widget, String command);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void unregister(ConsoleCmd cmd) {\n cmdList.remove(cmd.name);\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "public abstract void removedFromWidgetTree();", "boolean unregisterCommandBusForCommand( String commandName );", "public void unRegisterBinding(String bindingKey, Node node) {\n\t\tlog.info(\"UnRegistering binding key \" + bindingKey);\n\t\ttry {\n\t\t\tString authToken = getAuthToken(node.getSecurityUrl());\n\t\t\tDeleteBinding deleteBinding = new DeleteBinding();\n\t\t\tdeleteBinding.setAuthInfo(authToken);\n\t\t\tdeleteBinding.getBindingKey().add(bindingKey);\n\t\t\tgetUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Unable to unregister bindingkey \" + bindingKey\n\t\t\t\t\t+ \" .\" + e.getMessage(),e);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void unregisterCommand(String name) {\n\t\ttry {\n\t\t\tField known = SimpleCommandMap.class.getDeclaredField(\"knownCommands\");\n\t\t\tField alias = SimpleCommandMap.class.getDeclaredField(\"aliases\");\n\t\t\tknown.setAccessible(true);\n\t\t\talias.setAccessible(true);\n\t\t\tMap<String, Command> knownCommands = (Map<String, Command>) known.get(commandMap);\n\t\t\tSet<String> aliases = (Set<String>) alias.get(commandMap);\n\t\t\tknownCommands.remove(name.toLowerCase());\n\t\t\taliases.remove(name.toLowerCase());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t}", "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "public void unregister(Attribute attribute) {\n usedByObjects.remove(attribute);\n }", "@Override\n public void removePreferenceAndUpdateWidget(Context ctx) {\n IngredientSharedPreference.removePreferences(ctx);\n updateWidget(ctx);\n }", "void unsetControlType();", "public void removeLayoutComponent(Component component) { }", "public abstract void unbindComponents();", "public void unSelectWidget(Widget w) {\n if (!w.isSelected()) return;\n w.unSelect();\n doSelectedCount(w);\n toolBar.setEditButtons(selectedCnt, selectedGroupCnt);\n }", "@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}", "void unregisterAttributeOnChangeHandler(String attribute);", "public void yUnbind(String bind_name);", "public void unregister(T o);", "private void removeToolButton(SimpleTool tool) {\n String toolId = tool.getToolID();\n\n JToolButton button = toolIdToButtonMap.get(toolId);\n button.removeItemListener(this);\n remove(button);\n\n buttonGroup.remove(button);\n toolIdToButtonMap.remove(toolId);\n toolIdToToolMap.remove(toolId);\n\t\t\n\t\trevalidate();\n }", "private static void unregisterFromPAppletDraw(PApplet app) {\n\t\tAppletInfo info = applets.get(app);\n\t\tif(info != null){\n\t\t\t//\t\tList<GComponent> paControls = info.paControls);\n\t\t\tfor(GComponent comp : info.paControls){\n\t\t\t\tif(comp.getParent() == null){\n\t\t\t\t\tcomp.regDraw = false;\n\t\t\t\t\tcomp.getPApplet().unregisterDraw(comp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tinfo.autoDrawOn = false;\n\t\t}\n\t}", "public void removeLayoutComponent(Component comp) {}", "public void removeLayoutComponent(Component comp) {}", "public void unregisterHandler(Object handler)\n {\n\n }", "void unregister(String methodName);", "public void unRegister(GameObject gameObject) {\r\n\t\tsuper.unRegister((Object)gameObject);\r\n\t}", "public void removeCommand(final String command) {\n try {\n commands.remove(command);\n } catch (Exception e) {//NOPMD\n e.printStackTrace();//NOPMD\n e.getMessage();//NOPMD\n }\n }", "@Override\n\tpublic boolean remove(Widget w) {\n\t\treturn false;\n\t}", "public void offButtonWasPushed(int slot) {\n offCommands[slot].execute();\n unDoCommand = offCommands[slot];\n }", "public Builder clearCommand() {\n bitField0_ = (bitField0_ & ~0x00000001);\n command_ = getDefaultInstance().getCommand();\n onChanged();\n return this;\n }", "public abstract void unregister();", "void unsetLabel();", "public void unpin();", "public void unpin();", "void unregisterResourceBuilder(ResourceBuilderModel resourceBuilder);", "@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}", "void unregister(String uuid);", "private void m17251h() {\n this.f13994d.unregisterReceiver(this.f13995e);\n }", "public X unregisterAction(KeyStroke aKeyStroke) {\n component.unregisterKeyboardAction(aKeyStroke);\n return (X) this;\n }", "Completable unfollow(UnfollowCommand command) {\n return api.unfollow(command);\n }", "FunctionLibraryDefinition<T> unregisterFunction(String functionName);", "void unbind(Object element);", "public void uninstallUI(JComponent c)\n/* */ {\n/* 176 */ this.delegate.uninstallUI(c);\n/* 177 */ c.removeFocusListener(focusHandler);\n/* 178 */ this.promptComponent = null;\n/* */ }", "public void unbind() {\n\t\tview.setAdapter(null);\n\t}", "@Override\r\n\tpublic void removeLayoutComponent(Component arg0) {\n\t\t\r\n\t}", "void unsetTag();", "@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}", "public void uninstallUI(JComponent c) {\n uninstallDefaults();\n uninstallListeners();\n this.spinner = null;\n c.removeAll(); }", "void unRegister(NotificationListener<ObservableIntentServiceNotificationType> notificationStrategy);", "public void unregisterAdapters(IAdapterFactory factory, Class<?> adaptable);", "private void unregisterDeclaration(D declaration) {\n declarationRegistrationManager.unregisterDeclaration(declaration);\n }", "public void unregisterNotify( Notify notify );", "void removeFieldBinding( FieldBinding binding );", "Binding<T> unshared();", "boolean unregister(Gauge<?> gauge);", "private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }", "public void removeInputType(IInputType type);", "public static void unregister(Object target) {\n/* 185 */ if (target != null) {\n/* 186 */ Iterator<Map.Entry<String, AnnotatedAction>> entryIter = actions.entrySet().iterator();\n/* 187 */ while (entryIter.hasNext()) {\n/* 188 */ Map.Entry<String, AnnotatedAction> entry = entryIter.next();\n/* */ \n/* 190 */ Object actionTarget = ((AnnotatedAction)entry.getValue()).getTarget();\n/* */ \n/* 192 */ if (actionTarget == null || actionTarget == target) {\n/* 193 */ entryIter.remove();\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "@Override\r\n public void unsetup(SpigotImporter importer, Panel panel) {\n try{\r\n System.out.println(panels.length);\r\n //MavselWizardSwing2 \r\n ((MavselWizardSwing1) ((Panel) panels[0]).getComponent()).unsetup((MavselSpigot)importer); \r\n ((MavselWizardSwing2) ((Panel) panels[1]).getComponent()).unsetup((MavselSpigot)importer);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n \r\n panels = null;\r\n }", "public void unregisterNpc(Npc n) {\n\t\tif (hasNpc(n)) {\n\t\t\tnpcs.remove(n);\n\t\t}\n\t\tsetLocation(n, n.getLocation(), null);\n\t}", "void unsetKeyWheel();", "public void unregisterAdapters(IAdapterFactory factory);", "void unsetKeyBox();", "public void unregisterItem(Item i) {\n\t\ti.remove();\n\t\tsetLocation(i, i.getLocation(), null);\n\t}", "public Builder clearCommand() {\n bitField0_ = (bitField0_ & ~0x00000004);\n command_ = 0;\n onChanged();\n return this;\n }", "private final void unparkCar(Car car){\n inTerminalGUI.unparkCar(car);\n }", "void remove(Control control);", "public void unregister() {\n unregistered = true;\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\toprationDev(devtyp, devcode, Cons.UNBIND_DEVICE,false);\n\t\t\t\t}", "public void removeLayoutComponent(Component comp) \n {\n\t\n }", "public abstract void removeUI(BaseConfigInstance pPCI);", "private void purgeCommandButtonListeners() {\n\t\tthis.btnTopFirst.setOnClickListener(null);\n\t\tthis.btnTopSecond.setOnClickListener(null);\n\t\tthis.btnTopThird.setOnClickListener(null);\n\t\tthis.btnTopFourth.setOnClickListener(null);\n\n\t\tthis.btnBotFirst.setOnClickListener(null);\n\t\tthis.btnBotSecond.setOnClickListener(null);\n\t\tthis.btnBotThird.setOnClickListener(null);\n\t\tthis.btnBotFourth.setOnClickListener(null);\n\n\t\tthis.btnEndWord.setOnClickListener(null);\n\n\t}", "public void removeBinding(String func) {\n synchronized (BlitzPlugin.class) {\n if (this.mJsFuncTable.containsKey(func)) {\n this.mJsFuncTable.remove(func);\n BlitzPlugin._removeBindingJs(func);\n }\n }\n }", "@Override\n\tprotected void deInitUIandEvent()\n\t{\n\t}", "void onUnbind();", "private void unregisterAfterCallBroadcastReceiver(){\n if (mADialogBroadcastIsRegistered){\n try {\n this.unregisterReceiver(afterCallBroadcastReceiver);\n mADialogBroadcastIsRegistered=false;\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }", "public void deinstall(JTextComponent c)\n/* */ {\n/* 79 */ c = null;\n/* */ }", "public void unregisterMouseClick(IMouseClickSub click) {\n mouseClickSubs.remove(click);\n }", "@Override\n protected void unregisterVisuals() {\n Map visualPartMap = this.getViewer().getVisualPartMap();\n visualPartMap.remove(getFigure().getLabel());\n visualPartMap.remove(getFigure().getCheckBox());\n super.unregisterVisuals();\n }", "public void removeMySelectionListener(EventListener l);", "@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }", "public Builder clearCmd() {\n \n cmd_ = 0;\n onChanged();\n return this;\n }", "void unsetIdentifier();", "public boolean remove(Widget w) {\n client.unregisterPaintable((Paintable) w);\n String location = getLocation(w);\n if (location != null) {\n locationToWidget.remove(location);\n }\n CaptionWrapper cw = (CaptionWrapper) widgetToCaptionWrapper.get(w);\n if (cw != null) {\n widgetToCaptionWrapper.remove(w);\n return super.remove(cw);\n } else if (w != null) {\n return super.remove(w);\n }\n return false;\n }", "public Builder clearCommand() {\n if (commandBuilder_ == null) {\n if (responseCase_ == 2) {\n responseCase_ = 0;\n response_ = null;\n onChanged();\n }\n } else {\n if (responseCase_ == 2) {\n responseCase_ = 0;\n response_ = null;\n }\n commandBuilder_.clear();\n }\n return this;\n }", "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "@Override\n public Object getWidget()\n {\n return null;\n }", "public Marshaller deregisterMarshaller(QName key) {\n log.debug(\"Deregistering marshaller for object type {}\", key);\n if(key != null){\n return marshallers.remove(key);\n }\n \n return null;\n }", "void removeComponent(Class<? extends Component> componentClass);", "boolean unregister(Counter counter);", "public void onResetSearchBar(Widget newAttributeSearchWidget) {\n eventBus.resetAdvanceSearchTabs();\n view.getSearchContent().setText(null);\n this.newAttributeSearchWidget = newAttributeSearchWidget;\n }", "void setWidget(Button widget) {\n mWidget = widget;\n }", "Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);", "void unsetBox();", "void unsetControlPosition();", "void unbind(boolean shouldPlaceSpacer, boolean switchingStream);", "private void forwardUserLogout(int widgetToLoad) {\n //Set home layout\n eventBus.atHome();\n //If logout was invoked by user, forward to default module\n switch (widgetToLoad) {\n case Constants.CREATE_DEMAND:\n eventBus.goToCreateDemandModule();\n break;\n default:\n eventBus.goToHomeWelcomeModule();\n break;\n }\n }", "public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}", "void deregisterDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);", "void onUnregisterForPremount();", "public void removeOnClick(Runnable action) {\n onClick.remove(action);\n }", "public Builder clearRegistry() {\n if (registryBuilder_ == null) {\n registry_ = null;\n onChanged();\n } else {\n registry_ = null;\n registryBuilder_ = null;\n }\n\n return this;\n }" ]
[ "0.58708894", "0.5804758", "0.5524806", "0.55081576", "0.541624", "0.524075", "0.50938374", "0.50368357", "0.50264287", "0.49412584", "0.49383184", "0.49367872", "0.4934302", "0.4912136", "0.48827532", "0.48802748", "0.48313072", "0.4789334", "0.47885758", "0.47799125", "0.47799125", "0.47691154", "0.4759792", "0.474954", "0.4735364", "0.4725688", "0.47250184", "0.47218275", "0.471791", "0.46990725", "0.46935797", "0.46935797", "0.46919546", "0.46904817", "0.4679803", "0.46762782", "0.46674556", "0.46571833", "0.46547857", "0.46475422", "0.46473032", "0.46188664", "0.46174178", "0.4608344", "0.46010867", "0.45974532", "0.45878342", "0.45874152", "0.45741278", "0.45607272", "0.45532736", "0.45503885", "0.45492804", "0.4548214", "0.4547077", "0.4544942", "0.454452", "0.45378652", "0.4523252", "0.45115468", "0.45097995", "0.4505153", "0.4492569", "0.44813827", "0.4480601", "0.44691133", "0.44660908", "0.44590876", "0.44563866", "0.4446326", "0.444368", "0.4442054", "0.44364363", "0.44344625", "0.44323573", "0.44242287", "0.44183084", "0.44095045", "0.44091728", "0.43978134", "0.43911237", "0.43858117", "0.43854967", "0.43843958", "0.43812948", "0.43766156", "0.4371158", "0.43695784", "0.436798", "0.4365332", "0.43631274", "0.4362175", "0.435069", "0.43496582", "0.434401", "0.43373227", "0.43323165", "0.43301964", "0.433005", "0.43280196" ]
0.8232337
0
Sets whether the given command is to be visible to the user. This method typically (hides)shows the widgets that have been associated with the command.
void setCommandVisibility(String command, boolean flag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setVisible(boolean arg0)\n {\n \n }", "public void setVisible(boolean val);", "public void setVisible(Boolean visible);", "public void setVisible(boolean visible);", "void setVisible(boolean visible);", "void setVisible(boolean visible);", "public void setVisible(Boolean isVisible);", "@SuppressWarnings(\"unused\")\n void setVisible(boolean visible);", "public void setVisible(boolean b) {\n // Not supported for MenuComponents\n }", "public void setVisible(boolean b) {\n\t\t\n\t}", "public void setVisible(boolean v) {\n }", "public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}", "@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}", "public void setVisible()\r\n\t{\r\n\t\tthis.setVisible(true);\r\n\t}", "public void setVisible(boolean newVisible)\n {\n this.visible = newVisible;\n conditionallyRepaint();\n }", "public abstract void setVisible(boolean visible);", "public void setVisible(boolean visible){\r\n\t\tthis.visible = visible;\r\n\t}", "public void setVisible(boolean visible)\n {\n this.visible = visible;\n }", "public void setVisible (boolean visible) {\n this.visible = visible;\n }", "public void setVisible(boolean visible) {\r\n this.visible = visible;\r\n }", "public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}", "public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}", "public void setIsVisible(boolean isVisible);", "public void setVisible( boolean v) {\r\n visible = v;\r\n }", "public static void setVisible (boolean isVisible)\n\t{\n\t\tm_console.setVisible (isVisible);\n\t}", "final void setVisible(boolean visible) {\n this.visible = visible;\n }", "public void setIsVisible(java.lang.Boolean isVisible);", "public void setDisplayed(boolean show);", "@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}", "public void show() {\n visible=true;\n }", "public void showToolbar(boolean visible)\r\n\t{\r\n\t\ttoolbar_left.setVisible(visible);\r\n\t\ttoolbar_right.setVisible(visible);\r\n\t\ttoolbar.setVisible(visible);\r\n\t\tchatTextBox.setVisible(visible);\r\n\t}", "public void setVisible(boolean visible)\n\t{\n\t\tsuper.setVisible(visible);\n\t\trequestFocus();\n\t}", "public void setShown(boolean shown){\r\n this.shown = shown;\r\n }", "public void setVisible(boolean is_visible){\n\t\tswingComponent.setVisible(is_visible);\n\t}", "@Override\n\tpublic void setVisible(boolean visible) {\n\t\tsuper.setVisible(visible);\n\t\tif (this.getMenuItems() != null) {\n\t\t\tfor (CFComponentMenuItem item : this.getMenuItems()) {\n\t\t\t\titem.setVisible(visible);\n\t\t\t}\n\t\t}\n\t}", "public void setVisible(boolean newVal) {\n if (newVal != visible) {\n visible = newVal;\n listeners.firePropertyChange(PROPERTY_VISIBLE, !visible, visible);\n }\n }", "void toggleMenuButtonVisibility(boolean visible) {\n exitButton.setVisible(visible);\n addTimelineButton.setVisible(visible);\n addEventButton.setVisible(visible);\n saveButton.setVisible(visible);\n deleteButton.setVisible(visible);\n }", "public void setVisible(boolean v) {\n\t\tif (v) {\n\t\t\trequestFocus();\n\t\t}\n\t\tsuper.setVisible(v);\n\t}", "public void setVisible(boolean visible) {\n window.setVisible(visible);\n }", "public void updateVisible(){\n if (serviceManager.isCustomerQueMode() == true && serviceManager.isManagerMode() == false) {\n this.setVisible(true);\n } else {\n this.setVisible(false);\n }\n// System.out.println(serviceManager.isCustomerQueMode());\n }", "@Override\n public void setVisible (boolean f)\n { \n }", "private void setVis(boolean b) {\n this.setVisible(b);\n }", "void setIsVisible(boolean visible) {\r\n this.isVisible = visible;\r\n this.getComponent().setVisible(isVisible);\r\n }", "public void setVisible(boolean a){\n \t\tvisible = a;\n \t}", "public void setVisible(boolean value)\n\t{\n\t\tisVisible = value;\n\t\tif(!isVisible)\n\t\t{\n\t\t\tsetWorldRegion(null);\n\t\t}\n\t}", "public static void toggleVisibility ()\n\t{\n\t\tboolean isVisible = m_console.isVisible ();\n\t\tm_console.setVisible (!isVisible);\n\t}", "@Override\n\tpublic void setVisible(boolean visibility) {\n\t\t//do nothing\n\t}", "private boolean setVisible(boolean b) {\n\t\treturn b;\n\t}", "public void setDisplayVisibility(boolean on) {\n if (settingVisibility) {\n return;\n }\n super.setDisplayVisibility(on);\n applyVisibilityFlags();\n }", "public void setVisible(boolean bool)\r\n\t{\r\n\t\tsuper.setVisible(bool);\r\n\t\tif(bool == true)\r\n\t\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep(1000);\r\n\t\t\tlblServerFound.setVisible(true);\r\n\t\t\tbtnClose.setVisible(true);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\t\r\n\r\n\t}", "public void setVisible(boolean visible)\n {\n frame.setVisible(visible);\n }", "public void setButtonVisibility() {\n if (MankomaniaGame.getMankomaniaGame().getLocalClientPlayer().getPlayerIndex() == MankomaniaGame.getMankomaniaGame().getGameData().getCurrentPlayerTurnIndex()) {\n cheatButton.setText(\"Cheat\");\n playerAtTurn.setVisible(true);\n playerNotAtTurn.setVisible(false);\n } else {\n cheatButton.setText(\"Assume Cheating\");\n playerAtTurn.setVisible(false);\n playerNotAtTurn.setVisible(true);\n }\n }", "@Override\n\t\t\tpublic void setUserVisibleHint(boolean isVisibleToUser) {\n\t\t\t\tsuper.setUserVisibleHint(isVisibleToUser);\n\t\t\t\tisonshow=isVisibleToUser;\n\t\t\t\t//Log.i(\"isonshow\", isVisibleToUser+\"\");\n\n\t\t\t}", "public void setVisible(Button button) {\n setVisible(EnumSet.of(button));\n }", "public void show() {\n hidden = false;\n }", "public void toggle()\n\t{\n\t\tsetVisible(!this.isShowing());\n\t}", "public void setVisible(boolean visible)\n\t{\n\t\tshaderMaterial.setUniform(\"AMBIENT\", \"isVisible\", new UniformBool(\n\t\t\t\tvisible));\n\t}", "public Visible (boolean visible) {\n setVisible(visible);\n }", "public void setVisible(boolean visible) {\n\t\tframe.setVisible(visible);\n\t}", "public void setVisible(boolean b) {\n\t\tframe.setVisible(b);\t\n\t}", "public void makeVisible() {\n if (isVisible()) {\n return;\n }\n pack();\n setVisible(true);\n }", "private void setVisible(JButton a, boolean b) {\n\t\ta.setVisible(b);\r\n\t}", "public void show() {\n\t\thidden = false;\n\t}", "public void setToolbarVisible(boolean b)\n {\n // The north panel is the one containing the toolbar and contact photo.\n toolbarPanel.setVisible(b);\n }", "public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }", "public void setHidden(boolean arg0) {\n\n\t}", "@Override\n public boolean isVisible()\n {\n return true;\n }", "public void toggleChat() {\n chatVisible = !chatVisible;\n }", "public void setInterpreterSpecificArgumentsVisible(boolean visible) {\n \t\tfUseDynamicArea = visible;\n \t}", "public void setChatVisible(boolean chatVisible) {\n this.chatVisible = chatVisible;\n }", "public void setProgressBarVisible(boolean flag) {\r\n\r\n pBarVisible = flag;\r\n\r\n if (progressBar != null) {\r\n progressBar.setVisible(flag);\r\n }\r\n }", "public boolean isVisible(){\n \t\treturn visible;\n \t}", "@Override\n\tpublic void setVisible(boolean value) {\n\t\tif(this.getTabCount() <= 0) {\n\t\t\treturn; // no editor actually exists\n\t\t}\n\t\t\n\t\tif (dialog != null) {\n\t\t\tdialog.setVisible(value);\n\t\t\tsuper.setVisible(value);\n\t\t} else {\n\t\t\tsuper.setVisible(value);\n\t\t}\n\t\t\n\t\tif (value) {\n\t\t\t\n\t\t\tUIBuilder.playSound(\"sounds/fordps3_boop.wav\");\n\t\t\tString selectedTitle = JEntityEditor.this.getTitleAt(JEntityEditor.this.getSelectedIndex());\n\t\t\tentity.getWorld().getSandbox().fireEvent(\"ENTITY_EDITOR_OPENED\", LuaValue.valueOf(selectedTitle), entity.getLuaValue());\n\t\t}\n\t}", "@Override\r\n\tpublic void setVisible(boolean visible) {\r\n\t\tsuper.setVisible(visible);\r\n\r\n\t\tif (visible) {\r\n\t\t\tupdateView();\r\n\r\n\t\t\tlogoffHandler.reset();\r\n\t\t\tif (TerminalConfig.isAutoLogoffEnable()) {\r\n\t\t\t\tautoLogoffTimer.start();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// ticketListUpdateTimer.stop();\r\n\t\t\tautoLogoffTimer.stop();\r\n\t\t}\r\n\t}", "public void setVisible(boolean visibile) {\n\t\tthis.visible = visibile;\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.setVisible(visibile);\n\t\t}\n\t}", "@Override\n\tpublic void setVisible (boolean visible)\n\t{\n\t\n\t\tif (visible)\n\t\t{\n\t\t\tthis.updateLayerList();\n\t\t\t\n\t\t\t// If there is no layer for the cartogram deformation,\n\t\t\t// add a menu item \"<none>\" and disable the \"Next\" button.\n\t\t\tif (mLayerMenu.getItemCount() == 0)\n\t\t\t{\n\t\t\t\tmLayerMenu.addItem(\"<none>\");\n\t\t\t\tmNextButton.setEnabled(false);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmNextButton.setEnabled(true);\n\t\t\t}\n\t\t}\n\t\t\n\t\n\t\tif (!visible)\n\t\t\tmCartogramWizard.setCartogramLayerName(\n\t\t\t\t(String)mLayerMenu.getSelectedItem());\n\t\t\n\t\tsuper.setVisible(visible);\n\t\t\n\t}", "private void setProgressBarVisible(boolean pBool) {\n\n ProgressBar tempBar = (ProgressBar)findViewById(R.id.tallyDeviceConnectionStatusMessageProgressBar);\n\n if (pBool) { tempBar.setVisibility(View.VISIBLE); }\n else { tempBar.setVisibility(View.GONE); }\n\n }", "@VisibleForTesting\n public void setAssistantVisible(boolean z) {\n updateBiometricListeningState();\n }", "public void setVisible(boolean visible) {\n internalGroup.setVisible(visible);\n dataTrait.visible = visible;\n }", "public boolean setVisible(boolean visible) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "public static native void _setVisible(Element elem, boolean visible) /*-{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telem.style.display = visible ? '' : 'none';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}-*/;", "public void setActiveDisplayVisible(boolean visible) {\r\n\t\tactiveDisplay.setVisible(visible);\r\n\t}", "void setWaitScreen(boolean set) {\n // findViewById(R.id.screen_main).setVisibility(set ? View.GONE : View.VISIBLE);\n // findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE : View.GONE);\n }", "public void setVisible(boolean b) {\n\t\tsuper.setVisible(b);\n\n\t\tif (b)\n\t\t\tpaint(this.getGraphics());\n\t}", "public void setInvisible ( boolean invisible ) {\n\t\texecute ( handle -> handle.setInvisible ( invisible ) );\n\t}", "@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }", "void setWaitScreen(boolean set) {\n\t\t// findViewById(R.id.screen_main).setVisibility(set ? View.GONE :\n\t\t// View.VISIBLE);\n\t\t// findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE :\n\t\t// View.GONE);\n\t}", "public void setVisible(boolean b) {\n\t\tLoginSystem l = new LoginSystem();\r\n\r\n\t}", "void setVisibleGlassPanel(Visibility visible);", "public boolean isShowing() {\n return visible;\n }", "public void setShowInGui(final Boolean showInGuiValue) {\n this.showInGui = showInGuiValue;\n }", "@Override\n public void setControllerVisible(final boolean show) {\n if (isPlayerOnPage(playerId)) {\n impl.setControllerVisible(show);\n } else {\n addToPlayerReadyCommandQueue(\"controller\", new Command() {\n\n @Override\n public void execute() {\n impl.setControllerVisible(show);\n }\n });\n }\n }", "@Override\n\tpublic void setVisible(boolean arg0) {\n\n\t\tlistRestoreSelectedModel.removeAllElements();\n\t\tlistBackupAllTablesModel.removeAllElements();\n\t\tlistRestoreupAllTablesModel.removeAllElements();\n\t\tlistBackupSelectedModel.removeAllElements();\n\t\tgetLabelFileOperationStatus().setText(\"Status: Idle\");\n\t\tif (arg0)\n\t\t\tpopulateAvailableTables();\n\n\t\tsuper.setVisible(arg0);\n\t}", "public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}", "public void setHidden(boolean value) {\r\n this.hidden = value;\r\n }", "public void setVisible(boolean value)\n {\n super.setVisible(value);\n\n // Set the focus\n if (value && !errorFound())\n {\n setCurrentFocus(amountField);\n }\n }", "public void setCursorVisible(boolean visible){\n for(int c=0;c<getChildCount();c++){\n getFieldAt(c).setCursorVisible(visible);\n }\n }", "public boolean isVisible() {\n return true;\n }", "private void setVisible(JTextField a, boolean b) {\n\t\ta.setVisible(b);\r\n\t}", "public boolean isVisible() {\n return true;\n }" ]
[ "0.66721916", "0.6669132", "0.66397136", "0.6587612", "0.6566815", "0.6566815", "0.654553", "0.6530528", "0.64251924", "0.6423523", "0.6416502", "0.6415032", "0.6395396", "0.6390523", "0.63732445", "0.6352893", "0.6331423", "0.63252836", "0.6315716", "0.6287516", "0.6262904", "0.6218108", "0.62103504", "0.6199061", "0.6179216", "0.6139583", "0.61360264", "0.6103226", "0.6075982", "0.6064615", "0.60642475", "0.6058269", "0.6012511", "0.6010313", "0.60041857", "0.59788746", "0.5956781", "0.5956669", "0.5945872", "0.5930334", "0.5917699", "0.5916028", "0.59027463", "0.5897887", "0.5896163", "0.5877842", "0.58615077", "0.58473074", "0.5846309", "0.58330524", "0.5822566", "0.58212054", "0.58187854", "0.58184093", "0.57639384", "0.5745488", "0.57281214", "0.5709075", "0.5687984", "0.5676119", "0.56609356", "0.56608546", "0.56564754", "0.56388915", "0.5621689", "0.5605831", "0.5593816", "0.5587558", "0.55583066", "0.5552888", "0.5544808", "0.55385506", "0.5538003", "0.55308545", "0.55278957", "0.55223364", "0.5520203", "0.55177915", "0.55176", "0.5514428", "0.55060834", "0.5505395", "0.5492796", "0.5492557", "0.54805255", "0.54787207", "0.5477027", "0.547664", "0.5467422", "0.54674065", "0.5467287", "0.5467108", "0.546", "0.54554635", "0.5451384", "0.5443375", "0.5433694", "0.54311925", "0.5429138", "0.5426928" ]
0.7377906
0
Sets whether the given command can be processed at this time. Otherwise, possibly based on the current state of the application, the given command cannot/should not be processed at this time. This method typically (de)sensitizes the widgets that have been associated with the command (see registerCommandDependentWidget).
void setCommandSensitivity(String command, boolean flag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }", "void\t\tsetCommandVisibility(String command, boolean flag);", "protected boolean onExecute(String command)\n {\n return false;\n }", "public boolean setToolCommand(String command);", "public boolean hasCommand() {\n return this.command != null;\n }", "@Override\n public boolean acceptCommand(String command) {\n LockInterface.setLocked(getContext(),command.startsWith(\"Locked\"));\n\n return true;\n }", "@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}", "private boolean handleStartMenuCommands(String command) {\n if (command.equals(\"1\")) {\n toggleVisibleArrays();\n } else if (command.equals(\"2\")) {\n comparisonMenu();\n } else if (command.equalsIgnoreCase(\"x\")) {\n return false;\n } else {\n System.out.println(\"\\nWrong Input\\n\");\n }\n return true;\n }", "protected void setCommand(String command)\n {\n Command = command;\n }", "protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }", "public void onCommand(final TCommandEvent command) {\n // Default: do nothing, pass to children instead\n for (TWidget widget: children) {\n widget.onCommand(command);\n }\n }", "boolean hasCommand();", "boolean hasCommand();", "void\t\tsetCommandState(String command, boolean flag);", "@Override\n\tpublic boolean updateCMD(CMD cmd) {\n\t\treturn false;\n\t}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"quit\"))\n wantToQuit = quit(command);\n\n return wantToQuit;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}", "public boolean areCommandsAllowed()\n {\n return allowCommands;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n \n case LOOK:\n look();\n break;\n \n case RELAX:\n relax();\n break;\n \n case BACK:\n back();\n break;\n }\n return wantToQuit;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n if(commandWord == CommandWord.UNKNOWN) {\n Logger.Log(\"I don't know what you mean...\");\n return false;\n }\n \n if (commandWord == CommandWord.HELP) {\n printHelp();\n }\n else if (commandWord == CommandWord.GO) {\n goRoom(command);\n }\n \n else if (commandWord == CommandWord.TAKE) {\n takeItem(command);\n }\n \n else if (commandWord == CommandWord.USE) {\n useItem(command);\n }\n \n else if (commandWord == CommandWord.LOOK) {\n Logger.Log(currentRoom.getLongDescription());\n }\n \n else if (commandWord == CommandWord.VIEW) {\n viewPlayer(command);\n }\n \n else if (commandWord == CommandWord.QUIT) {\n wantToQuit = quit(command);\n }\n // else command not recognised.\n return wantToQuit;\n }", "protected boolean ValidateCommand()\n {\n //Create a new ArrayList object and add the valid commands\n ArrayList<String> validCommands = new ArrayList<>();\n validCommands.add(\"^\");\n validCommands.add(\"$\");\n validCommands.add(\"-\");\n validCommands.add(\"+\");\n validCommands.add(\"a\");\n validCommands.add(\"t\");\n validCommands.add(\"d\");\n validCommands.add(\"l\");\n validCommands.add(\"n\");\n validCommands.add(\"p\");\n validCommands.add(\"q\");\n validCommands.add(\"w\");\n validCommands.add(\"x\");\n validCommands.add(\"=\");\n validCommands.add(\"#\");\n validCommands.add(\"c\");\n validCommands.add(\"v\");\n validCommands.add(\"s\");\n validCommands.add(\"b\");\n \n //Check if the inserted command is valid\n return validCommands.contains(this.Command);\n }", "private void DoCommand(String command) {\n if (command.equals(\"单点校正\")) {\n CheckControlPtnCal_Dialog tempDialog = new CheckControlPtnCal_Dialog();\n tempDialog.SetCallback(this.pCallback);\n tempDialog.ShowDialog();\n }\n }", "public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}", "public void setCommand(String command) {\n this.command = command;\n }", "public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }", "public void setCommand(String command) {\n _command = command;\n }", "public boolean performCommand ( String command ) {\n\t\treturn invokeSafe ( \"performCommand\" , command );\n\t}", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) \n {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n //my command expect when i Quit\n case PICK:\n pickItem();\n break;\n \n //drink the redbull\n case DRINK:\n drink();\n break;\n \n //show inventory\n case SHOW:\n showInventory();\n break;\n \n //show objective\n case GOAL:\n remindGoal();\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n }\n return wantToQuit;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "protected boolean onSendExtraCommand(@Nullable String command, @Nullable Bundle extras) {\n return false;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\")) {\n printHelp();\n }\n else if (commandWord.equals(\"go\")) {\n player.goRoom(command); \n }\n else if (commandWord.equals(\"look\")) { \n player.look();\n }\n else if (commandWord.equals(\"eat\")) {\n player.eat();\n }\n else if (commandWord.equals(\"quit\")) {\n wantToQuit = quit(command);\n }\n else if (commandWord.equals(\"back\")) {\n player.goBack(); \n }\n else if (commandWord.equals(\"take\")) {\n player.take(command);\n }\n else if (commandWord.equals(\"drop\")) {\n player.drop(command);\n }\n else if (commandWord.equals(\"items\")) {\n player.getItems();\n }\n else if (commandWord.equals(\"equipar\")) {\n player.equipar(command);\n }\n return wantToQuit;\n }", "private boolean isPlaceCommand(Command command) {\r\n return command instanceof PlaceCommand;\r\n }", "public void processCommand() {\n if (cam != null) {\n // No commands if no draw canvas to retrieve them from!\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_UP) || StdDraw.isKeyPressed(KeyEvent.VK_UP))\n this.setR(this.getR().minus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_DOWN) || StdDraw.isKeyPressed(KeyEvent.VK_DOWN)) \n this.setR(this.getR().plus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_LEFT) || StdDraw.isKeyPressed(KeyEvent.VK_LEFT)) \n this.rot += FOV_INCREMENT;\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_RIGHT) || StdDraw.isKeyPressed(KeyEvent.VK_RIGHT)) \n this.rot -= FOV_INCREMENT; \n }\n }", "public void\n\t\t\thandleCommand(/*@ non_null */ String command);", "public boolean isCommand(String command) {\n for(int i = 0; i < commandWords.length; i++) {\n if(commandWords[i].equalsIgnoreCase(command))\n return true;\n }\n return false;\n }", "protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "public static boolean isAutocompleteable(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase EDIT:\r\n\t\tcase DELETE:\r\n\t\tcase DONE:\r\n\t\tcase UNDONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isValidCommand(String cmd) {\r\n\t\tboolean isValidCmd = false;\r\n\t\tList validOtherCmd = Arrays.asList(\"MOVE\", \"LEFT\", \"RIGHT\", \"REPORT\");\r\n\r\n\t\tif (validOtherCmd.contains(cmd.toUpperCase())) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\r\n\t\tif (isValidPlaceCommand(cmd)) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\t\treturn isValidCmd;\r\n\t}", "public boolean isReservedCommand(final String command) {\n for (String reservedCommand : reservedCommands) {\n if (command.contentEquals(reservedCommand)) {\n return true;\n }\n }\n return false;\n }", "boolean hasActionCommand();", "private boolean handleDemoMenuCommands(String command, boolean backCommandIsNotGiven) {\n boolean anAlgorithmWasSelected = command.equals(\"1\") || command.equals(\"2\") || command.equals(\"3\");\n\n if (anAlgorithmWasSelected) {\n intSelect.start();\n } else if (command.equalsIgnoreCase(\"x\")) {\n backCommandIsNotGiven = false;\n }\n return backCommandIsNotGiven;\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "private void optionallyReorderTasks(@NonNull final ICommand<?> command) {\n final String methodTag = TAG + \":optionallyReorderTasks\";\n if (command instanceof InteractiveTokenCommand) {\n if (mActivity == null) {\n throw new IllegalStateException(\"Activity cannot be null in an interactive session.\");\n }\n\n final InteractiveTokenCommand interactiveTokenCommand = (InteractiveTokenCommand) command;\n final InteractiveTokenCommandParameters interactiveTokenCommandParameters = (InteractiveTokenCommandParameters) interactiveTokenCommand.getParameters();\n if (interactiveTokenCommandParameters.getHandleNullTaskAffinity() && !hasTaskAffinity(mActivity)) {\n //If an interactive command doesn't have a task affinity bring the\n //task that launched the command to the foreground\n //In order for this to work the app has to have requested the re-order tasks permission\n //https://developer.android.com/reference/android/Manifest.permission#REORDER_TASKS\n //if the permission has not been granted nothing will happen if you just invoke the method\n final ActivityManager activityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE);\n if (activityManager != null) {\n activityManager.moveTaskToFront(mActivity.getTaskId(), 0);\n } else {\n Logger.warn(methodTag, \"ActivityManager was null; Unable to bring task for the foreground.\");\n }\n }\n }\n }", "@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}", "public void setUnmaximizeCommand( Command unmaximizeCommand ) {\n this.unmaximizeCommand = unmaximizeCommand;\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public abstract void setCommand(String cmd);", "private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "void setEnabledStates(boolean commandStarted) {\n final boolean lockingTargetsState = !commandStarted;\n for (JMenuItem item : lockingTargets) {\n item.setEnabled(lockingTargetsState);\n }\n final boolean unlockingTargetsState = commandStarted;\n for (JMenuItem item : unlockingTargets) {\n item.setEnabled(unlockingTargetsState);\n }\n }", "public interface MiiCommandManager\n\t{\n\t\t\t/**------------------------------------------------------\n\t\t\t * Registers the given widget and the command it generates.\n\t\t\t * This permits (de)sensitization of the widget by the\n\t\t\t * setCommandSensitivity method. \n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#unRegisterWidgetGeneratedCommand\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tregisterCommandDependentWidget(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * UnRegisters the given widget and the command it generates.\n\t\t\t * Either the given widget or the given command may be null.\n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command is to be visible to the\n\t\t\t * user. This method typically (hides)shows the widgets \n\t\t\t * that have been associated with the command.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the user can now see the\n\t\t\t *\t\t\tcommand (whether sensitive or not)\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @implements\t\t\n\t\t\t *\tMiiCommandManager#setCommandVisibility\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandVisibility(String command, boolean flag);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget).\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget). This method is designed\n\t\t\t * to display a status bar message that describes why a \n\t\t\t * particular widget is desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @param statusHelpMsg the new status bar message\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @see\tMiiCommandManager#setCommandSensitivity\n\t\t\t * @see\tMiCommandManager#setCommandSensitivity\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag, String statusHelpMsg);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the boolean widget that generates the \n\t\t\t * given command. This is used for initializing toggle \n\t\t\t * buttons.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the two state widget is\n\t\t\t *\t\t\tto be 'set'.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the multi-state widget that generates\n\t\t\t * the given command. This is used for initializing widgets \n\t\t\t * like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param state\t\tthe current state, one of many.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, String state);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the label of the widget that generates the given \n\t\t\t * command. This is used for initializing widgets like\n\t\t\t * labels and menubar buttons, push button etc.\n\t\t\t * @param command \tthe command\n\t\t\t * @param label\t\tthe new label\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandLabel(String command, String label);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the values of the multi-state widget that generates\n\t\t\t * the given command. This is used for setting the possible\n\t\t\t * values of widgets like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param options\tthe new contents of the widget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandOptions(String command, Strings options);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the given property to the given value for all parts\n\t\t\t * that generates the given command. This is used for, say,\n\t\t\t * changing the status help message on a widget that may\n\t\t\t * only be situationally and temporarily desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param propertyName\tthe property name\n\t\t\t * @param propertyValue\tthe value\n\t\t\t * @implements\t\tMiiCommandManager#setCommandState\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);\n\t}", "@Override\r\n\tpublic boolean validCommand(CommandStack stack) {\r\n\t\treturn true;\r\n\t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "private void processCommand(String command) {\n switch (command) {\n case \"reserve\":\n doReserve();\n break;\n case \"view\":\n doView();\n break;\n case \"deposit\":\n doDeposit();\n break;\n }\n }", "final public void setActionCommand(String command) {\n this.command = command;\n }", "public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}", "public boolean sendCommand(String command) {\n\t\tcommands.add(command);\n\t\tsynchronized(lock) {\n\t\t\t// Wake up another thread that is waiting for commands.\n\t\t\tlock.notify();\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetMCommandType() {\n return this.mCommandType != null;\n }", "@Override\n public boolean canExecute() {\n return true;\n }", "protected boolean isCommandExecuting() {\n // long start = System.nanoTime();\n // boolean inCommand = false;\n // for (StackTraceElement e : Thread.currentThread().getStackTrace()) {\n // if (e.getMethodName().equals(\"handleCommand\")) {\n // inCommand = true;\n // break;\n // }\n // }\n // long now = System.nanoTime();\n // double elapsedMillis = (now - start) * 1e-6;\n // getLogger().info(\"handleCommand: \" + inCommand + \" elapsed ms: \" +\n // elapsedMillis);\n\n try {\n Field playerCommandState = Bukkit.getServer().getClass().getField(\"playerCommandState\");\n return playerCommandState.getBoolean(Bukkit.getServer());\n } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {\n getLogger().severe(\"This plugin needs to be updated for the current server (EasyRider.isCommandExecuting()).\");\n return false;\n }\n }", "public Command() {\n this.executed = false;\n }", "public void runCommand(Command command,CommandState state){\n \tif(button==null)button = new Trigger(){\n \t\t\t@Override\n \t\t\tpublic boolean get() {\n \t\t\t\treturn current ;\n \t\t\t}\n \t};\n \tswitch(state){\n \tcase whenPressed:\n \tbutton.whenActive(command);\n \t\tbreak;\n \tcase toggle:\n \t\tbutton.toggleWhenActive(command);\n \t\tbreak;\n \tcase whilePressed:\n \t\tbutton.whileActive(command);\n \t\tbreak;\n \tcase whileNotPressed:\n \t\tbutton.whenInactive(command);\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \tcase cancel:\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \t}\n }", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public void disableSuggestionsAndSyntaxHighlightingFor(String command) {\n commandTextField.removeSupport(command);\n }", "@Override\npublic boolean hasCommands() {\n\treturn false;\n}", "@objid (\"41b411f8-e0e5-49a4-a7fc-7eed29779401\")\n @Override\n public boolean canExecute() {\n if (!MTools.getAuthTool().canModify(this.layer.getRelatedElement())) {\n return false;\n }\n return true;\n }", "public void updateCommand(Command command) {\n this.command = command;\n }", "@SuppressWarnings(\"unchecked\")\n public void insertCommand(final @NonNull Command<C> command) {\n synchronized (this.commandLock) {\n Node<CommandArgument<C, ?>> node = this.internalTree;\n for (final CommandArgument<C, ?> argument : command.getArguments()) {\n Node<CommandArgument<C, ?>> tempNode = node.getChild(argument);\n if (tempNode == null) {\n tempNode = node.addChild(argument);\n } else if (argument instanceof StaticArgument && tempNode.getValue() != null) {\n for (final String alias : ((StaticArgument<C>) argument).getAliases()) {\n ((StaticArgument<C>) tempNode.getValue()).registerAlias(alias);\n }\n }\n if (node.children.size() > 0) {\n node.children.sort(Comparator.comparing(Node::getValue));\n }\n tempNode.setParent(node);\n node = tempNode;\n }\n if (node.getValue() != null) {\n if (node.getValue().getOwningCommand() != null) {\n throw new IllegalStateException(String.format(\n \"Duplicate command chains detected. Node '%s' already has an owning command (%s)\",\n node.toString(), node.getValue().getOwningCommand().toString()\n ));\n }\n node.getValue().setOwningCommand(command);\n }\n // Verify the command structure every time we add a new command\n this.verifyAndRegister();\n }\n }", "void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "private boolean processCommand(Command command)//Method was given\n {\n if(command.isUnknown())\n {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"talk\"))\n talkToCharacter(currentRoom);\n else if (commandWord.equals(\"grab\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Grab what?\");\n }\n else\n {\n grabItem(secondWord);\n }\n }\n else if (commandWord.equals(\"eat\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Eat what?\");\n }\n else\n {\n eatItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inventory\")) \n player.getInventory();\n else if (commandWord.equals(\"drop\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Drop what?\");\n }\n else\n {\n dropItem(secondWord);\n }\n }\n else if (commandWord.equals(\"inspect\"))\n {\n secondWord = command.getSecondWord();\n if (secondWord == null)\n {\n System.out.println(\"Inspect what?\");\n }\n else\n {\n inspectItem(secondWord);\n }\n }\n else if (commandWord.equals(\"quit\"))\n {\n if(command.hasSecondWord())\n System.out.println(\"Quit what?\");\n else\n return true; // signal that we want to quit\n }\n else if (commandWord.equals(\"look\"))\n {\n System.out.println(currentRoom.longDescription());\n }\n return false;\n }", "boolean canProcess(final WriteableCommandLine commandLine, final String argument);", "public static void processCommand(String command) {\n instance.doCommand(command);\n }", "@Override\n int setImmediate(ImmediateCommand command) {\n\n int handle = addCommand(command);\n postMessage(window, MESSAGE_PREFIX + handle);\n return handle;\n }", "@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}", "@Override\n public boolean containsPermission(Class<? extends AeroCommandBase<?>> command, String permission) {\n if (!containsPermissions(command)) {\n return false;\n }\n\n return permissions.get(command).contains(permission.toLowerCase());\n }", "public boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_)\n {\n return true;\n }", "private void processCommand(Command command) {\n if (command.commandIsUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n } else {\n String commandWord = command.getCommandWord();\n // process all possible commands\n if (commandWord.equals(\"help\")) {\n printHelp();\n } else if (commandWord.equals(\"go\")) {\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n } else {\n goDirection(command);\n }\n } else if (commandWord.equals(\"quit\")) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n } else {\n finished = true;\n }\n }\n }\n }", "private boolean processCommand(String line) {\n if (line.length() == 0) {\n return true;\n }\n Matcher command = COMMAND_PATN.matcher(line);\n if (command.matches()) {\n switch (command.group(1).toLowerCase()) {\n case \"#\":\n return true;\n case \"manual\":\n manualCommand(command.group(2).toLowerCase());\n return true;\n case \"auto\":\n autoCommand(command.group(2).toLowerCase());\n return true;\n case \"seed\":\n seedCommand(command.group(2));\n return true;\n case \"board\": case \"b\":\n System.out.println(_board.toString2());\n return true;\n case \"autoprint\":\n autoPrintCommand();\n return true;\n case \"set\":\n setCommand(command.group(2), command.group(3));\n return true;\n case \"dump\":\n System.out.println(_board.toString());\n return true;\n case \"start\":\n _playing = true;\n return true;\n case \"clear\":\n _playing = false;\n _board.clear();\n return true;\n case \"quit\":\n quit();\n return true;\n case \"help\": case \"?\":\n help();\n return true;\n default:\n return false;\n }\n }\n return false;\n }", "public void notifyCommands(Command cmd, boolean pressed) {\n if (pressed) {\n if (!commands.contains(cmd) && isMovement(cmd)) movements.push(cmd);\n commands.add(cmd);\n } else {\n if(commands.contains(cmd)) movements.remove(cmd);\n commands.remove(cmd);\n }\n }", "public static boolean isUndone(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase UNDONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public Boolean isEnableExecuteCommand() {\n return this.enableExecuteCommand;\n }", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "public boolean sendCommand(String command, Component owner,\n boolean askContinue)\n {\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n c.toLowerCase();\n if (m_showModifyWarning\n && (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.startsWith(\"clear_board \")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\")))\n {\n String message = \n \"This command will modify the board state\\n\" +\n \"and will cause the graphical board to be out of sync.\\n\" +\n \"You must start a new game before using\\n\" +\n \"the graphical board again.\";\n int messageType = JOptionPane.WARNING_MESSAGE;\n int optionType = JOptionPane.OK_CANCEL_OPTION;\n JOptionPane optionPane =\n new JOptionPane(message, messageType, optionType);\n JDialog dialog =\n optionPane.createDialog(this, \"GoGui: Warning\");\n dialog.setLocationRelativeTo(this);\n dialog.setVisible(true);\n \n Object value = optionPane.getValue();\n if (value == null)\n return true;\n int intValue = ((Integer)value).intValue();\n if (intValue != JOptionPane.OK_OPTION)\n return true;\n message = \n \"Would you like to disable the warnings about\\n\" +\n \"commands modifying the board state?\";\n m_showModifyWarning =\n ! SimpleDialogs.showQuestion(this, message);\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (Gtp.Error e)\n {\n SimpleDialogs.showError(owner, e.getMessage());\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }", "protected void handleOther(final boolean invalidCmd) {\r\n\t\t// do nothing\r\n\t}", "public void setCanMove(double cmd){\n \tleftCanMotor.set(cmd);\n \trightCanMotor.set(cmd); \n }", "public boolean satisfiesMinimumDoneCommandLength(String[] command) {\n return (command.length > 1);\n }", "boolean executeCommand(ICommand _command) throws Exception;", "boolean processCommand() throws IOException\n\t{\n\t\tString[] commands = in.readLine().split(\" \");\n\t\tif (commands[0].equalsIgnoreCase(\"F\") && isNum(commands[1]) && isNum(commands[2])) {\n\t\t\tprocessFireCmd(new String[] {commands[1], commands[2]});\n\t\t} else if (commands[0].equalsIgnoreCase(\"C\")) {\n\t\t\tprocessChatCmd (Arrays.copyOfRange(commands, 1, commands.length).toString());\n\t\t} else if (commands[0].equalsIgnoreCase(\"D\")) {\n\t\t\tout.println(\"My board: \\n\");\n\t\t\tboard.draw();\n\t\t\tout.println(\"Target's board: \\n\");\n\t\t\ttargets.draw();\n\t\t\tout.flush();\n\t\t} else {\n\t\t\tout.println(\"Unknown command.\");\n\t\t\tout.flush();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setActionCommand(String command) {\n this.command = command;\n }", "private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "public boolean cancel(CancellableCommand command) {\n if (outstandingRequests.remove(command)) {\n command.onCancelled();\n return true;\n }\n return false;\n }", "public void pushIfDifferent(String newCommand) {\n if (newCommand.equals(getActionCommand())) {\n restart();\n }\n else {\n stop();\n // Force this message to first\n if (getActionCommand()!=null)\n {\n fireActionPerformed(new ActionEvent(TextFieldUpdateTimer.this, 0, getActionCommand(),\n System.currentTimeMillis(),\n 0));\n }\n // Start the timer with the new command\n setActionCommand(newCommand);\n restart();\n }\n }" ]
[ "0.59256613", "0.5856486", "0.5741606", "0.57047224", "0.56686544", "0.56548667", "0.56483823", "0.5617384", "0.54626286", "0.54362494", "0.5352395", "0.5351348", "0.5351348", "0.5341702", "0.5340496", "0.53352445", "0.5309135", "0.5284503", "0.5281014", "0.5277999", "0.527238", "0.526181", "0.5257349", "0.5255307", "0.5254375", "0.52525944", "0.5234311", "0.5229194", "0.52225244", "0.52097803", "0.52007455", "0.5189122", "0.5187242", "0.51659673", "0.5150382", "0.5127516", "0.5106874", "0.50913686", "0.5074969", "0.5049522", "0.5044215", "0.5007625", "0.5003952", "0.49990234", "0.49967512", "0.4977465", "0.49769324", "0.49743134", "0.49575338", "0.49562657", "0.49527106", "0.4951894", "0.49506745", "0.4940774", "0.49395505", "0.49376777", "0.4921511", "0.49199286", "0.49116522", "0.491131", "0.4904955", "0.48977885", "0.48874152", "0.48861417", "0.48836243", "0.48802027", "0.48791572", "0.48587877", "0.48516464", "0.48444402", "0.48361248", "0.48244095", "0.48039237", "0.4799556", "0.47988743", "0.4793746", "0.47932327", "0.4782605", "0.47666463", "0.47665328", "0.4766341", "0.47600454", "0.47551414", "0.47473785", "0.47472566", "0.4735305", "0.47193408", "0.47192284", "0.4719116", "0.47162494", "0.4710426", "0.47081298", "0.47063944", "0.47043693", "0.47024077", "0.46973372", "0.46807915", "0.4673506", "0.4673032", "0.46715352" ]
0.48893756
62
Sets whether the given command can be processed at this time. Otherwise, possibly based on the current state of the application, the given command cannot/should not be processed at this time. This method typically (de)sensitizes the widgets that have been associated with the command (see registerCommandDependentWidget). This method is designed to display a status bar message that describes why a particular widget is desensitized.
void setCommandSensitivity(String command, boolean flag, String statusHelpMsg);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void\t\tsetCommandVisibility(String command, boolean flag);", "private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }", "protected boolean onExecute(String command)\n {\n return false;\n }", "protected boolean onSendExtraCommand(@Nullable String command, @Nullable Bundle extras) {\n return false;\n }", "protected void handleOther(final boolean invalidCmd) {\r\n\t\t// do nothing\r\n\t}", "public boolean sendCommand(String command, Component owner,\n boolean askContinue)\n {\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n c.toLowerCase();\n if (m_showModifyWarning\n && (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.startsWith(\"clear_board \")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\")))\n {\n String message = \n \"This command will modify the board state\\n\" +\n \"and will cause the graphical board to be out of sync.\\n\" +\n \"You must start a new game before using\\n\" +\n \"the graphical board again.\";\n int messageType = JOptionPane.WARNING_MESSAGE;\n int optionType = JOptionPane.OK_CANCEL_OPTION;\n JOptionPane optionPane =\n new JOptionPane(message, messageType, optionType);\n JDialog dialog =\n optionPane.createDialog(this, \"GoGui: Warning\");\n dialog.setLocationRelativeTo(this);\n dialog.setVisible(true);\n \n Object value = optionPane.getValue();\n if (value == null)\n return true;\n int intValue = ((Integer)value).intValue();\n if (intValue != JOptionPane.OK_OPTION)\n return true;\n message = \n \"Would you like to disable the warnings about\\n\" +\n \"commands modifying the board state?\";\n m_showModifyWarning =\n ! SimpleDialogs.showQuestion(this, message);\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (Gtp.Error e)\n {\n SimpleDialogs.showError(owner, e.getMessage());\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }", "public void disableSuggestionsAndSyntaxHighlightingFor(String command) {\n commandTextField.removeSupport(command);\n }", "private boolean handleStartMenuCommands(String command) {\n if (command.equals(\"1\")) {\n toggleVisibleArrays();\n } else if (command.equals(\"2\")) {\n comparisonMenu();\n } else if (command.equalsIgnoreCase(\"x\")) {\n return false;\n } else {\n System.out.println(\"\\nWrong Input\\n\");\n }\n return true;\n }", "@Override\r\n\tpublic final void showCommandError(String command, String message) {\n\t}", "private void DoCommand(String command) {\n if (command.equals(\"单点校正\")) {\n CheckControlPtnCal_Dialog tempDialog = new CheckControlPtnCal_Dialog();\n tempDialog.SetCallback(this.pCallback);\n tempDialog.ShowDialog();\n }\n }", "@Override\n public boolean acceptCommand(String command) {\n LockInterface.setLocked(getContext(),command.startsWith(\"Locked\"));\n\n return true;\n }", "public boolean setToolCommand(String command);", "public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }", "private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}", "@Override\n\tpublic boolean updateCMD(CMD cmd) {\n\t\treturn false;\n\t}", "public boolean hasCommand() {\n return this.command != null;\n }", "public static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "boolean hasCommand();", "boolean hasCommand();", "public void\n\t\t\thandleCommand(/*@ non_null */ String command);", "public boolean performCommand ( String command ) {\n\t\treturn invokeSafe ( \"performCommand\" , command );\n\t}", "public boolean isReservedCommand(final String command) {\n for (String reservedCommand : reservedCommands) {\n if (command.contentEquals(reservedCommand)) {\n return true;\n }\n }\n return false;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n if(commandWord == CommandWord.UNKNOWN) {\n Logger.Log(\"I don't know what you mean...\");\n return false;\n }\n \n if (commandWord == CommandWord.HELP) {\n printHelp();\n }\n else if (commandWord == CommandWord.GO) {\n goRoom(command);\n }\n \n else if (commandWord == CommandWord.TAKE) {\n takeItem(command);\n }\n \n else if (commandWord == CommandWord.USE) {\n useItem(command);\n }\n \n else if (commandWord == CommandWord.LOOK) {\n Logger.Log(currentRoom.getLongDescription());\n }\n \n else if (commandWord == CommandWord.VIEW) {\n viewPlayer(command);\n }\n \n else if (commandWord == CommandWord.QUIT) {\n wantToQuit = quit(command);\n }\n // else command not recognised.\n return wantToQuit;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"quit\"))\n wantToQuit = quit(command);\n\n return wantToQuit;\n }", "@Override\npublic boolean hasCommands() {\n\treturn false;\n}", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) \n {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n //my command expect when i Quit\n case PICK:\n pickItem();\n break;\n \n //drink the redbull\n case DRINK:\n drink();\n break;\n \n //show inventory\n case SHOW:\n showInventory();\n break;\n \n //show objective\n case GOAL:\n remindGoal();\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n }\n return wantToQuit;\n }", "private void checkStatus()\n {\n // If the last command failed\n if(!project.getLastCommandStatus())\n {\n view.alert(\"Error: \" + project.getLastCommandStatusMessage());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCommand lastCmd = project.getLastCommand();\n\t\t\tif (lastCmd != null && lastCmd.hasOptionalState())\n\t\t\t{\n\t\t\t\tview.loadFromJSON(lastCmd.getOptionalState());\n\t\t\t\tview.onUpdate(project.getProjectSnapshot(), false);\n\t\t\t}\n\t\t}\n }", "private void assertCommandFailure(String inputCommand, String expectedMessage) {\n WhatsLeft expectedWhatsLeft = new WhatsLeft(model.getWhatsLeft());\n List<ReadOnlyEvent> expectedShownList = new ArrayList<>(model.getFilteredEventList());\n assertCommandBehavior(true, inputCommand, expectedMessage, expectedWhatsLeft, expectedShownList);\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n \n case LOOK:\n look();\n break;\n \n case RELAX:\n relax();\n break;\n \n case BACK:\n back();\n break;\n }\n return wantToQuit;\n }", "void\t\tsetCommandSensitivity(String command, boolean flag);", "protected void setCommand(String command)\n {\n Command = command;\n }", "public interface MiiCommandManager\n\t{\n\t\t\t/**------------------------------------------------------\n\t\t\t * Registers the given widget and the command it generates.\n\t\t\t * This permits (de)sensitization of the widget by the\n\t\t\t * setCommandSensitivity method. \n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#unRegisterWidgetGeneratedCommand\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tregisterCommandDependentWidget(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * UnRegisters the given widget and the command it generates.\n\t\t\t * Either the given widget or the given command may be null.\n\t\t\t * @param widget \tthe widget that generates the command\n\t\t\t * @param command \tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tunRegisterWidgetGeneratedCommand(MiPart widget, String command);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command is to be visible to the\n\t\t\t * user. This method typically (hides)shows the widgets \n\t\t\t * that have been associated with the command.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the user can now see the\n\t\t\t *\t\t\tcommand (whether sensitive or not)\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @implements\t\t\n\t\t\t *\tMiiCommandManager#setCommandVisibility\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandVisibility(String command, boolean flag);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget).\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets whether the given command can be processed at this\n\t\t\t * time. Otherwise, possibly based on the current state of\n\t\t\t * the application, the given command cannot/should not be\n\t\t\t * processed at this time. This method typically (de)sensitizes\n\t\t\t * the widgets that have been associated with the command\n\t\t\t * (see registerCommandDependentWidget). This method is designed\n\t\t\t * to display a status bar message that describes why a \n\t\t\t * particular widget is desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the system can now process\n\t\t\t *\t\t\tthe command\n\t\t\t * @param statusHelpMsg the new status bar message\n\t\t\t * @see\t\t\t#registerCommandDependentWidget\n\t\t\t * @see\tMiiCommandManager#setCommandSensitivity\n\t\t\t * @see\tMiCommandManager#setCommandSensitivity\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandSensitivity(String command, boolean flag, String statusHelpMsg);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the boolean widget that generates the \n\t\t\t * given command. This is used for initializing toggle \n\t\t\t * buttons.\n\t\t\t * @param command \tthe command\n\t\t\t * @param flag \t\ttrue if the two state widget is\n\t\t\t *\t\t\tto be 'set'.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, boolean flag);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the state of the multi-state widget that generates\n\t\t\t * the given command. This is used for initializing widgets \n\t\t\t * like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param state\t\tthe current state, one of many.\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandState(String command, String state);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the label of the widget that generates the given \n\t\t\t * command. This is used for initializing widgets like\n\t\t\t * labels and menubar buttons, push button etc.\n\t\t\t * @param command \tthe command\n\t\t\t * @param label\t\tthe new label\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandLabel(String command, String label);\n\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the values of the multi-state widget that generates\n\t\t\t * the given command. This is used for setting the possible\n\t\t\t * values of widgets like combo boxes and lists.\n\t\t\t * @param command \tthe command\n\t\t\t * @param options\tthe new contents of the widget\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandOptions(String command, Strings options);\n\n\t\t\t/**------------------------------------------------------\n\t\t\t * Sets the given property to the given value for all parts\n\t\t\t * that generates the given command. This is used for, say,\n\t\t\t * changing the status help message on a widget that may\n\t\t\t * only be situationally and temporarily desensitized.\n\t\t\t * @param command \tthe command\n\t\t\t * @param propertyName\tthe property name\n\t\t\t * @param propertyValue\tthe value\n\t\t\t * @implements\t\tMiiCommandManager#setCommandState\n\t\t\t *------------------------------------------------------*/\n\tvoid\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);\n\t}", "@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}", "public boolean isCommand(String command) {\n for(int i = 0; i < commandWords.length; i++) {\n if(commandWords[i].equalsIgnoreCase(command))\n return true;\n }\n return false;\n }", "protected boolean ValidateCommand()\n {\n //Create a new ArrayList object and add the valid commands\n ArrayList<String> validCommands = new ArrayList<>();\n validCommands.add(\"^\");\n validCommands.add(\"$\");\n validCommands.add(\"-\");\n validCommands.add(\"+\");\n validCommands.add(\"a\");\n validCommands.add(\"t\");\n validCommands.add(\"d\");\n validCommands.add(\"l\");\n validCommands.add(\"n\");\n validCommands.add(\"p\");\n validCommands.add(\"q\");\n validCommands.add(\"w\");\n validCommands.add(\"x\");\n validCommands.add(\"=\");\n validCommands.add(\"#\");\n validCommands.add(\"c\");\n validCommands.add(\"v\");\n validCommands.add(\"s\");\n validCommands.add(\"b\");\n \n //Check if the inserted command is valid\n return validCommands.contains(this.Command);\n }", "void\t\tsetCommandState(String command, boolean flag);", "@Test\n public void commandBox_commandSucceedsAfterFailedCommand_textClearedAndErrorStyleClassRemoved() {\n commandBox.getStyleClass().add(CommandBox.ERROR_STYLE_CLASS);\n commandBox.runCommand(COMMAND_THAT_SUCCEEDS);\n\n assertEquals(\"\", commandBox.getCommandInput());\n assertEquals(defaultStyleOfCommandBox, commandBox.getStyleClass());\n }", "boolean hasActionCommand();", "public void setUnmaximizeCommand( Command unmaximizeCommand ) {\n this.unmaximizeCommand = unmaximizeCommand;\n }", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "void illegalCommand(final String reason);", "public boolean areCommandsAllowed()\n {\n return allowCommands;\n }", "@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}", "public void setCommand(String command)\n {\n this.command = command;\n }", "private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\")) {\n printHelp();\n }\n else if (commandWord.equals(\"go\")) {\n player.goRoom(command); \n }\n else if (commandWord.equals(\"look\")) { \n player.look();\n }\n else if (commandWord.equals(\"eat\")) {\n player.eat();\n }\n else if (commandWord.equals(\"quit\")) {\n wantToQuit = quit(command);\n }\n else if (commandWord.equals(\"back\")) {\n player.goBack(); \n }\n else if (commandWord.equals(\"take\")) {\n player.take(command);\n }\n else if (commandWord.equals(\"drop\")) {\n player.drop(command);\n }\n else if (commandWord.equals(\"items\")) {\n player.getItems();\n }\n else if (commandWord.equals(\"equipar\")) {\n player.equipar(command);\n }\n return wantToQuit;\n }", "public boolean isValidCommand(String cmd) {\r\n\t\tboolean isValidCmd = false;\r\n\t\tList validOtherCmd = Arrays.asList(\"MOVE\", \"LEFT\", \"RIGHT\", \"REPORT\");\r\n\r\n\t\tif (validOtherCmd.contains(cmd.toUpperCase())) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\r\n\t\tif (isValidPlaceCommand(cmd)) {\r\n\t\t\tisValidCmd = true;\r\n\t\t}\r\n\t\treturn isValidCmd;\r\n\t}", "public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}", "public void onCommand(final TCommandEvent command) {\n // Default: do nothing, pass to children instead\n for (TWidget widget: children) {\n widget.onCommand(command);\n }\n }", "private static void OnQueryStatusNYI(Object target, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null) \r\n {\r\n return;\r\n }\r\n\r\n args.CanExecute = true;\r\n }", "public void setCommand(String command) {\n this.command = command;\n }", "@Override\n public void run() {\n\t\t\t\t\t\t\tif (!wrapped)\n\t\t\t\t\t\t\t\thexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null);\n\t\t\t\t\t\t\tupdateStatusPanel();\n\t\t\t\t\t\t}", "abstract protected void cancelCommands();", "private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}", "private void doShowWarningPaneIfNeeded(final Device device,\n\t\t\tfinal MessageScheduler scheduler, final boolean busy) {\n\t\tfinal IGateway ni = findAreaOrDeviceInterface(device);\n\n\t\tif (ni != null) {\n\t\t\tif (device.getConnectivity().isOffline()) {\n\t\t\t\tshowWarningPane(DeviceConnectivityProblem\n\t\t\t\t\t\t.getOfflineProblemDetails(device.getConnectivity()\n\t\t\t\t\t\t\t\t.getTimestamp()));\n\t\t\t\treturn;\n\t\t\t} else if (busy && scheduler != null\n\t\t\t\t\t&& scheduler.getInterface() == ni) {\n\t\t\t\tshowWarningPane(BUSY_PANEL_MESSAGE);\n\t\t\t\treturn;\n\t\t\t} else {\n\t\t\t\tfinal IGateway.GatewayConnectionStatus ns = ni\n\t\t\t\t\t\t.getConnectionStatus();\n\t\t\t\tif (IGateway.GatewayConnectionStatus.isNoGatewayConnection(ns)) {\n\t\t\t\t\tshowWarningPane(WARNING_PANEL_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Remove if show did not apply!\n\t\t */\n\t\t// removeWarningPane();\n\t}", "public void setCommand(String command) {\n _command = command;\n }", "private boolean handleDemoMenuCommands(String command, boolean backCommandIsNotGiven) {\n boolean anAlgorithmWasSelected = command.equals(\"1\") || command.equals(\"2\") || command.equals(\"3\");\n\n if (anAlgorithmWasSelected) {\n intSelect.start();\n } else if (command.equalsIgnoreCase(\"x\")) {\n backCommandIsNotGiven = false;\n }\n return backCommandIsNotGiven;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void pushIfDifferent(String newCommand) {\n if (newCommand.equals(getActionCommand())) {\n restart();\n }\n else {\n stop();\n // Force this message to first\n if (getActionCommand()!=null)\n {\n fireActionPerformed(new ActionEvent(TextFieldUpdateTimer.this, 0, getActionCommand(),\n System.currentTimeMillis(),\n 0));\n }\n // Start the timer with the new command\n setActionCommand(newCommand);\n restart();\n }\n }", "protected void processCommand(String command) throws EmptyException {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"p\")) {\n doViewList();\n } else if (command.equals(\"m\")) {\n //doMarkComplete();\n } else if (command.equals(\"n\")) {\n doCount();\n } else if (command.equals(\"s\")) {\n doSave();\n } else if (command.equals(\"c\")) {\n doClear();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "protected boolean isCommandExecuting() {\n // long start = System.nanoTime();\n // boolean inCommand = false;\n // for (StackTraceElement e : Thread.currentThread().getStackTrace()) {\n // if (e.getMethodName().equals(\"handleCommand\")) {\n // inCommand = true;\n // break;\n // }\n // }\n // long now = System.nanoTime();\n // double elapsedMillis = (now - start) * 1e-6;\n // getLogger().info(\"handleCommand: \" + inCommand + \" elapsed ms: \" +\n // elapsedMillis);\n\n try {\n Field playerCommandState = Bukkit.getServer().getClass().getField(\"playerCommandState\");\n return playerCommandState.getBoolean(Bukkit.getServer());\n } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {\n getLogger().severe(\"This plugin needs to be updated for the current server (EasyRider.isCommandExecuting()).\");\n return false;\n }\n }", "public static boolean isUndone(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase UNDONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }", "final public void setActionCommand(String command) {\n this.command = command;\n }", "public String processCommand(Command command) //refactored\n {\n boolean wantToQuit = false;\n //System.out.println(\"hitter boolean\");\n commandWord = command.getAction();//fehler\n //System.out.println(command);\n //System.out.println(\"enum == null\" + (commandWord == null));\n String result = \"\";\n //System.out.println(\"heyho\");\n //System.out.println(result);\n switch(commandWord){\n //case UNKNOWN: return \"I don't know what you mean...\"; break;\n \n case HELP: result += printHelp(); break;\n case GO: result += goRoom(command); break;\n case QUIT: return quit(command);//refactored from refactoring\n default: result += \"I don't know what you mean...\";\n }\n return result;\n }", "public boolean isFactionsCommand(String check)\n \t{\n \t\tif (check == null || check.isEmpty()) return false;\n \t\treturn this.handleCommand(null, check, true);\n \t}", "private void processCommand(String command) {\n switch (command) {\n case \"reserve\":\n doReserve();\n break;\n case \"view\":\n doView();\n break;\n case \"deposit\":\n doDeposit();\n break;\n }\n }", "private void assertCommandSuccess(String inputCommand, String expectedMessage,\n ReadOnlyWhatsLeft expectedWhatsLeft,\n List<? extends ReadOnlyEvent> expectedShownList) {\n assertCommandBehavior(false, inputCommand, expectedMessage, expectedWhatsLeft, expectedShownList);\n }", "public static boolean isSpecialCommand(FtpCommandCode command) {\r\n \t\treturn ((command == QUIT) || (command == ABOR) || (command == NOOP) || (command == STAT));\r\n \t}", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_)\n {\n return true;\n }", "public void handleCommand(String command);", "public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }", "public boolean cancel(CancellableCommand command) {\n if (outstandingRequests.remove(command)) {\n command.onCancelled();\n return true;\n }\n return false;\n }", "public boolean isValidCommandWord(String commandWord) {\n if (commandWord.equals(\"\")) {\n return false;\n } else {\n return true;\n }\n }", "private void processCommand(Command command) {\n if (command.commandIsUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n } else {\n String commandWord = command.getCommandWord();\n // process all possible commands\n if (commandWord.equals(\"help\")) {\n printHelp();\n } else if (commandWord.equals(\"go\")) {\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n } else {\n goDirection(command);\n }\n } else if (commandWord.equals(\"quit\")) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n } else {\n finished = true;\n }\n }\n }\n }", "public boolean hasCommand() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Experimental\n default boolean ignoreCommandWithFlags(long commandFlags) {\n return false;\n }", "@Override\n\tpublic boolean isCommandAuthorized(){\n\t\treturn true;\n\t}", "protected boolean onExecute(String command, long hconv)\n {\n return onExecute(command);\n }", "protected boolean shouldUseActionsInsteadOfButtonBar() {\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n\n return convertPxToDip(metrics.heightPixels) < 350;\n }", "@Override\r\n\tpublic boolean validCommand(CommandStack stack) {\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}", "private CommandResult executeInvalidCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, CommandResult.INVALID_COMMAND);\n }", "public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }", "ACommand CheckCommand(String NameCommand);", "@Override\n public void sendSelectionMessage(CommandHandler commandHandler) {\n try {\n commandHandler.update(new Response(null, true, Constants.MAIN_ACTION));\n } catch (Observer.CommunicationError error) {\n error.printStackTrace();\n }\n }", "public boolean send(String command, Component owner, boolean askContinue)\n {\n assert(SwingUtilities.isEventDispatchThread());\n String c = command.trim();\n if (c.equals(\"\"))\n return true;\n if (c.startsWith(\"#\"))\n {\n m_gtpShellText.appendComment(command + \"\\n\");\n }\n else\n {\n if (c.startsWith(\"boardsize \")\n || c.startsWith(\"black \")\n || c.equals(\"clear_board\")\n || c.startsWith(\"genmove \")\n || c.startsWith(\"genmove_black \")\n || c.startsWith(\"genmove_cleanup \")\n || c.startsWith(\"genmove_white \")\n || c.startsWith(\"kgs-genmove_cleanup \")\n || c.startsWith(\"loadsgf \")\n || c.startsWith(\"play \")\n || c.startsWith(\"play_sequence \")\n || c.startsWith(\"white \")\n || c.startsWith(\"quit\"))\n {\n if (m_modifyWarning == null)\n m_modifyWarning = new OptionalMessage(this);\n String message = \n \"The command '\" + command + \"' \" +\n \"will modify the board state \" +\n \"and cause the graphical board to be out of sync. \" +\n \"You should start a new game before using \" +\n \"the graphical board again.\";\n if (! m_modifyWarning.showWarning(message))\n return true;\n }\n try\n {\n m_callback.sendGtpCommand(command, owner != null);\n }\n catch (GtpError e)\n {\n Util.showError(owner, m_programName, e);\n if (askContinue)\n return ! SimpleDialogs.showQuestion(owner, \"Abort?\");\n }\n }\n return true;\n }", "private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }", "private boolean isPlaceCommand(Command command) {\r\n return command instanceof PlaceCommand;\r\n }", "public boolean satisfiesMinimumDoneCommandLength(String[] command) {\n return (command.length > 1);\n }", "public static boolean isAutocompleteable(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase EDIT:\r\n\t\tcase DELETE:\r\n\t\tcase DONE:\r\n\t\tcase UNDONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected boolean showCantUndo ()\n {\n return showConfirm(\"m.cant_undo\", \"t.cant_undo\");\n }", "@Override\n public boolean canExecute() {\n return true;\n }", "private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }", "public abstract boolean doCommand() throws Exception;", "public boolean sendCommand(String command) {\n\t\tcommands.add(command);\n\t\tsynchronized(lock) {\n\t\t\t// Wake up another thread that is waiting for commands.\n\t\t\tlock.notify();\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.5796815", "0.579032", "0.54598576", "0.532937", "0.528714", "0.5272793", "0.5241454", "0.5217804", "0.52020836", "0.51990044", "0.5197837", "0.5193909", "0.51466113", "0.5128959", "0.5074833", "0.5069304", "0.5038368", "0.50266725", "0.50266725", "0.50222623", "0.5010854", "0.49818996", "0.49781352", "0.4935056", "0.492236", "0.49181694", "0.49162287", "0.49149457", "0.49117765", "0.4889338", "0.48760608", "0.48619363", "0.48569378", "0.48539093", "0.48499534", "0.48333788", "0.48233983", "0.4822861", "0.4807832", "0.47798494", "0.47792655", "0.47717416", "0.47680736", "0.4727811", "0.47198996", "0.47131744", "0.47102144", "0.47039747", "0.46990937", "0.46944532", "0.46935034", "0.468075", "0.46709448", "0.46674", "0.46661833", "0.46546152", "0.4644835", "0.4644193", "0.4632603", "0.46198013", "0.46161073", "0.46095595", "0.46057078", "0.46048054", "0.45947528", "0.45895234", "0.45825455", "0.4577276", "0.456799", "0.4566093", "0.45639104", "0.4559692", "0.45573887", "0.45494577", "0.45480987", "0.45460123", "0.45456654", "0.45256454", "0.45214856", "0.45117983", "0.45040685", "0.44999188", "0.44982857", "0.44978374", "0.44931906", "0.4492426", "0.4485116", "0.44840488", "0.44738403", "0.44707024", "0.4468835", "0.4465922", "0.44578838", "0.44545048", "0.4451073", "0.4449684", "0.44440502", "0.4442925", "0.44384417", "0.44327348" ]
0.5370701
3
Sets the state of the boolean widget that generates the given command. This is used for initializing toggle buttons.
void setCommandState(String command, boolean flag);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void\t\tsetCommandState(String command, String state);", "public void setState( boolean bool ) { state = bool; }", "void setState(boolean state);", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "public void setOn(boolean arg) {\n isOn = arg;\n }", "public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }", "public void set(boolean bol);", "public void runCommand(Command command,CommandState state){\n \tif(button==null)button = new Trigger(){\n \t\t\t@Override\n \t\t\tpublic boolean get() {\n \t\t\t\treturn current ;\n \t\t\t}\n \t};\n \tswitch(state){\n \tcase whenPressed:\n \tbutton.whenActive(command);\n \t\tbreak;\n \tcase toggle:\n \t\tbutton.toggleWhenActive(command);\n \t\tbreak;\n \tcase whilePressed:\n \t\tbutton.whileActive(command);\n \t\tbreak;\n \tcase whileNotPressed:\n \t\tbutton.whenInactive(command);\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \tcase cancel:\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \t}\n }", "void setBoolean(boolean value);", "@Override\n\tpublic void setBool(boolean bool) {\n\t\t/*\n\t\t * Handles the translation of boolean to the internal representation (Color, int, whatever we decide)\n\t\t */\n\t\tint BLACK = 0x000000;\n\t\tint WHITE = 0xFFFFFF;\n\t\tcolor = bool ? BLACK : WHITE;\n\n\t}", "public Toggle (Boolean setting, String name, String trueName, String falseName){\r\n \t\t\tthis.setting = setting;\r\n \t\t\tthis.name = name;\r\n \t\t\tthis.trueName = trueName;\r\n \t\t\tthis.falseName = falseName;\r\n \t\t}", "void\t\tsetCommandVisibility(String command, boolean flag);", "public abstract void setInput(boolean value);", "void set(boolean on);", "public void setState(Boolean state) {\n this.state = state;\n }", "public ToggleButton()\n {\n this(true);\n }", "private void setButtonState(boolean state) {\n _viewActivity.setClickable( state );\n _viewActivity.setEnabled( state );\n }", "public Toggle (Boolean setting, String name){\r\n \t\t\tthis.setting = setting;\r\n \t\t\tthis.name = name;\r\n \t\t\ttrueName = \"enabled\"; //Default names.\r\n \t\t\tfalseName = \"disabled\";\r\n \t\t}", "private void updateButtonStateEpson(boolean state) {\n }", "private void setUpToggleButton()\n {\n rememberLoginToggle_ =\n (ToggleButton) findViewById( R.id.rememberLoginToggleButton );\n try\n {\n if ( properties_.containsKey( getString( R.string.saveInfo ) ) )\n {\n rememberLoginIsSet_ =\n Boolean.parseBoolean( (properties_\n .get( getString( R.string.saveInfo ) ))\n .toString() );\n }\n else\n {\n rememberLoginIsSet_ = true;\n }\n }\n catch ( Exception ex )\n {\n System.err.print( \"Error converting to boolean: \" + ex );\n }\n\n rememberLoginToggle_.setChecked( rememberLoginIsSet_ );\n\n rememberLoginToggle_.setOnClickListener( new View.OnClickListener()\n {\n // Toggle the button on click\n @Override\n public void onClick( View v )\n {\n rememberLoginIsSet_ = !rememberLoginIsSet_;\n }\n } );\n }", "public void setOp ( boolean value ) {\n\t\texecute ( handle -> handle.setOp ( value ) );\n\t}", "void set(boolean value);", "public void updateState(boolean state);", "public void setToggle(boolean value) {\n getElement().setToggle(value);\n }", "public void setIsModifier(java.lang.Boolean value);", "public Dargle toggle()\n\t{ m_bBoolean = ! m_bBoolean ; return this ; }", "public void setState(boolean state) {\n\t\tthis.state = state;\n\t}", "public void setOp(boolean value) {}", "public boolean setToolCommand(String command);", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagZhaopin = !bFlagZhaopin;\r\n\t\t\t\t zhaopin_btn.setChecked(bFlagZhaopin);\r\n\t\t\t }", "public void setDown(boolean b){ down = b; }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagHehuo = !bFlagHehuo;\r\n\t\t\t\t hehuo_btn.setChecked(bFlagHehuo);\r\n\t\t\t }", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "void setIsManaged(boolean isManaged);", "public void setPressed(boolean pressed){\n this.isPressed = pressed;\n }", "@Override\r\n\tpublic void handle(ActionEvent event) {\r\n\t\tString command = ((ToggleButton) event.getSource()).getText();\r\n\t\tthis.view.getPaintPanel().setMode(command);\r\n\t\t\r\n\t}", "public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }", "@Override\r\n\t\t\t\t public void onClick(View v) {\n\t\t\t\t\t bFlagGongsi = !bFlagGongsi;\r\n\t\t\t\t\t gongsi_btn.setChecked(bFlagGongsi);\r\n\t\t\t\t }", "public void setTallied(java.lang.Boolean value);", "private BooleanValueProvider() {\n this.state = true;\n }", "public void toggle(){\n isOn = !isOn;\n }", "public void setStatus(Boolean s){ status = s;}", "public void toggleEnable();", "public abstract void setSensorState(boolean state);", "void setBoolean(String key, boolean val);", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }", "public abstract void setCheck(Boolean check);", "public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }", "public void setBool(String parName, boolean parVal) throws HibException;", "protected void setEnabled(boolean state) {\n enabled = state;\n log.warn(\"{} command has been {}.\", name, state ? \"enabled\" : \"disabled\");\n }", "void setSet(boolean set);", "@Override\n public void onCheckedChanged(CompoundButton compoundButton, boolean b) {\n String debugStr[]=settings.getLatestSetting(SettingsDbHelper.SETTINGS_TYPE_ORIENTATION_SWITCH);\n if(debugStr!=null) {\n boolean streamOn = Boolean.valueOf(debugStr[3]);\n if(!streamOn){\n //Check that we are connected to the device before try to send command\n if(MainActivity.deviceConnected) {\n overview.orientationSwitch.setChecked(true);\n settings.insertSetting(SettingsDbHelper.SETTINGS_TYPE_ORIENTATION_SWITCH, \"true\");\n sendStreamEnabledImuRequest();\n } else {\n overview.orientationSwitch.setChecked(false);\n }\n } else {\n overview.orientationSwitch.setChecked(false);\n settings.insertSetting(SettingsDbHelper.SETTINGS_TYPE_ORIENTATION_SWITCH, \"false\");\n sendStreamDisabledImuRequest();\n }\n\n } else {\n //The settings could not be found in the database, insert the setting\n settings.insertSetting(SettingsDbHelper.SETTINGS_TYPE_ORIENTATION_SWITCH, \"false\");\n }\n\n\n }", "public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }", "void setManualCheck (boolean value);", "abstract void setIsInit(boolean b);", "private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}", "public void toggle() {\n setChecked(!checked);\n }", "public void setEnable (boolean state) {\n impl.setEnable (state);\n }", "public void toggle(){\r\n isDown = !isDown;\r\n }", "public void onChanged(Boolean bool) {\n if (bool != null) {\n C41389o oVar = this.f107704a;\n C7573i.m23582a((Object) bool, \"it\");\n oVar.mo102021a(bool.booleanValue());\n }\n }", "public void updateState(boolean buttonState)\n {\n if ((this.activateOnPress && buttonState)\n || (!this.activateOnPress && !buttonState))\n {\n this.activated = true;\n }\n else\n {\n this.activated = false;\n }\n }", "public void setValue(boolean value) {\n this.value = value;\n }", "@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }", "void setBit(int index, boolean value);", "@objid (\"b47d48ab-22b9-48c5-87ec-5f1f114e042d\")\n void setIsEvent(boolean value);", "@JsProperty void setChecked(boolean value);", "public abstract void setCommand(String cmd);", "void setShutterLEDState(boolean on);", "public void checkedMode(boolean b) {\n setSelected(shellBot.checkBox(\"Run in checked mode\"), b);\n }", "public void setStatementNodeOnTrue(StatementNode statement);", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }", "public void setSelected(boolean b) {\n\t\t_booleanNode.setValue(b);\n\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "@Override\n public void onCheckedChanged(CompoundButton toggleButton, boolean isChecked) {\n if (!isChecked) {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_off));\n state[0] = 0;\n } else {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_on));\n state[0] = 255;\n }\n // If the values are modified while the user does not check/unckeck the checkbox, then we update the value from the controller.\n int exist = mode.getPayload().indexOf(c);\n if (exist != -1) {\n mode.getPayload().get(exist).setV(state[0]);\n }\n }", "public void setSingle( final boolean single ) {\n checkWidget();\n if( this.single != single ) {\n this.single = single;\n updateItemsWithResizeEvent();\n }\n }", "@JsProperty void setToggles(boolean value);", "public void setDataSwitchEnable(boolean bEnable){\n mDataSwitch = bEnable;\n }", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "public MenuCommand(boolean isKeyPressed) {\n this.isKeyPressed = isKeyPressed;\n }", "public void presetTrueFalse() {\n pollOptions.clear();\n pollOptions.add(\"True\");\n pollOptions.add(\"False\");\n CreatePollLogic.reDrawOptionList(optionContainer, pollOptions, optionArea);\n }", "public static void turn(String cmd) {\n switch (cmd) {\n case \"-n\":\n on = true;\n break;\n case \"-f\":\n on = false;\n break;\n }\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagLianxiren = !bFlagLianxiren;\r\n\t\t\t\t lianxiren_btn.setChecked(bFlagLianxiren);\r\n\t\t\t }", "public void turn_on () {\n this.on = true;\n }", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "protected void setCommand(String command)\n {\n Command = command;\n }", "@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}", "void setCreditCardBooleanBinding() {\r\n\t\tBooleanBinding booleanBind;\r\n\t\tbooleanBind = (tfIDNumber.textProperty().isEmpty()).or(tfCreditCard1.textProperty().isEmpty()).or(tfCreditCard2.textProperty().isEmpty()).or(tfCreditCard3.textProperty().isEmpty()).or(tfCreditCard4.textProperty().isEmpty());\r\n\t\tbtnSave.disableProperty().bind(booleanBind);\r\n\t\tif(rbtnPreviousCreditCard.isSelected())\r\n\t\t\tbtnSave.disableProperty().unbind();\r\n\t}", "public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }", "public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}", "public void showResetButton(boolean bool) {\n\t\treset.setVisible(bool);\n\t}", "void setEnabledStates(boolean commandStarted) {\n final boolean lockingTargetsState = !commandStarted;\n for (JMenuItem item : lockingTargets) {\n item.setEnabled(lockingTargetsState);\n }\n final boolean unlockingTargetsState = commandStarted;\n for (JMenuItem item : unlockingTargets) {\n item.setEnabled(unlockingTargetsState);\n }\n }", "public void toggle() { this.isOpen = !this.isOpen; }", "public void setChecked()\n\t{\n\t\tchecked = true;\n\t}", "public void setIsCheck(Boolean isCheck)\r\n\t{\r\n\t\tthis.isCheck = isCheck;\r\n\t}", "void updateCommonToggleStatus(boolean shown);", "public final /* synthetic */ void lambda$withdrawal$3$SettingViewModel(Boolean bool) {\n if (bool.booleanValue()) {\n this.navigator.withdrawal();\n }\n }", "public final void onChanged(Boolean bool) {\n if (kotlin.jvm.internal.i.y(bool, Boolean.valueOf(true))) {\n this.this$0.arc();\n } else {\n this.this$0.ard();\n }\n }", "protected void toggleStateChanged() \r\n\t{\r\n\t\tgetSoccerMaster().setShowBallCoord( isToggledOn() );\r\n\t}", "public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}", "public void enableInputButton(boolean bool) {\n\t\tinputAnswer.setEnabled(bool);\n\t}" ]
[ "0.6792218", "0.65618247", "0.6496512", "0.6311418", "0.62448967", "0.6225449", "0.61789674", "0.61437035", "0.6126637", "0.6089405", "0.6058791", "0.6056023", "0.6043667", "0.6030911", "0.6017058", "0.6012219", "0.59729546", "0.59643626", "0.5926137", "0.590228", "0.5885858", "0.58664984", "0.5863387", "0.58575004", "0.58039093", "0.5799541", "0.57840127", "0.5781541", "0.5766973", "0.57479", "0.571963", "0.571954", "0.5675974", "0.5669363", "0.56662935", "0.5659718", "0.56588393", "0.56560725", "0.5653482", "0.56477386", "0.5617682", "0.56148845", "0.5611599", "0.56100076", "0.56074226", "0.5606538", "0.56044096", "0.5600769", "0.5589574", "0.5584139", "0.5583759", "0.5583062", "0.55816996", "0.558169", "0.55794215", "0.55792946", "0.5562284", "0.55599546", "0.55568784", "0.55509764", "0.5547505", "0.5543573", "0.55428255", "0.553273", "0.55308455", "0.55229175", "0.5520977", "0.5515759", "0.55103827", "0.55094755", "0.5490427", "0.5479032", "0.5476736", "0.54661167", "0.5465225", "0.54643357", "0.5462164", "0.54547834", "0.54517335", "0.54498094", "0.54462194", "0.54422694", "0.5436901", "0.54361683", "0.5423941", "0.54226655", "0.5422223", "0.5420495", "0.5419171", "0.54176235", "0.54149806", "0.54010034", "0.5393532", "0.53901947", "0.53899574", "0.5387519", "0.5385792", "0.5384916", "0.53840184", "0.5383514" ]
0.7457966
0
Sets the state of the multistate widget that generates the given command. This is used for initializing widgets like combo boxes and lists.
void setCommandState(String command, String state);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void\t\tsetCommandState(String command, boolean flag);", "public void setSingle( final boolean single ) {\n checkWidget();\n if( this.single != single ) {\n this.single = single;\n updateItemsWithResizeEvent();\n }\n }", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "public void runCommand(Command command,CommandState state){\n \tif(button==null)button = new Trigger(){\n \t\t\t@Override\n \t\t\tpublic boolean get() {\n \t\t\t\treturn current ;\n \t\t\t}\n \t};\n \tswitch(state){\n \tcase whenPressed:\n \tbutton.whenActive(command);\n \t\tbreak;\n \tcase toggle:\n \t\tbutton.toggleWhenActive(command);\n \t\tbreak;\n \tcase whilePressed:\n \t\tbutton.whileActive(command);\n \t\tbreak;\n \tcase whileNotPressed:\n \t\tbutton.whenInactive(command);\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \tcase cancel:\n \t\tbutton.cancelWhenActive(command);\n \t\tbreak;\n \t}\n }", "protected void setCommand(String command)\n {\n Command = command;\n }", "public abstract void setCommand(String cmd);", "void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }", "public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}", "@Override\n int setImmediate(ImmediateCommand command) {\n\n int handle = addCommand(command);\n postMessage(window, MESSAGE_PREFIX + handle);\n return handle;\n }", "@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}", "public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void setInitCommand (String command){\r\n //process the command \r\n initCommand = command.trim();\r\n initialize(); \r\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "void setCommandProperties(String commandID, AttributeList properties);", "void setEnabledStates(boolean commandStarted) {\n final boolean lockingTargetsState = !commandStarted;\n for (JMenuItem item : lockingTargets) {\n item.setEnabled(lockingTargetsState);\n }\n final boolean unlockingTargetsState = commandStarted;\n for (JMenuItem item : unlockingTargets) {\n item.setEnabled(unlockingTargetsState);\n }\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "void\t\tsetCommandVisibility(String command, boolean flag);", "public void setCommand(String command) {\n _command = command;\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public void setCommand(int slot, Command onCommand, Command offCommand) {\n onCommands[slot] = onCommand;\n offCommands[slot] = offCommand;\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public ControlCommand() {\r\n\t\tthis(CommandType.NotSet);\r\n\t}", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }", "@Override\n\tvoid setupAction() {\n\n\t\tgetButton().setOnAction(event -> {\n\t\t\tmainPrevCommandBox.addText(mainTextInput.getText());\n\t\t\tfor (Turtle t : getThisTurtleList()) {\n\n\t\t\t\tlanguage = ((LanguageCombo) mainLanguageComboBox).getLanguage();\n\t\t\t\tCommand test = new Command(mainTextInput.getText(), t, variableMap, userCommandMap, language);\n\t\t\t\ttest.execute();\n\n\t\t\t}\n\t\t\tmainVarTable.updateVars(variableMap);\n\t\t\tmainFuncTable.updateCommandFuncs(userCommandMap);\n\t\t\tmainTurtleTable.updateValues();\n\n\t\t\tmainTextInput.clear();\n\n\t\t});\n\t}", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "public Builder setCommand(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.set(index, value);\n onChanged();\n return this;\n }", "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}", "public void updateCommand(Command command) {\n this.command = command;\n }", "public void setCommand1(Command command1) {\n this.command1 = command1;\n }", "public void setCommand(DockerCommand<?> command) {\n builder.command(command);\n }", "public void set(int slot, Command command) {\n commands[slot] = command;\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "private void mStateSet(cKonst.eSerial nNewState) {\n if (nState_Serial!=nNewState) {\n switch (nNewState) {\n case kBT_Disconnected:\n mMsgDebug(sRemoteDeviceName + \" Disconnected 1\");\n break;\n }\n bDoRedraw = true; //Something has changed redraw controls\n }\n nState_Serial=nNewState;\n }", "public Builder setCmd(int value) {\n \n cmd_ = value;\n onChanged();\n return this;\n }", "private void setCurrentState(StateEnum state)\n {\n m_CurrentState = state;\n m_DoneInit = false;\n switch(m_CurrentState)\n {\n case QB:\n m_A1Label.setText( \"PS\");\n m_A2Label.setText( \"PC\");\n m_A3Label.setText( \"ACC\");\n m_A4Label.setText( \"APB\");\n m_Sim1Label.setText( \"Sim Run\");\n m_Sim2Label.setText( \"Sim Pass\");\n m_Sim3Label.setText( \"Sim Pocket\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( false);\n \n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( true);\n m_APBBox.setEnabled( true);\n break;\n case SKILL:\n m_A1Label.setText( \"BC\");\n m_A2Label.setText( \"REC\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim Rush\");\n m_Sim2Label.setText( \"Sim Catch\");\n m_Sim3Label.setText( \"<HTML> Sim Punt<br>return</HTML>\");\n m_Sim4Label.setText( \"<HTML> Sim Kick<br>return</HTML>\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( true);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case OLINE:\n m_A1Label.setText( \"\");\n m_A2Label.setText( \"\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( false);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_PS_BC_PI_KABox.setEnabled( false);\n m_PC_REC_QU_KABox.setEnabled( false);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case DEFENSE:\n m_A1Label.setText( \"PI\");\n m_A2Label.setText( \"QU\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"<HTML> Sim Pass<br>rush </HTML>\");\n m_Sim2Label.setText( \"Sim Coverage\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case KICKER:\n m_A1Label.setText( \"KA\");\n m_A2Label.setText( \"AKB\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim KA\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n }\n m_DoneInit = true;\n }", "SetCommand getSetl();", "void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }", "private Command() {\n initFields();\n }", "private void setStates(List<AbstractActuatorCmd> states) {\n this.states = states;\n }", "void\t\tsetCommandOptions(String command, Strings options);", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new Hold());\n }", "public void setSelectionBateau(String actionCommand) {\n\t\tif (actionCommand.equals(\"bateau0\")) {\n\t\t\tpartie.setBoatChoose(0);\n\t\t} else if (actionCommand.equals(\"bateau1\")) {\n\t\t\tpartie.setBoatChoose(1);\n\t\t} else if (actionCommand.equals(\"bateau2\")) {\n\t\t\tpartie.setBoatChoose(2);\n\t\t} else if (actionCommand.equals(\"bateau3\")) {\n\t\t\tpartie.setBoatChoose(3);\n\t\t}\n\n\t\tpartie.managerPartie();\n\n\t}", "public void setState(String state)\n {\n switch(state) {\n case \"Clock-In\": this.state = new ClockedIn();break;\n case \"Clock-Out\": this.state = new ClockedOut();break;\n }\n }", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "public void restore(String state) {\n try {\n byte[] data = Base64.getDecoder().decode(state);\n ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(data));\n widgets = new ArrayList<Widget>();\n int cnt = in.readInt(); // size of array list\n// System.out.println(\"widgets: \" + cnt);\n Widget w = null;\n String widgetType = null;\n for (int i=0; i<cnt; i++) {\n widgetType = (String)in.readObject();\n w = WidgetFactory.getInstance().createWidget(widgetType,0,0);\n w.readObject(in, widgetType);\n widgets.add(w);\n PropManager.getInstance().addPropEditor(w.getModel());\n// TreeView.getInstance().addWidget(getKey(), w.getKey());\n }\n in.close();\n selectedCnt = 0;\n selectedGroupCnt = 0;\n repaint();\n } catch (ClassNotFoundException e) {\n System.out.println(\"ClassNotFoundException occurred.\");\n e.printStackTrace();\n } catch (IOException e) {\n System.out.println(\"IOException occurred.\" + e.toString());\n System.out.flush();\n e.printStackTrace();\n }\n }", "public void setState(int synstate){\n\tsynState = synstate;\n }", "void\t\tsetCommandLabel(String command, String label);", "public void setSelection (boolean selected) {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_FLAGS, selected ? OS.Pt_SET : 0, OS.Pt_SET);\r\n}", "public void initDefaultCommand() {\n\n \tsetDefaultCommand(new articulateIntake());\n \t\n \t\n \t\n \t//Make sure to only set the doublesolenoid to off if the last position of the intake was down\n \t/*if (downPosition == 1){\n \t\tsetDefaultCommand(new articulateIntake(\"down\"));\n \t} else {\n \t\tsetDefaultCommand(new articulateIntake(\"up\"));\n \t\t\n \t}*/\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new ValidTarget());\n }", "abstract public void setParent(Command cmd);", "public void beginSelection()\n {\n\tisMultiSelection = true;\n\tsetMaxCheckCount(-1);\n }", "public void setModelView(IModelView mv) {\n checkNull(mv);\n\n state = mv.getFullState();\n buttons = new HashMap<>();\n\n JCheckBox button;\n JPanel buttonContainer = new JPanel();\n //buttonContainer.setLayout(new BoxLayout(buttonContainer, BoxLayout.PAGE_AXIS));\n buttonContainer.setLayout(new GridLayout(0, 4));\n\n for (IAnimatedShape shape : state.values()) {\n button = new JCheckBox(shape.getName());\n button.setActionCommand(shape.getName());\n button.setSelected(true);\n button.addActionListener(buttonListener);\n buttonContainer.add(button);\n\n buttons.put(button.getName(), button);\n }\n\n JScrollPane listScroller;\n listScroller = new JScrollPane(buttonContainer,\n ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n listScroller.setPreferredSize(new Dimension(50, 50));\n //listScroller.setAlignmentX(LEFT_ALIGNMENT);\n\n this.add(listScroller);\n this.setPreferredSize(new Dimension(50, 50));\n this.repaint();\n\n }", "public void setState(State state) { model.setState(state); }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new GroupIntakeDefault());\n }", "protected void setComponent(List<Object> Command) throws Exception {\r\n if (Command.isEmpty()) {\r\n throw new Exception(\"No setting/component specified\");\r\n }\r\n String Component = Command.get(0).toString().toLowerCase();\r\n switch (Component) {\r\n case \"objective\":\r\n case \"obj\": {\r\n // Usage: <optimizer> set objective <max|min> <method> [<method options..>]\r\n String Method;\r\n List<Object> Options;\r\n boolean toMaximize;\r\n try {\r\n // Read whether to max / minimize\r\n if (Command.get(1).toString().startsWith(\"max\")) {\r\n toMaximize = true;\r\n } else if (Command.get(1).toString().startsWith(\"min\")) {\r\n toMaximize = false;\r\n } else {\r\n throw new Exception();\r\n }\r\n // Read Method name\r\n Method = Command.get(2).toString();\r\n if (Method.equals(\"?\")) {\r\n System.out.println(printImplmentingClasses(BaseEntryRanker.class, false));\r\n return;\r\n }\r\n // Get method options\r\n Options = Command.subList(3, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set objective <max|min> <method> [<method options..>]\");\r\n }\r\n // Make the ranker, attach it\r\n BaseEntryRanker objFun = (BaseEntryRanker) instantiateClass(\"optimization.rankers.\" + Method, Options);\r\n objFun.setUseMeasured(true);\r\n objFun.setMaximizeFunction(toMaximize);\r\n setObjectiveFunction(objFun);\r\n System.out.println(\"\\tDefined objective function to be a \" + Method);\r\n }\r\n break;\r\n case \"gensize\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set gensize <#>\");\r\n }\r\n setEntriesPerGeneration(value);\r\n System.out.println(\"\\tSet number of entries per generation to \" + value);\r\n }\r\n break;\r\n case \"initial\": {\r\n // Usage: set intial $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set initial $<dataset>\");\r\n }\r\n setInitialData(Data);\r\n System.out.println(\"\\tDefined an intial population of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"search\": {\r\n // Usage: set search $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set search $<dataset>\");\r\n }\r\n setSearchSpace(Data);\r\n System.out.println(\"\\tDefined a search space of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"oracle\": {\r\n // Usage: set oracle <method> [<options...>]\r\n String Method;\r\n List<Object> Options;\r\n try {\r\n Method = Command.get(1).toString();\r\n if (Method.contains(\"?\")) {\r\n System.out.println(\"Available Oracles:\");\r\n System.out.println(CommandHandler.printImplmentingClasses(BaseOracle.class, false));\r\n }\r\n Options = Command.subList(2, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set oracle <method> [<options...>]\");\r\n }\r\n BaseOracle NewOracle = (BaseOracle) CommandHandler.instantiateClass(\"optimization.oracles.\" + Method, Options);\r\n setOracle(NewOracle);\r\n System.out.println(\"\\tSet algorithm to use a \" + Method);\r\n }\r\n break;\r\n case \"maxiter\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set maxiter <#>\");\r\n }\r\n setMaxIterations(value);\r\n System.out.println(\"\\tSet maximum number of iterations to \" + value);\r\n }\r\n break;\r\n default:\r\n throw new Exception(\"Setting not recognized: \" + Component);\r\n }\r\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SparkControl());\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetPlungerMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}", "public NewSemFrame() {\n initComponents();\n this.setLocationRelativeTo(null);\n semC.removeAllItems();\n for(int i=1;i<=10;i++)\n semC.addItem(String.valueOf(i));\n \n semC.setSelectedItem(\"1\");\n }", "public CommandViewBuilder(String commandBlock)\n\t\t{\n\t\t\tthis.commandBlock = commandBlock;\n\t\t}", "public BaseButton(Command command, int... codes) {\n\t\tthis.command = command;\n\t\tthis.codes = codes;\n\t\twasDown = false;\n\t}", "public void initDefaultCommand() {\n \tsetDefaultCommand(new SetCanMove());\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }", "void setMultiple(boolean multiple);", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new Intake());\n\t}", "public AttributeSetInstanceCommand toCreateOrMergePatchAttributeSetInstance(AttributeSetInstanceState state)\n {\n boolean bUnsaved = state.isStateUnsaved();\n if (bUnsaved)\n {\n return toCreateAttributeSetInstance(state);\n }\n else \n {\n return null;\n }\n }", "@Override\n public void initDefaultCommand() \n {\n }", "public RemoteControl() {\n onCommands = new ArrayList<Command>(7); // concrete command.Command registers itself with the invoker\n offCommands = new ArrayList<Command>(7);\n\n Command noCommand = new NoCommand(); //Good programming practice to create dummy objects like this\n for (int i = 0;i < 7;i++) {\n onCommands.add(noCommand);\n }\n\n //Initialize the off command objects\n for (int i = 0;i < 7;i++) {\n offCommands.add(noCommand);\n }\n\n undoCommand = noCommand;\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "protected void doPlaceMode(boolean selected) {\r\n\t\tui.buildButton.setSelected(selected);\r\n\t\trenderer.placementMode = selected;\r\n\t\tui.toolbarPlacementMode.setSelected(ui.buildButton.isSelected());\r\n\t}", "@Override\n public void initDefaultCommand() {\n\n }", "void setState(boolean state);", "public void setSelected(boolean s)\n {\n selected = s; \n }", "private void initComponents() {\n\n // Executes when window is closed\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent) {\n store.run();\n setVisible(false);\n }\n });\n\n // Set up commands label\n commands = new JLabel(\"Commands: \");\n newGUI.setButtonFontSize(commands, fontSize);\n\n String[] userCommands = store.currentUser.returnSelectCommandsList();\n // Set up commands Combo Box\n availableCommands = new JComboBox<>(userCommands);\n availableCommands.setEditable(false);\n newGUI.setButtonFontSize(availableCommands, fontSize);\n availableCommands.addActionListener(this);\n\n currentCommand = availableCommands.getItemAt(0); // Set first command as default\n\n // Set up enter button\n enterButton = new JButton(\"Enter\");\n newGUI.setButtonFontSize(enterButton, fontSize);\n enterButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n enterButtonActionPerformed(evt);\n }\n });\n\n addComponents(getContentPane());\n }", "public TUI(MazeGameData maze, ArrayList<Command> commands) {\n\t\tif (maze == null) {\n\t\t\tthrow new IllegalArgumentException(ExceptionMessages.NULL_MAZE_GAME_DATA);\n\t\t}\n\t\tif (commands == null) {\n\t\t\tthrow new IllegalArgumentException(ExceptionMessages.NULL_COMMAND_LIST);\n\t\t}\n\t\tthis.mazeData = maze;\n\t\tthis.mazeViewBuilder = new MazeViewBuilder(this.mazeData.getMaze(), this.mazeData.getCurrentPosition());\n\t\tthis.commands = commands;\n\t\tthis.console = new Scanner(System.in);\n\t}", "public CommandReset() {\r\n setCommandName(COMMAND_NAME);\r\n setParameterRegex(RESET_PARAMETERS_REGEX);\r\n }", "CommandTypes(String command) {\n this.command = command;\n }", "@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}", "public SetValueCommand(String name) {\n\t\tthis.name = name;\n\t}", "public void setMiddleArcState(State state)\n {\n iconPartStates[1] = state;\n this.paintImmediately(this.getVisibleRect());\n }", "public void operationSet() {\r\n\r\n\t\t// Pane aktivieren\r\n\t\tdisableContentPanes();\r\n\t\tpaneOperation.setVisible(true);\r\n\r\n\t\t// Neue Operation anlegen\r\n\t\tif (listOperation.getSelectionModel().getSelectedItem()\r\n\t\t\t\t.equals(\"hinzufügen...\")) {\r\n\t\t\tstatusFeldText.setText(\"Neue Operationen hinzufügen...\");\r\n\t\t}\r\n\r\n\t\t// Operation bearbeiten\r\n\t\telse {\r\n\t\t\tstatusFeldText.setText(listOperation.getSelectionModel()\r\n\t\t\t\t\t.getSelectedItems() + \" bearbeiten...\");\r\n\t\t}\r\n\r\n\t}" ]
[ "0.6269015", "0.56624496", "0.55804986", "0.55538976", "0.54606557", "0.5453571", "0.5434283", "0.5432821", "0.5410695", "0.53582275", "0.53036255", "0.52923656", "0.5287571", "0.5238544", "0.52113736", "0.5187625", "0.5184749", "0.5181822", "0.51767755", "0.51582986", "0.5141517", "0.5137829", "0.5076651", "0.50264674", "0.5021799", "0.5012404", "0.50067765", "0.49690136", "0.49640435", "0.49611267", "0.49494222", "0.49216345", "0.48977298", "0.48932976", "0.4880023", "0.48748675", "0.48731396", "0.48705965", "0.4867195", "0.48523977", "0.48470014", "0.4841092", "0.48236865", "0.48236015", "0.48104736", "0.48088613", "0.48087406", "0.48077282", "0.48014775", "0.47798333", "0.47525048", "0.4749161", "0.47241005", "0.4718263", "0.47094253", "0.47004682", "0.46992332", "0.4697939", "0.46869767", "0.46865937", "0.46816012", "0.4669235", "0.46632466", "0.4661641", "0.46591464", "0.46587446", "0.46573573", "0.46412224", "0.46409082", "0.4637814", "0.46330333", "0.46269187", "0.4622113", "0.4620373", "0.4619054", "0.46179765", "0.461023", "0.46085358", "0.46055275", "0.45993072", "0.45993072", "0.45993072", "0.45993072", "0.45993072", "0.45993072", "0.45969975", "0.45969975", "0.45969975", "0.45935568", "0.45929697", "0.45919704", "0.4588563", "0.45862433", "0.45811027", "0.4580781", "0.4580381", "0.45765492", "0.45759654", "0.45732915", "0.45719355" ]
0.65367407
0
Sets the label of the widget that generates the given command. This is used for initializing widgets like labels and menubar buttons, push button etc.
void setCommandLabel(String command, String label);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }", "void setLabel(String label);", "public void setLabelToBeShown(String label);", "public void setMenuLabel(java.lang.String value);", "public void setLabelText(String text);", "public void setLabel(String rawLabel) { //sets the label\n\t\tthis.rawLabel = rawLabel; //save the raw label\n\n\t\t//Add spaces to each end of the rawLabel to make it\n\t\t// easier to center the label in the LWButton.\n\t\tthis.label = \" \" + rawLabel + \" \";\n\t\tthis.invalidate();\n\t\tthis.repaint();\n\t}", "@objid (\"5c3d048f-2049-4d54-b5e2-eb8c3afe4b1d\")\r\n public void setText(final String label) {\r\n if (label != null)\r\n this.text.setText(label);\r\n }", "@Override\n public void setLabel(String arg0)\n {\n \n }", "void setLabel(Label label);", "public void setLabel( String label ) {\r\n lbl = label;\r\n }", "public void setLabel(String label) {\n addNewLabel().setText(label);\n }", "@Override\n\tpublic void setLabelText(String label) {\n\t}", "public void setLabel(String label) {\n this.label = label;\n }", "void setlabel (String label){\r\n\t\tthis.label = label;\r\n\t}", "private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}", "public void setLabel(final String label) {\n this.label = label;\n }", "public final void setLabel(final String label) {\r\n this.label = label;\r\n }", "public void setLabel(String label) {\r\n this.label = label;\r\n }", "public void setLabel(final String _label)\n {\n this.label = _label;\n }", "public void setLabel(final String label) {\n this.label = label;\n }", "protected void setLabel(final String label) {\n\t\tmyLabel = label;\n\t}", "public Builder setLabel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n label_ = value;\n onChanged();\n return this;\n }", "public void setLabel(Object v) \n {\n this.label = v;\n }", "public\t\tvoid\t\tsetLabel(String text)\n\t\t{\n\t\tif (label != null)\n\t\t\t{\n\t\t\tif (label instanceof MiWidget)\n\t\t\t\t((MiWidget )label).setValue(text);\n\t\t\telse if (label instanceof MiText)\n\t\t\t\t((MiText )label).setText(text);\n\t\t\telse\n\t\t\t\tlabel.replaceSelf(new MiText(text));\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tlabel = new MiText(text);\n\t\t\tappendPart(label);\n\t\t\t}\n\t\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "public void setLabel(String label) {\r\n\t\tthis.label = label;\r\n\t}", "@Override\n\tpublic void setLabel(String label) {\n\t\t\n\t}", "public static void setEventLabel(String action){\n static_label.setText(action + \" \");\n }", "public void setInstruction(String ins)\n\t{\n\t\tgetJLabel().setText(ins);\n\t}", "CommandType(String label) {\n this.label = label;\n }", "public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}", "public Command createLabelCommand(String identifier, int type, Qualifier qualifier);", "public void setLabel(String label)\n\t{\n\t\tthis.label = label;\n\t}", "public void setLabel(String label) {\n\t\t_label = label;\n\t}", "public void setLabel(Object value) {\n this.setValue(LABEL_PROPERTY_KEY, value);\n }", "@Test\n\tpublic void testLabelCommand() {\n\t\tString label = \"TEST\";\n\t\t\n\t\tLabelCommand comd = new LabelCommand(label);\n\t\t\n\t\tassertEquals(String.format(LabelCommand.MESSAGE_CREATE_LABEL_FEEDBACK, label), \n\t\t\t\tcomd.execute(testData));\n\t\tassertEquals(2, testData.getTaskMap().size());\n\t\tassertEquals(label, testData.getCurrLabel());\n\t\t\n\t\tcomd = new LabelCommand(TDTCommons.DEFAULT_LABEL);\n\t\tassertEquals(String.format(LabelCommand.MESSAGE_LABEL_FEEDBACK, TDTCommons.DEFAULT_LABEL),\n\t\t\t\tcomd.execute(testData));\n\t\tassertEquals(TDTCommons.DEFAULT_LABEL, testData.getCurrLabel());\n\t}", "public void setLabel(String label) {\n\t\tthis.label = label;\n\t}", "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "public void setLabel(String s) {\n if (s == null && label == null) {\n return;\n }\n\n if (s == null || !s.equals(label)) {\n String oldLabel = label;\n label = s;\n listeners.firePropertyChange(PROPERTY_LABEL, oldLabel, label);\n }\n }", "public MyProgress setLabel(String label) {\n mLabel = label;\n return this;\n }", "public final native void setLabel(String label) /*-{\r\n\t\tthis.label = label;\r\n\t}-*/;", "public void setLabel(JLabel label) {\n\t\tswitch (label.getName()) {\t\t\t// the three labels are named via label.setName(labelName)\n\t\tcase \"title\": \t\ttitleLabel = label; break;\n\t\tcase \"artist(s)\": \tartistLabel = label; break;\n\t\tcase \"album\": \t\talbumLabel = label; break;\n\t\t}\n\t}", "public void setLabel(int label) {\n\t\tthis.label = label;\n\t}", "public void setLabel(final String label) {\n _section.setText(label);\n }", "private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "public void switchToLabel() {\n if (deckPanel.getVisibleWidget() == LABEL_INDEX) {\n return;\n }\n // Fires the ValueChanged event.\n setValue(textArea.getText(), true);\n deckPanel.showWidget(LABEL_INDEX);\n }", "public WidgetLabelPanel(String labelText, Widget widget){\n\t\tsuper();\n\t\tthis.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tLabel myLabel = new Label(labelText);\n\t\tmyLabel.addStyleName(\"widgetLabel\");\n\t\tthis.add(myLabel);\n\t\tthis.add(widget);\n\t}", "public void setLabelText(String text) {\n label.setText(text);\n }", "public xCommandOnText(String command){ this.init(command); }", "void setLabel(com.microsoft.schemas.xrm._2011.contracts.Label label);", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}", "@Override\n\tpublic void setText(String arg0) {\n\t\t\n\t}", "public void setText(String st){\n\t\tbutton.setText(st);\n\t}", "public ProductTypeChangeLabelActionBuilder label(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedStringBuilder> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of()).build();\n return this;\n }", "@Override\n public String getLabel() {\n return label;\n }", "public DialogLabel(String text, int posX, int posY, Pos pos) {\n\t\tsuper(text);\n\t\tsetup(posX, posY, pos);\n\t}", "public void\nsetNewLabel(Font font)\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(font,\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(), lineLength,\n\t\tColor.black, this.getID());\n}", "public DialogLabel(int posX, int posY, Pos pos) {\n\t\tsuper();\n\t\tsetup(posX, posY, pos);\n\t}", "public static void setLabel(Label labelName) {\n emitf(\"%s:\\n\", labelName.toString());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n\n myFirstLabel.setText(\"You just clicked a button!\");\n }", "public ProductTypeChangeLabelActionBuilder withLabel(\n Function<com.commercetools.api.models.common.LocalizedStringBuilder, com.commercetools.api.models.common.LocalizedString> builder) {\n this.label = builder.apply(com.commercetools.api.models.common.LocalizedStringBuilder.of());\n return this;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "String addLabel(String label);", "public void setNameLabel(String nameLabel) {\r\n this.nameLabelText = nameLabel;\r\n this.nameLabel.setText(this.nameLabelText);\r\n }", "private void setLabelForActivity(){\n String label;\n if(sortOrderOfResults.equals(AppUtilities.QUERY_PATH_POPULAR)){\n label = getString(R.string.label_all_movies_activity_most_popular_movies);\n } else {\n label = getString(R.string.label_all_movies_activity_top_rated_movies);\n }\n actionBar.setTitle(label);\n }", "@Override\n\tpublic void setComponentLabel(String label) {\n\t\t\n\t}", "public void setXLabel(String _label);", "public void setLabel(final String labelValue) {\n this.label = labelValue;\n }", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "void addLabel(Object newLabel);", "void addLabel(Object newLabel);", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "public ProductTypeChangeLabelActionBuilder label(final com.commercetools.api.models.common.LocalizedString label) {\n this.label = label;\n return this;\n }", "public void changeVarLabel() {\n if (inHouse.isSelected()) {\n varLabel.setText(\"Machine ID\");\n variableTextField.setPromptText(\"Machine ID...\");\n variableTextField.setMaxLength(9);\n int textLength = partId.getText().length();\n variableTextField.setText(variableTextField.getText().replaceAll(\"[^\\\\d.]\", \"\"));\n variableTextField.positionCaret(textLength);\n } else if (outsourced.isSelected()) {\n varLabel.setText(\"Company Name\");\n variableTextField.setPromptText(\"Company Name...\");\n variableTextField.setMaxLength(26);\n }\n }", "java.lang.String getLabel();", "String updateLabel(String oldLabel, String newLabel);", "public MyGUIProgram() {\n Label MyLabel = new Label(\"Test string.\", Label.CENTER);\n this.add(MyLabel);\n\n }", "public HelpLabel (String label, String help, UIObject target) {\n\t\tsuper(label);\n\t\thelpText = help;\n\t\ttargetUIObject = target;\n\t\tsetStylePrimaryName(AbstractField.CSS.cbtAbstractLabel());\n\t\taddStyleName(AbstractField.CSS.cbtAbstractCursor());\n\t\taddClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tnew MessagePanel(Level.VERBOSE, helpText).showRelativeTo(targetUIObject);\n\t\t\t}\n\t\t});\n\t}", "private String getLabel(MouseEvent e) {\n \n final JFrame parent = new JFrame();\n JButton button = new JButton();\n\n button.setText(\"Click me to show dialog!\");\n parent.add(button);\n //button.doClick();\n parent.pack();\n parent.setVisible(true);\n //String name;\n //button.doClick();\n //button.doClick();\n button.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n label = JOptionPane.showInputDialog(parent,\n \"Set label for this segment\", null); \n \n getLabels().add(label);\n parent.dispose();\n //System.exit(0);\n //setLabel(name);\n //System.out.println(\"rectangle sizes = \"+startDrag.x+\",\"+ startDrag.y+\",\"+ e.getX()+\",\"+ e.getY()+\" = \"+label);\n }\n \n });\n button.doClick();\n \n \n return label;\n }", "public DrillBuilder setLabel(String label) {\n this.label = label;\n return this;\n }", "public void setLabel(String label) {\n this.label = label == null ? null : label.trim();\n }", "public void setLabel(String label)\n {\n if (StringUtils.isBlank(label))\n throw new IllegalArgumentException(\"label cannot be null or empty\");\n \n this.label = label;\n }", "void setShapeLabel(String Label);", "public abstract void addLabel(String str);", "public Label getComponentLabel() {\n return commandPromptLabel;\n }", "private Label initVBoxLabel(VBox container, DraftKit_PropertyType labelProperty, String styleClass) {\n Label label = initLabel(labelProperty, styleClass);\n container.getChildren().add(label);\n return label;\n }", "public void setSearchResultLabel(String resultLabel){ searchResultLabel.setText(resultLabel);}", "public java.lang.String getLabel();", "private void showInfo(String message){ infoLabel.setText(message);}", "private void updateLabel(String text) {\r\n labelT.setText(text);\r\n labelT.setToolTipText(text);\r\n }", "private void setLabelForSpecimen(final Specimen objSpecimen) throws LabelGenException\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\r\n\t\tif(isGenLabel(objSpecimen))\r\n\t\t{\r\n\t\t\tString labelFormat = getLabelFormat(objSpecimen, buffer);\r\n\r\n\t\t\tif (!Validator.isEmpty(labelFormat))\r\n\t\t\t{\r\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(labelFormat, \"%\");\r\n\t\t\t\twhile (tokenizer.hasMoreTokens())\r\n\t\t\t\t{\r\n\t\t\t\t\tString token = tokenizer.nextToken();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuffer.append(getTokenValue(objSpecimen, token));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (final NameGeneratorException ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tthrow new LabelException(ex.getMessage());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n//\t\t\t\t\t\tbuffer.append(\"_\");\r\n//\t\t\t\t\t\tbuffer.append(getSpecimenCount(objSpecimen));\r\n\t\t\t}\r\n\t\t\tobjSpecimen.setLabel(buffer.toString());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new LabelGenException(\"Manual Label Generation is selected for this specimen\");\r\n\t\t}\r\n\t}", "void setDescribingLabel(ILabel describingLabel);", "public String getLabel() {\n return label;\n }", "public void setLabels() {\n\t\tString tableLabelString = Integer.toString(order.getTableNum());\n\t\tString orderLabelString = order.getOrderedEntry().toString();\n\t\tString orderNumberLabelString = Integer.toString(order.getOrderNum());\n\t\ttableLabel.setText(\"Table: \" + tableLabelString);\n\t\torderLabel.setText(\"Order: \" + orderLabelString);\n\t\torderNumberLabel.setText(\"Order number: \" + orderNumberLabelString);\n\t}", "public abstract String getManipulatorButtonLabel();", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "public String getLabel() {\n return label;\n }", "public abstract void setCommand(String cmd);" ]
[ "0.69604826", "0.6798649", "0.668747", "0.6664647", "0.6639115", "0.6537153", "0.6503465", "0.64960253", "0.6476697", "0.64588296", "0.6432454", "0.6387251", "0.6369737", "0.63573", "0.6309901", "0.6260544", "0.62481266", "0.6232814", "0.6217026", "0.6184029", "0.6183405", "0.6165712", "0.6158249", "0.61322343", "0.6094225", "0.6094225", "0.6085311", "0.60256416", "0.6020981", "0.6002432", "0.5995832", "0.5981463", "0.597771", "0.59279275", "0.591867", "0.5916497", "0.59102434", "0.5899754", "0.5864222", "0.58554184", "0.5828342", "0.582747", "0.58050144", "0.58025247", "0.5795285", "0.5774964", "0.57658637", "0.5754803", "0.575157", "0.571443", "0.5694184", "0.5680376", "0.5673502", "0.56608075", "0.56329334", "0.5629629", "0.56215453", "0.5615481", "0.56066966", "0.56056803", "0.5598113", "0.55922455", "0.5591712", "0.5591712", "0.5586326", "0.5583965", "0.55744314", "0.55622214", "0.5556424", "0.5550535", "0.55251503", "0.5501895", "0.5501895", "0.5481688", "0.547892", "0.5477703", "0.546434", "0.5463205", "0.54628366", "0.5461487", "0.5458239", "0.54571015", "0.5450695", "0.543623", "0.54340523", "0.5425952", "0.5422195", "0.54200405", "0.54163194", "0.5407968", "0.540541", "0.5402964", "0.5393288", "0.53819793", "0.5380757", "0.5378682", "0.53727746", "0.5363765", "0.53629905", "0.53591925" ]
0.78296244
0
Sets the values of the multistate widget that generates the given command. This is used for setting the possible values of widgets like combo boxes and lists.
void setCommandOptions(String command, Strings options);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);", "void setCommandProperties(String commandID, AttributeList properties);", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "void setElementValue(SetElementValue cmd);", "public void setCommandValue(String command, int argIndex, String newValue)\n\t{\n\t\tfor(int x = 0; x < this.commands.size(); x++)\n\t\t{\n\t\t\tif(this.commands.get(x).toString().startsWith(\"#descr\") && this.commands.get(x).args.size() > argIndex)\n\t\t\t{\n\t\t\t\tif(newValue.startsWith(\"\\\"\"))\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, newValue);\n\t\t\t\telse\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, \"\\\"\" + newValue + \"\\\"\");\n\t\t\t}\n\t\t}\n\t}", "public SetValueCommand(String name) {\n\t\tthis.name = name;\n\t}", "public abstract void setCommand(String cmd);", "public void setValue(String... values) throws DeviceOptionException;", "@Override\n\tpublic void execute() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.execute();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.execute();\n\t\t}\n\t}", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "private void setValues() {\n if (dish != null) {\n etDishName.setText(dish.getNAME());\n etDishAmount.setText(HungryAdminUtility.getFormattedPrice(Double.parseDouble(dish.getAMOUNT())));\n etDishQuantity.setText( dish.getQUNTITY());\n etDishDescription.setText(dish.getDESCRIPTION());\n\n settime(dish.getSTART_TIME(), dish.getEND_TIME(), etStartTime, etEndTime);\n /* etStartTime.setText(dish.getSTART_TIME());\n etEndTime.setText(dish.getEND_TIME());\n */\n Log.e( \"setValues: \", dish.getTYPE());\n\n if(dish.getIS_SHOWN().equals(\"Y\"))\n {\n swIsShown.setChecked(true);\n }\n else {\n swIsShown.setChecked(false);\n }\n for (int i = 0; i < menuTypes.size(); i++) {\n if (menuTypes.get(i).equalsIgnoreCase(dish.getTYPE())) {\n spDishType.setSelected(true);\n } else {\n spDishType.setSelected(false);\n }\n }\n\n\n for (int i = 0; i < menuCategory.size(); i++) {\n Log.e( \"setValueslist1: \", String.valueOf(menuCategory.get(i)));\n\n if (menuCategory.get(i).equals(dish.getCATEGORY())) {\n spDishCategory.setSelection(i);\n spDishCategory.setSelected(true);\n } else {\n spDishCategory.setSelected(false);\n }\n }\n }\n }", "public native final EditorBaseEvent commands(JsArray<? extends JavaScriptObject> val) /*-{\n\t\tthis.commands = val;\n\t\treturn this;\n\t}-*/;", "protected void setCommand(String command)\n {\n Command = command;\n }", "public void setControlVars(java.util.List<Object> controlValues);", "public void setMultiSelect(int modifiers) {\n\t\t_multiMods = modifiers;\n\t}", "protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }", "protected void setComponent(List<Object> Command) throws Exception {\r\n if (Command.isEmpty()) {\r\n throw new Exception(\"No setting/component specified\");\r\n }\r\n String Component = Command.get(0).toString().toLowerCase();\r\n switch (Component) {\r\n case \"objective\":\r\n case \"obj\": {\r\n // Usage: <optimizer> set objective <max|min> <method> [<method options..>]\r\n String Method;\r\n List<Object> Options;\r\n boolean toMaximize;\r\n try {\r\n // Read whether to max / minimize\r\n if (Command.get(1).toString().startsWith(\"max\")) {\r\n toMaximize = true;\r\n } else if (Command.get(1).toString().startsWith(\"min\")) {\r\n toMaximize = false;\r\n } else {\r\n throw new Exception();\r\n }\r\n // Read Method name\r\n Method = Command.get(2).toString();\r\n if (Method.equals(\"?\")) {\r\n System.out.println(printImplmentingClasses(BaseEntryRanker.class, false));\r\n return;\r\n }\r\n // Get method options\r\n Options = Command.subList(3, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set objective <max|min> <method> [<method options..>]\");\r\n }\r\n // Make the ranker, attach it\r\n BaseEntryRanker objFun = (BaseEntryRanker) instantiateClass(\"optimization.rankers.\" + Method, Options);\r\n objFun.setUseMeasured(true);\r\n objFun.setMaximizeFunction(toMaximize);\r\n setObjectiveFunction(objFun);\r\n System.out.println(\"\\tDefined objective function to be a \" + Method);\r\n }\r\n break;\r\n case \"gensize\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set gensize <#>\");\r\n }\r\n setEntriesPerGeneration(value);\r\n System.out.println(\"\\tSet number of entries per generation to \" + value);\r\n }\r\n break;\r\n case \"initial\": {\r\n // Usage: set intial $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set initial $<dataset>\");\r\n }\r\n setInitialData(Data);\r\n System.out.println(\"\\tDefined an intial population of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"search\": {\r\n // Usage: set search $<dataset>\r\n Dataset Data;\r\n try {\r\n Data = (Dataset) Command.get(1);\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set search $<dataset>\");\r\n }\r\n setSearchSpace(Data);\r\n System.out.println(\"\\tDefined a search space of \" + Data.NEntries() + \" entries\");\r\n }\r\n break;\r\n case \"oracle\": {\r\n // Usage: set oracle <method> [<options...>]\r\n String Method;\r\n List<Object> Options;\r\n try {\r\n Method = Command.get(1).toString();\r\n if (Method.contains(\"?\")) {\r\n System.out.println(\"Available Oracles:\");\r\n System.out.println(CommandHandler.printImplmentingClasses(BaseOracle.class, false));\r\n }\r\n Options = Command.subList(2, Command.size());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set oracle <method> [<options...>]\");\r\n }\r\n BaseOracle NewOracle = (BaseOracle) CommandHandler.instantiateClass(\"optimization.oracles.\" + Method, Options);\r\n setOracle(NewOracle);\r\n System.out.println(\"\\tSet algorithm to use a \" + Method);\r\n }\r\n break;\r\n case \"maxiter\": {\r\n int value;\r\n try {\r\n value = Integer.parseInt(Command.get(1).toString());\r\n } catch (Exception e) {\r\n throw new Exception(\"Usage: set maxiter <#>\");\r\n }\r\n setMaxIterations(value);\r\n System.out.println(\"\\tSet maximum number of iterations to \" + value);\r\n }\r\n break;\r\n default:\r\n throw new Exception(\"Setting not recognized: \" + Component);\r\n }\r\n }", "void setMultiple(boolean multiple);", "SetCommand getSetl();", "public void setSingle( final boolean single ) {\n checkWidget();\n if( this.single != single ) {\n this.single = single;\n updateItemsWithResizeEvent();\n }\n }", "public void set(Object requestor, String field, JMenuItem comp);", "public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }", "public void setCommand1(Command command1) {\n this.command1 = command1;\n }", "@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}", "@Override\n\tpublic void setChildren(final List<? extends ISymbol> commands) {\n\t\tList<? extends ISymbol> cmd = commands;\n\t\tif ( getFacet(IKeyword.TYPE) != null ) {\n\t\t\tif ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIR\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSIREquations(getDescription()).SIR(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SI\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd = new ClassicalSIEquations(getDescription()).SI(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIS\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSISEquations(getDescription()).SIS(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SIRS\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSIRSEquations(getDescription()).SIRS(getFacet(IKeyword.VARS),\n\t\t\t\t\t\tgetFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"SEIR\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd =\n\t\t\t\t\tnew ClassicalSEIREquations(getDescription()).SEIR(getFacet(IKeyword.VARS),\n\t\t\t\t\t\tgetFacet(IKeyword.PARAMS));\n\t\t\t} else if ( getFacet(IKeyword.TYPE).literalValue().equals(\"LV\") ) {\n\t\t\t\tcmd.clear();\n\t\t\t\tcmd = new ClassicalLVEquations(getDescription()).LV(getFacet(IKeyword.VARS), getFacet(IKeyword.PARAMS));\n\t\t\t} else {\n\t\t\t\tGamaRuntimeException.error(getFacet(IKeyword.TYPE).literalValue().equals(\"SI\") +\n\t\t\t\t\t\" is not a recognized classical equation\");\n\t\t\t}\n\t\t}\n\n\t\tfinal List<ISymbol> others = new ArrayList<ISymbol>();\n\t\tfor ( final ISymbol s : cmd ) {\n\t\t\tif ( s instanceof SingleEquationStatement ) {\n\t\t\t\t((SingleEquationStatement) s).establishVar();\n\t\t\t\tequations.put(((SingleEquationStatement) s).toString(), (SingleEquationStatement) s);\n\t\t\t\tfor ( int i = 0; i < ((SingleEquationStatement) s).getVars().size(); i++ ) {\n\t\t\t\t\tIExpression v = ((SingleEquationStatement) s).getVar(i);\n\n\t\t\t\t\tif ( ((SingleEquationStatement) s).getOrder() > 0 ) {\n\t\t\t\t\t\t// if ( !variables_diff.contains(v) ) {\n\t\t\t\t\t\tvariables_diff.put(((SingleEquationStatement) s).toString(), v);\n\t\t\t\t\t\t// }\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( !variables_nondiff.contains(v) ) {\n\t\t\t\t\t\t\tvariables_nondiff.add(v);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tothers.add(s);\n\t\t\t}\n\t\t}\n\t\tsuper.setChildren(others);\n\t}", "public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public void setCommand(String command) {\n this.command = command;\n }", "public void set(Object requestor, String field, JMenu comp);", "public Builder setCmd(int value) {\n \n cmd_ = value;\n onChanged();\n return this;\n }", "public void setMultiSelection(boolean multiSelection)\n {\n this.multiSelection = multiSelection;\n }", "void\t\tregisterCommandDependentWidget(MiPart widget, String command);", "public final void setSelectionModel(MultipleSelectionModel<T> value) {\n\n this.getWrappedControl().setSelectionModel(value);\n }", "void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }", "public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }", "public Builder setCommand(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.set(index, value);\n onChanged();\n return this;\n }", "@Override\n int setImmediate(ImmediateCommand command) {\n\n int handle = addCommand(command);\n postMessage(window, MESSAGE_PREFIX + handle);\n return handle;\n }", "void multiSelection(DynamicTable table, String element) {\n //String upElement = element.substring(0,1).toUpperCase() +\n // element.substring(1);\n //................MULTIPLE SELECTION--Add DROP-DOWN MENU ....................\n Select multiTypeSelect = new Select(\"pmultitype\");\n multiTypeSelect.addOption(new Option(\"Only 1 \"+element+\" required\",\"1\", false));\n multiTypeSelect.addOption(new Option(\"12 month \"+element+\"s\", \"2\", false));\n multiTypeSelect.addOption(new Option(\"4 seasonal \"+element+\"\", \"3\", false));\n multiTypeSelect.addOption(new Option(\"A \"+element+\" / month (yrs*12)\", \"4\", false));\n\n //................PLOT TYPE SELECTION input box....................\n table.addRow(ec.cr2ColRow(\n chFSize(\"Multi-\"+element+\" Selection: \",\"-1\"), multiTypeSelect));\n\n }", "void\t\tsetCommandState(String command, String state);", "public AnnotateMotifsDialog(MotifLabGUI gui) {\n super(gui.getFrame(), true);\n setTitle(\"Update Motif Properties\");\n this.gui=gui;\n initComponents();\n \n // fix accelerators\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getActionMap(AnnotateMotifsDialog.class, this);\n javax.swing.Action ac=actionMap.get(\"promptUseNewValue\"); \n promptUseNewValueButton.getActionMap().put(\"promptUseNewValue\", ac);\n promptUseNewValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('n'), \"promptUseNewValue\"); \n ac=actionMap.get(\"promptKeepOldValue\"); \n promptKeepCurrentValueButton.getActionMap().put(\"promptKeepOldValue\", ac);\n promptKeepCurrentValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('c'), \"promptKeepOldValue\"); \n ac=actionMap.get(\"promptMergeOrReplaceCurrent\"); \n promptMergeOrUseNewButton.getActionMap().put(\"promptMergeOrReplaceCurrent\", ac);\n promptMergeOrUseNewButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('m'), \"promptMergeOrReplaceCurrent\"); \n ac=actionMap.get(\"promptMergeOrKeepCurrent\"); \n promptMergeOrKeepCurrentButton.getActionMap().put(\"promptMergeOrKeepCurrent\", ac);\n promptMergeOrKeepCurrentButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('k'), \"promptMergeOrKeepCurrent\"); \n \n String[] userdefined=Motif.getAllUserDefinedProperties(gui.getEngine());\n String[] standard=Motif.getAllStandardProperties(false);\n String[] knownproperties=new String[standard.length+userdefined.length];\n System.arraycopy(standard, 0, knownproperties, 0, standard.length); // leave first position blank\n System.arraycopy(userdefined, 0, knownproperties, standard.length, userdefined.length);\n Arrays.sort(knownproperties); \n DefaultComboBoxModel propertyModel=new DefaultComboBoxModel(knownproperties);\n DefaultComboBoxModel combineStrategyModel=new DefaultComboBoxModel(new String[]{MERGE_OR_REPLACE_CURRENT,MERGE_OR_KEEP_CURRENT,REPLACE_CURRENT, INTERACTIVE_MODE});\n propertyCombobox.setModel(propertyModel);\n propertyCombobox.setEditable(true);\n propertyCombobox.setSelectedItem(standard[0]);\n combineStrategyCombobox.setModel(combineStrategyModel);\n ArrayList<DataFormat> dataformats=gui.getEngine().getDataInputFormats(MotifCollection.class);\n loadFromFilePanel=new LoadFromFilePanel(dataformats,gui,MotifCollection.class);\n importCollectionTab.add(loadFromFilePanel,BorderLayout.CENTER);\n pack();\n contextmenu=new ParseListContextMenu();\n parseListTextArea.addMouseListener(new MouseAdapter(){\n @Override\n public void mousePressed(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n @Override\n public void mouseReleased(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n });\n parseListTextArea.requestFocusInWindow();\n }", "public void set(int slot, Command command) {\n commands[slot] = command;\n }", "public Builder addAllCommand(\n java.lang.Iterable<java.lang.String> values) {\n ensureCommandIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, command_);\n onChanged();\n return this;\n }", "public void setSelectionBateau(String actionCommand) {\n\t\tif (actionCommand.equals(\"bateau0\")) {\n\t\t\tpartie.setBoatChoose(0);\n\t\t} else if (actionCommand.equals(\"bateau1\")) {\n\t\t\tpartie.setBoatChoose(1);\n\t\t} else if (actionCommand.equals(\"bateau2\")) {\n\t\t\tpartie.setBoatChoose(2);\n\t\t} else if (actionCommand.equals(\"bateau3\")) {\n\t\t\tpartie.setBoatChoose(3);\n\t\t}\n\n\t\tpartie.managerPartie();\n\n\t}", "public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}", "public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}", "public void setCommand(int slot, Command onCommand, Command offCommand) {\n onCommands[slot] = onCommand;\n offCommands[slot] = offCommand;\n }", "public void setCommand(String command)\n {\n this.command = command;\n }", "void\t\tsetCommandLabel(String command, String label);", "public void setMultiSelection(boolean multiSelection)\n\t{\n\t\tthis.setMultiple(multiSelection);\n\n\t\treturn;\n\t}", "void\t\tsetCommandVisibility(String command, boolean flag);", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2));\n delete.setText(\"Löschen\");\n addAttr.setText(\"Attribut hinzufügen\");\n deleteAttr.setText(\"Attribut löschen\");\n nameText.setText(DefaultValues.PRODUKTDATUM_NAME);\n idText.setText(DefaultValues.ID);\n attributeText.setText(DefaultValues.PRODUKTDATUM_ATTRIBUTE);\n verweiseText.setText(DefaultValues.PRODUKTDATUM_VERWEISE);\n title.setForeground(Color.BLUE);\n attributList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n attributList.setSelectedIndex(0);\n }", "@Override\n protected void setComponentValue(List<K> values, boolean fireEvents) {\n ListBox component = getComponent();\n int l = component.getItemCount();\n for (int i = 0; i < l; i++) {\n String value = component.getValue(i);\n component.setItemSelected(i, (values != null && values.contains(getItemValue(value))));\n }\n }", "@Override\r\n\tpublic void setParameterValuesToGUI() {\r\n\t\tthis.pb = this.workPackage.getParameters();\r\n\r\n\t\tjSpinnerLeft.removeChangeListener(this);\r\n\t\tjSpinnerRight.removeChangeListener(this);\r\n\t\tjSpinnerTop.removeChangeListener(this);\r\n\t\tjSpinnerBottom.removeChangeListener(this);\r\n\t\tjSpinnerConst.removeChangeListener(this);\r\n\r\n\t\tjSpinnerLeft.setValue(pb.getIntParameter(\"Left\"));\r\n\t\tjSpinnerRight.setValue(pb.getIntParameter(\"Right\"));\r\n\t\tjSpinnerTop.setValue(pb.getIntParameter(\"Top\"));\r\n\t\tjSpinnerBottom.setValue(pb.getIntParameter(\"Bottom\"));\r\n\t\tjSpinnerConst.setValue(pb.getIntParameter(\"Const\"));\r\n\r\n\t\tjSpinnerLeft.addChangeListener(this);\r\n\t\tjSpinnerRight.addChangeListener(this);\r\n\t\tjSpinnerTop.addChangeListener(this);\r\n\t\tjSpinnerBottom.addChangeListener(this);\r\n\t\tjSpinnerConst.addChangeListener(this);\r\n\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pb.getIntParameter(\"NewWidth\"));\r\n\t\tjSpinnerNewHeight.setValue(pb.getIntParameter(\"NewHeight\"));\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.ZERO) buttZero.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.CONSTANT) buttConst.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.COPY) buttCopy.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.REFLECT) buttReflect.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.WRAP) buttWrap.setSelected(true);\r\n\r\n\t\tif (buttConst.isSelected()) {\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_BORDER) buttBorder.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_SIZE) buttSize.setSelected(true);\r\n\r\n\t}", "@Override\n\tvoid setupAction() {\n\n\t\tgetButton().setOnAction(event -> {\n\t\t\tmainPrevCommandBox.addText(mainTextInput.getText());\n\t\t\tfor (Turtle t : getThisTurtleList()) {\n\n\t\t\t\tlanguage = ((LanguageCombo) mainLanguageComboBox).getLanguage();\n\t\t\t\tCommand test = new Command(mainTextInput.getText(), t, variableMap, userCommandMap, language);\n\t\t\t\ttest.execute();\n\n\t\t\t}\n\t\t\tmainVarTable.updateVars(variableMap);\n\t\t\tmainFuncTable.updateCommandFuncs(userCommandMap);\n\t\t\tmainTurtleTable.updateValues();\n\n\t\t\tmainTextInput.clear();\n\n\t\t});\n\t}", "public void setNewValues(){\n questionT = qMean.getText();\n phoneT = pMean.getText();\n doorT = dMean.getText();\n time = simTime.getText();\n simulation.setTime(time);\n simulation.setD(doorT);\n simulation.setP(phoneT);\n simulation.setQ(questionT);\n }", "void setSelectedItems(ValueType selectedItems);", "void\t\tsetCommandState(String command, boolean flag);", "public void setCommand(String command) {\n _command = command;\n }", "public void setMultiple(boolean isMultiple) {\n this.multiple = isMultiple;\n }", "public void SetDefautValueCombo(Item item) \n {\n this.defautValueCombo=item;\n ;\n }", "@Override\n\tprotected void setMenu() {\n\t\t\n\t\tfinal ButtonGroup actionButtonGroup = new ButtonGroup();\n\t\tfor (String s : ((TreeSite) object).actions) {\n\t\t\tJRadioButton button = new JRadioButton(s);\n\t\t\tbutton.setActionCommand(s);\n\t\t\tactionButtonGroup.add(button);\n\t\t\tmenu.add(button);\n\t\t}\n\t\t\n\t\tJPanel headingPanel = new JPanel();\n\t\theadingPanel.setLayout(new BoxLayout(headingPanel, BoxLayout.LINE_AXIS));\n\t\theadingPanel.add(new JLabel(\"Heading: \"));\n\t\tfinal JTextField headingField = new JTextField();\n\t\theadingField.setText(Float.toString(INITIAL_FLOAT_VALUE));\n\t\theadingField.setColumns(10);\n\t\theadingPanel.add(headingField);\n\t\tmenu.add(headingPanel);\n\t\t\n\t\tJPanel lengthPanel = new JPanel();\n\t\tlengthPanel.setLayout(new BoxLayout(lengthPanel, BoxLayout.LINE_AXIS));\n\t\tlengthPanel.add(new JLabel(\"Length: \"));\n\t\tfinal JTextField lengthField = new JTextField();\n\t\tlengthField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tlengthField.setColumns(10);\n\t\tlengthPanel.add(lengthField);\n\t\tmenu.add(lengthPanel);\n\t\t\n\t\tJPanel counterPanel = new JPanel();\n\t\tcounterPanel.setLayout(new BoxLayout(counterPanel, BoxLayout.LINE_AXIS));\n\t\tcounterPanel.add(new JLabel(\"Counter: \"));\n\t\tfinal JTextField counterField = new JTextField();\n\t\tcounterField.setText(Integer.toString(INITIAL_INTEGER_VALUE));\n\t\tcounterField.setColumns(10);\n\t\tcounterPanel.add(counterField);\n\t\tmenu.add(counterPanel);\n\t\t\n\t\tJPanel targetPanel = new JPanel();\n\t\ttargetPanel.setLayout(new BoxLayout(targetPanel, BoxLayout.LINE_AXIS));\n\t\ttargetPanel.add(new JLabel(\"Target position: \"));\n\t\ttargetFieldX = new JTextField();\n\t\ttargetFieldX.setEditable(false);\n\t\ttargetFieldX.setText(\"\");\n\t\ttargetFieldX.setColumns(4);\n\t\ttargetFieldY = new JTextField();\n\t\ttargetFieldY.setEditable(false);\n\t\ttargetFieldY.setText(\"\");\n\t\ttargetFieldY.setColumns(4);\n\t\ttargetPanel.add(targetFieldX);\n\t\ttargetPanel.add(new JLabel(\", \"));\n\t\ttargetPanel.add(targetFieldY);\n\t\tmenu.add(targetPanel);\n\t\tmenu.add(new SetTargetPositionButton(editor).button);\n\t\t\n\t\tJButton removeTargetButton = new JButton(\"Remove Target\");\n\t\tremoveTargetButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttargetFieldX.setText(\"\");\n\t\t\t\ttargetFieldY.setText(\"\");\n\t\t\t\teditor.targetIcon.setVisible(false);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tmenu.add(removeTargetButton);\n\t\t\n\t\tfinal CyclicButtonGroup cyclicButtons = new CyclicButtonGroup();\n\t\t\n\t\tJRadioButton nonCyclicButton = new JRadioButton(\"Set to non-cyclic\");\n\t\tnonCyclicButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tcyclicButtons.beginningOfCycle.data.cycleStart = false;\n\t\t\t\t\tcyclicButtons.beginningOfCycle = null;\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tcyclicButtons.add(nonCyclicButton);\n\t\t\n\t\tfinal JButton addActionButton = new JButton(\"Add Action\");\n\t\t\n\t\tmenu.add(addActionButton);\n\t\tmenu.add(nonCyclicButton);\n\t\t\n\t\taddActionButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif (actionButtonGroup.getSelection() == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please select an action type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tFloat headingValue = null;\n\t\t\t\tInteger lengthValue = null;\n\t\t\t\tInteger counterValue = null;\n\t\t\t\tInteger targetValueX = null;\n\t\t\t\tInteger targetValueY = null;\n\t\t\t\tboolean noTarget = false;\n\t\t\t\ttry {\n\t\t\t\t\ttargetValueX = Integer.parseInt(targetFieldX.getText());\n\t\t\t\t\ttargetValueY = Integer.parseInt(targetFieldY.getText());\n\t\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\t\tnoTarget = true;\n\t\t\t\t}\n\t\t\t\tif (headingField.getText() == null || !isValidHeading(headingField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a heading value greater than or equal to 0 and less than 360\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\theadingValue = Float.parseFloat(headingField.getText());\n\t\t\t\t}\n\t\t\t\tif (lengthField.getText() == null || !isValidLength(lengthField.getText())) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer length value greater than 0\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tlengthValue = Integer.parseInt(lengthField.getText());\n\t\t\t\t}\n\t\t\t\tif (counterField.getText() == null || !isValidCounter(counterField.getText(), Integer.parseInt(lengthField.getText()))) {\n\t\t\t\t\tif (noTarget) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter an integer counter value greater than 0 and less than the length value\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcounterValue = Integer.parseInt(counterField.getText());\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tActionMetadata data = new ActionMetadata(actionButtonGroup.getSelection().getActionCommand(),\n\t\t\t\t\t\theadingValue, lengthValue, counterValue, false, targetValueX, targetValueY);\n\t\t\t\t((TreeSite) object).actionQueue.add(data);\n\t\t\t\tcreateActionPanel(cyclicButtons, data);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfor (ActionMetadata metadata : ((TreeSite) object).actionQueue) {\n\t\t\tcreateActionPanel(cyclicButtons, metadata);\n\t\t}\n\t\t\n\t}", "public void updateCommand(Command command) {\n this.command = command;\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "protected void addMultiChoicePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Widget_multiChoice_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Widget_multiChoice_feature\", \"_UI_Widget_type\"),\n\t\t\t\t WavePackage.Literals.WIDGET__MULTI_CHOICE,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}", "public void setSelected(List<T> value) {\n if (isMulti()) {\n getElement().setSelected(SerDes.mirror(value));\n } else {\n getElement().setSelected(value.isEmpty()?null:SerDes.mirror(value.iterator().next()));\n }\n }", "public void setData() {\n tVShortTitle.setText(mCurrencyShortForm);\n tVCount.setText(mCountTitle.concat(String.valueOf(mMainListForActions.size())));\n tVFirstCurrency.setText(mFirstCurrencyTitle);\n tVChosenOrganizationPurchase.setText(getInfoString(mPurchaseTitle + \": \", mPurchaseValue));\n tVChosenOrganizationSale.setText(getInfoString(mSaleTitle + \": \", mSaleValue));\n tVChosenOrganizationDate.setText(mDate.substring(0, 10));\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_SALE)) {\n tVChosenAction.setText(mSaleTitle.toUpperCase());\n } else {\n tVChosenAction.setText(mPurchaseTitle.toUpperCase());\n }\n mTextWatcherAdapter.setActionForFirst(false);\n mTextWatcherAdapter.setActionForSecond(false);\n convertValue();\n }", "@Override\n public void setModelValue(HasDataValue widget, DataModel model, String path) {\n hasDataValueBinding.setModelValue(widget, model, path);\n\n QueryPath qPath = QueryPath.parse(path);\n Value value = ((KSSelectedList) widget).getValueWithTranslations();\n\n Data idsData = null;\n Data idsDataStruct = null;\n\n if (value != null) {\n idsData = value.get();\n }\n if (idsData != null) {\n for (Data.Property p : idsData) {\n if (!\"_runtimeData\".equals(p.getKey())) {\n String id = p.getValue();\n // old translation path path/_runtimeData/0/id-translation\n QueryPath translationPath = new QueryPath();\n translationPath.add(new Data.StringKey(qPath.toString()));\n translationPath.add(new Data.StringKey(\"_runtimeData\"));\n translationPath.add(new Data.IntegerKey((Integer) p.getKey()));\n translationPath.add(new Data.StringKey(\"id-translation\"));\n\n Data idItem = new Data();\n String translation = model.get(translationPath.toString());\n Data idItemRuntime = new Data();\n Data idItemTranslation = new Data();\n idsDataStruct = (idsDataStruct == null) ? new Data() : idsDataStruct;\n idItem.set(this.key, id);\n // new translation path/0/_runtimeData/<key>/id-translation\n idItemTranslation.set(\"id-translation\", translation);\n idItemRuntime.set(this.key, idItemTranslation);\n idItem.set(\"_runtimeData\", idItemRuntime);\n idsDataStruct.add(idItem);\n }\n }\n }\n\n model.set(qPath, idsDataStruct);\n }", "public void setMulti(boolean value) {\n getElement().setMulti(value);\n }", "public void setMultipleInd(Short multipleInd) {\n\t\tthis.multipleInd = multipleInd;\n\t}", "private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(metaData.isDefaultGpuProcessing());\n dialog.setBinning(metaData.getPosBinning(axisID));\n dialog.setSampleThickness(metaData.getSampleThickness(axisID));\n }", "public void setCommand(String command) {\n this.command = command;\n }", "public void setCombo(Object newValue);", "public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }", "@Override\n\tpublic void setOperands(int first, int second, int third) {\n\t\tthis.first = first;\n\t\tthis.second = second;\n\t\tthis.third = third;\n\t}", "private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }", "public void setNewestValueCommad(TangoCommand getNewestValue) {\n newestValueCommand = getNewestValue;\n }", "public void setSingleSelect(int modifiers) {\n\t\t_singleMods = modifiers;\n\t}", "public void setValue(ArrayList<String> value) {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tString id = field.getText(row, 1);\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 2);\n\t\t\tif (cb == null) {Window.alert(\"MultilistField setValue null at \" + row);}\n\t\t\tif (value == null) {cb.setValue(false);}\n\t\t\telse {cb.setValue(value.contains(id));}\n\t\t}\n\t\tsuper.setChanged();\n\t}", "public void setObjectList(final String[] newObjectKeyList, final String newObjectKey) {\r\n\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\tthis.menuToolBar.setObjectList(newObjectKeyList, newObjectKey);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tDataExplorer.this.menuToolBar.setObjectList(newObjectKeyList, newObjectKey);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "public void setInitCommand (String command){\r\n //process the command \r\n initCommand = command.trim();\r\n initialize(); \r\n }", "public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}", "private void setSharedMenuItemStrings()\r\n {\r\n debug(\"setSharedMenuItemStrings() - assigning string values\");\r\n // Build a Menu and Menuitems for Inserting and Deleting Watch Lists\r\n addNewWatchListCmd =\r\n (addNewWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_watchlist_text\") : addNewWatchListCmd;\r\n deleteWatchListCmd =\r\n (deleteWatchListCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_watchlist_text\") : deleteWatchListCmd;\r\n // Build a Menu and Menuitems for Inserting and Deleting Rows\r\n insertBeforeCmd =\r\n (insertBeforeCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_before_text\") : insertBeforeCmd;\r\n insertAfterCmd =\r\n (insertAfterCmd == null) ? getString(\"WatchListTableModule.edit_menu.insert_row_after_text\") : insertAfterCmd;\r\n deleteRowCmd = (deleteRowCmd == null) ? getString(\"WatchListTableModule.edit_menu.delete_row_text\") : deleteRowCmd;\r\n\r\n // Fraction or Decimal Display\r\n fractionCmd = (fractionCmd == null) ? getString(\"WatchListTableModule.edit_menu.fractions_actionCommand\") : fractionCmd;\r\n decimalCmd = (decimalCmd == null) ? getString(\"WatchListTableModule.edit_menu.decimals_actionCommand\") : decimalCmd;\r\n\r\n // Rename the Watch List Command\r\n renameListCmd =\r\n (renameListCmd == null) ? getString(\"WatchListTableModule.edit_menu.rename_watchlist_text\") : renameListCmd;\r\n\r\n // Build a Menu Item to print the WatchList\r\n printListCmd = (printListCmd == null) ? getString(\"WatchListTableModule.edit_menu.print_watchlist_text\") : printListCmd;\r\n // Build a Menu Item for displaying a Table Property Editor\r\n tableProps = (tableProps == null) ? getString(\"WatchListTableModule.edit_menu.view_table_properties\") : tableProps;\r\n\r\n viewOptionChainCmd =\r\n (viewOptionChainCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_option_chain\") : viewOptionChainCmd;\r\n\r\n viewHistoricChartCmd =\r\n (viewHistoricChartCmd == null) ? getString(\"WatchListTableModule.edit_menu.view_historic_chart\") : viewHistoricChartCmd;\r\n\r\n // Make a new Action Trigger, as it is generic and used in many places.\r\n if (actionTrigger == null)\r\n {\r\n actionTrigger = new ActionTrigger();\r\n }\r\n debug(\"setSharedMenuItemStrings() - complete\");\r\n }", "public void setMultiSelect(boolean multiSelect) {\r\n this.multiSelect = multiSelect;\r\n }", "CommandTypes(String command) {\n this.command = command;\n }", "private void setItemMenu() {\n choices = new ArrayList<>();\n \n choices.add(Command.INFO);\n if (item.isUsable()) {\n choices.add(Command.USE);\n }\n if (item.isEquipped()) {\n choices.add(Command.UNEQUIP);\n } else {\n if (item.isEquipable()) {\n choices.add(Command.EQUIP);\n }\n }\n \n if (item.isActive()) {\n choices.add(Command.UNACTIVE);\n } else {\n if (item.isActivable()) {\n choices.add(Command.ACTIVE);\n }\n }\n if (item.isDropable()) {\n choices.add(Command.DROP);\n }\n if (item.isPlaceable()) {\n choices.add(Command.PLACE);\n }\n choices.add(Command.DESTROY);\n choices.add(Command.CLOSE);\n \n this.height = choices.size() * hItemBox + hGap * 2;\n }", "public interface MultiSetting extends Setting {\n\n /**\n * @return The available options.\n */\n Option[] getOptions();\n\n /**\n * Select a specific option.\n *\n * @param index The index of the option to select.\n * @throws InvalidValueException If the value is not within the constraints.\n */\n void select(int index) throws InvalidValueException;\n\n /**\n * @return The currently selected option.\n */\n Option getSelected();\n\n /**\n * @return The index of the currently selected option.\n */\n int getSelectedIndex();\n}", "void setMenuItem(MenuItem menuItem);", "private void addFormatItemsToMenu(javax.swing.JComponent m){\r\n\r\n\r\n jMenuItemFillCell = new javax.swing.JMenuItem();\r\n jMenuItemFillCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_maximise.png\")));\r\n jMenuItemFillCell.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCell\", \"Fill the cell\"));\r\n jMenuItemFillCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCell);\r\n\r\n jMenuItemFillCellH = new javax.swing.JMenuItem();\r\n jMenuItemFillCellH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hmaximise.png\")));\r\n jMenuItemFillCellH.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellHorizontally\", \"Fill the cell (horizontally)\"));\r\n jMenuItemFillCellH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_H).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellH);\r\n\r\n jMenuItemFillCellV = new javax.swing.JMenuItem();\r\n\r\n jMenuItemFillCellV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vmaximise.png\")));\r\n jMenuItemFillCellV.setText(it.businesslogic.ireport.util.I18n.getString(\"fillCellVertically\", \"Fill the cell (vertically)\"));\r\n jMenuItemFillCellV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n FormatCommand.getCommand( OperationType.ELEMENT_MAXIMIZE_V).execute();\r\n }\r\n });\r\n\r\n m.add(jMenuItemFillCellV);\r\n\r\n\r\n jMenuAlign = new javax.swing.JMenu();\r\n jMenuAlign.setText(it.businesslogic.ireport.util.I18n.getString(\"align\", \"Align...\"));\r\n\r\n jMenuItemAlignLeft = new javax.swing.JMenuItem();\r\n\r\n jMenuItemAlignLeft.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_left.png\")));\r\n jMenuItemAlignLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"alignLeft\", \"Align left\"));\r\n jMenuItemAlignLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignLeft);\r\n\r\n jMenuItemAlignRight = new javax.swing.JMenuItem();\r\n jMenuItemAlignRight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_right.png\")));\r\n jMenuItemAlignRight.setText(it.businesslogic.ireport.util.I18n.getString(\"alignRight\", \"Align right\"));\r\n jMenuItemAlignRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignRight);\r\n\r\n jMenuItemAlignTop = new javax.swing.JMenuItem();\r\n jMenuItemAlignTop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_top.png\")));\r\n jMenuItemAlignTop.setText(it.businesslogic.ireport.util.I18n.getString(\"alignTop\", \"Align top\"));\r\n jMenuItemAlignTop.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignTopActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignTop);\r\n\r\n jMenuItemAlignBottom = new javax.swing.JMenuItem();\r\n jMenuItemAlignBottom.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_align_bottom.png\")));\r\n jMenuItemAlignBottom.setText(it.businesslogic.ireport.util.I18n.getString(\"alignBottom\", \"Align bottom\"));\r\n jMenuItemAlignBottom.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignBottomActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignBottom);\r\n\r\n jSeparator19 = new javax.swing.JSeparator();\r\n jMenuAlign.add(jSeparator19);\r\n\r\n jMenuItemAlignVerticalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignVerticalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_center_axis.png\")));\r\n jMenuItemAlignVerticalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignVerticalAxis\", \"Align vertical axis\"));\r\n jMenuItemAlignVerticalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignVerticalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignVerticalAxis);\r\n\r\n jMenuItemAlignHorizontalAxis = new javax.swing.JMenuItem();\r\n jMenuItemAlignHorizontalAxis.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter_axis.png\")));\r\n jMenuItemAlignHorizontalAxis.setText(it.businesslogic.ireport.util.I18n.getString(\"alignHorizontalAxis\", \"Align horizontal axis\"));\r\n jMenuItemAlignHorizontalAxis.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemAlignHorizontalAxisActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuAlign.add(jMenuItemAlignHorizontalAxis);\r\n\r\n m.add(jMenuAlign);\r\n\r\n jMenuSize = new javax.swing.JMenu();\r\n jMenuSize.setText(it.businesslogic.ireport.util.I18n.getString(\"size\", \"Size...\"));\r\n jMenuItemSameWidth = new javax.swing.JMenuItem();\r\n jMenuItemSameWidth.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize.png\")));\r\n jMenuItemSameWidth.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidth\", \"Same width\"));\r\n jMenuItemSameWidth.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidth);\r\n\r\n jMenuItemSameWidthMax = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_plus.png\")));\r\n jMenuItemSameWidthMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMax\", \"Same width (max)\"));\r\n jMenuItemSameWidthMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMax);\r\n\r\n jMenuItemSameWidthMin = new javax.swing.JMenuItem();\r\n jMenuItemSameWidthMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_hsize_min.png\")));\r\n jMenuItemSameWidthMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameWidthMin\", \"Same width (min)\"));\r\n jMenuItemSameWidthMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameWidthMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameWidthMin);\r\n\r\n jSeparator17 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator17);\r\n\r\n jMenuItemSameHeight = new javax.swing.JMenuItem();\r\n jMenuItemSameHeight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize.png\")));\r\n jMenuItemSameHeight.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeight\", \"Same height\"));\r\n jMenuItemSameHeight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeight);\r\n\r\n jMenuItemSameHeightMin = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_min.png\")));\r\n jMenuItemSameHeightMin.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMin\", \"Same height (min)\"));\r\n jMenuItemSameHeightMin.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMinActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMin);\r\n\r\n jMenuItemSameHeightMax = new javax.swing.JMenuItem();\r\n jMenuItemSameHeightMax.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_vsize_plus.png\")));\r\n jMenuItemSameHeightMax.setText(it.businesslogic.ireport.util.I18n.getString(\"sameHeightMax\", \"Same height (max)\"));\r\n jMenuItemSameHeightMax.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameHeightMaxActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameHeightMax);\r\n\r\n jSeparator18 = new javax.swing.JSeparator();\r\n jMenuSize.add(jSeparator18);\r\n\r\n jMenuItemSameSize = new javax.swing.JMenuItem();\r\n jMenuItemSameSize.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_same_size.png\")));\r\n jMenuItemSameSize.setText(it.businesslogic.ireport.util.I18n.getString(\"sameSize\", \"Same size\"));\r\n jMenuItemSameSize.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSameSizeActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuSize.add(jMenuItemSameSize);\r\n\r\n m.add(jMenuSize);\r\n\r\n jMenuPosition = new javax.swing.JMenu();\r\n jMenuPosition.setText(it.businesslogic.ireport.util.I18n.getString(\"position\", \"Position...\"));\r\n jMenuItemCenterH = new javax.swing.JMenuItem();\r\n jMenuItemCenterH.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_hcenter.png\")));\r\n jMenuItemCenterH.setText(it.businesslogic.ireport.util.I18n.getString(\"centerHorizontallyCellBased\", \"Center horizontally (cell based)\"));\r\n jMenuItemCenterH.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterHActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterH);\r\n\r\n jMenuItemCenterV = new javax.swing.JMenuItem();\r\n jMenuItemCenterV.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_vcenter.png\")));\r\n jMenuItemCenterV.setText(it.businesslogic.ireport.util.I18n.getString(\"centerVerticallyCellBased\", \"Center vertically (cell based)\"));\r\n jMenuItemCenterV.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterVActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterV);\r\n\r\n jMenuItemCenterInCell = new javax.swing.JMenuItem();\r\n jMenuItemCenterInCell.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/elem_ccenter.png\")));\r\n jMenuItemCenterInCell.setText(it.businesslogic.ireport.util.I18n.getString(\"centerInCell\", \"Center in cell\"));\r\n jMenuItemCenterInCell.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemCenterInBandActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemCenterInCell);\r\n\r\n jMenuItemJoinLeft = new javax.swing.JMenuItem();\r\n jMenuItemJoinLeft.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesLeft\", \"Join sides left\"));\r\n jMenuItemJoinLeft.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinLeftActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinLeft);\r\n\r\n jMenuItemJoinRight = new javax.swing.JMenuItem();\r\n jMenuItemJoinRight.setText(it.businesslogic.ireport.util.I18n.getString(\"joinSidesRight\", \"Join sides right\"));\r\n jMenuItemJoinRight.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemJoinRightActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuPosition.add(jMenuItemJoinRight);\r\n\r\n m.add(jMenuPosition);\r\n\r\n jSeparator5 = new javax.swing.JSeparator();\r\n m.add(jSeparator5);\r\n\r\n jMenuHSpacing = new javax.swing.JMenu();\r\n jMenuHSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"horizontalSpacing\", \"Horizontal spacing...\"));\r\n\r\n jMenuItemHSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemHSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemHSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSMakeEqual);\r\n\r\n jMenuItemHSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemHSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemHSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSIncrease);\r\n\r\n jMenuItemHSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemHSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemHSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSDecrease);\r\n\r\n jMenuItemHSRemove = new javax.swing.JMenuItem();\r\n jMenuItemHSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemHSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemHSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuHSpacing.add(jMenuItemHSRemove);\r\n\r\n m.add(jMenuHSpacing);\r\n\r\n jMenuVSpacing = new javax.swing.JMenu();\r\n jMenuVSpacing.setText(it.businesslogic.ireport.util.I18n.getString(\"verticalSpacing\", \"Vertical spacing\"));\r\n jMenuItemVSMakeEqual = new javax.swing.JMenuItem();\r\n jMenuItemVSMakeEqual.setText(it.businesslogic.ireport.util.I18n.getString(\"makeEqual\", \"Make equal\"));\r\n jMenuItemVSMakeEqual.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSMakeEqualActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSMakeEqual);\r\n\r\n jMenuItemVSIncrease = new javax.swing.JMenuItem();\r\n jMenuItemVSIncrease.setText(it.businesslogic.ireport.util.I18n.getString(\"increase\", \"Increase\"));\r\n jMenuItemVSIncrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSIncreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSIncrease);\r\n\r\n jMenuItemVSDecrease = new javax.swing.JMenuItem();\r\n jMenuItemVSDecrease.setText(it.businesslogic.ireport.util.I18n.getString(\"decrease\", \"Decrease\"));\r\n jMenuItemVSDecrease.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSDecreaseActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSDecrease);\r\n\r\n jMenuItemVSRemove = new javax.swing.JMenuItem();\r\n jMenuItemVSRemove.setText(it.businesslogic.ireport.util.I18n.getString(\"remove\", \"Remove\"));\r\n jMenuItemVSRemove.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemVSRemoveActionPerformed(evt);\r\n }\r\n });\r\n\r\n jMenuVSpacing.add(jMenuItemVSRemove);\r\n\r\n m.add(jMenuVSpacing);\r\n\r\n jSeparator8 = new javax.swing.JSeparator();\r\n m.add(jSeparator8);\r\n\r\n jMenuItemBringToFront = new javax.swing.JMenuItem();\r\n jMenuItemBringToFront.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtofront.png\")));\r\n jMenuItemBringToFront.setText(it.businesslogic.ireport.util.I18n.getString(\"bringToFront\", \"Bring to front\"));\r\n jMenuItemBringToFront.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemBringToFrontActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemBringToFront);\r\n\r\n jMenuItemSendToBack = new javax.swing.JMenuItem();\r\n jMenuItemSendToBack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/it/businesslogic/ireport/icons/menu/sendtoback.png\")));\r\n jMenuItemSendToBack.setText(it.businesslogic.ireport.util.I18n.getString(\"sendToBack\", \"Send to back\"));\r\n jMenuItemSendToBack.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n getMainFrame().jMenuItemSendToBackActionPerformed(evt);\r\n }\r\n });\r\n\r\n m.add(jMenuItemSendToBack);\r\n\r\n }", "@Override\n\tpublic void redo() {\n\t\tfor(SetValueCommand command : setCommands){\n\t\t\tcommand.redo();\n\t\t}\n\t\tif (layoutCommand != null){\n\t\t\tlayoutCommand.redo();\n\t\t}\n\t}", "@Override\npublic void setUIComponentSelected(ObjectAdapter[] child) {\n\t\n}", "public void SET_PARAMETER(String name, String... value) throws SystemException {\r\n\t\t\r\n\t\t// make sure this is done right. Kinda sucks that Java can't separate those items.\r\n\t\tif (name == null) throw new SystemException(\"SET_PARAMETER faulty. Parameter passed with a null name.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\tif (value == null) throw new SystemException(\"SET_PARAMETER faulty. Parameter set with a null value.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\r\n\t\t// Instance check.\r\n\t\tisCommandInstance();\r\n\t\t\r\n\t\t// Can I set it?\r\n\t\tif (cachedDefinition.parameters.containsKey(name)) {\r\n\t\t\t\r\n\t\t\tCommandItem thisItem = cachedDefinition.parameters.get(name);\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\t// Enforce type\r\n\t\t\t\tif ((thisItem.myDataType == DataType.VALUE)&&(value.length > 1)) \r\n\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter defined with as date type VALUE, but a list was passed.\", SystemException.SYSTEM_COMMAND_ERROR_TYPE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t\t\r\n\t\t\t\t// Save by occurence\r\n\t\t\t\tswitch (thisItem.myOccurence) {\r\n\t\t\t\t\tcase NEVER:\r\n\t\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter defiend with an occurence of NEVER.\", SystemException.SYSTEM_COMMAND_ERROR_OCCURANCE_VIOLATION, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t\r\n\t\t\t\t\tcase ONLYONE:\r\n\t\t\t\t\t\t// Replace\r\n\t\t\t\t\t\tcommandInstance.removeAttribute(name);\r\n\t\t\t\t\t\tcommandInstance.addAttribute(new NV(name,value));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase MANY:\r\n\t\t\t\t\tcase WHATEVER:\t\t\t\t\t\r\n\t\t\t\t\t\t// Simply add it.\r\n\t\t\t\t\t\tcommandInstance.addAttribute(new NV(name,value));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tthrow new SystemException(\"SET_PARAMETER FAULT. Parameter occurence value not defined. This is a bug.\", SystemException.SYSTEM_COMMAND_FAULT_UNDEFINED_STATE, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t} catch (SystemException se) {\r\n\t\t\t\tthrow se;\r\n\t\t\t} catch (ThingsException te) {\r\n\t\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Could not set it.\", SystemException.SYSTEM_COMMAND_ERROR_SET_FAILED, te, SystemNamespace.ATTR_PLATFORM_MESSAGE,te.getMessage(), SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\tthrow new SystemException(\"SET_PARAMETER FAULT. Parameter occurence value not defined. This is a bug.\", SystemException.SYSTEM_COMMAND_FAULT_SET_PROBLEM, t, SystemNamespace.ATTR_PLATFORM_MESSAGE, t.getMessage(), SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// else if parameter not defined\r\n\t\t} else {\r\n\t\t\tthrow new SystemException(\"SET_PARAMETER faulty. Parameter not defined.\", SystemException.SYSTEM_COMMAND_ERROR_PARAMETER_NOT_DEFINED, SystemNamespace.ATTR_SYSTEM_COMMAND_PARAMETER_NAME, name, SystemNamespace.ATTR_SYSTEM_COMMAND_NAME, this.named());\r\n\t\t}\r\n\t\t\r\n\t}", "protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }", "private void updateValue(Widget sender){\r\n\t\tint index = getWidgetIndex(sender) - 1;\r\n\t\tTaskParam param = taskDef.getParamAt(index);\r\n\t\tparam.setValue(((TextBox)sender).getText());\r\n\t\ttaskDef.setDirty(true);\r\n\t}", "@Override\r\n\tpublic void createControl(Composite parent) {\n\t\tinitializeDialogUnits(parent);\r\n\r\n\t\tint sectionStyle = Section.TITLE_BAR | Section.CLIENT_INDENT\r\n\t\t\t\t| Section.EXPANDED;\r\n\t\tSection section = toolkit.createSection(parent, sectionStyle);\r\n\t\tsection.setText(\"Bind all parameters to values\");\r\n\t\tsection.setLayout(new GridLayout());\r\n\t\tComposite comp = toolkit.createComposite(section);\r\n\t\tcomp.setLayout(new GridLayout(2, false));\r\n\r\n\t\tcomp.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));\r\n\t\tsection.setClient(comp);\r\n\t\tselectionLabel = toolkit.createLabel(comp, \"\");\r\n\t\tGridData gridData = new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);\r\n\t\tgridData.horizontalSpan = 2;\r\n\t\tselectionLabel.setLayoutData(gridData);\r\n\r\n\t\tmainComp = comp;\r\n\t\t// PatternToProtocolExportWizard wizard =\r\n\t\t// (PatternToProtocolExportWizard) this\r\n\t\t// .getWizard();\r\n\t\t// assume there are not more than 10 parameters\r\n\t\tint max = 10;\r\n\t\t/*\r\n\t\t * for(CoordinationPattern pattern : wizard.getPatternList()) { int\r\n\t\t * parametersize = pattern.getPatternParameters().size();\r\n\t\t * if(parametersize > max) { max = parametersize; } }\r\n\t\t */\r\n\r\n\t\tif (max > Integer.MIN_VALUE) {\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tLabel l = toolkit.createLabel(mainComp, \"\");\r\n\t\t\t\tl.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tText t = toolkit.createText(mainComp, \"\");\r\n\r\n\t\t\t\tt.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tl.setVisible(true);\r\n\t\t\t\tt.setVisible(true);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthis.setControl(section);\r\n\r\n\t}", "public Builder setCommand(network.message.PlayerResponses.Command value) {\n if (commandBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n commandBuilder_.setMessage(value);\n }\n responseCase_ = 2;\n return this;\n }", "public abstract void setValues(String[] pValues);" ]
[ "0.56988853", "0.5587609", "0.55679893", "0.5422957", "0.5378522", "0.528557", "0.52852327", "0.5275327", "0.5232049", "0.5162077", "0.5138302", "0.51229095", "0.51213056", "0.50740904", "0.5068788", "0.5063948", "0.5052714", "0.5049406", "0.50474936", "0.5039933", "0.5019502", "0.50185597", "0.50178736", "0.5014159", "0.49865288", "0.49862176", "0.49725768", "0.49427557", "0.49338827", "0.49075758", "0.49055493", "0.48968288", "0.48931387", "0.48515686", "0.48505536", "0.48483032", "0.48463142", "0.48153386", "0.48133326", "0.48048377", "0.4797252", "0.47969627", "0.47943404", "0.47914276", "0.47865528", "0.47838348", "0.47833368", "0.47736675", "0.47732005", "0.47607473", "0.47509935", "0.47470796", "0.47438306", "0.47425315", "0.4737254", "0.4730715", "0.47222874", "0.47117928", "0.47067317", "0.46658415", "0.46605545", "0.4657748", "0.4657062", "0.46516195", "0.46275783", "0.46036175", "0.4603126", "0.4600077", "0.45970094", "0.45885104", "0.4585791", "0.45841098", "0.45830414", "0.45828414", "0.45824218", "0.4580037", "0.4579031", "0.45638812", "0.45496336", "0.45432895", "0.45411682", "0.45374948", "0.4535305", "0.45239824", "0.45233494", "0.4522575", "0.45175388", "0.45063213", "0.44774863", "0.4477367", "0.4465573", "0.4458609", "0.44581535", "0.4454868", "0.44488165", "0.44444266", "0.4443999", "0.44431907", "0.44314125", "0.44145507" ]
0.5388583
4
Sets the given property to the given value for all parts that generates the given command. This is used for, say, changing the status help message on a widget that may only be situationally and temporarily desensitized.
void setCommandPropertyValue(String command, String propertyName, String propertyValue);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperty(String property) {\n }", "public SimplePropertyCommand(Value property, String newValue) {\n this.property = property;\n this.newValue = newValue;\n }", "public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }", "public void setProperty(String property) {\n \t\t_property = property;\n \t}", "public void setProperty(String property) {\n\t\tthis.property = property;\n\t}", "void setCommandProperties(String commandID, AttributeList properties);", "public void setProperty(final String property, final String value) {\n\n\t\tthis.engine.setProperty(property, value);\n\t}", "public void setProperty(String prop, Object value)\r\n {\r\n\tswitch(prop)\r\n\t{\r\n\t case \"name\":\r\n\t\tname = value.toString();\r\n\t\tbreak;\r\n\t case \"description\":\r\n\t\tdesc = value.toString();\r\n\t\tbreak;\r\n\t case \"type\":\r\n\t\tsetType(value.toString());\r\n\t\tbreak;\r\n\t case \"level\":\r\n\t\tlevel = (Integer) value;\r\n\t\tbreak;\r\n\t case \"rarity\":\r\n\t\trare = Rarity.valueOf(value.toString().toUpperCase());\r\n\t\tbreak;\r\n\t case \"vendor_value\":\r\n\t\tvendorValue = (Integer) value;\r\n\t\tbreak;\r\n\t case \"game_types\":\r\n\t\taddGameType(value.toString());\r\n\t\tbreak;\r\n\t case \"flags\":\r\n\t\taddFlag(value.toString());\r\n\t\tbreak;\r\n\t case \"restrictions\":\r\n\t\taddRestriction(value.toString());\r\n\t\tbreak;\r\n\t case \"id\":\r\n\t\tid = (Integer) value;\r\n\t\tbreak;\r\n\t case \"icon\":\r\n\t\ttry {\r\n\t\t icon = new URL(value.toString());\r\n\t\t}\r\n\t\tcatch(MalformedURLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tbreak;\r\n\t}\r\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "private void setProperty(Builder builder, String propertyName, String value) throws HorizonDBException {\r\n\r\n Method method = this.methods.get(propertyName);\r\n\r\n try {\r\n\r\n method.invoke(builder, toType(propertyName, value.trim(), method.getParameterTypes()[0]));\r\n\r\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NullPointerException e) {\r\n\r\n throw new HorizonDBException(ErrorCodes.INVALID_CONFIGURATION, \"The configuration property: \"\r\n + propertyName + \" does not exists.\");\r\n }\r\n }", "public static void setProperty(String property, String value) {\n\t\tproperties.setProperty(property, value);\n\t}", "public void setProperty(String name,Object value);", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public final void setProperty(String key, Object value) {\n/* 57 */ Launch.blackboard.put(key, value);\n/* */ }", "PropertiesTask setProperty( String key, String value );", "public Builder setProperty(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n property_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "public void changePropery(String property, String newValueExpr) {\n \t\n\n \n\t}", "public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}", "public void setProperty(String propertyName, boolean value);", "public void setProperty(String key, Object value);", "private void replaceProperty(Motif updated, String property, String newValue) throws ExecutionError {\n if (property.equals(\"Short name\")) {\n updated.setShortName(newValue);\n } else if (property.equals(\"Long name\")) {\n updated.setLongName(newValue);\n } else if (property.equals(\"Consensus\")) {\n updated.setConsensusMotifAndUpdatePWM(newValue);\n } else if (property.equals(\"Factors\")) {\n updated.setBindingFactors(newValue);\n } else if (property.equals(\"Classification\")) {\n if (newValue.matches(\"[^0-9\\\\.]\")) throw new ExecutionError(\"Incorrect class label: \"+newValue);\n int level=MotifClassification.getClassLevel(newValue);\n while (level>4) {\n newValue=MotifClassification.getParentLevel(newValue);\n level=MotifClassification.getClassLevel(newValue);\n }\n if (!MotifClassification.isKnownClassString(newValue)) throw new ExecutionError(\"Unknown motif class:\"+newValue);\n updated.setClassification(newValue);\n } else if (property.equals(\"Quality\")) {\n try {\n int value=Integer.parseInt(newValue);\n if (value<1 || value>6) throw new ExecutionError(\"Quality should be a number between 1 and 6\");\n updated.setQuality(value);\n } catch (NumberFormatException nfe) {\n throw new ExecutionError(\"Unable to parse expected numeric value for quality: \"+newValue);\n }\n } else if (property.equals(\"Alternatives\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setKnownDuplicatesNames(names);\n } else if (property.equals(\"Interactions\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setInteractionPartnerNames(names);\n } else if (property.equals(\"Organisms\")) {\n updated.setOrganisms(newValue);\n } else if (property.equals(\"Expression\")) {\n String[] tissues=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setTissueExpression(tissues);\n } else if (property.equals(\"Part\")) {\n if (!Motif.isValidPart(newValue)) throw new ExecutionError(\"'\"+newValue+\"' is not a valid value for the 'part' property\");\n updated.setPart(newValue);\n } else {// userdefined property\n if (!Motif.isValidUserDefinedPropertyKey(property)) throw new ExecutionError(\"'\"+property+\"' is not a valid name for a user-defined property\");\n if (newValue.contains(\";\")) throw new ExecutionError(\"Value can not contain the ';' character\");\n Object value=Motif.getObjectForPropertyValueString(newValue);\n updated.setUserDefinedPropertyValue(property, value);\n }\n }", "public void setProperty( String key, Object value );", "private SetProperty(Builder builder) {\n super(builder);\n }", "public void propertiesChanged(String property, String value) {\n\t\tif(property != null) {\n \t\t\tFComponent comp = mainFrame.getSelectedComponent().getComponent();\n \t\t\tif(comp.getLabel() == null || !comp.getLabel().equals(value)) {\n \t\t\t\tcomp.setLabel(value);\n \t\t\t\tmainFrame.refreshPreview();\t\t\t\t\n \t\t\t}\n \t\t}\n \t}", "public abstract void setProperty(String property, Object value)\n throws SOAPException;", "void setStatusProperty(String property, Double value);", "void setProperty(String attribute, String value);", "private void processProperty(String name, Object value)\n\t{\n\t\tif (name.equals(TiC.PROPERTY_DATA) || name.equals(TiC.PROPERTY_SECTIONS)) {\n\t\t\tsetData((Object[]) value);\n\n\t\t} else if (name.equals(TiC.PROPERTY_EDITING) || name.equals(TiC.PROPERTY_REQUIRES_EDITING_TO_MOVE)) {\n\t\t\tfinal TiViewProxy parent = getParent();\n\n\t\t\tif (parent != null) {\n\n\t\t\t\t// Due to Android limitations, selection trackers cannot be removed.\n\t\t\t\t// Re-create TableView with new selection tracker.\n\t\t\t\tparent.recreateChild(this);\n\t\t\t}\n\n\t\t} else if (name.equals(TiC.PROPERTY_MOVING)\n\t\t\t|| name.equals(TiC.PROPERTY_SHOW_SELECTION_CHECK)) {\n\n\t\t\t// Update and refresh table.\n\t\t\tupdate(true);\n\t\t}\n\t}", "void setProperty(String key, Object value);", "public void setCommandValue(String command, int argIndex, String newValue)\n\t{\n\t\tfor(int x = 0; x < this.commands.size(); x++)\n\t\t{\n\t\t\tif(this.commands.get(x).toString().startsWith(\"#descr\") && this.commands.get(x).args.size() > argIndex)\n\t\t\t{\n\t\t\t\tif(newValue.startsWith(\"\\\"\"))\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, newValue);\n\t\t\t\telse\n\t\t\t\t\tthis.commands.get(x).args.set(argIndex, \"\\\"\" + newValue + \"\\\"\");\n\t\t\t}\n\t\t}\n\t}", "public static void setInteger(String prop, int value)\n {\n props.setProperty(prop, \"\" + value);\n }", "public static void setProperty(String property, String value) {\n properties.setProperty(property, value);\n File f = new File(\"system.properties\");\n try {\n OutputStream out = new FileOutputStream(f);\n properties.store(out, \"This is an optional header comment string\");\n out.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private static void setProperty(String key, String value)\r\n/* 84: */ throws IOException\r\n/* 85: */ {\r\n/* 86: 83 */ log.finest(\"OSHandler.setProperty. Key=\" + key + \" Value=\" + value);\r\n/* 87: 84 */ File propsFile = getPropertiesFile();\r\n/* 88: 85 */ FileInputStream fis = new FileInputStream(propsFile);\r\n/* 89: 86 */ Properties props = new Properties();\r\n/* 90: 87 */ props.load(fis);\r\n/* 91: 88 */ props.setProperty(key, value);\r\n/* 92: 89 */ FileOutputStream fos = new FileOutputStream(propsFile);\r\n/* 93: 90 */ props.store(fos, \"\");\r\n/* 94: 91 */ fos.close();\r\n/* 95: */ }", "public static void set(ServerProperty property, String value)\n\t{\n\t\tif (value == null)\n\t\t\tproperties.remove(property.getKey());\n\t\telse\n\t\t\tproperties.setProperty(property.getKey(), value);\n\t}", "public static void setString(String prop, String value)\n {\n props.setProperty(prop, value);\n }", "public void addProperty(org.apache.ant.antlib.system.SubBuild.Property property) {\n properties.put(property.getName(), property.getValue());\n }", "T setSystemProperty(String key, String value);", "public void setUserProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).setUserProperty(null, name,\n value);\n }", "void editProperty(String requestedProperty, Object newValue) {\n properties.editProperty(requestedProperty, newValue); // <-- The replace() method automatically checks for null\n }", "final public void setProperty(String key, String value) {\n logger.info(\"Kylin Config was updated with \" + key + \" : \" + value);\n properties.setProperty(BCC.check(key), value);\n }", "public void property(String key, String value) {\n\t\tpropsBinder().addBinding(key).toInstance(value);\n\t}", "public static void setBoolean(String prop, boolean value)\n {\n props.setProperty(prop, \"\" + value);\n }", "public void setProperty(String key, String value) {\n\t\tthis.properties.setProperty(key, value);\n\t}", "public void setProperty(String arg0, Object arg1)\n throws UniquePropertyValueConflictException,\n\n EntityPersistenceException {\n\n }", "DefinedProperty graphChangeProperty( int propertyKey, Object value );", "@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}", "public void changeProperty(String property, String newValueExpr) {\n \t\n\t\tif(TITLE_PROPERTY.equals(property)){\n\t\t\tchangeTitleProperty(newValueExpr);\n\t\t}\n\t\tif(BRIEF_PROPERTY.equals(property)){\n\t\t\tchangeBriefProperty(newValueExpr);\n\t\t}\n\t\tif(ICON_PROPERTY.equals(property)){\n\t\t\tchangeIconProperty(newValueExpr);\n\t\t}\n\t\tif(DISPLAY_ORDER_PROPERTY.equals(property)){\n\t\t\tchangeDisplayOrderProperty(newValueExpr);\n\t\t}\n\t\tif(VIEW_GROUP_PROPERTY.equals(property)){\n\t\t\tchangeViewGroupProperty(newValueExpr);\n\t\t}\n\t\tif(LINK_TO_URL_PROPERTY.equals(property)){\n\t\t\tchangeLinkToUrlProperty(newValueExpr);\n\t\t}\n\n \n\t}", "public void notifyChanged(final Notification msg) {\r\n\t super.notifyChanged(msg);\r\n\t \r\n\t if(msg.getFeature() == PropertiesPackage.Literals.PROPERTY__VALUE) {\r\n\t \tsetGUIAttributes();\r\n\t }\r\n\t }", "public void setProperty(String key, String value) {\n\t\tthis.properties.put(key, value);\n\t}", "public static void setProperty( Object object, String name, String value )\r\n {\r\n Object[] arguments = new Object[]{ value };\r\n\r\n Class<?>[] parameterTypes = new Class<?>[]{ String.class };\r\n\r\n if ( name.length() > 0 )\r\n {\r\n name = \"set\" + name.substring( 0, 1 ).toUpperCase() + name.substring( 1, name.length() );\r\n\r\n try\r\n {\r\n Method concatMethod = object.getClass().getMethod( name, parameterTypes );\r\n\r\n concatMethod.invoke( object, arguments );\r\n }\r\n catch ( Exception ex )\r\n {\r\n throw new UnsupportedOperationException( \"Failed to set property\", ex );\r\n }\r\n }\r\n }", "public void setProperty(Object key, Object value) {\r\n\t\tproperties.put(key, value);\r\n\t}", "public void setProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).\n setProperty(null, name, value, true);\n }", "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "private Property(String value) {\n\t\t\tthis.value = value;\n\t\t}", "public void setContextProperty(String property) {\n _contextProperty = property;\n }", "void setMyProperty1(Integer a) {}", "public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "@IcalProperty(pindex = PropertyInfoIndex.POLL_PROPERTIES,\n vpollProperty = true\n )\n public void setPollProperties(final String val) {\n replaceXproperty(BwXproperty.pollProperties, val);\n }", "public void setProperty(Integer t) {\n\n\t\t}", "public void setCommand(String command){\r\n commandUpdate=command;\r\n }", "public void setProperty(String propertyId, Object value)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n // see if the property is recognized\n getProperty(propertyId);\n \n // Properties with a defined value, we just change it if we can.\n \n if ((PROPERTY + \"declaration-handler\").equals(propertyId))\n {\n if (value == null)\n {\n declHandler = base;\n }\n else if (!(value instanceof DeclHandler))\n {\n throw new SAXNotSupportedException(propertyId);\n }\n else\n {\n declHandler = (DeclHandler) value;\n }\n return ;\n }\n \n if ((PROPERTY + \"lexical-handler\").equals(propertyId))\n {\n if (value == null)\n {\n lexicalHandler = base;\n }\n else if (!(value instanceof LexicalHandler))\n {\n throw new SAXNotSupportedException(propertyId);\n }\n else\n {\n lexicalHandler = (LexicalHandler) value;\n }\n return;\n }\n \n throw new SAXNotSupportedException(propertyId);\n }", "public void setStringProperty(String propertyName, String value);", "void\t\tsetCommandVisibility(String command, boolean flag);", "public SystemPropertyScriptCommand(Configuration configuration, String resourcePath,\n String name, String value)\n {\n super(configuration, resourcePath);\n\n if (name == null || name.isEmpty())\n {\n throw new IllegalArgumentException(\"System property name is null or empty.\");\n }\n else if (value == null)\n {\n throw new IllegalArgumentException(\"Value of system property \" + name\n + \" is null.\");\n }\n else\n {\n this.name = name;\n this.value = value;\n }\n }", "private void setValueSummary(String preference, String property) {\n try {\n findPreference(preference).setSummary(SystemProperties.get(property, getString(R.string.device_info_default)));\n } catch (RuntimeException e) {\n // No recovery\n }\n }", "public void changeProperty(String property, String newValueExpr) {\n \t\n\t\tif(NAME_PROPERTY.equals(property)){\n\t\t\tchangeNameProperty(newValueExpr);\n\t\t}\n\t\tif(CODE_PROPERTY.equals(property)){\n\t\t\tchangeCodeProperty(newValueExpr);\n\t\t}\n\t\tif(FOOTER_TAB_PROPERTY.equals(property)){\n\t\t\tchangeFooterTabProperty(newValueExpr);\n\t\t}\n\n \n\t}", "public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }", "public void setValueProperty(String valueProperty) throws IllegalStateException {\r\n setAttribute(\"valueProperty\", valueProperty, false);\r\n }", "public void setPropValue(String propValue) {\n this.propValue = propValue;\n }", "public abstract void setCommand(String cmd);", "public final void setProperty(final String key, final String value)\n {\n\n if (!StringUtils.isBlank(key))\n {\n\n if ((StringUtils.isBlank(value)) || (StringUtils.isEmpty(value)))\n {\n this.fProp.setProperty(StringUtils.deleteWhitespace(key)\n .toLowerCase().trim(), \" \");\n } else\n {\n this.fProp.setProperty(StringUtils.deleteWhitespace(key)\n .toLowerCase().trim(), value.trim());\n } // end if..else\n } // end outer if.else\n\n }", "public void setProperty(String name,Object value)\n {\n ClassAnalyzer.setProperty(m_Source,name,value);\n }", "public Object setProperty(String key, String value) {\n return this.props.setProperty(key, value);\n }", "public void put(String property, Object value)\n\t{\n\t\tglobal.put(property, global, value);\n\t}", "public void setProperty(String aProperty, Object aObject)\n\t\t\t\t\t throws SAXNotSupportedException, SAXNotRecognizedException {\n\t\tparserImpl.setProperty(aProperty, aObject);\n\t}", "public void setProperty(String name, String value)\n\t{\n\t\tprops.setProperty(name, value);\n\t}", "public static void setUserProperty(String key, String value){\n\n UserProperties.setUserProperty(context, key, value);\n sendUserProperties(Constants.Z_USER_PROPS_UPLOAD_PERIOD_MILLIS);\n }", "protected void setPropertyTree(PropertyTree tree) {\n propertyTree = tree;\n }", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public void changePropery(String property, String newValueExpr) {\n \t\n\t\tif(NAME_PROPERTY.equals(property)){\n\t\t\tchangeNameProperty(newValueExpr);\n\t\t}\n\t\tif(MOBILE_PROPERTY.equals(property)){\n\t\t\tchangeMobileProperty(newValueExpr);\n\t\t}\n\t\tif(EMAIL_PROPERTY.equals(property)){\n\t\t\tchangeEmailProperty(newValueExpr);\n\t\t}\n\t\tif(FOUNDED_PROPERTY.equals(property)){\n\t\t\tchangeFoundedProperty(newValueExpr);\n\t\t}\n\n \n\t}", "public void setPropertyToRoot(String propertyName, boolean value);", "void updatedProperty(TestResult tr, String name, String value);", "public void changePropery(String property, String newValueExpr) {\n \t\n\t\tif(WHO_PROPERTY.equals(property)){\n\t\t\tchangeWhoProperty(newValueExpr);\n\t\t}\n\t\tif(PAID_TIME_PROPERTY.equals(property)){\n\t\t\tchangePaidTimeProperty(newValueExpr);\n\t\t}\n\t\tif(AMOUNT_PROPERTY.equals(property)){\n\t\t\tchangeAmountProperty(newValueExpr);\n\t\t}\n\n \n\t}", "public void setTagProperty(String tagProperty);", "private void processProperty(String name, Object value)\n\t{\n\t\tfinal TableViewProxy tableViewProxy = getTableViewProxy();\n\n\t\tif (name.equals(TiC.PROPERTY_SELECTED_BACKGROUND_COLOR)) {\n\t\t\tLog.w(TAG, \"selectedBackgroundColor is deprecated, use backgroundSelectedColor instead.\");\n\t\t\tsetProperty(TiC.PROPERTY_BACKGROUND_SELECTED_COLOR, value);\n\t\t}\n\t\tif (name.equals(TiC.PROPERTY_SELECTED_BACKGROUND_IMAGE)) {\n\t\t\tLog.w(TAG, \"selectedBackgroundImage is deprecated, use backgroundSelectedImage instead.\");\n\t\t\tsetProperty(TiC.PROPERTY_BACKGROUND_SELECTED_IMAGE, value);\n\t\t}\n\n\t\t// TableViewRow.header and TableViewRow.footer have been deprecated.\n\t\tif (name.equals(TiC.PROPERTY_HEADER)) {\n\t\t\theaderDeprecationLog();\n\t\t}\n\t\tif (name.equals(TiC.PROPERTY_FOOTER)) {\n\t\t\tfooterDeprecationLog();\n\t\t}\n\n\t\t// Set selected color from selection style.\n\t\tif (!hasPropertyAndNotNull(TiC.PROPERTY_BACKGROUND_SELECTED_COLOR)\n\t\t\t&& name.equals(TiC.PROPERTY_SELECTION_STYLE)\n\t\t\t&& value instanceof Integer) {\n\t\t\tString selectionColor = null;\n\n\t\t\tswitch ((Integer) value) {\n\t\t\t\tcase UIModule.SELECTION_STYLE_NONE:\n\t\t\t\t\tselectionColor = \"transparent\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tsetProperty(TiC.PROPERTY_BACKGROUND_SELECTED_COLOR, selectionColor);\n\t\t\tinvalidate();\n\t\t}\n\n\t\tif (name.equals(TiC.PROPERTY_LEFT_IMAGE)\n\t\t\t|| name.equals(TiC.PROPERTY_RIGHT_IMAGE)\n\t\t\t|| name.equals(TiC.PROPERTY_HAS_CHECK)\n\t\t\t|| name.equals(TiC.PROPERTY_HAS_CHILD)\n\t\t\t|| name.equals(TiC.PROPERTY_HAS_DETAIL)\n\t\t\t|| name.equals(TiC.PROPERTY_BACKGROUND_COLOR)\n\t\t\t|| name.equals(TiC.PROPERTY_BACKGROUND_IMAGE)\n\t\t\t|| name.equals(TiC.PROPERTY_SELECTED_BACKGROUND_COLOR)\n\t\t\t|| name.equals(TiC.PROPERTY_BACKGROUND_SELECTED_COLOR)\n\t\t\t|| name.equals(TiC.PROPERTY_SELECTED_BACKGROUND_IMAGE)\n\t\t\t|| name.equals(TiC.PROPERTY_BACKGROUND_SELECTED_IMAGE)\n\t\t\t|| name.equals(TiC.PROPERTY_TITLE)\n\t\t\t|| name.equals(TiC.PROPERTY_COLOR)\n\t\t\t|| name.equals(TiC.PROPERTY_FONT)\n\t\t\t|| name.equals(TiC.PROPERTY_LEFT)\n\t\t\t|| name.equals(TiC.PROPERTY_RIGHT)\n\t\t\t|| name.equals(TiC.PROPERTY_TOP)\n\t\t\t|| name.equals(TiC.PROPERTY_BOTTOM)\n\t\t\t|| name.equals(TiC.PROPERTY_MOVABLE)) {\n\n\t\t\t// Force re-bind of row.\n\t\t\tinvalidate();\n\t\t}\n\t}", "public boolean setWindowProperty ( InventoryView.Property prop , int value ) {\n\t\treturn invokeSafe ( \"setWindowProperty\" ,\n\t\t\t\t\t\t\tnew Class[] { InventoryView.Property.class , int.class } , value );\n\t}", "public void setNewProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).setNewProperty(null, name,\n value);\n }", "protected void setCommand(String command)\n {\n Command = command;\n }", "DefinedProperty nodeChangeProperty( long nodeId, int propertyKey, Object value );", "public void propertyChange(PropertyChangeEvent evt)\n {\n String propertyName = evt.getPropertyName();\n \n if (propertyName.equals(CallPeer.MUTE_PROPERTY_NAME))\n {\n boolean isMute = (Boolean) evt.getNewValue();\n \n renderer.setMute(isMute);\n \n // Update the state of the mute button.\n renderer.getCallDialog().updateMuteButtonState();\n }\n }", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "@NotNull\n GitConfigCommand setValue(@Nullable String value);", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public final void setAutoConsume(boolean value)\n {\n myAutoConsumeProperty.set(value);\n }", "private void setPropertyInternal(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setProperty(null, name, value, false);\n }", "public void setSetPropertyTarget(String setPropertyTarget) {\n \n this.setPropertyTarget = setPropertyTarget;\n }" ]
[ "0.65783054", "0.6348128", "0.6348044", "0.6116828", "0.6075641", "0.5969275", "0.59353673", "0.592508", "0.5904344", "0.5899612", "0.56845677", "0.56641674", "0.5659663", "0.5598457", "0.558303", "0.55406547", "0.55254036", "0.5514171", "0.5514171", "0.55104244", "0.54913425", "0.54803556", "0.54721814", "0.5470919", "0.54693115", "0.54639727", "0.54474336", "0.5404255", "0.5375058", "0.5357647", "0.5346302", "0.5338641", "0.532615", "0.53204024", "0.5317878", "0.52922815", "0.52896786", "0.5263317", "0.5230735", "0.5220371", "0.52108896", "0.519812", "0.51921946", "0.5190978", "0.51850367", "0.5174181", "0.516421", "0.51508474", "0.5150277", "0.51303345", "0.5126035", "0.5122084", "0.5105285", "0.50961155", "0.5094824", "0.5085118", "0.5085118", "0.50819457", "0.50777584", "0.5070598", "0.50353307", "0.50203454", "0.50197583", "0.5016974", "0.500493", "0.49970025", "0.49755806", "0.4975547", "0.49641687", "0.4960204", "0.49577683", "0.49440187", "0.49425468", "0.49407354", "0.49382842", "0.49327716", "0.49326655", "0.49217534", "0.49216917", "0.4920654", "0.49096006", "0.49034548", "0.49004483", "0.48882872", "0.48733062", "0.48726657", "0.48697612", "0.4869197", "0.48628333", "0.4842831", "0.4838027", "0.48365644", "0.48361078", "0.48281208", "0.4823702", "0.48193014", "0.4819127", "0.48180887", "0.48123908", "0.48122036" ]
0.6926516
0
/ Create data format
private String createDate(){ SimpleDateFormat date = new SimpleDateFormat("EEE, MMM d, yyyy"); String stringDate = date.format(new Date()); return stringDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract D createData();", "public DataFormat createDataFormat() {\n\t\treturn null;\n\t}", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "FData createFData();", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "CreationData creationData();", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "DataElement createDataElement();", "public static String createArffData(DataSet dataSet){\n StringBuilder sb = new StringBuilder();\n sb.append(\"@data\\n\");\n for(int i = 0; i < dataSet.getRows(); i++){\n for(int j = 0; j < dataSet.getColumns() - 1; j++){\n sb.append(dataSet.getEntryInDataSet(i, j));\n sb.append(\",\");\n }\n sb.append(dataSet.getEntryInDataSet(i, dataSet.getColumns() - 1));\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n return sb.toString();\n }", "public abstract DataType<T> newInstance(String format);", "public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "String[][] packData();", "DataPackage createDataPackage();", "public void generateData()\n {\n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "public void generateFixedDataInit() {\n if (codeValues != null) {\n \n stringBuffer.append(TEXT_139);\n \n } else {\n \n stringBuffer.append(TEXT_140);\n stringBuffer.append(TEXT_141);\n stringBuffer.append( ElementParameterParser.getValue(node, \"__FIELDSEPARATOR__\") );\n stringBuffer.append(TEXT_142);\n stringBuffer.append(TEXT_143);\n stringBuffer.append( ElementParameterParser.getValue(node, \"__ROWSEPARATOR__\") );\n stringBuffer.append(TEXT_144);\n \n int i = -1;\n for (IMetadataColumn column : getOutColumnsMain()) {\n i++;\n String label = column.getLabel();\n String typeToGenerate = JavaTypesManager.getTypeToGenerate(column.getTalendType(), column.isNullable());\n JavaType javaType = JavaTypesManager.getJavaTypeFromId(column.getTalendType());\n String patternValue = column.getPattern() == null || column.getPattern().trim().length() == 0 ? null : column.getPattern();\n\n String defaultValue = \"null\";\n if (column.getDefault() != null && column.getDefault().length() > 0) {\n defaultValue = column.getDefault();\n } else {\n if (typeToGenerate == null) {\n throw new IllegalArgumentException();\n }\n if (JavaTypesManager.isJavaPrimitiveType(typeToGenerate)) {\n if (\"char\".equals(typeToGenerate)) {\n defaultValue = \"' '\";\n } else if (\"boolean\".equals(typeToGenerate)) {\n defaultValue = \"false\";\n } else if (\"byte\".equals(typeToGenerate)) {\n defaultValue = \"(byte)0\";\n } else if (\"double\".equals(typeToGenerate)) {\n defaultValue = \"0.0d\";\n } else if (\"float\".equals(typeToGenerate)) {\n defaultValue = \"0.0f\";\n } else if (\"long\".equals(typeToGenerate)) {\n defaultValue = \"0l\";\n } else if (\"short\".equals(typeToGenerate)) {\n defaultValue = \"(short) 0\";\n } else {\n defaultValue = \"0\";\n }\n }\n }\n \n stringBuffer.append(TEXT_145);\n stringBuffer.append(i);\n stringBuffer.append(TEXT_146);\n stringBuffer.append(i);\n stringBuffer.append(TEXT_147);\n \n if(javaType == JavaTypesManager.STRING || javaType == JavaTypesManager.OBJECT) {\n \n stringBuffer.append(TEXT_148);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_149);\n \n } else if (javaType == JavaTypesManager.DATE) {\n \n stringBuffer.append(TEXT_150);\n if ((defaultValue==null) || \"\".equals(defaultValue) || \"null\".equals(defaultValue)){ \n stringBuffer.append(TEXT_151);\n } \n stringBuffer.append(TEXT_152);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_153);\n stringBuffer.append(TEXT_154);\n stringBuffer.append( patternValue );\n stringBuffer.append(TEXT_155);\n stringBuffer.append( patternValue );\n stringBuffer.append(TEXT_156);\n \n } else if(javaType == JavaTypesManager.BYTE_ARRAY) {\n \n stringBuffer.append(TEXT_157);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_158);\n \n } else {\n \n stringBuffer.append(TEXT_159);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_160);\n stringBuffer.append( typeToGenerate );\n stringBuffer.append(TEXT_161);\n \n }\n \n stringBuffer.append(TEXT_162);\n \n if (javaType != JavaTypesManager.DATE) {\n \n stringBuffer.append(TEXT_163);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_164);\n \n } else if (defaultValue == null || \"\".equals(defaultValue) || \"null\".equals(defaultValue)) {\n \n stringBuffer.append(TEXT_165);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_166);\n stringBuffer.append( patternValue );\n stringBuffer.append(TEXT_167);\n \n } else {\n \n stringBuffer.append(TEXT_168);\n stringBuffer.append(defaultValue );\n stringBuffer.append(TEXT_169);\n stringBuffer.append( patternValue );\n stringBuffer.append(TEXT_170);\n \n }\n \n stringBuffer.append(TEXT_171);\n \n }\n \n stringBuffer.append(TEXT_172);\n \n }\n }", "protected abstract void createPacketData();", "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }", "static String makeData(String key,\n String value) {\n return format(DATA_FMT, key, value);\n }", "DataType createDataType();", "DataList createDataList();", "String FormatDataType(int dataType, int scale, int precision);", "public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }", "public Database createTableFromArray(int [][] dataDbn){\r\n \tDatabase db = new Database();\r\n \tTable table = null;\r\n \tToken t = null, t2 = null;\r\n \tAttribute attr = null;\r\n \tList ll;\r\n \tLinkedList attributeValues = new LinkedList();\r\n \tLinkedList sampleValueList;\r\n \tint numGenesTotal;\r\n \tint samples;\r\n \tString atrNode = \"node\";\r\n \t\r\n \ttry {\r\n \t\ttable = new Table(); \r\n \t\ttable.setName(\"name\");\r\n \t}catch(Exception e){\r\n \t\t\r\n\t\t\te.printStackTrace();\r\n \t}\r\n \t\r\n \t\r\n \tnumGenesTotal = dataDbn[0].length;\r\n \tsamples = dataDbn.length;\r\n \t\r\n \t// each gene has 3 levels (3 attributes). they are represent by 0,1,2\r\n \tattributeValues.add(new Integer(0));\r\n \tattributeValues.add(new Integer(1));\r\n \tattributeValues.add(new Integer(2));\r\n \t\r\n \t// set attributes for each gene\r\n \tfor(int k=0;k<numGenesTotal;k++){\r\n \t\tString name = atrNode + k;\r\n \t\tattr = new Attribute(name);\r\n \t\tattr.setValues(attributeValues);\r\n \t\ttable.addAttribute(attr);\r\n \t}\r\n \t\r\n \t// read dbnData and load gene's value of each sample in to List and then add this List in to the table\r\n \tfor(int i =0;i<samples;i++){\r\n \t\tsampleValueList = new LinkedList();\r\n \t\tfor(int j=0; j<numGenesTotal;j++){\r\n \t\t\tInteger val = new Integer(dataDbn[i][j]);\r\n \t\t\tsampleValueList.add(val);\r\n \t\t}\r\n \t\ttable.addTuple(new Tuple(sampleValueList));\r\n \t}\r\n \t\r\n \tdb.addTable(table);\r\n \t/*\r\n \tString filePath = \"C:\\\\Users\\\\devamuni\\\\Documents\\\\D_Result\\\\Input.out\";\r\n File f1 = new File(filePath);\r\n try {\r\n\t\t\tOutputStream os = new FileOutputStream(f1);\r\n\t\t\tsave(os, db);\r\n } catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\t\r\n\t\t\te.printStackTrace();\r\n } */\r\n \treturn db;\r\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public Data() {\n\t\tif (flag == 0) {\n\t\t\tflag = 1;\n\t\t\tfloat def = 0;\n\t\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\t\tlocation.add(def);\n\t\t\t\tstate.add(0);\n\t\t\t\tboardsize.add(0);\n\n\t\t\t\tsystemid.add(\"\");\n\t\t\t\ttime.add(0);\n\t\t\t\tname.add(\"\");\n\t\t\t}\n\n\t\t\tball.add(def);\n\t\t\tball.add(def);\n\n\t\t\tballsize = 0;\n\t\t}\n\t}", "public String getDataString() {\r\n return formatoData.format(data);\r\n }", "static String makeData(String key,\n int value) {\n return format(DATA_FMT, key, value);\n }", "public abstract DataType<T> newInstance(String format, Locale locale);", "void create(DataTableDef def) throws IOException;", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private static String createDataString(\n \t\tCollection<ProductAmountTO> requiredProductAmounts,\n \t\tHashtable<Store, Collection<StockItem>> storeStockItems,\n \t\tHashtable<Store, Integer> storeDistances) {\n \t\n \tStringBuffer output = new StringBuffer();\n\n \tappendStoreDistances(storeDistances, output); \t\n \t\n \tappendRequiredProductAmounts(requiredProductAmounts, output);\n \t\n \tappendOfferingStoresProductsAmountsMatrix(storeStockItems, requiredProductAmounts, output);\n \t\n \treturn output.toString();\n \t \n\n }", "private void buildDS(String file) throws IOException,ParseException\n\t{\n\t\tJSONParser parser=new JSONParser();\n\t\tJSONObject config=(JSONObject)parser.parse(new FileReader(file));\n\t\taddToMap(config,this.types,\"types\");\n\t\tJSONObject groups=(JSONObject)config.get(\"combine\");\n\t\tfor(String key:(Set<String>)groups.keySet())\n\t\t{\n\t\t\tArrayList<String> temp=new ArrayList<String>();\n\t\t\taddToList(groups,temp,key);\n\t\t\tthis.groups.put(key,temp);\n\t\t}\n\t\taddToMap(config,this.rename,\"rename\");\n\t\taddToMap(config,this.format,\"format\");\n\t\taddToMap(config,this.ops,\"operation\");\n\t}", "@Override\n public String createData() {\n String data = getTypeIcon()\n + \"\"\n + getStatusIcon()\n + \" \"\n + this.command;\n return data;\n }", "ExpData createData(Container container, @NotNull DataType type);", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private String createStandardGZFields()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\t\tstr.append(\"GZWSID CHAR(4) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZDIM NUMERIC(2, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZTIM NUMERIC(6, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZSEQ DECIMAL(7, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZIMG CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZEFC CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZSMCK CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZ4STS CHAR(1) NOT NULL DEFAULT '' \");\n\t\t// If additional fields are added, the STANDARD_JOURNAL_FIELD_SIZE\n\t\t// constant must be updated\n\t\treturn str.toString();\n\t}", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "@Override\n\tvoid putData() {\n\t\tSystem.out.println(\"Brand : \"+brand);\n\t\tSystem.out.println(\"Model : \"+model);\n\t\tSystem.out.println(\"Year of manufacture : \"+year_of_manufacture);\n\t\tSystem.out.println(\"CC : \"+cc);\n\t}", "static void createDataForGraph() {\n double x = 2;\n String fileName = \"./lab1part2docs/dataRec.csv\";\n createFile(fileName);\n writeToFile(\"k,halfCounter,oneCounter,x=\" + x + \"\\n\", fileName);\n for (int k = 1; k <= 10000; k++) {\n Raise.runBoth(x, k);\n writeToFile(k + \",\" + Raise.recHalfCounter + \",\" + Raise.recOneCounter + '\\n', fileName);\n Raise.recHalfCounter = 0;\n Raise.recOneCounter = 0;\n }\n System.out.println(\"Finished\");\n }", "public void writeData(StringBuilder sb) {\n\t\tif(!(fieldSimulation.getSimulationOwner() instanceof SimulationContext)) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\tSimulationContext sc = (SimulationContext)fieldSimulation.getSimulationOwner();\n\t\tif(sc.getApplicationType() != Application.SPRINGSALAD) {\n\t\t\tsb.append(\"\\n\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// ending time is editable, starting time is non-editable, always 0\n\t\tdouble totalTime = getTimeBounds().getEndingTime() - getTimeBounds().getStartingTime();\n\t\tsb.append(\"Total time: \" + totalTime);\t\t// TODO: for langevin, initialize to 1.00E-2\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tdouble defaultTimeStep = getTimeStep().getDefaultTimeStep();\n\t\tsb.append(\"dt: \" + defaultTimeStep);\t\t// TODO: initialize to 1.00E-8\n\t\tsb.append(\"\\n\");\n\t\t\n\t\tif(!(getOutputTimeSpec() instanceof UniformOutputTimeSpec)) {\n\t\t\tthrow new RuntimeException(\"Output interval must be uniform\");\n\t\t}\n\t\tUniformOutputTimeSpec uots = (UniformOutputTimeSpec)getOutputTimeSpec();\n\t\tdouble outputInterval = uots.getOutputTimeStep();\n\t\tsb.append(\"dt_data: \" + outputInterval);\t// TODO: initialize to 1.00E-4\n\t\tsb.append(\"\\n\");\n\t}", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }", "private static void prepareAdvData() {\n ADV_DATA.add(createDateTimePacket());\n ADV_DATA.add(createDeviceIdPacket());\n ADV_DATA.add(createDeviceSettingPacket());\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutTimePacket(i));\n }\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutDatePacket(i));\n }\n }", "private static void createFile() throws Exception {\n\t\t // retrieve an instance of H4File\n\t\t FileFormat fileFormat = FileFormat.getFileFormat(FileFormat.FILE_TYPE_HDF4);\n\n\t\t if (fileFormat == null) {\n\t\t System.err.println(\"Cannot find HDF4 FileFormat.\");\n\t\t return;\n\t\t }\n\n\t\t // create a new file with a given file name.\n\t\t @SuppressWarnings(\"deprecation\")\n\t\t\t\tH4File testFile = (H4File) fileFormat.create(fname);\n\n\t\t if (testFile == null) {\n\t\t System.err.println(\"Failed to create file:\" + fname);\n\t\t return;\n\t\t }\n\n\t\t // open the file and retrieve the root group\n\t\t testFile.open();\n\t\t Group root = (Group) ((javax.swing.tree.DefaultMutableTreeNode) testFile.getRootNode()).getUserObject();\n\n\t\t // set the data values\n\t\t int[] dataIn = new int[20 * 10];\n\t\t for (int i = 0; i < 20; i++) {\n\t\t for (int j = 0; j < 10; j++) {\n\t\t dataIn[i * 10 + j] = 1000 + i * 100 + j;\n\t\t }\n\t\t }\n\n\t\t // create 2D 32-bit (4 bytes) integer dataset of 20 by 10\n\t\t Datatype dtype = testFile.createDatatype(Datatype.CLASS_INTEGER, 4, Datatype.NATIVE, Datatype.NATIVE);\n\t\t @SuppressWarnings(\"unused\")\n\t\t\t\tDataset dataset = testFile\n\t\t .createScalarDS(\"2D 32-bit integer 20x10\", root, dtype, dims2D, null, null, 0, dataIn);\n\n\t\t // close file resource\n\t\t //testFile.close();\n\t\t }", "DataTable createDataTable();", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "protected String getDataFormat() {\n return this.dataFormat;\n }", "public static Block createBlock(String edfRecord, String data) throws UnsupportedEncodingException {\r\n\t\tString[] values = edfRecord.split(\",\");\r\n\t\tTemporalProperties temporalProperties = new TemporalProperties(reformatDatetime(values[7]));\r\n\t\tSpatialProperties spatialProperties = new SpatialProperties(parseFloat(values[24]), parseFloat(values[25]));\r\n\t\tFeatureSet features = new FeatureSet();\r\n\t\tfeatures.put(new Feature(\"platform_id\", values[0]));\t\t\r\n\t\tfeatures.put(new Feature(\"date\", values[1]));\r\n\t\tfeatures.put(new Feature(\"time\", values[2]));\r\n\t\tfeatures.put(new Feature(\"datetime\", values[3]));\r\n\t\tfeatures.put(new Feature(\"frac_days_since_jan1\", parseFloat(values[4])));\r\n\t\tfeatures.put(new Feature(\"frac_hrs_since_jan1\", parseFloat(values[5])));\r\n\t\tfeatures.put(new Feature(\"julian_days\", parseFloat(values[6])));\r\n\t\tfeatures.put(new Feature(\"epoch_time\", reformatDatetime(values[7])));\r\n\t\tfeatures.put(new Feature(\"alarm_status\", parseFloat(values[8])));\r\n\t\tfeatures.put(new Feature(\"inst_status\", parseFloat(values[9])));\r\n\t\tfeatures.put(new Feature(\"cavity_pressure\", parseFloat(values[10])));\r\n\t\tfeatures.put(new Feature(\"cavity_temp\", parseFloat(values[11])));\r\n\t\tfeatures.put(new Feature(\"das_temp\", parseFloat(values[12])));\r\n\t\tfeatures.put(new Feature(\"etalon_temp\", parseFloat(values[13])));\r\n\t\tfeatures.put(new Feature(\"warm_box_temp\", parseFloat(values[14])));\r\n\t\tfeatures.put(new Feature(\"species\", parseFloat(values[15])));\r\n\t\tfeatures.put(new Feature(\"mvp_position\", parseFloat(values[16])));\r\n\t\tfeatures.put(new Feature(\"outlet_valve\", parseFloat(values[17])));\r\n\t\tfeatures.put(new Feature(\"solenoid_valves\", parseFloat(values[18])));\r\n\t\tfeatures.put(new Feature(\"co2\", parseFloat(values[19])));\r\n\t\tfeatures.put(new Feature(\"co2_dry\", parseFloat(values[20])));\r\n\t\tfeatures.put(new Feature(\"ch4\", parseFloat(values[21])));\r\n\t\tfeatures.put(new Feature(\"ch4_dry\", parseFloat(values[22])));\r\n\t\tfeatures.put(new Feature(\"h2o\", parseFloat(values[23])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lat\", parseFloat(values[24])));\r\n\t\tfeatures.put(new Feature(\"gps_abs_lon\", parseFloat(values[25])));\r\n\t\tfeatures.put(new Feature(\"gps_fit\", parseFloat(values[26])));\r\n\t\tfeatures.put(new Feature(\"gps_time\", parseFloat(values[27])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lon\", parseFloat(values[28])));\r\n\t\tfeatures.put(new Feature(\"ws_wind_lat\", parseFloat(values[29])));\r\n\t\tfeatures.put(new Feature(\"ws_cos_heading\", parseFloat(values[30])));\r\n\t\tfeatures.put(new Feature(\"ws_sin_heading\", parseFloat(values[31])));\r\n\t\tfeatures.put(new Feature(\"wind_n\", parseFloat(values[32])));\r\n\t\tfeatures.put(new Feature(\"wind_e\", parseFloat(values[33])));\r\n\t\tfeatures.put(new Feature(\"wind_dir_sdev\", parseFloat(values[34])));\r\n\t\tfeatures.put(new Feature(\"ws_rotation\", parseFloat(values[35])));\r\n\t\tfeatures.put(new Feature(\"car_speed\", parseFloat(values[36])));\r\n\t\tfeatures.put(new Feature(\"postal_code\", values[37]));\r\n\t\tfeatures.put(new Feature(\"locality\", values[38]));\r\n\t\tfeatures.put(new Feature(\"s2_30_int\", parseLong(values[39])));\r\n\t\t\t\r\n\t\tMetadata metadata = new Metadata();\r\n\t\tmetadata.setName(GeoHash.encode(parseFloat(values[24]), parseFloat(values[25]), 7));\r\n\t\tmetadata.setTemporalProperties(temporalProperties);\r\n\t\tmetadata.setsIndex(new SearchIndex(\"24\",\"25\",\"7\"));\r\n\t\tmetadata.setSpatialProperties(spatialProperties);\r\n\t\tmetadata.setSpatialHint(new SpatialHint(\"gps_abs_lat\", \"gps_abs_lon\"));\r\n\t\tmetadata.setAttributes(features);\r\n\t\t\r\n\t\treturn new Block(\"airview\", metadata, data.getBytes(\"UTF-8\"));\r\n\t}", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "protected NumericData<?> createData(long numPixels) {\n long bufferLength = numPixels * header.getChannels().size();\n\n switch (header.getChannels().get(0).getFormat()) {\n case UINT:\n return new CustomBinaryData<>(Data.UINT32, dataFactory.newIntData(bufferLength));\n case HALF:\n return new CustomBinaryData<>(Data.SFLOAT16, dataFactory.newShortData(bufferLength));\n case FLOAT:\n return dataFactory.newFloatData(bufferLength);\n default:\n // Should not happen unless this code hasn't been updated after a new ChannelFormat is added\n throw new UnsupportedOperationException(\n \"Unrecognized channel pixel format: \" + header.getChannels().get(0).getFormat());\n }\n }", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\treturn Arrays.asList(new Object[][] { \n\t\t\t{ \"\" }, \n\t\t { \"14 12\" },\n\t { \"1A3*123\" },\n\t { \"1412abc\\n\" }, \n\t\t});\n\t}", "private TObj make_node_data(ArrayList arlist, String nodename, int seq, String prefix)\n\t{\n\t\t// String p_value = \"([a-zA-Z0-9_:]+)[\\\\s]*=[\\\\s]*\\\"?([a-zA-Z0-9_\\\\-:\\\\\\\\.��-��]+)\";\n\t\t// 2013.12.17\n\t\tString p_value1 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*[\\\"]([^\\\"]+)\";\n\t\tString p_value2 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*[']([^']+)\";\n\t\tString p_value3 = \"([a-zA-Z0-9-_:]+)[\\\\s]*=[\\\\s]*([a-zA-Z0-9-_:\\\\.]+)\";\n\t\tPattern p1 = Pattern.compile(p_value1);\n\t\tPattern p2 = Pattern.compile(p_value2);\n\t\tPattern p3 = Pattern.compile(p_value3);\n\t\tTObj nddata = new TObj(_NODE_TYPE, make_path(prefix , nodename), nodename, 100, new TLocation( seq+1, seq+1,0,0,\"\") );\n\t\tfor ( int i = 0; i < arlist.size(); i ++) {\n\t\t\tnode_line_data nd = (node_line_data )arlist.get(i);\n\t\t\tString nodeData = nd.line_data;\n\t\t\tMatcher m1 = p1.matcher(nodeData);\n\t\t\tboolean findflag =false;\n\t\t\tlocallog.trace(\"--\", nodeData);\n\t\t\twhile(m1.find()){\n\t\t\t\tlocallog.debug(\"KEY :: \" , m1.group(1) + \" VALUE :: \" + m1.group(2));\n\t\t\t\tif(brokenflag && m1.group(2).endsWith(\"=\")) {\n\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t}\n\t\t\t\tString tmp = m1.group(2).trim();\n\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m1.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\tnddata.add(nodekey);\n\t\t\t\tfindflag = true;\n\t\t\t}\n\t\t\t// 2014.04.11 \"\", ''\n//\t\t\t 2014.01.10 aaa='ssss\n\t\t\tMatcher m2 = p2.matcher(nodeData);\n\t\t\twhile(m2.find()){\n\t\t\t\tlocallog.debug(\"KEY :: \" , m2.group(1) + \" VALUE :: \" + m2.group(2));\n\t\t\t\tif(brokenflag && m2.group(2).endsWith(\"=\")) {\n\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t}\n\t\t\t\tString tmp = m2.group(2).trim();\n\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m2.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\tnddata.add(nodekey);\n\t\t\t\tfindflag = true;\n\t\t\t}\n\t\t\tif(findflag == false) {\n\t\t\t\t// 2014.01.23 aaa= ssss\n\t\t\t\tMatcher m3 = p3.matcher(nodeData);\n\n\t\t\t\twhile(m3.find()){\n\t\t\t\t\tlocallog.debug(\"KEY :: \" , m3.group(1) + \" VALUE :: \" + m3.group(2));\n\t\t\t\t\tif(brokenflag && m2.group(2).endsWith(\"=\")) {\n\t\t\t\t\t\treturn make_node_data_fix(arlist, nodename, seq, prefix);\n\t\t\t\t\t}\n\t\t\t\t\tString tmp = m3.group(2).trim();\n\t\t\t\t\tif (tmp.endsWith(\"\\\"\"))\n\t\t\t\t\t\ttmp = tmp.substring(0, tmp.length() - 1);\n\n\t\t\t\t\tTDpd nodekey = new TDpd(1, tmp, m3.group(1), 100, new TLocation(nd.seq+1));\n\t\t\t\t\tnddata.add(nodekey);\n\t\t\t\t\tfindflag = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn nddata;\n\t}", "private LineData generateLineData() {\n\n LineData d = new LineData();\n LineDataSet set = new LineDataSet(ReportingRates, \" ARVs (Reporting Rates)\");\n set.setColors(Color.parseColor(\"#90ed7d\"));\n set.setLineWidth(2.5f);\n set.setCircleColor(Color.parseColor(\"#90ed7d\"));\n set.setCircleRadius(2f);\n set.setFillColor(Color.parseColor(\"#90ed7d\"));\n set.setMode(LineDataSet.Mode.CUBIC_BEZIER);\n set.setDrawValues(true);\n\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n d.addDataSet(set);\n\n return d;\n }", "private void creatEmptyChineseData() {\n chineseInserts.put(ZcSettingConstants.CHINESE, \"上架费\");\r\n chineseInserts.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseInserts.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseFVLs.put(ZcSettingConstants.CHINESE, \"成交费\");\r\n chineseFVLs.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseFVLs.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chinesePayPalFees.put(ZcSettingConstants.CHINESE, \"paypal费\");\r\n chinesePayPalFees.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chinesePayPalFees.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseProfits.put(ZcSettingConstants.CHINESE, \"利润\");\r\n chineseProfits.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseProfits.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n\r\n chineseProfitRates.put(ZcSettingConstants.CHINESE, \"利润率\");\r\n chineseProfitRates.put(ZcSettingConstants.US, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.FR, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.CA, new BigDecimal(0));\r\n chineseProfitRates.put(ZcSettingConstants.AU, new BigDecimal(0));\r\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "private DatasetJsonConversion() {}", "private <T extends BaseRecord> T createRecord(\n String data, Stat stat, Class<T> clazz) throws IOException {\n T record = newRecord(data, clazz, false);\n record.setDateCreated(stat.getCtime());\n record.setDateModified(stat.getMtime());\n return record;\n }", "public static interface DataTypeWithFormat {\r\n \r\n /**\r\n * Format\r\n * \r\n * @return\r\n */\r\n public abstract String getFormat();\r\n \r\n /**\r\n * Locale\r\n * \r\n * @return\r\n */\r\n public abstract Locale getLocale();\r\n }", "public static void initializeData() {\n\t\tList list;\n\t\tint i;\n\t\tList data = new ArrayList<>();\n\t\tString filename = \".\\\\data\\\\ticketType.dat\";\n\t\t\n\t\tMovieType movieType;\n\t\tCinemaClass cinemaClass;\n\t\tMovieGoerGroup[] movieGoerGroupL;\n\t\tString[] dayOfWeekL;\n\t\tString[] isPublicHolidayL;\n\t\tdouble price;\n\t\tTicketType ticketType, temp;\n\t\t\n\t\t//Type 1\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 5;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 2\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 7;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 3\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.ADULT};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 9;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 4: Sat, Sun \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"false\"};\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 5: public holiday \n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.REG;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\"}; //public holiday\n\t\tprice = 13;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 6: Atmos cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.ATMOS;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 14;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//Type 7: Platinum cinemaType\n\t\tmovieType = MovieType.REG;\n\t\tcinemaClass = CinemaClass.PLATINUM;\n\t\tmovieGoerGroupL = new MovieGoerGroup[] {MovieGoerGroup.STUDENT, MovieGoerGroup.ADULT, MovieGoerGroup.SENIOR};\n\t\tdayOfWeekL = new String[] {\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"};\n\t\tisPublicHolidayL = new String[] {\"true\", \"false\"}; \n\t\tprice = 28;\n\t\tticketType = new TicketType(movieType,cinemaClass,movieGoerGroupL,dayOfWeekL,isPublicHolidayL,price);\n\t\tdata.add(ticketType);\n\t\t\n\t\t//3D movie: price + 2\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType._3D, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\t//Blockbuster movie: price + 1\n\t\tfor(i = 0 ; i < 7 ; i++) {\n\t\t\ttemp = (TicketType) data.get(i);\n\t\t\tticketType = new TicketType(MovieType.BLOCKBUSTER, temp.getCinemaClass(), temp.getMovieGoerGroupL(),\n\t\t\t\t\t\t\t\t\t\ttemp.getDayOfWeekL(), temp.getIsPublicHolidayL(), temp.getPrice() + 2);\n\t\t\tdata.add(ticketType);\n\t\t}\n\t\t\n\t\tSerializeDB.writeSerializedObject(filename, data); //Write data\n\t}", "public void generateOutputData() {\n\t\tArrayList<String> inputDataArray = new ArrayList<String>();\n\t\tif (removeDuplicates) {\n\t\t\tinputDataArray = removeDuplicates();\n\t\t} else {\n\t\t\tinputDataArray = inputDataValues;\n\t\t}\n\t\t\n\t\toutputDataValues.clear();\n\t\tString outputDataValue = \"\";\n\t\tif (inputDataArray.isEmpty()) {\n\t\t\toutputDataValue = getOutputDataValue(\"\");\n\t\t\toutputDataValues.add(outputDataValue);\n\t\t} else {\n\t\t\tfor (String inputDataValue: inputDataArray) {\n\t\t\t\toutputDataValue = getOutputDataValue(inputDataValue);\n\t\t\t\toutputDataValues.add(outputDataValue);\n\t\t\t}\n\t\t}\n\t}", "public String convert2json(DataSetInfo ds){\n String out = \"{\\n\";\n out += \"\\\"lags\\\" : \\\"\" + ds.getLags() + \"\\\",\\n\";\n out += \"\\\"derivative\\\" : \\\"\" + ds.getDerivative() + \"\\\",\\n\";\n out += \"\\\"classSize\\\" : \\\"\" + ds.getClassSize() + \"\\\"\\n\";\n out += \"}\\n\";\n return out;\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "private void prepareListData() {\n listDataHeader = new ArrayList<String>();\n listDataChild = new HashMap<String, List<String>>();\n\n // Adding child data\n listDataHeader.add(\"Cloths\");\n listDataHeader.add(\"Tools\");\n listDataHeader.add(\"Booking\");\n\n // Adding child data\n List<String> Cloths = new ArrayList<String>();\n Cloths.add(\"Silk Shit\");\n Cloths.add(\"Godfather Coat\");\n Cloths.add(\"Cow Boy jacket\");\n Cloths.add(\"Polo T-shirt\");\n Cloths.add(\"Ugly Jeans\");\n Cloths.add(\"Dark Jeans\");\n Cloths.add(\"Underwears\");\n\n List<String> Tools = new ArrayList<String>();\n Tools.add(\"Tester\");\n Tools.add(\"Betteries\");\n Tools.add(\"Charger\");\n Tools.add(\"UPS plugs\");\n Tools.add(\"Universal cheager\");\n Tools.add(\"Torch\");\n\n List<String> Booking = new ArrayList<String>();\n Booking.add(\"Hotel Booking\");\n Booking.add(\"Hotel Reservation\");\n Booking.add(\"Air Ticket\");\n Booking.add(\"Air Ticket Reservation\");\n Booking.add(\"Train Ticket\");\n Booking.add(\"Train Ticket Reservation\");\n\n listDataChild.put(listDataHeader.get(0), Cloths); // Header, Child data\n listDataChild.put(listDataHeader.get(1), Tools);\n listDataChild.put(listDataHeader.get(2), Booking);\n }", "public void createPackageContents()\n\t{\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create data types\n\t\tfeatureNotFoundExceptionEDataType = createEDataType(FEATURE_NOT_FOUND_EXCEPTION);\n\t}", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "private static void initialize_sensorTypeToWrapperDataFormat() {\n\t\tsensorTypeToWrapperDataFormat.put(\"weather\", \"XML/JSON\");\n\t\tsensorTypeToWrapperDataFormat.put(\"traffic\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"roadactivity\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowfall\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"snowdepth\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"webcam\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"radar\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"satellite\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"sealevel\", \"Text\");\n\t\tsensorTypeToWrapperDataFormat.put(\"cosm\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"bikehire\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"railwaystation\", \"XML\");\n\t\tsensorTypeToWrapperDataFormat.put(\"ADSBHub\", \"Stream\");\n\t}", "public Data(\n final String name,\n final String code,\n final int numericCode,\n final String symbol,\n final String fractionSymbol,\n final int fractionsPerUnit,\n final Rounding rounding,\n final String formatString,\n final Currency triangulationCurrency\n ) {\n this.name = (name);\n this.code = (code);\n this.numeric = (numericCode);\n this.symbol = (symbol);\n this.fractionSymbol = (fractionSymbol);\n this.fractionsPerUnit = (fractionsPerUnit);\n this.rounding = (rounding);\n this.triangulated = (triangulationCurrency);\n this.formatString = (formatString);\n }", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }", "private BarData generateDataBar() {\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n ArrayList<BarEntry> entries = new ArrayList<>();\n ArrayList<TransactionBeans> transactionBeans = transactionDB.getTransactionRecordsMonth(month1,year);\n for (int i = 0; i < transactionBeans.size(); i++) {\n TransactionBeans beans = transactionBeans.get(i);\n entries.add(new BarEntry(i, (int) (Double.parseDouble(beans.getIncome()))));\n }\n\n BarDataSet d = new BarDataSet(entries, \"\");\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n cd.setDrawValues(false);\n return cd;\n }", "private void parseData() {\n\t\t\r\n\t}", "private BarData generateDataBar() {\n\n ArrayList<BarEntry> entries = new ArrayList<>();\n\n for (int i = 0; i < 12; i++) {\n entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30));\n }\n\n BarDataSet d = new BarDataSet(entries, \"New DataSet 1\");\n // 设置相邻的柱状图之间的距离\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n // 设置高亮的透明度\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n return cd;\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public FlexData(Type type) {\n entryCollectionList = null;\n entryCollectionMap = null;\n this.type = type;\t\t\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}", "@Override\n protected void loadAndFormatData()\n {\n // Create an object to hold the log data\n final Object[][] tableLogList = new Object[perfLog.getPerfLogData().size()][NUM_COLUMNS];\n int row = 0;\n\n // Create the output format string for the time stamps so that\n // the decimals align with the text centered\n String timeFormat = \"%\"\n + (String.valueOf((int) (plotPrefs.isShowDataGaps(false)\n ? perfLog.getMaximumTimeStamp()\n : perfLog.getAdjustedDataTimeSpan())).length()\n + TIME_PRECISION + 1)\n + TIME_FORMAT.substring(1);\n\n // Collect the log data and format it for the table cells\n for (PerfLog log : perfLog.getPerfLogData())\n {\n // Get the performance ID object associated with the log ID\n PerformanceID pid = perfIDs.getPerfID(log.getPerfID());\n\n tableLogList[row][INDEX] = row;\n tableLogList[row][ID] = perfIDs.convertIDToHexString(log.isEntryEvent()\n ? pid.getPerfID()\n : pid.getPerfID()\n | EXIT_MASK);\n tableLogList[row][NAME] = pid.getPerfIDName(false);\n tableLogList[row][TIME] = String.format(timeFormat, log.getTimeStamp());\n tableLogList[row][ENT_EX] = log.isEntryEvent();\n tableLogList[row][SEQ_ERR] = log.isSequenceError();\n tableLogList[row][OVER] = log.getOverrun() == 0.0\n ? \"\"\n : String.format(TIME_FORMAT,\n log.getOverrun());\n tableLogList[row][NOTES] = log.getNotes();\n\n row++;\n }\n\n // Place the log data into the table model along with the\n // column names, set up the editors and renderers for the table\n // cells, set up the table grid lines, and calculate the\n // minimum width required to display the table information\n int totalWidth = setUpdatableCharacteristics(tableLogList,\n new String[] {\"Index\",\n \"ID\",\n \"Name\",\n \"<html><center>Time Stamp<br>(sec)\",\n \"<html><center>Entry/<br>Exit\",\n \"<html><center>Seq<br>Err\",\n \"<html><center>Overrun<br>(sec)\",\n \"<html><center>Notes\"},\n true,\n true,\n true);\n\n // Fit the dialog to the table and set the minimum size based\n // on the column widths\n setDialogMinimumSize(totalWidth);\n\n // Set the dialog's title so that it includes the log file\n // name(s)\n setTitle(\"Log Data: \"\n + perfLog.getLogFileName(perfMain.getPreference(PERF_LOG_FILE)));\n }", "private TileDataOLD createData(int sx, int sy) {\n\t\tTileDataOLD td = new TileDataOLD(sx, sy);\n\t\tdata[sx][sy] = td;\n\t\treturn td;\n\t}", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "public String writeDetails ()\n {\n String memberData = \"\";\n memberData = memberData.concat(fname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(sname);\n memberData = memberData.concat(\",\");\n memberData = memberData.concat(Float.toString(mark));\n return memberData;\n }", "DataHRecordData() {}", "@Test\n public void RegistroC380Test() throws ParseException {\n RegistroC380 reg = new RegistroC380();\n LineModel line = reg.createModel();\n SimpleDateFormat sdf = new SimpleDateFormat(\"ddMMyyyy\");\n Date data = sdf.parse(\"17121986\");\n \n //02\n line.setFieldValue(RegistroC380.COD_MOD, \"02\");\n //03\n line.setFieldValue(RegistroC380.DT_DOC_INI, data);\n //04\n line.setFieldValue(RegistroC380.DT_DOC_FIN, data);\n //05\n line.setFieldValue(RegistroC380.NUM_DOC_INI, 123456L);\n //06\n line.setFieldValue(RegistroC380.NUM_DOC_FIN, 123456L);\n //07\n line.setFieldValue(RegistroC380.VL_DOC, 78911.11);\n //08\n line.setFieldValue(RegistroC380.VL_DOC_CANC, 78911.11);\n\n StringBuffer sb = line.getRepresentation();\n System.out.print(sb);\n// String expected = \"|C380|02|17121986|17121986|123456|123456|78911,11|78911,11|\";\n// assertEquals (expected, sb.toString());\n }", "public FlexData() {\n entryCollectionList = null;\n entryCollectionMap = null;\n type = Type.UNKNOWN;\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}", "private void fillData()\n {\n\n }", "private List<Integer> createData() {\r\n\t\tList<Integer> data = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\t\t\tdata.add(i);\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public Data createData(Address addr, DataType dataType) throws CodeUnitInsertionException;", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private XYDataset createDataset(String WellID, String lang) {\n final TimeSeries eur = createEURTimeSeries(WellID, lang);\n final TimeSeriesCollection dataset = new TimeSeriesCollection();\n dataset.addSeries(eur);\n return dataset;\n }", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "CSV createCSV();", "public static HashMap<String, ArrayList<String>> parseCreateString(String createTableString, boolean metadata) throws FileNotFoundException {\n\n /*\n CREATE TABLE CUSTOMERS( ID INT PRIMARY KEY,NAME TEXT NOT NULL,AGE INT);\n */\n\n System.out.println(\"STUB: Calling your method to create a table\");\n System.out.println(\"Parsing the string:\\\"\" + createTableString + \"\\\"\");\n createTableString = createTableString.toLowerCase();\n String tablename = createTableString.substring(0, createTableString.indexOf(\"(\")).split(\" \")[2].trim();\n String tablenamefile = tablename + \".tbl\";\n Table newTable = new Table(tablenamefile, Constant.leafNodeType);\n HashMap<String, ArrayList<String>> columndata = new HashMap<>();\n TreeMap<Integer, String> columnOrdinalPosition = new TreeMap<>();\n int record_length = 0;\n Matcher m = Pattern.compile(\"\\\\((.*?)\\\\)\").matcher(createTableString);\n while (m.find()) {\n String cols = m.group(1);\n String singlecol[] = cols.split(\",\");\n ArrayList<String> colname;\n int ordinalPosition = 1;\n for (int i = singlecol.length - 1; i >= 0; i--) {\n\n\n colname = new ArrayList<>();\n singlecol[i] = singlecol[i].trim();\n String colNameType[] = singlecol[i].split(\" \");\n colNameType = removeWhiteSpacesInArray(colNameType);\n //columntype\n colname.add(0, colNameType[1]);\n\n columnTypeHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), colNameType[1]);\n record_length = record_length + RecordFormat.getRecordFormat(colNameType[1]);\n colname.add(1, \"yes\");\n //ordinaltype\n colname.add(2, String.valueOf(++ordinalPosition));\n columnOrdinalPosition.put(ordinalPosition, tablename.concat(\".\").concat(colNameType[0]));\n if (colNameType.length == 4) {\n if (colNameType[2].equals(\"primary\")) {\n colname.set(1, \"pri\");\n colname.set(2, String.valueOf(1));\n columnOrdinalPosition.remove(ordinalPosition);\n columnOrdinalPosition.put(1, tablename.concat(\".\").concat(colNameType[0]));\n --ordinalPosition;\n } else\n colname.set(1, \"no\");\n columnNotNullHelper.setProperties(tablename.concat(\".\").concat(colNameType[0]), \"NOT NULL\");\n }\n columndata.put(colNameType[0], colname);\n }\n\n }\n\n Iterator it = columnOrdinalPosition.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pair = (Map.Entry) it.next();\n columnOrdinalHelper.setProperties(String.valueOf(pair.getValue()), String.valueOf(pair.getKey()));\n }\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.recordLength), String.valueOf(record_length));\n recordLengthHelper.setProperties(tablename.concat(\".\").concat(Constant.numberOfColumns), String.valueOf(columnOrdinalPosition.size()));\n if (!metadata) {\n updateTablesTable(tablename, record_length);\n updateColumnsTable(tablename, columndata);\n }\n return columndata;\n\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}", "public static OrglRoot makeData(PrimDataArray values, Arrangement arrangement) {\n\treturn ActualOrglRoot.make((Loaf.make(values, arrangement)), arrangement.region());\n/*\nudanax-top.st:9861:OrglRoot class methodsFor: 'creation'!\n{OrglRoot} makeData: values {PrimDataArray} with: arrangement {Arrangement}\n\t\"Make an Orgl from a bunch of Data. The data is \n\tguaranteed to be of a reasonable size.\"\n\t^ActualOrglRoot \n\t\tmake: (Loaf make: values with: arrangement)\n\t\twith: arrangement region!\n*/\n}", "private String formataData(long dt){\n\t\tDate d = new Date(dt);\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn df.format(d);\n\t}" ]
[ "0.64715475", "0.621145", "0.6207169", "0.61936045", "0.6192673", "0.60371125", "0.60288334", "0.5982797", "0.5961654", "0.59481806", "0.5932019", "0.5882141", "0.583328", "0.57890123", "0.5698654", "0.5664991", "0.5633819", "0.56320995", "0.5603717", "0.5566707", "0.55621743", "0.5542187", "0.5541148", "0.5514672", "0.5498589", "0.5491321", "0.5484731", "0.54844433", "0.5483371", "0.5480306", "0.54608506", "0.5458624", "0.544092", "0.5422222", "0.54094034", "0.5390174", "0.5386215", "0.53794336", "0.5374967", "0.5370126", "0.53566265", "0.5355945", "0.535439", "0.5353084", "0.53512424", "0.5349226", "0.5335868", "0.5330459", "0.53083235", "0.53026736", "0.5301041", "0.5300207", "0.52974504", "0.5293711", "0.52785933", "0.52725387", "0.52611786", "0.5241964", "0.52339303", "0.52326006", "0.52244914", "0.5222726", "0.52179", "0.5214791", "0.52034646", "0.5198144", "0.51960593", "0.5189392", "0.5184109", "0.51798254", "0.5179563", "0.5172253", "0.5168845", "0.51527333", "0.51424533", "0.51374185", "0.51297265", "0.5127225", "0.5108377", "0.5096507", "0.508941", "0.508091", "0.5078648", "0.50735193", "0.507214", "0.506846", "0.5068433", "0.50671846", "0.5064038", "0.506368", "0.5059228", "0.50560325", "0.50533104", "0.5051318", "0.50361204", "0.50267583", "0.5025995", "0.50258845", "0.50209343", "0.5017329", "0.5014713" ]
0.0
-1
/ Set daily values
private void setDailyValues(){ //set updateTime SimpleDateFormat t = new SimpleDateFormat("h:mm:ss a"); updatedTime = "Last updated: " + t.format(new Date(System.currentTimeMillis())); //set maxTemp and minTemp maxTemp = Integer.toString(weather.getMaxTemp()); minTemp = Integer.toString(weather.getMinTemp()); //set sunriseTime and sunsetTime SimpleDateFormat sr = new SimpleDateFormat("h:mm a"); sunriseTime = sr.format(new Date(weather.getSunrise()*1000)); SimpleDateFormat ss = new SimpleDateFormat("h:mm a"); sunsetTime = sr.format(new Date(weather.getSunset()*1000)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDate(Date data);", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "void setDate(int index, Date value) throws SQLException;", "void setDate(int index, Date value, Calendar cal)\n throws SQLException;", "private void setValue(long date, double value) {\n\t\tLong longDate = new Long(date);\n\t\tDouble v = (Double) values.get(longDate);\n\t\tif (v != null) // if already present, add to it\n\t\t\tv = new Double(v.doubleValue() + value);\n\t\telse\n\t\t\tv = new Double(value);\n\t\tvalues.put(longDate,v);\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void set(final int index, final long startDate, final long endDate, final double value, final WorkCalendar assignmentCalendar) {\n\t\tif (startDate == 0)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tif (!cumulative) {\n\t\t\tlong duration = 0;\n\t\t\tdouble v = value;\n\t\t\tif (assignmentCalendar != null) { // can be null in case of value at date where start and end are the same\n\t\t\t\tduration = assignmentCalendar.compare(endDate,startDate,false); // need to divide by duration to get value\n\t\t\t\tif (duration != 0) // avoid divide by zero\n\t\t\t\t\tv /= (((double)duration) / CalendarOption.getInstance().getMillisPerDay());\n//\t\t\t\telse if (origin == 0) // for bars\n//\t\t\t\t\treturn;\n\t\t\t}\n\t\t\t\t\n\t\t\tsetValue(startDate,v);\n\t\t\tsetValue(endDate,-v);\n\t\t\t\n\t\t} else {\n//System.out.println(\"start \" + new Date(startDate) + \" end \" + new Date(endDate) + \" value\" + value );//+ \" v/s \" + v/s + \" cal \" + DurationFormat.format(duration));\t\t\n\t\t\tsetValue(startDate,0);\n\t\t\tsetValue(endDate,value);\n\t\t}\n\t}", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "protected void runEachDay() {\n \n }", "@Override\n public void cycleSlipDataSet(String nameSat, AbsoluteDate date, double value, Frequency freq) {\n super.cycleSlipDataSet(nameSat, date, value, freq);\n }", "public void setDay(Date day) {\n this.day = day;\n }", "public void setFromDates() {\n\t\tif (loDate == null || loDate.getValue() == null || hiDate == null || hiDate.getValue() == null)\n\t\t\treturn;\n\n\t\tsetSliderMaxDays();\n\t\tsetSliderMinDays();\n\t\t\n\t\tint days = CalendarUtil.getDaysBetween(loDate.getValue(), hiDate.getValue());\n\t\tif (days < slider.getSlider().getMinValue())\n\t\t\tdays = slider.getSlider().getMinValue();\n\t\tslider.setValue(days);\n\t}", "public void updateDay(int value)\n {\n this.currentCalendar.add(Calendar.DAY_OF_MONTH, value);\n }", "@Override\n\tprotected void doSetValue(Set<LocalDate> value) {\n\t\tthis.value.clear();\n\t\tthis.value.addAll(value);\t\n\t}", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "public void setDay(int day) {\r\n this.day = day;\r\n }", "public void setDay(int day)\n {\n this.day = day;\n }", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "public static final Function<Date,Date> setDay(final int value) {\r\n return new Set(Calendar.DATE, value);\r\n }", "public void setDayDate(Number value) {\n setAttributeInternal(DAYDATE, value);\n }", "public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }", "public void setDate(DateInfo dates) {\r\n\t\tsuper.setDate(dates);\r\n\t\t//maturityDate = new DateInfo(dates);\r\n\t}", "public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }", "public DSSValue call(DSSValue... args){\r\n //args[0].add(args[1]);\r\n Date date = new Date(args[0].toLong());\r\n int days = args[1].toInt();\r\n Calendar cal = Calendar.getInstance();\r\n cal.setTime(date);\r\n cal.add(Calendar.DAY_OF_MONTH, days);\r\n \r\n Date newDate = cal.getTime();\r\n //System.out.println(\"addDays \"+newDate.toString());\r\n return DSSValueFactory.getDSSValue(newDate);\r\n }", "public Builder setDayValue(int value) {\n \n day_ = value;\n onChanged();\n return this;\n }", "public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public Date set(final int index, final Date value) {\n final long date = value.getTime();\n final Date previous = get(index);\n switch (index) {\n case 0: date1 = date; break;\n case 1: date2 = date; break;\n }\n modCount++;\n return previous;\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public void SetDate(Date date);", "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDays();\n }", "public void setValue(java.util.Date value) {\n this.value = value;\n }", "void setDayOrNight(int day) {\n setStat(day, dayOrNight);\n }", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public void setDataV(LocalDate dataV) \r\n\t\t{\r\n\t\t\tDataV = dataV;\r\n\t\t}", "protected void onSetDailyTimerSetting(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "private void buildDaily(SummaryProvider.Summary summary, int log_id, String suffix,\n long midnight, int dataIndex, Bundle bundle) {\n ArrayList<DetailProvider.Detail> details = detailDB.getDetails(context, log_id);\n double[] raw_xdata = new double[details.size() + 2];\n double[] raw_ydata = new double[details.size() + 2];\n\n // set the first x and y values\n int xstart = bundle.getInt(\"xorigin\" + suffix, 0);\n raw_xdata[0] = xstart - 3600;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[0] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[0] = details.get(0).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[0] = details.get(0).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[0] = UtilsMisc.getValueinRange(details.get(0).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n // set the y values from the detail records\n for (int i = 1; i < details.size() + 1; i++) {\n DetailProvider.Detail detail = details.get(i-1);\n raw_xdata[i] = UtilsDate.getTimeSeconds((detail.getTimestamp() * 1000) - midnight);\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[i] = detail.getWatts_generated(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[i] = detail.getWatts_now();break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[i] = detail.getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[i] = detail.getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[i] = UtilsMisc.getValueinRange(detail.getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n }\n\n // set the last y value\n int xend = UtilsDate.getTimeSeconds(details.get(details.size()-1).getTimestamp()* 1000 - midnight);\n raw_xdata[details.size()+1] = xend + 1;\n switch (dataIndex) {\n case Constants.DATA_WATTHOURS :\n raw_ydata[details.size() + 1] = summary.getGenerated_watts(); break;\n case Constants.DATA_WATTSNOW:\n raw_ydata[details.size() + 1] = 0.0f; break;\n case Constants.DATA_TEMPERATURE:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getTemperature() - 273; break;\n case Constants.DATA_WIND:\n raw_ydata[details.size() + 1] = details.get(details.size()-1).getWind_speed(); break;\n case Constants.DATA_CLOUDS:\n raw_ydata[details.size() + 1] =\n UtilsMisc.getValueinRange(details.get(details.size()-1).getClouds(), 1.0f, 100.0f); break;\n default :\n break;\n }\n\n LinearInterpolation lp = new LinearInterpolation(raw_xdata, raw_ydata);\n int time = xstart;\n ArrayList<Integer> xList = new ArrayList<>();\n ArrayList<Float> yList = new ArrayList<>();\n while (time < xend) {\n float yval = (float) lp.interpolate(time);\n xList.add(time);\n yList.add(yval);\n time += Integer.parseInt(sharedPreferences.getString(Constants.MONITORING_FREQUENCY, \"5\")) * 60; // seconds\n }\n\n int[] xdata = Ints.toArray(xList);\n float[] ydata = Floats.toArray(yList);\n bundle.putIntArray(\"xdata\" + suffix, xdata);\n bundle.putFloatArray(\"ydata\" + suffix, ydata);\n\n switch (dataIndex) {\n case Constants.DATA_TEMPERATURE:\n case Constants.DATA_WIND:\n case Constants.DATA_CLOUDS:\n smooth_plot(bundle, true, suffix);\n }\n }", "public void setDay(int day) {\n if(day < 1 || day > 31) {\n this.day = 1;\n } else {\n this.day = day;\n }\n\n if(month == 2 && this.day > 29) {\n this.day = 29;\n } else if((month==4 || month==6 || month==8 || month==11) && this.day > 30) {\n this.day = 30;\n }\n }", "public void setMday(int value) {\n this.mday = value;\n }", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\n\t\tthis.day = day;\n\t}", "public void setDays(int n) {\n this.days = n;\n this.total = this.days * this.price;\n }", "public void setValue(SSDate value) {\n box.setValue(value);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateBdateValue();\n }", "public void setEffDate(Date value) {\r\n this.effDate = value;\r\n }", "public void updateDate(Date date);", "public void setVALUE_DATE(Date VALUE_DATE) {\r\n this.VALUE_DATE = VALUE_DATE;\r\n }", "public void setVALUE_DATE(Date VALUE_DATE) {\r\n this.VALUE_DATE = VALUE_DATE;\r\n }", "private void setDataLineChart() {\n\t\t\n\t\tchartLine.setTitle(\"Evolution du Solde\");\n\t\tchartLine.getData().clear();\n\t\t\n\t\tXYChart.Series series = new XYChart.Series();\n\t\tseries.getData().clear();\n\t\tseries.setName(\"Evolution du solde\");\n\t\t\n\t\tdouble solde = bal.getAmount();\n\t\tint currentYear = Calendar.getInstance().get(Calendar.YEAR);\n\t\tint currentMonth = Calendar.getInstance().get(Calendar.MONTH);\n\t\tint currentDay = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\t\n\t\t// Create a calendar object and set year and month\n\t\tCalendar mycal = new GregorianCalendar(currentYear, currentMonth,\n\t\t\t\tcurrentDay);\n\t\t\n\t\t// Get the number of days in that month\n\t\tint daysInMonth = mycal.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t\n\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\tsolde -= transaction.getAmount();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < currentDay; ++i) {\n\t\t\tif (!bal.getTransactions().isEmpty()) {\n\t\t\t\tfor (IOTransactionLogic transaction : bal.getTransactions()\n\t\t\t\t\t\t.get(currentYear)[currentMonth]) {\n\t\t\t\t\tjava.sql.Date dat = transaction.getDate();\n\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(dat);\n\t\t\t\t\tif (cal.get(Calendar.DAY_OF_MONTH) - 1 == i) {\n\t\t\t\t\t\tsolde += transaction.getAmount();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tseries.getData()\n\t\t\t\t\t.add(new XYChart.Data(String.valueOf(i + 1), solde));\n\t\t}\n\t\t\n\t\tchartLine.getData().addAll(series);\n\t\tchartLine.setLegendVisible(false);\n\t}", "public void adjustSettlementDatesAndPopulateMap() {\r\n\t\tfor (TradeEntity ee : entityArrayList) {\r\n\t\t\tif (!isWorkingDay(ee.getCurrency(), ee.getSettlementDate().getDayOfWeek())) {\r\n\t\t\t\tee.setEffectiveSettlementDate(getNextWorkingDay(ee));\r\n\t\t\t} else {\r\n\t\t\t\tee.setEffectiveSettlementDate(ee.getSettlementDate());\r\n\t\t\t}\r\n\t\t\tpopulateDateEntityMap(ee);\r\n\t\t}\r\n\r\n\t}", "public synchronized void updateTransdailyData() {\n Instant startTime = Instant.now();\n log.debug(\"start updateTransdailyData startTime:{}\", startTime.toEpochMilli());\n try {\n\n // query all group statistical info\n List<StatisticalGroupTransInfo> groupStatisticalList = groupService\n .queryLatestStatisticalTrans();\n\n // traverse group list\n traverseNetList(groupStatisticalList);\n\n } catch (Exception ex) {\n log.error(\"fail updateTransdailyData\", ex);\n }\n log.debug(\"end updateTransdailyData useTime:{}\",\n Duration.between(startTime, Instant.now()).toMillis());\n }", "private void fillUserDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), u.t_user_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN http.t_user u ON u.user_name = username WHERE NOT l.intranet GROUP BY date(datetime), u.t_user_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_user_daily (occurences, volume, calc_day, t_user_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_user_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_user_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No user daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "public void setDate(int date){\n this.date = date;\n }", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "private void normalizeDate(ContentValues values) {\n if (values.containsKey(ChoreContract.EventsEntry.COLUMN_TIMESTAMP)) {\n long dateValue = values.getAsLong(ChoreContract.EventsEntry.COLUMN_TIMESTAMP);\n values.put(ChoreContract.EventsEntry.COLUMN_TIMESTAMP, ChoreContract.normalizeDate(dateValue));\n }\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n trigger.getEndtime().set(Calendar.YEAR, year);\n trigger.getEndtime().set(Calendar.MONTH, monthOfYear);\n trigger.getEndtime().set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateEndDate();\n }", "protected void setDateTime(LocalDateTime date) {\n updateDateTime(date);\n //isWeekly = true;\n }", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }", "public void setDay(final int day) {\n\t\tthis.day = day;\n\t}", "public Setter reqSetDailyTimerSetting(byte[] edt) {\n\t\t\treqSetProperty(EPC_DAILY_TIMER_SETTING, edt);\n\t\t\treturn this;\n\t\t}", "public void setDate(long value) {\n this.date = value;\n }", "public void setDay(int day) {\r\n if ((day >= 1) && (day <= 31)) {\r\n this.day = day; //Validate day if true set else throws an exception\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid Day!\");\r\n }\r\n\r\n }", "private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}", "public void setDay(byte value) {\n this.day = value;\n }", "public void updateDaily() throws IOException {\n String lResponse = null;\n try{\n lResponse = new HTTPRequest().execute( \"http://192.168.1.100:8080\" ).get();\n\n }catch(Exception e){}\n\n String input;\n// input = in.readLine();\n if(lResponse != null) {\n dailyValue = Double.parseDouble(lResponse);\n }\n }", "public void updateData() {\n\t\tcal = eventsData.getCalendar();\n\t\tfirstDayOfWeek = eventsData.getFirstDayOfWeek();\n\t\tcurrentDayOfMonth = eventsData.getDayNumber();\n\t\tnumberOfDays = eventsData.getNumberOfDays();\n\t\tnumberOfWeeks = eventsData.getNumberOfWeeks();\n\t\tyear = eventsData.getYearNumber();\n\t\tmonth = eventsData.getMonthNumber();\n\t\tday = eventsData.getDayNumber();\n\t\tweek = eventsData.getDayOfWeek();\n\t}", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "public abstract void setDate(Timestamp uneDate);", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "void updateDays(WheelView year, WheelView month, WheelView day) {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.YEAR,\n\t\t\t\tcalendar.get(Calendar.YEAR) + year.getCurrentItem());\n\t\tcalendar.set(Calendar.MONTH, month.getCurrentItem());\n\n\t\tint maxDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\tday.setViewAdapter(new DateNumericAdapter(getContext(), 1, maxDays,\n\t\t\t\tcureantDate));\n\t\tint curDay = Math.min(maxDays, day.getCurrentItem() + 1);\n\t\tday.setCurrentItem(curDay - 1, true);\n\t}", "public void setDay(int day)\r\n {\n \tif (!(day <= daysInMonth(month) || (day < 1)))\r\n\t\t{\r\n \t\tthrow new IllegalArgumentException(\"Bad day: \" + day);\r\n\t\t}\r\n this.day = day;\r\n }", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "protected synchronized void setDateValue(String tag, Date date) {\n if (actualProperties != null) {\n long dateTime = date.getTime();\n actualProperties.put(tag, Long.toString(dateTime));\n }\n }", "private void setDayCountDown() {\n dayCountDown = getMaxHunger();\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n tanggal.set(Calendar.YEAR, year);\n tanggal.set(Calendar.MONTH, monthOfYear);\n tanggal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n trigger.getStarttime().set(Calendar.YEAR, year);\n trigger.getStarttime().set(Calendar.MONTH, monthOfYear);\n trigger.getStarttime().set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateStartDate();\n }", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "@FXML\n private void updateDates() {\n WeekFields weekFields = WeekFields.of(Locale.ENGLISH);\n weekNumber = date.get(weekFields.weekOfWeekBasedYear());\n weekNr.setText(\"\" + weekNumber);\n\n /* Update drawn events when changing week */\n drawEventsForWeek();\n \n\t\t/* Set current month/year */\n month_Year.setText(date.getMonth() + \" \" + date.getYear());\n\t\t\n\t\t/* Set date of weekday_labels */\n for (int i = 0; i < weekday_labels.size(); i++) {\n int date_value = date.with(DayOfWeek.MONDAY).plusDays(i).getDayOfMonth();\n weekday_labels.get(i).setText(\"\" + date_value + \".\");\n }\n }", "public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }", "public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "private void setDataCurrentMonth() {\r\n\t\tguiControl.sendToServer(new ClientMessage(ClientMessageType.INCOME_REPORT, reportDate));\r\n\t\tMap<Integer, VisitorReport> parkReportMap = (Map<Integer, VisitorReport>) guiControl.getServerMsg()\r\n\t\t\t\t.getMessage();\r\n\t\tXYChart.Series<String, Integer> price = new XYChart.Series<>();\r\n\t\tint total_price = 0;\r\n\t\tint i = 1;\r\n\t\tfor (VisitorReport vr : parkReportMap.values()) {\r\n\t\t\tprice.getData().add(new XYChart.Data<>(String.valueOf(i), new Integer(vr.getPrice())));\r\n\t\t\ti++;\r\n\t\t\ttotal_price = total_price + vr.getPrice();\r\n\t\t}\r\n\t\tlineChar.getData().add(price);\r\n\t\tString totalP = String.valueOf(total_price);\r\n\t\ttotal.setText(totalP + \" \" + \"NIS\");\r\n\r\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\r\n\tpublic void setDataSeries(List<Double> factValues) {\n\r\n\t}", "private void incrementeDate() {\n dateSimulation++;\n }", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public void setInputDateValue(String value){\n WebElement hiredateField = driver.findElement(hiredateLocator); \n \n setValue(hiredateField, value);\n \n }", "private void setDaysSinceLastExposure(int days){\n new ExposureNotificationSharedPreferences(getApplicationContext()).setDaysSinceLastExposure(days);\n }", "public void setDay(int day) throws InvalidDateException {\r\n\t\tif (day <= 31 & day >= 1) {\r\n\t\t\tthis.day = day;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic day for the date (between 1 and 31) !\");\r\n\t\t}\r\n\t}" ]
[ "0.6340356", "0.6281544", "0.6196706", "0.617023", "0.60420406", "0.60281754", "0.59933627", "0.59933627", "0.59933627", "0.59933627", "0.59933627", "0.59860206", "0.59798723", "0.59611696", "0.5954493", "0.5948862", "0.58950436", "0.58901227", "0.58778554", "0.5875368", "0.587374", "0.5864916", "0.58425415", "0.58371586", "0.58139855", "0.5775851", "0.5751755", "0.57417995", "0.57360643", "0.5726405", "0.5724233", "0.5721893", "0.571958", "0.5715055", "0.569631", "0.5673525", "0.56722903", "0.5664581", "0.5652383", "0.5636877", "0.5634759", "0.56333697", "0.56291175", "0.5625267", "0.56018513", "0.5598234", "0.5598234", "0.55961233", "0.5589898", "0.5582254", "0.55711764", "0.5557146", "0.5534288", "0.5534288", "0.553368", "0.55325866", "0.5528273", "0.55271673", "0.55123824", "0.5511682", "0.55095947", "0.5493434", "0.5493207", "0.549212", "0.5491245", "0.54789674", "0.54646856", "0.54612374", "0.54592127", "0.5456834", "0.5451575", "0.54515344", "0.5445238", "0.5445175", "0.543995", "0.543671", "0.543671", "0.543671", "0.54301465", "0.5429706", "0.54250073", "0.54214984", "0.5417608", "0.54059726", "0.540232", "0.5401736", "0.54015976", "0.5401035", "0.5401015", "0.53999543", "0.53929394", "0.53924936", "0.53896767", "0.53869665", "0.5385451", "0.53842276", "0.53833175", "0.53797853", "0.5379263", "0.53762984" ]
0.7526623
0
Create a bit signature using d classification steps.
@Override public void createLSH(Set<FeatureVector<? extends Number>> randomVectors) { this.localitySensitiveHashed = new ComparableBitSetSignatureVector( this.getId(), randomVectors.size()); // Do d number of classifications int i = 0; for (FeatureVector<? extends Number> weightVector : randomVectors) { this.getLocalitySensitiveHashed().setValue(i, new Bit(classify(weightVector))); i++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildClassSignature() {\n\t\tStringBuffer modifiers = new StringBuffer(classDoc.modifiers() + \" \");\n\t\tif (isEnum) {\n\t\t\tmodifiers.append(\"enum \");\n\t\t\tint index;\n\t\t\tif ((index = modifiers.indexOf(\"abstract\")) >= 0) {\n\t\t\t\tmodifiers.delete(index, index + (new String(\"abstract\")).length());\n\t\t\t\tmodifiers = new StringBuffer(Util.replaceText(modifiers.toString(), \" \", \" \"));\n\t\t\t}\n\t\t\tif ((index = modifiers.indexOf(\"final\")) >= 0) {\n\t\t\t\tmodifiers.delete(index, index + (new String(\"final\")).length());\n\t\t\t\tmodifiers = new StringBuffer(Util.replaceText(modifiers.toString(), \" \", \" \"));\n\t\t\t}\n\t\t} else if (!isInterface) {\n\t\t\tmodifiers.append(\"class \");\n\t\t}\n\t\twriter.writeClassSignature(modifiers.toString());\n\t}", "public abstract byte[] getSignature();", "protected SignResult makeSignature(InputStream inputStream,\n String artifactId, String classifier, String version,\n String extension) {\n\n String targetExt = extension + \".asc\";\n String targetName = artifactId + '-' + version;\n\n if (classifier != null && !classifier.isEmpty()) {\n targetName += \"-\" + classifier;\n }\n\n targetName += \".\" + targetExt;\n\n Path target = Paths.get(project.getBuild().getDirectory(), targetName);\n\n pgpSigner.sign(inputStream, target);\n\n return new SignResult(classifier, targetExt, target.toFile());\n }", "SignatureIdentification createSignatureIdentification();", "String componentSignature();", "public native boolean signatureImage() throws MagickException;", "BigInteger getDigitalSignature();", "protected void createGetSignatureMethod() {\n MethodVisitor cv = m_cw.visitMethod(\n ACC_PUBLIC,\n GET_SIGNATURE_METHOD_NAME,\n GET_SIGNATURE_METHOD_SIGNATURE,\n null,\n null\n );\n cv.visitFieldInsn(\n GETSTATIC, m_joinPointClassName,\n SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE\n );\n cv.visitInsn(ARETURN);\n cv.visitMaxs(0, 0);\n }", "byte[] getSignatureImage();", "ISModifySignature createISModifySignature();", "public abstract String getSignature();", "public BinID3(String[] label, boolean[][] input, String[] output,\r\n\t\t\tString[] classes) {\r\n\t\tthis.input = input;\r\n\t\tthis.output = output;\r\n\t\tthis.label = label;\r\n\t\tthis.classes = classes;\r\n\t}", "private Signature(int[] value) {\n\t\tthis.value = value;\n\t\tthis.hash = Arrays.hashCode(value);\n\t}", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}", "int getSignature ();", "protected void createSignature(final MethodVisitor cv) {\n cv.visitFieldInsn(GETSTATIC, m_joinPointClassName, TARGET_CLASS_FIELD_NAME_IN_JP, CLASS_CLASS_SIGNATURE);\n cv.visitLdcInsn(Integer.valueOf(m_joinPointHash));\n\n cv.visitMethodInsn(\n INVOKESTATIC,\n SIGNATURE_FACTORY_CLASS,\n NEW_FIELD_SIGNATURE_METHOD_NAME,\n NEW_FIELD_SIGNATURE_METHOD_SIGNATURE,\n false\n );\n cv.visitFieldInsn(PUTSTATIC, m_joinPointClassName, SIGNATURE_FIELD_NAME, FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE);\n }", "public void buildSignature() throws IOException\n {\n PDFTemplateBuilder builder = new PDVisibleSigBuilder();\n PDFTemplateCreator creator = new PDFTemplateCreator(builder);\n setVisibleSignature(creator.buildPDF(getPdVisibleSignature()));\n }", "object_detection.protos.Calibration.ClassIdSigmoidCalibrations getClassIdSigmoidCalibrations();", "@Override\r\n\tpublic byte[] countersign(final byte[] sign,\r\n final String algorithm,\r\n final CounterSignTarget targetType,\r\n final Object[] targets,\r\n final PrivateKey key,\r\n final java.security.cert.Certificate[] certChain,\r\n final Properties extraParams) throws AOException {\r\n throw new UnsupportedOperationException(\"No es posible realizar contrafirmas de ficheros ODF\"); //$NON-NLS-1$\r\n }", "public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:53.096 -0500\", hash_original_method = \"AD601F3532730C1588B10C0B2F4700C0\", hash_generated_method = \"7CF3579665197E3D9616E88D35150E2D\")\n \npublic ASN1BitString() {\n super(TAG_BITSTRING);\n }", "public String getSignature() {\n\tString sig;\n\n\tsig = dims.substring(0, dim_count);\n\tif (num_comp == 1) {\n\t if (comp[0].compareTo(\"byte\") == 0)\n\t\tsig += \"B\";\n\t else if (comp[0].compareTo(\"char\") == 0)\n\t\tsig += \"C\";\n\t else if (comp[0].compareTo(\"double\") == 0)\n\t\tsig += \"D\";\n\t else if (comp[0].compareTo(\"float\") == 0)\n\t\tsig += \"F\";\n\t else if (comp[0].compareTo(\"int\") == 0)\n\t\tsig += \"I\";\n\t else if (comp[0].compareTo(\"long\") == 0)\n\t\tsig += \"J\";\n\t else if (comp[0].compareTo(\"short\") == 0)\n\t\tsig += \"S\";\n\t else if (comp[0].compareTo(\"boolean\") == 0)\n\t\tsig += \"Z\";\n\t else if (comp[0].compareTo(\"void\") == 0)\n\t\tsig += \"V\";\n\t else {\n\t\t// Component is an object but might have implied context\n\t\tsig += \"L\" + fullName + \";\";\n\t }\n\t}\n\telse\n\t sig += \"L\" + fullName + \";\";\n\treturn(sig);\n }", "String getSignature();", "String getSignature();", "String getSignature();", "boolean hasClassIdSigmoidCalibrations();", "com.google.protobuf.ByteString getSignature();", "private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }", "int getSignatureType();", "BlsPoint sign(BigInteger privateKey, byte[] data);", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString()\r\n {\r\n System.out.println(\"createEncodingsLabelBitString\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p, ensemble);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 10, c: 11, d: 001, e: 000 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "@Override\n public String createSignature(final BreinConfig config, final Map<String, Object> requestData) {\n final long unixTimestamp = BreinMapUtil.getNestedValue(requestData, UNIX_TIMESTAMP_FIELD);\n\n final String message = String.format(\"%d\", unixTimestamp);\n return BreinUtil.generateSignature(message, config.getSecret());\n }", "public byte[] getSignature() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSignature():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSignature():byte[]\");\n }", "public static void main(String[] args) {\n\n String pfx = \"E:\\\\PDFFileTest\\\\1.pfx\";\n String tmpPath = \"E:\\\\PDFFileTest\\\\1562570792439.pdf\";\n String expPath = \"E:\\\\PDFFileTest\\\\11.11\\\\h83.pdf\";\n String gif = \"E:\\\\PDFFileTest\\\\1.gif\";\n String password = \"111111\";\n try {\n sign(pfx, tmpPath, expPath, gif, password);\n System.out.println(\"success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override public byte isBitShape(Type t) { throw AA.unimpl(); }", "Signature getSignature();", "@Override\n public BitSet createStructureFingerprint(final String strSmiles, boolean sanitize) {\n return createFingerprint(strSmiles, settingsStructure, sanitize);\n }", "public GpgSignature(@NonNull byte[] signature) {\n\t\tthis.signature = signature;\n\t}", "private void createHammed()\n\t{\n\t\tint j=0;\n\t\tboolean skip = false;\n\t\t\n\t\t\n\t\tfor (int i=0;i<binaryCode.length; i++)\n\t\t{\t\n\t\t\t//checks to see if the bit is a parity bit\n\t\t\tfor (int k=0; k<PARITY.length;k++)\n\t\t\t{\n\t\t\t\t//if it is a parity bit, it skips\n\t\t\t\tif (i==PARITY[k])\n\t\t\t\t{\n\t\t\t\t\tskip=true;\n\t\t\t\t} \n\n\t\t\t}\n\t\t\t\n\t\t\tif (skip)\n\t\t\t{\n\t\t\t\tskip=false;\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//if it is not a parity bit, it places the value into the bit position\n\t\t\t\tbinaryCode[i]=binaryNumber.getBitValue(j);\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t}\n\t}", "String getUniqueSignature();", "@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public DiscreteTag(){}", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "private static final byte[] pkgsave_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 96,\n\t\t\t\t96, 96, -96, -96, -96, -33, -33, -33, 96, 96, 96, 96, 96, 96,\n\t\t\t\t-128, -128, -128, -112, -112, -112, -64, -64, -64, -112, -112,\n\t\t\t\t-112, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101, 32,\n\t\t\t\t119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0,\n\t\t\t\t9, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 4, 83, 48, 73, 32, 103,\n\t\t\t\t-67, 9, -128, 64, 51, -17, -43, 22, -116, -38, 72, 98, -101,\n\t\t\t\t38, 12, 37, 120, 1, 66, 60, -60, 110, -8, -83, 45, 106, 126,\n\t\t\t\t123, -35, 18, -127, -126, -31, 64, 36, 26, 10, -109, 13, 80,\n\t\t\t\t104, 104, 58, -111, -98, -64, 114, 88, 60, 28, 67, -128, -87,\n\t\t\t\t-13, -119, 2, 20, -66, 96, 48, 70, -14, 69, -104, -51, -33,\n\t\t\t\t113, -94, -116, 40, -89, -57, 108, 55, 20, -61, 62, 127, 35, 0,\n\t\t\t\t59 };\n\t\treturn data;\n\t}", "public void visitSignatureCapture( DevCat devCat ) {}", "void xsetSignatureImage(org.apache.xmlbeans.XmlBase64Binary signatureImage);", "public\nSIGRecord(Name name, int dclass, long ttl, int covered, int alg, int origttl,\n\t Date expire, Date timeSigned, int footprint, Name signer,\n\t byte [] signature)\n{\n\tthis(name, dclass, ttl);\n\tType.check(covered);\n\tcheckU8(\"alg\", alg);\n\tcheckU8(\"labels\", labels);\n\tTTL.check(origttl);\n\tcheckU16(\"footprint\", footprint);\n\tthis.covered = covered;\n\tthis.alg = alg;\n\tthis.labels = name.labels();\n\tthis.origttl = origttl;\n\tthis.expire = expire;\n\tthis.timeSigned = timeSigned;\n\tthis.footprint = footprint;\n\tif (!signer.isAbsolute())\n\t\tthrow new RelativeNameException(signer);\n\tthis.signer = signer;\n\tthis.signature = signature;\n}", "public Signer(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>(java.lang.String):void\");\n }", "public interface SignCallUseCase {\n\n String signature(String method, Map<String, String> params, String secret);\n\n}", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString2()\r\n {\r\n System.out.println(\"testCreateEncodingsLabelBitString2\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p2, ensemble2);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 00, c: 0 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "int getClassIdSigmoidParametersMapCount();", "public int getSignature() {\r\n\t\tif (this.signature == 0) {\r\n\t\t\tthis.signature = Math.abs(lhs);\r\n\t\t\tfor (Map.Entry<Integer, DPState> e : dpStates.entrySet())\r\n\t\t\t\tthis.signature = this.signature * 31 + e.getValue().getSignature(false);\r\n\t\t}\r\n \t\treturn this.signature;\r\n \t}", "public interface SignedDataImageParam {\n\n boolean isSignedData();\n\n void setSignedData(boolean signedData);\n\n}", "public static String wordToSignature(String word){\n\t\tStringBuffer signature = new StringBuffer();\n\t\tfor(int i = 0; i < word.length(); i++){\n\t\t\tchar index = word.charAt(i);\n\t\t\tif(index == 'a' || index == 'b' || index == 'c'||index == 'A' || index == 'B' || index == 'C'){\n\t\t\t\tsignature.append(2);\n\t\t\t} else if(index == 'd'||index=='e'||index =='f'||index == 'D' || index == 'E' || index == 'F'){\n\t\t\t\tsignature.append(3);\n\t\t\t} else if (index =='g'|| index == 'h'|| index =='i'||index == 'G' || index == 'H' || index == 'I'){\n\t\t\t\tsignature.append(4);\n\t\t\t} else if(index =='j'|| index == 'k'|| index == 'l'||index == 'J' || index == 'K' || index == 'L'){\n\t\t\t\tsignature.append(5);\n\t\t\t} else if(index=='m'|| index =='n'|| index =='o'||index == 'M' || index == 'N' || index == 'O'){\n\t\t\t\tsignature.append(6);\n\t\t\t} else if(index == 'p'|| index == 'q' || index =='r'|| index =='s'||index == 'P' || index == 'Q' || index == 'R'||index =='S'){\n\t\t\t\tsignature.append(7);\n\t\t\t} else if(index == 't'|| index == 'u' || index == 'v'||index == 'T' || index == 'U' || index == 'V'){\n\t\t\t\tsignature.append(8);\n\t\t\t} else if(index =='w' || index == 'x' || index == 'y' || index == 'z'||index == 'W' || index == 'X' || index == 'Y'|| index =='Z'){\n\t\t\t\tsignature.append(9);\n\t\t\t}\n\t\t}return signature.toString();\n\t}", "@Test\n public void testRandomization() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Set<String> signatures = new HashSet<String>();\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n signer.initSign(priv);\n signer.update(messageBytes);\n byte[] signature = signer.sign();\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"Failed to generat signatures:\" + ex);\n return;\n }\n }", "private SignatureWriter(AnnotatedGrammar grammar, Writer out) {\n/* 50 */ this.classSet = new Hashtable();\n/* */ \n/* */ \n/* 53 */ this.indent = 0; this.out = out; this.classes = grammar.getClasses();\n/* */ for (int i = 0; i < this.classes.length; i++)\n/* 55 */ this.classSet.put(this.classes[i].getTypeAsDefined(), this.classes[i]); }", "byte[] generateSignature(byte[] message, PrivateKey privateKey, SecureRandom secureRandom) throws IOException;", "boolean hasSignature();", "boolean hasSignature();", "public interface ECCSignature {\n BigInteger getR();\n\n BigInteger getS();\n\n ECCParameters getECCParameters();\n\n BigInteger getN();\n\n ECCPoint getG();\n\n ECCPoint getQu();\n}", "Result_RecoverableSignatureNoneZ sign_invoice(byte[] invoice_preimage);", "private void generateSignature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t/*\r\n\t\t * IMPORTANT: in all other APDUs the previous APDU type gets overwritten\r\n\t\t * in process() function; this is not the case here because the\r\n\t\t * information is needed when processing to verify the security\r\n\t\t * condition for non repudiation signature\r\n\t\t * \r\n\t\t * the previous APDU type has to be overwritten in every possible exit\r\n\t\t * path out of this function; therefore we check the security conditions\r\n\t\t * of the non repudiation signature as early as possible, but we have to\r\n\t\t * overwrite the previous APDU type in the 2 possible exceptions before\r\n\t\t */\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\t// check P1 and P2\t\t\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x9E || buffer[ISO7816.OFFSET_P2] != (byte) 0x9A) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t}\r\n\t\t// generate signature without prepare signature results:\r\n\t\t// \"conditions of use not satisfied\"\r\n\t\tif (getSignatureType() == NO_SIGNATURE) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);\r\n\t\t}\r\n\t\t/*\r\n\t\t * verify authentication information throw\r\n\t\t * \"security condition not satisfied\" if something is wrong\r\n\t\t */\r\n\t\t// check if previous APDU did a cardholder PIN verification\r\n\t\tif ((getSignatureType() == NON_REPUDIATION) && (getPreviousApduType() != VERIFY_CARDHOLDER_PIN)) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t}\r\n\t\t// overwrite previous ADPU type as soon as possible\r\n\t\tsetPreviousApduType(OTHER);\r\n\r\n\t\t// it is impossible to generate basic signatures with this command\r\n\t\tif (getSignatureType() == BASIC)\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// check if cardholder PIN was entered correctly\r\n\t\tif (!cardholderPin.isValidated())\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\tswitch (signatureAlgorithm) {\r\n\t\tcase ALG_MD5_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Md5Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\tcase ALG_SHA1_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Sha1Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\tcase ALG_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\t// if T=1, store signature in sigBuffer so that it can latter be sent\r\n\t\tif (APDU.getProtocol() == APDU.PROTOCOL_T1) {\r\n\t\t\tJCSystem.beginTransaction();\r\n\t\t\t//@ open valid(); // todo (???)\r\n\t\t\tUtil.arrayCopy(buffer, (short) 0, responseBuffer, (short) 0, (short) 128);\r\n\t\t\t////@ close valid(); // auto\r\n\t\t\tJCSystem.commitTransaction();\r\n\t\t\t\r\n\t\t\t// in case T=0 protocol, send the signature immediately in a\r\n\t\t\t// response APDU\r\n\t\t} else {\r\n\t\t\t// send first 128 bytes (= 1024 bit) of buffer\r\n\t\t\tapdu.setOutgoingAndSend((short) 0, (short) 128);\r\n\t\t}\r\n\t}", "private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }", "public Signer(java.lang.String r1, java.security.IdentityScope r2) throws java.security.KeyManagementException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>(java.lang.String, java.security.IdentityScope):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>(java.lang.String, java.security.IdentityScope):void\");\n }", "public Code(ArrayList<Boolean> bits)\n\t{\n\t\tthis.bits = bits;\n\t}", "public int getAnalysisBits();", "public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}", "public static void main(String[] args) {\n\t\tStringBuffer tokenBuffer=new StringBuffer(UUID.randomUUID().toString());\r\n\t\ttokenBuffer.append(\"ghigueras\").append(\"INDRA\").append(new Date());\r\n\t\tString tokenCreate = DigestUtils.md5DigestAsHex(tokenBuffer.toString().getBytes());\r\n\t\tSystem.out.println(\"tokenCreate :: IGSRS#\" + tokenCreate);\r\n\r\n\t}", "public Individual(int integerSize, int integerCount, boolean signedInt)\r\n\t{\r\n\t\tintSize = integerSize;\r\n\t\tintCount = integerCount;\r\n\t\tbinary = new boolean[integerSize * integerCount];\r\n\t\tthis.signedInt = signedInt;\r\n\t}", "byte[] createJCasCoverClass(TypeImpl type) {\n this.type = type;\n typeJavaDescriptor = type.getJavaDescriptor();\n typeJavaClassName = type.getName().replace('.', '/');\n cn = new ClassNode(ASM5); // java 8\n cn.version = JAVA_CLASS_VERSION;\n cn.access = ACC_PUBLIC + ACC_SUPER;\n cn.name = typeJavaClassName; \n cn.superName = type.getSuperType().getName().replace('.', '/');\n// cn.interfaces = typeImpl.getInterfaceNamesArray(); // TODO\n \n // add the \"_typeImpl\" field - this has a ref to the TypeImpl for this class\n cn.fields.add(new FieldNode(ACC_PUBLIC + ACC_FINAL + ACC_STATIC,\n \"_typeImpl\", \"Lorg/apache/uima/type_system/impl/TypeImpl;\", null, null));\n \n // add field declares, and getters and setters, and special getters/setters for array things \n type.getMergedStaticFeaturesIntroducedByThisType().stream()\n .forEach(this::addFeatureFieldGetSet);\n \n addStaticInitAndConstructors();\n \n createSwitchGettersAndSetters();\n \n \n ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);\n cn.accept(cw);\n return cw.toByteArray();\n }", "BIG createBIG();", "public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }", "private static int createSelectedKey(int bBit) {\r\n\t\tRandom random = new Random();\r\n\t\tint maxKey = (int) Math.pow(2, bBit);\r\n\t\tint randomKey = random.nextInt((maxKey - 1) + 1) + 1;\t\r\n\t\treturn randomKey;\r\n\t}", "List<Pair<String, byte[]>> generateSample(Object descriptor);", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "protected UniqueID(BinaryInput input, BinarySerializator serializator) throws IOException {\n this.mostSigBits = serializator.readLong(input);\n this.leastSigBits = serializator.readLong(input);\n }", "private static byte[] KDF(PGPDigestCalculator digCalc, ECPoint s, int keyLen, byte[] param)\n throws IOException\n {\n byte[] ZB = s.getAffineXCoord().getEncoded();\n\n OutputStream dOut = digCalc.getOutputStream();\n\n dOut.write(0x00);\n dOut.write(0x00);\n dOut.write(0x00);\n dOut.write(0x01);\n dOut.write(ZB);\n dOut.write(param);\n\n byte[] digest = digCalc.getDigest();\n\n byte[] key = new byte[keyLen];\n\n System.arraycopy(digest, 0, key, 0, key.length);\n\n return key;\n }", "public static int fastClassify(Model M, int[][] x){\n //dont call other classes\n\t //look out for terms that you can take out\n//\t int d =0;\n//\t double joint;\n//\t double t= 1.0;\n//\t\tdouble high;\n//\t\t//Double tot1;\n//\t\tdouble higher;\n//\t\tdouble tot =1.0;\n//\t\tdouble tot1= 1.0;\n//\t int digit =0;\n//\t for(int i=0; i<x.length; i++){\n//\t\tfor(int j=0;j<x[i].length; j++){\n//\n//\t\t//probability at 0;\n//\t\t\ttot*=conditionalProbabilityXijgD(M,i,j,x[i][j],0); \n//\t\t \n//\t\t high = M.getPD(0)*tot;\n//\t\t\twhile(d<10){\n//\t\t\t\ttot1*=conditionalProbabilityXijgD(M,i,j,x[i][j],d); \n//\t\t\t\thigher = M.getPD(d)*tot1;\n//\t\t\t\t\n//\t\t\t\tif(high <higher){\n//\t\t\t\t\thigh = higher;\n//\t\t\t\t\tdigit =d;\n//\t\t\t\t}\n//\t\t\t\td++;\n//\t\t\t}\n//\t\t \n//\t }\n//\t \n//\t }\n\t double high=0.0;\n\t int digit =0;\n\t int i=0;\n\t while(i<10){\n\t\t double tot =jointProbabilityXD(M,x,i);\n\t \t\n\t if(high<tot){\n\t\t high=tot;\n\t \t\tdigit =i; \n\t \t}\n\t\t i++;\n\t \t//System.out.println(0.988809344056389 < 0.011080326918292818);\n\t \n\t\t// System.out.println(tot);\n\t }\n\t return digit;\n\t \n \n}", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "public String toBinaryCode() {\r\n\t\treturn \"CodeDefinition(\" + mActivityName + \".class\"+ \")\";\r\n\t}", "private static byte[] createDEROctet(int usage)\n\t{\n\t\treturn new KeyUsage(usage).getDEREncoded();\n\t}", "public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }", "private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }", "private static void generate(long count, int bits) {\n final SecureRandom rnd = new SecureRandom();\n System.out.println(\"Generating \" + GENERATED_KEY_COUNT + \" keys\");\n getConsole().println(\"Generating \" + GENERATED_KEY_COUNT + \" keys\");\n\n String filename = \"keycheck.\" + (bits * 2) + \"b.csv\";\n try (BufferedWriter writer = new BufferedWriter(new FileWriter(filename))) {\n lastStatusMessageTime = System.nanoTime();\n long numOfKeys = GENERATED_KEY_COUNT,\n startFileTime = System.nanoTime(),\n startKeyTime = System.currentTimeMillis();\n for (int actualKey = 0; actualKey < count; actualKey++) {\n BigInteger p = new BigInteger(bits, 40, rnd);\n BigInteger q = new BigInteger(bits, 40, rnd);\n BigInteger modulus = p.multiply(q);\n BigInteger phi = modulus.subtract(p).subtract(q).add(BigInteger.ONE);\n if (!phi.gcd(EXPONENT_FOR_GENERATED).equals(BigInteger.ONE)) {\n actualKey--;\n continue;\n }\n int time = (int) (System.currentTimeMillis() - startKeyTime);\n\n Params params = new Params();\n params.setP(p);\n params.setQ(q);\n params.setExponent(EXPONENT_FOR_GENERATED);\n params.setModulus(modulus);\n params.setTime(time);\n\n params.writeToFile(writer, actualKey + 1);\n\n showProgress(actualKey + 1, numOfKeys, startFileTime);\n startKeyTime = System.currentTimeMillis();\n }\n } catch (FileNotFoundException ex) {\n System.err.println(\"File '\" + filename + \"' not found\");\n } catch (IOException ex) {\n System.err.println(\"Error on write to file '\" + filename + \"'\");\n } finally {\n consoleDoneLine();\n }\n }", "com.google.protobuf.ByteString getArtifactSignature();", "public static void main(String[] args) {\n\t\t//create test data\n\t\tint n = ~23423;\n\t\tSystem.out.println(\"N: \"+toFullBinaryString(n));\n\t\tint m = 5;\n\t\tSystem.out.println(\"M: \"+Integer.toBinaryString(m));\n\t\tint i = 1;\n\t\tint j = 3;\t\n\t\tSystem.out.println(\"i:\"+i+\" j:\"+j);\n\t\tint c = insertBits(n, m, i, j);\n\t\t//output results\n\t\tSystem.out.println(\"Result: \"+toFullBinaryString(c));\n\t}", "public static String getClassSignature(Class cl) {\n StringBuffer sbuf = new StringBuffer();\n while (cl.isArray()) {\n sbuf.append('[');\n cl = cl.getComponentType();\n }\n if (cl.isPrimitive()) {\n if (cl == Integer.TYPE) {\n sbuf.append('I');\n } else if (cl == Byte.TYPE) {\n sbuf.append('B');\n } else if (cl == Long.TYPE) {\n sbuf.append('J');\n } else if (cl == Float.TYPE) {\n sbuf.append('F');\n } else if (cl == Double.TYPE) {\n sbuf.append('D');\n } else if (cl == Short.TYPE) {\n sbuf.append('S');\n } else if (cl == Character.TYPE) {\n sbuf.append('C');\n } else if (cl == Boolean.TYPE) {\n sbuf.append('Z');\n } else if (cl == Void.TYPE) {\n sbuf.append('V');\n } else {\n throw new InternalError();\n }\n } else {\n sbuf.append('L' + cl.getName().replace('.', '/') + ';');\n }\n return sbuf.toString();\n }", "private void generatePkcs1Md5Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 16) || (byteRead != 16))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t// use the correct key\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\t\t\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t\r\n\t\t////@ open valid(); // todo\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\t\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\t////@ open [1/2]valid();\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_MD5_PKCS1, lc);\r\n\t\t// copy the MD5 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t//@ open transient_byte_array(messageBuffer);\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\r\n\t\t////@ close [1/2]valid(); // auto\r\n\r\n\r\n\t}", "Integer saveExerciseClassification(SaveExerciseClassificationPayload payload);", "protected void sequence_Signature(ISerializationContext context, Signature semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "private static String createFlatSignature(MemberDoc jvdMember)\r\n {\r\n String flatSig = \"\";\r\n if (jvdMember.isMethod())\r\n {\r\n flatSig = jvdMember.name()\r\n + ((MethodDoc) jvdMember).flatSignature();\r\n } else if (jvdMember.isField())\r\n {\r\n flatSig = ((FieldDoc) jvdMember).name();\r\n }\r\n return flatSig;\r\n }", "public abstract void mo32005dK(boolean z);", "public interface SignatureObject {\n}", "public abstract String getSigAlgOID();", "void computeSignature(String signature) {\n\t\t// In case of IJavaElement signature, replace '/' by '.'\n\t\tchar[] source = signature.replace('/','.').replace('$','.').toCharArray();\n\n\t\t// Init counters and arrays\n\t\tchar[][] signatures = new char[10][];\n\t\tint signaturesCount = 0;\n\t\tint[] lengthes = new int [10];\n\t\tint typeArgsCount = 0;\n\t\tint paramOpening = 0;\n\t\tboolean parameterized = false;\n\t\t\n\t\t// Scan each signature character\n\t\tfor (int idx=0, ln = source.length; idx < ln; idx++) {\n\t\t\tswitch (source[idx]) {\n\t\t\t\tcase '>':\n\t\t\t\t\tparamOpening--;\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlengthes[signaturesCount] = typeArgsCount;\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '<':\n\t\t\t\t\tparamOpening++;\n\t\t\t\t\tif (paramOpening == 1) {\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t\tparameterized = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*':\n\t\t\t\tcase ';':\n\t\t\t\t\tif (paramOpening == 1) typeArgsCount++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '.':\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsignatures[signaturesCount] = new char[idx+1];\n\t\t\t\t\t\tSystem.arraycopy(source, 0, signatures[signaturesCount], 0, idx);\n\t\t\t\t\t\tsignatures[signaturesCount][idx] = Signature.C_SEMICOLON;\n\t\t\t\t\t\tsignaturesCount++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Store signatures and type arguments\n\t\tthis.typeSignatures = new char[signaturesCount+1][];\n\t\tif (parameterized)\n\t\t\tthis.typeArguments = new char[signaturesCount+1][][];\n\t\tthis.typeSignatures[0] = source;\n\t\tif (parameterized) {\n\t\t\tthis.typeArguments[0] = Signature.getTypeArguments(source);\n\t\t\tif (lengthes[signaturesCount] != this.typeArguments[0].length) {\n\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t}\n\t\t}\n\t\tfor (int i=1, j=signaturesCount-1; i<=signaturesCount; i++, j--){\n\t\t\tthis.typeSignatures[i] = signatures[j];\n\t\t\tif (parameterized) {\n\t\t\t\tthis.typeArguments[i] = Signature.getTypeArguments(signatures[j]);\n\t\t\t\tif (lengthes[j] != this.typeArguments[i].length) {\n\t\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "AnonymousClass1(java.security.Signer r1, java.security.PublicKey r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.<init>(java.security.Signer, java.security.PublicKey):void\");\n }", "protected abstract void generate();", "SignatureSource createSignatureSource();", "public void setSignatureAlgorithm(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSignatureAlgorithm(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSignatureAlgorithm(java.lang.String):void\");\n }" ]
[ "0.5371408", "0.5368016", "0.5353025", "0.5280745", "0.5263719", "0.52024424", "0.5157355", "0.51202136", "0.5076193", "0.5047365", "0.5041329", "0.5006212", "0.49906966", "0.49815655", "0.49482414", "0.4933043", "0.4923107", "0.4907368", "0.48805502", "0.4878508", "0.48446977", "0.48326832", "0.47894675", "0.47767898", "0.47767898", "0.47767898", "0.4770986", "0.47685182", "0.47444895", "0.47422087", "0.47352532", "0.46996146", "0.4668281", "0.4666171", "0.46645266", "0.4657952", "0.46572423", "0.46428576", "0.46401662", "0.46361855", "0.46315432", "0.46303597", "0.460629", "0.46019182", "0.45964375", "0.459263", "0.45878586", "0.4582295", "0.45745844", "0.45703492", "0.45677945", "0.45547885", "0.45525855", "0.45450073", "0.4539488", "0.45246905", "0.45196313", "0.45178097", "0.4494291", "0.4494291", "0.4493587", "0.44928315", "0.4488495", "0.448232", "0.44779566", "0.4469462", "0.44593695", "0.44590402", "0.44512025", "0.44469687", "0.44425577", "0.44405997", "0.44380292", "0.44315106", "0.4423137", "0.44131854", "0.44054595", "0.43923268", "0.43866262", "0.43864793", "0.43798238", "0.43787202", "0.43775854", "0.43744722", "0.43649945", "0.43577102", "0.43565932", "0.4356382", "0.4351549", "0.43507433", "0.4349405", "0.43450692", "0.43432662", "0.43314245", "0.43285173", "0.43280756", "0.43238568", "0.43116868", "0.43111947", "0.43092343" ]
0.4601279
44
Classify an feature vector as 0 or 1.
private boolean classify(FeatureVector<? extends Number> wd) { float sum = 0; // Scalar Product for (int i = 0; i < this.getDimensionality(); ++i) { // TODO check the type of the vector sum += wd.getValue(i).doubleValue() * this.getValue(i).doubleValue(); } // sign binary function if (sum <= 0) { return false; } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void normalizeClassLabels(double targetPositive, double targetNegative) {\n Vector yNew = new DenseVector(y.size());\n for(int i=0; i<y.size(); ++i) {\n yNew.setQuick(i, (y.getQuick(i) == targetPositive) ? 1 : 0 );\n }\n y = yNew;\n }", "@Override\n public Classification<F, C> classify(Collection<F> features) {\n SortedSet<Classification<F, C>> probabilites = this.categoryProbabilities(features);\n\n if (probabilites.size() > 0) {\n return probabilites.last();\n }\n return null;\n }", "Classifier getClassifier();", "@Override\n\tpublic double classifyInstance(Instance arg0) throws Exception {\n\t\treturn 0;\n\t}", "public static ClassifiedFeature createClassifiedFeature(Feature feature, Classifier classifier) {\n ClassifiedFeature classifiedFeature = ClassificationFactory.eINSTANCE.createClassifiedFeature();\n classifiedFeature.setFeature(feature);\n classifiedFeature.setClassified(classifier);\n return classifiedFeature;\n }", "public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}", "public static ClassifiedFeature createClassifiedFeature(Feature feature) {\n return createClassifiedFeature(feature, Classifier.UNCLASSIFIED);\n }", "private double predictByVoting (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }", "@Override\n public double classify(String[] words) {\n if (words == null || words.length == 0) {\n throw new IllegalArgumentException(\"words must not be null or empty\");\n }\n return Activation.SIGMOID.apply(bias + dotProduct(words));\n }", "private static void CreateClassifierVec(Dataset set, int dim_num,\n\t\t\tArrayList<KDNode> class_buff, int vec_offset) {\n\t\t\t\n\t\tAttribute atts[] = new Attribute[set.size()];\n\t\t// Declare the class attribute along with its values\n\t\t FastVector fvClassVal = new FastVector(4);\n\t\t fvClassVal.addElement(\"n2\");\n\t\t fvClassVal.addElement(\"n1\");\n\t\t fvClassVal.addElement(\"p1\");\n\t\t fvClassVal.addElement(\"p2\");\n\t\t Attribute ClassAttribute = new Attribute(\"theClass\", fvClassVal);\n\t \n\t\tFastVector fvWekaAttributes = new FastVector(set.size() + 1);\n\t for(int i=0; i<set.size(); i++) {\n\t \tatts[i] = new Attribute(\"att\"+i);\n\t \tfvWekaAttributes.addElement(atts[i]);\n\t }\n\t \n\t fvWekaAttributes.addElement(ClassAttribute);\n\t \n\t Instances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, class_buff.size()); \n\t isTrainingSet.setClassIndex(set.size());\n\t\t\n\t for(int k=0; k<class_buff.size(); k++) {\n\t \t\n\t \tArrayList<Integer> data_set = new ArrayList<Integer>();\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\t\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tSet<Entry<Integer, Double>> s = set.instance(j).entrySet();\n\t\t\t\t\tdouble sample[] = new double[dim_num];\n\t\t\t\t\tfor(Entry<Integer, Double> val : s) {\n\t\t\t\t\t\tsample[offset++] = val.getValue();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint output = class_buff.get(k).classifier.Output(sample);\n\t\t\t\t\tdata_set.add(output);\n\t\t\t}\n\t\t\t\n\t\t\tif(data_set.size() != set.size()) {\n\t\t\t\tSystem.out.println(\"dim mis\");System.exit(0);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tInstance iExample = new Instance(set.size() + 1);\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\tiExample.setValue(j, data_set.get(j));\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"n1\"); \n\t\t\t} else {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"p1\"); \n\t\t\t}\n\t\t\t \n\t\t\t// add the instance\n\t\t\tisTrainingSet.add(iExample);\n\t }\n\t\t\n\t System.out.println(dim_num+\" *************\");\n\t int select_num = 16;\n\t\tPrincipalComponents pca = new PrincipalComponents();\n\t\t//pca.setVarianceCovered(0.1);\n Ranker ranker = new Ranker();\n ranker.setNumToSelect(select_num);\n AttributeSelection selection = new AttributeSelection();\n selection.setEvaluator(pca);\n \n Normalize normalizer = new Normalize();\n try {\n normalizer.setInputFormat(isTrainingSet);\n isTrainingSet = Filter.useFilter(isTrainingSet, normalizer);\n \n selection.setSearch(ranker);\n selection.SelectAttributes(isTrainingSet);\n isTrainingSet = selection.reduceDimensionality(isTrainingSet);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n \n for(int i=0; i<class_buff.size(); i++) {\n \tInstance inst = isTrainingSet.instance(i);\n \tdouble val[] = inst.toDoubleArray();\n \tint offset = vec_offset;\n \t\n \tfloat length = 0;\n \tfor(int j=0; j<select_num; j++) {\n \t\tlength += val[j] * val[j];\n \t}\n \t\n \tlength = (float) Math.sqrt(length);\n \tfor(int j=0; j<select_num; j++) {\n \t\tclass_buff.get(i).class_vect[offset++] = val[j] / length;\n \t}\n }\n\t}", "@Override\r\n\tpublic double classifyInstance(Instance instance) throws Exception {\n\t\tdouble[] hist = bop.bagToArray(bop.buildBag(instance));\r\n\r\n\t\t// stuff into Instance\r\n\t\tInstances newInsts = new Instances(matrix, 1); // copy attribute data\r\n\t\tnewInsts.add(new SparseInstance(1.0, hist));\r\n\r\n\t\treturn knn.classifyInstance(newInsts.firstInstance());\r\n\t}", "public void setClassify(Integer classify) {\n this.classify = classify;\n }", "public double predict (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }", "@Override\n\tpublic double classify(Example example) {\n\t\t// run forwards part of training algorithm on specific example\n\t\t// input to calculateForward method is ArrayList of examples, so\n\t\t// arbitrarily creating one in order to avoid duplicating code\n\t\tArrayList<Example> ex = new ArrayList<Example>();\n\t\tex.add(example);\n\t\tSystem.out.println(\"calculated: \" + calculateForward(ex).get(0) + \" label: \" + example.getLabel());\n\t\treturn (calculateForward(ex).get(0) > 0) ? 1.0 : -1.0;\n\t}", "public abstract double classify(Instance e);", "@Override\n\tpublic ClassifyResult classify(List<String> words) {\n\t\t// TODO : Implement\n\t\t// Sum up the log probabilities for each word in the input data, and the\n\t\t// probability of the label\n\t\t// Set the label to the class with larger log probability\n\t\tdouble log_POSITIVE = Math.log(p_l(Label.POSITIVE));\n\t\tfor (String word : words)\n\t\t\tlog_POSITIVE += Math.log(p_w_given_l(word, Label.POSITIVE));\n\n\t\tdouble log_NEGATIVE = Math.log(p_l(Label.NEGATIVE));\n\t\tfor (String word : words)\n\t\t\tlog_NEGATIVE += Math.log(p_w_given_l(word, Label.NEGATIVE));\n\n\t\t// Create the ClassifyResult\n\t\tClassifyResult result = new ClassifyResult();\n\t\tresult.logProbPerLabel = new HashMap<Label, Double>();\n\t\tresult.logProbPerLabel.put(Label.POSITIVE, log_POSITIVE);\n\t\tresult.logProbPerLabel.put(Label.NEGATIVE, log_NEGATIVE);\n\t\t\n\t\tif (log_POSITIVE > log_NEGATIVE)\n\t\t\tresult.label = Label.POSITIVE;\n\t\telse\n\t\t\tresult.label = Label.NEGATIVE;\n\n\t\treturn result;\n\t}", "public Collection<Classification<F, C>> classifyDetailed(Collection<F> features) {\n return this.categoryProbabilities(features);\n }", "public interface Classifier extends GeneralizableElement, Namespace {\n /**\n * <p>\n * Adds a feature at the end of the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n */\n void addFeature(Feature feature);\n\n /**\n * <p>\n * Adds a feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index at which the specified element is to be added.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt; features.size.\n */\n void addFeature(int index, Feature feature);\n\n /**\n * <p>\n * Sets the feature at specified index of the ordered collection of the current object.\n * </p>\n *\n * @param index\n * index of feature to replace.\n * @param feature\n * the feature to be added.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n */\n void setFeature(int index, Feature feature);\n\n /**\n * <p>\n * Removes (and fetches) the feature at specified index from the ordered collection of the current object.\n * </p>\n *\n * @param index\n * the index of the feature to be removed.\n * @throws IndexOutOfBoundsException\n * if <code>index</code> is &lt; 0 or &gt;= features.size.\n * @return the removed object of type <code>Feature</code>.\n */\n Feature removeFeature(int index);\n\n /**\n * <p>\n * Removes a feature from the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be removed.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeFeature(Feature feature);\n\n /**\n * <p>\n * Removes all the objects of type \"feature\" from the ordered collection of the current object.\n * </p>\n */\n void clearFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned list do not change the state of current object (i.e.\n * the returned list is a copy of the internal one of the current object). However, if an element contained in it is\n * modified, the state of the current object is modified accordingly (i.e. the internal and the returned lists share\n * references to the same objects).\n * </p>\n *\n * @return a <code>java.util.List</code> instance, containing all the objects of type <code>Feature</code> added\n * to the collection of current object.\n */\n List<Feature> getFeatures();\n\n /**\n * <p>\n * Checks if a feature is contained in the ordered collection of the current object.\n * </p>\n *\n * @param feature\n * the feature to be tested.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return <code>true</code> if <code>feature</code> is contained in the collection of the current object.\n */\n boolean containsFeature(Feature feature);\n\n /**\n * <p>\n * Gets the index of the specified feature in the ordered collection of the current object, or -1 if such a\n * collection doesn't contain it.\n * </p>\n *\n * @param feature\n * the desired feature.\n * @throws IllegalArgumentException\n * if <code>feature</code> is null.\n * @return the index of the specified <code>Feature</code> in the ordered collection of the current object, or -1\n * if such a collection doesn't contain it.\n */\n int indexOfFeature(Feature feature);\n\n /**\n * <p>\n * Returns the number of objects of type \"feature\" previously added to the ordered collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Feature</code> inserted in the ordered collection of the current\n * object.\n */\n int countFeatures();\n\n /**\n * <p>\n * Adds a typed feature to the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be added.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n */\n void addTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes a typed feature from the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the typed feature to be removed.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Removes all the objects of type \"typed feature\" from the collection of the current object.\n * </p>\n */\n void clearTypedFeatures();\n\n /**\n * <p>\n * Gets all the objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>StructuralFeature</code> added to the collection of current object.\n */\n Collection<StructuralFeature> getTypedFeatures();\n\n /**\n * <p>\n * Checks if a typed feature is contained in the collection of the current object.\n * </p>\n *\n * @param typedFeature\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedFeature</code> is null.\n * @return <code>true</code> if <code>typedFeature</code> is contained in the collection of the current object.\n */\n boolean containsTypedFeature(StructuralFeature typedFeature);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed feature\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>StructuralFeature</code> inserted in the collection of the\n * current object.\n */\n int countTypedFeatures();\n\n /**\n * <p>\n * Adds a typed parameter to the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be added.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n */\n void addTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes a typed parameter from the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the typed parameter to be removed.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified typed parameter.\n */\n boolean removeTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Removes all the objects of type \"typed parameter\" from the collection of the current object.\n * </p>\n */\n void clearTypedParameters();\n\n /**\n * <p>\n * Gets all the objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Parameter</code>\n * added to the collection of current object.\n */\n Collection<Parameter> getTypedParameters();\n\n /**\n * <p>\n * Checks if a typed parameter is contained in the collection of the current object.\n * </p>\n *\n * @param typedParameter\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>typedParameter</code> is null.\n * @return <code>true</code> if <code>typedParameter</code> is contained in the collection of the current\n * object.\n */\n boolean containsTypedParameter(Parameter typedParameter);\n\n /**\n * <p>\n * Returns the number of objects of type \"typed parameter\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Parameter</code> inserted in the collection of the current\n * object.\n */\n int countTypedParameters();\n\n /**\n * <p>\n * Adds a association to the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be added.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n */\n void addAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes a association from the collection of the current object.\n * </p>\n *\n * @param association\n * the association to be removed.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Removes all the objects of type \"association\" from the collection of the current object.\n * </p>\n */\n void clearAssociations();\n\n /**\n * <p>\n * Gets all the objects of type \"association\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getAssociations();\n\n /**\n * <p>\n * Checks if a association is contained in the collection of the current object.\n * </p>\n *\n * @param association\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>association</code> is null.\n * @return <code>true</code> if <code>association</code> is contained in the collection of the current object.\n */\n boolean containsAssociation(AssociationEnd association);\n\n /**\n * <p>\n * Returns the number of objects of type \"association\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countAssociations();\n\n /**\n * <p>\n * Adds a specified end to the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be added.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n */\n void addSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes a specified end from the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the specified end to be removed.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Removes all the objects of type \"specified end\" from the collection of the current object.\n * </p>\n */\n void clearSpecifiedEnds();\n\n /**\n * <p>\n * Gets all the objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>AssociationEnd</code> added to the collection of current object.\n */\n Collection<AssociationEnd> getSpecifiedEnds();\n\n /**\n * <p>\n * Checks if a specified end is contained in the collection of the current object.\n * </p>\n *\n * @param specifiedEnd\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>specifiedEnd</code> is null.\n * @return <code>true</code> if <code>specifiedEnd</code> is contained in the collection of the current object.\n */\n boolean containsSpecifiedEnd(AssociationEnd specifiedEnd);\n\n /**\n * <p>\n * Returns the number of objects of type \"specified end\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>AssociationEnd</code> inserted in the collection of the current\n * object.\n */\n int countSpecifiedEnds();\n\n /**\n * <p>\n * Adds a powertype range to the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be added.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n */\n void addPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes a powertype range from the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the powertype range to be removed.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removePowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Removes all the objects of type \"powertype range\" from the collection of the current object.\n * </p>\n */\n void clearPowertypeRanges();\n\n /**\n * <p>\n * Gets all the objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>Generalization</code> added to the collection of current object.\n */\n Collection<Generalization> getPowertypeRanges();\n\n /**\n * <p>\n * Checks if a powertype range is contained in the collection of the current object.\n * </p>\n *\n * @param powertypeRange\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>powertypeRange</code> is null.\n * @return <code>true</code> if <code>powertypeRange</code> is contained in the collection of the current\n * object.\n */\n boolean containsPowertypeRange(Generalization powertypeRange);\n\n /**\n * <p>\n * Returns the number of objects of type \"powertype range\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Generalization</code> inserted in the collection of the current\n * object.\n */\n int countPowertypeRanges();\n\n /**\n * <p>\n * Adds a object flow state to the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be added.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n */\n void addObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes a object flow state from the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the object flow state to be removed.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal.\n */\n boolean removeObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Removes all the objects of type \"object flow state\" from the collection of the current object.\n * </p>\n */\n void clearObjectFlowStates();\n\n /**\n * <p>\n * Gets all the objects of type \"object flow state\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type\n * <code>ObjectFlowState</code> added to the collection of current object.\n */\n Collection<ObjectFlowState> getObjectFlowStates();\n\n /**\n * <p>\n * Checks if a object flow state is contained in the collection of the current object.\n * </p>\n *\n * @param objectFlowState\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>objectFlowState</code> is null.\n * @return <code>true</code> if <code>objectFlowState</code> is contained in the collection of the current\n * object.\n */\n boolean containsObjectFlowState(ObjectFlowState objectFlowState);\n\n /**\n * <p>\n * Returns the number of objects of type \"object flow state\" previously added to the collection of the current\n * object.\n * </p>\n *\n * @return the quantity of objects of type <code>ObjectFlowState</code> inserted in the collection of the current\n * object.\n */\n int countObjectFlowStates();\n\n /**\n * <p>\n * Adds a instance to the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be added.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n */\n void addInstance(Instance instance);\n\n /**\n * <p>\n * Removes a instance from the collection of the current object.\n * </p>\n *\n * @param instance\n * the instance to be removed.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if the current object state changed because of the removal, i.e. its collection\n * contained the specified instance.\n */\n boolean removeInstance(Instance instance);\n\n /**\n * <p>\n * Removes all the objects of type \"instance\" from the collection of the current object.\n * </p>\n */\n void clearInstances();\n\n /**\n * <p>\n * Gets all the objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n * <p>\n * Additions and removals of elements to and from the returned collection do not change the state of current object\n * (i.e. the returned collection is a copy of the internal one of the current object). However, if an element\n * contained in it is modified, the state of the current object is modified accordingly (i.e. the internal and the\n * returned collections share references to the same objects).\n * </p>\n *\n * @return a <code>java.util.Collection</code> instance, containing all the objects of type <code>Instance</code>\n * added to the collection of current object.\n */\n Collection<Instance> getInstances();\n\n /**\n * <p>\n * Checks if a instance is contained in the collection of the current object.\n * </p>\n *\n * @param instance\n * the element to be tested.\n * @throws IllegalArgumentException\n * if <code>instance</code> is null.\n * @return <code>true</code> if <code>instance</code> is contained in the collection of the current object.\n */\n boolean containsInstance(Instance instance);\n\n /**\n * <p>\n * Returns the number of objects of type \"instance\" previously added to the collection of the current object.\n * </p>\n *\n * @return the quantity of objects of type <code>Instance</code> inserted in the collection of the current object.\n */\n int countInstances();\n}", "public static boolean changeClassifier(ClassifiedFeature classifiedFeature, Classifier newClassifier, Classification classification) {\n if (changeClassifier(classifiedFeature, newClassifier)) {\n if (newClassifier == Classifier.ALIVE) {\n classification.getAliveFeatures().add(classifiedFeature.getFeature());\n classification.getDeadFeatures().remove(classifiedFeature.getFeature());\n classification.getUnboundFeatures().remove(classifiedFeature.getFeature());\n } else if (newClassifier == Classifier.DEAD) {\n classification.getAliveFeatures().remove(classifiedFeature.getFeature());\n classification.getDeadFeatures().add(classifiedFeature.getFeature());\n classification.getUnboundFeatures().add(classifiedFeature.getFeature());\n } else if (newClassifier == Classifier.UNBOUND) {\n classification.getAliveFeatures().remove(classifiedFeature.getFeature());\n classification.getDeadFeatures().remove(classifiedFeature.getFeature());\n classification.getUnboundFeatures().add(classifiedFeature.getFeature());\n }\n return true;\n } else\n return false;\n\n }", "public Integer getClassify() {\n return classify;\n }", "public org.apache.spark.rdd.RDD<java.lang.Object> predict (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> features) { throw new RuntimeException(); }", "public static void LibSVMClassifier() throws IOException {\n\n\t\t/* Load a data set */\n\t\tDataset data = FileHandler.loadSparseDataset(new File(\n\t\t\t\t\"./WebContent/corpus/trainVectors\"), 0, \" \", \":\");\n\t\t/*\n\t\t * Contruct a LibSVM classifier with default settings.\n\t\t */\n\t\tClassifier svm = new LibSVM();\n\t\tsvm.buildClassifier(data);\n\n\t\tDataset dataForClassification = FileHandler.loadSparseDataset(new File(\n\t\t\t\t\"./WebContent/corpus/testVectors\"), 0, \" \", \":\");\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tint correct = 0, wrong = 0;\n\t\t\n\t\n\t\tfor (Instance inst : dataForClassification) {\n\t\t\tObject predictedClassValue = svm.classify(inst);\n\t\t\tObject realClassValue = inst.classValue();\n\t\t\tif (predictedClassValue.equals(realClassValue))\n\t\t\t\tcorrect++;\n\t\t\telse\n\t\t\t\twrong++;\n\t\t}\n\t\tSystem.out.println(\"Correct predictions \" + correct);\n\t\tSystem.out.println(\"Wrong predictions \" + wrong);\n\t\tSystem.out.println(\"Accuracy: \" + (float) correct / (correct + wrong));\n\n\t}", "float predict();", "public interface FeatureFunction {\n double value(Vector vector, MultiLabel multiLabel);\n}", "public WekaClassificationResult(double value, double weight, String label, FeatureVector featureVector) {\n this.value = value;\n this.weight = weight;\n this.label = label;\n this.featureVector = featureVector;\n }", "public static boolean changeClassifier(ClassifiedFeature classifiedFeature, Classifier newClassifier) {\n Classifier oldClassifier = classifiedFeature.getClassified();\n boolean isAllowed = isChangeAllowed(oldClassifier, newClassifier);\n if (isAllowed) {\n classifiedFeature.setClassified(newClassifier);\n }\n return isAllowed;\n }", "Classifier getBase_Classifier();", "public static double[] convertFeatureSetToLibLinearLabels(FeatureSet feature_set,\n String[] class_values) {\n String class_attribute = feature_set.getClassAttribute();\n double[] labels = new double[feature_set.getDataPoints().size()];\n int i = 0;\n for (Word w : feature_set.getDataPoints()) {\n String s = w.getAttribute(class_attribute).toString();\n labels[i] = java.util.Arrays.asList(class_values).indexOf(s) + 1;\n i++;\n }\n return labels;\n }", "public void classify() throws Exception;", "String toSVMString();", "private double predictBySumming (org.apache.spark.mllib.linalg.Vector features) { throw new RuntimeException(); }", "@Override\n public double classifyInstance(Instance instance) throws Exception {\n\n\n\n int numAttributes = instance.numAttributes();\n int clsIndex = instance.classIndex();\n boolean hasClassAttribute = true;\n int numTestAtt = numAttributes -1;\n if (numAttributes == m_numOfInputNeutrons) {\n hasClassAttribute = false; // it means the test data doesn't has class attribute\n numTestAtt = numTestAtt+1;\n }\n\n for (int i = 0; i< numAttributes; i++){\n if (instance.attribute(i).isNumeric()){\n\n double max = m_normalization[0][i];\n double min = m_normalization[1][i];\n double normValue = 0 ;\n if (instance.value(i)<min) {\n normValue = 0;\n m_normalization[1][i] = instance.value(i); // reset the smallest value\n }else if(instance.value(i)> max){\n normValue = 1;\n m_normalization[0][i] = instance.value(i); // reset the biggest value\n }else {\n if (max == min ){\n if (max == 0){\n normValue = 0;\n }else {\n normValue = max/Math.abs(max);\n }\n }else {\n normValue = (instance.value(i) - min) / (max - min);\n }\n }\n instance.setValue(i, normValue);\n }\n }\n\n double[] testData = new double[numTestAtt];\n\n\n\n\n\n int index = 0 ;\n\n if (!hasClassAttribute){\n\n for (int i =0; i<numAttributes; i++) {\n testData[i] = instance.value(i);\n }\n }else {\n for (int i = 0; i < numAttributes; i++) {\n\n if (i != clsIndex) {\n\n testData[index] = instance.value(i);\n\n index++;\n }\n }\n }\n\n\n\n DenseMatrix prediction = new DenseMatrix(numTestAtt,1);\n for (int i = 0; i<numTestAtt; i++){\n prediction.set(i, 0, testData[i]);\n }\n\n DenseMatrix H_test = generateH(prediction,weightsOfInput,biases, 1);\n\n DenseMatrix H_test_T = new DenseMatrix(1, m_numHiddenNeurons);\n\n H_test.transpose(H_test_T);\n\n DenseMatrix output = new DenseMatrix(1, m_numOfOutputNeutrons);\n\n H_test_T.mult(weightsOfOutput, output);\n\n double result = 0;\n\n if (m_typeOfELM == 0) {\n double value = output.get(0,0);\n result = value*(m_normalization[0][classIndex]-m_normalization[1][classIndex])+m_normalization[1][classIndex];\n //result = value;\n if (m_debug == 1){\n System.out.print(result + \" \");\n }\n }else if (m_typeOfELM == 1){\n int indexMax = 0;\n double labelValue = output.get(0,0);\n\n if (m_debug == 1){\n System.out.println(\"Each instance output neuron result (after activation)\");\n }\n for (int i =0; i< m_numOfOutputNeutrons; i++){\n if (m_debug == 1){\n System.out.print(output.get(0,i) + \" \");\n }\n if (output.get(0,i) > labelValue){\n labelValue = output.get(0,i);\n indexMax = i;\n }\n }\n if (m_debug == 1){\n\n System.out.println(\"//\");\n System.out.println(indexMax);\n }\n result = indexMax;\n }\n\n\n\n return result;\n\n\n }", "default double predictClassProb(Vector vector, int classIndex){\n return predictClassProbs(vector)[classIndex];\n }", "public static ClassifiedFeature createAliveFeature(Feature feature) {\n return createClassifiedFeature(feature, Classifier.ALIVE);\n }", "abstract void train(Matrix features, Matrix labels);", "abstract Vec predict(Vec in);", "public int classify(String doc){\n\t\tint label = 0;\n\t\tint vSize = vocabulary.size();\n\t\tdouble[] score = new double[numClasses];\n\t\tfor(int i=0;i<score.length;i++){\n\t\t\tscore[i] = Math.log(classCounts[i]*1.0/trainingDocs.size());\n\t\t}\n\t\tString[] tokens = doc.split(\" \");\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tfor(String token: tokens){\n\t\t\t\tif(condProb[i].containsKey(token)){\n\t\t\t\t\tscore[i] += Math.log(condProb[i].get(token));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tscore[i] += Math.log(1.0/(classTokenCounts[i]+vSize));\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"token: \"+token+\" \"+score[i]);\n\t\t\t}\n\t\t}\n\t\tdouble maxScore = score[0];\n\t\t//System.out.println(\"class 0: \"+score[0]);\n\t\tfor(int i=1;i<score.length;i++){\n\t\t\t//System.out.println(\"class \"+i+\": \"+score[i]);\n\t\t\tif(score[i]>maxScore){\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t}", "Integer classify(LogicGraph pce);", "public ResultDTO classifyASD(String features) {\n\n DataSource testData = null;\n String prediction = null;\n double output;\n try {\n testData = new DataSource(filePathFinder.getTestDataFile());\n Instances test = testData.getDataSet();\n test.setClassIndex(test.numAttributes() - 1);\n\n MultilayerPerceptron mlp = (MultilayerPerceptron) learningModel.getModel(MULTILAYER_PERCEPTRON);\n // Getting the last row of the csv as the test data\n Instance inst = test.instance(test.numInstances()-1);\n// Instance inst1 =\n output = mlp.classifyInstance(inst);\n prediction = test.classAttribute().value((int) output);\n } catch (Exception ignored) {\n }\n return ResultBuilder.getInstance().buildResultDTO(prediction);\n }", "public RealConjunctiveFeature() { }", "public int ClassLabel(double sample[]) {\n\t\t\n\t\tif(k_closest == null) {\n\t\t\tclass_label = Output(sample);\n\t\t\treturn class_label;\n\t\t}\n\t\t\n\t\tfloat min = Float.MAX_VALUE;\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tmin = Math.min(ptr.s.weight, min);\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tmin = Math.abs(min) + 1;\n\t\t\n\t\tfloat class_count[] = new float[]{0, 0, 0, 0};\n\t\tptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\t\n\t\t\tptr.s.norm_weight = (ptr.s.weight + min);\n\t\t\tSample s = ptr.s;\n\t\t\t\n\t\t\tint out = s.Classify(sample);\n\t\t\t\n\t\t\tswitch(out) {\n\t\t\t\tcase -2: class_count[0] += s.norm_weight; break;\n\t\t\t\tcase -1: class_count[1] += s.norm_weight; break;\n\t\t\t\tcase 1: class_count[2] += s.norm_weight; break;\n\t\t\t\tcase 2: class_count[3] += s.norm_weight; break;\n\t\t\t}\n\t\t\t\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfloat max = 0;\n\t\tint label_set[] = new int[]{-2, -1, 1, 2};\n\t\tclass_label = 0;\n\t\tfor(int i=0; i<4; i++) {\n\t\t\t\n\t\t\tif(class_count[i] > max) {\n\t\t\t\tmax = class_count[i];\n\t\t\t\tclass_label = label_set[i];\n\t\t\t}\n\t\t} \n\t\t\n\t\treturn class_label;\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public static int fastClassify(Model M, int[][] x){\n //dont call other classes\n\t //look out for terms that you can take out\n//\t int d =0;\n//\t double joint;\n//\t double t= 1.0;\n//\t\tdouble high;\n//\t\t//Double tot1;\n//\t\tdouble higher;\n//\t\tdouble tot =1.0;\n//\t\tdouble tot1= 1.0;\n//\t int digit =0;\n//\t for(int i=0; i<x.length; i++){\n//\t\tfor(int j=0;j<x[i].length; j++){\n//\n//\t\t//probability at 0;\n//\t\t\ttot*=conditionalProbabilityXijgD(M,i,j,x[i][j],0); \n//\t\t \n//\t\t high = M.getPD(0)*tot;\n//\t\t\twhile(d<10){\n//\t\t\t\ttot1*=conditionalProbabilityXijgD(M,i,j,x[i][j],d); \n//\t\t\t\thigher = M.getPD(d)*tot1;\n//\t\t\t\t\n//\t\t\t\tif(high <higher){\n//\t\t\t\t\thigh = higher;\n//\t\t\t\t\tdigit =d;\n//\t\t\t\t}\n//\t\t\t\td++;\n//\t\t\t}\n//\t\t \n//\t }\n//\t \n//\t }\n\t double high=0.0;\n\t int digit =0;\n\t int i=0;\n\t while(i<10){\n\t\t double tot =jointProbabilityXD(M,x,i);\n\t \t\n\t if(high<tot){\n\t\t high=tot;\n\t \t\tdigit =i; \n\t \t}\n\t\t i++;\n\t \t//System.out.println(0.988809344056389 < 0.011080326918292818);\n\t \n\t\t// System.out.println(tot);\n\t }\n\t return digit;\n\t \n \n}", "org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);", "abstract Feature createFeature(boolean enabled, int count);", "private FastVector getAccInstanceAttributes() {\n Attribute x_mean = new Attribute(\"x-axis mean\");\n Attribute x_var = new Attribute(\"x-axis var\");\n Attribute y_mean = new Attribute(\"y-axis mean\");\n Attribute y_var = new Attribute(\"y-axis var\");\n Attribute z_mean = new Attribute(\"z-axis mean\");\n Attribute z_var = new Attribute(\"z-axis var\");\n\n // Declare the class attribute along with its values\n FastVector fvClassVal = new FastVector(2);\n fvClassVal.addElement(\"none\");\n fvClassVal.addElement(\"tap\");\n Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n // Declare the feature vector\n FastVector fvWekaAttributes = new FastVector(7);\n\n fvWekaAttributes.addElement(x_mean);\n fvWekaAttributes.addElement(x_var);\n fvWekaAttributes.addElement(y_mean);\n fvWekaAttributes.addElement(y_var);\n fvWekaAttributes.addElement(z_mean);\n fvWekaAttributes.addElement(z_var);\n fvWekaAttributes.addElement(classAttribute);\n\n// // Declare the numeric attributes\n// Attribute x_var = new Attribute(\"var_x\");\n// Attribute x_var_delta = new Attribute(\"delta_var_x\");\n// Attribute y_var = new Attribute(\"var_y\");\n// Attribute y_var_delta = new Attribute(\"delta_var_y\");\n// Attribute z_var = new Attribute(\"var_z\");\n// Attribute z_var_delta = new Attribute(\"delta_var_z\");\n//\n// // Declare the class attribute along with its values\n// FastVector fvClassVal = new FastVector(3);\n// fvClassVal.addElement(\"none\");\n// fvClassVal.addElement(\"motion\");\n// fvClassVal.addElement(\"tap\");\n// Attribute classAttribute = new Attribute(\"theClass\", fvClassVal);\n\n// // Declare the feature vector\n// FastVector fvWekaAttributes = new FastVector(7);\n//\n// fvWekaAttributes.addElement(x_var);\n// fvWekaAttributes.addElement(x_var_delta);\n// fvWekaAttributes.addElement(y_var);\n// fvWekaAttributes.addElement(y_var_delta);\n// fvWekaAttributes.addElement(z_var);\n// fvWekaAttributes.addElement(z_var_delta);\n// fvWekaAttributes.addElement(classAttribute);\n\n return fvWekaAttributes;\n }", "private float predict(float[][] features) {\n Tensor input = Tensor.create(features);\n float[][] output = new float[1][1];\n Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n Log.i(\"Tensor Shape\", op_tensor.shape()[0] + \", \" + op_tensor.shape()[1]);\n op_tensor.copyTo(output);\n return output[0][0];\n }", "double countMisclassifications(Matrix features, Matrix labels)\r\n {\r\n if(features.rows() != labels.rows())\r\n throw new IllegalArgumentException(\"Illegal Argument Exception Created!!\");\r\n\tdouble mis = 0;\r\n for(int i = 0; i < features.rows(); i++)\r\n\t{\r\n Vec feat = features.row(i);\r\n Vec pred = predict(feat);\r\n Vec lab = labels.row(i);\r\n\r\n for(int j = 0; j < lab.size(); j++){\r\n \r\n if(pred.get(j) != lab.get(j))\r\n mis++;\r\n }\r\n\t}\r\n // System.out.println(\"mis \" + mis);\r\n // System.out.println(\"rowcol \" + (labels.rows()*labels.cols()));\r\n\r\n double misclassifictionRate = 100.0*(mis/(labels.rows()*labels.cols()));\r\n return misclassifictionRate;\r\n }", "boolean hasClassIdSigmoidCalibrations();", "@Override\n\tpublic double classValue() {\n\t\treturn 0;\n\t}", "@Override\n\tprotected void analyzeSystem(PipelineData data, Classifier classifier) throws Exception {\n\t\tField modelField = null;\n\n\t\tmodelField = LibSVM.class.getDeclaredField(\"m_Model\");\n\t\tmodelField.setAccessible(true);\n\t\tnumberOfSupportVectors = (int) ((svm_model) modelField.get(classifier)).l;\n\t\tnumberOfClasses = data.getFeatureSelectedInstances().numClasses();\n\t}", "public static Classifier classify(List<List<Double>> features,List<Double> labels) throws Exception\n\t {\n\t\t\n\t\t String RF_CSV = \"res/diabetic_data_rf.csv\";\n\t\t String RF_Arff = \"res/rf_output.arff\";\n\t\t Helper.createCSV(RF_CSV,features,labels);\n\t\t Instances data_rf = Helper.createARFF(RF_CSV, RF_Arff);\n\t\t RandomForest rf = new RandomForest();\n\t\t System.out.println(\"Random Forest...\");\n\t\t rf.setNumTrees(100);\n\t\t rf.setMaxDepth(8);\n\t\t rf.buildClassifier(data_rf);\n\t\t \n\t\t Evaluation eval = new Evaluation(data_rf);\n\t\t Random rand = new Random(1); // using seed = 1\n\t\t int folds = 4;\n\t\t eval.crossValidateModel(rf, data_rf, folds, rand);\n\t\t System.out.println(eval.toSummaryString());\n\t\t \n\t\t return rf;\n\t }", "public float specificity(final L label)\n {\n\n final Multiset<L> predictionsForLabel = confusionMatrix.computeIfAbsent(label, l ->HashMultiset.create());\n\n final int hasLabel = predictionsForLabel.size();\n final int hasLabelRight = predictionsForLabel.count(label); // true positives\n\n\n final int notLabelWrong = getTotalPredicted(label) - hasLabelRight; // false negatives\n final int notLabel = numExamples - hasLabel;\n final int notLabelRight = notLabel - notLabelWrong; // true negatives\n\n if (notLabel == 0)\n {\n return 1.0f;\n }\n\n return (float) notLabelRight / (float) notLabel;\n }", "public void compareFeatures() {\n computeDistances();\n evaluationLogic();\n // compute recall and precision\n recall = truePositiveCount / (truePositiveCount + falseNegativeCount);\n // avoid division by zero\n float denominator = truePositiveCount + falsePositiveCount;\n precision = denominator == 0 ? 0 : truePositiveCount / denominator;\n }", "public interface ISVMVector {\n\n\t/**\n\t * Liefert den SVM vector fuer die SVM light zurueck.\n\t *\n\t * @return den SVM vector fuer die SVM light\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tString toSVMString();\n\n\t/**\n\t * Trick: Vektor als CSV Exportieren\n\t * @return .\n\t */\n\tString toCSVString();\n\n\t/**\n\t * Liefer den Label des vectors.\n\t *\n\t * @return Den Label des vectors.\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tLabel getLabel();\n\n\t/**\n\t * Setzt den Label des vectors.\n\t *\n\t * @param label - der label\n\t * @author Daniel Wiese\n\t * @since 20.08.2006\n\t */\n\tvoid setLabel(Label label);\n\n}", "double predict(Vector w);", "public double[] ClassVect() {\n\t\treturn class_vect;\n\t}", "public void setFeature(Integer feature) {\n this.feature = feature;\n }", "public String getFeatVect();", "int getFeatureValue();", "public void calcualteFeatureValue(Collection<Instance> instanceCollection);", "public void classify(Sample sample, String classificationName) {\n classifiedSamples.add(sample);\n SampleClassification classification = getClassification(classificationName);\n sampleClassificationMap.put(sample, classification);\n }", "Classifier getType();", "public final void setClassificationParams(Vector oParams)\n\t{\n\t\tsetParams(oParams, CLASSIFICATION);\n\t}", "private static native long CvSVM_1(long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);", "private void handleUnclassifiedFeature(ClassifiedFeature classifiedFeature) {\n classifiedFeature.setClassified(Classifier.UNBOUND);\r\n handleUnboundFeature(classifiedFeature);\r\n }", "public static void NaiveBayesClassifier() throws IOException {\n\t\t\n\t\t\n\t\tDataset data = FileHandler.loadSparseDataset(new File(\n\t\t\t\t\"./WebContent/corpus/trainVectors\"), 0, \" \", \":\");\n\n\t\tEqualWidthBinning eb = new EqualWidthBinning(20);\n\t\tSystem.out.println(\"Start discretisation\");\n\t\teb.build(data);\n\t\tDataset ddata = data.copy();\n\t\teb.filter(ddata);\n\n\t\tboolean useLaplace = true;\n\t\tboolean useLogs = true;\n\t\tClassifier nbc = new NaiveBayesClassifier(useLaplace, useLogs, false);\n\t\tnbc.buildClassifier(data);\n\n\t\tDataset dataForClassification = FileHandler.loadSparseDataset(new File(\n\t\t\"./WebContent/corpus/testVectors\"), 0, \" \", \":\");\n\n\t\n\t\tint correct = 0, wrong = 0;\n\n\n\t\tfor (Instance inst : dataForClassification) {\n\t\t\teb.filter(inst);\n\t\t\tObject predictedClassValue = nbc.classify(inst);\n\t\t\tObject realClassValue = inst.classValue();\n\t\t\tif (predictedClassValue.equals(realClassValue))\n\t\t\t\tcorrect++;\n\t\t\telse {\n\t\t\t\t\n\t\t\t\twrong++;\n\t\t\t\t\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"correct \" + correct);\n\t\tSystem.out.println(\"incorrect \" + wrong);\n\t\tSystem.out.println(\"Accuracy: \" + (float) correct / (correct + wrong));\n\n\t}", "public int classify(Bitmap bitmap) {\n preprocess(bitmap);\n runInference();\n return postprocess();\n }", "@Test\n\tpublic void test1() {\n\t\tTriangleType type = TriangleClassifier.classify(2,2, 1);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "public CvSVM(Mat trainData, Mat responses)\r\n {\r\n\r\n super( CvSVM_2(trainData.nativeObj, responses.nativeObj) );\r\n\r\n return;\r\n }", "@Override\n\tpublic double predict(SparseVector instance) {\n\t\treturn predict(instance, this.weights);\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public static ClassifiedFeature getOrCreateClassifiedFeature(Classification classification, Feature feature) {\n ClassifiedFeature classifiedFeature = ClassificationUtil.getClassifiedFeature(classification, feature);\n if (classifiedFeature == null) {\n classifiedFeature = ClassificationUtil.createdClassifiedFeature(classification, feature);\n }\n return classifiedFeature;\n }", "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "public CvSVM()\r\n {\r\n\r\n super( CvSVM_0() );\r\n\r\n return;\r\n }", "void setClassificationArray(org.landxml.schema.landXML11.ClassificationDocument.Classification[] classificationArray);", "public static void addClassifiedFeature(Classification classification, ClassifiedFeature classifiedFeature) {\n Feature feature = classifiedFeature.getFeature();\n boolean containedInView = ClassificationCache.getInstance().isFeatureContainedInView(classification, feature);\n if (containedInView) {\n classification.getClassifiedFeatures().add(classifiedFeature);\n } else {\n classification.getAutoCompleteFeatures().add(classifiedFeature);\n }\n }", "public void setClassifier(Classifier classifier) {\n this.classifier = classifier;\n //setClassifier(classifier, false);\n }", "void setFeatures(Features f) throws Exception;", "public SVM(final int theInputCount, final boolean regression) {\n this(theInputCount, regression ? SVMType.EpsilonSupportVectorRegression\n : SVMType.SupportVectorClassification,\n KernelType.RadialBasisFunction);\n }", "@Test\n\tpublic void testClassifier() {\n\t\t// Ensure there are no intermediate files left in tmp directory\n\t\tFile exampleFile = FileUtils.getTmpFile(FusionClassifier.EXAMPLE_FILE_NAME);\n\t\tFile predictionsFile = FileUtils.getTmpFile(FusionClassifier.PREDICTIONS_FILE_NAME);\n\t\texampleFile.delete();\n\t\tpredictionsFile.delete();\n\t\t\n\t\tList<List<Double>> columnFeatures = new ArrayList<>();\n\t\tSet<String> inputRecognizers = new HashSet();\n\t\tList<Map<String, Double>> supportingCandidates = new ArrayList();\n\t\tList<Map<String, Double>> competingCandidates = new ArrayList();\n\t\t\n\t\t// Supporting candidates\n\t\tMap<String, Double> supportingCandidatesTipo = new HashMap();\n\t\tsupportingCandidatesTipo.put(INPUT_RECOGNIZER_ID, TIPO_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesTipo);\n\n\t\tMap<String, Double> supportingCandidatesInsegna = new HashMap();\n\t\tsupportingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, INSEGNA_SIMILARITY_SCORE);\n\t\tsupportingCandidates.add(supportingCandidatesInsegna);\n\t\t\n\t\t// Competing candidates\n\t\tMap<String, Double> competingCandidatesTipo = new HashMap();\n\t\tcompetingCandidatesTipo.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesTipo);\n\t\tMap<String, Double> competingCandidatesInsegna = new HashMap();\n\t\tcompetingCandidatesInsegna.put(INPUT_RECOGNIZER_ID, 0.);\n\t\tcompetingCandidates.add(competingCandidatesInsegna);\n\n\t\t// Two columns: insegna and tipo from osterie_tipiche\n\t\t// A single column feature: uniqueness\n\t\tList<Double> featuresTipo = new ArrayList();\n\t\tfeaturesTipo.add(0.145833);\n\t\tcolumnFeatures.add(featuresTipo);\n\t\t\n\t\tList<Double> featuresInsegna = new ArrayList();\n\t\tfeaturesInsegna.add(1.0);\n\t\tcolumnFeatures.add(featuresInsegna);\n\t\t\n\t\t// A single input recognizer\n\t\tinputRecognizers.add(INPUT_RECOGNIZER_ID);\n\n\t\t// Create the classifier\n\t\tFusionClassifier classifier \n\t\t\t= new FusionClassifier(FileUtils.getSVMModelFile(MINIMAL_FUSION_CR_NAME), \n\t\t\t\t\tcolumnFeatures, \n\t\t\t\t\tRESTAURANT_CONCEPT_ID, \n\t\t\t\t\tinputRecognizers);\n\t\tList<Double> predictions \n\t\t\t= classifier.classifyColumns(supportingCandidates, competingCandidates);\n\t\t\n\t\tboolean tipoIsNegativeExample = predictions.get(0) < -0.5;\n\t\t\n//\t\tTODO This currently doesn't work -- need to investigate\n//\t\tboolean insegnaIsPositiveExample = predictions.get(1) > 0.5;\n\t\t\n\t\tassertTrue(tipoIsNegativeExample);\n//\t\tassertTrue(insegnaIsPositiveExample);\n\t\t\n\ttry {\n\t\tSystem.out.println(new File(\".\").getCanonicalPath());\n\t\tSystem.out.println(getClass().getProtectionDomain().getCodeSource().getLocation());\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\t\n\t}", "public abstract void generateFeatureVector(Factor<Scope> f);", "public LogicalVector(Boolean[] values) {\r\n this.values = new int[values.length];\r\n for (int i = 0; i != values.length; ++i) {\r\n this.values[i] = values[i] ? 1 : 0;\r\n }\r\n }", "void setClassificationArray(int i, org.landxml.schema.landXML11.ClassificationDocument.Classification classification);", "public static String evaluateClassification(String hyp_feature, String true_feature, FeatureSet fs)\n throws AuToBIException {\n EvaluationSummary eval = new EvaluationSummary(generateEvaluationResults(hyp_feature, true_feature, fs));\n return eval.toString();\n }", "public abstract boolean supports(ClassificationMethod method);", "public Map<Integer, Boolean> testCategorization(String topic, String[] features) {\n\n\t\tint n = trainingSet.size(); // Count docs.\n\n\t\t// Count docs in class.\n\t\tint nc = 0;\n\t\tfor (Integer id : trainingSet) {\n\t\t\tboolean inClass = this.getDocument(id).getTopics().contains(topic);\n\t\t\tif (inClass)\n\t\t\t\tnc++;\n\t\t}\n\n\t\tdouble prior_c = nc / (double) n;\n\t\tdouble prior_cbar = (n - nc) / (double) n;\n\n\t\tMap<String, Double> condProb_c = new HashMap<String, Double>();\n\t\tMap<String, Double> condProb_cbar = new HashMap<String, Double>();\n\n\t\t// Count docs in class containing term.\n\t\tfor (String term : features) {\n\t\t\tSet<Integer> postings = terms.get(term).getPostings().keySet();\n\t\t\tint nct_c = 0, nct_cbar = 0;\n\t\t\tfor (Integer id : trainingSet) {\n\t\t\t\tboolean inClass = this.getDocument(id).getTopics().contains(topic);\n\t\t\t\tif (postings.contains(id)) { // document contains the term\n\t\t\t\t\tif (inClass)\n\t\t\t\t\t\tnct_c++;\n\t\t\t\t\telse\n\t\t\t\t\t\tnct_cbar++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// And calculate conditional probabilities.\n\t\t\tcondProb_c.put(term, (nct_c + 1) / (double) (nc + 2));\n\t\t\tcondProb_cbar.put(term, (nct_cbar + 1) / (double) ((n - nc) + 2));\n\t\t}\n\n\t\t// ---APPLY BERNOULLI----\n\n\t\tMap<Integer, Boolean> marked = new HashMap<Integer, Boolean>();\n\t\tfor (Integer id : testSet) {\n\t\t\tdouble score_c = Math.log(prior_c);\n\t\t\tdouble score_cbar = Math.log(prior_cbar);\n\t\t\tfor (String term : features) {\n\t\t\t\tSet<Integer> postings = terms.get(term).getPostings().keySet();\n\t\t\t\tif (postings.contains(id)) {\n\t\t\t\t\tscore_c += Math.log(condProb_c.get(term));\n\t\t\t\t\tscore_cbar += Math.log(condProb_cbar.get(term));\n\t\t\t\t} else {\n\t\t\t\t\tscore_c += Math.log(1 - condProb_c.get(term));\n\t\t\t\t\tscore_cbar += Math.log(1 - condProb_cbar.get(term));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (score_c > score_cbar)\n\t\t\t\tmarked.put(id, true);\n\t\t\telse\n\t\t\t\tmarked.put(id, false);\n\t\t}\n\t\treturn marked;\n\t}", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "Feature createFeature();", "abstract String classify(Instance inst);", "@Override\n public Class<? extends Feature> getFeatureClass() {\n\treturn VersionFeatures.class;\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Constants.h\", line = 1234,\n FQN=\"llvm::UndefValue::classof\", NM=\"_ZN4llvm10UndefValue7classofEPKNS_5ValueE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Constants.cpp -nm=_ZN4llvm10UndefValue7classofEPKNS_5ValueE\")\n //</editor-fold>\n public static boolean classof(/*const*/ Value /*P*/ V) {\n return V.getValueID() == ValueTy.UndefValueVal.getValue();\n }", "private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }", "public PredicateVector(int id) {\n super();\n flagged = false;\n vectorId = id;\n }", "@Override\r\n\tpublic boolean updateClassified(Classified classified) {\n\t\treturn false;\r\n\t}", "private void SGDForPositiveInstance(Instance instance) {\n\t\tint lengthOfDocument = 0; // |d|.\r\n\t\tfor (int frequency : instance.mpFeatureToFrequency.values()) {\r\n\t\t\tlengthOfDocument += frequency;\r\n\t\t}\r\n\t\t// double gValue = getGFunctionValue(lengthOfDocument);\r\n\t\t// double gGradientWithPositiveClass =\r\n\t\t// getGFunctionGradientWithPositiveClass(lengthOfDocument);\r\n\t\t// double gGradientWithNegativeClass =\r\n\t\t// getGFunctionGradientWithNegativeClass(lengthOfDocument);\r\n\r\n\t\tdouble positiveClassSum = (param.smoothingPriorForFeatureInNaiveBayes\r\n\t\t\t\t* V + sum_x[0]);\r\n\t\tdouble negativeClassSum = (param.smoothingPriorForFeatureInNaiveBayes\r\n\t\t\t\t* V + sum_x[1]);\r\n\t\tdouble ratioOfClasses = positiveClassSum / negativeClassSum;\r\n\r\n\t\t// Compute R.\r\n\t\tBigDecimal R = BigDecimal.ONE;\r\n\t\t// Pr(-) / Pr(+).\r\n\t\tR = R.multiply(BigDecimal\r\n\t\t\t\t.valueOf(getProbOfClass(1) / getProbOfClass(0)));\r\n\t\t// ratioOfClasses ^ |d|.\r\n\t\tR = R.multiply(BigDecimal.valueOf(ratioOfClasses).pow(lengthOfDocument));\r\n\t\tfor (Map.Entry<Integer, Integer> entry : instance.mpFeatureToFrequency\r\n\t\t\t\t.entrySet()) {\r\n\t\t\tint featureId = entry.getKey();\r\n\t\t\tint frequency = entry.getValue();\r\n\t\t\tdouble ratio = (param.smoothingPriorForFeatureInNaiveBayes + x[featureId][1])\r\n\t\t\t\t\t/ (param.smoothingPriorForFeatureInNaiveBayes + x[featureId][0]);\r\n\t\t\tR = R.multiply(BigDecimal.valueOf(ratio).pow(frequency));\r\n\t\t}\r\n\r\n\t\t// Compute the gradient of each feature for the positive class.\r\n\t\tMap<Integer, Double> gradientOfFeatureWithPositiveClass = new HashMap<Integer, Double>();\r\n\t\tfor (Map.Entry<Integer, Integer> entry : instance.mpFeatureToFrequency\r\n\t\t\t\t.entrySet()) {\r\n\t\t\tint featureId = entry.getKey();\r\n\t\t\tint frequency = entry.getValue();\r\n\r\n\t\t\tBigDecimal numerator1 = BigDecimal\r\n\t\t\t\t\t.valueOf(frequency\r\n\t\t\t\t\t\t\t/ (param.smoothingPriorForFeatureInNaiveBayes + x[featureId][0]));\r\n\t\t\tBigDecimal numerator2 = R.multiply(BigDecimal\r\n\t\t\t\t\t.valueOf(lengthOfDocument / positiveClassSum));\r\n\t\t\tBigDecimal numerator = numerator1.add(numerator2);\r\n\t\t\tBigDecimal denominator = R.add(BigDecimal.ONE);\r\n\t\t\tdouble gradient = numerator.divide(denominator, 30,\r\n\t\t\t\t\tRoundingMode.HALF_UP).doubleValue()\r\n\t\t\t\t\t- frequency\r\n\t\t\t\t\t/ (param.smoothingPriorForFeatureInNaiveBayes + x[featureId][0]);\r\n\t\t\tif (Double.isNaN(gradient)) {\r\n\t\t\t\tSystem.out.println(\"Nan\");\r\n\t\t\t}\r\n\t\t\tgradientOfFeatureWithPositiveClass.put(featureId, gradient);\r\n\t\t}\r\n\r\n\t\t// Compute the gradient of each feature for the negative class.\r\n\t\tMap<Integer, Double> gradientOfFeatureWithNegativeClass = new HashMap<Integer, Double>();\r\n\t\tfor (Map.Entry<Integer, Integer> entry : instance.mpFeatureToFrequency\r\n\t\t\t\t.entrySet()) {\r\n\t\t\tint featureId = entry.getKey();\r\n\t\t\tint frequency = entry.getValue();\r\n\r\n\t\t\tBigDecimal numerator = BigDecimal\r\n\t\t\t\t\t.valueOf(frequency\r\n\t\t\t\t\t\t\t/ (param.smoothingPriorForFeatureInNaiveBayes + x[featureId][1])\r\n\t\t\t\t\t\t\t- lengthOfDocument / negativeClassSum);\r\n\t\t\tBigDecimal denominator = BigDecimal.ONE.divide(R, 30,\r\n\t\t\t\t\tRoundingMode.HALF_UP).add(BigDecimal.ONE);\r\n\t\t\tdouble gradient = numerator.divide(denominator, 30,\r\n\t\t\t\t\tRoundingMode.HALF_UP).doubleValue();\r\n\t\t\tif (Double.isNaN(gradient)) {\r\n\t\t\t\tSystem.out.println(\"Nan\");\r\n\t\t\t}\r\n\t\t\tgradientOfFeatureWithNegativeClass.put(featureId, gradient);\r\n\t\t}\r\n\r\n\t\t// Note that we need to compute all of the gradients first and then\r\n\t\t// update\r\n\t\t// the counts.\r\n\t\t// Update the count of each feature in this document for positive class.\r\n\t\tupdateXs(instance, gradientOfFeatureWithPositiveClass,\r\n\t\t\t\tgradientOfFeatureWithNegativeClass);\r\n\t}", "public static void classfy(ArrayList<ArrayList<String>> dataset ,ArrayList<ArrayList<String>> testData,int k) {\n\t\tint index = 0;\r\n\t\tint count = 0;\r\n\t\tfor (ArrayList<String> testItem : testData) {\r\n\t\t\tString str=getFeatureLabel(dataset, testItem, k);\r\n\t\t\tSystem.out.println(str);\r\n\t\t\tif (testItem.get((testData.get(0).size()-1)).equals(str)) {\r\n\t\t\t\tSystem.out.println(\"testItem\"+index+\"分类正确\");\r\n\t\t\t\tcount ++;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"testItem\"+index+\"分类错误\");\r\n\t\t\t}\r\n\t\t\tindex ++;\r\n\t\t}\r\n\t\tSystem.out.println(\"正确率为\"+count*1.0/testData.size());\r\n\t}", "public static Instance reformatfeaturevector(Instance tweet, Classifier classifier)\n\t{\n\t\tInstance compatible_test_instance;\n\n\t\t//old\n\t\tFeatureVector fv = (FeatureVector) tweet.getData();\n\t\tint[] oldindices = fv.getIndices();\n\t\tdouble[] oldvalues = fv.getValues();\n\n //new\n\t\tArrayList<Integer> newindices = new ArrayList<>();\n\t\tArrayList<Double> newvalues = new ArrayList<>();\n\n\t\t//Compatible data alphabet\n\t\tfor (int i=0; i<oldindices.length; i++)\n\t\t{\n\t\t\tString attribute = fv.getAlphabet().lookupObject(oldindices[i]).toString();\n\n\t\t\tif (!classifier.getAlphabet().contains(attribute))\n\t\t\t\tSystem.out.println(\"Incompatible Attribute : \"+attribute);\n\t\t\telse\n\t\t\t{\n\t\t\t\t//read corresponding index in this classifier dataalphabet\n\t\t\t\tint index = classifier.getAlphabet().lookupIndex(attribute,false);\n\t\t\t\tSystem.out.println(\"Compatible Attribute : \"+attribute+\" at index : \"+index);\n\t\t\t\tnewindices.add(index); //correct index of this attribute according to test trainingset\n\t\t\t\tnewvalues.add(oldvalues[i]); //value\n\t\t\t}\n\t\t}\n\n\t\t//Compatible target alphabet\n Label target = classifier.getLabelAlphabet().lookupLabel(tweet.getTarget().toString(),false);\n\n\t\t//Creating Compatible Instance\n\t\tfv = new FeatureVector(classifier.getAlphabet(),\n\t\t\t\tnewindices.stream().mapToInt(i -> i).toArray(), newvalues.stream().mapToDouble(i -> i).toArray());\n\n\t\tcompatible_test_instance = new Instance(fv,target,tweet.getName(),tweet.getSource());\n\n\t\treturn compatible_test_instance;\n\t}", "@Override\r\n\tpublic int predict(double[] x, double[] posteriori) {\n\t\treturn 0;\r\n\t}", "@Test\r\n\tpublic void classifyTest(){\r\n\t\tClassification[] expectedClass = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third,Classification.Fail};\r\n\t\tint[] pointGrades = {3,6,10,13,18};\r\n\t\tfor(int i=0;i<pointGrades.length;i++)\r\n\t\t{\r\n\t\t\tassertEquals(expectedClass[i],new PointGrade(pointGrades[i]).classify());\r\n\t\t}\r\n\t}" ]
[ "0.620519", "0.5969581", "0.584503", "0.56708634", "0.5637011", "0.5553616", "0.55423284", "0.54799616", "0.5394452", "0.5389414", "0.532752", "0.5294237", "0.52658606", "0.526234", "0.5262118", "0.5246722", "0.52260953", "0.5226025", "0.5195844", "0.5167238", "0.5126291", "0.50941986", "0.5080117", "0.5072369", "0.5064418", "0.505841", "0.5050528", "0.50377274", "0.5027572", "0.5000908", "0.5000295", "0.49839056", "0.498288", "0.49797618", "0.49695906", "0.4952798", "0.49491453", "0.49400195", "0.490863", "0.4893582", "0.48935342", "0.48806277", "0.4831381", "0.48012617", "0.47995633", "0.47973835", "0.4781622", "0.4777527", "0.47727585", "0.47697443", "0.47472134", "0.47446972", "0.47364527", "0.47362694", "0.47350812", "0.47343653", "0.47268987", "0.47224352", "0.47126496", "0.47001135", "0.46963492", "0.46928245", "0.4692119", "0.4683378", "0.468309", "0.46815258", "0.4680553", "0.46497646", "0.4649388", "0.46486804", "0.46480623", "0.4644972", "0.46371543", "0.46364588", "0.46363398", "0.46242487", "0.46185076", "0.4614825", "0.45987222", "0.45971394", "0.4596237", "0.45924753", "0.45905378", "0.45890185", "0.45886755", "0.45801902", "0.45796883", "0.45773846", "0.45766094", "0.45764458", "0.45626846", "0.45606342", "0.4559619", "0.45589215", "0.45580292", "0.4557753", "0.4553797", "0.45518786", "0.45474556", "0.45436808" ]
0.6276523
0
URL url = null;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); binding = ActivitySignUpBinding.inflate(LayoutInflater.from(this)); setContentView(binding.getRoot()); binding.login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String name = binding.username.getText().toString(); String pass = binding.password.getText().toString(); if (TextUtils.isEmpty(name)) { binding.username.setError("this field can't be empty"); binding.username.setFocusable(true); return; } if (TextUtils.isEmpty(pass)) { binding.password.setError("this field can't be empty"); binding.password.setFocusable(true); return; } // User user = new User(name, "", mobile, pass, email,"0"); FirebaseFirestore.getInstance().collection("Admin").whereEqualTo("name",name).whereEqualTo("password",pass).get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() { @Override public void onComplete(@NonNull Task<QuerySnapshot> task) { if (task.isSuccessful()) { for (QueryDocumentSnapshot document : task.getResult()) { Map<String, Object> hm = document.getData(); String mobile1 = (String) hm.get("mobile"); String name1 = (String) hm.get("name"); String pass1 = (String) hm.get("password"); String email1 = (String) hm.get("email"); if (name.equalsIgnoreCase(name1)) { if (pass.equalsIgnoreCase(pass1)) { SharedPreferences mPrefs = getSharedPreferences("Digital", MODE_PRIVATE); SharedPreferences.Editor prefsEditor = mPrefs.edit(); prefsEditor.putString("user", "admin"); prefsEditor.commit(); check = false; Intent i = new Intent(SignUpAsAdmin.this, HomeActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(i); finish(); } } } if (check) Toast.makeText(SignUpAsAdmin.this, "Admin not found. Please check the filled information.", Toast.LENGTH_SHORT).show(); } else Toast.makeText(SignUpAsAdmin.this, "" + task.getException(), Toast.LENGTH_SHORT).show(); } }); // FirebaseFirestore.getInstance().collection("Admin").document(id).set(user).addOnCompleteListener(new OnCompleteListener<Void>() { // @Override // public void onComplete(@NonNull Task<Void> task) { // if(task.isSuccessful()){ // // }else{ // Toast.makeText(SignUpAsAdmin.this, ""+task.getException(), Toast.LENGTH_SHORT).show(); // } // } // }); // class AsyncTaskUploadClass extends AsyncTask<Void, Void, String> { // @Override // protected void onPreExecute() { // // super.onPreExecute(); // } // // @Override // protected void onPostExecute(String string1) { // super.onPostExecute(string1); // if(string1.equalsIgnoreCase("1")) { // SharedPreferences mPrefs=getSharedPreferences("Digital",MODE_PRIVATE); // SharedPreferences.Editor prefsEditor = mPrefs.edit(); // prefsEditor.putString("user", "admin"); // prefsEditor.commit(); // Intent i = new Intent(SignUpAsAdmin.this, HomeActivity.class); // startActivity(i); // finish(); // } // else{ // Toast.makeText(SignUpAsAdmin.this, "You are not an admin", Toast.LENGTH_SHORT).show(); // } // Log.e("spanshoe", "post execute" + string1); // } // // private String bufferedWriterDataFN(HashMap<String, String> HashMapParams) throws UnsupportedEncodingException { // // StringBuilder stringBuilderObject; // // stringBuilderObject = new StringBuilder(); // // for (Map.Entry<String, String> KEY : HashMapParams.entrySet()) { // // if (check) // // check = false; // else // stringBuilderObject.append("&"); // // stringBuilderObject.append(URLEncoder.encode(KEY.getKey(), "UTF-8")); // // stringBuilderObject.append("="); // // stringBuilderObject.append(URLEncoder.encode(KEY.getValue(), "UTF-8")); // } // // return stringBuilderObject.toString(); // } // // @Override // protected String doInBackground(Void... params) { // HashMap<String, String> HashMapParams = new HashMap<String, String>(); // // HashMapParams.put("name", name); // // HashMapParams.put("mobile", mobile); // HashMapParams.put("email", email); // HashMapParams.put("password", pass); // StringBuilder stringBuilder = new StringBuilder(); // // try { // HttpURLConnection httpURLConnectionObject; // OutputStream OutPutStream; // BufferedWriter bufferedWriterObject; // BufferedReader bufferedReaderObject; // int RC; // // url = new URL("https://192.168.137.1/aman/loginasadmin.php"); // Log.e("spanshoe", "image upload"); // HttpsTrustManager.allowAllSSL(); // httpURLConnectionObject = (HttpURLConnection) url.openConnection(); // // httpURLConnectionObject.setReadTimeout(19000); // // httpURLConnectionObject.setConnectTimeout(19000); // // httpURLConnectionObject.setRequestMethod("POST"); // // httpURLConnectionObject.setDoInput(true); // // httpURLConnectionObject.setDoOutput(true); // // OutPutStream = httpURLConnectionObject.getOutputStream(); // // bufferedWriterObject = new BufferedWriter( // // new OutputStreamWriter(OutPutStream, "UTF-8")); // // bufferedWriterObject.write(bufferedWriterDataFN(HashMapParams)); // // bufferedWriterObject.flush(); // // bufferedWriterObject.close(); // // OutPutStream.close(); // // RC = httpURLConnectionObject.getResponseCode(); // // if (RC == HttpsURLConnection.HTTP_OK) { // // bufferedReaderObject = new BufferedReader(new InputStreamReader(httpURLConnectionObject.getInputStream())); // // stringBuilder = new StringBuilder(); // // String RC2; // // while ((RC2 = bufferedReaderObject.readLine()) != null) { // // stringBuilder.append(RC2); // } // } // // } catch (Exception e) { // e.printStackTrace(); // } // return stringBuilder.toString(); // } // } // AsyncTaskUploadClass AsyncTaskUploadClassOBJ = new AsyncTaskUploadClass(); // // AsyncTaskUploadClassOBJ.execute(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setURL(String _url) { url = _url; }", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public void setURL(String url);", "public String getURL() { return url; }", "public void setURLObject(URL url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url);", "public void setUrl(String url);", "@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}", "public void setUrl(String url){\n\t\t_url=url;\n\t}", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "URL getUrl();", "public String getUrl(){\n \treturn url;\n }", "java.net.URL getUrl();", "public void setURL(String url) {\n\t\tthis.url = url;\n\t}", "public void set_url(String url) throws Exception{\n\t\tthis.url = url;\n\t}", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "public URL getURLObject() {\n\t\treturn url;\n\t}", "public void setUrl(String url){\n this.URL3 = url;\n }", "private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "private URLHelper() {\n\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\n\t\tthis.url = url == null ? null : url.trim();\n\t}", "public String getURL() {\r\n return url;\r\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public String getUrl() { return url; }", "public String getURL();", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setURL(String URL) {\n mURL = URL;\n }", "public void setUrl(String tmp) {\n this.url = tmp;\n }", "private void clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000002);\n url_ = getDefaultInstance().getUrl();\n }", "public void setUrl (java.lang.String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public String getURL() {\n return url;\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "private void clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public static String requestURL(String url) {\n return \"\";\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public HttpUrl url() {\n return url;\n }", "public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "@Override\r\n public String getURL() {\n return url;\r\n }", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public void setUrl(String url)\n {\n this.url = url;\n }", "public String getURL() {\n\t\treturn url;\n\t}", "@Override\n\tprotected URLConnection openConnection(final URL u) throws IOException {\n\t\treturn null;\n\t}", "public void setUrl(java.lang.String url) {\n this.url = url;\n }", "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "@Test\r\n public void nullUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(null);\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "public String getURL() {\n\t\treturn URL;\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public String getURL() {\n return mURL;\n }", "public java.net.URL getURL()\n {\n return m_URL;\n }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public abstract String getURL();", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "public void setServer(URL url) {\n\n\t}", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public URL getURL() {\n\t\treturn m_URL;\n\t}", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public void setURL(String url) {\n \t\tblueURL = url;\n\t}", "public String getUrl()\n {\n return url;\n }", "public java.lang.CharSequence getURL() {\n return URL;\n }", "private URLs() {\n }", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "public java.lang.String getURL() {\n return URL;\n }", "public T caseURL(URL object)\n {\n return null;\n }", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "String url();", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }", "private URL getUrl(String url) {\n URL requestUrl = null;\n try {\n requestUrl = new URL(url);\n } catch (MalformedURLException e) {\n LOG.severe(\"Error forming Url for GET request\");\n LOG.severe(e.toString());\n }\n return requestUrl;\n }", "public void setUrl(Uri url) {\n this.urlString = url.toString();\n }", "@Nullable\n public abstract String url();" ]
[ "0.7451992", "0.70683634", "0.702801", "0.70012504", "0.6916626", "0.6820959", "0.6820959", "0.6770706", "0.67400354", "0.66682774", "0.66682774", "0.66620046", "0.664501", "0.66289073", "0.6618517", "0.6607286", "0.6601547", "0.65800536", "0.65675175", "0.65537876", "0.65384436", "0.6532467", "0.6532467", "0.6532467", "0.6524111", "0.65105456", "0.6509236", "0.64919925", "0.64919925", "0.64919925", "0.6489423", "0.64870983", "0.6479256", "0.6479256", "0.6457114", "0.64558464", "0.64479846", "0.64436084", "0.64394575", "0.64394575", "0.64394575", "0.64394575", "0.64394575", "0.64394575", "0.64394575", "0.64394575", "0.6436224", "0.6428501", "0.64188635", "0.64053726", "0.64053726", "0.64053726", "0.64053726", "0.64053726", "0.64053726", "0.64053726", "0.64053726", "0.6404898", "0.6397588", "0.6397588", "0.6397588", "0.6397588", "0.63798547", "0.6371442", "0.63673764", "0.6360813", "0.6359406", "0.63454294", "0.63235575", "0.63195336", "0.63076586", "0.63021886", "0.6298552", "0.62966263", "0.62907964", "0.62907815", "0.62857455", "0.62696403", "0.6260114", "0.6236372", "0.62048686", "0.61983263", "0.6185538", "0.6163757", "0.61249834", "0.61021894", "0.61021894", "0.60922843", "0.6086428", "0.6072487", "0.60586464", "0.60580915", "0.6056952", "0.60503215", "0.6042447", "0.60274184", "0.60247666", "0.60207736", "0.6019387", "0.6009147", "0.5995441" ]
0.0
-1
It retrieves the getAxisValue class's values, deadzones, and then it calls the ramp method, which regresses it to be a cubu=ic function rather than a line
public static double [] getFinalAxis(double gyro){ return (ramp(adjustGetAxisValue(gyro))); //return (ramp(getAxisValue())); //three things happen in this class. //1)you get axis values //2)then you deadzone the values //3) You transform the deadzoned values into a cubic equation }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void calculateValues(DataContext ctx)\r\n {\r\n\t//Common MTF Inputs\r\n\tint mtfPeriod = getSettings().getInteger(MTF_MULTIPLIER);\r\n Object mtfInput = getSettings().getInput(SMI_INPUT, Enums.BarInput.CLOSE);\r\n \r\n int mtfSmooth = getSettings().getInteger(SMI_SMOOTH);\r\n int mtfSignal = getSettings().getInteger(SMI_SIGNAL);\r\n int mtfHLinc = getSettings().getInteger(SMI_HL_MTF_INC);\r\n int mtfMAinc = getSettings().getInteger(SMI_MA_MTF_INC);\r\n \r\n\tint mtfHL = getSettings().getInteger(SMI_HL1_MTF);\r\n\tint mtfMA = getSettings().getInteger(SMI_MA1_MTF);\r\n \r\n /* MTF Bar sizing */\r\n BarSize barSize = ctx.getChartBarSize(); //Gets the barsize off the chart\r\n int mtfbarint = barSize.getInterval(); //Gets the interval of the chart\r\n int barSizeint = mtfbarint * mtfPeriod; //Multiply the interval by the mtf multiplier\r\n \r\n //Calculates a longer period interval based upon the mtfPeriod\r\n BarSize barSizeNew = barSize.getBarSize(barSize.getType(), barSizeint); \r\n //Assembes the longer period timeframe series\r\n DataSeries series2 = ctx.getDataSeries(barSizeNew);\r\n\r\n String valStringOut; //variables for the return results\r\n String valStringD;\r\n String valStringHL;\r\n String valStringD_MA;\r\n String valStringHL_MA;\r\n int hlPeriodmtf;\r\n int maPeriodmtf;\r\n \r\n StudyHeader header = getHeader();\r\n boolean updates = getSettings().isBarUpdates() || (header != null && header.requiresBarUpdates());\r\n\r\n // Calculates Moving Average for the Secondary Data Series\r\n for(int i = 1; i < series2.size(); i++) {\r\n if (series2.isComplete(i)) continue;\r\n if (!updates && !series2.isBarComplete(i)) continue;\r\n //Double sma = series2.ma(MAMethod.SMA, i, mtfPeriod, mtfInput);\r\n \r\n //insert smi logic\r\n for(int j = 1; j <= 4; j++) {\r\n \t \r\n switch (j) {\r\n case 1:\r\n \t valStringOut \t = \"Values.MTF1\"; //D1, HL1, D_MA1, HL_MA1 mtfHLinc\r\n \t valStringD \t = \"Values.D1\";\r\n \t valStringHL \t = \"Values.HL1\";\r\n \t valStringD_MA\t = \"Values.D_MA1\";\r\n \t valStringHL_MA = \"Values.HL_MA1\";\r\n \t hlPeriodmtf = mtfHL; //Base HL\r\n \t maPeriodMA = mtfMA; //Base MA\r\n \t break;\r\n case 2:\r\n \t valStringOut = \"Values.MTF2\";\r\n \t valStringD \t = \"Values.D2\";\r\n \t valStringHL \t = \"Values.HL2\";\r\n \t valStringD_MA\t = \"Values.D_MA2\";\r\n \t valStringHL_MA = \"Values.HL_MA2\";\r\n \t hlPeriodmtf = mtfHL + mtfHLinc; //Base HL + Increment\r\n \t maPeriodMA = mtfMA + mtfMAinc; //Base MA + Increment \t \r\n \t break;\r\n case 3:\r\n \t valStringOut = \"Values.MTF3\";\r\n \t valStringD \t = \"Values.D3\";\r\n \t valStringHL \t = \"Values.HL3\";\r\n \t valStringD_MA\t = \"Values.D_MA3\";\r\n \t valStringHL_MA = \"Values.HL_MA3\";\r\n \t hlPeriodmtf = mtfHL + (mtfHLinc*2); //Base HL + Increment*2\r\n \t maPeriodMA = mtfMA + (mtfMAinc*2); //Base MA + Increment*2 \t \r\n \t break;\r\n case 4:\r\n \t valStringOut = \"Values.MTF4\";\r\n \t valStringD \t = \"Values.D4\";\r\n \t valStringHL \t = \"Values.HL4\";\r\n \t valStringD_MA\t = \"Values.D_MA4\";\r\n \t valStringHL_MA = \"Values.HL_MA4\";\r\n \t hlPeriodmtf = mtfHL + (mtfHLinc*3); //Base HL + Increment\r\n \t maPeriodMA = mtfMA + (mtfMAinc*3); //Base MA + Increment\r\n \t break;\r\n default:\r\n \t break;\t \r\n } //end switch\r\n \r\n //base HL period is mtfHL\r\n if (i < mtfHL) return;\r\n\r\n double HH = series2.highest(i, hlPeriodmtf, Enums.BarInput.HIGH);\r\n double LL = series2.lowest(i, hlPeriodmtf, Enums.BarInput.LOW);\r\n double M = (HH + LL)/2.0;\r\n double D = series2.getClose(i) - M;\r\n \r\n series.setDouble(i, valStringD, D);\r\n series.setDouble(i, valStringHL, HH - LL);\r\n \r\n int maPeriod = getSettings().getInteger(MA_PERIOD);\r\n if (index < hlPeriod + maPeriod) return;\r\n \r\n Enums.MAMethod method = getSettings().getMAMethod(Inputs.METHOD);\r\n series.setDouble(index, Values.D_MA, series.ma(method, index, maPeriod, Values.D));\r\n series.setDouble(index, Values.HL_MA, series.ma(method, index, maPeriod, Values.HL));\r\n \r\n int smoothPeriod= getSettings().getInteger(SMOOTH_PERIOD);\r\n if (index < hlPeriod + maPeriod + smoothPeriod) return;\r\n \r\n Double D_SMOOTH = series.ma(method, index, smoothPeriod, Values.D_MA);\r\n Double HL_SMOOTH = series.ma(method, index, smoothPeriod, Values.HL_MA);\r\n \r\n if (D_SMOOTH == null || HL_SMOOTH == null) return;\r\n double HL2 = HL_SMOOTH/2;\r\n double SMI = 0;\r\n if (HL2 != 0) SMI = 100 * (D_SMOOTH/HL2);\r\n\r\n series.setDouble(index, Values.SMI, SMI);\r\n\r\n int signalPeriod= getSettings().getInteger(Inputs.SIGNAL_PERIOD);\r\n if (index < hlPeriod + maPeriod + smoothPeriod + signalPeriod) return;\r\n\r\n Double signal = series.ma(method, index, signalPeriod, Values.SMI);\r\n if (signal == null) return;\r\n series.setDouble(index, Values.SMI_SIGNAL, signal);\r\n\r\n \r\n \r\n } //end j bracket\r\n \r\n \r\n \r\n \r\n \r\n series2.setDouble(i, Values.MTF, sma);\r\n }\r\n\r\n // Invoke the parent method to run the \"calculate\" method below for the primary (chart) data series\r\n super.calculateValues(ctx);\r\n }", "public static double[] ramp(double[] axis){\n\t\t\n\t\t\t//if you want to graph it, it is y=0.66x^3+0.33x\n\t\t\n\t\tfor(byte x = 0; x < 3 ; x++){\n\t\t\taxis[x] = (0.6667 * (Math.pow(axis[x], 3))+(0.333 * axis[x]));\n\t\t}\n\t\t\n\t\treturn (axis);\n\t}", "public String _setvalue(int _v) throws Exception{\n_mvalue = (int) (__c.Max(_mmin,__c.Min(_mmax,_v)));\n //BA.debugLineNum = 149;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 150;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Test\n public void test67() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DatasetRenderingOrder datasetRenderingOrder0 = DatasetRenderingOrder.FORWARD;\n combinedRangeCategoryPlot0.setDatasetRenderingOrder(datasetRenderingOrder0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis();\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n Number[][] numberArray0 = new Number[3][5];\n Number[] numberArray1 = new Number[5];\n double double0 = SpiderWebPlot.DEFAULT_AXIS_LABEL_GAP;\n numberArray1[0] = (Number) 0.1;\n int int0 = SystemColor.INFO;\n numberArray1[1] = (Number) 24;\n int int1 = TransferHandler.MOVE;\n numberArray1[2] = (Number) 2;\n int int2 = MockThread.MIN_PRIORITY;\n numberArray1[3] = (Number) 1;\n int int3 = ColorSpace.TYPE_ACLR;\n numberArray1[4] = (Number) 20;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[2];\n byte byte0 = Character.CONTROL;\n numberArray2[0] = (Number) (byte)15;\n int int4 = ThermometerPlot.BULB_DIAMETER;\n numberArray2[1] = (Number) 80;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[8];\n Object[][][] objectArray0 = new Object[2][8][7];\n objectArray0[0] = (Object[][]) numberArray0;\n objectArray0[1] = (Object[][]) numberArray0;\n DefaultWindDataset defaultWindDataset0 = null;\n try {\n defaultWindDataset0 = new DefaultWindDataset(objectArray0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n assertThrownBy(\"org.jfree.data.xy.DefaultWindDataset\", e);\n }\n }", "double getAxon();", "public void updateChart() {\n\t\tdouble val_min = Double.MAX_VALUE;\n\t\tdouble val_max = -Double.MAX_VALUE;\n\t\tVector<CurveData> cdV = new Vector<CurveData>();\n\n\t\tint maxMarkLength = 1;\n\t\tint nClmns = barColumns.size();\n\t\tint nMaxLines = 0;\n\t\tfor ( final BarColumn bc : barColumns ) {\n\t\t\tif (bc.show()) {\n\t\t\t\tfor (int j = 0; j < bc.size(); j++) {\n\t\t\t\t\tif (val_min > bc.value(j)) {\n\t\t\t\t\t\tval_min = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t\tif (val_max < bc.value(j)) {\n\t\t\t\t\t\tval_max = bc.value(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\tnMaxLines = bc.size();\n\t\t\t}\n\t\t\tif (maxMarkLength < bc.marker().length()) {\n\t\t\t\tmaxMarkLength = bc.marker().length();\n\t\t\t}\n\t\t}\n\n\t\tString tmp_str = \"\";\n\t\tfor (int i = 0; i < maxMarkLength; i++) {\n\t\t\ttmp_str = tmp_str + \" \";\n\t\t}\n\t\temptyStr = tmp_str;\n\n\t\t//System.out.println(\"debug =========== val_min=\" + val_min + \" val_max=\" + val_max);\n\n\t\tif (val_min * val_max > 0.) {\n\t\t\tif (val_min > 0.) {\n\t\t\t\tval_min = 0.;\n\t\t\t} else {\n\t\t\t\tval_max = 0.;\n\t\t\t}\n\t\t}\n\n\t\tint iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\tint iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t//System.out.println(\"debug iMin=\" + iMin + \" iMax=\" + iMax);\n\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t//System.out.println(\"debug width=\" + width);\n\t\tif (width < 1) {\n\t\t\twidth = 1;\n\t\t}\n\n\t\t//make line from\n\t\tCurveData cd = cvV.get(0);\n\t\tif (nClmns > 0) {\n\t\t\tcd.clear();\n\t\t\tcd.addPoint(0., 0.);\n\t\t\tcd.addPoint(1.0 * (nClmns + 1), 0.);\n\t\t\tcd.setColor(Color.black);\n\t\t\tcd.setLineWidth(1);\n\t\t\tcd.findMinMax();\n\t\t\tcdV.add(cd);\n\t\t}\n\n\t\tint cvCount = 1;\n\t\tfor (int i = 1; i <= nClmns; i++) {\n\t\t\tBarColumn bc = barColumns.get(i - 1);\n\t\t\tif (bc.show()) {\n\t\t\t\tdouble d_min = i - 0.35;\n\t\t\t\tdouble d_max = i + 0.35;\n\t\t\t\tint nL = bc.size();\n\t\t\t\tdouble st = (d_max - d_min) / nL;\n\t\t\t\tfor (int j = 0; j < nL; j++) {\n\t\t\t\t\tif (bc.show(j)) {\n\t\t\t\t\t\tif(cvCount < cvV.size()){\n\t\t\t\t\t\t\tcd = cvV.get(cvCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcd = new CurveData();\n\t\t\t\t\t\t\tcvV.add(cd);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.clear();\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, 0.);\n\t\t\t\t\t\tcd.addPoint(d_min + (j + 0.5) * st, bc.value(j));\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t\tif (bc.getColor(j) == null) {\n\t\t\t\t\t\t\tcd.setColor(bcColor.getColor(j));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcd.setColor(bc.getColor(j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcd.findMinMax();\n\t\t\t\t\t\tcdV.add(cd);\n\t\t\t\t\t\tcvCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//System.out.println(\"debug ===========start plotting=============== nClmns= \" + nClmns);\n\t\tif (val_min < val_max) {\n\t\t\tformatter.makeAnalysis(val_min, val_max);\n\t\t\tGP.setNumberFormatY(formatter.getFormat());\n\t\t\tGP.setLimitsAndTicksY(formatter.getMin(), formatter.getMax(), formatter.getStep());\n\t\t}\n\n\t\tif (barColumns.size() >= 10) {\n\t\t\tGP.getCurrentGL().setXminOn(false);\n\t\t\tGP.getCurrentGL().setXmaxOn(false);\n\t\t}\n\n\t\tif (cdV.size() > 0) {\n\t\t\tGP.setCurveData(cdV);\n\t\t} else {\n\t\t\tGP.removeAllCurveData();\n\t\t}\n\t}", "@Override protected void updateAxisRange() {\n final Axis<X> xa = getXAxis();\n final Axis<Y> ya = getYAxis();\n List<X> xData = null;\n List<Y> yData = null;\n if(xa.isAutoRanging()) xData = new ArrayList<X>();\n if(ya.isAutoRanging()) yData = new ArrayList<Y>();\n if(xData != null || yData != null) {\n for(Series<X,Y> series : getData()) {\n for(Data<X,Y> data: series.getData()) {\n if(xData != null) {\n xData.add(data.getXValue());\n xData.add(xa.toRealValue(xa.toNumericValue(data.getXValue()) + getLength(data.getExtraValue())));\n }\n if(yData != null){\n yData.add(data.getYValue());\n }\n }\n }\n if(xData != null) xa.invalidateRange(xData);\n if(yData != null) ya.invalidateRange(yData);\n }\n }", "@Override\n protected void updateAxisRange(){\n Axis<X> xAxis = getXAxis();\n Axis<Y> yAxis = getYAxis();\n ArrayList<X> xList = null;\n ArrayList<Y> yList = null;\n if(xAxis.isAutoRanging()) { xList = new ArrayList<>(); }\n if(yAxis.isAutoRanging()) { yList = new ArrayList<>(); }\n\n if(xAxis != null || yAxis != null) {\n for (Series<X, Y> series : getData()) {\n for (Data<X, Y> data : series.getData()) {\n if(xList != null) {\n xList.add(data.getXValue());\n xList.add(xAxis.toRealValue(xAxis.toNumericValue(data.getXValue())\n + getLength(data.getExtraValue())));\n }\n if(yList != null) {\n yList.add(data.getYValue());\n }\n }\n }\n if(xList != null) { xAxis.invalidateRange(xList); }\n if(yList != null) { yAxis.invalidateRange(yList); }\n }\n\n }", "@Test\n public void testGetVerticalQuietZone() {\n System.out.println(\"getVerticalQuietZone\");\n AbstractBarcodeBean instance = new AbstractBarcodeBeanImpl();\n double expResult = 10.0;\n instance.setQuietZone(expResult);\n double result = instance.getVerticalQuietZone();\n assertEquals(expResult, result, 0.0);\n instance.setVerticalQuietZone(expResult * 2);\n result = instance.getVerticalQuietZone();\n assertEquals(expResult * 2, result, 0.0);\n }", "@Test\n public void test76() throws Throwable {\n SimpleTimeZone simpleTimeZone0 = new SimpleTimeZone((-614), \"\", 0, 0, 0, (-1), 0, 0, 3473, (-1));\n DateAxis dateAxis0 = new DateAxis(\"\", (TimeZone) simpleTimeZone0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot((ValueAxis) dateAxis0);\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeXYPlot0.getDomainZeroBaselineStroke();\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n PipedOutputStream pipedOutputStream0 = new PipedOutputStream(pipedInputStream0);\n DataOutputStream dataOutputStream0 = new DataOutputStream((OutputStream) pipedOutputStream0);\n ObjectOutputStream objectOutputStream0 = new ObjectOutputStream((OutputStream) dataOutputStream0);\n SerialUtilities.writeStroke(basicStroke0, objectOutputStream0);\n SystemColor systemColor0 = SystemColor.text;\n LookupPaintScale lookupPaintScale0 = new LookupPaintScale((double) 0, 1955.7194307587054, (Paint) systemColor0);\n PaintScaleLegend paintScaleLegend0 = new PaintScaleLegend((PaintScale) lookupPaintScale0, (ValueAxis) dateAxis0);\n AxisLocation axisLocation0 = paintScaleLegend0.getAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(334, axisLocation0);\n }", "@Override\n public void accVertical(int value, int timestamp) {\n }", "@Test\n public void test72() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.mapDatasetToDomainAxis(304, 908);\n Point2D.Double point2D_Double0 = new Point2D.Double((double) 304, (double) 908);\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_LEFT;\n combinedRangeCategoryPlot0.setRangeAxisLocation(908, axisLocation0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n combinedRangeCategoryPlot0.setDomainAxis((CategoryAxis) categoryAxis3D0);\n point2D_Double0.x = 4978.54542523173;\n String string0 = combinedRangeCategoryPlot0.getPlotType();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n DateAxis dateAxis0 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n valueAxisArray0[0] = (ValueAxis) dateAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-1.0), (double) 304);\n valueAxisArray0[1] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis numberAxis0 = new NumberAxis(\"z)m!{V![\");\n valueAxisArray0[2] = (ValueAxis) numberAxis0;\n SimpleDateFormat simpleDateFormat0 = (SimpleDateFormat)DateFormat.getInstance();\n ZoneInfo zoneInfo0 = (ZoneInfo)simpleDateFormat0.getTimeZone();\n DateAxis dateAxis1 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\", (TimeZone) zoneInfo0);\n valueAxisArray0[3] = (ValueAxis) dateAxis1;\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset();\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[4] = (ValueAxis) numberAxis1;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"z)m!{V![\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"%}~t|T'c.q2O/M@;Vu5\";\n stringArray0[3] = \"?_t}%h[qlt\";\n stringArray0[4] = \"z)m!{V![\";\n stringArray0[5] = \"z)m!{V![\";\n stringArray0[6] = \"d*%)TD6zCx!%m^]|\";\n }", "float getAccX();", "T setValueAxes(List<ValueAxis> valueAxes);", "protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }", "public void setAutoRange() {\n this.customAxis=false;\n addGraphPanel();\n }", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public void setAxisProperties(Axis axis) {\n/* 413 */ super.setAxisProperties(axis);\n/* 414 */ ValueAxis valueAxis = (ValueAxis)axis;\n/* 415 */ valueAxis.setAutoRange(this.autoRange);\n/* 416 */ if (!this.autoRange) {\n/* 417 */ valueAxis.setRange(this.minimumValue, this.maximumValue);\n/* */ }\n/* 419 */ valueAxis.setAutoTickUnitSelection(this.autoTickUnitSelection);\n/* */ }", "public double[] getAxisValues(ExecutionIterable iteration) {\n\t\treturn new double[] { xField.extractValue(iteration),\n\t\t\t\tyField.extractValue(iteration) };\n\t}", "@Override\r\n\tpublic void precalc()\r\n\t{\n\t\tthis.axisLine = new Line2d( (float)this.config.getMinValue(), 0,\r\n\t\t\t\t(float)this.config.getMaxValue(), 0 );\r\n\r\n\t\t// Transform to (0,0) in data units\r\n\t\tthis.transform = TransformUtilities.translateMatrix( -this.config.getMinValue(), 0 );\r\n\r\n\t\t// Scale to pixels\r\n\t\tthis.currentScale = this.axisLength / (this.config.getMaxValue() - this.config.getMinValue());\r\n\t\tthis.transform = TransformUtilities.scaleMatrix( (float)this.currentScale, 1 )\r\n\t\t\t\t.times(this.transform);\r\n\r\n\t\t// Rotate to the preferred orientation\r\n\t\tthis.transform = TransformUtilities.rotationMatrix( this.config.getOrientation()[0] )\r\n\t\t\t\t.times(this.transform);\r\n\r\n\t\t// Translate to the preferred position\r\n\t\tthis.transform = TransformUtilities.translateMatrix(\r\n\t\t\t\tthis.config.getLocation()[0], this.config.getLocation()[1] )\r\n\t\t\t\t.times( this.transform );\r\n\r\n\t\t// Transform the axis\r\n\t\tthis.axisLine = this.axisLine.transform( this.transform );\r\n\t}", "@Test\n public void test09() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"Null 'marker' not permitted.\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers(0, layer0);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeCrosshairLockedOnData();\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset0 = new DefaultMultiValueCategoryDataset();\n combinedDomainCategoryPlot0.setDataset((CategoryDataset) defaultMultiValueCategoryDataset0);\n ValueAxis[] valueAxisArray0 = new ValueAxis[8];\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[0] = (ValueAxis) logarithmicAxis0;\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Null 'marker' not permitted.\");\n valueAxisArray0[1] = (ValueAxis) numberAxis3D0;\n LogarithmicAxis logarithmicAxis1 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[2] = (ValueAxis) logarithmicAxis1;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((double) 0);\n valueAxisArray0[3] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis numberAxis0 = new NumberAxis();\n valueAxisArray0[4] = (ValueAxis) numberAxis0;\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n Locale locale0 = JComponent.getDefaultLocale();\n TimeTableXYDataset timeTableXYDataset0 = new TimeTableXYDataset((TimeZone) zoneInfo0, locale0);\n Range range0 = timeTableXYDataset0.getDomainBounds(true);\n ModuloAxis moduloAxis0 = null;\n try {\n moduloAxis0 = new ModuloAxis(\"\", (Range) null);\n } catch(TooManyResourcesException e) {\n //\n // Loop has been executed more times than the allowed 10000\n //\n assertThrownBy(\"org.evosuite.runtime.LoopCounter\", e);\n }\n }", "@Override\n\tpublic List<Double> computeValues() {\n\t\treturn null;\n\t}", "private ArrayList<String> setXAxisValues(){\n ArrayList<String> xVals = new ArrayList<String>();\n for (int z = 0; z < 235; z++) {\n xVals.add(Integer.toString(waveArray[z]));\n }\n return xVals;\n }", "void addAxis(final CalibratedAxis axis, final long value);", "protected void execute() {\r\n timespan = date.getTime() - lastTime;\r\n allaxes = accelerometer.GetAcceleration();\r\n velocityX = velocityX + allaxes.XAxis * timespan;\r\n velocityY = velocityY + allaxes.YAxis * timespan;\r\n theDash.log(velocityX,\"X\");\r\n }", "@Override\r\n protected double computeValue()\r\n {\n return interpFlow.getValue(Scheduler.getCurrentTime());\r\n }", "protected void autoAdjustRange() {\n/* 1284 */ Plot plot = getPlot();\n/* */ \n/* 1286 */ if (plot == null) {\n/* */ return;\n/* */ }\n/* */ \n/* 1290 */ if (plot instanceof ValueAxisPlot) {\n/* 1291 */ ValueAxisPlot vap = (ValueAxisPlot)plot;\n/* */ \n/* 1293 */ DateRange dateRange = vap.getDataRange(this);\n/* 1294 */ if (dateRange == null) {\n/* 1295 */ if (this.timeline instanceof SegmentedTimeline) {\n/* */ \n/* */ \n/* */ \n/* 1299 */ DateRange dateRange1 = new DateRange(((SegmentedTimeline)this.timeline).getStartTime(), (((SegmentedTimeline)this.timeline).getStartTime() + 1L));\n/* */ }\n/* */ else {\n/* */ \n/* 1303 */ dateRange = new DateRange();\n/* */ } \n/* */ }\n/* */ \n/* 1307 */ long upper = this.timeline.toTimelineValue(\n/* 1308 */ (long)dateRange.getUpperBound());\n/* */ \n/* 1310 */ long fixedAutoRange = (long)getFixedAutoRange();\n/* 1311 */ if (fixedAutoRange > 0.0D) {\n/* 1312 */ lower = upper - fixedAutoRange;\n/* */ } else {\n/* */ \n/* 1315 */ lower = this.timeline.toTimelineValue((long)dateRange.getLowerBound());\n/* 1316 */ double range = (upper - lower);\n/* 1317 */ long minRange = (long)getAutoRangeMinimumSize();\n/* 1318 */ if (range < minRange) {\n/* 1319 */ long expand = (long)(minRange - range) / 2L;\n/* 1320 */ upper += expand;\n/* 1321 */ lower -= expand;\n/* */ } \n/* 1323 */ upper += (long)(range * getUpperMargin());\n/* 1324 */ lower -= (long)(range * getLowerMargin());\n/* */ } \n/* */ \n/* 1327 */ upper = this.timeline.toMillisecond(upper);\n/* 1328 */ long lower = this.timeline.toMillisecond(lower);\n/* 1329 */ DateRange dr = new DateRange(new Date(lower), new Date(upper));\n/* 1330 */ setRange(dr, false, false);\n/* */ } \n/* */ }", "private void parseAxis() {\n\t\tparseCategoryAxis();\n\t\tparseDateAxis();\n\t\tparseValueAxis();\n\t}", "public void setX_ValuesForHazardCurve(){\n useCustomX_Values = false;\n }", "@Test\n public void test65() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n rectangle2D_Double0.y = 0.0;\n categoryPlot0.setRangeGridlinesVisible(false);\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, 0.0, 0.0, 4.0);\n line2D_Double0.y1 = 0.0;\n Rectangle2D.Double rectangle2D_Double1 = new Rectangle2D.Double();\n rectangle2D_Double1.setFrameFromDiagonal(0.0, 6.0, 0.0, 0.0);\n double double0 = rectangle2D_Double1.y;\n ValueAxis[] valueAxisArray0 = new ValueAxis[4];\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"\");\n valueAxisArray0[0] = (ValueAxis) numberAxis3D0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, \"+k\");\n Range range0 = numberAxis3D0.getRange();\n valueAxisArray0[1] = (ValueAxis) cyclicNumberAxis0;\n CyclicNumberAxis cyclicNumberAxis1 = new CyclicNumberAxis((-641.9), \"uLBz=!Lx,@4\");\n valueAxisArray0[2] = (ValueAxis) cyclicNumberAxis1;\n PeriodAxis periodAxis0 = null;\n try {\n periodAxis0 = new PeriodAxis(\"\", (RegularTimePeriod) null, (RegularTimePeriod) null);\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.jfree.chart.axis.PeriodAxis\", e);\n }\n }", "public abstract double[] getUpperBound();", "public abstract double getValue();", "public ChartPanel getChartPanel(){ \n\t\t return CPUframe; \n\t}", "@Test\n public void getValuesTest() {\n final double[] envelope = new double[]{-3, 2, 0, 1, 4, 0};\n\n //mins\n assertTrue(envelope[0] == getMinimum(envelope, 0));\n assertTrue(envelope[1] == getMinimum(envelope, 1));\n assertTrue(envelope[2] == getMinimum(envelope, 2));\n\n //maxs\n assertTrue(envelope[3] == getMaximum(envelope, 0));\n assertTrue(envelope[4] == getMaximum(envelope, 1));\n assertTrue(envelope[5] == getMaximum(envelope, 2));\n\n //spans\n assertTrue(4 == getSpan(envelope, 0));\n assertTrue(2 == getSpan(envelope, 1));\n assertTrue(0 == getSpan(envelope, 2));\n }", "@XmlElement(name = \"upper\")\n public void setUpperValue(double value) {\n this.upperMeasure = Measure.valueOf(value, units);\n }", "public GraphicalView execute(Context context) {\r\n double[] minValues = new double[] { 4300, 3500, 5300, 4900, 3800, 2900, };\r\n double[] maxValues = new double[] { 8000,7000, 9700, 8600, 7000, 6500};\r\n\r\n XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();\r\n RangeCategorySeries series = new RangeCategorySeries(\"波动情况\");\r\n int length = minValues.length;\r\n for (int k = 0; k < length; k++) {\r\n series.add(minValues[k], maxValues[k]);\r\n }\r\n dataset.addSeries(series.toXYSeries());\r\n int[] colors = new int[] { Color.CYAN };\r\n XYMultipleSeriesRenderer renderer = buildBarRenderer(colors);\r\n setChartSettings(renderer, \"好友们最近一周的能量波动范围\", \"用户\", \"能量值\", 0.5, 6.5,\r\n 2000, 12000, Color.GRAY, Color.LTGRAY);\r\n renderer.setBarSpacing(1);\r\n renderer.setXLabels(0);\r\n renderer.setYLabels(10);\r\n renderer.addXTextLabel(1, \"任东卫\");\r\n renderer.addXTextLabel(2, \"罗智宜\");\r\n renderer.addXTextLabel(3, \"郭子涵\");\r\n renderer.addXTextLabel(4, \"谢以荷\");\r\n renderer.addXTextLabel(5, \"赵一援\");\r\n renderer.addXTextLabel(6, \"萧之雁\");\r\n renderer.addYTextLabel(3000, \"心情差\");\r\n renderer.addYTextLabel(4500, \"心情有点差\");\r\n renderer.addYTextLabel(6000, \"心情一般\");\r\n renderer.addYTextLabel(8500, \"心情棒\");\r\n renderer.setMargins(new int[] {30, 70, 30, 70});\r\n renderer.setYLabelsAlign(Align.RIGHT);\r\n SimpleSeriesRenderer r = renderer.getSeriesRendererAt(0);\r\n r.setDisplayChartValues(true);\r\n r.setChartValuesTextSize(12);\r\n r.setChartValuesSpacing(3);\r\n r.setGradientEnabled(true);\r\n r.setGradientStart(4000, Color.parseColor(\"#B0C4DE\"));\r\n r.setGradientStop(8000, Color.parseColor(\"#00AAAA\"));\r\n return ChartFactory.getRangeBarChartView(context, dataset, renderer, Type.DEFAULT);\r\n }", "private void setBarValues() {\n\t\t// Get highest value\n\t\tint iMax = 0;\n\t\tdouble dMax = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (dMax < a[i]) {\n\t\t\t\tiMax = i;\n\t\t\t\tdMax = a[i];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t// Highlight leading alternative\n\t\t\tif (i == iMax)\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.NORMAL);\n\t\t\telse\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.PAUSED);\n\t\t}\n\t}", "protected abstract void setValues(double[] values);", "float getAccY();", "private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}", "public double java2DToValue(double java2DValue, Rectangle2D area, RectangleEdge edge) {\n/* */ double result;\n/* 852 */ DateRange range = (DateRange)getRange();\n/* 853 */ double axisMin = this.timeline.toTimelineValue(range.getLowerMillis());\n/* 854 */ double axisMax = this.timeline.toTimelineValue(range.getUpperMillis());\n/* */ \n/* 856 */ double min = 0.0D;\n/* 857 */ double max = 0.0D;\n/* 858 */ if (RectangleEdge.isTopOrBottom(edge)) {\n/* 859 */ min = area.getX();\n/* 860 */ max = area.getMaxX();\n/* */ }\n/* 862 */ else if (RectangleEdge.isLeftOrRight(edge)) {\n/* 863 */ min = area.getMaxY();\n/* 864 */ max = area.getY();\n/* */ } \n/* */ \n/* */ \n/* 868 */ if (isInverted()) {\n/* 869 */ result = axisMax - (java2DValue - min) / (max - min) * (axisMax - axisMin);\n/* */ }\n/* */ else {\n/* */ \n/* 873 */ result = axisMin + (java2DValue - min) / (max - min) * (axisMax - axisMin);\n/* */ } \n/* */ \n/* */ \n/* 877 */ return this.timeline.toMillisecond((long)result);\n/* */ }", "public void onAccVal (float ax, float ay, float az, long ts)\r\n\t{\r\n\t\t++nAccVal;\r\n\t\t++last_nAccVal;\r\n\t\t\t\t\r\n\t\tacc_val.accx = -ax;\r\n\t\tacc_val.accy = ay;\r\n\t\tacc_val.accz = az;\r\n\t\tacc_val.ms = ts;\r\n\t\t\t\r\n\t\tacc_val.roll = (float)Math.atan2 (ax,az);\r\n\t\tacc_val.pitch = (float)Math.atan2 (ay,az);\r\n\t\t\t\r\n\t\tacc_val.roll = (float)((acc_val.roll*180.0)/Math.PI);\r\n\t\tacc_val.pitch = (float)((acc_val.pitch*180.0)/Math.PI);\r\n\t\t\r\n\t\tif (true)\r\n\t\t{\r\n\t\t\tdouble coeff = 1/9.81;\r\n\t\t\tacc_val.accx=(float)(acc_val.accx*coeff);\r\n\t\t\tacc_val.accy=(float)(acc_val.accy*coeff);\r\n\t\t\tacc_val.accz=(float)(acc_val.accz*coeff);\r\n\t\t}\r\n\t\tif (ts-last_data_ts>(1000/3)*1000000)\r\n\t\t{\r\n\t\t\tUI_RefreshSensorData ();\r\n\t\t\tlast_data_ts=ts;\r\n\t\t}\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tif (_bbCanSend && _bbStartSend) sendData (acc_val);\r\n\t\t}\r\n\t}", "@Test\n public void test52() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n Color color0 = (Color)combinedRangeCategoryPlot0.getDomainGridlinePaint();\n cyclicNumberAxis0.setAxisLineVisible(false);\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, (-1489.688195002), 0.0, 0.0);\n line2D_Double0.x1 = (-1489.688195002);\n line2D_Double0.y2 = 0.0;\n line2D_Double0.x1 = 2.0;\n double double0 = line2D_Double0.getY2();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis(1);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation((-2.147483648E9), 0.75);\n double double1 = point2D_Double0.getX();\n combinedRangeCategoryPlot0.configureRangeAxes();\n Range range0 = combinedRangeCategoryPlot0.getDataRange(cyclicNumberAxis0);\n }", "protected void calcMinMax() {\n if (this.mDataSets != null) {\n T t;\n this.mYMax = -3.4028235E38f;\n this.mYMin = Float.MAX_VALUE;\n this.mXMax = -3.4028235E38f;\n this.mXMin = Float.MAX_VALUE;\n Iterator<T> iterator = this.mDataSets.iterator();\n while (iterator.hasNext()) {\n this.calcMinMax((IDataSet)iterator.next());\n }\n this.mLeftAxisMax = -3.4028235E38f;\n this.mLeftAxisMin = Float.MAX_VALUE;\n this.mRightAxisMax = -3.4028235E38f;\n this.mRightAxisMin = Float.MAX_VALUE;\n T t2 = this.getFirstLeft(this.mDataSets);\n if (t2 != null) {\n this.mLeftAxisMax = t2.getYMax();\n this.mLeftAxisMin = t2.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.LEFT) continue;\n if (iDataSet.getYMin() < this.mLeftAxisMin) {\n this.mLeftAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mLeftAxisMax)) continue;\n this.mLeftAxisMax = iDataSet.getYMax();\n }\n }\n if ((t = this.getFirstRight(this.mDataSets)) != null) {\n this.mRightAxisMax = t.getYMax();\n this.mRightAxisMin = t.getYMin();\n for (IDataSet iDataSet : this.mDataSets) {\n if (iDataSet.getAxisDependency() != YAxis.AxisDependency.RIGHT) continue;\n if (iDataSet.getYMin() < this.mRightAxisMin) {\n this.mRightAxisMin = iDataSet.getYMin();\n }\n if (!(iDataSet.getYMax() > this.mRightAxisMax)) continue;\n this.mRightAxisMax = iDataSet.getYMax();\n }\n }\n }\n }", "public static double[] deadZone(double[] axis){\n\t\tfor (int i = 0; i< axis.length; i++){\n\t\t\tif ((axis[i] <= 0.05) && (axis[i] >= -0.05)) {//i will iterate to 0,1,2 since axis array size is 3\n\t\t\t\taxis[i] = 0;//if the condition is satisfies, round it to zero\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(axis.length);\n\t\treturn axis;\n\t}", "@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }", "public double translateValue(Record record, double value) {\n\t\tdouble factor = record.getFactor(); // != 1 if a unit translation is required\n\t\tdouble offset = record.getOffset(); // != 0 if a unit translation is required\n\t\tdouble reduction = record.getReduction(); // != 0 if a unit translation is required\n\n\t\t//0=VoltageRx, 1=Voltage, 2=Current, 3=Capacity, 4=Power, 5=Energy, 6=CellBalance, 7=CellVoltage1, 8=CellVoltage2, 9=CellVoltage3, \n\t\t//10=CellVoltage4, 11=CellVoltage5, 12=CellVoltage6, 13=Revolution, 14=Efficiency, 15=Height, 16=Climb, 17=ValueA1, 18=ValueA2, 19=ValueA3,\n\t\t//20=AirPressure, 21=InternTemperature, 22=ServoImpuls In, 23=ServoImpuls Out, \n\t\t//M-LINK 24=valAdd00 25=valAdd01 26=valAdd02 27=valAdd03 28=valAdd04 29=valAdd05 30=valAdd06 31=valAdd07 32=valAdd08 33=valAdd09 34=valAdd10 35=valAdd11 36=valAdd12 37=valAdd13 38=valAdd14;\n\t\tif (record.getOrdinal() == 15) { //15=Height\n\t\t\tPropertyType property = record.getProperty(MeasurementPropertyTypes.DO_SUBTRACT_FIRST.value());\n\t\t\tboolean subtractFirst = property != null ? Boolean.valueOf(property.getValue()).booleanValue() : false;\n\t\t\tproperty = record.getProperty(MeasurementPropertyTypes.DO_SUBTRACT_LAST.value());\n\t\t\tboolean subtractLast = property != null ? Boolean.valueOf(property.getValue()).booleanValue() : false;\n\t\t\ttry {\n\t\t\t\tif (subtractFirst) {\n\t\t\t\t\treduction = record.getFirst() / 1000.0;\n\t\t\t\t}\n\t\t\t\telse if (subtractLast) {\n\t\t\t\t\treduction = record.getLast() / 1000.0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Throwable e) {\n\t\t\t\tlog.log(Level.SEVERE, record.getParent().getName() + \" \" + record.getName() + \" \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\tdouble newValue = (value - reduction) * factor + offset;\n\n\t\tlog.log(Level.FINE, \"for \" + record.getName() + \" in value = \" + value + \" out value = \" + newValue); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\treturn newValue;\n\t}", "public void setValueFromAxis(AxisModel axis, Object value) {\n }", "public void getGUIVALS() {\n MinX = (double) MinXSpin.getValue();\n MaxX = (double) MaxXSpin.getValue();\n MinY = (double) MinYSpin.getValue();\n MaxY = (double) MaxYSpin.getValue();\n Step = (double) StepSpin.getValue();\n ForceRange = ForceRangeBox.isSelected();\n LineColor = LineCC.getColor();\n BackColor = BackGCC.getColor();\n Increments = (int) IncSpin.getValue();\n DrawArea = DrawAreaBox.isSelected();\n DrawScale = DrawScaleBox.isSelected();\n CurveThickness = (float) (double) CurveThicknessSpin.getValue();\n }", "@Test\n public void test51() throws Throwable {\n DefaultBoxAndWhiskerCategoryDataset defaultBoxAndWhiskerCategoryDataset0 = new DefaultBoxAndWhiskerCategoryDataset();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getTimeZone(\"S0;<fg/hGr_<T\");\n DateAxis dateAxis0 = new DateAxis(\"+7SK1xz+\", (TimeZone) zoneInfo0);\n GroupedStackedBarRenderer groupedStackedBarRenderer0 = new GroupedStackedBarRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultBoxAndWhiskerCategoryDataset0, categoryAxis0, (ValueAxis) dateAxis0, (CategoryItemRenderer) groupedStackedBarRenderer0);\n JFreeChart jFreeChart0 = new JFreeChart((String) null, (Plot) categoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, 1551, 0, 1551, (-1157), 1551, 0, true, true, false, true, true, true);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"S0;<fg/hGr_<T\";\n stringArray0[1] = \"+7SK1xz+\";\n stringArray0[2] = null;\n stringArray0[3] = \"S0;<fg/hGr_<T\";\n JFreeChart.main(stringArray0);\n Arc2D.Double arc2D_Double0 = new Arc2D.Double(0.0, 5504.00353418296, 2252.7, 5504.00353418296, (-44.30819825288613), (-2488.2967568), 0);\n Point2D.Double point2D_Double0 = (Point2D.Double)arc2D_Double0.getEndPoint();\n // Undeclared exception!\n try { \n categoryPlot0.zoomRangeAxes(5504.00353418296, 2252.7, plotRenderingInfo0, (Point2D) point2D_Double0);\n } catch(IllegalArgumentException e) {\n //\n // Range(double, double): require lower (11007.0) <= upper (4504.0).\n //\n assertThrownBy(\"org.jfree.data.Range\", e);\n }\n }", "private void initX_ValuesControl(){\n if(xValuesPanel == null)\n xValuesPanel = new X_ValuesInCurveControlPanel(this,this);\n if(!useCustomX_Values)\n xValuesPanel.useDefaultX_Values();\n else\n xValuesPanel.setX_Values(function);\n xValuesPanel.pack();\n xValuesPanel.setVisible(true);\n }", "@Test\n public void test55() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(10.0, 25000.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n combinedRangeCategoryPlot0.configureRangeAxes();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1032.0), 10.0, 25000.0, 0.0);\n }", "@Test\n public void test01() throws Throwable {\n SimpleTimeZone simpleTimeZone0 = (SimpleTimeZone)SegmentedTimeline.NO_DST_TIME_ZONE;\n DateAxis dateAxis0 = new DateAxis(\"\", (TimeZone) simpleTimeZone0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n JFreeChart jFreeChart0 = new JFreeChart(\"The renderer has changed and I don't know what to do!\", (Plot) combinedRangeCategoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, (-1747), (-1747), 952, 952, 0, 855, true, false, false, true, true, false);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n combinedRangeCategoryPlot0.zoomDomainAxes(0.0, plotRenderingInfo0, (Point2D) point2D_Double0, false);\n double double0 = point2D_Double0.getX();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(0.0, 1794.185816547, (double) 0, (double) (-1747));\n double double1 = rectangle2D_Double0.x;\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getBaseOutlinePaint();\n BasicStroke basicStroke0 = (BasicStroke)WaferMapPlot.DEFAULT_GRIDLINE_STROKE;\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) 0.0, (Paint) color0, (Stroke) basicStroke0);\n Layer layer0 = Layer.BACKGROUND;\n combinedRangeCategoryPlot0.addRangeMarker((Marker) categoryMarker0, layer0);\n combinedRangeCategoryPlot0.setDomainGridlinePaint(color0);\n double double2 = rectangle2D_Double0.getWidth();\n }", "@CriticalNative\n private static native void nAddAxisValue(long builderPtr, int tag, float value);", "public List<XYValue> getValues() {\n return values;\n }", "public static void getValuationSlot() {\n float locX = M.evaluateLoc.x;\n float locY = M.evaluateLoc.y;\n M.lastZoneValuation = M.evaluateLoc.distanceTo(M.finalMove) * M.moveVectorStr; //Desire to move towards our main goal\n float test1;\n float test2;\n switch (angledRectangleCount) {\n default:\n case 20:\n if (M.evaluateLoc.isWithinDistance(Z20_center, Z20_maxdist)) {\n test1 = Float.sum(locX * Z20_p21x, locY * Z20_p21y);\n if (test1 >= Z20_dotsection2 && test1 <= Z20_p21MagSquared) {\n test2 = Float.sum(locX * Z20_p41x, locY * Z20_p41y);\n if (test2 >= Z20_dotsection4 && test2 <= Z20_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z20_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 19:\n if (M.evaluateLoc.isWithinDistance(Z19_center, Z19_maxdist)) {\n test1 = Float.sum(locX * Z19_p21x, locY * Z19_p21y);\n if (test1 >= Z19_dotsection2 && test1 <= Z19_p21MagSquared) {\n test2 = Float.sum(locX * Z19_p41x, locY * Z19_p41y);\n if (test2 >= Z19_dotsection4 && test2 <= Z19_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z19_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 18:\n if (M.evaluateLoc.isWithinDistance(Z18_center, Z18_maxdist)) {\n test1 = Float.sum(locX * Z18_p21x, locY * Z18_p21y);\n if (test1 >= Z18_dotsection2 && test1 <= Z18_p21MagSquared) {\n test2 = Float.sum(locX * Z18_p41x, locY * Z18_p41y);\n if (test2 >= Z18_dotsection4 && test2 <= Z18_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z18_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 17:\n if (M.evaluateLoc.isWithinDistance(Z17_center, Z17_maxdist)) {\n test1 = Float.sum(locX * Z17_p21x, locY * Z17_p21y);\n if (test1 >= Z17_dotsection2 && test1 <= Z17_p21MagSquared) {\n test2 = Float.sum(locX * Z17_p41x, locY * Z17_p41y);\n if (test2 >= Z17_dotsection4 && test2 <= Z17_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z17_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 16:\n if (M.evaluateLoc.isWithinDistance(Z16_center, Z16_maxdist)) {\n test1 = Float.sum(locX * Z16_p21x, locY * Z16_p21y);\n if (test1 >= Z16_dotsection2 && test1 <= Z16_p21MagSquared) {\n test2 = Float.sum(locX * Z16_p41x, locY * Z16_p41y);\n if (test2 >= Z16_dotsection4 && test2 <= Z16_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z16_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 15:\n if (M.evaluateLoc.isWithinDistance(Z15_center, Z15_maxdist)) {\n test1 = Float.sum(locX * Z15_p21x, locY * Z15_p21y);\n if (test1 >= Z15_dotsection2 && test1 <= Z15_p21MagSquared) {\n test2 = Float.sum(locX * Z15_p41x, locY * Z15_p41y);\n if (test2 >= Z15_dotsection4 && test2 <= Z15_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z15_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 14:\n if (M.evaluateLoc.isWithinDistance(Z14_center, Z14_maxdist)) {\n test1 = Float.sum(locX * Z14_p21x, locY * Z14_p21y);\n if (test1 >= Z14_dotsection2 && test1 <= Z14_p21MagSquared) {\n test2 = Float.sum(locX * Z14_p41x, locY * Z14_p41y);\n if (test2 >= Z14_dotsection4 && test2 <= Z14_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z14_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 13:\n if (M.evaluateLoc.isWithinDistance(Z13_center, Z13_maxdist)) {\n test1 = Float.sum(locX * Z13_p21x, locY * Z13_p21y);\n if (test1 >= Z13_dotsection2 && test1 <= Z13_p21MagSquared) {\n test2 = Float.sum(locX * Z13_p41x, locY * Z13_p41y);\n if (test2 >= Z13_dotsection4 && test2 <= Z13_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z13_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 12:\n if (M.evaluateLoc.isWithinDistance(Z12_center, Z12_maxdist)) {\n test1 = Float.sum(locX * Z12_p21x, locY * Z12_p21y);\n if (test1 >= Z12_dotsection2 && test1 <= Z12_p21MagSquared) {\n test2 = Float.sum(locX * Z12_p41x, locY * Z12_p41y);\n if (test2 >= Z12_dotsection4 && test2 <= Z12_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z12_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 11:\n if (M.evaluateLoc.isWithinDistance(Z11_center, Z11_maxdist)) {\n test1 = Float.sum(locX * Z11_p21x, locY * Z11_p21y);\n if (test1 >= Z11_dotsection2 && test1 <= Z11_p21MagSquared) {\n test2 = Float.sum(locX * Z11_p41x, locY * Z11_p41y);\n if (test2 >= Z11_dotsection4 && test2 <= Z11_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z11_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 10:\n if (M.evaluateLoc.isWithinDistance(Z10_center, Z10_maxdist)) {\n test1 = Float.sum(locX * Z10_p21x, locY * Z10_p21y);\n if (test1 >= Z10_dotsection2 && test1 <= Z10_p21MagSquared) {\n test2 = Float.sum(locX * Z10_p41x, locY * Z10_p41y);\n if (test2 >= Z10_dotsection4 && test2 <= Z10_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z10_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 9:\n if (M.evaluateLoc.isWithinDistance(Z9_center, Z9_maxdist)) {\n test1 = Float.sum(locX * Z9_p21x, locY * Z9_p21y);\n if (test1 >= Z9_dotsection2 && test1 <= Z9_p21MagSquared) {\n test2 = Float.sum(locX * Z9_p41x, locY * Z9_p41y);\n if (test2 >= Z9_dotsection4 && test2 <= Z9_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z9_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 8:\n if (M.evaluateLoc.isWithinDistance(Z8_center, Z8_maxdist)) {\n test1 = Float.sum(locX * Z8_p21x, locY * Z8_p21y);\n if (test1 >= Z8_dotsection2 && test1 <= Z8_p21MagSquared) {\n test2 = Float.sum(locX * Z8_p41x, locY * Z8_p41y);\n if (test2 >= Z8_dotsection4 && test2 <= Z8_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z8_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 7:\n if (M.evaluateLoc.isWithinDistance(Z7_center, Z7_maxdist)) {\n test1 = Float.sum(locX * Z7_p21x, locY * Z7_p21y);\n if (test1 >= Z7_dotsection2 && test1 <= Z7_p21MagSquared) {\n test2 = Float.sum(locX * Z7_p41x, locY * Z7_p41y);\n if (test2 >= Z7_dotsection4 && test2 <= Z7_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z7_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 6:\n if (M.evaluateLoc.isWithinDistance(Z6_center, Z6_maxdist)) {\n test1 = Float.sum(locX * Z6_p21x, locY * Z6_p21y);\n if (test1 >= Z6_dotsection2 && test1 <= Z6_p21MagSquared) {\n test2 = Float.sum(locX * Z6_p41x, locY * Z6_p41y);\n if (test2 >= Z6_dotsection4 && test2 <= Z6_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z6_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 5:\n if (M.evaluateLoc.isWithinDistance(Z5_center, Z5_maxdist)) {\n test1 = Float.sum(locX * Z5_p21x, locY * Z5_p21y);\n if (test1 >= Z5_dotsection2 && test1 <= Z5_p21MagSquared) {\n test2 = Float.sum(locX * Z5_p41x, locY * Z5_p41y);\n if (test2 >= Z5_dotsection4 && test2 <= Z5_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z5_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 4:\n if (M.evaluateLoc.isWithinDistance(Z4_center, Z4_maxdist)) {\n test1 = Float.sum(locX * Z4_p21x, locY * Z4_p21y);\n if (test1 >= Z4_dotsection2 && test1 <= Z4_p21MagSquared) {\n test2 = Float.sum(locX * Z4_p41x, locY * Z4_p41y);\n if (test2 >= Z4_dotsection4 && test2 <= Z4_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z4_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 3:\n if (M.evaluateLoc.isWithinDistance(Z3_center, Z3_maxdist)) {\n test1 = Float.sum(locX * Z3_p21x, locY * Z3_p21y);\n if (test1 >= Z3_dotsection2 && test1 <= Z3_p21MagSquared) {\n test2 = Float.sum(locX * Z3_p41x, locY * Z3_p41y);\n if (test2 >= Z3_dotsection4 && test2 <= Z3_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z3_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 2:\n if (M.evaluateLoc.isWithinDistance(Z2_center, Z2_maxdist)) {\n test1 = Float.sum(locX * Z2_p21x, locY * Z2_p21y);\n if (test1 >= Z2_dotsection2 && test1 <= Z2_p21MagSquared) {\n test2 = Float.sum(locX * Z2_p41x, locY * Z2_p41y);\n if (test2 >= Z2_dotsection4 && test2 <= Z2_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z2_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 1:\n if (M.evaluateLoc.isWithinDistance(Z1_center, Z1_maxdist)) {\n test1 = Float.sum(locX * Z1_p21x, locY * Z1_p21y);\n if (test1 >= Z1_dotsection2 && test1 <= Z1_p21MagSquared) {\n test2 = Float.sum(locX * Z1_p41x, locY * Z1_p41y);\n if (test2 >= Z1_dotsection4 && test2 <= Z1_p41MagSquared) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z1_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n }\n }\n case 0:\n }\n switch (circleCount) {\n case 20:\n if (M.evaluateLoc.isWithinDistance(Z20c_center, Z20c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z20c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 19:\n if (M.evaluateLoc.isWithinDistance(Z19c_center, Z19c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z19c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 18:\n if (M.evaluateLoc.isWithinDistance(Z18c_center, Z18c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z18c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 17:\n if (M.evaluateLoc.isWithinDistance(Z17c_center, Z17c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z17c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 16:\n if (M.evaluateLoc.isWithinDistance(Z16c_center, Z16c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z16c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 15:\n if (M.evaluateLoc.isWithinDistance(Z15c_center, Z15c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z15c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 14:\n if (M.evaluateLoc.isWithinDistance(Z14c_center, Z14c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z14c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 13:\n if (M.evaluateLoc.isWithinDistance(Z13c_center, Z13c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z13c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 12:\n if (M.evaluateLoc.isWithinDistance(Z12c_center, Z12c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z12c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 11:\n if (M.evaluateLoc.isWithinDistance(Z11c_center, Z11c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z11c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 10:\n if (M.evaluateLoc.isWithinDistance(Z10c_center, Z10c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z10c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 9:\n if (M.evaluateLoc.isWithinDistance(Z9c_center, Z9c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z9c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 8:\n if (M.evaluateLoc.isWithinDistance(Z8c_center, Z8c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z8c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 7:\n if (M.evaluateLoc.isWithinDistance(Z7c_center, Z7c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z7c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 6:\n if (M.evaluateLoc.isWithinDistance(Z6c_center, Z6c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z6c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 5:\n if (M.evaluateLoc.isWithinDistance(Z5c_center, Z5c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z5c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 4:\n if (M.evaluateLoc.isWithinDistance(Z4c_center, Z4c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z4c_desire);\n if (M.lastZoneValuation < cutoff) return;\n }\n case 3:\n if (M.evaluateLoc.isWithinDistance(Z3c_center, Z3c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z3c_desire);\n }\n case 2:\n if (M.evaluateLoc.isWithinDistance(Z2c_center, Z2c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z2c_desire);\n }\n case 1:\n if (M.evaluateLoc.isWithinDistance(Z1c_center, Z1c_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Z1c_desire);\n }\n case 0:\n }\n switch (vectorCircleCount) {\n case 20:\n if (M.evaluateLoc.isWithinDistance(Z20vc_center, Z20vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z20vc_baseDesire, M.evaluateLoc.distanceTo(Z20vc_center) * Z20vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 19:\n if (M.evaluateLoc.isWithinDistance(Z19vc_center, Z19vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z19vc_baseDesire, M.evaluateLoc.distanceTo(Z19vc_center) * Z19vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 18:\n if (M.evaluateLoc.isWithinDistance(Z18vc_center, Z18vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z18vc_baseDesire, M.evaluateLoc.distanceTo(Z18vc_center) * Z18vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 17:\n if (M.evaluateLoc.isWithinDistance(Z17vc_center, Z17vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z17vc_baseDesire, M.evaluateLoc.distanceTo(Z17vc_center) * Z17vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 16:\n if (M.evaluateLoc.isWithinDistance(Z16vc_center, Z16vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z16vc_baseDesire, M.evaluateLoc.distanceTo(Z16vc_center) * Z16vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 15:\n if (M.evaluateLoc.isWithinDistance(Z15vc_center, Z15vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z15vc_baseDesire, M.evaluateLoc.distanceTo(Z15vc_center) * Z15vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 14:\n if (M.evaluateLoc.isWithinDistance(Z14vc_center, Z14vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z14vc_baseDesire, M.evaluateLoc.distanceTo(Z14vc_center) * Z14vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 13:\n if (M.evaluateLoc.isWithinDistance(Z13vc_center, Z13vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z13vc_baseDesire, M.evaluateLoc.distanceTo(Z13vc_center) * Z13vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 12:\n if (M.evaluateLoc.isWithinDistance(Z12vc_center, Z12vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z12vc_baseDesire, M.evaluateLoc.distanceTo(Z12vc_center) * Z12vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 11:\n if (M.evaluateLoc.isWithinDistance(Z11vc_center, Z11vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z11vc_baseDesire, M.evaluateLoc.distanceTo(Z11vc_center) * Z11vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 10:\n if (M.evaluateLoc.isWithinDistance(Z10vc_center, Z10vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z10vc_baseDesire, M.evaluateLoc.distanceTo(Z10vc_center) * Z10vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 9:\n if (M.evaluateLoc.isWithinDistance(Z9vc_center, Z9vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z9vc_baseDesire, M.evaluateLoc.distanceTo(Z9vc_center) * Z9vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 8:\n if (M.evaluateLoc.isWithinDistance(Z8vc_center, Z8vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z8vc_baseDesire, M.evaluateLoc.distanceTo(Z8vc_center) * Z8vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 7:\n if (M.evaluateLoc.isWithinDistance(Z7vc_center, Z7vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z7vc_baseDesire, M.evaluateLoc.distanceTo(Z7vc_center) * Z7vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 6:\n if (M.evaluateLoc.isWithinDistance(Z6vc_center, Z6vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z6vc_baseDesire, M.evaluateLoc.distanceTo(Z6vc_center) * Z6vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 5:\n if (M.evaluateLoc.isWithinDistance(Z5vc_center, Z5vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z5vc_baseDesire, M.evaluateLoc.distanceTo(Z5vc_center) * Z5vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 4:\n if (M.evaluateLoc.isWithinDistance(Z4vc_center, Z4vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z4vc_baseDesire, M.evaluateLoc.distanceTo(Z4vc_center) * Z4vc_distanceDesire));\n if (M.lastZoneValuation < cutoff) return;\n }\n case 3:\n if (M.evaluateLoc.isWithinDistance(Z3vc_center, Z3vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z3vc_baseDesire, M.evaluateLoc.distanceTo(Z3vc_center) * Z3vc_distanceDesire));\n }\n case 2:\n if (M.evaluateLoc.isWithinDistance(Z2vc_center, Z2vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z2vc_baseDesire, M.evaluateLoc.distanceTo(Z2vc_center) * Z2vc_distanceDesire));\n }\n case 1:\n if (M.evaluateLoc.isWithinDistance(Z1vc_center, Z1vc_size)) {\n M.lastZoneValuation = Float.sum(M.lastZoneValuation, Float.sum(Z1vc_baseDesire, M.evaluateLoc.distanceTo(Z1vc_center) * Z1vc_distanceDesire));\n }\n case 0:\n }\n //Rarely used, should be optimized the same way if this becomes more common\n for (int i = M.squareIndexMinusOne; i >= 0; i--) {\n ZoneSquare zone = M.squares[i];\n if (zone.left < locX && locX < zone.right && locY < zone.top && locY > zone.bot) {\n M.lastZoneValuation += zone.desire;\n }\n }\n }", "double getBasedOnValue();", "public void updateOscilloscopeData() {\n rmsSum = 0;\n boolean overshoot = false;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n for (int i = 0; i < 40; i++) { \n Double reactorValue = reactorAmplitude * Math.sin(2 * Math.PI * reactorFrequency * ((double) i * 5 / 10000) + reactorPhase);\n Double controlValue = controlAmplitude * Math.sin(2 * Math.PI * controlFrequency * ((double) i * 5 / 10000) + controlPhase);\n if (reactorValue + controlValue > 150) {\n this.outputData.get(0).getData().get(i).setYValue(149);\n overshoot = true;\n } else if (reactorValue + controlValue < -150) {\n this.outputData.get(0).getData().get(i).setYValue(-149);\n overshoot = true;\n } else {\n this.outputData.get(0).getData().get(i).setYValue(reactorValue + controlValue);\n }\n if (this.online == true) {\n this.rmsSum = this.rmsSum + Math.pow(reactorValue + controlValue, 2);\n }\n }\n calculateOutputPower();\n checkForInstability(overshoot);\n }", "@Test\n public void test58() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(500000.0, 500000.0, 0.0, 0.0);\n rectangle2D_Double0.x = 1.0;\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)rectangle2D_Double0.getBounds2D();\n Point2D.Double point2D_Double0 = new Point2D.Double();\n double double0 = point2D_Double0.getX();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n Range range0 = combinedDomainCategoryPlot0.getDataRange((ValueAxis) null);\n Color color0 = (Color)combinedDomainCategoryPlot0.getDomainGridlinePaint();\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Double0, (Point2D) point2D_Double0);\n double double1 = line2D_Double0.getX2();\n BasicStroke basicStroke0 = (BasicStroke)CyclicNumberAxis.DEFAULT_ADVANCE_LINE_STROKE;\n combinedDomainCategoryPlot0.setRangeGridlineStroke(basicStroke0);\n Font font0 = SpiderWebPlot.DEFAULT_LABEL_FONT;\n JFreeChart jFreeChart0 = new JFreeChart(\"\", font0, (Plot) combinedDomainCategoryPlot0, false);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, false);\n Point point0 = chartPanel0.translateJava2DToScreen(point2D_Double0);\n combinedDomainCategoryPlot0.zoomDomainAxes(500000.0, (PlotRenderingInfo) null, (Point2D) point0, false);\n }", "@Test\n public void test44() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n rectangle2D_Double0.width = 0.0;\n String string0 = rectangle2D_Double0.toString();\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'axis' argument.\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logarithmicAxis0);\n combinedRangeCategoryPlot0.setNoDataMessage(\"\");\n Range range0 = combinedRangeCategoryPlot0.getDataRange(logarithmicAxis0);\n }", "private void \nannealtempScroll_Change() { // {VB2J [1005]}\tPrivate Sub annealtempScroll_Change()\n // {VB2J [1007]}\t'new stuff\n// rec - some of these duplicate vars in SystemDesign - intended scope ???\n// unused: float responsetimemin; float responsetimemax; // {VB2J [1009]}\t Dim responsetimemin As Single, responsetimemax As Single\n// unused: float monthlycostpertimemin; float monthlycostpertimemax; // {VB2J [1010]}\t Dim monthlycostpertimemin As Single, monthlycostpertimemax As Single\n// unused: float monthlycostscalemin; float monthlycostscalemax; // {VB2J [1011]}\t Dim monthlycostscalemin As Single, monthlycostscalemax As Single\n// unused: float monthlycostscalex; float monthlycostscale; // {VB2J [1012]}\t Dim monthlycostscalex As Single, monthlycostscale As Single\n\n// unused: float responsetimevalue; // {VB2J [1014]}\t Dim responsetimevalue As Single\n\n float annealtempx; // {VB2J [1015]}\t Dim annealtempx As Single\n float scalelogmin = (float)Math.log(0.000000001f); // {VB2J [1019]}\t scalelogmin = Log(0.000000001) '1.e-9\n float scalelogmax = (float)Math.log(1000000f); // {VB2J [1020]}\t scalelogmax = Log(1000000) '1.e6\n\n// {VB2J [1022]}\t 'monthlycostscalex = monthlycostscalemin + (monthlycostscalemax - monthlycostscalemin) * (monthlycostscroll.Value - monthlycostscroll.min) / (monthlycostscroll.max - monthlycostscroll.min)\n\n float annealtemplog = scalelogmin + \n \t\t\t(scalelogmax - scalelogmin) * \n\t\t\t(annealtempScroll_Value - annealtempScroll_min) \n\t\t\t/ (annealtempScroll_max - annealtempScroll_min); // {VB2J [1024]}\t annealtemplog = scalelogmin + (scalelogmax - scalelogmin) * (annealtempScroll.Value - annealtempScroll.min) / (annealtempScroll.max - annealtempScroll.min)\n\n annealtempx = (float)Math.exp(annealtemplog); // {VB2J [1026]}\t annealtempx = Exp(annealtemplog)\n systemDesign_.annealtemp = annealtempx; // {VB2J [1027]}\t annealtemp = annealtempx\n\n SystemDesign.logInfo(\"MetroParams.annealtempScroll_Change: annealtemp set to \" + systemDesign_.annealtemp);\n\n\n// rec - GUI\n// VBJ2_XLATE_FAILURE; //F UNK // {VB2J [1028]}\t scinumformat annealtemp, annealtempouttext\n// annealtempText.text = annealtempouttext; // {VB2J [1030]}\t annealtempText.text = annealtempouttext\n// DoEvents(); //W FUNC; // {VB2J [1032]}\t DoEvents\n\n }", "public abstract void setValue(R1Interval interval, double value);", "private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }", "@Test\n public void test14() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis((String) null);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n subCategoryAxis0.setPlot(combinedDomainCategoryPlot0);\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(2915.6662320392, 2915.6662320392, \"Null 'stroke' argument.\");\n subCategoryAxis0.setAxisLineVisible(false);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisIndex(cyclicNumberAxis0);\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation((-1));\n combinedDomainCategoryPlot0.setDomainAxisLocation(axisLocation0, true);\n Color color0 = (Color)combinedDomainCategoryPlot0.getDomainGridlinePaint();\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setRangeAxis((-1), (ValueAxis) cyclicNumberAxis0, true);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "@Override\n public double getValue()\n {\n return value;\n }", "protected void calcMinMax() {\n }", "public StatusSet(double[] maxVal) {\r\n\t\t// Establish the number of bars in this set.\r\n\t\tbarCount = maxVal.length;\r\n\t\t// Default central radius.\r\n\t\tcentralRadius = 30.0;\r\n\t\t// Initializing all arrays to the appropriate length.\r\n\t\tcurrentValue = new double[barCount];\r\n\t\tmaxValue = new double[barCount];\r\n\t\tbarRadii = new double[barCount];\r\n\t\tbarColors = new Color[barCount];\r\n\t\tbarBGColors = new Color[barCount];\r\n\t\tregen = new boolean[barCount];\r\n\t\tregenRate = new double[barCount];\r\n\t\tchangeRate = new double[barCount];\r\n\t\tresetWhenFull = new boolean[barCount];\r\n\t\tcurrentTarget = new double[barCount];\r\n\t\tlowStatusAlert = new boolean[barCount];\r\n\t\talertFlickering = new boolean[barCount];\r\n\t\talertColors = new Color[barCount];\r\n\t\talertPercent = new double[barCount];\r\n\t\tgradientEffect = new boolean[barCount];\r\n\t\t// Change rate factor, universal to all bars, defaults to 95% any\r\n\t\t// commanded status change.\r\n\t\tchangeRateFactor = 0.95;\r\n\t\t// Initializing central display.\r\n\t\tavatar = new GreenfootImage(1, 1);\r\n\t\t// Assigning relevant data to each array, pertaining to each bar.\r\n\t\tfor (int i = 0; i < barCount; i++) {\r\n\t\t\t// This constructor assumes that the bars begin as full.\r\n\t\t\tcurrentValue[i] = Math.abs(maxVal[i]);\r\n\t\t\t// Noting the maximum capacity.\r\n\t\t\tmaxValue[i] = Math.abs(maxVal[i]);\r\n\t\t\t// Default radius for all bars.\r\n\t\t\tbarRadii[i] = 10.0;\r\n\t\t\t// Default color scheme for all bars.\r\n\t\t\tbarColors[i] = Color.GREEN;\r\n\t\t\tbarBGColors[i] = Color.RED;\r\n\t\t\t// Reset feature begins turned off.\r\n\t\t\tresetWhenFull[i] = false;\r\n\t\t\t// Regeneration feature begins turned off.\r\n\t\t\tregen[i] = false;\r\n\t\t\t// No regeneration rate is specified, the user must decide.\r\n\t\t\tregenRate[i] = 0.0;\r\n\t\t\t// Visual effect of indicator moving towards a new target value. As\r\n\t\t\t// it should be quite fast visually, it is altered depending on the\r\n\t\t\t// change in status commanded from the controller.\r\n\t\t\tchangeRate[i] = 0.0;\r\n\t\t\t// Alert feature begins turned off.\r\n\t\t\tlowStatusAlert[i] = false;\r\n\t\t\talertFlickering[i] = false;\r\n\t\t\t// Default flicker is white.\r\n\t\t\talertColors[i] = Color.WHITE;\r\n\t\t\t// Alert will not activate regardless of how low status is, by\r\n\t\t\t// default.\r\n\t\t\talertPercent[i] = 0.0;\r\n\t\t\t// Gradient not active by default.\r\n\t\t\tgradientEffect[i] = false;\r\n\t\t\t// No target value to begin with, as nothing has changed in status.\r\n\t\t\tcurrentTarget[i] = currentValue[i];\r\n\t\t}\r\n\t}", "@Test\n public void test21() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n Rectangle rectangle0 = polygon0.getBounds();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n combinedDomainCategoryPlot0.drawRangeGridlines((Graphics2D) null, rectangle0, list0);\n rectangle0.height = (-2538);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }", "private void updateAmplificationValue() {\n ((TextView) findViewById(R.id.zoomUpDownText)).setText(String.valueOf(curves[0].getCurrentAmplification()));\n }", "@Test\n public void test82() throws Throwable {\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(10.0);\n MeterPlot meterPlot0 = new MeterPlot((ValueDataset) defaultValueDataset0);\n JFreeChart jFreeChart0 = new JFreeChart(\"8BNI=Ry\", (Plot) meterPlot0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeCategoryPlot0.getDomainGridlineStroke();\n }", "public double reverseTranslateValue(Record record, double value) {\n\t\tdouble factor = record.getFactor(); // != 1 if a unit translation is required\n\t\tdouble offset = record.getOffset(); // != 0 if a unit translation is required\n\t\tdouble reduction = record.getReduction(); // != 0 if a unit translation is required\n\n\t\t//0=VoltageRx, 1=Voltage, 2=Current, 3=Capacity, 4=Power, 5=Energy, 6=CellBalance, 7=CellVoltage1, 8=CellVoltage2, 9=CellVoltage3, \n\t\t//10=CellVoltage4, 11=CellVoltage5, 12=CellVoltage6, 13=Revolution, 14=Efficiency, 15=Height, 16=Climb, 17=ValueA1, 18=ValueA2, 19=ValueA3,\n\t\t//20=AirPressure, 21=InternTemperature, 22=ServoImpuls In, 23=ServoImpuls Out, \n\t\t//M-LINK 24=valAdd00 25=valAdd01 26=valAdd02 27=valAdd03 28=valAdd04 29=valAdd05 30=valAdd06 31=valAdd07 32=valAdd08 33=valAdd09 34=valAdd10 35=valAdd11 36=valAdd12 37=valAdd13 38=valAdd14;\n\t\tif (record.getOrdinal() == 15) { //15=Height\n\t\t\tPropertyType property = record.getProperty(MeasurementPropertyTypes.DO_SUBTRACT_FIRST.value());\n\t\t\tboolean subtractFirst = property != null ? Boolean.valueOf(property.getValue()).booleanValue() : false;\n\t\t\tproperty = record.getProperty(MeasurementPropertyTypes.DO_SUBTRACT_LAST.value());\n\t\t\tboolean subtractLast = property != null ? Boolean.valueOf(property.getValue()).booleanValue() : false;\n\t\t\ttry {\n\t\t\t\tif (subtractFirst) {\n\t\t\t\t\treduction = record.getFirst() / 1000.0;\n\t\t\t\t}\n\t\t\t\telse if (subtractLast) {\n\t\t\t\t\treduction = record.getLast() / 1000.0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Throwable e) {\n\t\t\t\tlog.log(Level.SEVERE, record.getParent().getName() + \" \" + record.getName() + \" \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\tdouble newValue = (value - offset) / factor + reduction;\n\n\t\tlog.log(Level.FINE, \"for \" + record.getName() + \" in value = \" + value + \" out value = \" + newValue); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\treturn newValue;\n\t}", "private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Plane, godot.wire.Wire.Plane.Builder, godot.wire.Wire.PlaneOrBuilder> \n getPlaneValueFieldBuilder() {\n if (planeValueBuilder_ == null) {\n if (!(typeCase_ == 10)) {\n type_ = godot.wire.Wire.Plane.getDefaultInstance();\n }\n planeValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Plane, godot.wire.Wire.Plane.Builder, godot.wire.Wire.PlaneOrBuilder>(\n (godot.wire.Wire.Plane) type_,\n getParentForChildren(),\n isClean());\n type_ = null;\n }\n typeCase_ = 10;\n onChanged();;\n return planeValueBuilder_;\n }", "public abstract CustomMetric[] getCustomMetrics();", "@Test\n public void test28() throws Throwable {\n double[][] doubleArray0 = new double[4][3];\n double[] doubleArray1 = new double[0];\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[1];\n doubleArray2[0] = 4394.831255689545;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[5];\n doubleArray3[0] = 4394.831255689545;\n doubleArray3[1] = 4394.831255689545;\n doubleArray3[2] = 4394.831255689545;\n doubleArray3[3] = 4394.831255689545;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[3];\n doubleArray4[0] = 4394.831255689545;\n doubleArray4[1] = 4394.831255689545;\n doubleArray0[3] = doubleArray4;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(doubleArray0, doubleArray0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"org.jfree.data.xy.DefaultWindDataset\");\n Month month0 = new Month();\n ZoneOffset zoneOffset0 = ZoneOffset.MAX;\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getTimeZone((ZoneId) zoneOffset0);\n PeriodAxis periodAxis0 = new PeriodAxis(\"'Ypi)?q\", (RegularTimePeriod) month0, (RegularTimePeriod) month0, (TimeZone) zoneInfo0);\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) categoryAxis3D0, (ValueAxis) periodAxis0, (CategoryItemRenderer) layeredBarRenderer0);\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n CategoryItemRendererState categoryItemRendererState0 = new CategoryItemRendererState(plotRenderingInfo0);\n StandardEntityCollection standardEntityCollection0 = (StandardEntityCollection)categoryItemRendererState0.getEntityCollection();\n ChartRenderingInfo chartRenderingInfo1 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo1 = chartRenderingInfo1.getPlotInfo();\n categoryPlot0.zoomRangeAxes(4394.831255689545, plotRenderingInfo1, (Point2D) null, false);\n }", "protected void execute() {\n \tthis.LiftVertAxis.manualOverride(-(this.oi.getBMGamepadAxis5() * .75));\n }", "@Override\n void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb)\n\t\tthrows StandardException\n\t{\n acb.pushDataValueFactory(mb);\n\t\tleftOperand.generateExpression(acb, mb);\n mb.cast( ClassName.DataValueDescriptor);\n\t\trightOperand.generateExpression(acb, mb);\n mb.cast( ClassName.DataValueDescriptor);\n mb.callMethod( VMOpcode.INVOKEINTERFACE, null, methodName, ClassName.DateTimeDataValue, 2);\n }", "public abstract double getCarbon();", "public void refreshGraph() {\n\n // Get all the times\n double[] times = dataSet.getTimes();\n\n int numPointsToDraw = (times.length > GRAPH_MAX_POINTS)? GRAPH_MAX_POINTS: times.length;\n\n // Store new points\n DataPoint[] freshPoints = new DataPoint[numPointsToDraw];\n // String for title of graph\n final int titleString;\n // String for the y-axis of graph\n final int axisLabel;\n\n // Calculate which points to draw\n int firstPointDrawn = (times.length-GRAPH_MAX_POINTS>0)?\n times.length-GRAPH_MAX_POINTS:\n 0;\n\n // if the switch is to the right\n if(velAccelSwitch.isChecked()) {\n // Get all the accelerations\n double[] accels = dataSet.getAccelerations();\n // Add the relevant accelerations to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // / If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn], accels[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.at_graph_label;\n axisLabel = R.string.acceleration_axis_label;\n } else {\n // Get all the velocities\n double[] velocities = dataSet.getSpeeds();\n // Add the relevant velocities to the \"to be drawn\" array\n for (int i = 0; i < numPointsToDraw; i++) {\n freshPoints[i] = new DataPoint(\n // If the setting tells it to be in hours, divide by 3600\n (setting.isInHours())?\n times[i+firstPointDrawn]/3600:\n times[i+firstPointDrawn],\n // If the setting tells it to be in km/h, multiply by 3.6\n (setting.isInKMPerH())?\n velocities[i+firstPointDrawn]*3.6:\n velocities[i+firstPointDrawn]);\n }\n // Set the graph title\n titleString = R.string.vt_graph_label;\n axisLabel = (setting.isInKMPerH())?\n R.string.velocity_axis_label_kmh:\n R.string.velocity_axis_label_ms;\n }\n\n // swap out the old DataPoints with the new ones\n points.resetData(freshPoints);\n // if there is data, stretch graph to fit it\n if (times.length-1>0) {\n // If the setting is on hours, stretch graph axises accordingly\n graphView.getViewport().setMinX((times[times.length-1] - GRAPH_TIME_RANGE)\n /((setting.isInHours())?3600:1));\n graphView.getViewport().setMaxX(times[times.length-1]\n /((setting.isInHours())?3600:1));\n }\n\n // Update elements of the UI\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DecimalFormat df = new DecimalFormat(\"#.00\");\n\n // Set graph title\n graphTitle.setText(titleString);\n // Set max velocity\n maxVelocityView.setText(getString(R.string.max_velocity) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getMaxSpeed()) + \" m/s\");\n // Set max acceleration\n maxAccelerationView.setText(getString(R.string.max_acceleration) + \":\\t\\t\\t\" +\n df.format(dataSet.getMaxAcceleration()) + \" m/s\" + '\\u00B2');\n // Set time elapsed\n timeElapsedView.setText(getString(R.string.time_elapsed) + \":\\t\\t\\t\\t\\t\\t\\t\\t\" +\n df.format(dataSet.getTimeElapsedSeconds()) + \" s\");\n yAxisView.setText(axisLabel);\n xAxisView.setText((setting.isInHours())?\n R.string.time_axis_label_h:\n R.string.time_axis_label_s);\n }\n });\n\n }", "protected void onFirstAxisChanged() {\n }", "@Test\n public void test52() throws Throwable {\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"Null 'thresholdType' argument.\");\n AxisChangeEvent axisChangeEvent0 = new AxisChangeEvent((Axis) categoryAxis3D0);\n ChartChangeEventType chartChangeEventType0 = axisChangeEvent0.getType();\n axisChangeEvent0.setType(chartChangeEventType0);\n thermometerPlot0.axisChanged(axisChangeEvent0);\n CategoryAxis3D categoryAxis3D1 = new CategoryAxis3D(\"\");\n int int0 = combinedRangeCategoryPlot0.getDomainAxisIndex(categoryAxis3D1);\n LegendItemCollection legendItemCollection0 = combinedRangeCategoryPlot0.getFixedLegendItems();\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setRangeAxisLocation((-1), axisLocation0, false);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }", "@Test\n public void test08() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.clearDomainMarkers(44);\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeGridlineStroke();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n ThermometerPlot thermometerPlot0 = new ThermometerPlot();\n NumberAxis numberAxis0 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[0] = (ValueAxis) numberAxis0;\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[1] = (ValueAxis) logarithmicAxis0;\n LogAxis logAxis0 = new LogAxis();\n valueAxisArray0[2] = (ValueAxis) logAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, \"o>v!{PNMe{\");\n valueAxisArray0[3] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Null 'marker' not permitted.\");\n valueAxisArray0[4] = (ValueAxis) numberAxis3D0;\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[5] = (ValueAxis) numberAxis1;\n XYPlot xYPlot0 = new XYPlot();\n RectangleInsets rectangleInsets0 = xYPlot0.getAxisOffset();\n cyclicNumberAxis0.setTickLabelInsets(rectangleInsets0);\n categoryPlot0.setRangeAxes(valueAxisArray0);\n categoryPlot0.setRangeCrosshairValue(3583.22971, false);\n LegendItemCollection legendItemCollection0 = categoryPlot0.getFixedLegendItems();\n float[] floatArray0 = new float[2];\n floatArray0[0] = (float) 44;\n floatArray0[1] = (float) 44;\n Font font0 = AbstractRenderer.DEFAULT_VALUE_LABEL_FONT;\n }", "public List getValues() {\n/* 103 */ List<ConfigurableEffect.Value> values = super.getValues();\n/* 104 */ values.add(EffectUtil.floatValue(\"Wavelength\", this.wavelength, 1.0F, 100.0F, \"This setting controls the wavelength of the outline. The smaller the value, the more segments will be used to draw the outline.\"));\n/* */ \n/* 106 */ values.add(EffectUtil.floatValue(\"Amplitude\", this.amplitude, 0.5F, 50.0F, \"This setting controls the amplitude of the outline. The bigger the value, the more the zigzags will vary.\"));\n/* */ \n/* 108 */ return values;\n/* */ }", "@Override\n public void valueChanged(double control_val) {\n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "public double valueToJava2D(double value, Rectangle2D area, RectangleEdge edge) {\n/* 786 */ value = this.timeline.toTimelineValue((long)value);\n/* */ \n/* 788 */ DateRange range = (DateRange)getRange();\n/* 789 */ double axisMin = this.timeline.toTimelineValue(range.getLowerMillis());\n/* 790 */ double axisMax = this.timeline.toTimelineValue(range.getUpperMillis());\n/* 791 */ double result = 0.0D;\n/* 792 */ if (RectangleEdge.isTopOrBottom(edge)) {\n/* 793 */ double minX = area.getX();\n/* 794 */ double maxX = area.getMaxX();\n/* 795 */ if (isInverted()) {\n/* 796 */ result = maxX + (value - axisMin) / (axisMax - axisMin) * (minX - maxX);\n/* */ }\n/* */ else {\n/* */ \n/* 800 */ result = minX + (value - axisMin) / (axisMax - axisMin) * (maxX - minX);\n/* */ }\n/* */ \n/* */ }\n/* 804 */ else if (RectangleEdge.isLeftOrRight(edge)) {\n/* 805 */ double minY = area.getMinY();\n/* 806 */ double maxY = area.getMaxY();\n/* 807 */ if (isInverted()) {\n/* 808 */ result = minY + (value - axisMin) / (axisMax - axisMin) * (maxY - minY);\n/* */ }\n/* */ else {\n/* */ \n/* 812 */ result = maxY - (value - axisMin) / (axisMax - axisMin) * (maxY - minY);\n/* */ } \n/* */ } \n/* */ \n/* 816 */ return result;\n/* */ }", "@Override public void refreshFromVariable(VariableContainer_ifc container){\n if(bActive){\n List<Track> listTracks1 = listTracks; //Atomic access, iterate in local referenced list.\n float[] values = new float[listTracks1.size()];\n int ixTrack = -1;\n int[] timeShortAbsLastFromVariable = null;\n boolean bDifferentTime = false;\n boolean bRefreshed = false; //set to true if at least one variable is refreshed.\n for(Track track: listTracks1){\n if(track.variable ==null && bNewGetVariables){ //no variable known, get it.\n String sDataPath = track.getDataPath();\n if(sDataPath !=null){\n if(sDataPath.startsWith(\"-\")){ //it is a comment\n int posEnd = sDataPath.indexOf('-',1) +1;\n sDataPath = sDataPath.substring(posEnd); //after second '-', inclusive first '-' if no second found.\n }\n String sPath2 = sDataPath.trim();\n if(!sDataPath.startsWith(\"#\")){ //don't regard commented line\n String sPath = gralMng.getReplacerAlias().replaceDataPathPrefix(sPath2); //replaces only the alias:\n track.variable = container.getVariable(sPath);\n if(track.variable == null){\n System.err.printf(\"GralCurveView - variable not found; %s in curveview: %s\\n\", sPath, super.name);\n }\n }\n }\n }\n final float value;\n \n if(track.variable !=null ){\n int[] timeShort = track.variable.getLastRefreshTimeShort();\n if(timeShort !=null && timeShort[0] !=0) {\n if(timeShortAbsLastFromVariable == null) { timeShortAbsLastFromVariable = timeShort; }\n else if(timeShort != timeShortAbsLastFromVariable) { // has another time \n //maybe todo possibility to mark a curve as old\n bDifferentTime = timeShortAbsLastFromVariable[0] != timeShort[0];\n if((timeShort[0] - timeShortAbsLastFromVariable[0] ) >0) {\n timeShortAbsLastFromVariable[0] = timeShort[0]; //use the last value\n timeShortAbsLastFromVariable[1] = timeShort[1];\n }\n }\n }\n if(track.variable.isRefreshed()){\n bRefreshed = true;\n }\n if(track.getDataPath().startsWith(\"xxx:\"))\n stop();\n value = track.variable.getFloat();\n track.variable.requestValue(System.currentTimeMillis());\n } else {\n value = 0;\n }\n values[++ixTrack] = value;\n } \n bNewGetVariables = false;\n final long timeyet = System.currentTimeMillis();\n final int timeshort, timeshortAdd;\n if(this.common.timeDatapath !=null && this.common.timeVariable ==null){\n String sPath = gralMng.getReplacerAlias().replaceDataPathPrefix(this.common.timeDatapath); //replaces only the alias:\n this.common.timeVariable = container.getVariable(sPath);\n }\n if(this.common.timeVariable !=null){\n //the time variable should contain a relative time stamp. It is the short time.\n //Usual it is in 1 ms-step. To use another step width, a mechanism in necessary.\n //1 ms in 32 bit are ca. +- 2000000 seconds or ~ +-23 days as longest time for differences.\n timeshort = this.common.timeVariable.getInt() + this.timeorg.timeshortAdd;\n this.common.timeVariable.requestValue(timeyet);\n if(this.timeorg.absTime.isCleaned()) {\n setTimePoint(timeyet, timeshort, 1.0f); //the first time set.\n timeshortAdd = 0;\n }\n else if((timeshort - this.timeorg.timeshortLast) <0 || this.timeorg.absTime.isCleaned()) {\n //new simulation time:\n timeshortAdd = this.timeorg.absTime.timeshort4abstime(timeyet);\n this.timeorg.timeshortAdd += timeshortAdd; \n setTimePoint(timeyet, timeshort, 1.0f); //for later times set the timePoint newly to keep actual.\n } else {\n timeshortAdd = 0;\n }\n } else if(timeShortAbsLastFromVariable !=null) {\n timeshort = timeShortAbsLastFromVariable[0];\n timeshortAdd = timeShortAbsLastFromVariable[1];\n if(this.timeorg.absTime.isCleaned()) {\n setTimePoint(timeyet, timeshort + timeshortAdd, 1.0f); //set always a timePoint if abstime is not given.\n }\n } else {\n timeshort = (int)timeyet; //The milliseconds from absolute time.\n timeshortAdd = 0;\n setTimePoint(timeyet, timeshort, 1.0f); //set always a timePoint if not data time is given.\n }\n if(bRefreshed && timeshort != this.timeorg.timeshortLast) {\n //don't write points with the same time, ignore seconds.\n setSample(values, timeshort, timeshortAdd);\n //System.out.println(\"setSample\");\n this.timeorg.timeshortLast = timeshort;\n }\n }\n }", "protected void execute() {\n \t\n \tdouble rightTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Right_Trigger);\n \tdouble leftTrigger = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_Trigger);\n \tdouble leftJoystickXAxis = Robot.m_oi.controllerDriverAxisValue(RobotMap.Controller1_Left_X_Axis);\n \t \n \t//Deadzone For Joystick\n \tif (Math.abs(leftJoystickXAxis) < RobotMap.JoystickDeadzone) {\n \t\tleftJoystickXAxis = 0;\n \t} else {\n \t\tif (leftJoystickXAxis < 0) {\n// \t\t\tSmartDashboard.putNumber(\"NEG JS BEFORE\", leftJoystickXAxis);\n \t\t\tleftJoystickXAxis = (((leftJoystickXAxis - (-0.99)) * (0 - (-0.99))) / ((-1)*(RobotMap.JoystickDeadzone) - (-0.99))) + (-0.99);\n// \t\t\tSmartDashboard.putNumber(\"NEG JS AFTER\", leftJoystickXAxis);\n \t\t} else if (leftJoystickXAxis > 0) {\n// \t\t\tSmartDashboard.putNumber(\"POS JS BEFORE\", leftJoystickXAxis);\n \t\t\tleftJoystickXAxis = (((leftJoystickXAxis - (RobotMap.JoystickDeadzone)) * (0.99 - 0)) / (0.99 - RobotMap.JoystickDeadzone)) + 0;\n// \t\t\tSmartDashboard.putNumber(\"POS JS AFTER\", leftJoystickXAxis);\n \t\t}\n \t}\n \t//Deadzone For Right Trigger\n \tif (Math.abs(rightTrigger) < RobotMap.TriggerDeadzone) {\n \t\trightTrigger = 0;\n \t} else {\n// \t\t\tSmartDashboard.putNumber(\"RT BEFORE\", rightTrigger);\n \t\trightTrigger = (((rightTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0;\n// \t\t\tSmartDashboard.putNumber(\"RT AFTER\", rightTrigger);\n \t\t\n \t}\n \t//Deadzone For Left Trigger\n \tif (Math.abs(leftTrigger) < RobotMap.TriggerDeadzone) {\n \t\tleftTrigger = 0;\n \t} else {\n// \t\t\tSmartDashboard.putNumber(\"LT BEFORE\", leftTrigger);\n \t\t\tleftTrigger = (((leftTrigger - (RobotMap.TriggerDeadzone)) * (1.00 - 0)) / (1.00 - RobotMap.TriggerDeadzone)) + 0;\n// \t\t\tSmartDashboard.putNumber(\"LT AFTER\", leftTrigger);\n \t\t\n \t}\n \t\n \t//Creating motor variables\n \tdouble leftMotors = ((rightTrigger) - leftTrigger + leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop;\n \tdouble rightMotors = (rightTrigger - leftTrigger - leftJoystickXAxis)*RobotMap.Drive_Scaling_Teleop*RobotMap.Curve_Reduction_Factor*(-1);\n \t\n \tif (leftMotors > RobotMap.MAX_ROBOT_SPEED) {\n \t\t \n \t\tleftMotors = RobotMap.MAX_ROBOT_SPEED;\n \t\t \n \t}\n \tif (rightMotors > RobotMap.MAX_ROBOT_SPEED) {\n \t\t \n \t\trightMotors = RobotMap.MAX_ROBOT_SPEED;\n \t\t \n \t}\n \t if (leftMotors < RobotMap.MIN_ROBOT_SPEED) {\n \t\t \n \t\tleftMotors = RobotMap.MIN_ROBOT_SPEED;\n \t\t \n \t}\n \tif (rightMotors < RobotMap.MIN_ROBOT_SPEED) {\n \t\t \n \t\trightMotors = RobotMap.MIN_ROBOT_SPEED;\n \t\t \n \t}\n \tRobot.driveTrain.setLeft(leftMotors);\n \tRobot.driveTrain.setRight(rightMotors);\n \t\n }", "@Test\n public void test04() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(0.0, 2379.62183143);\n Line2D.Double line2D_Double0 = new Line2D.Double();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getRangeAxisEdge(364);\n ValueMarker valueMarker0 = new ValueMarker(0.0);\n Layer layer0 = Layer.FOREGROUND;\n combinedDomainCategoryPlot0.addRangeMarker(58, (Marker) valueMarker0, layer0);\n String string0 = point2D_Double0.toString();\n }", "RampUpTimer getRampUpTimer();", "@Override\n\tpublic <T extends Dimension> T getAxisValue(DimensionType type) {\n\t\treturn Cast.uncheckedCast(dimensions.stream().filter(it -> it.getType().equals(type)).findAny().orElseThrow(() -> new GradleException(String.format(\"Dimension '%s' is not part of this build variant.\", type.toString()))));\n\t}", "public void mo3894j() {\n if (!this.af) {\n float w;\n m10357a(this.ae);\n float f = this.ae.left + 0.0f;\n float f2 = 0.0f + this.ae.top;\n float f3 = this.ae.right + 0.0f;\n float f4 = this.ae.bottom + 0.0f;\n if (this.f9051o.m15397N()) {\n f += this.f9051o.m15398a(this.f9053q.m10333a());\n }\n if (this.f9052p.m15397N()) {\n f3 += this.f9052p.m15398a(this.f9054r.m10333a());\n }\n if (this.H.A() && this.H.h()) {\n w = ((float) this.H.f13939E) + this.H.w();\n if (this.H.m15381B() == XAxisPosition.BOTTOM) {\n f4 += w;\n } else if (this.H.m15381B() == XAxisPosition.TOP) {\n f2 += w;\n } else if (this.H.m15381B() == XAxisPosition.BOTH_SIDED) {\n f4 += w;\n f2 += w;\n }\n }\n f2 += getExtraTopOffset();\n f3 += getExtraRightOffset();\n f4 += getExtraBottomOffset();\n f += getExtraLeftOffset();\n w = C3283i.m15928a(this.f9048l);\n this.Q.m15851a(Math.max(w, f), Math.max(w, f2), Math.max(w, f3), Math.max(w, f4));\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"offsetLeft: \" + f + \", offsetTop: \" + f2 + \", offsetRight: \" + f3 + \", offsetBottom: \" + f4);\n Log.i(\"MPAndroidChart\", \"Content: \" + this.Q.m15874k().toString());\n }\n }\n m10364g();\n mo3893f();\n }", "@Override\n\tpublic ValenciaItemEnriched map(Tuple2<ValenciaItem, ValenciaItem> value) throws Exception {\n\t\tthis.cpuGauge.updateValue(LinuxJNAAffinity.INSTANCE.getCpu());\n\n\t\tValenciaItem valenciaItem00 = value.f0;\n\t\tValenciaItem valenciaItem01 = value.f1;\n\t\tList<Point> coordinates00 = valenciaItem00.getCoordinates();\n\t\tList<Point> coordinates01 = valenciaItem01.getCoordinates();\n\t\tList<Point> newCoordinates = new ArrayList<Point>();\n\t\tnewCoordinates.addAll(coordinates00);\n\t\tnewCoordinates.addAll(coordinates01);\n\t\tString newValue = \"\";\n\n\t\tif (valenciaItem00.getValue() != null) {\n\t\t\tif (valenciaItem00.getType() == ValenciaItemType.TRAFFIC_JAM) {\n\t\t\t\tnewValue = ((Integer) valenciaItem00.getValue()).toString();\n\t\t\t} else if (valenciaItem00.getType() == ValenciaItemType.AIR_POLLUTION) {\n\t\t\t\tnewValue = ((AirPollution) valenciaItem00.getValue()).toString();\n\t\t\t} else if (valenciaItem00.getType() == ValenciaItemType.NOISE) {\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"ValenciaItemType is NULL!\");\n\t\t\t}\n\t\t}\n\t\tif (valenciaItem01.getValue() != null) {\n\t\t\tif (valenciaItem01.getType() == ValenciaItemType.TRAFFIC_JAM) {\n\t\t\t\tnewValue += \" - \" + ((Integer) valenciaItem01.getValue()).toString();\n\t\t\t} else if (valenciaItem01.getType() == ValenciaItemType.AIR_POLLUTION) {\n\t\t\t\tnewValue += \" - \" + ((AirPollution) valenciaItem01.getValue()).toString();\n\t\t\t} else if (valenciaItem01.getType() == ValenciaItemType.NOISE) {\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"ValenciaItemType is NULL!\");\n\t\t\t}\n\t\t}\n\t\tValenciaItemEnriched valenciaItemEnriched = new ValenciaItemEnriched(valenciaItem00.getId(),\n\t\t\t\tvalenciaItem00.getAdminLevel(), valenciaItem00.getDistrict(), valenciaItem00.getUpdate(),\n\t\t\t\tnewCoordinates, newValue);\n\n\t\tString allDistances = null;\n\t\tfor (Point point00 : coordinates00) {\n\t\t\tTuple3<Long, Long, String> adminLevel00 = sgp.getAdminLevel(point00);\n\t\t\tif (adminLevel00.f0 == null || adminLevel00.f1 == null) {\n\t\t\t\tadminLevel00.f0 = 16L;\n\t\t\t\tadminLevel00.f1 = 9L;\n\t\t\t\tadminLevel00.f2 = \"Benicalap\";\n\t\t\t}\n\t\t\tfor (Point point01 : coordinates01) {\n\t\t\t\tTuple3<Long, Long, String> adminLevel01 = sgp.getAdminLevel(point01);\n\t\t\t\tif (adminLevel01.f0 == null || adminLevel01.f1 == null) {\n\t\t\t\t\tadminLevel01.f0 = 16L;\n\t\t\t\t\tadminLevel01.f1 = 9L;\n\t\t\t\t\tadminLevel01.f2 = \"Benicalap\";\n\t\t\t\t}\n\t\t\t\tPoint pointDerived00 = sgp.calculateDerivedPosition(point00, 10, 10);\n\t\t\t\tPoint pointDerived01 = sgp.calculateDerivedPosition(point01, 10, 10);\n\t\t\t\tdouble distance = point00.euclideanDistance(point01);\n\t\t\t\tString msg = \"districts[\" + adminLevel00.f0 + \", \" + adminLevel01.f0 + \", \" + distance + \" meters]\";\n\t\t\t\tif (Strings.isNullOrEmpty(allDistances)) {\n\t\t\t\t\tallDistances = \"[\" + msg;\n\t\t\t\t} else {\n\t\t\t\t\tallDistances += \" ;\" + msg;\n\t\t\t\t}\n\t\t\t\tmsg += \" \" + pointDerived00.toString() + \" \" + pointDerived01.toString();\n\t\t\t}\n\t\t}\n\t\tallDistances += \"]\";\n\t\tvalenciaItemEnriched.setDistances(allDistances);\n\t\treturn valenciaItemEnriched;\n\t}", "@Override\r\n\tpublic void refreshChart2() {\n\t\tString[] s = new String[categoryStrings.size()];\r\n\t\ts= categoryStrings.toArray(s);\r\n\t\tif(getChartType().equals(\"StepLineChart\")) {\r\n\t\t\tDateAxis xAxis = new DateAxis(\"time\");\r\n\t\t\tValueAxis yAxis = new SymbolAxis(\"status\", s);\r\n\t\t\tXYStepRenderer renderer = new XYStepRenderer();\r\n\t\t\tXYPlot plot = new XYPlot(chartDataset, xAxis, yAxis, renderer);\r\n\t\t\tsetChart(new JFreeChart(null, new Font(\"Tahoma\", 0, 18), plot, true));\r\n\t\t}\r\n\t\t((GridBagLayout)getMonitoringPanel().getLayout()).rowHeights[2] = getMinimumHeight();\r\n\t\tgetMonitoringPanel().setPreferredSize(new Dimension(getMinimumWhidth(), (int) Math.round(getMonitoringPanel().getPreferredSize().getHeight())));\r\n\t\tsetVisible(isVisible());\r\n\t\tgetMonitoringPanel().setVisible(isVisible());\r\n\t\tif (chartPanel != null) \r\n\t\t\tgetMonitoringPanel().remove(chartPanel);\r\n\t\tsetChartPanel(new ChartPanel(chart));\r\n\t\tgetMonitoringPanel().add(chartPanel, new GridBagConstraints(0, 2, 6, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t}", "private void fill() {\n\t\tseries1.clear();\n\t\tint m = 50;\n\t\tdouble tmpX, tmpZ;\n\n\t\tfor (double x=-m; x <= +m; x++) {\n\t\t\ttmpX = MathUtils.sqr(x/30);\n\t\t\tfor (double z=-m; z <= +m; z++) {\n\t\t\t\ttmpZ = MathUtils.sqr(z/30);\n\t\t\t\ttmpZ = Math.sqrt(tmpX+tmpZ);\n\t\t\t\tseries1.add(x, 4*Math.cos(3*tmpZ)*Math.exp(-0.5*tmpZ), z);\n\t\t\t}\n\t\t}\n\t }", "public final ArrayList<Double> getMeasureValues() {\r\n return this.measureValues;\r\n }", "double getValue();", "double getValue();", "double getValue();", "private ArrayList<Entry> setYAxisValues(){\n ArrayList<Entry> yVals = new ArrayList<Entry>();\n for (int z = 0; z < 235; z++) {\n yVals.add(new Entry((float)graphArray[z], z));\n }\n return yVals;\n }", "public double getAxisValue(int axis) {\n\t\tif (axis < 0)\n\t\t\treturn 0;\n\t\t\n\t\tdouble sign = (axis == 1 || axis == 5) ? -1 : 1;\n\t\tdouble tempAxis = joystick.getRawAxis(axis);\n\t\treturn sign * (Math.abs(tempAxis) > DEAD_BAND ? tempAxis : 0.0);\n\t}", "@Override\n public void execute() {\n //double sliderValue = -1.0 * m_xbox.getRawAxis(3);\n //sliderValue = (sliderValue /2) + 0.5;\n double joyForward = m_xbox.getRawAxis(Constants.OI.yAxis);\n double joyTurn = m_xbox.getRawAxis(Constants.OI.xAxis);\n // System.out.println(\"Y axis: \" + joyForward);\n // System.out.println(\"X axis: \" + joyTurn);\n if(Math.abs(joyForward) < 0.1 ) {\n joyForward = 0.0;\n }\n if(Math.abs(joyTurn) < 0.1) {\n joyTurn = 0.0;\n }\n m_drivetrain.setArcadeDrive(0.7*joyForward, 0.6 * joyTurn);\n // if(Math.abs(joyForward) < 0.1) {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, joyTurn, true);\n // } else {\n // m_drivetrain.setArcadeDrive(sliderValue * joyForward, 0.8 * joyTurn, false);\n // }\n \n // 14 feet, 7 inches\n }" ]
[ "0.53291345", "0.5295604", "0.5190958", "0.5132877", "0.5126012", "0.5107847", "0.5097029", "0.5014633", "0.5012627", "0.5004555", "0.49903238", "0.49799988", "0.49728343", "0.496755", "0.4967114", "0.49482962", "0.49313867", "0.49204844", "0.49199888", "0.4918356", "0.48999494", "0.4883183", "0.48816106", "0.48687613", "0.4843485", "0.4830299", "0.4820226", "0.48160648", "0.48094305", "0.47900555", "0.47874245", "0.4778748", "0.47496304", "0.47456124", "0.47428265", "0.4740949", "0.47387704", "0.47328776", "0.47311342", "0.47308642", "0.47273296", "0.47220197", "0.4717783", "0.47138968", "0.4709552", "0.46945658", "0.46689945", "0.46688288", "0.4658924", "0.46486467", "0.46466118", "0.46447274", "0.4639783", "0.46390444", "0.4635543", "0.4627868", "0.46275452", "0.4623767", "0.4621374", "0.46206862", "0.46104625", "0.4605984", "0.46059665", "0.46051428", "0.46003234", "0.45980766", "0.45955098", "0.45953852", "0.4594248", "0.45915896", "0.458397", "0.45803413", "0.4579018", "0.45741847", "0.45700207", "0.45674464", "0.4566413", "0.4564579", "0.45496884", "0.45401955", "0.45391166", "0.45285603", "0.4525918", "0.45241165", "0.45174965", "0.45159742", "0.45158833", "0.45157245", "0.45106697", "0.45103443", "0.45059857", "0.44966152", "0.44941875", "0.44908705", "0.44900137", "0.44900137", "0.44900137", "0.44871634", "0.44856492", "0.44851345" ]
0.5589869
0
transforms the array to deadzone to round values as necessary (ex. 0.02 to 0)
public static double[] deadZone(double[] axis){ for (int i = 0; i< axis.length; i++){ if ((axis[i] <= 0.05) && (axis[i] >= -0.05)) {//i will iterate to 0,1,2 since axis array size is 3 axis[i] = 0;//if the condition is satisfies, round it to zero } } System.out.println(axis.length); return axis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[] convertArray(double[] array) {\r\n\t\t int[] intArray = new int[array.length];\r\n\t\t for (int i=0; i<intArray.length; ++i) {\r\n\t\t intArray[i] = (int) Math.round(array[i]);\r\n\t\t }\r\n\t\t return intArray;\r\n\t }", "private static void normalizeFromLog10(double[] array) {\n double maxValue = findMaxEntry(array).first;\n for (int i = 0; i < array.length; i++)\n array[i] = Math.pow(10, array[i] - maxValue);\n \n // normalize\n double sum = 0.0;\n for (int i = 0; i < array.length; i++)\n sum += array[i];\n for (int i = 0; i < array.length; i++)\n array[i] /= sum;\n }", "void patchArray(long array[][], long scale)\n {\n // patch all numbers up by 100 to keep the order but to rid the negative\n // numbers\n for (int i = 0; i < array.length; i++)\n {\n array[i][0] += scale;\n array[i][1] += scale;\n }\n }", "@Override\n public void crunch(float values[]){\n int biggest = 0;\n int smallest = 0;\n\n for(int j = 0; j <= values.length -1; j++){\n for(int i = 0; i <= values.length -1; i++){\n if(values[i+1] > values[i]){\n biggest = i+1;\n smallest = i;\n } else{\n biggest = i;\n smallest = i+1;\n }\n }\n if(smallest != 0){\n values[biggest] /= values[smallest];\n }\n }\n }", "private static double[] normalize(double[] data)\n {\n double sum = 0;\n \n for (double d : data)\n sum += d;\n \n if (sum != 1 && sum != 0)\n {\n for (int i = 0; i < data.length; i++)\n data[i] /= sum;\n }\n \n return data;\n }", "private static double snapSpace(double value, boolean snapToPixel) {\n return snapToPixel ? Math.round(value) : value;\n }", "private double[] normalize(double[] p) {\n double sum = 0;\n double[] output = new double[p.length];\n for (double i : p) {\n sum += i;\n }\n for (int i = 0; i < output.length; i++) {\n output[i] = p[i]/sum;\n }\n return output;\n }", "public static void normalization(double[] array)\r\n\t{\r\n\t\tdouble sum = Σ(array);\r\n\r\n\t\tif (sum == 0 || array.length == 0)\r\n\t\t\treturn;\r\n\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = array[i] / sum;\r\n\t}", "public int[] round_up(int[] array_of_notes) {\r\n int[] array_of_notes1 = array_of_notes.clone();\r\n for (int i = 0; i < array_of_notes1.length; i++) {\r\n if ((array_of_notes1[i] + 1) % 5 == 0)\r\n array_of_notes1[i] = array_of_notes1[i] + 1;\r\n else if ((array_of_notes1[i] + 2) % 5 == 0)\r\n array_of_notes1[i] = array_of_notes1[i] + 2;\r\n }\r\n return array_of_notes1;\r\n }", "private List<Double> double2List(final double[] array) {\n\t\tList<Double> result = new ArrayList<Double>();\n\t\tfor (double n : array) {\n\t\t\tresult.add(new Double(n));\n\t\t}\n\t\treturn result;\n\t}", "private double normalizeImageValue(double value){\n return value/(31);\n }", "double roundOff (double value) {\n\t\treturn Math.floor((value + EPSILON) * 100) / 100;\n\t}", "static void roundTable(final List<double[]> table) {\n if (table.size() == 0) return;\n \n\tint numRows = table.size();\n\tint numCols = table.get(0).length;\n\t\n\tdouble[] rowSum = new double[numRows];\n\tdouble[] colSum = new double[numCols];\n\tdouble[][] newTable = new double[numRows][numCols];\n\t\n\tfor (int i = 0; i < numRows; i++) {\n\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\tnewTable[i][j] = table.get(i)[j];\n\t\t\trowSum[i] += table.get(i)[j];\n\t\t\tcolSum[j] += table.get(i)[j];\n\t\t}\n\t}\n\t\n\tInteger source = -numCols - 1;\n\tInteger sink = numRows + 1;\n\tList<Integer> nodes = new ArrayList<Integer>();\n\t\n for (int i = 0; i < numRows + 1; i++) {\n \tnodes.add(i);\n }\n for (int i = 0; i < numCols + 1; i++) {\n \tnodes.add(-i);\n }\n \n\tToDoubleBiFunction<Integer, Integer> minEdgeFlow = (a, b) -> {\n\t\tif (a.equals(source) && (b < 0 && b >= -numCols)) {\n\t\t\treturn Math.floor(colSum[-b - 1]);\n\t\t} else if ((a > 0 && a <= numRows) && b.equals(sink)) {\n\t\t\treturn Math.floor(rowSum[a - 1]);\n\t\t} else if ((b > 0 && b <= numRows) && (a < 0 && a >= -numCols)) {\n\t\t\treturn Math.floor(newTable[b - 1][-a - 1]);\n\t\t}\n\t\treturn 0.0;};\n\t\n\tToDoubleBiFunction<Integer, Integer> maxEdgeFlow = (a, b) -> {\n\t\tif (a.equals(source) && (b < 0 && b >= -numCols)) {\n\t\t\treturn Math.ceil(colSum[-b - 1]);\n\t\t} else if ((a > 0 && a <= numRows) && b.equals(sink)) {\n\t\t\treturn Math.ceil(rowSum[a - 1]);\n\t\t} else if ((b > 0 && b <= numRows) && (a < 0 && a >= -numCols)) {\n\t\t\treturn Math.ceil(newTable[b - 1][-a - 1]);\n\t\t}\n\t\treturn 0.0;};\n\t\n\tToDoubleBiFunction<Integer, Integer> flow = findFeasibleBoundedFlow(source, sink, nodes,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminEdgeFlow, maxEdgeFlow);\n\tfor (int i = 0; i < numCols; i++) {\n\t\tfor (int j = 0; j < numRows; j++) {\n\t\t\ttable.get(j)[i] = flow.applyAsDouble(-i - 1, j + 1);\n\t\t}\n\t}\n }", "public static float roundTo1D(float n)\n\t{\n\t\treturn Math.round(n*10.0f)/10.0f;\n\t}", "private double round(double data) {\n\n\t\treturn Math.rint(data / m_Precision) * m_Precision;\n\t}", "public void roundValues(int dp) {\n /*\n * rounds values to the specified decimal places (dp)\n * in place\n * */\n\n if (dp < 1) {\n return;\n }\n\n dp *= 10;\n realPart = Math.round(realPart * dp) / (double) dp;\n imaginaryPart = Math.round(imaginaryPart * dp) / (double) dp;\n }", "public static void normalise(double[] v) {\n double tot = 0;\r\n for (int i=0; i<v.length; i++) {\r\n tot += v[i] * v[i];\r\n }\r\n double div = Math.sqrt(tot);\r\n if (div > 0) {\r\n for (int i=0; i<v.length; i++) {\r\n v[i] /= div;\r\n }\r\n }\r\n }", "private float ratioToValue (float ratio){\n return ratio * (mMax - mMin) + mMin;\n }", "@Test\r\n public void testRoundingDaub04FWT( ) throws JWaveException {\r\n \r\n // Performing: 10000000 forward and reverse transforms ...\r\n // 0%-------------------------------------50%----------------------------------100%\r\n // oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\r\n //\r\n // Input ...\r\n // time domain: 1.0 1.0 1.0 1.0 \r\n //\r\n // Result ...\r\n // time domain: 0.9999999999999553 0.9999999999999547 0.9999999999999553 0.9999999999999547 \r\n //\r\n // Absolute error\r\n // time domain: 4.474198789239381E-14 4.529709940470639E-14 4.474198789239381E-14 4.529709940470639E-14 \r\n //\r\n // Relative error [%] ...\r\n // time domain: 4.474198789239381E-12 4.529709940470639E-12 4.474198789239381E-12 4.529709940470639E-12 \r\n \r\n System.out.println( \"\" );\r\n System.out.println( \"testRoundingDaub04FWT\" );\r\n \r\n double delta = 1.e-8;\r\n \r\n double[ ] arrTime = {\r\n 1., 1., 1., 1.\r\n };\r\n \r\n testFastBasicTransformRounding( arrTime, new Daub02( ), delta );\r\n \r\n }", "public double[] Normalizar01(int[] v){\n double[] result=new double[v.length];\n double s=v[0];\n double max=v[0];\n double min=v[0];\n for (int i=1;i<v.length;i++){\n s+=v[i];\n //minimo\n if (v[i]<min)\n min=v[i];\n if (v[i]>max)\n max=v[i];\n //maximo\n }\n for (int i=0;i<v.length;i++){\n result[i]=((double)v[i]-min)/(max-min);\n }\n\n return result;\n }", "protected final static int getHalfRoundedAvg(final int [] pV) {\n int total = 0;\n for (int idx=0; idx < pV.length; idx++) total += pV[idx];\n return Math.round((((float)total / (float)pV.length) / (float)2));\n }", "private double roundValue(double x) {\n\t\tx = x * 1000;\n\t\tx = Math.round(x);\n\t\tx = ((double) x) / 1000;\n\t\treturn x;\n\t}", "public double[] toDoubleArray(double[] array) {\n\t\tif (array == null) {\n\t\t\tarray = new double[point.length];\n\t\t}\n\t\tSystem.arraycopy(point, 0, array, 0, point.length);\n\t\treturn array;\n\t}", "public void testFastBasicTransformRounding( double[ ] arr, Wavelet wavelet, double delta ) throws JWaveException {\r\n \r\n long noOfSteps = 10000000;\r\n \r\n noOfSteps = 1000;\r\n \r\n double[ ] arrTime = arr;\r\n \r\n showTime( arrTime );\r\n \r\n double[ ] arrTimeRound = new double[ arrTime.length ];\r\n for( int c = 0; c < arrTime.length; c++ )\r\n arrTimeRound[ c ] = arrTime[ c ];\r\n \r\n Transform t = new Transform( new FastWaveletTransform( wavelet ) );\r\n \r\n System.out.println( \"\" );\r\n System.out.println( \"\" );\r\n System.out.print( \"Performing: \" + noOfSteps + \" forward and reverse transforms ...\" );\r\n // Bar bar = new Bar( new BarHandlerOs( noOfSteps ) );\r\n for( long s = 0; s < noOfSteps; s++ ) {\r\n arrTimeRound = t.reverse( t.forward( arrTimeRound ) );\r\n // bar.trigger( );\r\n } // s\r\n System.out.println( \"\" );\r\n System.out.println( \"\" );\r\n \r\n assertArray( arrTime, arrTimeRound, delta );\r\n \r\n System.out.println( \"Input ...\" );\r\n showTime( arrTime );\r\n System.out.println( \"\" );\r\n \r\n System.out.println( \"Result ...\" );\r\n showTime( arrTimeRound );\r\n System.out.println( \"\" );\r\n \r\n double[ ] arrTimeErrorAbs = new double[ arrTimeRound.length ];\r\n for( int c = 0; c < arrTimeRound.length; c++ )\r\n arrTimeErrorAbs[ c ] = Math.abs( arrTimeRound[ c ] - arrTime[ c ] );\r\n \r\n System.out.println( \"Absolute error\" );\r\n showTime( arrTimeErrorAbs );\r\n System.out.println( \"\" );\r\n \r\n double[ ] arrTimeErrorRel = new double[ arrTimeRound.length ];\r\n for( int c = 0; c < arrTimeRound.length; c++ )\r\n arrTimeErrorRel[ c ] = Math.abs( ( arrTimeRound[ c ] - arrTime[ c ] ) * 100. / arrTime[ c ] );\r\n \r\n System.out.println( \"Relative error [%] ...\" );\r\n showTime( arrTimeErrorRel );\r\n System.out.println( \"\" );\r\n \r\n }", "private double round(double value, int decimalPlaces) {\n return new BigDecimal(value).setScale(decimalPlaces, RoundingMode.HALF_UP).doubleValue();\n }", "private static double[] toPrimitive(Double[] objectDoubles) {\n \tdouble[] primDoubles = new double[objectDoubles.length];\n \tfor(int i = 0; i < objectDoubles.length; i++) {\n \t\tprimDoubles[i] = objectDoubles[i].doubleValue();\n \t}\n \t\n \treturn primDoubles;\n }", "public static float[] l2normalize(float[] v) {\n l2normalize(v, true);\n return v;\n }", "@Override\n\tpublic void replaceMissingValues(final double[] array) {\n\n\t}", "private double roundToOneDecimal(double num) {\n\t\treturn (int)((10 * num) + 0.5) / 10.0;\n\t}", "public double[] Normalizar(int[] v){\n double[] result=new double[v.length];\n double s=0;\n for (int i=0;i<v.length;i++){\n s+=v[i];\n }\n for (int i=0;i<v.length;i++){\n result[i]=(double)v[i]/(double)s;\n }\n\n return result;\n }", "protected double round(double value, int precision) {\n int scale = (int) Math.pow(10, precision);\n return (double) Math.round(value * scale) / scale;\n }", "private double[] gridArrayToPixels(double[] gridValues) {\n double[] result = new double[gridValues.length];\n\n for (int i = 0; i < gridValues.length; i++) {\n result[i] = gridValues[i] * gridSize;\n }\n return result;\n }", "public static double deadzone(double d) {\n if (Math.abs(d) < .1) {\r\n return 0;\r\n }\r\n \r\n if (d == 0)\r\n {\r\n return 0;\r\n }\r\n //When the joystick is used for a purpose (passes the if statements, \r\n //hence not just being loose), do math\r\n return (d / Math.abs(d)) //gets the sign of d, negative or positive\r\n * ((Math.abs(d) - .1) / (1 - .1)); //scales it\r\n }", "private double[] toDoubleArray(float[] arr) {\n\t\tif (arr == null)\n\t\t\treturn null;\n\t\tint n = arr.length;\n\t\tdouble[] outputFloat = new double[n];\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\toutputFloat[i] = (double) arr[i];\n\n\t\t}\n\t\treturn outputFloat;\n\t}", "static void normalize(double[] state) {\r\n double norm = 1/Math.sqrt(state[0]*state[0]+state[2]*state[2]+state[4]*state[4]+state[6]*state[6]);\r\n state[0] *= norm;\r\n state[2] *= norm;\r\n state[4] *= norm;\r\n state[6] *= norm;\r\n }", "public double round (double value) {\n BigDecimal bd = new BigDecimal(value);\n bd = bd.setScale(2, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }", "static Double round(Double value) {\n BigDecimal bd = new BigDecimal(Double.toString(value));\n bd = bd.setScale(6, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }", "private double valueToNormalized(T value) {\n if (0 == absoluteCriticalValuePrim - absoluteWarningValuePrim) {\n // prevent division by zero, simply return 0.\n return 0d;\n }\n return (value.doubleValue() - absoluteWarningValuePrim) / (absoluteCriticalValuePrim - absoluteWarningValuePrim);\n }", "public void normalize() {\n double maxTotalTime = findMaxTotalTimeSeconds();\n int maxTotalMoves = findMaxTotalMoves();\n ResultMaxTotals maxTotals = new ResultMaxTotals(maxTotalTime, maxTotalMoves);\n\n updateNormalizedValues(maxTotals);\n }", "private static double[][] downsample(double[][] data) {\n double[][] plane = new double[data.length / 2][data[0].length / 2];\n for (int i = 0; i < data.length; i += 2) {\n for (int j = 0; j < data[i].length; j += 2) {\n plane[i / 2][j / 2] = (data[i][j] + data[i + 1][j] + data[i][j + 1] + data[i + 1][j + 1]) / 4;\n }\n }\n return plane;\n }", "private static List<Double> getNormalizedAndRoundedSpeeds( List<Stat> statList ) {\n \tList<Double> speeds = new LinkedList<Double>();\n \tdouble normalization = 15;\n \t\n \tfor (Stat stat: statList) {\n \t\tDouble speed = stat.stepSpeed;\n \t\tDouble roundedspeed = new Double((double) Math.round((speed/normalization) * 10) / 10);\n \t\tspeeds.add( roundedspeed );\n \t}\n \t\n \treturn speeds;\n }", "public static double round(double number) {\r\n //MiscStuff.writeToLog(number);\r\n Double d = new Double(number);\r\n String str = d.toString();\r\n str.trim();\r\n \r\n if(str.indexOf('.') + 3 < str.length()) {\r\n if(!str.equals(\"NaN\") && !str.equals(\"Infinity\") \r\n && !str.equals(\"-Infinity\")) {\r\n \r\n \r\n int i = str.indexOf('.');\r\n String str1 = str.substring(0, i + 3);\r\n d = new Double(str1);\r\n \r\n //MiscStuff.writeToLog(\" \" + str + \" \" + d);\r\n \r\n if(!str.substring(i+3).equals(\"\") ) {\r\n int rounder = new Integer(str.substring(i+3, i+4));\r\n \r\n if(5 <= rounder) {\r\n Double d2 = (10 - rounder) * .001;// d + new Float(.01);\r\n d = number + d2;\r\n //MiscStuff.writeToLog(\"Rounder \" + rounder + \" \" + d2);\r\n \r\n String str2 = d.toString();\r\n str2.trim();\r\n \r\n if(str2.indexOf('.') + 3 < str2.length()) \r\n d = Math2.round(d); //don't get stuck....\r\n }\r\n }\r\n \r\n number = d; \r\n }\r\n \r\n else {\r\n //MiscStuff.writeToLog(number); \r\n }\r\n }\r\n \r\n return number;\r\n }", "public static double[] normalize(double[] v) {\n double[] tmp = new double[3];\n tmp[0] = v[0] / VectorMath.length(v); \n tmp[1] = v[1] / VectorMath.length(v); \n tmp[2] = v[2] / VectorMath.length(v); \n return tmp; \n }", "private void preprocessOutputs() {\n\t\tfor (int i = 0 ; i < numberOfOutputs; i++) {\n\t\t\tdouble minValue = Double.MAX_VALUE;\n\t\t\tdouble maxValue = 0;\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\tif (records.get(j).output[i] < minValue) {\n\t\t\t\t\tminValue = records.get(j).output[i];\n\t\t\t\t}\n\t\t\t\tif (records.get(j).output[i] > maxValue) {\n\t\t\t\t\tmaxValue = records.get(j).output[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// set global minimums and maximums\n\t\t\toutputMinimums[i] = minValue;\n\t\t\toutputMaximums[i] = maxValue;\n\n\t\t\t// scale output to be between 0 and 1\n\t\t\tif (minValue < 0 || maxValue > 1) {\n\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\n\t\t\t\t\tdouble oldOutput = records.get(j).output[i];\n\t\t\t\t\tdouble newOutput = (oldOutput - minValue) / (maxValue - minValue);\n\t\t\t\t\trecords.get(j).output[i] = newOutput;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static int computeUnitsTrapped(int[] elevationMap) {\n int units = 0;\n for (int x = 0; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = -1;\n int left = x - 1;\n while (left >= 0) {\n tallestLeft = Math.max(elevationMap[left], tallestLeft);\n left--;\n }\n\n int tallestRight = -1;\n int right = x + 1;\n while (right < elevationMap.length) {\n tallestRight = Math.max(elevationMap[right], tallestRight);\n right++;\n }\n\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n\n return units;\n }", "private double normaliseViewingTime() {\n return this.averageViewingTime / (double) this.content.getViewLength();\n }", "private static double rundeBetrag(double betrag){\n \tdouble round = Math.round(betrag*10000); \r\n \t\r\n \tround = round / 10000; \r\n \tround = Math.round(round*1000); \r\n \tround = round / 1000; \r\n \tround = Math.round(round*100); \r\n \r\n \treturn round / 100; \r\n }", "public void normalize() {\n // determine the maximum value\n \n Double max = getMaxValue();\n \n if(max!=null) {\n normalize(max);\n }\n }", "@SuppressWarnings(\"unchecked\")\n private T normalizedToValue(double normalized) {\n double v = absoluteWarningValuePrim + normalized * (absoluteCriticalValuePrim - absoluteWarningValuePrim);\n // TODO parameterize this rounding to allow variable decimal points\n return (T) numberType.toNumber(Math.round(v * 100) / 100d);\n }", "private int windNormalizer(double dWindSpeed) {\n int windSpeed = (int) Math.round(dWindSpeed);\n int major = windSpeed / 5;\n int minor = windSpeed % 5;\n if (minor >= 3) {\n major++;\n }\n return major * 5;\n }", "protected double applyDeadband(double value, double deadband) {\n\t\tif (Math.abs(value) > deadband) {\n\t\t\tif (value > 0.0) {\n\t\t\t\treturn (value - deadband) / (1.0 - deadband);\n\t\t\t} else {\n\t\t\t\treturn (value + deadband) / (1.0 - deadband);\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "private static void fixSpikes(int[] array){\r\n\t\t\r\n\t\tfor(int i=1; i<array.length-1; i++){\r\n\t\t\tlong a=Tools.max(1, array[i-1]);\r\n\t\t\tint b=array[i];\r\n\t\t\tlong c=Tools.max(1, array[i+1]);\r\n\t\t\tif(b>1 && b>a && b>c){\r\n\t\t\t\t//peak\r\n\t\t\t\tif((b>=2*a || b>a+2) && (b>=2*c || b>c+2)){\r\n\t\t\t\t\t//spike\r\n\t\t\t\t\tarray[i]=(int)Tools.max(a, c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void scaling(double[] array, double scale)\r\n\t{\r\n\t\tdouble absMax = getMax(array);\r\n\t\tdouble min = getMin(array);\r\n\t\tif (absMax < Math.abs(min))\r\n\t\t\tabsMax = Math.abs(min);\r\n\t\tif (absMax == 0)\r\n\t\t\treturn;\r\n\t\tdouble ratio = scale / absMax;\r\n\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = array[i] * ratio;\r\n\t}", "public static List<Double> toList(final double[] array) {\n List<Double> list = new ArrayList<Double>(array.length);\n for (int i = 0; i < array.length; i++) {\n list.add(array[i]);\n }\n return list;\n }", "BigDecimal[][] toTriangular();", "public float make_accurate(float a){//fixes floats\r\n\t\tint b = (int) (a * 1000000);\r\n\t\t\r\n\t\treturn (float)(b)/1000000f;\r\n\t\t\r\n\t}", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}", "private void resizeDown()\n\t{\n\t\tint newSize = myArray.length/2;\n\t\tmyArray = Arrays.copyOf(myArray, newSize);\n\t}", "static double convert(double in) {\n return (in * 0.254);\n }", "@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }", "private double roundUnit(double unit)\n {\n double ones = Math.pow(10, Math.ceil(Math.log10(unit)));\n double twos = Math.pow(10, Math.ceil(Math.log10(unit / 2))) * 2;\n double fives = Math.pow(10, Math.ceil(Math.log10(unit / 5))) * 5;\n\n return Math.min(Math.min(ones, twos), fives);\n }", "private float deskXToAbst(int x)\n {\n return ((float)x/width);\n }", "public static int [] reduceFrac(int [] operand) {\r\n \tint [] simpleFrac = new int [3]; \r\n \tint whole = operand[0]/operand[1];\r\n \toperand[0] = (operand[0]%operand[1]);\r\n \tif (whole != 0) {\r\n \toperand[0] = Math.abs(operand[0]);\r\n \t}\r\n \r\n \tint factor = gcf(operand);\r\n \tint numerator = operand[0]/factor;\r\n \tint denominator = Math.abs(operand[1]/factor); \r\n \t\t\tsimpleFrac[0] = whole; \r\n \t\t\tsimpleFrac[1] = numerator;\r\n \t\t\tsimpleFrac[2] = denominator; \r\n \t\treturn simpleFrac; \r\n\r\n }", "public static void p(double[] array) {\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.print(df.format(array[i])+\"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private int convertX(double x)\n {\n return (int)Math.round(x);\n }", "@Override\n public IDoubleArray transform(IDoubleArray x)\n {\n IDoubleArray out = doublesNew.array(dimOut);\n transform(x, out);\n return out;\n }", "protected double applyDeadband(double value, double deadband) {\n\t\tif (Math.abs(value) > deadband) {\n\t\t\tif (value > 0.0) {\n\t\t\t\treturn (value - deadband) * (value - deadband);\n\t\t\t} else {\n\t\t\t\treturn -1 * (value + deadband) * (value + deadband);\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "static double averageDoubleArray(double[] inputArray) {\n\t\tdouble doubleSum = 00.00;\n\t\tfor (double element : inputArray) { \n\t\t\tdoubleSum += element;\n\t\t}\n\t\tdouble average = doubleSum / inputArray.length; \n\t\treturn average;\n\t}", "static void populateArray(int[] array) {\n\n Random r = new Random();\n\n for (int i = 0; i < array.length; i++) {\n\n array[i] = r.nextInt() % 100;\n\n if (array[i] < 0) array[i] = array[i] * -1;\n\n }\n\n }", "static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }", "double roundThreeDecimals(double d) {\n \tDecimalFormat threeDForm = new DecimalFormat(\"#.###\");\n \treturn Double.valueOf(threeDForm.format(d));\n\t}", "public static double roundDouble(double value, int precision){\n\t\tint rounder = (int)Math.pow(10, precision);\n\t\treturn (double)Math.round(value * rounder) / rounder;\n\t}", "public void normalize(){\r\n /*//cambios 30 de agosto\r\n if (firstExtreme<0&&secondExtreme<0){\r\n firstExtreme=-firstExtreme;\r\n secondExtreme=-secondExtreme;\r\n }\r\n //fin cambios 30 de agosto*/\r\n if (firstExtreme>secondExtreme){\r\n double auxExtreme = firstExtreme;\r\n char auxLimit = feIncluded;\r\n firstExtreme = secondExtreme;\r\n secondExtreme = auxExtreme;\r\n feIncluded = seIncluded==']'?'[':'(';\r\n seIncluded = auxLimit=='['?']':')';\r\n }\r\n }", "public static double deadzone(double input){\n\t\tdouble dead = 0.1;\n\t\t\n\t\tif (dead > 1) { return 0; }\n\t\tif (Math.abs(input) > 1) { return 0; }\n\t\tif (Math.abs(input) >= dead) { return input; }\n\t\treturn 0;\n\t}", "protected static void normalize(double[] wheelSpeeds) {\r\n\t\tdouble maxMagnitude = Math.abs(wheelSpeeds[0]);\r\n\t\tfor (int i = 1; i < kMaxNumberOfMotors; i++) {\r\n\t\t\tdouble temp = Math.abs(wheelSpeeds[i]);\r\n\t\t\tif (maxMagnitude < temp) {\r\n\t\t\t\tmaxMagnitude = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (maxMagnitude > 1.0) {\r\n\t\t\tfor (int i = 0; i < kMaxNumberOfMotors; i++) {\r\n\t\t\t\twheelSpeeds[i] = wheelSpeeds[i] / maxMagnitude;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private float deskYToAbst(int y)\n {\n return ((float)y/height);\n }", "private double roundPrecision(double value, int decimalPlaces) {\r\n\t\t// Value is multiplied by an appropriate power of ten to shift the\r\n\t\t// decimal right the number of places that need to be preserved, then\r\n\t\t// rounded to the nearest whole number thus cutting off decimal places\r\n\t\t// past the places preserved, and then divided again by the power of ten\r\n\t\t// to move the decimal back.\r\n\t\treturn ((double) Math.round(value * Math.pow(10, decimalPlaces)))\r\n\t\t\t\t/ (double) Math.pow(10, decimalPlaces);\r\n\t}", "public static void scaling(double[] array, double bottom, double top)\r\n\t{\r\n\t\tdouble max = getMax(array);\r\n\t\tdouble min = getMin(array);\r\n\t\tif (bottom > top) // swap\r\n\t\t{\r\n\t\t\tdouble tmp = bottom;\r\n\t\t\tbottom = top;\r\n\t\t\ttop = tmp;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = bottom + ((array[i] - min) / (max - min)) * (top - bottom);\r\n\t}", "double roundTwoDecimals(double d) { \n DecimalFormat twoDForm = new DecimalFormat(\"#.##\"); \n return Double.valueOf(twoDForm.format(d));\n }", "public double round(double value) {\n\t\treturn round(value, 2);\n\t}", "private static double minMaxNormalization(final double value) {\n return (((value - Configuration.ACTUAL_MIN) / (Configuration.ACTUAL_MAX - Configuration.ACTUAL_MIN)) * (Configuration.NORMALIZED_MAX - Configuration.NORMALIZED_MIN)) + Configuration.NORMALIZED_MIN;\n }", "private int round(double d){\n double dAbs = Math.abs(d);\n int i = (int) dAbs;\n double result = dAbs - (double) i;\n if(result<0.5){\n return d<0 ? -i : i;\n }else{\n return d<0 ? -(i+1) : i+1;\n }\n }", "public static double round(double value) {\n BigDecimal bd = BigDecimal.valueOf(value);\n bd = bd.setScale(2, RoundingMode.HALF_UP);\n return bd.doubleValue();\n }", "public String roundNear(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia numero mas cercano \" + (int)Math.floor(this._X + 0.5);\n }", "protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}", "private double normaliseRating(double boundedRating) {\n return (boundedRating - MIN_RATING) / RANGE;\n }", "public String roundUp(){\n return \"Numero original: \" + this._X + \" numero redondeado hacia arriba \" + (int)Math.ceil(this._X);\n }", "private String modifyValue(String value) {\n double d = Double.parseDouble(value);\n int v = round(d);\n return String.valueOf(v);\n }", "private double roundDecimal(double value, int precision) {\n \tdouble precisionMultiple = Math.pow(10, precision);\n \treturn Math.round(value * precisionMultiple) / precisionMultiple;\n }", "public int[] ZeroOutNegs(int[] arr) {\r\n for (int x = 0; x < arr.length; x++) {\r\n if (arr[x] < 0) {\r\n arr[x] = 0;\r\n }\r\n }\r\n return arr;\r\n }", "public static double dparm_round (double value) {\n\t\tdouble result = value;\n\t\ttry {\n\t\t\tresult = Double.parseDouble (String.format (Locale.US, \"%.2e\", value));\t// limit to 3 significant digits\n\t\t} catch (Exception e) {\n\t\t\tresult = value;\n\t\t}\n\t\treturn result;\n\t}", "private static void convertHertzToAbsoluteCent(List<Double> convertedValues) {\r\n for (int i = 0; i < convertedValues.size(); i++) {\r\n Double valueInHertz = convertedValues.get(i);\r\n convertedValues.set(i, PitchConverter.hertzToAbsoluteCent(valueInHertz));\r\n }\r\n }", "private double convUnits(double val, double origMaxVal, double curMaxVal) {\n return (val*(curMaxVal/origMaxVal));\n }", "static void normalize(double[][] plane) {\n int rows = plane.length;\n int cols = plane[0].length;\n\n //Begin by converting all negative values to positive\n // values. This is equivalent to the computation of\n // the magnitude for purely real data.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] < 0) {\n plane[row][col] = -plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n\n //Convert the values to log base 10 to preserve the\n // dynamic range of the plotting system. Set negative\n // values to 0.\n\n //First eliminate or change any values that are\n // incompatible with log10 method.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] == 0.0) {\n plane[row][col] = 0.0000001;\n } else if (plane[row][col] == Double.NaN) {\n plane[row][col] = 0.0000001;\n } else if (plane[row][col] ==\n Double.POSITIVE_INFINITY) {\n plane[row][col] = 9999999999.0;\n }//end else\n }//end inner loop\n }//end outer loop\n\n //Now convert the data to log base 10 setting all\n // negative results to 0.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n plane[row][col] = log10(plane[row][col]);\n if (plane[row][col] < 0) {\n plane[row][col] = 0;\n }//end if\n }//end inner loop\n }//end outer loop\n\n\n //Now set everything below X-percent of the maximum\n // value to X-percent of the maximum value where X is\n // determined by the value of scale.\n double scale = 1.0 / 7.0;\n //First find the maximum value.\n double max = Double.MIN_VALUE;\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] > max) {\n max = plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n\n //Now set everything below X-percent of the maximum to\n // X-percent of the maximum value and slide\n // everything down to cause the new minimum to be\n // at 0.0\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] < scale * max) {\n plane[row][col] = scale * max;\n }//end if\n plane[row][col] -= scale * max;\n }//end inner loop\n }//end outer loop\n\n //Now scale the data so that the maximum value is 255.\n\n //First find the maximum value\n max = Double.MIN_VALUE;\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n if (plane[row][col] > max) {\n max = plane[row][col];\n }//end if\n }//end inner loop\n }//end outer loop\n //Now scale the data.\n for (int row = 0; row < rows; row++) {\n for (int col = 0; col < cols; col++) {\n plane[row][col] = plane[row][col] * 255.0 / max;\n }//end inner loop\n }//end outer loop\n\n }", "public static final double[] normalize(final double[] V)\n {\n double []vec = new double[periodNum];\t\n\t//Vector vec = new Vector(periodNum);\n\t//Double zero = new Double(0);\n\t//for(int i=0;i<periodNum;i++)\n\t// vec.insertElementAt(zero,i);\n\n\tdouble sum =0;\n\t\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t\tsum += V[i];\n\t\t//sum += ((Double)V.elementAt(i)).doubleValue();\n\t}\n\t// if sum is 0, can't divide using it\n\tif(sum ==0)\n\t return V;\n\n\n\tfor(int i=0;i<periodNum;i++)\n\t{\n\t double d = V[i];//((Double)V.elementAt(i)).doubleValue();\n\t double dd = d/sum;\n\n\t vec[i] = dd;\n\t //vec.addElement(new Double(dd));\n\t}\n\t \n\treturn vec;\n }", "private void zScoreNormalize(List<Double> data)\n\t{\n\t\tdouble mean=Statistics.mean(data);\n\t\tdouble sd=Statistics.sd(data);\n\t\tfor(int i=0; i!= data.size(); ++i)\n\t\t{\n\t\t\tdata.set(i, (data.get(i)-mean)/sd);\n\t\t}\n\n\t}", "public static void normalize()\n {\n int sum;\n\n for(int i=0;i<12;i++)\n {\n for(int j=0;j<12;j++) {\n sum = sumAll(i,j);\n if (sum != 0)\n for (int n = 0; n < 12; n++)\n weights[i][j][n] /= sum;\n }\n }\n }", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }", "public double[] preprocessDataNormalizationOnly(double[] data) {\n return dataNormalization.normalizeNewData(data);\n }" ]
[ "0.5921735", "0.57600474", "0.57057834", "0.5565914", "0.55565757", "0.55543214", "0.5453014", "0.54041594", "0.54006916", "0.53441316", "0.5341953", "0.5338748", "0.52852005", "0.5259596", "0.5226455", "0.522079", "0.5111509", "0.5110834", "0.50854814", "0.5069222", "0.50439906", "0.50241804", "0.50062555", "0.49985823", "0.4973794", "0.4959088", "0.4938175", "0.49380985", "0.49369213", "0.4935959", "0.49282765", "0.49236348", "0.49200886", "0.49178603", "0.4912966", "0.4898326", "0.48940882", "0.4880281", "0.48701105", "0.48683113", "0.4865297", "0.4852983", "0.4843139", "0.48403195", "0.48300692", "0.4827003", "0.48123872", "0.48099855", "0.48066106", "0.480486", "0.47911388", "0.47897723", "0.47858104", "0.47815517", "0.47705537", "0.47637776", "0.47563797", "0.47403812", "0.472927", "0.47247607", "0.47212586", "0.47162923", "0.47133857", "0.4710501", "0.4699435", "0.46931785", "0.4692726", "0.4692395", "0.46857443", "0.46851456", "0.46829933", "0.4672932", "0.4669967", "0.46626884", "0.46608624", "0.466003", "0.46578836", "0.4654967", "0.4652449", "0.46495566", "0.46485168", "0.46465957", "0.4639967", "0.46253762", "0.46241432", "0.46182698", "0.46166852", "0.4614063", "0.46101084", "0.4602917", "0.46007362", "0.45989683", "0.45977888", "0.45923656", "0.4590302", "0.45862225", "0.45804518", "0.45801497", "0.4574365", "0.45731127" ]
0.51656336
16
transforms the values in the array to it's coresponding cubica values, based on formulas
public static double[] ramp(double[] axis){ //if you want to graph it, it is y=0.66x^3+0.33x for(byte x = 0; x < 3 ; x++){ axis[x] = (0.6667 * (Math.pow(axis[x], 3))+(0.333 * axis[x])); } return (axis); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<QuantifiedVariableCore> transform(QuantifiedVariableCore[] qv)\n {\n List<QuantifiedVariableCore> qv0 = new ArrayList<QuantifiedVariableCore>();\n for (QuantifiedVariableCore q : qv)\n qv0.add(transform(q));\n return qv0;\n }", "public void transform(double[] src, double[] dst){\n\tfor (int i = 0; i < dst.length; i++) {\n\t dst[i] = 0;\n\t for (int j = 0; j < src.length; j++)\n\t\tdst[i] += array[i][j] * src[j]; \n\t}\n }", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}", "private void arretes_fB(){\n\t\tthis.cube[22] = this.cube[19]; \n\t\tthis.cube[19] = this.cube[21];\n\t\tthis.cube[21] = this.cube[25];\n\t\tthis.cube[25] = this.cube[23];\n\t\tthis.cube[23] = this.cube[22];\n\t}", "private void arretes_fR(){\n\t\tthis.cube[13] = this.cube[10]; \n\t\tthis.cube[10] = this.cube[12];\n\t\tthis.cube[12] = this.cube[16];\n\t\tthis.cube[16] = this.cube[14];\n\t\tthis.cube[14] = this.cube[13];\n\t}", "public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "@Override\n\tpublic double[][] calc() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\n\t\t\t\tthis.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (this.det != 0) {\t//if determinant is not 0.\n\t\t\t\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\t\n\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\t\n\t\t\t\t\tthis.cT = new double[this.singleMatrix.length][this.singleMatrix[i].length];\t//declare the size of co-factor matrix transposed\n\n\t\t\t\t\tthis.cT[i][j] = this.coFactor[j][i];\t//the rows of cT = the cols of coFactor matrix. the cols of cT = the rows of coFactor matrix\n\t\t\t\t\t\n\t\t\t\t\t/* # you might want to initialize this.inverse and calculate right after the above cT calculation done as follow,\n\t\t\t\t\t \n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \t- this.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length]; -\n\t\t\t\t\t \t- this.inverse[i][j] = 1 / this.det * this.cT[i][j]; -\n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \n\t\t\t\t\t technically, it's not really a problem when it comes to initializing one more variable in the same loop.\n\t\t\t\t\t however, this specific situation, that three variables (coFacotr, cT and inverse) and their values are involved in, occurs an unexpected result which is still not an error.\n\t\t\t\t\t \n\t\t\t\t\t this.coFactor is done in a loop in initializing and calculating \n\t\t\t\t\t this.cT and this.inverse are done in a loop in initializing and calculating\n\t\t\t\t\t \n\t\t\t\t\t # thus, calculation goes as it goes and this.inverse will be kept initializing until the loop ends.\n\t\t\t\t\t this.inverse will then always & only store its running value at a current location depending on increment of i and j.\n\t\t\t\t\t you will see only one result at the last index and won't see all the values stored correctly.\n\t\t\t\t\t (all of the values will be zero except the last value at the last index)\n\t\t\t\t\t \n\t\t\t\t\t # one simple solution is to initialize and calculate a variable -inverse in this case- in a separate for-loop\n\t\t\t\t\t \n\t\t\t\t\t */\n\n\t\t\t\t\t//calculate inverse here but initialize it in another for-loop\n\t\t\t\t\tthis.inverse[i][j] = 1 / this.det * this.cT[i][j]; //formula: A-1 = 1 / det * cT\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}else {\t//det is 0\n\t\t\t\n\t\t\tSystem.out.println(\"\\nThe matrix is a singular. singular matrices can not have inverses.\");\n\t\t}\n\t\t\n\t\t//print\n\t\tSystem.out.println(\"\\nInverse of the current matrix is: \");\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t \t\t\n\t\t\t\tSystem.out.print(String.format(\"%.2f\", this.inverse[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n//\t\t\t\tSystem.out.print(this.inverse[i][j] + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t}\n\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t}\n\t\t\n\t\treturn inverse;\t//return the value of inverse\n\t}", "private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}", "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "@Override\n public void crunch(float values[]){\n int biggest = 0;\n int smallest = 0;\n\n for(int j = 0; j <= values.length -1; j++){\n for(int i = 0; i <= values.length -1; i++){\n if(values[i+1] > values[i]){\n biggest = i+1;\n smallest = i;\n } else{\n biggest = i;\n smallest = i+1;\n }\n }\n if(smallest != 0){\n values[biggest] /= values[smallest];\n }\n }\n }", "public static void multipleScalar(double[] array, double value)\r\n\t{\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = array[i] * value;\r\n\t}", "private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}", "private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "private static int[] processArray(int[] numberArray) {\n for (int i : numberArray) {\n for (int j = 0; j < numberArray.length; j++) {\n// some nonsense calculation to make the CPU tick a bit\n numberArray[j] *= i;\n }\n }\n return numberArray;\n }", "public void putValues(double[] a) {\n\n\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\tputValue(a[j]);\n\t\t}\n\t\t\n\t}", "Function<double[], double[]> convertTo(T coordinateSystem);", "protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }", "private void transform(float[] v, int len){\n \t\n \t\n \t\t\n if((len & 3) != 0) throw new IllegalArgumentException();\n \n for(int i = 0; i < len; i += 4){\n\n // 0\n // 1\n // 2\n // 3\n \t// 0 1 2 3 \n \t \t// 4 5 6 7\n \t \t// 8 9 10 11\n \t \t// 12 13 14 15\n \t \t// \n\n \tfloat v0 = v[i];\n \tfloat v1 = v[i+1];\n \tfloat v2 = v[i+2];\n \tfloat v3 = v[i+3];\n \t\n \tv[i] = matrix[ 0]*v0 + matrix[ 1]*v1 + matrix[ 2]*v2 + matrix[ 3]*v3;\n \tv[i+1] = matrix[ 4]*v0 + matrix[ 5]*v1 + matrix[ 6]*v2 + matrix[ 7]*v3;\n \tv[i+2] = matrix[ 8]*v0 + matrix[ 9]*v1 + matrix[10]*v2 + matrix[11]*v3;\n \tv[i+3] = matrix[12]*v0 + matrix[13]*v1 + matrix[14]*v2 + matrix[15]*v3;\n \t\n }\n\n }", "public double[] Normalizar(int[] v){\n double[] result=new double[v.length];\n double s=0;\n for (int i=0;i<v.length;i++){\n s+=v[i];\n }\n for (int i=0;i<v.length;i++){\n result[i]=(double)v[i]/(double)s;\n }\n\n return result;\n }", "private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}", "BigDecimal[][] toTriangular();", "private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}", "private static void arrCHS2LBA(int[][] arr) {\n\t\tfor(int[] chs : arr){\n\t\t\tchs[3] = 255 * 63 * chs[0] + 63 * chs[1] + chs[2] - 1;\n\t\t\tchs[7] = 255 * 63 * chs[4] + 63 * chs[5] + chs[6] - 1 ;\n\t\t}\n\t}", "double[] getReferenceValues();", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public double[] Normalizar01(int[] v){\n double[] result=new double[v.length];\n double s=v[0];\n double max=v[0];\n double min=v[0];\n for (int i=1;i<v.length;i++){\n s+=v[i];\n //minimo\n if (v[i]<min)\n min=v[i];\n if (v[i]>max)\n max=v[i];\n //maximo\n }\n for (int i=0;i<v.length;i++){\n result[i]=((double)v[i]-min)/(max-min);\n }\n\n return result;\n }", "RedSphere(int[] vals) {\n for (int i = 0; i < 6; i++) {\n value[i] = vals[i];\n }\n }", "void patchArray(long array[][], long scale)\n {\n // patch all numbers up by 100 to keep the order but to rid the negative\n // numbers\n for (int i = 0; i < array.length; i++)\n {\n array[i][0] += scale;\n array[i][1] += scale;\n }\n }", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "void decode(T solution, double[] values);", "public void addValuesToEachRow(Object[] values) {\n for(int i= 0; i < calculators.length; i++){\n for(int j = 0; j < calculators[i].length; j++){\n calculators[i][j].compute(values[j]);\n }\n }\n }", "private int[] transformHelper(double[][] tranformationMat, int[] rGB) {\n int[] rGBNew = new int[3];\n for (int i = 0; i < rGB.length; i++) {\n for (int j = 0; j < tranformationMat[0].length; j++) { // tranformationMat size\n rGBNew[i] += tranformationMat[i][j] * rGB[j];\n }\n }\n\n return rGBNew;\n }", "private float[] calculateData(float[] data) {\n float total=0;\n for(int i=0;i<data.length;i++)\n {\n total+=data[i];\n }\n for(int i=0;i<data.length;i++)\n {\n data[i]=360*(data[i]/total); \n }\n return data;\n\n }", "private static String[] calculateAllMultiplicationsAndDivisions(String[] formulaArray){\n Integer operatorPosition = getMultiplicationOrDivisionPosition(formulaArray);\n while(operatorPosition!=-1){\n try {\n formulaArray = calculateMultiplicationOrDivision(formulaArray, operatorPosition);\n }catch(Exception e){\n System.err.println(e);\n }\n operatorPosition= getMultiplicationOrDivisionPosition(formulaArray);\n }\n return formulaArray;\n\n }", "@Override\n public void transform(IDoubleArray in, IDoubleArray out)\n {\n // if necessary, flatten input data\n if (in.columns() != 1)\n {\n in = doublesNew.array(in.getArray());\n }\n\n // subtract mean\n IDoubleArray x = alg.subtract(in, moments.getMean());\n \n // make a row\n if (x.rows() > 1)\n x = alg.transposeToNew(x);\n \n IDoubleArray y = alg.product(x, evecTICA);\n int d = Math.min(in.size(),out.size());\n for (int i=0; i<d; i++)\n out.set(i, y.get(i));\n }", "private double[] gridArrayToPixels(double[] gridValues) {\n double[] result = new double[gridValues.length];\n\n for (int i = 0; i < gridValues.length; i++) {\n result[i] = gridValues[i] * gridSize;\n }\n return result;\n }", "private static short[][] translateResult(String[] exactCoverPartition) {\r\n\t\t\r\n\t\tshort[][] retVal = new short[9][9];\r\n\t\t\r\n\t\tfor(int i =0; i < exactCoverPartition.length;i++){\r\n\r\n\t\t\tString[] result = exactCoverPartition[i].split(\",\");\r\n\t\t\tint xCoord = Integer.parseInt(result[0]);\r\n\t\t\tint yCoord = Integer.parseInt(result[1]);\r\n\t\t\tshort value = Short.parseShort(result[2]);\r\n\t\t\t\r\n\t\t\tretVal[yCoord][xCoord] = (short)(value+1);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public float[][] valunitSeparate(String[] data, String ps) {\n int eq=0,i;\n int u=0,sum=0;\n String units[],values[];\n String unknown;\n int un[];\n float[][] val = new float[3][2];\n un = new int[3]; //stores integer values corresponding to each var\n units = new String[3];\n values = new String[3];\n\n for(i=0;i<3;i++) {\n units[i] = \"\";\n values[i] = \"\";\n }\n\n for(i=0;i<3;i++) {\n for(int j=0;j<data[i].length();j++) {\n String c = \"\";\n c=c+data[i].charAt(j);\n if(Pattern.matches(\"[0-9]*\\\\.?[0-9]*\",c)) {\n values[i] = values[i]+c;\n } else {\n units[i] = units[i]+c;\n }\n }\n }\n\n unknown = ai.unknownFnd(ps); //contains the unknown var\n\n for (i=0;i<3;i++) {\n if (Objects.equals(units[i], \"m/ssq\"))\n un[i] = 3;\n else if (Objects.equals(units[i], \"s\"))\n un[i] = 4;\n else if(Objects.equals(units[i], \"m\"))\n un[i] = 5;\n else if (Objects.equals(units[i], \"m/s\")) {\n if (Objects.equals(unknown, \"u\"))\n un[i] = 1;\n else if (Objects.equals(unknown, \"v\"))\n un[i] = 2;\n else\n un[i] = 2;\n }\n }\n\n for (i=0;i<3;i++) {\n val[i][0] = Float.parseFloat(values[i]);\n val[i][1] = un[i];\n }\n\n return (val);\n }", "private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}", "public static double[][] translate(Complex[] ac) {\n double[][] ret = new double[2][ac.length];\n for (int i = 0; i < ac.length; i++) {\n ret[0][i] = ac[i].r;\n ret[1][i] = ac[i].i;\n }\n return ret;\n }", "public static void main(String[] args) {\n\n String[][] test_money =\n {\n {\"mark\",\"5\"},\n {\"shekel\",\"30.5\"},\n };\n\n String[][] test_convert=\n {\n {\"mark\",\"1\"},\n {\"shekel\",\"0.5\"},\n };\n\n // double res = Main.convertC(test_money,test_convert);\n// System.out.print(res);\n\n }", "static String[] cavityMap(String[] grid) {\r\n \tString[] ret = new String[grid.length];\r\n \t\r\n \tfor (int i = 0; i < grid.length; i++) {\r\n \t\tif (i == 0 || i == grid.length-1) { //first or last row\r\n \t\t\tret[i] = grid[i];\r\n \t\t} else {\r\n \t\t\tchar[] beforeRow = grid[i-1].toCharArray();\r\n \t\t\tchar[] actualRow = grid[i].toCharArray();\r\n \t\t\tchar[] nextRow = grid[i+1].toCharArray();\r\n \t\t\tfor (int j = 0; j < actualRow.length; j++) {\r\n \t\t\t\tif (j > 0 && j < actualRow.length -1) {\r\n \t\t\t\t\tint upper = Character.getNumericValue(beforeRow[j]);\r\n \t\t\t\t\tint lower = Character.getNumericValue(nextRow[j]);\r\n \t\t\t\t\tint left = Character.getNumericValue(actualRow[j-1]);\r\n \t\t\t\t\tint right = Character.getNumericValue(actualRow[j+1]);\r\n \t\t\t\t\tint actual = Character.getNumericValue(actualRow[j]);\r\n \t\t\t\t\tif (actual > upper && actual > lower && actual > left && actual > right) {\r\n \t\t\t\t\t\tactualRow[j] = 'X';\r\n \t\t\t\t\t}\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t\tif (ret[i] == null)\r\n \t\t\t\t\tret[i] = actualRow[j]+\"\";\r\n \t\t\t\telse\r\n \t\t\t\t\tret[i] = ret[i]+actualRow[j];\r\n \t\t\t}\r\n \t\t} \t\t\r\n \t}\r\n \t\r\n \treturn ret;\r\n }", "private void method_252(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14) {\n boolean var21 = field_759;\n int var15 = 256 - var14;\n\n try {\n int var16 = var4;\n int var17 = -var9;\n if(var21 || var17 < 0) {\n do {\n int var18 = (var5 >> 16) * var12;\n int var19 = -var8;\n if(!var21 && var19 >= 0) {\n var5 += var11;\n var4 = var16;\n var6 += var7;\n var17 += var13;\n } else {\n do {\n label23: {\n var3 = var2[(var4 >> 16) + var18];\n if(var3 != 0) {\n int var20 = var1[var6];\n var1[var6++] = ((var3 & 16711935) * var14 + (var20 & 16711935) * var15 & -16711936) + ((var3 & '\\uff00') * var14 + (var20 & '\\uff00') * var15 & 16711680) >> 8;\n if(!var21) {\n break label23;\n }\n }\n\n ++var6;\n }\n\n var4 += var10;\n ++var19;\n } while(var19 < 0);\n\n var5 += var11;\n var4 = var16;\n var6 += var7;\n var17 += var13;\n }\n } while(var17 < 0);\n\n }\n } catch (Exception var22) {\n System.out.println(\"error in tran_scale\"); // authentic System.out.println\n }\n }", "protected abstract void fromSpace( float[] abc );", "private static double[] normalize(double[] data)\n {\n double sum = 0;\n \n for (double d : data)\n sum += d;\n \n if (sum != 1 && sum != 0)\n {\n for (int i = 0; i < data.length; i++)\n data[i] /= sum;\n }\n \n return data;\n }", "public static void main(String[] args) {\n double[] vArr = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75};\n double[] tempArr = {-40, -30, -20, -10, 0, 10, 20, 30, 40, 50};\n //1. utwórz tablice 2-wymiarowa\n //2. potrzebuje: typprzechowanej wartosci i rozmiar, czyli\n //typ: double\n //rozm w kierunku temp.: -40, -30, -20, ... 50 -> 10 elementow\n //rozm w kierunku v: 5, 10, 15, 20, 25, -> 15 elelmentow\n double[][] resultMatrix = new double[vArr.length][tempArr.length];\n\n //3. rM(1, 3) = f(10, -10) = -7,5;\n //Odczytac wartosc v i temp do obliczen i podstawic do wzoru - wynik umiescic w odp miejscu tab rM\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n resultMatrix[v][t] = 35.74 + 0.6215 * tempArr[t] + (0.4275 * tempArr[t] - 35.75) * Math.pow(vArr[v], 0.16);\n }\n }\n\n //mam juz uzupelniona cala tab wartosci - wyswietlic\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[v], (int) tempArr[t], resultMatrix[v][t]));\n }\n }\n System.out.println(\"Tabela wartosci: \");\n for (int v = 0; v < vArr.length; v++) {\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(resultMatrix[v][t] + \"\\t\");\n }\n System.out.println();\n }\n System.out.println(\"Podaj v: <5, 10, 15... 75>\");\n //5 -> vArr[0]\n //75 -> vArr[14]\n //userInput/5 - 1\n Scanner sc = new Scanner(System.in);\n int userInput = sc.nextInt();\n int vIdx = userInput / 5 - 1;\n System.out.println(\"Podaj temp: <-40, -30... 50>\");\n userInput = sc.nextByte();\n int tempIdx = (userInput + 40) / 10;\n\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[vIdx], (int) tempArr[tempIdx], resultMatrix[vIdx][tempIdx]));\n }", "private int[] CalcUVs(List<Float> mUs, List<Float> mVs, int[] UVs, boolean flipV, boolean flipU) {\n List<Integer> Us = Arrays.asList(UVs[0], UVs[2], UVs[4], UVs[6]);\n List<Integer> Vs = Arrays.asList(UVs[1], UVs[3], UVs[5], UVs[7]);\n int maxU = Collections.max(Us);\n int minU = Collections.min(Us);\n int deltaU = maxU - minU;\n int maxV = Collections.max(Vs);\n int minV = Collections.min(Vs);\n int deltaV = maxV - minV;\n //all the coords are float from 0 -1 stored as ints\n //float shiftV = 1 -Collections.max(mVs); // Used to shift the textures down so that overlays like grass are in view\n //Use intBitsToFloat to get the correct decimal\n for (int i = 0; i < 4; i++) {\n if (flipU) {\n UVs[(i * 2)] = (int) (minU + (mUs.get(i) * deltaU));\n } else {\n UVs[(i * 2)] = (int) (maxU - (mUs.get(i) * deltaU));\n }\n if (flipV) {\n UVs[(i * 2) + 1] = (int) (minV + (mVs.get(i) * deltaV));\n } else {\n //UVs[(i * 2) + 1] = (int) (maxV - ((mVs.get(i) + shiftV) * deltaV)); //example usage of shiftV\n UVs[(i * 2) + 1] = (int) (maxV - (mVs.get(i) * deltaV));\n }\n }\n return UVs;\n }", "private static void processRow(String[] prev, Double[] mag) {\n\t\tint index = 0;\r\n\t\tDouble variable = mag[index];\r\n\t\tString Solution = String.valueOf(mag[mag.length - 1]);\r\n\t\t// find first non zero pivot\r\n\t\twhile (variable == 0.0f && index < mag.length - 1) {\r\n\t\t\tindex++;\r\n\t\t\tvariable = mag[index];\r\n\t\t}\r\n\t\t// if variable is 0 then entire row is 0 which carries no\r\n\t\t// information so we ignore it\r\n\t\t// otherwise we process it\r\n\t\tif (variable != 0.0f) {\r\n\t\t\tfor (int free = index + 1; free < mag.length - 1; free++) {\r\n\t\t\t\tif (prev[free] == null) {\r\n\t\t\t\t\tprev[free] = \"x\" + free; \r\n\t\t\t\t}\r\n\t\t\t\t// do not subtract from answer if multiple is 0\r\n\t\t\t\tif (mag[free] != 0.0) {\r\n\t\t\t\t\tSolution += \"-\" + mag[free] + \"*\" + prev[free];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSolution = \"(\" + Solution + \")/\" + variable;\r\n\t\t\tprev[index] = Solution;\r\n\t\t}\r\n\t\t\r\n\t}", "private void collectValues\n (int[] i, int i0, int i1, long[] V) {\n for (int o=i0; o<i1; o++) // 1\n V[o] = read(i[o]); // 1\n }", "int[] translate() {\n int[] ans = new int[6];\n ans[0] = registers[CPU.IF_ID[0]];\n ans[1] = (CPU.IF_ID[4] == 0 ? CPU.IF_ID[3] : registers[CPU.IF_ID[1]]);\n ans[2] = registers[CPU.IF_ID[2]];\n ans[3] = CPU.IF_ID[2];\n ans[4] = CPU.IF_ID[4];\n ans[5] = CPU.IF_ID[3];\n CPU.alu.used = true;\n ufile = false;\n return ans;\n }", "public float[] compute(float[] values) throws Exception {\r\n input(values);\r\n return compute();\r\n }", "public int convertValues(int[] valueArray, int[][] matrixCID){\n\t\tint value = cidToLength(valueArray[0], matrixCID);\n\t\tfor(int i = 1; i < valueArray.length; i++){\n\t\t\tif(valueArray[i] != 0){\n\t\t\t\tvalue -= cidToLength(valueArray[i], matrixCID); //removes the CID lengths the code clone contains\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "private static double [][] exe_helper (double [] rf) throws Exception {\r\n\t\r\n\t\tint p1 = rf.length; // [nf,p1]=size(rf);\r\n\t\tint p0 = p1-1;\r\n\t\tdouble [] rr = null;\r\n\t\tdouble [] ar = null;\r\n\t\t\r\n\t\tif (p0!=0)\r\n\t\t{\r\n\t\t\tdouble [] a = new double [] {rf[1]}; //a = rf(:,2); // array eith a single elemtne, at the moment\r\n\r\n\t\t\t// rr=[ones(nf,1) -a zeros(nf,p0-1)];\r\n\t\t\trr = new double[p0+1];\r\n\t\t\tArrays.fill(rr, 0.0);\r\n\t\t\trr[0] = 1;\r\n\t\t\trr[1] = -a[0];\r\n\r\n\t\t\t// e = (a.^2-1);\r\n\t\t\tdouble e = a[0]*a[0]-1;\r\n\r\n\t\t\tfor (int n = 2; n<=p0; n++) // for n = 2:p0\r\n\t\t\t{\r\n\t\t\t\tdouble k = rf[n]; // k=rf(:,n+1); // It s a column vector\r\n\r\n\t\t\t\t// rr(:,n+1) =k.*e - sum(rr(:,n:-1:2).*a,2);\r\n\t\t\t\trr[n] = k*e - MyMath.sum(MyMath.arrayTimes(MyMath.select(rr, n-1, 1, -1), a));\r\n\r\n\t\t\t\t// a = [a+k(:,ones(1,n-1)).*a(:,n-1:-1:1) k];\r\n\t\t\t\tdouble [] aa = new double[a.length +1];\r\n\t\t\t\tfor (int i=0; i<a.length; i++)\r\n\t\t\t\t\taa[i] = a[i] + k*a[n-2-i];\r\n\t\t\t\taa[aa.length-1] = k;\r\n\t\t\t\ta = aa;\r\n\r\n\t\t\t\t// e = e.*(1-k.^2);\r\n\t\t\t\te *= (1-k*k);\r\n\t\t\t}\r\n\t\t\t \r\n\t\t\t// ar = [ones(nf,1) a];\r\n\t\t\tar = new double [1+a.length];\r\n\t\t\tar[0] = 1;\r\n\t\t\tSystem.arraycopy(a, 0, ar, 1, a.length);\r\n\t\t\t\r\n\t\t\tdouble r0 = 1.0/MyMath.sum(MyMath.arrayTimes(rr, ar)); // r0=sum(rr.*ar,2).^(-1);\r\n\t\t\t\r\n\t\t\tMyMath.timesSelf(rr, r0); // rr=rr.*r0(:,ones(1,p1));\r\n\t\t\t\r\n\t\t\t// if nargin>1 && ~isempty(p)\r\n\t\t\t// if p<p0\r\n\t\t\t// rr(:,p+2:p1)=[];\r\n\t\t\t// else\r\n\t\t\t//\r\n\t\t\t// rr=[rr zeros(nf,p-p0)];\r\n\t\t\t// af=-ar(:,p1:-1:2);\r\n\t\t\t// for i=p0+1:p\r\n\t\t\t// rr(:,i+1)=sum(af.*rr(:,i-p0+1:i),2);\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t\t// end\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\trr = new double [] {1.0}; // rr=ones(nf,1);\r\n\t\t\tar = new double [] {1.0}; // ar=rr;\r\n\t\t}\r\n\r\n\t\treturn new double [][] {rr, ar};\r\n\t}", "private double[] normalize(double[] p) {\n double sum = 0;\n double[] output = new double[p.length];\n for (double i : p) {\n sum += i;\n }\n for (int i = 0; i < output.length; i++) {\n output[i] = p[i]/sum;\n }\n return output;\n }", "protected float compute(){\n float result = 0f;\n String[] post = in2post(this.arr);\n result = post2ans(post);\n return result;\n }", "private static double[] gauss(double[][] A, double[] f) {\n\t\tdouble[] solution = new double[f.length];\n\n\t\t// order of variables in the column x\n\t\tint[] mask = new int[f.length];\n\t\tfor (int i = 0; i < mask.length; i++) {\n\t\t\tmask[i] = i;\n\t\t}\n\n\t\t// main loop\n\t\tfor (int step = f.length; step > 0; step--) {\n\n\t\t\t// find max element and its position\n\t\t\tint maximumi = 0;\n\t\t\tint maximumj = 0;\n\t\t\tdouble maxelement = A[maximumi][maximumj];\n\n\t\t\tfor (int i = 0; i < step; i++) {\n\t\t\t\tfor (int j = 0; j < step; j++) {\n\t\t\t\t\tif (Math.abs(maxelement) < Math.abs(A[i][j])) {\n\t\t\t\t\t\tmaxelement = A[i][j];\n\t\t\t\t\t\tmaximumi = i;\n\t\t\t\t\t\tmaximumj = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// check whether unique solution exists\n\t\t\tif (maxelement == 0) {\n\t\t\t\tUtils.print(f);\n\t\t\t\tnumberOfSolutions = NumberOfSolutions.INFINITE;\n\t\t\t\tfor (int i = 0; i < step; i++) {\n\t\t\t\t\tif (f[i] != 0) {\n\t\t\t\t\t\tnumberOfSolutions = NumberOfSolutions.NONE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// divide row with maxelement by its value\n\t\t\t\tA[maximumi] = MathUtils.div(A[maximumi], maxelement);\n\t\t\t\tf[maximumi] = f[maximumi] / maxelement;\n\n\t\t\t\tUtils.print(\"divide:\");\n\t\t\t\tUtils.print(A, f);\n\t\t\t\tUtils.print();\n\n\t\t\t\t// creating zeros above and below the 1\n\t\t\t\tfor (int i = 0; i < step; i++) {\n\t\t\t\t\tif (i != maximumi) {\n\t\t\t\t\t\tf[i] -= f[maximumi] * A[i][maximumj];\n\t\t\t\t\t\tA[i] = MathUtils.sub(A[i],\n\t\t\t\t\t\t\t\tMathUtils.mul(A[maximumi], A[i][maximumj]));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// swap row with 1 to the bottom\n\t\t\t\tA = MathUtils.swapRows(A, step - 1, maximumi);\n\t\t\t\tf = MathUtils.swap(f, step - 1, maximumi);\n\n\t\t\t\t// swap column with 1 to the right\n\t\t\t\tA = MathUtils.swapColumns(A, step - 1, maximumj);\n\t\t\t\tmask = MathUtils.swap(mask, step - 1, maximumj);\n\t\t\t}\n\t\t}\n\n\t\tswitch (numberOfSolutions) {\n\t\tcase ONE:\n\t\t\tUtils.print(\"triangle matrix: \");\n\t\t\tUtils.print(A, f);\n\t\t\tUtils.print(mask);\n\t\t\tUtils.print();\n\n\t\t\t// get solution from triangle matrix\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tsolution[i] = solve(A[i], solution, f[i], i);\n\t\t\t}\n\n\t\t\t// sort solution with respect to the mask\n\t\t\tsolution = sort(solution, mask);\n\t\t\treturn solution;\n\t\tcase NONE:\n\t\t\tUtils.print(\"No solution\");\n\t\t\treturn null;\n\t\tcase INFINITE:\n\t\t\tUtils.print(\"Infinite number of solutions\");\n\t\t\treturn null;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\n\t}", "private static String compileArray(float[] array) {\n String arrayString = \"\\\"\";\n for (float number : array) {\n arrayString += Model.formatFloat(number) + \", \";\n }\n arrayString = arrayString.substring(0, arrayString.length() - 2);\n arrayString += \"\\\"\";\n return arrayString;\n }", "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "public float[] BackSubstitution(){\n float[] solX = new float[this.NBrsEff];\n float temp;\n for (int i=this.NBrsEff-1; i>=0; i--){\n temp = this.M[i][this.NKolEff-1];\n for (int j=this.NKolEff-2; j>i; j--){\n temp -= solX[j] * this.M[i][j];\n }\n solX[i] = temp/this.M[i][i];\n System.out.println(\"SolX: \"+solX[i]);\n }\n return solX;\n }", "public static void normalise(double[] v) {\n double tot = 0;\r\n for (int i=0; i<v.length; i++) {\r\n tot += v[i] * v[i];\r\n }\r\n double div = Math.sqrt(tot);\r\n if (div > 0) {\r\n for (int i=0; i<v.length; i++) {\r\n v[i] /= div;\r\n }\r\n }\r\n }", "public static int valueMultiplier(ArrayList<Integer> formula, int[] numbers, int value, int i){\n value -= formula.get(formula.size()-1);\n int temp = formula.get(formula.size()-1) * numbers[i];\n value += temp;\n return value;\n }", "BlueSphere(int[] val) {\n value[0] = val[0];\n }", "public float solveEqun(float[][] values, int uf, int eq) {\n float sol=0;\n float v=0,u=0,a=0,t=0,s=0;\n for (int i=0;i<3;i++) {\n for (int j=0;j<2;j++) {\n if (values[i][1] == 1)\n v = values[i][0];\n else if (values[i][1] == 2)\n u = values[i][0];\n else if (values[i][1] == 3)\n a = values[i][0];\n else if (values[i][1] == 4)\n t = values[i][0];\n else if (values[i][1] == 5)\n s = values[i][0];\n }\n }\n\n if (eq == 1) {\n if (uf == 1) {\n sol = u+(a*t);\n //System.out.println(\"u:\"+u);\n }\n else if (uf == 2) {\n sol = v - (a*t);\n //System.out.println(\"V:\"+v);\n }\n\n else if (uf == 3)\n sol = (v-u)/t;\n else if (uf == 4)\n sol = (v-u)/a;\n }\n\n else if (eq == 2) {\n if (uf == 5)\n sol = (float) ((u*t) + (0.5*a*t*t));\n else if (uf == 2)\n sol = (float) ((s-(0.5*a*t*t))/t);\n else if (uf == 3)\n sol = (float) ((s-(u*t))/(0.5*t*t));\n else if (uf == 4) {\n float sol1 = (float) ((-u+Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n float sol2 = (float) ((-u-Math.sqrt(u*u+(4*0.5*a*t*t*s)))/(2*u));\n if (sol1<0)\n sol = sol2;\n else\n sol = sol1;\n }\n }\n\n else if (eq == 3) {\n if (uf == 1)\n sol = (float) Math.sqrt((2*a*s)-(u*u));\n else if (uf == 2)\n sol = (float) Math.sqrt((v*v)-(2*a*s));\n else if (uf == 3)\n sol = ((v*v)-(u*u))/(2*s);\n else if (uf == 5)\n sol = ((v*v)-(u*u))/(2*a);\n }\n\n return sol;\n }", "private Complex eval(Complex[] ca, Complex x) {\n\t\tComplex result = ca[0];\n\t\tfor (int i = 1; i < ca.length; i++) {\n\t\t\tresult = result.mul(x).add(ca[i]);\n\t\t}\n\t\treturn result;\n\t}", "protected void setValues() {\n values = new double[size];\n int pi = 0; // pixelIndex\n int siz = size - nanW - negW - posW;\n int biw = min < max ? negW : posW;\n int tiw = min < max ? posW : negW;\n double bv = min < max ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY;\n double tv = min < max ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;\n double f = siz > 1 ? (max - min) / (siz - 1.) : 0.;\n for (int i = 0; i < biw && pi < size; i++,pi++) {\n values[pi] = bv;\n }\n for (int i = 0; i < siz && pi < size; i++,pi++) {\n double v = min + i * f;\n values[pi] = v;\n }\n for (int i = 0; i < tiw && pi < size; i++,pi++) {\n values[pi] = tv;\n }\n for (int i = 0; i < nanW && pi < size; i++,pi++) {\n values[pi] = Double.NaN;\n }\n }", "public void resolver() {\r\n\t\tfor(int i = 0; i<casillas.length; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[0].length; j ++) {\r\n\t\t\t\tif(casillas[i][j].darSeleccionada() == false) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tcasillas[i][j].modificarValor(cantidadMinasAlrededor(i, j));\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int ruolette(ArrayList<Integer> fitvalores, ArrayList<int[]> poblacion, int semilla){ \n int totalfitnes = 0;\n int totalfitnesnuevo = 0;\n int indtablero = 0;\n int semi=semilla;\n int tpoblacion=poblacion.size();\n int []nuevofitness = new int [fitvalores.size()];\n double []nproporcion = new double [fitvalores.size()];\n ArrayList <Double> proporcion = new ArrayList<>();//proporcion j la ruleta\n ArrayList <Double> ruleta = new ArrayList<>();\n //obtener el max fitnes\n for(int i=0;i<fitvalores.size();i++){ //total de fitnes\n totalfitnes=totalfitnes+fitvalores.get(i);\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el nuevo fittnes inverso\n double pro=(tpoblacion*tpoblacion-tpoblacion)-fitvalores.get(i);\n nuevofitness[i]= (int) pro;\n // System.out.println(\"nuevo fitnes\"+nuevofitness[i]);\n } \n for(int i=0;i<fitvalores.size();i++){ //total de fitnes nuevo o inverso\n totalfitnesnuevo=(totalfitnesnuevo+nuevofitness[i]);//para que los mejores casos usen mas espacio\n }\n \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n double var1=nuevofitness[i];\n double var2=totalfitnesnuevo;\n double pro=var1/var2;\n nproporcion[i]=pro;\n //System.out.println(\"nueva proporcion \"+nproporcion[i]);\n } \n ruleta.add(nproporcion[0]);\n // System.out.println(\"primera propporniaso \"+nproporcion[0]);\n for(int i=1;i<fitvalores.size();i++){ //poner datos en la ruleta\n double var1=ruleta.get(i-1);\n double var2=nproporcion[i];\n ruleta.add(var1+var2);\n //System.out.println(\"ruleta \"+ruleta.get(i));\n }\n double num=randomadec(0,1,semi);\n // System.out.println(\"numero random dec \"+num); \n for(int i=0;i<fitvalores.size();i++){ //poner datos en el array proporcion\n // System.out.println(ruleta.get(i));\n if(num<ruleta.get(i)){\n indtablero=i;\n //System.out.println(\"se guardo el tablero \"+indtablero);\n break;\n }\n }\n return indtablero;//esto devuelve el indice del tablero ganador en la ruleta\n }", "public void populateNoiseArray(double[] p_76308_1_, double p_76308_2_, double p_76308_4_, double p_76308_6_, int p_76308_8_, int p_76308_9_, int p_76308_10_, double p_76308_11_, double p_76308_13_, double p_76308_15_, double p_76308_17_) {\n/* 81 */ if (p_76308_9_ == 1) {\n/* */ \n/* 83 */ boolean var64 = false;\n/* 84 */ boolean var65 = false;\n/* 85 */ boolean var21 = false;\n/* 86 */ boolean var68 = false;\n/* 87 */ double var70 = 0.0D;\n/* 88 */ double var73 = 0.0D;\n/* 89 */ int var75 = 0;\n/* 90 */ double var77 = 1.0D / p_76308_17_;\n/* */ \n/* 92 */ for (int var30 = 0; var30 < p_76308_8_; var30++) {\n/* */ \n/* 94 */ double var31 = p_76308_2_ + var30 * p_76308_11_ + this.xCoord;\n/* 95 */ int var78 = (int)var31;\n/* */ \n/* 97 */ if (var31 < var78)\n/* */ {\n/* 99 */ var78--;\n/* */ }\n/* */ \n/* 102 */ int var34 = var78 & 0xFF;\n/* 103 */ var31 -= var78;\n/* 104 */ double var35 = var31 * var31 * var31 * (var31 * (var31 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 106 */ for (int var37 = 0; var37 < p_76308_10_; var37++)\n/* */ {\n/* 108 */ double var38 = p_76308_6_ + var37 * p_76308_15_ + this.zCoord;\n/* 109 */ int var40 = (int)var38;\n/* */ \n/* 111 */ if (var38 < var40)\n/* */ {\n/* 113 */ var40--;\n/* */ }\n/* */ \n/* 116 */ int var41 = var40 & 0xFF;\n/* 117 */ var38 -= var40;\n/* 118 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* 119 */ int var19 = this.permutations[var34] + 0;\n/* 120 */ int var66 = this.permutations[var19] + var41;\n/* 121 */ int var67 = this.permutations[var34 + 1] + 0;\n/* 122 */ int var22 = this.permutations[var67] + var41;\n/* 123 */ var70 = lerp(var35, func_76309_a(this.permutations[var66], var31, var38), grad(this.permutations[var22], var31 - 1.0D, 0.0D, var38));\n/* 124 */ var73 = lerp(var35, grad(this.permutations[var66 + 1], var31, 0.0D, var38 - 1.0D), grad(this.permutations[var22 + 1], var31 - 1.0D, 0.0D, var38 - 1.0D));\n/* 125 */ double var79 = lerp(var42, var70, var73);\n/* 126 */ int var10001 = var75++;\n/* 127 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var79 * var77;\n/* */ }\n/* */ \n/* */ } \n/* */ } else {\n/* */ \n/* 133 */ int var19 = 0;\n/* 134 */ double var20 = 1.0D / p_76308_17_;\n/* 135 */ int var22 = -1;\n/* 136 */ boolean var23 = false;\n/* 137 */ boolean var24 = false;\n/* 138 */ boolean var25 = false;\n/* 139 */ boolean var26 = false;\n/* 140 */ boolean var27 = false;\n/* 141 */ boolean var28 = false;\n/* 142 */ double var29 = 0.0D;\n/* 143 */ double var31 = 0.0D;\n/* 144 */ double var33 = 0.0D;\n/* 145 */ double var35 = 0.0D;\n/* */ \n/* 147 */ for (int var37 = 0; var37 < p_76308_8_; var37++) {\n/* */ \n/* 149 */ double var38 = p_76308_2_ + var37 * p_76308_11_ + this.xCoord;\n/* 150 */ int var40 = (int)var38;\n/* */ \n/* 152 */ if (var38 < var40)\n/* */ {\n/* 154 */ var40--;\n/* */ }\n/* */ \n/* 157 */ int var41 = var40 & 0xFF;\n/* 158 */ var38 -= var40;\n/* 159 */ double var42 = var38 * var38 * var38 * (var38 * (var38 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 161 */ for (int var44 = 0; var44 < p_76308_10_; var44++) {\n/* */ \n/* 163 */ double var45 = p_76308_6_ + var44 * p_76308_15_ + this.zCoord;\n/* 164 */ int var47 = (int)var45;\n/* */ \n/* 166 */ if (var45 < var47)\n/* */ {\n/* 168 */ var47--;\n/* */ }\n/* */ \n/* 171 */ int var48 = var47 & 0xFF;\n/* 172 */ var45 -= var47;\n/* 173 */ double var49 = var45 * var45 * var45 * (var45 * (var45 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 175 */ for (int var51 = 0; var51 < p_76308_9_; var51++) {\n/* */ \n/* 177 */ double var52 = p_76308_4_ + var51 * p_76308_13_ + this.yCoord;\n/* 178 */ int var54 = (int)var52;\n/* */ \n/* 180 */ if (var52 < var54)\n/* */ {\n/* 182 */ var54--;\n/* */ }\n/* */ \n/* 185 */ int var55 = var54 & 0xFF;\n/* 186 */ var52 -= var54;\n/* 187 */ double var56 = var52 * var52 * var52 * (var52 * (var52 * 6.0D - 15.0D) + 10.0D);\n/* */ \n/* 189 */ if (var51 == 0 || var55 != var22) {\n/* */ \n/* 191 */ var22 = var55;\n/* 192 */ int var69 = this.permutations[var41] + var55;\n/* 193 */ int var71 = this.permutations[var69] + var48;\n/* 194 */ int var72 = this.permutations[var69 + 1] + var48;\n/* 195 */ int var74 = this.permutations[var41 + 1] + var55;\n/* 196 */ int var75 = this.permutations[var74] + var48;\n/* 197 */ int var76 = this.permutations[var74 + 1] + var48;\n/* 198 */ var29 = lerp(var42, grad(this.permutations[var71], var38, var52, var45), grad(this.permutations[var75], var38 - 1.0D, var52, var45));\n/* 199 */ var31 = lerp(var42, grad(this.permutations[var72], var38, var52 - 1.0D, var45), grad(this.permutations[var76], var38 - 1.0D, var52 - 1.0D, var45));\n/* 200 */ var33 = lerp(var42, grad(this.permutations[var71 + 1], var38, var52, var45 - 1.0D), grad(this.permutations[var75 + 1], var38 - 1.0D, var52, var45 - 1.0D));\n/* 201 */ var35 = lerp(var42, grad(this.permutations[var72 + 1], var38, var52 - 1.0D, var45 - 1.0D), grad(this.permutations[var76 + 1], var38 - 1.0D, var52 - 1.0D, var45 - 1.0D));\n/* */ } \n/* */ \n/* 204 */ double var58 = lerp(var56, var29, var31);\n/* 205 */ double var60 = lerp(var56, var33, var35);\n/* 206 */ double var62 = lerp(var49, var58, var60);\n/* 207 */ int var10001 = var19++;\n/* 208 */ p_76308_1_[var10001] = p_76308_1_[var10001] + var62 * var20;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }", "private static double[] calcEquation(String[][] equations, double[] values, String[][] queries) {\n // we can represent our data following way\n // a -> b, k\n // b -> a, 1/k\n\n // build graph\n Map<String, Map<String, Double>> graph = buildGraph(equations, values);\n double[] ans = new double[queries.length];\n\n for (int i = 0; i < queries.length; i++) {\n ans[i] = getPathWeight(graph, queries[i][0], queries[i][1], new HashSet<>());\n }\n\n return ans;\n }", "public void calculateArray() {\n\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\n }", "public double[] translate(Solution a,int objs, double[][] extreme) {\n\t\tdouble[] str = new double[objs];\n\t\tdouble tmp,sum;\n\t\tfor(int i=0;i<objs;i++) {\n\t\t\ttmp = Math.abs(extreme[1][i] - a.getObjective(i));\n\t\t\tsum=0.0;\n\t\t\tfor(int j=0;j<objs;j++) {\n\t\t\t\tif(j!=i)\n\t\t\t\t\tsum += (extreme[0][j] - a.getObjective(j))*(extreme[0][j] - a.getObjective(j));\n\t\t\t}\n\t\t\tstr[i] = Math.atan(Math.sqrt(sum)/tmp);\n\t\t}\n\t\treturn str;\n\t}", "public double[] calc(double input[]) {\r\n\t\tfor (int i = 0; i < input.length; i++) {\r\n\t\t\tstages[0].output[i] = input[i];\r\n\t\t}\r\n\t\tfor (int i = 1; i < stages.length; i++) {\r\n\t\t\tstages[i].calc();\r\n\t\t}\r\n\t\treturn stages[stages.length - 1].output;\r\n\t}", "public void calculate() {\n float xoff = 0;\n for (int i = 0; i < cols; i++)\n { \n float yoff = 0;\n for (int j = 0; j < rows; j++)\n {\n z[i][j] = map(noise(xoff, yoff,zoff), 0, 1, -120, 120);\n yoff += 0.1f;\n }\n xoff += 0.1f;\n }\n zoff+=0.01f;\n }", "public void transform(float a11, float a12, float a21, float a22, float x, float y);", "public void mo6077a(int... iArr) {\n int i = 1;\n this.f2341d = Integer.TYPE;\n int length = iArr.length;\n C0934b[] c0934bArr = new C0934b[Math.max(length, 2)];\n if (length == 1) {\n c0934bArr[0] = new C0934b();\n c0934bArr[1] = (C0934b) C0932g.m2566a(1.0f, iArr[0]);\n } else {\n c0934bArr[0] = (C0934b) C0932g.m2566a(0.0f, iArr[0]);\n while (i < length) {\n c0934bArr[i] = (C0934b) C0932g.m2566a(((float) i) / ((float) (length - 1)), iArr[i]);\n i++;\n }\n }\n this.f2342e = new C0931f(c0934bArr);\n }", "private void coins_a1B(){\n\t\tthis.cube[22] = this.cube[9]; \n\t\tthis.cube[9] = this.cube[45];\n\t\tthis.cube[45] = this.cube[36];\n\t\tthis.cube[36] = this.cube[0];\n\t\tthis.cube[0] = this.cube[22];\n\t}", "public abstract Case[][] generate();", "static double calculateArraySum(double... value) {\n double sum = 0;\n for (double i : value) {\n sum += i;\n }\n return sum;\n }", "public Transform(float[][] v){\n if(v.length != 4 || v[0].length != 4)\n throw new IllegalArgumentException(\n \"Transform: Wrong size array for argument: \" + v);\n else\n values = v;\n }", "private void coins_a1G(){\n\t\tthis.cube[31] = this.cube[17]; \n\t\tthis.cube[17] = this.cube[8];\n\t\tthis.cube[8] = this.cube[44];\n\t\tthis.cube[44] = this.cube[53];\n\t\tthis.cube[53] = this.cube[31];\n\t}", "O transform(R result);", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "public double[] Cramer() {\r\n\t\tdouble MainDet; // Determinan Matriks utama\r\n\t\t\r\n\t\tdouble[] ValX = new double[KolEff-1]; // Array nilai setiap variabel X yang memenuhi\r\n\t\tdouble[] ArrB = new double[BrsEff]; // Array nilai konstanta B pada SPL\r\n\t\tdouble[] DetN = new double[KolEff-1]; // Array nilai determinan yang telah diganti sekolom dengan nilai B\r\n\t\t\r\n\t\tMatriks tempM = new Matriks(BrsEff,KolEff);\r\n\t\tMatriks tempM2 = new Matriks(BrsEff,KolEff-1);\r\n\t\t\r\n\t\ttempM = this;\r\n\t\t\r\n\t\tfor (int i=0; i<tempM.BrsEff; i++) {\r\n\t\t\tArrB[i] = tempM.Elmt[i][tempM.KolEff-1];\r\n\t\t}\r\n\t\t\r\n\t\ttempM.CutMatriks(0,1);\r\n\t\t\r\n\t\tMainDet = tempM.DetCofactor(tempM);\r\n\t\t\r\n\t\tfor (int j=0; j<tempM.KolEff; j++) {\r\n\t\t\ttempM2 = new Matriks(tempM.Elmt);\r\n\t\t\t\r\n\t\t\tfor (int i=0; i<tempM2.BrsEff; i++) {\r\n\t\t\t\ttempM2.Elmt[i][j] = ArrB[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tDetN[j] = tempM2.DetCofactor(tempM2);\r\n\t\t\t\r\n\t\t\tValX[j] = DetN[j]/MainDet;\r\n\t\t}\r\n\t\t\r\n\t\treturn ValX;\r\n\t}", "private int[] process(int[] ip)\n\t{\n\t\tint[] result = new int[ip.length];\n\t\t//first multiply all numbers\n\t\tint x = ip[0];\n\t\tfor(int i=0; i<ip.length; i++)\n\t\t{\n\t\t\tx = x*ip[i];\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ip.length; i++)\n\t\t{\n\t\t\tresult[i] = x / ip[i];\n\t\t}\n\t\treturn result;\n\t}", "private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }", "public FractileArray (double[] the_values, int lo) {\n\t\t\tif (the_values == null) {\n\t\t\t\tvalues = null;\n\t\t\t} else {\n\t\t\t\tvalues = Arrays.copyOfRange (the_values, lo, the_values.length);\n\t\t\t}\n\t\t}", "private void coins_fB(){\n\t\tthis.cube[22] = this.cube[18]; \n\t\tthis.cube[18] = this.cube[24];\n\t\tthis.cube[24] = this.cube[26];\n\t\tthis.cube[26] = this.cube[20];\n\t\tthis.cube[20] = this.cube[22];\n\t}", "public static Complex[] translate(double[] ar) {\n Complex[] ac = new Complex[ar.length];\n for (int i = 0; i < ac.length; i++)\n ac[i] = new Complex(ar[i], 0);\n return ac;\n }", "private double[][] toFormatNeuralNetwork(Map<String, Object> mpintpus){\n\t\tlogger.info(\" #### toFormatNeuralNetwork \"+mpintpus.values());\n\t\t\n\t\tCollection<Object> list = mpintpus.values();\n\t\tdouble[] input = new double[list.size()];\n\t\tint idx=0;\n\t\tfor (Object o : list) {\n\t\t\tinput[idx] = ((Double)o).doubleValue();\n\t\t\tidx++;\n\t\t}\t\n\t\tdouble[][]_inputs = {input};\n\t\treturn _inputs;\n\t}", "public Matrix getValue();", "public V mo3404i(int i) {\n V[] vArr = this.f2826c;\n int i2 = i << 1;\n V v = vArr[i2 + 1];\n int i3 = this.f2827d;\n int i4 = 0;\n if (i3 <= 1) {\n m2105c(this.f2825b, vArr, i3);\n this.f2825b = C0453f4.f2093a;\n this.f2826c = C0453f4.f2095c;\n } else {\n int i5 = i3 - 1;\n int[] iArr = this.f2825b;\n int i6 = 8;\n if (iArr.length <= 8 || i3 >= iArr.length / 3) {\n if (i < i5) {\n int i7 = i + 1;\n int i8 = i5 - i;\n System.arraycopy(iArr, i7, iArr, i, i8);\n Object[] objArr = this.f2826c;\n System.arraycopy(objArr, i7 << 1, objArr, i2, i8 << 1);\n }\n Object[] objArr2 = this.f2826c;\n int i9 = i5 << 1;\n objArr2[i9] = null;\n objArr2[i9 + 1] = null;\n } else {\n if (i3 > 8) {\n i6 = i3 + (i3 >> 1);\n }\n mo3390a(i6);\n if (i3 == this.f2827d) {\n if (i > 0) {\n System.arraycopy(iArr, 0, this.f2825b, 0, i);\n System.arraycopy(vArr, 0, this.f2826c, 0, i2);\n }\n if (i < i5) {\n int i10 = i + 1;\n int i11 = i5 - i;\n System.arraycopy(iArr, i10, this.f2825b, i, i11);\n System.arraycopy(vArr, i10 << 1, this.f2826c, i2, i11 << 1);\n }\n } else {\n throw new ConcurrentModificationException();\n }\n }\n i4 = i5;\n }\n if (i3 == this.f2827d) {\n this.f2827d = i4;\n return v;\n }\n throw new ConcurrentModificationException();\n }", "private static void convertHertzToAbsoluteCent(List<Double> convertedValues) {\r\n for (int i = 0; i < convertedValues.size(); i++) {\r\n Double valueInHertz = convertedValues.get(i);\r\n convertedValues.set(i, PitchConverter.hertzToAbsoluteCent(valueInHertz));\r\n }\r\n }", "private void coins_a1R(){\n\t\tthis.cube[13] = this.cube[51]; \n\t\tthis.cube[51] = this.cube[20];\n\t\tthis.cube[20] = this.cube[2];\n\t\tthis.cube[2] = this.cube[29];\n\t\tthis.cube[29] = this.cube[13];\n\t}", "public static double[] backSubst(double[][] R, double[] b) {\n\t\t\n\t\t//TODO: Diese Methode ist zu implementieren\n\t\tdouble calc_b[] = new double[b.length];\n\t\tdouble calc_R[][] = new double[R.length][R[0].length];\n\t\t\n\t\t// check for valid array lengths\n\t\tif(R.length != b.length) {\n\t\t\tdouble error[] = {0};\n\t\t\treturn error;\n\t\t}\n\t\t\n\t\t// copy array values to their calc variables to\n\t\t// to not change the parameter values\n\t\t\n\t\tSystem.arraycopy(b,0,calc_b,0,b.length);\n\t\tSystem.arraycopy(R,0,calc_R,0,R.length);\n\t\t\n\t\tdouble add = 0.0;\n\t\t\n\t\tfor(int i = R.length-1; i >= 0; i--) {\n\t\t\tfor(int j = i-1; j >= 0; j--) {\n\t\t\t\tadd = (-1D) * (calc_R[i][j]/calc_R[i][i]);\n\t\t\t\tif(add == 0D) {continue;}\n\t\t\t\tcalc_R[i][j] += calc_R[i][i]* add;\n\t\t\t\tcalc_b[j] += calc_b[i]* add;\n\t\t\t}\n\t\t\t\n\t\t\tif(calc_R[i][i] == 0) {\n\t\t\t\tdouble error[] = {0};\n\t\t\t\treturn error;\n\t\t\t}\n\t\t\t\n\t\t\tcalc_b[i] /= calc_R[i][i];\n\t\t}\n\t\t\n\t\treturn calc_b;\n\t\t\n\t}", "@Override\r\n\tpublic float convertValue(String[] elementDesc) throws MerchantGuideException {\r\n\t\tlog.debug(\"convertValue starts here\");\r\n\t\t//holds final value\r\n\t\tfloat total = 0;\r\n\t\t//for checking previous value for subtraction logic\r\n\t\tfloat prevVal = 0;\r\n\t\tfor (int i = 0; i < elementDesc.length; i++) {\r\n\t\t\tString currentValue = elementDesc[i];\r\n\t\t\tlog.debug(\"input value is :\" + currentValue);\r\n\t\t\tlog.debug(\"previous value is :\" + prevVal);\r\n\t\t\t//validate first all repeating and non-repeating numerals\r\n\t\t\tif(Validator.validateRomanOccurences(currentValue)){\r\n\t\t\t\tfloat currVal = RomanNumbers.getRomanNumbers().get(currentValue);\r\n\t\t\t\t//\"I\" can be subtracted from \"V\" and \"X\" only. 1 be can subtracted from 5 or 10\r\n\t\t\t\t// \"X\" can be subtracted from \"L\" and \"C\" only. 10 be can subtracted from 50 or 100\r\n\t\t\t\t// \"C\" can be subtracted from \"D\" and \"M\" only. 100 be can subtracted from 500 or 100\r\n\t\t\t\tif(currVal > prevVal && (currVal == 5*prevVal || currVal == 10*prevVal)){\r\n\t\t\t\t\ttotal = total + (currVal - prevVal) - prevVal;\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// \"V\", \"L\", and \"D\" can never be subtracted. hence getting added\r\n\t\t\t\t\ttotal = total + currVal;\r\n\t\t\t\t}\r\n\t\t\t\t//assigning current value to keep copy\r\n\t\t\t\tprevVal = currVal;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//clears all the counter for checking repetitions\r\n\t\tValidator.clearRepeatationCountMap();\r\n\t\tlog.debug(\"convertValue ends here : final total value is \" + total);\r\n\t\treturn total;\r\n\t}", "private void method_253(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14) {\n boolean var25 = field_759;\n int var15 = var14 >> 16 & 255;\n int var16 = var14 >> 8 & 255;\n int var17 = var14 & 255;\n\n try {\n int var18 = var4;\n int var19 = -var9;\n if(var25 || var19 < 0) {\n do {\n int var20 = (var5 >> 16) * var12;\n int var21 = -var8;\n if(!var25 && var21 >= 0) {\n var5 += var11;\n var4 = var18;\n var6 += var7;\n var19 += var13;\n } else {\n do {\n label30: {\n var3 = var2[(var4 >> 16) + var20];\n if(var3 != 0) {\n int var22 = var3 >> 16 & 255;\n int var23 = var3 >> 8 & 255;\n int var24 = var3 & 255;\n if(var22 == var23 && var23 == var24) {\n var1[var6++] = (var22 * var15 >> 8 << 16) + (var23 * var16 >> 8 << 8) + (var24 * var17 >> 8);\n if(!var25) {\n break label30;\n }\n }\n\n var1[var6++] = var3;\n if(!var25) {\n break label30;\n }\n }\n\n ++var6;\n }\n\n var4 += var10;\n ++var21;\n } while(var21 < 0);\n\n var5 += var11;\n var4 = var18;\n var6 += var7;\n var19 += var13;\n }\n } while(var19 < 0);\n\n }\n } catch (Exception var26) {\n System.out.println(\"error in plot_scale\"); // authentic System.out.println\n }\n }" ]
[ "0.5676911", "0.56328094", "0.5545724", "0.55364555", "0.54906934", "0.54902756", "0.5437737", "0.5437334", "0.54372865", "0.54150635", "0.5394361", "0.5392407", "0.5387365", "0.5350996", "0.53408706", "0.5317243", "0.5316665", "0.5288475", "0.526723", "0.52286416", "0.52232", "0.5214634", "0.5212224", "0.52089006", "0.52036196", "0.5187636", "0.51872003", "0.51600164", "0.5153793", "0.5146395", "0.51364076", "0.51167244", "0.50992084", "0.50989544", "0.50951517", "0.5075726", "0.503385", "0.50229686", "0.50126046", "0.49990276", "0.49971178", "0.49623898", "0.49611133", "0.4956086", "0.4951253", "0.49213454", "0.49099228", "0.4896653", "0.4895209", "0.48860195", "0.48840335", "0.48837587", "0.48834705", "0.48720133", "0.48679304", "0.48558614", "0.48551792", "0.48542115", "0.48373517", "0.48293954", "0.4816262", "0.48087162", "0.48049176", "0.4801681", "0.47943348", "0.47942802", "0.4791733", "0.47881112", "0.47800988", "0.4779633", "0.47683096", "0.47682685", "0.47614843", "0.47612548", "0.4760904", "0.47598326", "0.47572917", "0.4754884", "0.4749825", "0.47496915", "0.47494215", "0.47492313", "0.47389466", "0.473871", "0.4737286", "0.47345716", "0.47325182", "0.47317824", "0.47221872", "0.47179163", "0.47157624", "0.47109503", "0.4701777", "0.47002268", "0.46995437", "0.46982226", "0.46975583", "0.4696117", "0.4693984", "0.46939433", "0.46910858" ]
0.0
-1
/ Purpose: Obtain the 5 most frequent words found Parameters: MaxFrequencyHeap h the heap containing all the word entry data Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs with the maximum frequency values)
public static Entry[] overallMostFrequent(MaxFrequencyHeap h) { Entry[] top5 = new Entry[CAPACITY]; int top5_counter = 0; // our temporary top5 counter // Iterate through our maxheap until we find the top 5 words while(top5_counter<5){ // If our heap is empty simply return the top5 array if(h.isEmpty()){ break; }else{ // Add the current max word from our heap using remove max top5[top5_counter] = h.removeMax(); top5_counter++; // Increment our top 5 counter } } return top5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Entry[] atLeastLength(MaxFrequencyHeap h, int n) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\t// While our heap is not empty and we\r\n\t\t// havent found the top 5 words of the minimum length n\r\n\t\t// remove the max word from our heap\r\n\t\twhile(h.size()>0 && counter!=5){\r\n\r\n\t\t\tEntry current_entry = h.removeMax();\r\n\r\n\t\t\tString current_word = current_entry.getWord();\r\n\r\n\t\t\t// If the current max word has a lenght at least the size of n,\r\n\t\t\t// add that entry to our top5 array\r\n\t\t\tif(current_word.length()>=n){\r\n\r\n\t\t\t\ttop5[counter] = current_entry;\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn top5;\r\n\t}", "private static void printMostFrequentHashTags(){\n\t\t\n\t\tMap<String, Integer> hashtags = getHashTags();\n\t\tString max_count_hashtag[] = new String[3];\t//stores top 3 most frequent hashtags\n\t\tint max_counts[] = new int[3];\t//stores their count\n\t\t\n\t\tfor(String hashtag : hashtags.keySet()){\n\t\t\tint count = hashtags.get(hashtag);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_hashtag[index] = hashtag;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most freqent hashtags */\n\t\tSystem.out.println(\"top 3 most frequently used hashtags : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Hashtag : #\" + max_count_hashtag[i] + \" is used \"+ max_counts[i] + \" times.\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "public static Entry[] startsWith(MaxFrequencyHeap h, char letter) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\t// While our heap is not empty and we\r\n\t\t// havent found the top 5 words of the minimum length n\r\n\t\t// remove the max word from our heap\r\n\t\twhile(h.size()>0 && counter!=5){\r\n\r\n\t\t\tEntry current_entry = h.removeMax();\r\n\r\n\t\t\tString current_word = current_entry.getWord();\r\n\r\n\t\t\t// If the current entry word starts with the letter we are looking for\r\n\t\t\t// add the entry to our top5 array\r\n\t\t\tif(current_word.charAt(0)==letter){\r\n\r\n\t\t\t\ttop5[counter] = current_entry;\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn top5;\r\n\t}", "public int maxNumber(){\n int highest = 0;\n ArrayList<String> currentFileList = null;\n for (String word : hashWords.keySet()) {\n currentFileList= hashWords.get(word);\n int currentNum = currentFileList.size();\n if (currentNum > highest) {\n highest = currentNum;\n }\n // System.out.println(\"currentFileList \" + currentFileList +\"highest num = \"+ highest );\n }\n \n return highest;\n /*for (ArrayList s : hashWords.values()){\n if (s.size() > maxSize) {\n maxSize = s.size();\n }\n }\n return maxSize;*/\n }", "private static ArrayList<sri.Pair<String,Integer>> mostFrequentWords(String path) throws IOException {\r\n PriorityQueue<Pair<String, Integer>> listOfWords = new PriorityQueue<>(10,(o1, o2) -> {\r\n return ((int) o2.getSecond() - (int) o1.getSecond());\r\n });\r\n\r\n HashMap<String,Integer> mapOfWords = new HashMap<>();\r\n\r\n BufferedReader br;\r\n String word;\r\n ArrayList outputList = new ArrayList();\r\n\r\n File file = new File(path);\r\n\r\n br = new BufferedReader(new FileReader(file));\r\n\r\n while ( (word = br.readLine()) != null) {\r\n if (mapOfWords.containsKey(word)) {\r\n mapOfWords.put(word, mapOfWords.get(word) + 1);\r\n } else {\r\n mapOfWords.put(word, 1);\r\n }\r\n }\r\n\r\n for (Map.Entry<String,Integer> entry: mapOfWords.entrySet()){\r\n sri.Pair<String,Integer> tuple = new sri.Pair<String,Integer>(entry.getKey(),entry.getValue());\r\n listOfWords.offer(tuple);\r\n }\r\n\r\n for (int i = 0; i < 5; i++){\r\n outputList.add(new sri.Pair<String,Integer>(listOfWords.peek().getFirst(),listOfWords.poll().getSecond()));\r\n }\r\n\r\n return outputList;\r\n\r\n\r\n }", "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_string[index] = str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most frequently used words */\n\t\tSystem.out.println(\"top 3 most frequently used words : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Word : \\\"\" + max_count_string[i] + \"\\\" is used \"+ max_counts[i] +\" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t}", "public Object[][] get20MostFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n //Creating the array that will hold all the hotwords in order of number of appearances \r\n String[] topWord = new String[words.size()];\r\n //This is the subset of the array above that will return the amount specified by the count argument\r\n String[] output = new String[count];\r\n //Fills the array with blank strings\r\n Arrays.fill(topWord, \"\");\r\n //Iterator for moving through topWord for assignment\r\n int iterator = 0;\r\n //Loop through every hotword in words and puts those words in topWord\r\n for(String key: words.keySet()){\r\n topWord[iterator] = key;\r\n iterator++;\r\n }\r\n //Sorts the words in topword\r\n for(int i = 0; i < words.size(); i++){\r\n for(int j = words.size()-1; j > 0; j-- ){\r\n \r\n if(count(topWord[j]) > count(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n \r\n }\r\n }\r\n //Does a secondary check to be certain all words are in proper appearance number order\r\n for(int i = words.size()-1; i >0; i--){\r\n if(count(topWord[i]) > count(topWord[i-1])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[i-1];\r\n topWord[i-1] = temp;\r\n }\r\n }\r\n //Orders the words with the same number of appearances by order of appearance in the document\r\n for (int i = 0; i < words.size(); i++){\r\n for(int j = i+1; j < words.size(); j++){\r\n if (count(topWord[i]) == count(topWord[j])){\r\n if (consec.indexOf(topWord[j]) < consec.indexOf(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n }\r\n }\r\n }\r\n //Gets the subset requested for return\r\n for (int i = 0; i < count; i++){\r\n output[i] = topWord[i];\r\n }\r\n return output;\r\n\t}", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}", "public String[] topKFrequent(String[] combo, int k) {\n\t if (combo.length == 0) {\n\t return new String[0];\n\t }\n\t // get all the distinct strings at keys and their frequencies as values.\n\t Map<String, Integer> freqMap = getFreqMap(combo);\n\t // NOTICE: using map.Entry as the element type directly so that all the \n\t // operations are mostly efficient.\n//\t Comparator<Map.Entry<String, Integer>> comp = new Comparator<Map.Entry<String, Integer>>() {\n//\t @Override\n//\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n//\t return e1.getValue().compareTo(e2.getValue());\n//\t }\n//\t };\n\t PriorityQueue<Map.Entry<String, Integer>> minHeap = \n\t new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n\t\t @Override\n\t\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n\t\t return e1.getValue().compareTo(e2.getValue());\n\t\t }\n\t\t });\n\t for (Map.Entry<String, Integer> entry : freqMap.entrySet()) {\n\t \tif (minHeap.size() < k) {\n\t \t\tminHeap.offer(entry);\n\t \t} else if (entry.getValue() > minHeap.peek().getValue()){\n\t \t\tminHeap.poll();\n\t \t\tminHeap.offer(entry);\n\t \t}\n\t }\n\t // since the returned array requires the strings sorted by their frequencies,\n\t // use a separate helper method to do this operation.\n\t return freqArray(minHeap);\n\t}", "private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = new HuffmanTreeNode[freq.length];\n\t\tfor (int i = 0; i < freq.length; i++)\n\t\t{\n\t\t\theap[i] = new HuffmanTreeNode(freq[i][1], freq[i][0], null, null);\n\t\t}\n\t\t\n\t\theap = heapSort(heap);\n\n\t\treturn heap;\n\t}", "BigInteger getMax_freq();", "private static void MostFrequentTwoGram() throws Exception{\n\t\tFile file=new File(filenameforpages);\n\t\tList<String> words = Utilities.tokenizeFile(file);\n\t\t\n\t\tList<String> stopwordslist = Utilities.tokenizeFile(new File(filenameforstopwords));\n\t\tList<String> mostfrequenttwogramlist =computeTwoGramFrequencies(words, top_number , stopwordslist);\n\t\tWriteMostFrequentTwoGramsToFile(mostfrequenttwogramlist);\n\t}", "private Set<String> get5000MostPopularWords(Predicate<String> stringFilter) throws FileNotFoundException {\n InputStream wordIS = this.getClass().getResourceAsStream(\"5000-MostPopularEnglishWords.txt\"); // not the best file since it has dups and words that are one and two characters\n BufferedReader reader = new BufferedReader(new InputStreamReader(wordIS));\n\n return reader.lines()\n .filter(stringFilter)\n .collect(Collectors.toSet());\n }", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "public FHeapNode removeMax()\r\n {\r\n FHeapNode z = maxNode;\r\n //hmap.remove(maxNode.gethashtag());\t\t\t\t\t\t\t\t\t\t//remove the node from the hashtable\r\n \r\n if (z != null) \r\n\t\t{\r\n \t for (HashMap.Entry<String, FHeapNode> entry : hmap.entrySet()) \r\n {\r\n \tif(entry.getValue() == maxNode)\r\n \t{\r\n \t\thmap.remove(entry.getKey());\r\n \t\tbreak;\r\n \t}\r\n }\r\n \t \r\n int numKids = z.degree;\r\n FHeapNode x = z.child;\r\n FHeapNode tempRight;\r\n\r\n while (numKids > 0) \t\t\t\t\t\t\t\t\t\t\t\t\t// iterate trough all the children of the max node\r\n\t\t\t{\r\n tempRight = x.right; \r\n x.left.right = x.right;\t\t\t\t\t\t\t\t\t\t\t\t// remove x from child list\r\n x.right.left = x.left;\r\n \r\n x.left = maxNode;\t\t\t\t\t\t\t\t\t\t\t\t\t// add x to root list of heap\r\n x.right = maxNode.right;\r\n maxNode.right = x;\r\n x.right.left = x;\r\n \r\n x.parent = null;\t\t\t\t\t\t\t\t\t\t\t\t\t// set parent[x] to null\r\n x = tempRight;\r\n numKids--;\r\n }\r\n\t\t\tz.left.right = z.right;\t\t\t\t\t\t\t\t\t\t\t\t\t// remove z from root list of heap\r\n z.right.left = z.left;\r\n\r\n if (z == z.right)\r\n\t\t\t{\r\n maxNode = null;\r\n } \r\n\t\t\telse \r\n\t\t\t{\r\n maxNode = z.right;\r\n meld();\r\n } \r\n nNodes--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// decrement size of heap\r\n }\r\n \r\n\r\n return z;\r\n }", "private int findMostFrequent(int[] Array) {\n\t HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t for(int element: Array) {\n\t Integer frequency = map.get(element);\n\t map.put(element, (frequency != null) ? frequency + 1 : 1); \n\t }\n\t int mostFrequentItem = 0;\n\t int[] maxFrequencies = new int[2];\n\t maxFrequencies[0] = Integer.MIN_VALUE;\n\n\t for(Entry<Integer, Integer> entry: map.entrySet())\n\t {\n\t if(entry.getValue()>= maxFrequencies[0])\n\t {\n\t mostFrequentItem = entry.getKey();\n\t maxFrequencies[1] = maxFrequencies[0];\n\t maxFrequencies[0] = entry.getValue();\n\t }\n\t }\n\t // this is for a tie\n\t // TODO: Consider what happens when there is a tie between two occurrences\n\t // if(maxFrequencies[1] == maxFrequencies[0])\n\t // throw new Exception();//insert whatever exception seems appropriate\n\t return mostFrequentItem;\n\t}", "public Pair[] top10Words(){\n Pair[] top10Words = new Pair[10];\n int top10LeastOccurrence = 9;\n\n for (String word : matchedSongs.keySet()){\n int currentSize = matchedSongs.get(word).size();\n //Array is sorted from greatest to least, just need to compare last value to current value.\n //Sorting after insertion will ensure it is in order for next time we perform a compare.\n if (top10Words[top10LeastOccurrence] == null || (int) top10Words[top10LeastOccurrence].getValue() < currentSize){\n top10Words[top10LeastOccurrence] = new Pair(word, currentSize);\n Arrays.sort(top10Words, new SortByHighestPair());\n }\n }\n return top10Words;\n }", "public Object[][] get20MostInterestingFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tSet<String> stopwords = getStopWords();\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\t if(stopwords.contains(token) || token.length()==0) continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public int maxEntrySize() {\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; (i < table.length); i++) {\n\t\t\tif (table [i] != null) {\n\t\t\t\tif (table[i].size() > max)\n\t\t\t\t\tmax = table[i].size();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public void buildMaxHeap(){\n\t\tfor(int i = (n-2)/2 ; i >= 0; i--){\n\t\t\tmaxHeapfy(i);\n\t\t}\n\t}", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "void buildMaxHeap(int[] array, int heapSize) {\n for (int i = heapSize / 2 - 1; i >= 0; i--) heapify(array, i, heapSize);\n }", "public void maxHeapify(int i){\n\t\tint left, right, largest;\n\t\tKeyword temp;\n\t\tleft=2*i;\n\t\tright=2*i+1;\n\t\tif(left<=heapSize){\n\t\t\tif(keywords[left].keyword.equalsIgnoreCase(keywords[i].keyword)){\t\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[left].pageNo.compareTo(keywords[i].pageNo)>0){\t//comparing pageNo of the Keyword objects\n\t\t\t\t\tlargest=left;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlargest=i;\n\t\t\t}\n\t\t\telse if(keywords[left].keyword.compareToIgnoreCase(keywords[i].keyword)>0){\n\t\t\t\tlargest=left;\n\t\t\t}\n\t\t\telse \n\t\t\t\tlargest = i;\n\t\t}\n\t\t\n\t\telse \n\t\t\tlargest =i;\n\t\t\n\t\tif(right<=heapSize){\n\t\t\tif(keywords[right].keyword.equalsIgnoreCase(keywords[largest].keyword)){\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[right].pageNo.compareTo(keywords[largest].pageNo)>0){\t//comparing pageNo of the Keyword object\n\t\t\t\t\tlargest=right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(keywords[right].keyword.compareToIgnoreCase(keywords[largest].keyword)>0)\n\t\t\t\tlargest=right;\n\t\t}\n\t\t\n\t\tif (largest!=i){\n\t\t\ttemp=keywords[i];\n\t\t\tkeywords[i]=keywords[largest];\n\t\t\tkeywords[largest]=temp;\n\t\t\tmaxHeapify(largest);\n\t\t}\n\t}", "public String[] topKFrequent(String[] combo, int k) {\n if (combo == null || combo.length == 0 || k <= 0) {\n return new String[0];\n }\n Map<String, Integer> map = getMap(combo);\n PriorityQueue<Map.Entry<String, Integer>> minHeap = new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n @Override\n public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n if (e1.getValue().equals(e2.getValue())) {\n return 0;\n }\n return e1.getValue() < e2.getValue() ? -1 : 1;\n }\n });\n for (Map.Entry<String, Integer> entry : map.entrySet()) {\n if (minHeap.size() < k) {\n minHeap.offer(entry);\n } else if (entry.getValue() > minHeap.peek().getValue()) {\n minHeap.poll();\n minHeap.offer(entry);\n }\n }\n String[] res = new String[minHeap.size()];\n for (int i = minHeap.size() - 1; i >= 0; i--) {\n res[i] = minHeap.poll().getKey();\n }\n return res;\n }", "public void apply(GlobalWindow window, Iterable<String> values, \n Collector<Tuple2<String,Integer>> out) throws Exception {\n \t HashMap <String,Integer> countWord = new HashMap<String,Integer>();\n \n for (String value : values) {\n \t \n \t String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n \t for (String token : tokens)\n \t {\t if (token.length() >0) {\n \t\t if (countWord.get(token) != null)\n { countWord.put(token, countWord.get(token)+1);}\n else\n {countWord.put(token, 1);}\n \t }\n \t\t \n \t }\n }\n \n \n //Comparator to sort in reverse\n \t\t\tComparator<String> comparator = new Comparator<String>() {\n \t\t\t public int compare(String o1, String o2) {\n \t\t\t return countWord.get(o1).compareTo(countWord.get(o2));\n \t\t\t }\n \t\t\t};\n\n \t\t\tArrayList<String> words = new ArrayList<String>();\n \t\t\twords.addAll(countWord.keySet());\n\n \t\t\tCollections.sort(words,comparator);\n \t\t\tCollections.reverse(words);\n \t\t\t\n// System.out.println(Arrays.asList(words));\n \t\t\tSystem.out.println(\"10 most frequent words per stream\");\n System.out.println(\"-----------\");\n \n for(int i = 0; i < 10; i++) {\n \tSystem.out.println(words.get(i) + \" : \" + countWord.get(words.get(i)));\n }\n \n \n System.out.println(\"\\n\");\n \n }", "public List<String> topKFrequent(String[] words, int k) {\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n for (String s : words) {\n map.put(s, map.getOrDefault(s, 0) + 1);\n }\n \n ArrayList<Integer> allFrequencies = new ArrayList<Integer>();\n\n \n map.forEach((key,v) -> allFrequencies.add(v));\n IO.printArrayList(allFrequencies);\n // Add all the frequencies into allFrequencies arraylist\n int totalAmountOfWords = map.keySet().size();\n \n // Find the k th largest number in the allFrequencies arraylist\n //System.out.println(\"total: \"+totalAmountOfWords);\n int newK = totalAmountOfWords - k;\n //System.out.println(\"newk: \"+ newK);\n int newkth = findKth(allFrequencies, newK);\n //System.out.println(\"new kth element:\"+newkth);\n int newKthElement = newK > 0 ? newkth : 0 ;\n \n TreeMap<Integer, TreeSet<String>> reverseSortedMap = new TreeMap<Integer, TreeSet<String>>(Collections.reverseOrder());\n map.forEach((key,v) -> {if (v >= newKthElement ) {\n if(!reverseSortedMap.containsKey(v)) reverseSortedMap.put(v, new TreeSet<String>());\n reverseSortedMap.get(v).add(key);}});\n \n List<String> result = new ArrayList<String>();\n reverseSortedMap.forEach((key,v) -> {result.addAll(v);});\n \n return result.size() > k? result.subList(0, k): result;\n }", "public static long[] estimateSizeOnHeap(int numberOfEntries, int\n maxNumberOfBits) {\n \n long ww = maxNumberOfBits;\n \n long maxNumber = (1L << ww) - 1;\n \n long binSz = maxNumberOfBits;\n \n int nBins = (int)Math.ceil((double)maxNumber/(double)binSz);\n \n long total = 0;\n \n ObjectSpaceEstimator est = new ObjectSpaceEstimator();\n est.setNIntFields(2);\n est.setNLongFields(3);\n est.setNBooleanFields(1);\n //objects: xft, xftReps, rbs\n est.setNObjRefsFields(3);\n \n total += est.estimateSizeOnHeap();\n \n // --------- include contents of the objects --------------\n \n /*\n the minimum of each bin range, if it is populated, is the representative\n node, and that is held in 2 data structures:\n xft holds the number, allowing fast repr prev and next lookups.\n xftReps holds the repr as the value, found by key = binNumber.\n * the max number of trie entries will be nBins\n but there will be prefix trie nodes too\n private final XFastTrieLong<XFastTrieNodeLong<Long>, Long> xft;\n \n // key = bin index (which is node/binSz), value = repr value.\n // each repr value is the minimum stored in the bin.\n // * the max number of map entries will be nBins.\n private final TLongLongMap xftReps = new TLongLongHashMap();\n \n // all inserts of this class are held in \n // * at most nBins number of trees which each \n // hold at most binSz number of entries.\n // each list item is a sorted binary search tree of numbers in that bin.\n // the value in the tree holds multiplicity of the number.\n // each list index can be found by node/binSz\n // each sorted tree has \n // key = node (inserted number), w/ value=\n // the number of times that number is present (multiplicity).\n TLongObjectMap<RedBlackBSTLongInt2> rbs;\n */\n \n // returning 2 estimates\n // (1) estimate using all bins w/ factor 5 for tries\n // (2) estimate from using nBinsSparse of the nBins w/ factor 3 for tries\n \n int nBinsSparse = nBins/10;\n if (nBinsSparse < 1) {\n nBinsSparse = 1;\n }\n \n // using factor of 5 for total w/ prefix nodes\n long total2_1 = numberOfEntries * 5 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // all nBins are filled w/ a repr\n total2_1 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n long total2_2 = numberOfEntries * 3 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // nBinsSparse of nBins are filled w/ a repr\n total2_2 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n \n //TLongLongMap\n total2_1 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins number of repr entries in map\n total2_1 += (2 * nBins * ObjectSpaceEstimator.estimateLongSize());\n \n \n //TLongLongMap\n total2_2 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins/4 number of repr entries in map\n total2_2 += (2 * nBinsSparse * ObjectSpaceEstimator.estimateLongSize());\n \n \n // 1 TLongObjectMap<RedBlackBSTLongInt> rbs;\n total2_1 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n total2_2 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n // nBins number of TreeMap<Integer, Integer> \n ObjectSpaceEstimator est2 = new ObjectSpaceEstimator();\n est2.setNBooleanFields(1);\n est2.setNObjRefsFields(2);\n long totalEntry = est2.estimateSizeOnHeap();\n totalEntry += 3. * totalEntry;\n est2 = new ObjectSpaceEstimator();\n est2.setNIntFields(2);\n long rbtree = est2.estimateSizeOnHeap() + totalEntry;\n long rbtreeNodes = numberOfEntries * totalEntry;\n \n total2_1 += (nBins * rbtree);\n \n total2_2 += (nBinsSparse * rbtree);\n \n \n // nEntries number of long, int nodes\n \n total2_1 += rbtreeNodes;\n \n total2_2 += rbtreeNodes;\n \n return new long[]{total2_1 + total, total2_2 + total};\n }", "public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public static void main(String[] args) {\n\n\t\tHeap hp = new Heap();\n\t\thp.add(20);\n\t\thp.add(10);\n\t\thp.add(70);\n\t\thp.add(80);\n\t\thp.add(1);\n//\t\thp.display();\n//\n//\t\twhile (hp.size() != 0) {\n//\t\t\tSystem.out.println(hp.remove());\n//\t\t}\n\n\t\tint[] arr = { 1, 5, 2, 3, 10, 20, 2, 1, 6, 7 };\n\n\t\tKthLargest(arr, 3);\n\t}", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public Object[][] get20LeastFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn -(map.get(s1) - map.get(s2));\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) < map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public static TrigramsOcurrence greatest(ArrayList<TrigramsOcurrence> frequencies) {\n TrigramsOcurrence greatest = frequencies.get(0);\n for (TrigramsOcurrence frecuency : frequencies) {\n if (greatest.getFrequency() < frecuency.getFrequency()) {\n greatest = frecuency;\n }\n }\n return greatest;\n }", "public static int KthLargestWithMaxHeap(Integer[] arr, int k) {\n\t\tHeap<Integer> heap = new Heap<>(arr, false);\n\n\t\t// k removal from heap\n\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\theap.remove();\n\t\t}\n\n\t\treturn heap.getHP();\n\n\t\t// complexity is n+klogn\n\t}", "public static int[] topKFrequent(int[] nums, int k) {\n int[] a = new int[k];\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n map.put(nums[i], map.get(nums[i]) + 1);\n } else {\n map.put(nums[i], 1);\n }\n }\n\n PriorityQueue<Map.Entry<Integer, Integer>> maxHeap = new PriorityQueue<Map.Entry<Integer, Integer>>(k, Map.Entry.<Integer, Integer>comparingByValue().reversed());\n for (Map.Entry<Integer, Integer> e : map.entrySet()) {\n maxHeap.offer(e);\n }\n\n while (k > 0) {\n a[--k] = maxHeap.poll().getKey();\n }\n\n return a;\n }", "public static void main(String[] args) {\n\t\tint A[] = { 17, 15, 13, 9, 6, 5, 10, 4, 8, 3, 1 };\t\t// max-heap structure\n\t\t//index\t\t0 1 2 3 4 5 6 7 8 9 10\n\t\t\n\t\tdeleteMax(A);\n\t\tSystem.out.println(Arrays.toString(A));\n\t}", "public static List<String> topKFrequent_hashmap(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n if (words == null || words.length == 0 || k <= 0) {\n return ans;\n }\n\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n List<Map.Entry<String, Integer>> list = new ArrayList<Map.Entry<String, Integer>>(freqMap.entrySet());\n list.sort((o1, o2) -> {\n if (o1.getValue().equals(o2.getValue())) {\n return o1.getKey().compareTo(o2.getKey());\n }\n\n return o2.getValue() - o1.getValue();\n });\n\n for (Map.Entry<String, Integer> entry : list) {\n ans.add(entry.getKey());\n k--;\n if (k <= 0) {\n return ans;\n }\n }\n\n return ans;\n }", "public int getMaxFrequency() {\n\t\t\tif (mMaxFrequency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + MAX_FREQUENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmMaxFrequency = value / 1000;\n\t\t\t}\n\t\t\treturn mMaxFrequency;\n\t\t}", "public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}", "public Node maxFrequency(Node root) {\r\n\t\t\r\n\t\tif(root == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"The count for \" + root.getData() + \" is \" + root.getCount());\r\n/////////////////////////////////////////////////////////////////////////\r\n/// checks if the max is greater than count of root \t\t\t\t ///\r\n///\t\tif yes, update the value of the Max with count of root\t\t ///\r\n/////////////////////////////////////////////////////////////////////////\r\n\t\t\r\n\t\tif(max<root.getCount()) {\r\n\t\t\tmax = root.getCount();\r\n\t\t\ttemp = root;\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tmaxFrequency(root.getlChild());\r\n\t\tmaxFrequency(root.getrChild());\r\n\t\t\r\n\t\treturn temp;\r\n\t}", "public MaxHeap() {\n this.heap = new ArrayList<E>();\n }", "public Map<Integer, LanguageEntry> getTop(int max, Language lang) {\r\n\t\tMap<Integer, LanguageEntry> temp = new ConcurrentHashMap<>();\r\n\t\tList<LanguageEntry> les = new ArrayList<>(getDb().get(lang).values());\r\n\t\t\r\n\t\tCollections.sort(les);\r\n\t\t\r\n\t\tint rank = 1;\r\n\t\tfor (LanguageEntry le : les) {\r\n\t\t\tle.setRank(rank);\r\n\t\t\ttemp.put(le.getKmer(), le);\t\t\t\r\n\t\t\tif (rank == max) break;\r\n\t\t\trank++;\r\n\t\t}\r\n\t\t// Return\r\n\t\treturn temp;\r\n\t}", "public void resize(int max) {\r\n\t\tSet<Language> keys = getDb().keySet();\r\n\t\tSystem.out.println(keys);\r\n\t\tfor(Language lang : keys) {\r\n\t\t\tMap<Integer,LanguageEntry> top = getTop(max,lang);\r\n\t\t\tgetDb().put(lang,top);\r\n\t\t}\r\n\t}", "public static List<String> topKFrequent_pq(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1) == countMap.get(word2)) {\n return word2.compareTo(word1);\n }\n return countMap.get(word1) - countMap.get(word2);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n if (pq.size() > k) {\n pq.poll();\n }\n }\n\n List<String> ans = new ArrayList<>();\n while (!pq.isEmpty()) {\n ans.add(pq.poll());\n }\n Collections.reverse(ans);\n return ans;\n }", "static int[] buildMaxHeap(int [] arr) {\n\t\tint n = arr.length;\n\t\tint startIdx = (n / 2) - 1;\n\t\tfor(int i = startIdx; i >= 0; i--)\n\t\t\theapify(arr, n, i);\n\t\treturn arr;\n\t}", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "public MaxHeap() {\n this(64);\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\n\t\tint currentHash = 0; /* will be changed in the while loop to store the hash code for current word*/\n\t\tString currentWord; /* will be changed in the while loop to store the current word*/\n\t\t\n\t\tChainHashMap<myString, Integer> wordFrequency = new ChainHashMap<myString, Integer>(500); /* create the chain hash map with the size of 500; there is 500 buckets in the map*/\n\t\t\n\t\t\n\t\tFile file = new File(\"/Users/Jacob/Downloads/shakespeare.txt\");\n\t\t/*please notice that the file cannot be found on the address given above, change it to test if it works!*/\n\t\tScanner input = new Scanner(file); /* should be changed to file after debugging*/\n\t\t\n\t\t\n\t\twhile(input.hasNext()){\n\t\t\tcurrentWord = input.next();\n\t\t\t\n\t\t\twhile(currentWord.equals(\".\") || currentWord.equals(\",\") || currentWord.equals(\"!\") || currentWord.equals(\"?\") || currentWord.equals(\";\") || currentWord.equals(\":\")){\n\t\t\t\tif(input.hasNext()){\n\t\t\t\t\tcurrentWord = input.next();\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyString wordString = new myString(currentWord);\n\t\t\t\n\t\t\tif(wordFrequency.get(wordString) == null){\n\t\t\t\t\n\t\t\t\twordFrequency.put(wordString, 1); /* the key is the string and the value should be the word frequency*/\n\t\t\t}else{\n\n\t\t\t\twordFrequency.put(wordString, wordFrequency.get(wordString) + 1); /* if the key is already in the map, increment the word frequency by 1*/\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* till this point, all the work of Shakespeare have been stored in the chained hash map*/\n\t\t/* the heap is used to get the top 1000 frequent work*/\n\t\t/* it adds the element to the heap and when the size of the heap reaches 1000, the word with the lowest will be removed, which is the root of the heap*/\n\t\t/* the two element in the entry for the heap should be exchanged; the key should store the frequencies and the the value should be the string */\n\t\t\n\t\tHeapAdaptablePriorityQueue<Integer, String> frequencyHeap = new HeapAdaptablePriorityQueue<Integer, String>();\n\t\t\n\t\tfor(Entry<myString, Integer> word: wordFrequency.entrySet()){\n\t\t\tint currentFrequency = word.getValue(); /* store the value of the entry in the chain hash map, will be used as the key for the heap*/\n\t\t\tString currentString = word.getKey()._word; /* store the string in the key of the entry of the chain hash map, will be used as the value for the heap*/\n\t\t\t\n\t\t\tfrequencyHeap.insert(currentFrequency, currentString);\n\t\t\t\n\t\t\tif(frequencyHeap.size() > 1000){\t\t\t\t\n\t\t\t\tfrequencyHeap.removeMin(); /* keep the heap size fixed at 1000; remove the minimum in the heap if the size exceeds 1000*/\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* till now, all the entries has been stored in the heap*/\n\t\t/* get the minimum value and key (the frequency and the corresponding word), then remove the minimum from the heap*/\n\t\t/* the data is stored in the excel form; the screen shot is provided in the document*/\n\t\t\n\t\twhile(frequencyHeap.size() > 0){\n\t\t\tSystem.out.println(frequencyHeap.min().getValue()); /* get the word from the ascending order of the frequency*/\n\t\t\tSystem.out.println(frequencyHeap.min().getKey()); /* get the frequency of the word*/\n\t\t\t\n\t\t\tfrequencyHeap.removeMin();\n\t\t}\n\n\t\t\n\t}", "public int getEntryCount() {\n return wordFrequency.size();\n }", "public static String getMostFrequentToy() {\n\t\tString name = \"\";\n\t\tint max = 0;\n\t\tfor (int i = 0; i < toyList.size(); i++) {\n\t\t\tif (max < toyList.get(i).getCount()) {\n\t\t\t\tmax = toyList.get(i).getCount();\n\t\t\t\tname = toyList.get(i).getName();\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public HighArray(int max) // constructor\n {\n a = new long[max]; // create the array\n nElems = 0; // no items yet\n }", "public int maximum() {\n \n if (xft.size() == 0) {\n return -1;\n }\n \n Integer maxRepr = xft.maximum();\n \n assert(maxRepr != null);\n \n int index = maxRepr.intValue()/binSz;\n \n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Entry<Integer, Integer> lastItem = map.lastEntry();\n \n assert(lastItem != null);\n \n return lastItem.getKey();\n }", "public static void main(String[] args) {\n\r\n\t\tint [][] arr = new int[][] {\r\n\t\t\t{8,9,10,12},\r\n\t\t\t{2,5,9,12},\r\n\t\t\t{3,6,10,11},\r\n\t\t\t{1,4,7,8}\r\n\t\t};\t\t\r\n\t\t\r\n\t\tPriorityQueue<HeapNode> heap = new PriorityQueue<>();\r\n\t\tfor(int i=0;i<arr.length;i++)\r\n\t\t{\r\n\t\t\theap.offer(new HeapNode(arr[i][0], i, 0));\r\n\t\t}\r\n\t\tint count=0;\r\n\t\twhile(count<16)\r\n\t\t{\r\n\t\t\tHeapNode min = heap.poll();\r\n\t\t\tSystem.out.println(min.value);\r\n\t\t\tcount++;\r\n\t\t\tint value=0;\r\n\t\t\tint nextIndex=min.index+1;\r\n\t\t\tif(nextIndex < arr[min.k].length)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tvalue=arr[min.k][nextIndex];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tvalue=Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t\theap.offer(new HeapNode(value, min.k, nextIndex));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\ttry {\r\n\t\t\tint T = Integer.parseInt(br.readLine());\r\n\t\t\tfor (int t = 0; t < T; t++) {\r\n\t\t\t\tint N = Integer.parseInt(br.readLine());\r\n\t\t\t\tint[] A = new int[N]; // 수열 저장\r\n\t\t\t\tint cnt = 0;\r\n\r\n\t\t\t\tfor (int i = 0; i < N / 10 + 1; i++) {\r\n\t\t\t\t\tString[] arr = br.readLine().split(\" \");\r\n\t\t\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\t\t\tA[cnt] = Integer.parseInt(arr[j]);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\t\t\tPriorityQueue<Integer> maxheap = new PriorityQueue<Integer>(Collections.reverseOrder());\r\n\t\t\t\tPriorityQueue<Integer> minheap = new PriorityQueue<Integer>();\r\n\r\n\t\t\t\tfor (int i = 0; i < A.length; i++) {\r\n\t\t\t\t\tif (maxheap.size() == minheap.size())\r\n\t\t\t\t\t\tmaxheap.offer(A[i]);\r\n\t\t\t\t\telse if (maxheap.size() > minheap.size())\r\n\t\t\t\t\t\tminheap.offer(A[i]);\r\n\r\n\t\t\t\t\tif (!maxheap.isEmpty() && !minheap.isEmpty() && minheap.peek() < maxheap.peek()) {\r\n\t\t\t\t\t\tint max = maxheap.poll();\r\n\t\t\t\t\t\tint min = minheap.poll();\r\n\r\n\t\t\t\t\t\tminheap.offer(max);\r\n\t\t\t\t\t\tmaxheap.offer(min);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t\t\tresult.add(maxheap.peek());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(result.size());\r\n\t\t\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\t\t\tSystem.out.print(result.get(i) + \" \");\r\n\t\t\t\t\tif (i % 10 == 9)\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void BuildMaxHeaptest1() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t int i;\n\t\t //= (int)Math.floor(jarray.length);\n\t\t \n\t\t\n\t\t PQHeap.BuildMaxHeap(jarray);\n\t\t\n\t\t for( i = (int)Math.floor(jarray.length); i >0; i-- )\n\t\t \tPQHeap.MaxHeapify(jarray, i);\n\t\n\t\tassertNotEquals(-1, i);\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public List<Map<String, Double>> getTopWords(Company company) {\n List<Map<String, Double>> topWords = new ArrayList<Map<String, Double>>();\n Map<String, Double> termToTfIdf = new TreeMap<String, Double>();\n Map<String, Integer> tokenMap = tfIdf.get(company.getStockSymbol());\n for (String token : tokenMap.keySet()) {\n double tfIdf = 0;\n double termFrequency = tokenMap.get(token);\n double documentFrequency = calculateDocumentFrequency(token);\n tfIdf = termFrequency / documentFrequency;\n termToTfIdf.put(token, tfIdf);\n }\n List<Entry<String, Double>> entrySet = new ArrayList<Entry<String, Double>>();\n entrySet.addAll(termToTfIdf.entrySet());\n Collections.sort(entrySet, new Comparator() {\n\n @Override\n public int compare(Object o1, Object o2) {\n return ((Entry<String, Double>) o1).getValue().compareTo(\n ((Entry<String, Double>) o2).getValue());\n }\n\n });\n if (entrySet.size() < NO_OF_TOP_WORDS) {\n for (int i = 0; i < entrySet.size(); i++) {\n Map<String, Double> tempMap = new HashMap<String, Double>();\n tempMap.put(entrySet.get(i).getKey(), entrySet.get(i).getValue());\n topWords.add(tempMap);\n }\n } else {\n for (int i = entrySet.size() - NO_OF_TOP_WORDS; i < entrySet.size(); i++) {\n Map<String, Double> tempMap = new HashMap<String, Double>();\n tempMap.put(entrySet.get(i).getKey(), entrySet.get(i).getValue());\n topWords.add(tempMap);\n }\n }\n return topWords;\n }", "private static List<String> computeTwoGramFrequencies(List<String> words, int top_no, List<String> stopwordslist) {\n\t\t\t\n\t\tMap<String, Integer> tempstopmap= new HashMap<String, Integer>();\n\t\tfor (int i=0; i<stopwordslist.size(); i++){\n\t\t\tString tempword = stopwordslist.get(i);\n\t\t\ttempstopmap.put(tempword, 1);\n\t\t}//construct temp stopwordmap\n\t\t\n\t\tint i=0;\n\t\tMap<String, Integer> tempmap= new HashMap<String, Integer>();\n\t\twhile(i<words.size()){\n\t\t\tString temptwogram=\"\";\n\t\t\tString tempword1=\" \";\n\t\t\tString tempword2=\" \";\n\t\t\twhile(true){\n\t\t\t\tif(i>=words.size()-1)\n\t\t\t\t\tbreak;\n\t\t\t\ttempword1=words.get(i);\n\t\t\t\tif(!tempstopmap.containsKey(tempword1))\n\t\t\t\t\tbreak;\n\t\t\t\ti++;\n\t\t\t\ttempword1=\" \";\n\t\t\t}\n\t\t\ti++;\n\t\t\tSystem.out.println(\"b\"+i);\n\t\t\twhile(true){\n\t\t\t\tif(i>=words.size())\n\t\t\t\t\tbreak;\n\t\t\t\ttempword2=words.get(i);\n\t\t\t\tif(!tempstopmap.containsKey(tempword2))\n\t\t\t\t\tbreak;\n\t\t\t\ti++;\n\t\t\t\ttempword2=\" \";\n\t\t\t}//jump for the case that word + stopword +word\n\t\t\t\n\t\t\ttemptwogram = tempword1+\" \"+tempword2; //2-gram\n\t\t\tif (tempmap.containsKey(temptwogram))\n\t\t\t\ttempmap.put(temptwogram, tempmap.get(temptwogram)+1);\n\t\t\telse\n\t\t\t\ttempmap.put(temptwogram, 1);\n\t\t}//construct hashmap to count 2-gram words (key(word), value(frequency))\n\t\tList<Map.Entry<String, Integer>> templist = new ArrayList<Map.Entry<String, Integer>>();\n\t\tfor(Map.Entry<String, Integer> entry: tempmap.entrySet()){\n\t\t\t\n\t\t\t\n\t\t\ttemplist.add(entry);\n\t\t}//construct templist with entry containing word/frequency in map\n\t\t\n\t\tCollections.sort(templist, Collections.reverseOrder(new comparatorByFrequencyReverse()));//sort templist in decresing order\n\n\t\t /*change the templist into sortedlist*/\n\t\tList<String> sortedlist = new ArrayList<String> ();\n\t\tif(templist.size()>=top_no){\n\t\t\tfor (int j=0; j<top_no;j++){\n\t\t\t\tString word = templist.get(j).getKey();\n\t\t\t\tsortedlist.add(word);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tfor (int j=0; j<templist.size();j++){\n\t\t\t\tString word = templist.get(j).getKey();\n\t\t\t\tsortedlist.add(word);\n\t\t\t}\n\t\t}\n\t\treturn sortedlist;\n\t}", "public int heapSize();", "private static void findKLargestElementBad(List<Integer> a, int k) {\n PriorityQueue<Integer> maxHeap =\n new PriorityQueue<Integer>(a.size(), new MaxHeapComperator());\n for (Integer n : a) {\n maxHeap.add(n); // O(n)\n }\n int i = k + 1;\n while (i > 0) { // O(klogn)\n System.out.print(maxHeap.remove() + \" \");\n i--;\n }\n }", "private int findIndexOfMax(){\n\t\tint value=0;\n\t\tint indexlocation=0;\n\t\tfor(int i=0; i<myFreqs.size();i++){\n\t\t\tif(myFreqs.get(i)>value){\n\t\t\t\tvalue = myFreqs.get(i);\n\t\t\t\tindexlocation =i;\n\t\t\t}\n\t\t}\n\t\treturn indexlocation;\n\t}", "public static void main(String[] args) {\n\t\tint arr[] = { 2, 12, 2, 11, 12, 2, 1, 2, 2, 11, 12, 2, 6 };\n\n\t\tSystem.out.println(maxFrequencyNumber(arr));\n\t}", "public static List<String> topKFrequent_hashmap_opt(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n ans.addAll(freqMap.keySet());\n\n Collections.sort(ans, (o1, o2) -> {\n if (freqMap.get(o1) == freqMap.get(o2)) {\n return o1.compareTo(o2);\n }\n\n return freqMap.get(o2) - freqMap.get(o1);\n });\n\n return ans.subList(0, k);\n }", "public int [] hotN(ArrayList<LottoDay> list)\n\t{ \n\t\tint high=0;//checks for the highest number\n\t\tint[] numF = new int [48];// stores the frequency of each number\n\t\tint[] highest= new int [5]; //stores the 5 highest numbers\n\t\tint counter =0;\n\t\t//hot numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\thighest = one.getWNum(); //get the first 5 numbers only of that object store in the array\n\t\t\t//gets the frequency for the numbers 1-47\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<highest.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//check the array of for the index\n\t\t\t\t\tif(highest[k]==j)\n\t\t\t\t\t{ \n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add to the count\n\t\t\t\t\t\tcounter=0; //set counter back to zero \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for the highest number and store in highest array \n\t\tfor(int j=0; j<highest.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//if the occurrences beats high \n\t\t\t\tif(numF[i]>high)\n\t\t\t\t{\n\t\t\t\t\thigh = numF[i]; //new highest occurrence is stored\n\t\t\t\t\thighest[j]=i; //store the index in the array\n\t\t\t\t\tindex=i; //index equals i\n\t\t\t\t}\n\n\t\t\t}\n\t\t\thigh=0; //high goes back zero once through the entire list\n\t\t\tnumF[index]=0; //highest numbers occurrences is now set to zero\n\n\t\t}\n\n\t\treturn highest;//return the highest numbers in the list\n\t}", "public Item popMax() {\n // If the heap is below 1/4 capacity, resize it down. Do not reduce the\n // capacity smaller than 32 items.\n if (N < heap.length/4 && heap.length > 32) {\n Item[] temp = (Item[]) new Comparable[N/2];\n for (int i=0; i<N; i++)\n temp[i] = heap[i];\n heap = temp;\n }\n\n Item r = heap[0];\n\n swap(1, N);\n heap[N-1] = null;\n N--;\n sink(1);\n\n return r;\n }", "public Item max() {\n return heap[0];\n }", "int getMaxCount();", "int getMaxCount();", "private void getTweetsMostCommonHashTag() {\r\n final List<Entry<String, Integer>> list = \r\n getCommonList(countHashtags, countHashtags.size());\r\n list.stream()\r\n .filter(entry -> !searched.contains(entry.getKey().toLowerCase()))\r\n .limit(1)\r\n .forEach(entry -> getTweets(entry.getKey(), geocode, getAuth()));\r\n }", "public Heap12()\n {\n arrayList = new ArrayList<E>(5);\n size = 0;\n isMax = false;\n cap = 5;\n }", "@Override\n public T findMax() throws EmptyCollectionException {\n if (count == 0) {\n throw new EmptyCollectionException(\"Heap\");\n }\n return heap[0];\n\n }", "double getMaxTfCapacity();", "public void popFrequency(int height);", "public static List<String> topKFrequent_pq_opt(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1).equals(countMap.get(word2))) {\n return word1.compareTo(word2);\n }\n return countMap.get(word2) - countMap.get(word1);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n }\n\n List<String> ans = new ArrayList<>();\n for (int i = 0; i < k; i++) {\n ans.add(pq.poll());\n }\n\n return ans;\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n // COMPLETE THIS METHOD\n ArrayList<Occurrence> Res1 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<Occurrence> res2 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<String> arrayList = new ArrayList<String>();\n\n while (arrayList.size() < 6) {\n Occurrence aa = null;\n Occurrence b = null;\n {\n if (Res1 != null) {\n for (Occurrence occr : Res1) {\n if (!arrayList.contains(occr.document)) {\n aa = occr;\n }\n }\n } if(Res1 == null){\n aa = new Occurrence(null, 0);\n }\n else aa = new Occurrence(null,0);\n }\n {\n if(res2 != null){\n for(Occurrence occr : res2){\n if(!arrayList.contains(occr.document)){\n b = occr;\n }\n }\n }\n if(res2 == null){\n b = new Occurrence(null,0);\n }\n else b = new Occurrence(null,0);\n }\n Occurrence[] a = {aa,b};//{search(arrayList, Res1), search(arrayList, res2)};\n Occurrence m = null;\n if (a[0].frequency < a[1].frequency) {\n m = a[1];\n } else m = a[0];\n if (m.document != null) {\n arrayList.add(m.document);\n } else break;\n }\n return arrayList;\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n\t\tkw1 = kw1.toLowerCase();\n kw2 = kw2.toLowerCase();\n ArrayList <String> outArr = new ArrayList <String> ();\n ArrayList <Occurrence> kw1Arr = null;\n ArrayList <Occurrence> kw2Arr = null;\n for(String e: keywordsIndex.keySet()) {\n if(e.equals(kw1) == true) {\n kw1Arr = keywordsIndex.get(e);}\n if(e.equals(kw2) == true) {\n kw2Arr = keywordsIndex.get(e);}}\n int kw1Point = 0;\n int kw2Point = 0;\n for(int inc = 0; inc < 5; inc++) {\n int kw1Value = 0;\n Occurrence kw1Occ = null;\n int kw2Value = 0;\n Occurrence kw2Occ = null;\n if(kw1Arr != null && kw1Point < kw1Arr.size()) {\n kw1Occ = kw1Arr.get(kw1Point);\n kw1Value = kw1Occ.frequency;}\n if(kw2Arr != null && kw2Point < kw2Arr.size()) {\n kw2Occ = kw2Arr.get(kw2Point);\n kw2Value = kw2Occ.frequency;}\n if(kw1Value == 0 && kw2Value == 0) {\n \t//will only occur if the if-statements for 212 and 215 are false\n \t//which means that the array doesn't exist or the pointer has iterated through the whole array\n break;}\n if(kw1Value >= kw2Value) {\n outArr.add(kw1Occ.document);\n kw1Point = kw1Point + 1;}\n else {outArr.add(kw2Occ.document);\n kw2Point = kw2Point + 1;}}\n if(outArr.size() == 0) {//no found matches\n return null;}\n else {return outArr;}//found matches\n\t}", "List<T> findMostPopularTags(Integer firstResult, Integer maxResult);", "public static void main(String argv[]) throws java.io.IOException {\n\n int i = getNext();\n int charCount = 0; // holds a word's character count\n String largestWord = null;\n\n while (i != -1) {\t// Repeat until end-of-file is reached.\n\n if ( !whiteSpace((char)i)) {\n StringBuilder stringBuilder = new StringBuilder(100);\n\n //\n // Word state\n //\n words++;\t\t// We've seen another word.\n do {\t\t\t// Skip to the next white space character.\n stringBuilder.append((char)i); // build the word, so we can get the length\n i = getNext();\n } while (i != -1 && !whiteSpace((char)i));\n\n // We check if the word is bigger (but not equal) than what we previously found.\n // (if we have multiple of the same length, we just want the first).\n if (stringBuilder.length() > charCount) {\n charCount = stringBuilder.length();\n largestWord = stringBuilder.toString();\n }\n\n\n } else {\n //\n // whiteSpace state\n //\n do {\n if ((char)i == '\\n') {\n lines++;\t\t// We've seen another line;\n }\n i = getNext();\n } while (whiteSpace((char)i));\n }\n }\n System.out.println(\" \" + largestWord + \" \" + lines + \" \" + words + \" \" + characters);\n }", "public MaxHeap(Item[] items) {\n N = items.length;\n heap = (Item[]) new Comparable[2*N];\n for (int i=0; i<N; i++) {\n heap[i] = items[i];\n }\n heapify();\n }", "@Test\n\tpublic void BuildMaxHeaptest() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t int i;\n\t\t //= (int)Math.floor(jarray.length);\n\t\t \n\t\n\t\t for( i = (int)Math.floor(jarray.length); i >0; i-- )\n\t\t \tPQHeap.MaxHeapify(jarray, i);\n\t\n\t\tassertNotEquals(-1, i);\n\t}", "public void sortAndPrintValues(int max){\n\n\t //Transfer as List and sort it\n\t ArrayList<Map.Entry<String, Integer>> l = new ArrayList<Entry<String, Integer>>(D.entrySet());\n\t Collections.sort(l, new Comparator<Map.Entry<?, Integer>>(){\n\n\t public int compare(Map.Entry<?, Integer> o1, Map.Entry<?, Integer> o2) {\n\t return o1.getValue().compareTo(o2.getValue());\n\t }});\n\n \n\t Collections.reverse(l);\n\t System.out.println(l.subList(0, max));\n\t }", "public abstract String[][] getTopWords();", "public static void findTheLargestWord() {\n\t\ttry (Scanner scan = new Scanner(new File(\"in1.txt\"))) {\r\n\r\n\t\t\tString largestWord = \"\";\r\n\t\t\tString current = \"\";\r\n\r\n\t\t\twhile (scan.hasNext()) {\r\n\t\t\t\tcurrent = scan.next();\r\n\t\t\t\tif (current.length() > largestWord.length()) {\r\n\t\t\t\t\tlargestWord = current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(largestWord);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"I can't find the file, where it is????\");\r\n\t\t}\r\n\r\n\t}", "public T getMaxEntryCountSet() {\n IDataSet iDataSet;\n if (this.mDataSets == null || this.mDataSets.isEmpty()) {\n iDataSet = null;\n return (T)iDataSet;\n } else {\n IDataSet iDataSet2 = (IDataSet)this.mDataSets.get(0);\n Iterator<T> iterator = this.mDataSets.iterator();\n do {\n iDataSet = iDataSet2;\n if (!iterator.hasNext()) return (T)iDataSet;\n iDataSet = (IDataSet)iterator.next();\n if (iDataSet.getEntryCount() <= iDataSet2.getEntryCount()) continue;\n iDataSet2 = iDataSet;\n } while (true);\n }\n }", "void collectLeastFrequent(FrequencyTable fq);", "public int getMaxFrequency() {\n\t\t\n\t\tif(firstNode!=null){\n\t\t\tNode currentNode = firstNode;\n\t\t\tNode maxNode = firstNode;\n\t\t\twhile(currentNode!=null){\n\t\t\t\tif(currentNode.getFrequencyOfNode()>=maxNode.getFrequencyOfNode()){\n\t\t\t\t\tmaxNode = currentNode;\n\t\t\t\t}\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\treturn maxNode.getFrequencyOfNode();\n\t\t}\n\t\t\t\n\t\treturn 0;\n\t}", "public static void buildMaxHeap(Integer[] A) {\n for (int r = A.length / 2 - 1; r >= 0; r--) {\n maxHeapify(A, r);\n }\n\n }", "public List<String> getTopSearchKey(int number) {\n\t\tString hql = \"select e.keyWords from SearchLog e group by e.keyWords order by count(e.id) desc\";\n\n\t\tSession session = getSession();\n\t\tList<String> list = new ArrayList<>();\n\t\ttry {\n\t\t\tQuery query = session.createQuery(hql);\n\t\t\tquery.setMaxResults(number);\n\t\t\tlist = query.list();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public static int[] buildMaxHeap(int[] arr){\n int size = arr.length;\n for(int i=size/2; i>0; i--){\n maxheapify(arr, size, i);\n }\n return arr;\n }", "private int indexOfLargest(ArrayList<QuakeEntry> data) {\n int index = 0;\n double magnitude = 0;\n for (QuakeEntry qe : data) {\n double currMag = qe.getMagnitude();\n if (currMag > magnitude) {\n index = data.indexOf(qe);\n magnitude = currMag;\n }\n }\n System.out.println(magnitude);\n return index;\n }", "public int pollMax() {\n if (isEmpty()) throw new IllegalStateException(\"heap is empty\");\n int maxValue = a[0];\n a[0] = a[size - 1];\n size--;\n maxHeapify(0);\n return maxValue;\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public abstract Key getLargest();", "@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }", "public String most(String[] sentences) {\n\t\tString words = \"\";\n\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\twords = words + \" \" + sentences[i];\n\t\t}\n\t\twords = words.toLowerCase();\n\t\tString[] new_words = words.split(\" \"); \n\t\t\n\t\tMap<String, Integer> counting = new TreeMap<String, Integer>();\n\t\tfor(int i = 0; i < new_words.length; i++){\n\t\t\tif(counting.containsKey(new_words[i])){\n\t\t\t\tcounting.put(new_words[i], counting.get(new_words[i]) + 1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcounting.put(new_words[i], 1);\n\t\t\t}\n\t\t}\n\t\tint max = 0; \n\t\tString max_word = \"\";\n\t\tfor(String s: counting.keySet()){\n\t\t\tif(counting.get(s) > max){\n\t\t\t\tmax = counting.get(s);\n\t\t\t\tmax_word = s;\n\t\t\t}\n\t\t}\n\t\treturn max_word;\n }", "public BinHeap(int maxSize)\n {\n // allocate heap to hold maxSize elements\n arr = (T[]) new Comparable[maxSize];\n // set size of heap to 0\n size = 0;\n }", "static int designerPdfViewer(int[] h, String word) {\r\n\t\tif (word.length() > 10) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tfor (int i = 0; i < h.length; i++) {\r\n\t\t\tif (h[i] > 7 || h[i] < 1)\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\t\tchar[] ourChar = word.toLowerCase().toCharArray();\r\n\t\tint maxHeight = 0;\r\n\t\tfor (int i = 0; i < ourChar.length; i++) {\r\n\t\t\tfor (int x = 0; x < alphabet.length; x++) {\r\n\t\t\t\tif (ourChar[i] == alphabet[x]) {\r\n\t\t\t\t\tif (maxHeight < h[x])\r\n\t\t\t\t\t\tmaxHeight = h[x];\r\n\t\t\t\t\t//System.out.println(h[i] + \" max:\" + maxHeight);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn maxHeight * word.length();\r\n\t}", "public Set<String> getNBestUnderDistance(String word, int n, int distMax) {\n\t\tSet<String> oldWords = new HashSet<String>();\n\t\tSet<String> newWords = new HashSet<String>();\n\t\tPriorityQueue<String> candidates = new PriorityQueue<String>(11, new getNBestUnderDistanceComparator());\n\t\tSet<String> chosenCandidates = new HashSet<String>();\n\t\toldWords.add(word);\n\t\tfor (int i = 0; i < distMax; i++) {\n\t\t\tfor (String oldWord : oldWords) {\n\t\t\t\tnewWords.addAll(insertionHelper(oldWord));\n\t\t\t\tnewWords.addAll(deletionHelper(oldWord));\n\t\t\t\tnewWords.addAll(replacementHelper(oldWord));\n\t\t\t\tif (oldWord.length() > 1) {\n\t\t\t\t\tnewWords.addAll(transpositionHelper(oldWord));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String newWord : newWords) {\n\t\t\t\tif (dict.containsKey(newWord) && !candidates.contains(newWord)) {\n\t\t\t\t\tcandidates.add(newWord);\n\t\t\t\t}\n\t\t\t}\n\t\t\toldWords = newWords;\n\t\t\tnewWords = new HashSet<String>();\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (candidates.size() > 0 && candidates.peek() != null) {\n\t\t\t\tchosenCandidates.add(candidates.poll());\n\t\t\t}\n\t\t}\n\t\treturn chosenCandidates;\n\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "public static void rankFiles(Hashtable<?, Integer> fname, int numberOfOccurrences) \r\n\t{\n\t\tArrayList<Map.Entry<?, Integer>> arrayList = new ArrayList(fname.entrySet());\r\n\r\n\t\tCollections.sort(arrayList, new Comparator<Map.Entry<?, Integer>>() \r\n\t\t{\r\n\t\t\tpublic int compare(Map.Entry<?, Integer> obj1, Map.Entry<?, Integer> obj2) \r\n\t\t\t{\r\n\t\t\t\treturn obj1.getValue().compareTo(obj2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tCollections.reverse(arrayList);\r\n\r\n\t\tif (numberOfOccurrences > 0) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\n------Top 10 search results-----\\n\");\r\n\r\n\t\t\tint my_number = 10;\r\n\t\t\tint j = 1;\r\n\t\t\twhile (arrayList.size() > j && my_number > 0) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"(\" + j + \") \" + arrayList.get(j) + \" times \");\r\n\t\t\t\tj++;\r\n\t\t\t\tmy_number--;\r\n\t\t\t}\r\n\t\t} \r\n\t}" ]
[ "0.7593385", "0.6547367", "0.640802", "0.6313083", "0.62966114", "0.61863834", "0.5815642", "0.5784697", "0.576604", "0.57011175", "0.5577706", "0.55478364", "0.5498042", "0.5471779", "0.54501563", "0.543593", "0.54352754", "0.543121", "0.54225326", "0.542044", "0.54165894", "0.54062015", "0.5388692", "0.5371517", "0.5355817", "0.53405786", "0.5339797", "0.53076315", "0.5285948", "0.5277583", "0.5261243", "0.52115524", "0.52093774", "0.51973045", "0.5189784", "0.51549137", "0.5146379", "0.512929", "0.5117761", "0.5112109", "0.509938", "0.50963336", "0.50945914", "0.50936526", "0.50881237", "0.50862217", "0.50797343", "0.50689214", "0.50683266", "0.5066414", "0.50604683", "0.50559384", "0.50523573", "0.5034781", "0.50247484", "0.49848482", "0.49770507", "0.49695358", "0.49661258", "0.4961479", "0.49571124", "0.49517986", "0.4945694", "0.4941955", "0.4940156", "0.4934883", "0.4924335", "0.4924335", "0.49195838", "0.49174958", "0.49037617", "0.48967707", "0.48934206", "0.48856428", "0.48839188", "0.48827845", "0.48813382", "0.48790875", "0.48693076", "0.48660976", "0.48620883", "0.4856934", "0.48485035", "0.4841627", "0.48134866", "0.4812976", "0.4807362", "0.48055044", "0.47991177", "0.47975782", "0.4794258", "0.47743097", "0.4759281", "0.47574696", "0.47528353", "0.47520423", "0.47517583", "0.47483665", "0.47458762", "0.47301108" ]
0.85449564
0
/ Purpose: Obtain the 5 most frequent words found that are at least n charaters long Parameters: MaxFrequencyHeap h the heap containing all the word entry data int n minimum word length to consider Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs with the maximum frequency values of words that are at least n characters long)
public static Entry[] atLeastLength(MaxFrequencyHeap h, int n) { Entry[] top5 = new Entry[CAPACITY]; int counter = 0; // While our heap is not empty and we // havent found the top 5 words of the minimum length n // remove the max word from our heap while(h.size()>0 && counter!=5){ Entry current_entry = h.removeMax(); String current_word = current_entry.getWord(); // If the current max word has a lenght at least the size of n, // add that entry to our top5 array if(current_word.length()>=n){ top5[counter] = current_entry; counter++; } } return top5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Entry[] overallMostFrequent(MaxFrequencyHeap h) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint top5_counter = 0; // our temporary top5 counter\r\n\r\n\t\t// Iterate through our maxheap until we find the top 5 words\r\n\t\twhile(top5_counter<5){\r\n\t\t\t// If our heap is empty simply return the top5 array\r\n\t\t\tif(h.isEmpty()){\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}else{\r\n\t\t\t\t// Add the current max word from our heap using remove max\r\n\t\t\t\ttop5[top5_counter] = h.removeMax();\r\n\t\t\t\ttop5_counter++; // Increment our top 5 counter\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn top5;\r\n\t}", "public static Entry[] startsWith(MaxFrequencyHeap h, char letter) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\t// While our heap is not empty and we\r\n\t\t// havent found the top 5 words of the minimum length n\r\n\t\t// remove the max word from our heap\r\n\t\twhile(h.size()>0 && counter!=5){\r\n\r\n\t\t\tEntry current_entry = h.removeMax();\r\n\r\n\t\t\tString current_word = current_entry.getWord();\r\n\r\n\t\t\t// If the current entry word starts with the letter we are looking for\r\n\t\t\t// add the entry to our top5 array\r\n\t\t\tif(current_word.charAt(0)==letter){\r\n\r\n\t\t\t\ttop5[counter] = current_entry;\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn top5;\r\n\t}", "private static void printMostFrequentHashTags(){\n\t\t\n\t\tMap<String, Integer> hashtags = getHashTags();\n\t\tString max_count_hashtag[] = new String[3];\t//stores top 3 most frequent hashtags\n\t\tint max_counts[] = new int[3];\t//stores their count\n\t\t\n\t\tfor(String hashtag : hashtags.keySet()){\n\t\t\tint count = hashtags.get(hashtag);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_hashtag[index] = hashtag;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most freqent hashtags */\n\t\tSystem.out.println(\"top 3 most frequently used hashtags : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Hashtag : #\" + max_count_hashtag[i] + \" is used \"+ max_counts[i] + \" times.\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private static ArrayList<sri.Pair<String,Integer>> mostFrequentWords(String path) throws IOException {\r\n PriorityQueue<Pair<String, Integer>> listOfWords = new PriorityQueue<>(10,(o1, o2) -> {\r\n return ((int) o2.getSecond() - (int) o1.getSecond());\r\n });\r\n\r\n HashMap<String,Integer> mapOfWords = new HashMap<>();\r\n\r\n BufferedReader br;\r\n String word;\r\n ArrayList outputList = new ArrayList();\r\n\r\n File file = new File(path);\r\n\r\n br = new BufferedReader(new FileReader(file));\r\n\r\n while ( (word = br.readLine()) != null) {\r\n if (mapOfWords.containsKey(word)) {\r\n mapOfWords.put(word, mapOfWords.get(word) + 1);\r\n } else {\r\n mapOfWords.put(word, 1);\r\n }\r\n }\r\n\r\n for (Map.Entry<String,Integer> entry: mapOfWords.entrySet()){\r\n sri.Pair<String,Integer> tuple = new sri.Pair<String,Integer>(entry.getKey(),entry.getValue());\r\n listOfWords.offer(tuple);\r\n }\r\n\r\n for (int i = 0; i < 5; i++){\r\n outputList.add(new sri.Pair<String,Integer>(listOfWords.peek().getFirst(),listOfWords.poll().getSecond()));\r\n }\r\n\r\n return outputList;\r\n\r\n\r\n }", "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_string[index] = str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most frequently used words */\n\t\tSystem.out.println(\"top 3 most frequently used words : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Word : \\\"\" + max_count_string[i] + \"\\\" is used \"+ max_counts[i] +\" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t}", "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n //Creating the array that will hold all the hotwords in order of number of appearances \r\n String[] topWord = new String[words.size()];\r\n //This is the subset of the array above that will return the amount specified by the count argument\r\n String[] output = new String[count];\r\n //Fills the array with blank strings\r\n Arrays.fill(topWord, \"\");\r\n //Iterator for moving through topWord for assignment\r\n int iterator = 0;\r\n //Loop through every hotword in words and puts those words in topWord\r\n for(String key: words.keySet()){\r\n topWord[iterator] = key;\r\n iterator++;\r\n }\r\n //Sorts the words in topword\r\n for(int i = 0; i < words.size(); i++){\r\n for(int j = words.size()-1; j > 0; j-- ){\r\n \r\n if(count(topWord[j]) > count(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n \r\n }\r\n }\r\n //Does a secondary check to be certain all words are in proper appearance number order\r\n for(int i = words.size()-1; i >0; i--){\r\n if(count(topWord[i]) > count(topWord[i-1])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[i-1];\r\n topWord[i-1] = temp;\r\n }\r\n }\r\n //Orders the words with the same number of appearances by order of appearance in the document\r\n for (int i = 0; i < words.size(); i++){\r\n for(int j = i+1; j < words.size(); j++){\r\n if (count(topWord[i]) == count(topWord[j])){\r\n if (consec.indexOf(topWord[j]) < consec.indexOf(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n }\r\n }\r\n }\r\n //Gets the subset requested for return\r\n for (int i = 0; i < count; i++){\r\n output[i] = topWord[i];\r\n }\r\n return output;\r\n\t}", "public Object[][] get20MostFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public String[] topKFrequent(String[] combo, int k) {\n\t if (combo.length == 0) {\n\t return new String[0];\n\t }\n\t // get all the distinct strings at keys and their frequencies as values.\n\t Map<String, Integer> freqMap = getFreqMap(combo);\n\t // NOTICE: using map.Entry as the element type directly so that all the \n\t // operations are mostly efficient.\n//\t Comparator<Map.Entry<String, Integer>> comp = new Comparator<Map.Entry<String, Integer>>() {\n//\t @Override\n//\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n//\t return e1.getValue().compareTo(e2.getValue());\n//\t }\n//\t };\n\t PriorityQueue<Map.Entry<String, Integer>> minHeap = \n\t new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n\t\t @Override\n\t\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n\t\t return e1.getValue().compareTo(e2.getValue());\n\t\t }\n\t\t });\n\t for (Map.Entry<String, Integer> entry : freqMap.entrySet()) {\n\t \tif (minHeap.size() < k) {\n\t \t\tminHeap.offer(entry);\n\t \t} else if (entry.getValue() > minHeap.peek().getValue()){\n\t \t\tminHeap.poll();\n\t \t\tminHeap.offer(entry);\n\t \t}\n\t }\n\t // since the returned array requires the strings sorted by their frequencies,\n\t // use a separate helper method to do this operation.\n\t return freqArray(minHeap);\n\t}", "public int maxNumber(){\n int highest = 0;\n ArrayList<String> currentFileList = null;\n for (String word : hashWords.keySet()) {\n currentFileList= hashWords.get(word);\n int currentNum = currentFileList.size();\n if (currentNum > highest) {\n highest = currentNum;\n }\n // System.out.println(\"currentFileList \" + currentFileList +\"highest num = \"+ highest );\n }\n \n return highest;\n /*for (ArrayList s : hashWords.values()){\n if (s.size() > maxSize) {\n maxSize = s.size();\n }\n }\n return maxSize;*/\n }", "private Set<String> get5000MostPopularWords(Predicate<String> stringFilter) throws FileNotFoundException {\n InputStream wordIS = this.getClass().getResourceAsStream(\"5000-MostPopularEnglishWords.txt\"); // not the best file since it has dups and words that are one and two characters\n BufferedReader reader = new BufferedReader(new InputStreamReader(wordIS));\n\n return reader.lines()\n .filter(stringFilter)\n .collect(Collectors.toSet());\n }", "public Pair[] top10Words(){\n Pair[] top10Words = new Pair[10];\n int top10LeastOccurrence = 9;\n\n for (String word : matchedSongs.keySet()){\n int currentSize = matchedSongs.get(word).size();\n //Array is sorted from greatest to least, just need to compare last value to current value.\n //Sorting after insertion will ensure it is in order for next time we perform a compare.\n if (top10Words[top10LeastOccurrence] == null || (int) top10Words[top10LeastOccurrence].getValue() < currentSize){\n top10Words[top10LeastOccurrence] = new Pair(word, currentSize);\n Arrays.sort(top10Words, new SortByHighestPair());\n }\n }\n return top10Words;\n }", "public String[] topKFrequent(String[] combo, int k) {\n if (combo == null || combo.length == 0 || k <= 0) {\n return new String[0];\n }\n Map<String, Integer> map = getMap(combo);\n PriorityQueue<Map.Entry<String, Integer>> minHeap = new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n @Override\n public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n if (e1.getValue().equals(e2.getValue())) {\n return 0;\n }\n return e1.getValue() < e2.getValue() ? -1 : 1;\n }\n });\n for (Map.Entry<String, Integer> entry : map.entrySet()) {\n if (minHeap.size() < k) {\n minHeap.offer(entry);\n } else if (entry.getValue() > minHeap.peek().getValue()) {\n minHeap.poll();\n minHeap.offer(entry);\n }\n }\n String[] res = new String[minHeap.size()];\n for (int i = minHeap.size() - 1; i >= 0; i--) {\n res[i] = minHeap.poll().getKey();\n }\n return res;\n }", "public Object[][] get20MostInterestingFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tSet<String> stopwords = getStopWords();\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\t if(stopwords.contains(token) || token.length()==0) continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "public Object[][] get20LeastFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn -(map.get(s1) - map.get(s2));\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) < map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "BigInteger getMax_freq();", "public void buildMaxHeap(){\n\t\tfor(int i = (n-2)/2 ; i >= 0; i--){\n\t\t\tmaxHeapfy(i);\n\t\t}\n\t}", "public List<String> topKFrequent(String[] words, int k) {\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n for (String s : words) {\n map.put(s, map.getOrDefault(s, 0) + 1);\n }\n \n ArrayList<Integer> allFrequencies = new ArrayList<Integer>();\n\n \n map.forEach((key,v) -> allFrequencies.add(v));\n IO.printArrayList(allFrequencies);\n // Add all the frequencies into allFrequencies arraylist\n int totalAmountOfWords = map.keySet().size();\n \n // Find the k th largest number in the allFrequencies arraylist\n //System.out.println(\"total: \"+totalAmountOfWords);\n int newK = totalAmountOfWords - k;\n //System.out.println(\"newk: \"+ newK);\n int newkth = findKth(allFrequencies, newK);\n //System.out.println(\"new kth element:\"+newkth);\n int newKthElement = newK > 0 ? newkth : 0 ;\n \n TreeMap<Integer, TreeSet<String>> reverseSortedMap = new TreeMap<Integer, TreeSet<String>>(Collections.reverseOrder());\n map.forEach((key,v) -> {if (v >= newKthElement ) {\n if(!reverseSortedMap.containsKey(v)) reverseSortedMap.put(v, new TreeSet<String>());\n reverseSortedMap.get(v).add(key);}});\n \n List<String> result = new ArrayList<String>();\n reverseSortedMap.forEach((key,v) -> {result.addAll(v);});\n \n return result.size() > k? result.subList(0, k): result;\n }", "private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = new HuffmanTreeNode[freq.length];\n\t\tfor (int i = 0; i < freq.length; i++)\n\t\t{\n\t\t\theap[i] = new HuffmanTreeNode(freq[i][1], freq[i][0], null, null);\n\t\t}\n\t\t\n\t\theap = heapSort(heap);\n\n\t\treturn heap;\n\t}", "private static void MostFrequentTwoGram() throws Exception{\n\t\tFile file=new File(filenameforpages);\n\t\tList<String> words = Utilities.tokenizeFile(file);\n\t\t\n\t\tList<String> stopwordslist = Utilities.tokenizeFile(new File(filenameforstopwords));\n\t\tList<String> mostfrequenttwogramlist =computeTwoGramFrequencies(words, top_number , stopwordslist);\n\t\tWriteMostFrequentTwoGramsToFile(mostfrequenttwogramlist);\n\t}", "public Set<String> getNBestUnderDistance(String word, int n, int distMax) {\n\t\tSet<String> oldWords = new HashSet<String>();\n\t\tSet<String> newWords = new HashSet<String>();\n\t\tPriorityQueue<String> candidates = new PriorityQueue<String>(11, new getNBestUnderDistanceComparator());\n\t\tSet<String> chosenCandidates = new HashSet<String>();\n\t\toldWords.add(word);\n\t\tfor (int i = 0; i < distMax; i++) {\n\t\t\tfor (String oldWord : oldWords) {\n\t\t\t\tnewWords.addAll(insertionHelper(oldWord));\n\t\t\t\tnewWords.addAll(deletionHelper(oldWord));\n\t\t\t\tnewWords.addAll(replacementHelper(oldWord));\n\t\t\t\tif (oldWord.length() > 1) {\n\t\t\t\t\tnewWords.addAll(transpositionHelper(oldWord));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String newWord : newWords) {\n\t\t\t\tif (dict.containsKey(newWord) && !candidates.contains(newWord)) {\n\t\t\t\t\tcandidates.add(newWord);\n\t\t\t\t}\n\t\t\t}\n\t\t\toldWords = newWords;\n\t\t\tnewWords = new HashSet<String>();\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif (candidates.size() > 0 && candidates.peek() != null) {\n\t\t\t\tchosenCandidates.add(candidates.poll());\n\t\t\t}\n\t\t}\n\t\treturn chosenCandidates;\n\t}", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}", "public int maxEntrySize() {\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; (i < table.length); i++) {\n\t\t\tif (table [i] != null) {\n\t\t\t\tif (table[i].size() > max)\n\t\t\t\t\tmax = table[i].size();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public static List<String> topKFrequent_pq(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1) == countMap.get(word2)) {\n return word2.compareTo(word1);\n }\n return countMap.get(word1) - countMap.get(word2);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n if (pq.size() > k) {\n pq.poll();\n }\n }\n\n List<String> ans = new ArrayList<>();\n while (!pq.isEmpty()) {\n ans.add(pq.poll());\n }\n Collections.reverse(ans);\n return ans;\n }", "public static long[] estimateSizeOnHeap(int numberOfEntries, int\n maxNumberOfBits) {\n \n long ww = maxNumberOfBits;\n \n long maxNumber = (1L << ww) - 1;\n \n long binSz = maxNumberOfBits;\n \n int nBins = (int)Math.ceil((double)maxNumber/(double)binSz);\n \n long total = 0;\n \n ObjectSpaceEstimator est = new ObjectSpaceEstimator();\n est.setNIntFields(2);\n est.setNLongFields(3);\n est.setNBooleanFields(1);\n //objects: xft, xftReps, rbs\n est.setNObjRefsFields(3);\n \n total += est.estimateSizeOnHeap();\n \n // --------- include contents of the objects --------------\n \n /*\n the minimum of each bin range, if it is populated, is the representative\n node, and that is held in 2 data structures:\n xft holds the number, allowing fast repr prev and next lookups.\n xftReps holds the repr as the value, found by key = binNumber.\n * the max number of trie entries will be nBins\n but there will be prefix trie nodes too\n private final XFastTrieLong<XFastTrieNodeLong<Long>, Long> xft;\n \n // key = bin index (which is node/binSz), value = repr value.\n // each repr value is the minimum stored in the bin.\n // * the max number of map entries will be nBins.\n private final TLongLongMap xftReps = new TLongLongHashMap();\n \n // all inserts of this class are held in \n // * at most nBins number of trees which each \n // hold at most binSz number of entries.\n // each list item is a sorted binary search tree of numbers in that bin.\n // the value in the tree holds multiplicity of the number.\n // each list index can be found by node/binSz\n // each sorted tree has \n // key = node (inserted number), w/ value=\n // the number of times that number is present (multiplicity).\n TLongObjectMap<RedBlackBSTLongInt2> rbs;\n */\n \n // returning 2 estimates\n // (1) estimate using all bins w/ factor 5 for tries\n // (2) estimate from using nBinsSparse of the nBins w/ factor 3 for tries\n \n int nBinsSparse = nBins/10;\n if (nBinsSparse < 1) {\n nBinsSparse = 1;\n }\n \n // using factor of 5 for total w/ prefix nodes\n long total2_1 = numberOfEntries * 5 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // all nBins are filled w/ a repr\n total2_1 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n long total2_2 = numberOfEntries * 3 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // nBinsSparse of nBins are filled w/ a repr\n total2_2 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n \n //TLongLongMap\n total2_1 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins number of repr entries in map\n total2_1 += (2 * nBins * ObjectSpaceEstimator.estimateLongSize());\n \n \n //TLongLongMap\n total2_2 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins/4 number of repr entries in map\n total2_2 += (2 * nBinsSparse * ObjectSpaceEstimator.estimateLongSize());\n \n \n // 1 TLongObjectMap<RedBlackBSTLongInt> rbs;\n total2_1 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n total2_2 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n // nBins number of TreeMap<Integer, Integer> \n ObjectSpaceEstimator est2 = new ObjectSpaceEstimator();\n est2.setNBooleanFields(1);\n est2.setNObjRefsFields(2);\n long totalEntry = est2.estimateSizeOnHeap();\n totalEntry += 3. * totalEntry;\n est2 = new ObjectSpaceEstimator();\n est2.setNIntFields(2);\n long rbtree = est2.estimateSizeOnHeap() + totalEntry;\n long rbtreeNodes = numberOfEntries * totalEntry;\n \n total2_1 += (nBins * rbtree);\n \n total2_2 += (nBinsSparse * rbtree);\n \n \n // nEntries number of long, int nodes\n \n total2_1 += rbtreeNodes;\n \n total2_2 += rbtreeNodes;\n \n return new long[]{total2_1 + total, total2_2 + total};\n }", "public void apply(GlobalWindow window, Iterable<String> values, \n Collector<Tuple2<String,Integer>> out) throws Exception {\n \t HashMap <String,Integer> countWord = new HashMap<String,Integer>();\n \n for (String value : values) {\n \t \n \t String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n \t for (String token : tokens)\n \t {\t if (token.length() >0) {\n \t\t if (countWord.get(token) != null)\n { countWord.put(token, countWord.get(token)+1);}\n else\n {countWord.put(token, 1);}\n \t }\n \t\t \n \t }\n }\n \n \n //Comparator to sort in reverse\n \t\t\tComparator<String> comparator = new Comparator<String>() {\n \t\t\t public int compare(String o1, String o2) {\n \t\t\t return countWord.get(o1).compareTo(countWord.get(o2));\n \t\t\t }\n \t\t\t};\n\n \t\t\tArrayList<String> words = new ArrayList<String>();\n \t\t\twords.addAll(countWord.keySet());\n\n \t\t\tCollections.sort(words,comparator);\n \t\t\tCollections.reverse(words);\n \t\t\t\n// System.out.println(Arrays.asList(words));\n \t\t\tSystem.out.println(\"10 most frequent words per stream\");\n System.out.println(\"-----------\");\n \n for(int i = 0; i < 10; i++) {\n \tSystem.out.println(words.get(i) + \" : \" + countWord.get(words.get(i)));\n }\n \n \n System.out.println(\"\\n\");\n \n }", "public static List<String> topKFrequent_hashmap(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n if (words == null || words.length == 0 || k <= 0) {\n return ans;\n }\n\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n List<Map.Entry<String, Integer>> list = new ArrayList<Map.Entry<String, Integer>>(freqMap.entrySet());\n list.sort((o1, o2) -> {\n if (o1.getValue().equals(o2.getValue())) {\n return o1.getKey().compareTo(o2.getKey());\n }\n\n return o2.getValue() - o1.getValue();\n });\n\n for (Map.Entry<String, Integer> entry : list) {\n ans.add(entry.getKey());\n k--;\n if (k <= 0) {\n return ans;\n }\n }\n\n return ans;\n }", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\n\t\tint currentHash = 0; /* will be changed in the while loop to store the hash code for current word*/\n\t\tString currentWord; /* will be changed in the while loop to store the current word*/\n\t\t\n\t\tChainHashMap<myString, Integer> wordFrequency = new ChainHashMap<myString, Integer>(500); /* create the chain hash map with the size of 500; there is 500 buckets in the map*/\n\t\t\n\t\t\n\t\tFile file = new File(\"/Users/Jacob/Downloads/shakespeare.txt\");\n\t\t/*please notice that the file cannot be found on the address given above, change it to test if it works!*/\n\t\tScanner input = new Scanner(file); /* should be changed to file after debugging*/\n\t\t\n\t\t\n\t\twhile(input.hasNext()){\n\t\t\tcurrentWord = input.next();\n\t\t\t\n\t\t\twhile(currentWord.equals(\".\") || currentWord.equals(\",\") || currentWord.equals(\"!\") || currentWord.equals(\"?\") || currentWord.equals(\";\") || currentWord.equals(\":\")){\n\t\t\t\tif(input.hasNext()){\n\t\t\t\t\tcurrentWord = input.next();\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyString wordString = new myString(currentWord);\n\t\t\t\n\t\t\tif(wordFrequency.get(wordString) == null){\n\t\t\t\t\n\t\t\t\twordFrequency.put(wordString, 1); /* the key is the string and the value should be the word frequency*/\n\t\t\t}else{\n\n\t\t\t\twordFrequency.put(wordString, wordFrequency.get(wordString) + 1); /* if the key is already in the map, increment the word frequency by 1*/\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* till this point, all the work of Shakespeare have been stored in the chained hash map*/\n\t\t/* the heap is used to get the top 1000 frequent work*/\n\t\t/* it adds the element to the heap and when the size of the heap reaches 1000, the word with the lowest will be removed, which is the root of the heap*/\n\t\t/* the two element in the entry for the heap should be exchanged; the key should store the frequencies and the the value should be the string */\n\t\t\n\t\tHeapAdaptablePriorityQueue<Integer, String> frequencyHeap = new HeapAdaptablePriorityQueue<Integer, String>();\n\t\t\n\t\tfor(Entry<myString, Integer> word: wordFrequency.entrySet()){\n\t\t\tint currentFrequency = word.getValue(); /* store the value of the entry in the chain hash map, will be used as the key for the heap*/\n\t\t\tString currentString = word.getKey()._word; /* store the string in the key of the entry of the chain hash map, will be used as the value for the heap*/\n\t\t\t\n\t\t\tfrequencyHeap.insert(currentFrequency, currentString);\n\t\t\t\n\t\t\tif(frequencyHeap.size() > 1000){\t\t\t\t\n\t\t\t\tfrequencyHeap.removeMin(); /* keep the heap size fixed at 1000; remove the minimum in the heap if the size exceeds 1000*/\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* till now, all the entries has been stored in the heap*/\n\t\t/* get the minimum value and key (the frequency and the corresponding word), then remove the minimum from the heap*/\n\t\t/* the data is stored in the excel form; the screen shot is provided in the document*/\n\t\t\n\t\twhile(frequencyHeap.size() > 0){\n\t\t\tSystem.out.println(frequencyHeap.min().getValue()); /* get the word from the ascending order of the frequency*/\n\t\t\tSystem.out.println(frequencyHeap.min().getKey()); /* get the frequency of the word*/\n\t\t\t\n\t\t\tfrequencyHeap.removeMin();\n\t\t}\n\n\t\t\n\t}", "private int findMostFrequent(int[] Array) {\n\t HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t for(int element: Array) {\n\t Integer frequency = map.get(element);\n\t map.put(element, (frequency != null) ? frequency + 1 : 1); \n\t }\n\t int mostFrequentItem = 0;\n\t int[] maxFrequencies = new int[2];\n\t maxFrequencies[0] = Integer.MIN_VALUE;\n\n\t for(Entry<Integer, Integer> entry: map.entrySet())\n\t {\n\t if(entry.getValue()>= maxFrequencies[0])\n\t {\n\t mostFrequentItem = entry.getKey();\n\t maxFrequencies[1] = maxFrequencies[0];\n\t maxFrequencies[0] = entry.getValue();\n\t }\n\t }\n\t // this is for a tie\n\t // TODO: Consider what happens when there is a tie between two occurrences\n\t // if(maxFrequencies[1] == maxFrequencies[0])\n\t // throw new Exception();//insert whatever exception seems appropriate\n\t return mostFrequentItem;\n\t}", "public static List<String> topKFrequent_pq_opt(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1).equals(countMap.get(word2))) {\n return word1.compareTo(word2);\n }\n return countMap.get(word2) - countMap.get(word1);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n }\n\n List<String> ans = new ArrayList<>();\n for (int i = 0; i < k; i++) {\n ans.add(pq.poll());\n }\n\n return ans;\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public static List<String> topKFrequent_hashmap_opt(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n ans.addAll(freqMap.keySet());\n\n Collections.sort(ans, (o1, o2) -> {\n if (freqMap.get(o1) == freqMap.get(o2)) {\n return o1.compareTo(o2);\n }\n\n return freqMap.get(o2) - freqMap.get(o1);\n });\n\n return ans.subList(0, k);\n }", "public static String getMostFrequentToy() {\n\t\tString name = \"\";\n\t\tint max = 0;\n\t\tfor (int i = 0; i < toyList.size(); i++) {\n\t\t\tif (max < toyList.get(i).getCount()) {\n\t\t\t\tmax = toyList.get(i).getCount();\n\t\t\t\tname = toyList.get(i).getName();\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public static void main(String argv[]) throws java.io.IOException {\n\n int i = getNext();\n int charCount = 0; // holds a word's character count\n String largestWord = null;\n\n while (i != -1) {\t// Repeat until end-of-file is reached.\n\n if ( !whiteSpace((char)i)) {\n StringBuilder stringBuilder = new StringBuilder(100);\n\n //\n // Word state\n //\n words++;\t\t// We've seen another word.\n do {\t\t\t// Skip to the next white space character.\n stringBuilder.append((char)i); // build the word, so we can get the length\n i = getNext();\n } while (i != -1 && !whiteSpace((char)i));\n\n // We check if the word is bigger (but not equal) than what we previously found.\n // (if we have multiple of the same length, we just want the first).\n if (stringBuilder.length() > charCount) {\n charCount = stringBuilder.length();\n largestWord = stringBuilder.toString();\n }\n\n\n } else {\n //\n // whiteSpace state\n //\n do {\n if ((char)i == '\\n') {\n lines++;\t\t// We've seen another line;\n }\n i = getNext();\n } while (whiteSpace((char)i));\n }\n }\n System.out.println(\" \" + largestWord + \" \" + lines + \" \" + words + \" \" + characters);\n }", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\ttry {\r\n\t\t\tint T = Integer.parseInt(br.readLine());\r\n\t\t\tfor (int t = 0; t < T; t++) {\r\n\t\t\t\tint N = Integer.parseInt(br.readLine());\r\n\t\t\t\tint[] A = new int[N]; // 수열 저장\r\n\t\t\t\tint cnt = 0;\r\n\r\n\t\t\t\tfor (int i = 0; i < N / 10 + 1; i++) {\r\n\t\t\t\t\tString[] arr = br.readLine().split(\" \");\r\n\t\t\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\t\t\tA[cnt] = Integer.parseInt(arr[j]);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\t\t\tPriorityQueue<Integer> maxheap = new PriorityQueue<Integer>(Collections.reverseOrder());\r\n\t\t\t\tPriorityQueue<Integer> minheap = new PriorityQueue<Integer>();\r\n\r\n\t\t\t\tfor (int i = 0; i < A.length; i++) {\r\n\t\t\t\t\tif (maxheap.size() == minheap.size())\r\n\t\t\t\t\t\tmaxheap.offer(A[i]);\r\n\t\t\t\t\telse if (maxheap.size() > minheap.size())\r\n\t\t\t\t\t\tminheap.offer(A[i]);\r\n\r\n\t\t\t\t\tif (!maxheap.isEmpty() && !minheap.isEmpty() && minheap.peek() < maxheap.peek()) {\r\n\t\t\t\t\t\tint max = maxheap.poll();\r\n\t\t\t\t\t\tint min = minheap.poll();\r\n\r\n\t\t\t\t\t\tminheap.offer(max);\r\n\t\t\t\t\t\tmaxheap.offer(min);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t\t\tresult.add(maxheap.peek());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(result.size());\r\n\t\t\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\t\t\tSystem.out.print(result.get(i) + \" \");\r\n\t\t\t\t\tif (i % 10 == 9)\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public Explanation(int topN) {\n\t\tsuper();\n\t\tthis.entries = MinMaxPriorityQueue.maximumSize(topN).create();\n\t}", "void buildMaxHeap(int[] array, int heapSize) {\n for (int i = heapSize / 2 - 1; i >= 0; i--) heapify(array, i, heapSize);\n }", "public void maxHeapify(int i){\n\t\tint left, right, largest;\n\t\tKeyword temp;\n\t\tleft=2*i;\n\t\tright=2*i+1;\n\t\tif(left<=heapSize){\n\t\t\tif(keywords[left].keyword.equalsIgnoreCase(keywords[i].keyword)){\t\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[left].pageNo.compareTo(keywords[i].pageNo)>0){\t//comparing pageNo of the Keyword objects\n\t\t\t\t\tlargest=left;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlargest=i;\n\t\t\t}\n\t\t\telse if(keywords[left].keyword.compareToIgnoreCase(keywords[i].keyword)>0){\n\t\t\t\tlargest=left;\n\t\t\t}\n\t\t\telse \n\t\t\t\tlargest = i;\n\t\t}\n\t\t\n\t\telse \n\t\t\tlargest =i;\n\t\t\n\t\tif(right<=heapSize){\n\t\t\tif(keywords[right].keyword.equalsIgnoreCase(keywords[largest].keyword)){\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[right].pageNo.compareTo(keywords[largest].pageNo)>0){\t//comparing pageNo of the Keyword object\n\t\t\t\t\tlargest=right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(keywords[right].keyword.compareToIgnoreCase(keywords[largest].keyword)>0)\n\t\t\t\tlargest=right;\n\t\t}\n\t\t\n\t\tif (largest!=i){\n\t\t\ttemp=keywords[i];\n\t\t\tkeywords[i]=keywords[largest];\n\t\t\tkeywords[largest]=temp;\n\t\t\tmaxHeapify(largest);\n\t\t}\n\t}", "public int getEntryCount() {\n return wordFrequency.size();\n }", "private static List<String> computeTwoGramFrequencies(List<String> words, int top_no, List<String> stopwordslist) {\n\t\t\t\n\t\tMap<String, Integer> tempstopmap= new HashMap<String, Integer>();\n\t\tfor (int i=0; i<stopwordslist.size(); i++){\n\t\t\tString tempword = stopwordslist.get(i);\n\t\t\ttempstopmap.put(tempword, 1);\n\t\t}//construct temp stopwordmap\n\t\t\n\t\tint i=0;\n\t\tMap<String, Integer> tempmap= new HashMap<String, Integer>();\n\t\twhile(i<words.size()){\n\t\t\tString temptwogram=\"\";\n\t\t\tString tempword1=\" \";\n\t\t\tString tempword2=\" \";\n\t\t\twhile(true){\n\t\t\t\tif(i>=words.size()-1)\n\t\t\t\t\tbreak;\n\t\t\t\ttempword1=words.get(i);\n\t\t\t\tif(!tempstopmap.containsKey(tempword1))\n\t\t\t\t\tbreak;\n\t\t\t\ti++;\n\t\t\t\ttempword1=\" \";\n\t\t\t}\n\t\t\ti++;\n\t\t\tSystem.out.println(\"b\"+i);\n\t\t\twhile(true){\n\t\t\t\tif(i>=words.size())\n\t\t\t\t\tbreak;\n\t\t\t\ttempword2=words.get(i);\n\t\t\t\tif(!tempstopmap.containsKey(tempword2))\n\t\t\t\t\tbreak;\n\t\t\t\ti++;\n\t\t\t\ttempword2=\" \";\n\t\t\t}//jump for the case that word + stopword +word\n\t\t\t\n\t\t\ttemptwogram = tempword1+\" \"+tempword2; //2-gram\n\t\t\tif (tempmap.containsKey(temptwogram))\n\t\t\t\ttempmap.put(temptwogram, tempmap.get(temptwogram)+1);\n\t\t\telse\n\t\t\t\ttempmap.put(temptwogram, 1);\n\t\t}//construct hashmap to count 2-gram words (key(word), value(frequency))\n\t\tList<Map.Entry<String, Integer>> templist = new ArrayList<Map.Entry<String, Integer>>();\n\t\tfor(Map.Entry<String, Integer> entry: tempmap.entrySet()){\n\t\t\t\n\t\t\t\n\t\t\ttemplist.add(entry);\n\t\t}//construct templist with entry containing word/frequency in map\n\t\t\n\t\tCollections.sort(templist, Collections.reverseOrder(new comparatorByFrequencyReverse()));//sort templist in decresing order\n\n\t\t /*change the templist into sortedlist*/\n\t\tList<String> sortedlist = new ArrayList<String> ();\n\t\tif(templist.size()>=top_no){\n\t\t\tfor (int j=0; j<top_no;j++){\n\t\t\t\tString word = templist.get(j).getKey();\n\t\t\t\tsortedlist.add(word);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tfor (int j=0; j<templist.size();j++){\n\t\t\t\tString word = templist.get(j).getKey();\n\t\t\t\tsortedlist.add(word);\n\t\t\t}\n\t\t}\n\t\treturn sortedlist;\n\t}", "public int getHighscoreMaxSize() {\n \t\treturn 20;\n \t}", "public List<String> getTopSearchKey(int number) {\n\t\tString hql = \"select e.keyWords from SearchLog e group by e.keyWords order by count(e.id) desc\";\n\n\t\tSession session = getSession();\n\t\tList<String> list = new ArrayList<>();\n\t\ttry {\n\t\t\tQuery query = session.createQuery(hql);\n\t\t\tquery.setMaxResults(number);\n\t\t\tlist = query.list();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "public static int[] topKFrequent(int[] nums, int k) {\n int[] a = new int[k];\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n map.put(nums[i], map.get(nums[i]) + 1);\n } else {\n map.put(nums[i], 1);\n }\n }\n\n PriorityQueue<Map.Entry<Integer, Integer>> maxHeap = new PriorityQueue<Map.Entry<Integer, Integer>>(k, Map.Entry.<Integer, Integer>comparingByValue().reversed());\n for (Map.Entry<Integer, Integer> e : map.entrySet()) {\n maxHeap.offer(e);\n }\n\n while (k > 0) {\n a[--k] = maxHeap.poll().getKey();\n }\n\n return a;\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n\t\tkw1 = kw1.toLowerCase();\n kw2 = kw2.toLowerCase();\n ArrayList <String> outArr = new ArrayList <String> ();\n ArrayList <Occurrence> kw1Arr = null;\n ArrayList <Occurrence> kw2Arr = null;\n for(String e: keywordsIndex.keySet()) {\n if(e.equals(kw1) == true) {\n kw1Arr = keywordsIndex.get(e);}\n if(e.equals(kw2) == true) {\n kw2Arr = keywordsIndex.get(e);}}\n int kw1Point = 0;\n int kw2Point = 0;\n for(int inc = 0; inc < 5; inc++) {\n int kw1Value = 0;\n Occurrence kw1Occ = null;\n int kw2Value = 0;\n Occurrence kw2Occ = null;\n if(kw1Arr != null && kw1Point < kw1Arr.size()) {\n kw1Occ = kw1Arr.get(kw1Point);\n kw1Value = kw1Occ.frequency;}\n if(kw2Arr != null && kw2Point < kw2Arr.size()) {\n kw2Occ = kw2Arr.get(kw2Point);\n kw2Value = kw2Occ.frequency;}\n if(kw1Value == 0 && kw2Value == 0) {\n \t//will only occur if the if-statements for 212 and 215 are false\n \t//which means that the array doesn't exist or the pointer has iterated through the whole array\n break;}\n if(kw1Value >= kw2Value) {\n outArr.add(kw1Occ.document);\n kw1Point = kw1Point + 1;}\n else {outArr.add(kw2Occ.document);\n kw2Point = kw2Point + 1;}}\n if(outArr.size() == 0) {//no found matches\n return null;}\n else {return outArr;}//found matches\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n \n \n File textBank = new File(\"textbank/\");\n Hashtable<Integer,Integer> frequency;\n Hashtable<Integer, String> table;\n table = new Hashtable<>();\n frequency = new Hashtable<>();\n Scanner input = new Scanner(new File(\"stoplist.txt\"));\n int max=0;\n while (input.hasNext()) {\n String next;\n next = input.next();\n if(next.length()>max)\n max=next.length();\n table.put(next.hashCode(), next); //to set up the hashmap with the wordsd\n \n }\n \n System.out.println(max);\n \n Pattern p0=Pattern.compile(\"[\\\\,\\\\=\\\\{\\\\}\\\\\\\\\\\\\\\"\\\\_\\\\+\\\\*\\\\#\\\\<\\\\>\\\\!\\\\`\\\\-\\\\?\\\\'\\\\:\\\\;\\\\~\\\\^\\\\&\\\\%\\\\$\\\\(\\\\)\\\\]\\\\[]\") \n ,p1=Pattern.compile(\"[\\\\.\\\\,\\\\@\\\\d]+(?=(?:\\\\s+|$))\");\n \n \n \n wor = new ConcurrentSkipListMap<>();\n \n ConcurrentMap<String , Map<String,Integer>> wordToDoc = new ConcurrentMap<String, Map<String, Integer>>() {\n @Override\n public Map<String, Integer> putIfAbsent(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean remove(Object key, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean replace(String key, Map<String, Integer> oldValue, Map<String, Integer> newValue) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> replace(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int size() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean isEmpty() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsKey(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsValue(Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> get(Object key) {\n return wor.get((String)key);//To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> put(String key, Map<String, Integer> value) {\n wor.put(key, value); // this saving me n \n //if(frequency.get(key.hashCode())== null)\n \n //frequency.put(key.hashCode(), )\n return null;\n }\n\n @Override\n public Map<String, Integer> remove(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void putAll(Map<? extends String, ? extends Map<String, Integer>> m) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void clear() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<String> keySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Collection<Map<String, Integer>> values() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<Map.Entry<String, Map<String, Integer>>> entrySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n totalFiles = textBank.listFiles().length;\n for (File textFile : textBank.listFiles()) {\n totalReadFiles++;\n //checking whether file has txt extension and file size is higher than 0\n if(textFile.getName().contains(\".txt\") && textFile.length() > 0){\n docName.add(textFile.getName().replace(\".txt\", \".stp\"));\n StopListHandler sp = new StopListHandler(textFile, table,System.currentTimeMillis(),p0,p1,wordToDoc);\n sp.setFinished(() -> {\n \n tmp++;\n \n if(tmp==counter)\n //printTable(counter);\n \n if(totalReadFiles == totalFiles)\n {\n printTable(counter);\n }\n \n });\n \n sp.start();\n counter ++;}\n \n \n }\n System.out.println(counter);\n //while(true){if(tmp==counter-1) break;}\n System.out.println(\"s\");\n \n }", "private static void findKLargestElementBad(List<Integer> a, int k) {\n PriorityQueue<Integer> maxHeap =\n new PriorityQueue<Integer>(a.size(), new MaxHeapComperator());\n for (Integer n : a) {\n maxHeap.add(n); // O(n)\n }\n int i = k + 1;\n while (i > 0) { // O(klogn)\n System.out.print(maxHeap.remove() + \" \");\n i--;\n }\n }", "@Override\n public void execute(Tuple tuple) {\n\t String word = tuple.getStringByField(\"word\");\n\t Integer count = tuple.getIntegerByField(\"count\");\n\n\t if (_topNMap.size() < _n) {\n\t \t//add word and count if less than N elements in top N\n\t \t_topNMap.put(word, count);\n\t } else {//if (_topNMap.size() > _n) {\n\t\tfor (String w : _topNMap.keySet()) {\n\t\t\tInteger c = _topNMap.get(w);\n\t\t\tif (_topNTreeMap.get(c) == null || _topNTreeMap.get(c).compareTo(w) < 0) {\n\t\t\t\t_topNTreeMap.put(c, w);\n\t\t\t}\n\t\t}\n\t\tInteger minCount = _topNTreeMap.firstKey();\n\t\tString minWord = _topNTreeMap.get(minCount);\n\t \tif (count > minCount) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t} else if (count == minCount && word.compareTo(minWord) > 0) {\n\t\t\t_topNMap.remove(minWord);\n\t\t\t_topNMap.put(word, count);\n\t\t}\n\t\t_topNTreeMap.clear();\n\t\t \n\t\tString topNList = \"\";\n\t\tint c = 0;\n\t \tfor (String key : _topNMap.keySet()) {\n\t\t\ttopNList += key + \", \";\n\t\t\tc++;\n\t \t}\n\t \ttopNList = topNList.substring(0, topNList.length() - 2);\n\t \tif (c == _n) {\n\t \t\tcollector.emit(new Values(\"top-N\", topNList));\n\t \t}\n\t }\n }", "public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n // COMPLETE THIS METHOD\n ArrayList<Occurrence> Res1 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<Occurrence> res2 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<String> arrayList = new ArrayList<String>();\n\n while (arrayList.size() < 6) {\n Occurrence aa = null;\n Occurrence b = null;\n {\n if (Res1 != null) {\n for (Occurrence occr : Res1) {\n if (!arrayList.contains(occr.document)) {\n aa = occr;\n }\n }\n } if(Res1 == null){\n aa = new Occurrence(null, 0);\n }\n else aa = new Occurrence(null,0);\n }\n {\n if(res2 != null){\n for(Occurrence occr : res2){\n if(!arrayList.contains(occr.document)){\n b = occr;\n }\n }\n }\n if(res2 == null){\n b = new Occurrence(null,0);\n }\n else b = new Occurrence(null,0);\n }\n Occurrence[] a = {aa,b};//{search(arrayList, Res1), search(arrayList, res2)};\n Occurrence m = null;\n if (a[0].frequency < a[1].frequency) {\n m = a[1];\n } else m = a[0];\n if (m.document != null) {\n arrayList.add(m.document);\n } else break;\n }\n return arrayList;\n }", "public static void main(String[] args) {\n\n\t\tHeap hp = new Heap();\n\t\thp.add(20);\n\t\thp.add(10);\n\t\thp.add(70);\n\t\thp.add(80);\n\t\thp.add(1);\n//\t\thp.display();\n//\n//\t\twhile (hp.size() != 0) {\n//\t\t\tSystem.out.println(hp.remove());\n//\t\t}\n\n\t\tint[] arr = { 1, 5, 2, 3, 10, 20, 2, 1, 6, 7 };\n\n\t\tKthLargest(arr, 3);\n\t}", "public abstract String[][] getTopWords();", "double getMaxTfCapacity();", "public List<String> getFrequentWords() {\n\t\tif (this.frequentWords == null) {\n\t\t\tSet<String> wordsToReturn = new TreeSet<String>();\n\t\t\tfor (String folder : termFrequencyManager.getTfidfByFolder().keySet()) {\n\t\t\t\tint index = 0;\n\t\t\t\tMap<String, TFIDFSummary> tfidSummaries =\n\t\t\t\t\t\ttermFrequencyManager.getTfidfByFolder().get(folder);\n\t\t\t\tArrayList<TFIDFSummary> tfidfSummariesList = new ArrayList<TFIDFSummary>(tfidSummaries.size());\n\t\t\t\tfor (String term : tfidSummaries.keySet()) {\n\t\t\t\t\ttfidfSummariesList.add(tfidSummaries.get(term));\n\t\t\t\t}\n\t\t\t\tCollections.sort(tfidfSummariesList);\n\n\t\t\t\twhile (index < tfidfSummariesList.size() && index < MAX_NUM_ATTRIBUTES_BY_FOLDER) {\n\t\t\t\t\tTFIDFSummary ts = tfidfSummariesList.get(tfidfSummariesList.size() - 1 - index);\n\t\t\t\t\twordsToReturn.add(ts.getTerm());\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tthis.frequentWords = new ArrayList<String>(wordsToReturn);\n\t\t}\n\t\tSystem.out.println(\"Numero de palabras frecuentes: \" + this.frequentWords.size());\n\t\tfor (String w : frequentWords) System.out.println(\"FreqWord \" + w);\n\t\treturn this.frequentWords;\n\t}", "public static String[] rechercheBigrammePlusFrequent(String text) {\n\t\tint n = text.length();\n\t\tArrayList<String> bigrammes = new ArrayList<String>();\n\t\tString[] bigrammesPlusFrequentsCorrespond = new String[5]; // resultat\n\t\tArrayList<String> bigrammesChiffréPlusFrequents = new ArrayList<String>();\n\t\tArrayList<Integer> nbrBigrammesPlusFrequents = new ArrayList<Integer>();\n\n\t\tfor (int i = 1; i < n - 1; i++) {\n\t\t\tString bigramme = text.substring(i, i + 2);\n\t\t\tbigrammes.add(bigramme);\n\t\t}\n\t\tfor (int j = 0; j < bigrammes.size(); j++) {\n\t\t\tint inter = 1;\n\t\t\tString bi = bigrammes.get(j);\n\t\t\tif ((!bigrammesChiffréPlusFrequents.contains(bi))) {\n\t\t\t\tfor (int k = j + 1; k < bigrammes.size(); k++) {\n\t\t\t\t\tif (bi.equals(bigrammes.get(k))) {\n\t\t\t\t\t\tinter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbigrammesChiffréPlusFrequents.add(bi);\n\t\t\t\tnbrBigrammesPlusFrequents.add(inter);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tint max = 1, id = 0;\n\t\t\tfor (int j = 0; j < bigrammesChiffréPlusFrequents.size(); j++) {\n\t\t\t\tif (nbrBigrammesPlusFrequents.get(j) >= max) {\n\t\t\t\t\tmax = nbrBigrammesPlusFrequents.get(j);\n\t\t\t\t\tid = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbigrammesPlusFrequentsCorrespond[i] = bigrammesChiffréPlusFrequents\n\t\t\t\t\t.get(id);\n\t\t\tnbrBigrammesPlusFrequents.set(id, 0);\n\t\t}\n\t\t// System.out.println(\"liste des bigrammes les plus fréquents\");\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t// System.out.println(bigrammesPlusFrequentsCorrespond[i]);\n\t\t}\n\t\treturn bigrammesPlusFrequentsCorrespond;\n\t}", "public FHeapNode removeMax()\r\n {\r\n FHeapNode z = maxNode;\r\n //hmap.remove(maxNode.gethashtag());\t\t\t\t\t\t\t\t\t\t//remove the node from the hashtable\r\n \r\n if (z != null) \r\n\t\t{\r\n \t for (HashMap.Entry<String, FHeapNode> entry : hmap.entrySet()) \r\n {\r\n \tif(entry.getValue() == maxNode)\r\n \t{\r\n \t\thmap.remove(entry.getKey());\r\n \t\tbreak;\r\n \t}\r\n }\r\n \t \r\n int numKids = z.degree;\r\n FHeapNode x = z.child;\r\n FHeapNode tempRight;\r\n\r\n while (numKids > 0) \t\t\t\t\t\t\t\t\t\t\t\t\t// iterate trough all the children of the max node\r\n\t\t\t{\r\n tempRight = x.right; \r\n x.left.right = x.right;\t\t\t\t\t\t\t\t\t\t\t\t// remove x from child list\r\n x.right.left = x.left;\r\n \r\n x.left = maxNode;\t\t\t\t\t\t\t\t\t\t\t\t\t// add x to root list of heap\r\n x.right = maxNode.right;\r\n maxNode.right = x;\r\n x.right.left = x;\r\n \r\n x.parent = null;\t\t\t\t\t\t\t\t\t\t\t\t\t// set parent[x] to null\r\n x = tempRight;\r\n numKids--;\r\n }\r\n\t\t\tz.left.right = z.right;\t\t\t\t\t\t\t\t\t\t\t\t\t// remove z from root list of heap\r\n z.right.left = z.left;\r\n\r\n if (z == z.right)\r\n\t\t\t{\r\n maxNode = null;\r\n } \r\n\t\t\telse \r\n\t\t\t{\r\n maxNode = z.right;\r\n meld();\r\n } \r\n nNodes--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// decrement size of heap\r\n }\r\n \r\n\r\n return z;\r\n }", "void collectLeastFrequent(FrequencyTable fq);", "public int getMaxFrequency() {\n\t\t\tif (mMaxFrequency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + MAX_FREQUENCY);\n\t\t\t\tif (list == null || list.isEmpty()) return 0;\n\t\t\t\tint value = 0;\n\t\t\t\ttry { value = Integer.valueOf(list.get(0)); }\n\t\t\t\tcatch (NumberFormatException ignored) {}\n\t\t\t\tmMaxFrequency = value / 1000;\n\t\t\t}\n\t\t\treturn mMaxFrequency;\n\t\t}", "private void getTweetsMostCommonHashTag() {\r\n final List<Entry<String, Integer>> list = \r\n getCommonList(countHashtags, countHashtags.size());\r\n list.stream()\r\n .filter(entry -> !searched.contains(entry.getKey().toLowerCase()))\r\n .limit(1)\r\n .forEach(entry -> getTweets(entry.getKey(), geocode, getAuth()));\r\n }", "public static int KthLargestWithMaxHeap(Integer[] arr, int k) {\n\t\tHeap<Integer> heap = new Heap<>(arr, false);\n\n\t\t// k removal from heap\n\t\tfor (int i = 0; i < k - 1; i++) {\n\t\t\theap.remove();\n\t\t}\n\n\t\treturn heap.getHP();\n\n\t\t// complexity is n+klogn\n\t}", "public static void main(String[] args) {\n String s=\"Human brain is a biological learning machine\";\n Map<Integer, String> wordNLength = findTheLargestWord(s);\n //implement\n\n }", "private static List<Integer> getTopKFrequentElementsBestCase(int[] nums, int k) {\n if(k > nums.length) {\n return new ArrayList<>();\n }\n\n Map<Integer, Integer> numToCount = new HashMap<>();\n int max = 0;\n for(int i = 0; i < nums.length; i++) {\n numToCount.put(nums[i], numToCount.getOrDefault(nums[i], 0) + 1);\n max = Math.max(max, numToCount.get(nums[i]));\n }\n\n List<Integer>[] numsPerFrequency = new ArrayList[max + 1];\n for(int i = 1; i <= max; i++) {\n numsPerFrequency[i] = new ArrayList<>();\n }\n\n for(Map.Entry<Integer, Integer> entry : numToCount.entrySet()) {\n numsPerFrequency[entry.getValue()].add(entry.getKey());\n }\n\n List<Integer> result = new ArrayList<>();\n\n for(int i = max; i >= 0; i--) {\n List<Integer> numsWithThisFreq = numsPerFrequency[i];\n\n for(int num : numsWithThisFreq) {\n result.add(num);\n if(result.size() == k) {\n return result;\n }\n }\n }\n\n return new ArrayList<>();\n }", "public int [] hotN(ArrayList<LottoDay> list)\n\t{ \n\t\tint high=0;//checks for the highest number\n\t\tint[] numF = new int [48];// stores the frequency of each number\n\t\tint[] highest= new int [5]; //stores the 5 highest numbers\n\t\tint counter =0;\n\t\t//hot numbers for 1-47\n\t\tfor(int i=0; i<list.size();i++)\n\t\t{\n\t\t\tone = list.get(i); //get object\n\t\t\thighest = one.getWNum(); //get the first 5 numbers only of that object store in the array\n\t\t\t//gets the frequency for the numbers 1-47\n\t\t\tfor(int j=0; j<numF.length;j++)\n\t\t\t{\n\t\t\t\tfor(int k =0; k<highest.length;k++)\n\t\t\t\t{\n\t\t\t\t\t//check the array of for the index\n\t\t\t\t\tif(highest[k]==j)\n\t\t\t\t\t{ \n\t\t\t\t\t\tcounter++; //add one to count\n\t\t\t\t\t\tnumF[j]=counter+numF[j]; //add to the count\n\t\t\t\t\t\tcounter=0; //set counter back to zero \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//check for the highest number and store in highest array \n\t\tfor(int j=0; j<highest.length; j++)\n\t\t{\n\t\t\tfor(int i=0; i<numF.length;i++)\n\t\t\t{\n\t\t\t\t//if the occurrences beats high \n\t\t\t\tif(numF[i]>high)\n\t\t\t\t{\n\t\t\t\t\thigh = numF[i]; //new highest occurrence is stored\n\t\t\t\t\thighest[j]=i; //store the index in the array\n\t\t\t\t\tindex=i; //index equals i\n\t\t\t\t}\n\n\t\t\t}\n\t\t\thigh=0; //high goes back zero once through the entire list\n\t\t\tnumF[index]=0; //highest numbers occurrences is now set to zero\n\n\t\t}\n\n\t\treturn highest;//return the highest numbers in the list\n\t}", "int getMaxCount();", "int getMaxCount();", "public String most(String[] sentences) {\n\t\tString words = \"\";\n\t\tfor(int i = 0; i < sentences.length; i++){\n\t\t\twords = words + \" \" + sentences[i];\n\t\t}\n\t\twords = words.toLowerCase();\n\t\tString[] new_words = words.split(\" \"); \n\t\t\n\t\tMap<String, Integer> counting = new TreeMap<String, Integer>();\n\t\tfor(int i = 0; i < new_words.length; i++){\n\t\t\tif(counting.containsKey(new_words[i])){\n\t\t\t\tcounting.put(new_words[i], counting.get(new_words[i]) + 1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcounting.put(new_words[i], 1);\n\t\t\t}\n\t\t}\n\t\tint max = 0; \n\t\tString max_word = \"\";\n\t\tfor(String s: counting.keySet()){\n\t\t\tif(counting.get(s) > max){\n\t\t\t\tmax = counting.get(s);\n\t\t\t\tmax_word = s;\n\t\t\t}\n\t\t}\n\t\treturn max_word;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public List<Map<String, Double>> getTopWords(Company company) {\n List<Map<String, Double>> topWords = new ArrayList<Map<String, Double>>();\n Map<String, Double> termToTfIdf = new TreeMap<String, Double>();\n Map<String, Integer> tokenMap = tfIdf.get(company.getStockSymbol());\n for (String token : tokenMap.keySet()) {\n double tfIdf = 0;\n double termFrequency = tokenMap.get(token);\n double documentFrequency = calculateDocumentFrequency(token);\n tfIdf = termFrequency / documentFrequency;\n termToTfIdf.put(token, tfIdf);\n }\n List<Entry<String, Double>> entrySet = new ArrayList<Entry<String, Double>>();\n entrySet.addAll(termToTfIdf.entrySet());\n Collections.sort(entrySet, new Comparator() {\n\n @Override\n public int compare(Object o1, Object o2) {\n return ((Entry<String, Double>) o1).getValue().compareTo(\n ((Entry<String, Double>) o2).getValue());\n }\n\n });\n if (entrySet.size() < NO_OF_TOP_WORDS) {\n for (int i = 0; i < entrySet.size(); i++) {\n Map<String, Double> tempMap = new HashMap<String, Double>();\n tempMap.put(entrySet.get(i).getKey(), entrySet.get(i).getValue());\n topWords.add(tempMap);\n }\n } else {\n for (int i = entrySet.size() - NO_OF_TOP_WORDS; i < entrySet.size(); i++) {\n Map<String, Double> tempMap = new HashMap<String, Double>();\n tempMap.put(entrySet.get(i).getKey(), entrySet.get(i).getValue());\n topWords.add(tempMap);\n }\n }\n return topWords;\n }", "public HighArray(int max) // constructor\n {\n a = new long[max]; // create the array\n nElems = 0; // no items yet\n }", "List<T> findMostPopularTags(Integer firstResult, Integer maxResult);", "public String solve1(String s) {\n Map<String, Integer> frequency = new HashMap<>();\n String maxWord = null;\n String[] split = s.split(\" \");\n\n for (String word : split) {\n int newFrequency = frequency.getOrDefault(word, 0) + 1;\n frequency.put(word, newFrequency);\n if (newFrequency > frequency.getOrDefault(maxWord, 0)) {\n maxWord = word;\n }\n }\n\n return maxWord;\n }", "static int[] buildMaxHeap(int [] arr) {\n\t\tint n = arr.length;\n\t\tint startIdx = (n / 2) - 1;\n\t\tfor(int i = startIdx; i >= 0; i--)\n\t\t\theapify(arr, n, i);\n\t\treturn arr;\n\t}", "public List<Integer> findTopGenesByPaperCnt( Integer n ) throws DAOException;", "public static List<String> findMaxWords(Set<String> excludedWords, String inputString) {\n List<String> splitStringList = Arrays.asList(inputString.split(\"[ \\\\'\\\\.]\"));\n Map<String, Integer> wordCount = new HashMap<>(splitStringList.size());\n\n //create an hasmap with strings and their corresponding occurrences.\n for (String word : splitStringList) {\n String s = String.valueOf(word.charAt(0));\n if (!excludedWords.contains(word)) {\n wordCount.put(word, wordCount.get(word) == null ? 1 : wordCount.get(word) + 1);\n }\n }\n\n //create a list of all the entries in the map.\n List countEntries = new ArrayList<Map.Entry<String, Integer>>();\n countEntries.addAll(wordCount.entrySet());\n //sort the entry lists using the custom comparator class defined below.\n Collections.sort(countEntries, new sortEntries());\n List<String> maxOccursStringsList = new ArrayList<>();\n\n //find the maximum value\n int maxValue = (int) ((Map.Entry) countEntries.get(0)).getValue();\n //create a list of strings whose count matches with the maximum occurrence\n for (Object entry :\n countEntries) {\n if (((Map.Entry) entry).getValue().equals(maxValue)) {\n maxOccursStringsList.add(((Map.Entry) entry).getKey().toString());\n } else {\n return maxOccursStringsList;\n }\n }\n return maxOccursStringsList;\n }", "public int maxDistinction() {\n\n int distinctTiles = this.distincts().size(); // # of unique Scrabble tiles\n int maxDistinction = distinctTiles; // maximum # of distinct possibilities\n\n // If there are wildcards...\n int wilds = this.count(WILDCARD);\n if (wilds > 0) {\n int uniqueHardLetters = distinctTiles - 1; // # of unique letters (w/o wildcards)\n maxDistinction = uniqueHardLetters + wilds; // REVISED MAXIMUM DISTINCTION\n }\n\n return maxDistinction;\n }", "public static void findTheLargestWord() {\n\t\ttry (Scanner scan = new Scanner(new File(\"in1.txt\"))) {\r\n\r\n\t\t\tString largestWord = \"\";\r\n\t\t\tString current = \"\";\r\n\r\n\t\t\twhile (scan.hasNext()) {\r\n\t\t\t\tcurrent = scan.next();\r\n\t\t\t\tif (current.length() > largestWord.length()) {\r\n\t\t\t\t\tlargestWord = current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(largestWord);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"I can't find the file, where it is????\");\r\n\t\t}\r\n\r\n\t}", "public int getTrieDictionaryForestMaxTrieSizeMB() {\n return Integer.parseInt(getOptional(\"kylin.dictionary.forest-trie-max-mb\", \"500\"));\n }", "@Test\n\tpublic void BuildMaxHeaptest1() {\n\t\t Job jarray[]=new Job[5];\n\t\t jarray[0]=new Job(\"job1\",50,1);\n\t\t jarray[1]=new Job(\"job2\",20,2);\n\t\t jarray[2]=new Job(\"job3\",80,3);\n\t\t jarray[3]=new Job(\"job4\",20,4);\n\t\t jarray[4]=new Job(\"job5\",1,5);\n\t\t int i;\n\t\t //= (int)Math.floor(jarray.length);\n\t\t \n\t\t\n\t\t PQHeap.BuildMaxHeap(jarray);\n\t\t\n\t\t for( i = (int)Math.floor(jarray.length); i >0; i-- )\n\t\t \tPQHeap.MaxHeapify(jarray, i);\n\t\n\t\tassertNotEquals(-1, i);\n\t}", "public void resize(int max) {\r\n\t\tSet<Language> keys = getDb().keySet();\r\n\t\tSystem.out.println(keys);\r\n\t\tfor(Language lang : keys) {\r\n\t\t\tMap<Integer,LanguageEntry> top = getTop(max,lang);\r\n\t\t\tgetDb().put(lang,top);\r\n\t\t}\r\n\t}", "public void getFrequentHash(int i, HashTreeNode htn, String s, Vector<String> lis) {\n\t\tVector tempv = new Vector();\n\t\tif(htn.nodeAttr == 2) {\n\t\t\ttempv = htn.itemsetList;\n\t\t\tfor(int j = 1; j<=tempv.size(); j++) {\n\t\t\t\tif (((ItemsetNode)tempv.get(j-1)).count >= MINSUP * LINES) {\n\t\t\t\t\tString frequentString = ((ItemsetNode)tempv.get(j-1)).itemset;\n\t\t\t\t\tlis.addElement(frequentString);\n\t\t\t\t\titemsetVector.addElement(frequentString);\n\t\t\t\t\tnumVector.addElement(((ItemsetNode)tempv.get(j-1)).count/1000.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse { // HashTable node\n\t\t\tif(htn.hashTable == null) \n\t\t\t\treturn;\n\t\t\tfor(int t = i+1; t<=NUM; t++) {\n\t\t\t\tif(htn.hashTable.containsKey(getItemAt(s, t))) {\n\t\t\t\t\tgetFrequentHash(t, (HashTreeNode)htn.hashTable.get((getItemAt(s, t))), s, lis);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<String> top5search(String kw1, String kw2) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\tArrayList<String> results = new ArrayList<String>();\n\t\tArrayList<Occurrence> ocArr1 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> ocArr2 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> combined = new ArrayList<Occurrence>();\n\t\t\n\t\tif (keywordsIndex.containsKey(kw1))\n\t\t\tocArr1 = keywordsIndex.get(kw1);\n\t\t\n\t\tif (keywordsIndex.containsKey(kw2))\n\t\t\tocArr2 = keywordsIndex.get(kw2);\n\t\t\n\t\tcombined.addAll(ocArr1);\n\t\tcombined.addAll(ocArr2);\n\t\t\n\t\tif (!(ocArr1.isEmpty()) && !(ocArr2.isEmpty()))\n\t\t{\n\t\t\t// Sort with preference for ocArr1\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = 1; y < combined.size()-x; y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(y-1).frequency < combined.get(y).frequency)\n\t\t\t\t\t{\n\t\t\t\t\t\tOccurrence temp = combined.get(y-1);\n\t\t\t\t\t\tcombined.set(y-1, combined.get(y));\n\t\t\t\t\t\tcombined.set(y, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove duplicates\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = x + 1; y < combined.size(); y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(x).document == combined.get(y).document)\n\t\t\t\t\t\tcombined.remove(y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Top 5\n\t\twhile (combined.size() > 5)\n\t\t\tcombined.remove(combined.size()-1);\n\t\t\n\t\t//System.out.println(combined);\n\t\t\n\t\tfor (Occurrence oc : combined)\n\t\t\tresults.add(oc.document);\n\n\t\treturn results;\n\t\n\t\t\n\t\t// following line is a placeholder to make the program compile\n\t\t// you should modify it as needed when you write your code\n\t\n\t}", "public static void rankFiles(Hashtable<?, Integer> fname, int numberOfOccurrences) \r\n\t{\n\t\tArrayList<Map.Entry<?, Integer>> arrayList = new ArrayList(fname.entrySet());\r\n\r\n\t\tCollections.sort(arrayList, new Comparator<Map.Entry<?, Integer>>() \r\n\t\t{\r\n\t\t\tpublic int compare(Map.Entry<?, Integer> obj1, Map.Entry<?, Integer> obj2) \r\n\t\t\t{\r\n\t\t\t\treturn obj1.getValue().compareTo(obj2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tCollections.reverse(arrayList);\r\n\r\n\t\tif (numberOfOccurrences > 0) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\n------Top 10 search results-----\\n\");\r\n\r\n\t\t\tint my_number = 10;\r\n\t\t\tint j = 1;\r\n\t\t\twhile (arrayList.size() > j && my_number > 0) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"(\" + j + \") \" + arrayList.get(j) + \" times \");\r\n\t\t\t\tj++;\r\n\t\t\t\tmy_number--;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "static int designerPdfViewer(int[] h, String word) {\r\n\t\tif (word.length() > 10) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tfor (int i = 0; i < h.length; i++) {\r\n\t\t\tif (h[i] > 7 || h[i] < 1)\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\t\tchar[] ourChar = word.toLowerCase().toCharArray();\r\n\t\tint maxHeight = 0;\r\n\t\tfor (int i = 0; i < ourChar.length; i++) {\r\n\t\t\tfor (int x = 0; x < alphabet.length; x++) {\r\n\t\t\t\tif (ourChar[i] == alphabet[x]) {\r\n\t\t\t\t\tif (maxHeight < h[x])\r\n\t\t\t\t\t\tmaxHeight = h[x];\r\n\t\t\t\t\t//System.out.println(h[i] + \" max:\" + maxHeight);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn maxHeight * word.length();\r\n\t}", "long getEmbeddingTokenHigh();", "long getEmbeddingTokenHigh();", "int maxLength() {\n try (Stream<String> words = Files.lines(dictionary)) {\n return words.mapToInt(String::length).max().orElse(0);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public MaxHeap() {\n this(64);\n }", "public List<Token> getMostFrequentVARS(final int k) {\n\t\tList<Token> f = new LinkedList<Token>();\n\t\tfor (Entry<Token, Integer> s : VAR_FREQUENCY.entrySet()) {\n\t\t\tToken t = s.getKey();\n\t\t\tt.frequency = s.getValue();\n\t\t\tf.add(t);\n\t\t}\n\t\tComparator<Token> c = new Comparator<Token>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Token a, Token b) {\n\t\t\t\treturn new Integer(b.frequency).compareTo(new Integer(\n\t\t\t\t\t\ta.frequency));\n\t\t\t}\n\t\t};\n\t\tCollections.sort(f, c);\n\t\tif (k > 0 && f.size() > k) {\n\t\t\tList<Token> nf = new LinkedList<Token>();\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tnf.add(f.get(i));\n\t\t\t}\n\t\t\treturn nf;\n\t\t}\n\t\treturn f;\n\t}", "public MaxPq(int maxN)\n\t{\n\t pq = (Key[]) new Comparable[maxN+1]; \n\t}", "public static void getHotItems(int k) throws IOException {\r\n\t\twlist = new ArrayList();\r\n\t\twlist.clear();\r\n\t\tBufferedReader input = new BufferedReader(new FileReader(\r\n\t\t\t\t\"frequency.txt\"));\r\n\t\tString buff = input.readLine();\r\n\t\t// \"sssss#xxx\\n\"\r\n\t\twhile (buff != null) {\r\n\t\t\tString str[] = buff.split(\"#\");\r\n\t\t\tWord w = new Word(str[0]);\r\n\t\t\tw.setfreq(Integer.parseInt(str[1]));\r\n\t\t\twlist.add(w);\r\n\t\t\tbuff = input.readLine();\r\n\t\t}\r\n\t\tinput.close();\r\n\t\tsort(k);\r\n\t\tfor (int i = 0; i < k; i++) {\r\n\t\t\tSystem.out.print(wlist.get(i).getval() + \"|\");\r\n\t\t}\r\n\t}", "public static TrigramsOcurrence greatest(ArrayList<TrigramsOcurrence> frequencies) {\n TrigramsOcurrence greatest = frequencies.get(0);\n for (TrigramsOcurrence frecuency : frequencies) {\n if (greatest.getFrequency() < frecuency.getFrequency()) {\n greatest = frecuency;\n }\n }\n return greatest;\n }", "public GenericPair<Integer, HashSet<Integer>> maxTargetSentenceLength(String[][] bitext){\n\t\tint maxLength = 0;\n\t\t\n\t\tHashSet<Integer> targetLengthSet = new HashSet<Integer>();\n\t\tfor (String[] fe : bitext){\n\t\t\tint tempLength = fe[1].split(\" \").length;\n\t\t\tif ( tempLength > maxLength)\n\t\t\t\tmaxLength = tempLength;\n\t\t\ttargetLengthSet.add(tempLength);\n\t\t}\n\t\treturn new GenericPair<Integer, HashSet<Integer>>(maxLength, targetLengthSet);\n\t}", "public List<Integer> topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map=new HashMap<Integer, Integer>();\n for(int num:nums)\n {\n if(map.containsKey(num))\n map.put(num, map.get(num)+1);\n else\n map.put(num,1);\n }\n\t\t//make min heap\n PriorityQueue<Node> pq=new PriorityQueue<Node>(new Comparator<Node>(){\n public int compare(Node a, Node b)\n {\n return a.count-b.count;\n }\n });\n for(int key:map.keySet())\n {\n Node n=new Node(key, map.get(key));\n pq.offer(n);\n if(pq.size()>k)\n pq.poll();\n }\n List<Integer> list=new ArrayList<Integer>();\n while(!pq.isEmpty())\n {\n list.add(pq.poll().n);\n }\n \n return list;\n }", "public String mostCommonWord(String[] tweets) {\n int big = -100000;\n String mostCommon = null;\n for (String tweet : tweets) {// = for(int i = 0 ; i<tweets.length;i++) { String tweet = tweets[i] }\n for (String word : tweet.split(\" \")) {\n int amt = 0;\n for (String tweet2 : tweets)\n for (String word2 : tweet2.split(\" \"))\n if (word2.equals(word))\n amt++;\n if (amt > big) {\n big = amt;\n mostCommon = word;\n }\n }\n }\n return mostCommon;\n}", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "private static String frequencySort(String s) {\n if (s == null || s.isEmpty()) { return s; }\n\n int[] freq = new int[256];\n for (char c : s.toCharArray()) {\n freq[c]++;\n }\n\n PriorityQueue<Pair<Character, Integer>> pq = new PriorityQueue<>((a, b) -> b.getValue() - a.getValue());\n for (int i = 0; i < freq.length; i++) {\n if (freq[i] == 0) { continue; }\n Pair<Character, Integer> pair = new Pair<>((char) (i), freq[i]);\n pq.offer(pair);\n }\n\n StringBuilder sb = new StringBuilder();\n while (!pq.isEmpty()) {\n Pair<Character, Integer> pair = pq.poll();\n for (int i = 0; i < pair.getValue(); i++) {\n sb.append(pair.getKey());\n }\n }\n return sb.toString();\n }", "public static void main(String[] args) {\n int[] data = new int[]{1, 1, 1, 2, 3, 4, 5, 2, 1, 2, 3, 4, 5, 1, 2, 3, 2, 2, 3};\n LeetCode347 obj = new LeetCode347();\n List<Integer> list = obj.topKFrequent(data, 2);\n System.out.println(\"result\");\n for (int n : list) {\n System.out.println(n);\n }\n }", "public int heapSize();", "public static PriorityQueue<WordCount> sortWords(HashMap<String, Integer> counts){\n\t\tPriorityQueue<WordCount> words = new PriorityQueue<WordCount>(99999, new wordCountComparator());\n\t\tWordCount wc = null;\n\t\tfor(Map.Entry<String, Integer> entry : counts.entrySet()){\n\t\t\twc = new WordCount(entry.getKey(), entry.getValue());\n\t\t\twords.add(wc);\n\t\t}\n\t\treturn words;\n\t}", "public String toString(int maxNumber) {\n\t\tStringBuffer output = new StringBuffer(\"Frequent Item Sets (\" + size() + \"):\" + Tools.getLineSeparator());\n\t\tif (frequentSets.size() == 0) {\n\t\t\toutput.append(\"no itemsets found\");\n\t\t} else {\n\t\t\tint counter = 0;\n\t\t\tfor (FrequentItemSet set : frequentSets) {\n\t\t\t\tcounter++;\n\t\t\t\tif ((maxNumber > 0) && (counter > maxNumber)) {\n\t\t\t\t\toutput.append(\"... \" + (size() - maxNumber) + \" additional item sets ...\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\toutput.append(set.getItemsAsString());\n\t\t\t\t\toutput.append(\" / \");\n\t\t\t\t\toutput.append(Tools.formatNumber((double) set.getFrequency() / (double) numberOfTransactions));\n\t\t\t\t\toutput.append(Tools.getLineSeparator());\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn output.toString();\n\t}" ]
[ "0.7857239", "0.64130825", "0.6328938", "0.6053053", "0.6043505", "0.5862155", "0.58611566", "0.58539873", "0.5851019", "0.58121777", "0.55606204", "0.5513761", "0.55070376", "0.5491103", "0.54109544", "0.5402455", "0.53878915", "0.5364981", "0.53057593", "0.5266635", "0.52646166", "0.5260285", "0.5228389", "0.52141047", "0.51977426", "0.51855445", "0.5165002", "0.5155301", "0.5135355", "0.5021822", "0.5014901", "0.49802506", "0.4975799", "0.49513903", "0.49424395", "0.49264628", "0.49250758", "0.492173", "0.49112704", "0.49011302", "0.48936546", "0.48911908", "0.48907042", "0.48808655", "0.4868282", "0.48614588", "0.48511127", "0.4846618", "0.48446742", "0.48406565", "0.48403922", "0.48353675", "0.48352858", "0.48259583", "0.4792189", "0.47842276", "0.47737992", "0.47708282", "0.4747622", "0.47466302", "0.47401068", "0.47345895", "0.47178328", "0.47164676", "0.47162366", "0.47162366", "0.47132695", "0.47126216", "0.4696847", "0.46941304", "0.4684538", "0.4680576", "0.46718714", "0.46624494", "0.4659157", "0.4652822", "0.46506253", "0.46464014", "0.46447322", "0.46408477", "0.46382585", "0.46360835", "0.4626292", "0.46258017", "0.46258017", "0.46246555", "0.4617465", "0.4615243", "0.46091416", "0.46032935", "0.46019545", "0.45980746", "0.45953405", "0.45945948", "0.45925343", "0.45862728", "0.45764935", "0.45737576", "0.45637342", "0.45606685" ]
0.8007977
0
/ Purpose: Obtain the 5 most frequent words found that begin with the given letter Parameters: MaxFrequencyHeap h the heap containing all the word entry data char letter only words that begin with given letter are considered Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs with the maximum frequency values of words that begin with the given letter)
public static Entry[] startsWith(MaxFrequencyHeap h, char letter) { Entry[] top5 = new Entry[CAPACITY]; int counter = 0; // While our heap is not empty and we // havent found the top 5 words of the minimum length n // remove the max word from our heap while(h.size()>0 && counter!=5){ Entry current_entry = h.removeMax(); String current_word = current_entry.getWord(); // If the current entry word starts with the letter we are looking for // add the entry to our top5 array if(current_word.charAt(0)==letter){ top5[counter] = current_entry; counter++; } } return top5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Entry[] overallMostFrequent(MaxFrequencyHeap h) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint top5_counter = 0; // our temporary top5 counter\r\n\r\n\t\t// Iterate through our maxheap until we find the top 5 words\r\n\t\twhile(top5_counter<5){\r\n\t\t\t// If our heap is empty simply return the top5 array\r\n\t\t\tif(h.isEmpty()){\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}else{\r\n\t\t\t\t// Add the current max word from our heap using remove max\r\n\t\t\t\ttop5[top5_counter] = h.removeMax();\r\n\t\t\t\ttop5_counter++; // Increment our top 5 counter\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn top5;\r\n\t}", "public static Entry[] atLeastLength(MaxFrequencyHeap h, int n) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\t// While our heap is not empty and we\r\n\t\t// havent found the top 5 words of the minimum length n\r\n\t\t// remove the max word from our heap\r\n\t\twhile(h.size()>0 && counter!=5){\r\n\r\n\t\t\tEntry current_entry = h.removeMax();\r\n\r\n\t\t\tString current_word = current_entry.getWord();\r\n\r\n\t\t\t// If the current max word has a lenght at least the size of n,\r\n\t\t\t// add that entry to our top5 array\r\n\t\t\tif(current_word.length()>=n){\r\n\r\n\t\t\t\ttop5[counter] = current_entry;\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn top5;\r\n\t}", "private static ArrayList<sri.Pair<String,Integer>> mostFrequentWords(String path) throws IOException {\r\n PriorityQueue<Pair<String, Integer>> listOfWords = new PriorityQueue<>(10,(o1, o2) -> {\r\n return ((int) o2.getSecond() - (int) o1.getSecond());\r\n });\r\n\r\n HashMap<String,Integer> mapOfWords = new HashMap<>();\r\n\r\n BufferedReader br;\r\n String word;\r\n ArrayList outputList = new ArrayList();\r\n\r\n File file = new File(path);\r\n\r\n br = new BufferedReader(new FileReader(file));\r\n\r\n while ( (word = br.readLine()) != null) {\r\n if (mapOfWords.containsKey(word)) {\r\n mapOfWords.put(word, mapOfWords.get(word) + 1);\r\n } else {\r\n mapOfWords.put(word, 1);\r\n }\r\n }\r\n\r\n for (Map.Entry<String,Integer> entry: mapOfWords.entrySet()){\r\n sri.Pair<String,Integer> tuple = new sri.Pair<String,Integer>(entry.getKey(),entry.getValue());\r\n listOfWords.offer(tuple);\r\n }\r\n\r\n for (int i = 0; i < 5; i++){\r\n outputList.add(new sri.Pair<String,Integer>(listOfWords.peek().getFirst(),listOfWords.poll().getSecond()));\r\n }\r\n\r\n return outputList;\r\n\r\n\r\n }", "private static void printMostFrequentHashTags(){\n\t\t\n\t\tMap<String, Integer> hashtags = getHashTags();\n\t\tString max_count_hashtag[] = new String[3];\t//stores top 3 most frequent hashtags\n\t\tint max_counts[] = new int[3];\t//stores their count\n\t\t\n\t\tfor(String hashtag : hashtags.keySet()){\n\t\t\tint count = hashtags.get(hashtag);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_hashtag[index] = hashtag;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most freqent hashtags */\n\t\tSystem.out.println(\"top 3 most frequently used hashtags : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Hashtag : #\" + max_count_hashtag[i] + \" is used \"+ max_counts[i] + \" times.\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t}", "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t\tif(count > max_counts[index]){\n\t\t\t\tmax_counts[index] = count;\n\t\t\t\tmax_count_string[index] = str;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* printing top 3 most frequently used words */\n\t\tSystem.out.println(\"top 3 most frequently used words : \");\n\t\tfor(int i=0; i<3; i++){\n\t\t\tSystem.out.println(\"Word : \\\"\" + max_count_string[i] + \"\\\" is used \"+ max_counts[i] +\" times\" );\n\t\t}\n\t\tSystem.out.println();\n\t}", "public String[] topKFrequent(String[] combo, int k) {\n\t if (combo.length == 0) {\n\t return new String[0];\n\t }\n\t // get all the distinct strings at keys and their frequencies as values.\n\t Map<String, Integer> freqMap = getFreqMap(combo);\n\t // NOTICE: using map.Entry as the element type directly so that all the \n\t // operations are mostly efficient.\n//\t Comparator<Map.Entry<String, Integer>> comp = new Comparator<Map.Entry<String, Integer>>() {\n//\t @Override\n//\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n//\t return e1.getValue().compareTo(e2.getValue());\n//\t }\n//\t };\n\t PriorityQueue<Map.Entry<String, Integer>> minHeap = \n\t new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n\t\t @Override\n\t\t public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n\t\t return e1.getValue().compareTo(e2.getValue());\n\t\t }\n\t\t });\n\t for (Map.Entry<String, Integer> entry : freqMap.entrySet()) {\n\t \tif (minHeap.size() < k) {\n\t \t\tminHeap.offer(entry);\n\t \t} else if (entry.getValue() > minHeap.peek().getValue()){\n\t \t\tminHeap.poll();\n\t \t\tminHeap.offer(entry);\n\t \t}\n\t }\n\t // since the returned array requires the strings sorted by their frequencies,\n\t // use a separate helper method to do this operation.\n\t return freqArray(minHeap);\n\t}", "public int maxNumber(){\n int highest = 0;\n ArrayList<String> currentFileList = null;\n for (String word : hashWords.keySet()) {\n currentFileList= hashWords.get(word);\n int currentNum = currentFileList.size();\n if (currentNum > highest) {\n highest = currentNum;\n }\n // System.out.println(\"currentFileList \" + currentFileList +\"highest num = \"+ highest );\n }\n \n return highest;\n /*for (ArrayList s : hashWords.values()){\n if (s.size() > maxSize) {\n maxSize = s.size();\n }\n }\n return maxSize;*/\n }", "public static void main(String[] args)\n {\n System.out.println(\"Enter your sentence: \");\n Scanner in = new Scanner(System.in);\n //Take the entered sentence\n String input = in.nextLine();\n //This is for searching\n char auxiliary = 'a';\n //This is the final letter which has the highest occurrence\n char[] letter = new char[26];\n int arrayCounter = 0;\n //This is simply a counter\n int frequency = 0;\n //This shows the highest frequency of a letter inside the entered sentence\n int maxFrequency = 0;\n //The outer loop goes for all letters in English\n for(int i = 0; i < 26; i++)\n {\n //The inner loop searches along the whole entered sentence\n for(int j = 0; j < input.length(); j++)\n {\n //No matter if the letter inside the sentence is capital or small\n if((auxiliary+i == input.charAt(j)) || (auxiliary+i-32 == input.charAt(j)))\n {\n frequency++;\n }\n }\n //The counted number and its associated letter are saved as maxFrequency and\n //letter respectively, only if it is higher than the\n //previous maxFrequency\n if(frequency > maxFrequency)\n {\n maxFrequency = frequency;\n frequency = 0;\n letter[arrayCounter] = (char) (auxiliary+i);\n arrayCounter++;\n }\n //In case more than one letter has been repeated with the highest frequency\n else if((frequency == maxFrequency) && ((maxFrequency > 0)))\n {\n frequency = 0;\n letter[arrayCounter] = (char) (auxiliary+i);\n arrayCounter++;\n }\n else\n {\n //If not bigger than the max, its value simply vanishes!\n frequency = 0;\n }\n }\n System.out.print(\"The letter(s) \");\n for(int i = 0; i < arrayCounter-1; i++)\n {\n System.out.print(letter[i] + \", \");\n }\n System.out.print(letter[arrayCounter-1]);\n System.out.print(\" has/have been repeated (regardless of being small or capital) \"\n +maxFrequency+\" times,\" +\n \" which is the maximum in this entered sentence!\");\n }", "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n //Creating the array that will hold all the hotwords in order of number of appearances \r\n String[] topWord = new String[words.size()];\r\n //This is the subset of the array above that will return the amount specified by the count argument\r\n String[] output = new String[count];\r\n //Fills the array with blank strings\r\n Arrays.fill(topWord, \"\");\r\n //Iterator for moving through topWord for assignment\r\n int iterator = 0;\r\n //Loop through every hotword in words and puts those words in topWord\r\n for(String key: words.keySet()){\r\n topWord[iterator] = key;\r\n iterator++;\r\n }\r\n //Sorts the words in topword\r\n for(int i = 0; i < words.size(); i++){\r\n for(int j = words.size()-1; j > 0; j-- ){\r\n \r\n if(count(topWord[j]) > count(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n \r\n }\r\n }\r\n //Does a secondary check to be certain all words are in proper appearance number order\r\n for(int i = words.size()-1; i >0; i--){\r\n if(count(topWord[i]) > count(topWord[i-1])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[i-1];\r\n topWord[i-1] = temp;\r\n }\r\n }\r\n //Orders the words with the same number of appearances by order of appearance in the document\r\n for (int i = 0; i < words.size(); i++){\r\n for(int j = i+1; j < words.size(); j++){\r\n if (count(topWord[i]) == count(topWord[j])){\r\n if (consec.indexOf(topWord[j]) < consec.indexOf(topWord[i])){\r\n String temp = topWord[i];\r\n topWord[i] = topWord[j];\r\n topWord[j] = temp;\r\n }\r\n }\r\n }\r\n }\r\n //Gets the subset requested for return\r\n for (int i = 0; i < count; i++){\r\n output[i] = topWord[i];\r\n }\r\n return output;\r\n\t}", "public String[] topKFrequent(String[] combo, int k) {\n if (combo == null || combo.length == 0 || k <= 0) {\n return new String[0];\n }\n Map<String, Integer> map = getMap(combo);\n PriorityQueue<Map.Entry<String, Integer>> minHeap = new PriorityQueue<>(k, new Comparator<Map.Entry<String, Integer>>() {\n @Override\n public int compare(Map.Entry<String, Integer> e1, Map.Entry<String, Integer> e2) {\n if (e1.getValue().equals(e2.getValue())) {\n return 0;\n }\n return e1.getValue() < e2.getValue() ? -1 : 1;\n }\n });\n for (Map.Entry<String, Integer> entry : map.entrySet()) {\n if (minHeap.size() < k) {\n minHeap.offer(entry);\n } else if (entry.getValue() > minHeap.peek().getValue()) {\n minHeap.poll();\n minHeap.offer(entry);\n }\n }\n String[] res = new String[minHeap.size()];\n for (int i = minHeap.size() - 1; i >= 0; i--) {\n res[i] = minHeap.poll().getKey();\n }\n return res;\n }", "public Object[][] get20MostFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "private Set<String> get5000MostPopularWords(Predicate<String> stringFilter) throws FileNotFoundException {\n InputStream wordIS = this.getClass().getResourceAsStream(\"5000-MostPopularEnglishWords.txt\"); // not the best file since it has dups and words that are one and two characters\n BufferedReader reader = new BufferedReader(new InputStreamReader(wordIS));\n\n return reader.lines()\n .filter(stringFilter)\n .collect(Collectors.toSet());\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\t\n\t\tint currentHash = 0; /* will be changed in the while loop to store the hash code for current word*/\n\t\tString currentWord; /* will be changed in the while loop to store the current word*/\n\t\t\n\t\tChainHashMap<myString, Integer> wordFrequency = new ChainHashMap<myString, Integer>(500); /* create the chain hash map with the size of 500; there is 500 buckets in the map*/\n\t\t\n\t\t\n\t\tFile file = new File(\"/Users/Jacob/Downloads/shakespeare.txt\");\n\t\t/*please notice that the file cannot be found on the address given above, change it to test if it works!*/\n\t\tScanner input = new Scanner(file); /* should be changed to file after debugging*/\n\t\t\n\t\t\n\t\twhile(input.hasNext()){\n\t\t\tcurrentWord = input.next();\n\t\t\t\n\t\t\twhile(currentWord.equals(\".\") || currentWord.equals(\",\") || currentWord.equals(\"!\") || currentWord.equals(\"?\") || currentWord.equals(\";\") || currentWord.equals(\":\")){\n\t\t\t\tif(input.hasNext()){\n\t\t\t\t\tcurrentWord = input.next();\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmyString wordString = new myString(currentWord);\n\t\t\t\n\t\t\tif(wordFrequency.get(wordString) == null){\n\t\t\t\t\n\t\t\t\twordFrequency.put(wordString, 1); /* the key is the string and the value should be the word frequency*/\n\t\t\t}else{\n\n\t\t\t\twordFrequency.put(wordString, wordFrequency.get(wordString) + 1); /* if the key is already in the map, increment the word frequency by 1*/\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* till this point, all the work of Shakespeare have been stored in the chained hash map*/\n\t\t/* the heap is used to get the top 1000 frequent work*/\n\t\t/* it adds the element to the heap and when the size of the heap reaches 1000, the word with the lowest will be removed, which is the root of the heap*/\n\t\t/* the two element in the entry for the heap should be exchanged; the key should store the frequencies and the the value should be the string */\n\t\t\n\t\tHeapAdaptablePriorityQueue<Integer, String> frequencyHeap = new HeapAdaptablePriorityQueue<Integer, String>();\n\t\t\n\t\tfor(Entry<myString, Integer> word: wordFrequency.entrySet()){\n\t\t\tint currentFrequency = word.getValue(); /* store the value of the entry in the chain hash map, will be used as the key for the heap*/\n\t\t\tString currentString = word.getKey()._word; /* store the string in the key of the entry of the chain hash map, will be used as the value for the heap*/\n\t\t\t\n\t\t\tfrequencyHeap.insert(currentFrequency, currentString);\n\t\t\t\n\t\t\tif(frequencyHeap.size() > 1000){\t\t\t\t\n\t\t\t\tfrequencyHeap.removeMin(); /* keep the heap size fixed at 1000; remove the minimum in the heap if the size exceeds 1000*/\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* till now, all the entries has been stored in the heap*/\n\t\t/* get the minimum value and key (the frequency and the corresponding word), then remove the minimum from the heap*/\n\t\t/* the data is stored in the excel form; the screen shot is provided in the document*/\n\t\t\n\t\twhile(frequencyHeap.size() > 0){\n\t\t\tSystem.out.println(frequencyHeap.min().getValue()); /* get the word from the ascending order of the frequency*/\n\t\t\tSystem.out.println(frequencyHeap.min().getKey()); /* get the frequency of the word*/\n\t\t\t\n\t\t\tfrequencyHeap.removeMin();\n\t\t}\n\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tchar[] arr= s.toLowerCase().toCharArray();\n\t\tint indx[] = new int[26];\n\t\tint asciiOffset = 97;\n\t\tfor(int x=0;x<arr.length ;x++){\n\t\t\tindx[arr[x]-asciiOffset] = indx[arr[x]-asciiOffset]+1;\n\t\t}\n\t\tint max =indx[0];\n\t\tint indexOfMax = 0;\n\t\tfor(int i=1; i<indx.length; i++){\n\t\t\tif(indx[i]>max){\n\t\t\t\tmax = indx[i];\n\t\t\t\tindexOfMax=i;\n\t\t\t}\t\n\t\t}\n\t\tchar ch = (char)(asciiOffset+indexOfMax);\n\t\tSystem.out.println(\"Max occurance of the character is =\"+ch);\n\t}", "public static void main(String argv[]) throws java.io.IOException {\n\n int i = getNext();\n int charCount = 0; // holds a word's character count\n String largestWord = null;\n\n while (i != -1) {\t// Repeat until end-of-file is reached.\n\n if ( !whiteSpace((char)i)) {\n StringBuilder stringBuilder = new StringBuilder(100);\n\n //\n // Word state\n //\n words++;\t\t// We've seen another word.\n do {\t\t\t// Skip to the next white space character.\n stringBuilder.append((char)i); // build the word, so we can get the length\n i = getNext();\n } while (i != -1 && !whiteSpace((char)i));\n\n // We check if the word is bigger (but not equal) than what we previously found.\n // (if we have multiple of the same length, we just want the first).\n if (stringBuilder.length() > charCount) {\n charCount = stringBuilder.length();\n largestWord = stringBuilder.toString();\n }\n\n\n } else {\n //\n // whiteSpace state\n //\n do {\n if ((char)i == '\\n') {\n lines++;\t\t// We've seen another line;\n }\n i = getNext();\n } while (whiteSpace((char)i));\n }\n }\n System.out.println(\" \" + largestWord + \" \" + lines + \" \" + words + \" \" + characters);\n }", "public List<String> topKFrequent(String[] words, int k) {\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n\n for (String s : words) {\n map.put(s, map.getOrDefault(s, 0) + 1);\n }\n \n ArrayList<Integer> allFrequencies = new ArrayList<Integer>();\n\n \n map.forEach((key,v) -> allFrequencies.add(v));\n IO.printArrayList(allFrequencies);\n // Add all the frequencies into allFrequencies arraylist\n int totalAmountOfWords = map.keySet().size();\n \n // Find the k th largest number in the allFrequencies arraylist\n //System.out.println(\"total: \"+totalAmountOfWords);\n int newK = totalAmountOfWords - k;\n //System.out.println(\"newk: \"+ newK);\n int newkth = findKth(allFrequencies, newK);\n //System.out.println(\"new kth element:\"+newkth);\n int newKthElement = newK > 0 ? newkth : 0 ;\n \n TreeMap<Integer, TreeSet<String>> reverseSortedMap = new TreeMap<Integer, TreeSet<String>>(Collections.reverseOrder());\n map.forEach((key,v) -> {if (v >= newKthElement ) {\n if(!reverseSortedMap.containsKey(v)) reverseSortedMap.put(v, new TreeSet<String>());\n reverseSortedMap.get(v).add(key);}});\n \n List<String> result = new ArrayList<String>();\n reverseSortedMap.forEach((key,v) -> {result.addAll(v);});\n \n return result.size() > k? result.subList(0, k): result;\n }", "static int designerPdfViewer(int[] h, String word) {\r\n \tchar c='a';\r\n \tint maxHeight=0;\r\n \tMap<Character, Integer> alphabet = new HashMap<>(); \t\r\n \tfor(int height:h) {\r\n \t\talphabet.put(c, height);\r\n \t\tc++;\r\n \t}\r\n \tfor(int i=0;i<word.length();i++) {\r\n \t\tif( alphabet.get( word.charAt(i) ) > maxHeight ) {\r\n \t\t\tmaxHeight = alphabet.get( word.charAt(i) );\r\n \t\t}\r\n \t}\r\n \t//System.out.println(alphabet);\r\n \treturn maxHeight*word.length();\r\n }", "String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }", "public HashMap<String, Integer> getOrder(){\n\t\t\n\t\tHashMap<String, Integer> hm2 = getHashMap();\n\t\n\t\tArrayList fq = new ArrayList<>();\n\t\t\n\t\tHashMap<String, Integer> top10 = new HashMap<String, Integer>();\n\t\t\n\t\tfor(String key : hm2.keySet()){\n\t\t\t\n\t\t\tfq.add(hm2.get(key));\n\t\t}\n\t\t// use Collection to get the order of frequency\n\t\tCollections.sort(fq);\n \tCollections.reverse(fq);\n \t\n \tfor(int i = 0; i<11; i++){\n \t\t\n \t\tfor(String key : hm2.keySet()){\n \t\t// make sure the word not equals to balck space\n \t\tif(hm2.get(key) == fq.get(i) && !key.equals(\"\") ){\n \t\t\t\n \t\t top10.put(key, hm2.get(key));\n \t\t\t\t\n \t\t}\n \t}\t\n\t}\n\t\treturn top10;\n\t}", "static int designerPdfViewer(int[] h, String word) {\r\n\t\tif (word.length() > 10) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tfor (int i = 0; i < h.length; i++) {\r\n\t\t\tif (h[i] > 7 || h[i] < 1)\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tchar[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\r\n\t\tchar[] ourChar = word.toLowerCase().toCharArray();\r\n\t\tint maxHeight = 0;\r\n\t\tfor (int i = 0; i < ourChar.length; i++) {\r\n\t\t\tfor (int x = 0; x < alphabet.length; x++) {\r\n\t\t\t\tif (ourChar[i] == alphabet[x]) {\r\n\t\t\t\t\tif (maxHeight < h[x])\r\n\t\t\t\t\t\tmaxHeight = h[x];\r\n\t\t\t\t\t//System.out.println(h[i] + \" max:\" + maxHeight);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn maxHeight * word.length();\r\n\t}", "public static List<String> topKFrequent_pq(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1) == countMap.get(word2)) {\n return word2.compareTo(word1);\n }\n return countMap.get(word1) - countMap.get(word2);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n if (pq.size() > k) {\n pq.poll();\n }\n }\n\n List<String> ans = new ArrayList<>();\n while (!pq.isEmpty()) {\n ans.add(pq.poll());\n }\n Collections.reverse(ans);\n return ans;\n }", "public static char maximumOccurringCharacter(String text) {\n char[] charArray= text.toCharArray() ;\n HashMap<Character, Integer> map= new HashMap<>() ;\n for(Character c : charArray){\n if(map.containsKey(c)){\n int value = map.get(c) ;\n map.put(c , value + 1) ;\n }\n else{\n map.put(c , 1) ;\n }\n }\n\n char maxKey ; int maxValue = Integer.MIN_VALUE ;\n LinkedList<Character> maxList = new LinkedList<>() ;\n for(char key: map.keySet()){\n if(map.get(key)>maxValue){\n maxValue = map.get(key) ;\n }\n }\n\n for(char key: map.keySet()){\n if(map.get(key)== maxValue){\n maxList.add(key) ;\n }\n }\n\n char earlier = Character.MAX_VALUE ;\n for(int counter = 0 ; counter< maxList.size() ; counter++){\n if( maxList.get(counter)< earlier){\n earlier = maxList.get(counter) ;\n }\n }\n return earlier ;\n }", "public Object[][] get20MostInterestingFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn map.get(s1) - map.get(s2);\n\t\t\t}\n\t\t});\n\t\tSet<String> stopwords = getStopWords();\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\t if(stopwords.contains(token) || token.length()==0) continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) > map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public Pair[] top10Words(){\n Pair[] top10Words = new Pair[10];\n int top10LeastOccurrence = 9;\n\n for (String word : matchedSongs.keySet()){\n int currentSize = matchedSongs.get(word).size();\n //Array is sorted from greatest to least, just need to compare last value to current value.\n //Sorting after insertion will ensure it is in order for next time we perform a compare.\n if (top10Words[top10LeastOccurrence] == null || (int) top10Words[top10LeastOccurrence].getValue() < currentSize){\n top10Words[top10LeastOccurrence] = new Pair(word, currentSize);\n Arrays.sort(top10Words, new SortByHighestPair());\n }\n }\n return top10Words;\n }", "public static void main (String [] args)\r\n {\r\n System.out.println(\"\\nWelcome to Scrabble Word! This program finds the most valuable word based on a scrabble hand. The rules the program works off are the point values for letters provided by http://scrabble.hasbro.com/en-us/faq and the double score multiplier for consecutive double letters.\\n\");\r\n System.out.print(\"Please enter a list of letters, from 3 to 12 letters long, without spaces -> \"); \r\n String input = userInput(); \r\n if(input == null)\r\n {\r\n System.exit(0);\r\n }\r\n String [] word = findWords(input);\r\n printWords(word); \r\n //pointvalues of letters (alphabetical order)\r\n int [] table = {1,3,3,2,1,4,2,4,1,8,5,1,3,1,1,3,10,1,1,1,1,4,4,8,4,10};\r\n String best = bestWord(word,table);\r\n if(best == null || best.equals(\"\"))\r\n {\r\n System.out.println(\"No word from the IGN data source can be created with that input.\");\r\n System.exit(1);\r\n }\r\n System.out.println(\"\\n\\nHighest scoring word: \" + best + \"\\n\");\r\n }", "public static char getMaxFreq(String str){\n HashMap<Character,Integer> map=new HashMap<>();\n for(int i=0;i<str.length();i++){\n char cc=str.charAt(i);\n if(map.containsKey(cc)){\n int oldValue=map.get(cc);\n int newValue=oldValue+1;\n map.put(cc,newValue);\n }else{\n map.put(cc,1);\n }\n }\n char maxChar='\\0';\n int max=0;\n Set<Map.Entry<Character,Integer>> entries=map.entrySet();\n for(Map.Entry<Character,Integer> entry:entries){\n if(entry.getValue()>max){\n max=entry.getValue();\n maxChar=entry.getKey();\n }\n }\n return maxChar;\n }", "public static List<String> topKFrequent_hashmap(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n if (words == null || words.length == 0 || k <= 0) {\n return ans;\n }\n\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n List<Map.Entry<String, Integer>> list = new ArrayList<Map.Entry<String, Integer>>(freqMap.entrySet());\n list.sort((o1, o2) -> {\n if (o1.getValue().equals(o2.getValue())) {\n return o1.getKey().compareTo(o2.getKey());\n }\n\n return o2.getValue() - o1.getValue();\n });\n\n for (Map.Entry<String, Integer> entry : list) {\n ans.add(entry.getKey());\n k--;\n if (k <= 0) {\n return ans;\n }\n }\n\n return ans;\n }", "public Object[][] get20LeastFrequentWords(File file) throws Exception{\n\t\tObject[][] ans = new Object[20][2];\n\t\tHashMap<String,Integer> map = new HashMap<>();\n\t\tPriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){\n\t\t\tpublic int compare(String s1,String s2){\n\t\t\t\treturn -(map.get(s1) - map.get(s2));\n\t\t\t}\n\t\t});\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString line;\n\t\twhile((line=br.readLine())!=null){\n\t\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\t\tfor(String token : tokens){\n\t\t\t\tif(token.length()==0)continue;\n\t\t\t\t\tint val = map.getOrDefault(token, 0);\n\t\t\t\t\tmap.put(token,val+1);\n\t\t\t\t}\n\t\t}\n\t\tbr.close();\n Set<String> keys = map.keySet();\n int count = 0;\n for(String key : keys){\n \tif(count < 20){\n \t\tqueue.offer(key);\n \t\tcount++;\n \t}\n \telse{\n \t\tString topMin = queue.peek();\n \t\tif(map.get(key) < map.get(topMin)){\n \t\t\tqueue.poll();\n \t\t\tqueue.offer(key);\n \t\t}\n \t}\n }\n int index = ans.length-1;\n while(!queue.isEmpty() && index>=0){\n \tString key = queue.poll();\n \tint value = map.get(key);\n \tans[index][0] = key;\n \tans[index][1] = value;\n \tindex--;\n \t\n }\n\t\t\n\t\treturn ans;\n\t}", "public void apply(GlobalWindow window, Iterable<String> values, \n Collector<Tuple2<String,Integer>> out) throws Exception {\n \t HashMap <String,Integer> countWord = new HashMap<String,Integer>();\n \n for (String value : values) {\n \t \n \t String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n \t for (String token : tokens)\n \t {\t if (token.length() >0) {\n \t\t if (countWord.get(token) != null)\n { countWord.put(token, countWord.get(token)+1);}\n else\n {countWord.put(token, 1);}\n \t }\n \t\t \n \t }\n }\n \n \n //Comparator to sort in reverse\n \t\t\tComparator<String> comparator = new Comparator<String>() {\n \t\t\t public int compare(String o1, String o2) {\n \t\t\t return countWord.get(o1).compareTo(countWord.get(o2));\n \t\t\t }\n \t\t\t};\n\n \t\t\tArrayList<String> words = new ArrayList<String>();\n \t\t\twords.addAll(countWord.keySet());\n\n \t\t\tCollections.sort(words,comparator);\n \t\t\tCollections.reverse(words);\n \t\t\t\n// System.out.println(Arrays.asList(words));\n \t\t\tSystem.out.println(\"10 most frequent words per stream\");\n System.out.println(\"-----------\");\n \n for(int i = 0; i < 10; i++) {\n \tSystem.out.println(words.get(i) + \" : \" + countWord.get(words.get(i)));\n }\n \n \n System.out.println(\"\\n\");\n \n }", "public static void main(String[] args){\n \tunsortedWords = new ArrayList<String>();\n sortedWords = new ArrayList<String>();\n \ttry{\n \t\tInputStreamReader in = new InputStreamReader(System.in);\n \t\tBufferedReader input = new BufferedReader(in);\n \t\talphabetString = input.readLine();\n \t\tif (alphabetString == null || alphabetString == \"\"){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n\n \t\tstr = input.readLine();\n if (str == null || str == \"\"){\n throw new IllegalArgumentException();\n }\n \n \t\twhile (str != null){\n \t\t\tunsortedWords.add(str);\n \t\t\tstr = input.readLine();\n numberOfWords += 1;\n \t\t}\n\n\n\n \t}\n \tcatch (IOException io){\n \t\tSystem.out.println(\"There are no words given\");\n \t\tthrow new IllegalArgumentException();\n\n \t}\n\n alphabetMap = new HashMap<String, Integer>();\n String[] alphabetLetters = alphabetString.split(\"\");\n \tint j = 0;\n \tString letter;\n \t// String[] alphabetLetters = alphabetString.split(\"\");\n \twhile (j < alphabetLetters.length){\n letter = alphabetLetters[j];\n if (alphabetString.length() - alphabetString.replace(letter, \"\").length() > 1) {\n System.out.println(letter);\n throw new IllegalArgumentException();\n }\n alphabetMap.put(alphabetLetters[j], j);\n j += 1;\n }\n //for checking the last value something is in the outputed list. \n lastArrayIndex = 0;\n\n //sorts words\n int k = 0;\n String chosenWord;\n while (k < unsortedWords.size()){\n chosenWord = unsortedWords.get(k);\n sorting(chosenWord, sortedWords);\n k += 1; \n }\n\n //prints words\n int l = 0;\n String printedWord;\n while (l < sortedWords.size()){\n printedWord = sortedWords.get(l);\n System.out.println(printedWord);\n l += 1;\n }\n\n\n \t//making the trie\n // usedTrie = makeATrie(unsortedWords);\n\n //printing out the order\n // recursiveAlphabetSorting(usedTrie, \"\", alphabetString);\n\n\n }", "public String solve1(String s) {\n Map<String, Integer> frequency = new HashMap<>();\n String maxWord = null;\n String[] split = s.split(\" \");\n\n for (String word : split) {\n int newFrequency = frequency.getOrDefault(word, 0) + 1;\n frequency.put(word, newFrequency);\n if (newFrequency > frequency.getOrDefault(maxWord, 0)) {\n maxWord = word;\n }\n }\n\n return maxWord;\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n\t\tkw1 = kw1.toLowerCase();\n kw2 = kw2.toLowerCase();\n ArrayList <String> outArr = new ArrayList <String> ();\n ArrayList <Occurrence> kw1Arr = null;\n ArrayList <Occurrence> kw2Arr = null;\n for(String e: keywordsIndex.keySet()) {\n if(e.equals(kw1) == true) {\n kw1Arr = keywordsIndex.get(e);}\n if(e.equals(kw2) == true) {\n kw2Arr = keywordsIndex.get(e);}}\n int kw1Point = 0;\n int kw2Point = 0;\n for(int inc = 0; inc < 5; inc++) {\n int kw1Value = 0;\n Occurrence kw1Occ = null;\n int kw2Value = 0;\n Occurrence kw2Occ = null;\n if(kw1Arr != null && kw1Point < kw1Arr.size()) {\n kw1Occ = kw1Arr.get(kw1Point);\n kw1Value = kw1Occ.frequency;}\n if(kw2Arr != null && kw2Point < kw2Arr.size()) {\n kw2Occ = kw2Arr.get(kw2Point);\n kw2Value = kw2Occ.frequency;}\n if(kw1Value == 0 && kw2Value == 0) {\n \t//will only occur if the if-statements for 212 and 215 are false\n \t//which means that the array doesn't exist or the pointer has iterated through the whole array\n break;}\n if(kw1Value >= kw2Value) {\n outArr.add(kw1Occ.document);\n kw1Point = kw1Point + 1;}\n else {outArr.add(kw2Occ.document);\n kw2Point = kw2Point + 1;}}\n if(outArr.size() == 0) {//no found matches\n return null;}\n else {return outArr;}//found matches\n\t}", "public static String[] rechercheBigrammePlusFrequent(String text) {\n\t\tint n = text.length();\n\t\tArrayList<String> bigrammes = new ArrayList<String>();\n\t\tString[] bigrammesPlusFrequentsCorrespond = new String[5]; // resultat\n\t\tArrayList<String> bigrammesChiffréPlusFrequents = new ArrayList<String>();\n\t\tArrayList<Integer> nbrBigrammesPlusFrequents = new ArrayList<Integer>();\n\n\t\tfor (int i = 1; i < n - 1; i++) {\n\t\t\tString bigramme = text.substring(i, i + 2);\n\t\t\tbigrammes.add(bigramme);\n\t\t}\n\t\tfor (int j = 0; j < bigrammes.size(); j++) {\n\t\t\tint inter = 1;\n\t\t\tString bi = bigrammes.get(j);\n\t\t\tif ((!bigrammesChiffréPlusFrequents.contains(bi))) {\n\t\t\t\tfor (int k = j + 1; k < bigrammes.size(); k++) {\n\t\t\t\t\tif (bi.equals(bigrammes.get(k))) {\n\t\t\t\t\t\tinter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbigrammesChiffréPlusFrequents.add(bi);\n\t\t\t\tnbrBigrammesPlusFrequents.add(inter);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tint max = 1, id = 0;\n\t\t\tfor (int j = 0; j < bigrammesChiffréPlusFrequents.size(); j++) {\n\t\t\t\tif (nbrBigrammesPlusFrequents.get(j) >= max) {\n\t\t\t\t\tmax = nbrBigrammesPlusFrequents.get(j);\n\t\t\t\t\tid = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbigrammesPlusFrequentsCorrespond[i] = bigrammesChiffréPlusFrequents\n\t\t\t\t\t.get(id);\n\t\t\tnbrBigrammesPlusFrequents.set(id, 0);\n\t\t}\n\t\t// System.out.println(\"liste des bigrammes les plus fréquents\");\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\t// System.out.println(bigrammesPlusFrequentsCorrespond[i]);\n\t\t}\n\t\treturn bigrammesPlusFrequentsCorrespond;\n\t}", "private static int[] letterHist(String acharArray) {\n int[] alphabet = new int[26];\n\n for (int i = 0; i < acharArray.length(); i++) {\n char singleChar = acharArray.toLowerCase().charAt(i);\n\n if ('a' <= singleChar && 'z' >= singleChar) {\n alphabet[singleChar - 'a']++;\n }\n }\n return alphabet;\n }", "public static List<String> topKFrequent_pq_opt(String[] words, int k) {\n Map<String, Integer> countMap = new HashMap<>();\n for (String word : words) {\n countMap.put(word, countMap.getOrDefault(word, 0) + 1);\n }\n\n PriorityQueue<String> pq = new PriorityQueue<String>((word1, word2) -> {\n if (countMap.get(word1).equals(countMap.get(word2))) {\n return word1.compareTo(word2);\n }\n return countMap.get(word2) - countMap.get(word1);\n });\n\n for (String word : countMap.keySet()) {\n pq.offer(word);\n }\n\n List<String> ans = new ArrayList<>();\n for (int i = 0; i < k; i++) {\n ans.add(pq.poll());\n }\n\n return ans;\n }", "private static String frequencySort(String s) {\n if (s == null || s.isEmpty()) { return s; }\n\n int[] freq = new int[256];\n for (char c : s.toCharArray()) {\n freq[c]++;\n }\n\n PriorityQueue<Pair<Character, Integer>> pq = new PriorityQueue<>((a, b) -> b.getValue() - a.getValue());\n for (int i = 0; i < freq.length; i++) {\n if (freq[i] == 0) { continue; }\n Pair<Character, Integer> pair = new Pair<>((char) (i), freq[i]);\n pq.offer(pair);\n }\n\n StringBuilder sb = new StringBuilder();\n while (!pq.isEmpty()) {\n Pair<Character, Integer> pair = pq.poll();\n for (int i = 0; i < pair.getValue(); i++) {\n sb.append(pair.getKey());\n }\n }\n return sb.toString();\n }", "BigInteger getMax_freq();", "public static void main(String[] args) {\n\t\t \n\t\tTreeMap<Integer, Character> tm=new java.util.TreeMap<Integer, Character>();\n\t\t\n\t\ttm.put(1, 'D');\n\t\ttm.put(2, 'B');\n\t\ttm.put(3, 'A');\n\t\ttm.put(4, 'C');\n\t\ttm.put(2, 'D'); //latest key,value pair is considered \n\n\t\tSystem.out.println(tm);\n\t\tSystem.out.println(tm.size());\n\n}", "private void getTweetsMostCommonHashTag() {\r\n final List<Entry<String, Integer>> list = \r\n getCommonList(countHashtags, countHashtags.size());\r\n list.stream()\r\n .filter(entry -> !searched.contains(entry.getKey().toLowerCase()))\r\n .limit(1)\r\n .forEach(entry -> getTweets(entry.getKey(), geocode, getAuth()));\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint a[] = new int[26];\r\n\t\t\r\n\t\tint i=0;\r\n\t\t\r\n\t\twhile(i<26){\r\n\t\t\ta[i]=sc.nextInt();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tString word = sc.next();\r\n\t\t\r\n\t\tint maxLen=0;\r\n\t\tint hA=0;\r\n\t\t\r\n\t\tfor(int j=0; j<word.length(); j++){\r\n\t\t\thA=word.charAt(j)-97;\r\n\t\t\tif(maxLen<a[hA]){\r\n\t\t\t\tmaxLen = a[hA];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint result = word.length()*maxLen;\r\n\t\tSystem.out.println(result);\r\n\t}", "public String frequencySort(String s) {\n\n\t\t// prepare a frequency map\n\t\tMap<Character, Integer> m = new HashMap<Character, Integer>();\n\t\tfor (char c : s.toCharArray())\n\t\t\tm.put(c, m.getOrDefault(c, 0) + 1);\n\n\t\tPriorityQueue<CKEntry1> pq = new PriorityQueue<>();\n\t\tfor (Entry<Character, Integer> e : m.entrySet()) {\n\t\t\tpq.add(new CKEntry1(e.getKey(), e.getValue()));\n\t\t}\n\t\t\n\t\t// prepare the output now\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile(!pq.isEmpty()) {\n\t\t\tCKEntry1 temp = pq.poll();\n\t\t\tchar[] tempC = new char[temp.count];\n\t\t\tArrays.fill(tempC, temp.c); // repeat c count' times\n\t\t\tsb.append(tempC);\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\n\t}", "public static void main(String[] args) {\n\n\t\tHeap hp = new Heap();\n\t\thp.add(20);\n\t\thp.add(10);\n\t\thp.add(70);\n\t\thp.add(80);\n\t\thp.add(1);\n//\t\thp.display();\n//\n//\t\twhile (hp.size() != 0) {\n//\t\t\tSystem.out.println(hp.remove());\n//\t\t}\n\n\t\tint[] arr = { 1, 5, 2, 3, 10, 20, 2, 1, 6, 7 };\n\n\t\tKthLargest(arr, 3);\n\t}", "public static void main(String[] args) {\n String charArray = \"aBbCccDdddeFfGggHhhhXYZ\";\n System.out.println(\"Histogram for the word entered.\");\n System.out.println(Arrays.toString(letterHist(charArray)));\n\n String numberArray = \"0123456789\";\n System.out.println(\"\\nHistogram for the number entered.\");\n System.out.println(Arrays.toString(numberHeist(numberArray)));\n }", "private int findMostFrequent(int[] Array) {\n\t HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t for(int element: Array) {\n\t Integer frequency = map.get(element);\n\t map.put(element, (frequency != null) ? frequency + 1 : 1); \n\t }\n\t int mostFrequentItem = 0;\n\t int[] maxFrequencies = new int[2];\n\t maxFrequencies[0] = Integer.MIN_VALUE;\n\n\t for(Entry<Integer, Integer> entry: map.entrySet())\n\t {\n\t if(entry.getValue()>= maxFrequencies[0])\n\t {\n\t mostFrequentItem = entry.getKey();\n\t maxFrequencies[1] = maxFrequencies[0];\n\t maxFrequencies[0] = entry.getValue();\n\t }\n\t }\n\t // this is for a tie\n\t // TODO: Consider what happens when there is a tie between two occurrences\n\t // if(maxFrequencies[1] == maxFrequencies[0])\n\t // throw new Exception();//insert whatever exception seems appropriate\n\t return mostFrequentItem;\n\t}", "public static ArrayList<Integer> findAnagrams(String s, String p) {\r\n\t \t \r\n\t \t //write your code here\r\n\t\t if(s.length()<p.length()) {\r\n\t\t\t ArrayList<Integer> arr = new ArrayList<>();\r\n\t\t\t return arr;\r\n\t\t }\r\n\t\t ArrayList<Integer> result = new ArrayList<>();\r\n\t\t HashMap<Character,Integer> P = new HashMap<>();\r\n\t\t HashMap<Character,Integer> H = new HashMap<>();\r\n\t\t \r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = p.charAt(i);\r\n\t\t\t if(!P.containsKey(ch)) {\r\n\t\t\t\t P.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t P.put(ch,P.get(ch)+1);\r\n\t\t\t }\r\n\t\t }\r\n\t\t int start =0;\r\n\t\t int end=0;\r\n\t\t int mcount=0;\r\n\t\t for(int i=0;i<p.length();i++) {\r\n\t\t\t char ch = s.charAt(i);\r\n\t\t\t if(!H.containsKey(ch)) {\r\n\t\t\t\t H.put(ch,1);\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t H.put(ch,H.get(ch)+1);\r\n\t\t\t }\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t if(P.get(ch)>=H.get(ch)) {\r\n\t\t\t\t\t mcount++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t end=i;\r\n\t\t }\r\n\t\t if(mcount==p.length()) {\r\n\t\t\t result.add(start);\r\n\t\t }\r\n\t\t while(end<s.length()-1) {\r\n\t\t\t char ch=s.charAt(start);\r\n\t\t\t int hfreq = H.get(ch)-1;\r\n\t\t\t H.put(ch,hfreq);\r\n\t\t\t if(H.get(ch)==0) {\r\n\t\t\t\t H.remove(ch);\r\n\t\t\t }\r\n\t\t\t int pfreq=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreq=P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreq<pfreq) {\r\n\t\t\t\t mcount--;\r\n\t\t\t }\r\n\t\t\t ch=s.charAt(end+1);\r\n\t\t\t int hfreqend=0;\r\n\t\t\t if(H.containsKey(ch)) {\r\n\t\t\t\t hfreqend = H.get(ch);\r\n\t\t\t }\r\n\t\t\t hfreqend++;\r\n\t\t\t H.put(ch, hfreqend);\r\n\t\t\t int pfreqend=0;\r\n\t\t\t if(P.containsKey(ch)) {\r\n\t\t\t\t pfreqend = P.get(ch);\r\n\t\t\t }\r\n\t\t\t if(hfreqend<=pfreqend) {\r\n\t\t\t\t mcount++;\r\n\t\t\t }\r\n\t\t\t start++;\r\n\t\t\t end++;\r\n\t\t\t if(mcount==p.length()) {\r\n\t\t\t\t result.add(start);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t\t return result;\r\n\t\t \r\n\t \t \r\n\t }", "private HuffmanTreeNode[] heapify(int freq[][]) {\n\t\tHuffmanTreeNode[] heap = new HuffmanTreeNode[freq.length];\n\t\tfor (int i = 0; i < freq.length; i++)\n\t\t{\n\t\t\theap[i] = new HuffmanTreeNode(freq[i][1], freq[i][0], null, null);\n\t\t}\n\t\t\n\t\theap = heapSort(heap);\n\n\t\treturn heap;\n\t}", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "private static int[] topKFrequent(int[] nums, int k) {\n HashMap<Integer, Integer> map = new HashMap<>();\n for (int n: nums){\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n\n // Step2: Build max heap.\n PriorityQueue<Integer> pq = new PriorityQueue<>();\n for (int value: map.values()){\n pq.add(value);\n if (pq.size() > k){\n pq.poll();\n }\n }\n\n // Step3: Build result list.\n ArrayList<Integer> retList = new ArrayList<>();\n for (int n: pq){\n for (Map.Entry<Integer, Integer> entry: map.entrySet()){\n if (n == entry.getValue()){\n retList.add(entry.getKey());\n }\n }\n }\n\n return retList.stream().distinct().mapToInt(x -> x).toArray();\n }", "public int heapExtractMax(){\n\t\tint max = a[0];\t\n\t\ta[0] = a[n-1];\n\t\ta[n-1] = Integer.MIN_VALUE;\n\t\tn--;\n\t\tmaxHeapfy(0);\t\t\n\t\treturn max;\n\t}", "private static void MostFrequentTwoGram() throws Exception{\n\t\tFile file=new File(filenameforpages);\n\t\tList<String> words = Utilities.tokenizeFile(file);\n\t\t\n\t\tList<String> stopwordslist = Utilities.tokenizeFile(new File(filenameforstopwords));\n\t\tList<String> mostfrequenttwogramlist =computeTwoGramFrequencies(words, top_number , stopwordslist);\n\t\tWriteMostFrequentTwoGramsToFile(mostfrequenttwogramlist);\n\t}", "public static void main(String[] args) {\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString word = scanner.next();\n\t\tint cnt = 0;\n\t\tfor(int i = 0 ; i < word.length() ; i++) {\n\t\t\tchar tmp = Character.toUpperCase(word.charAt(i));\n\t\t\tif(map.containsKey(tmp) == true) { // 대문자로 바꿔 알파벳 있으면 char : value++ 해주기\n\t\t\t\tmap.put(tmp,map.get(tmp)+1 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap.put(tmp, 1);\n\t\t\t}\n\t\t}\n\t\tint maxValue = Collections.max(map.values());\n\t\tIterator values = map.values().iterator();\n\t\twhile(values.hasNext()) {\n\t\t\tif((int)values.next() == maxValue)\n\t\t\t\tcnt++;\n\t\t}\n\t\tif(cnt == 1) {\n\t\t\tIterator it = map.keySet().iterator();\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tCharacter key = (Character) it.next();\n\t\t\t\tif(maxValue == map.get(key)) {\n\t\t\t\t\tSystem.out.println(key);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"?\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "public static List<String> topKFrequent_hashmap_opt(String[] words, int k) {\n List<String> ans = new ArrayList<>();\n Map<String, Integer> freqMap = new HashMap<>();\n for (String word : words) {\n freqMap.put(word, freqMap.getOrDefault(word, 0) + 1);\n }\n\n ans.addAll(freqMap.keySet());\n\n Collections.sort(ans, (o1, o2) -> {\n if (freqMap.get(o1) == freqMap.get(o2)) {\n return o1.compareTo(o2);\n }\n\n return freqMap.get(o2) - freqMap.get(o1);\n });\n\n return ans.subList(0, k);\n }", "public ArrayList<String> top5search(String kw1, String kw2) {\n // COMPLETE THIS METHOD\n ArrayList<Occurrence> Res1 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<Occurrence> res2 = keywordsIndex.get(getKeyWord(kw1));\n ArrayList<String> arrayList = new ArrayList<String>();\n\n while (arrayList.size() < 6) {\n Occurrence aa = null;\n Occurrence b = null;\n {\n if (Res1 != null) {\n for (Occurrence occr : Res1) {\n if (!arrayList.contains(occr.document)) {\n aa = occr;\n }\n }\n } if(Res1 == null){\n aa = new Occurrence(null, 0);\n }\n else aa = new Occurrence(null,0);\n }\n {\n if(res2 != null){\n for(Occurrence occr : res2){\n if(!arrayList.contains(occr.document)){\n b = occr;\n }\n }\n }\n if(res2 == null){\n b = new Occurrence(null,0);\n }\n else b = new Occurrence(null,0);\n }\n Occurrence[] a = {aa,b};//{search(arrayList, Res1), search(arrayList, res2)};\n Occurrence m = null;\n if (a[0].frequency < a[1].frequency) {\n m = a[1];\n } else m = a[0];\n if (m.document != null) {\n arrayList.add(m.document);\n } else break;\n }\n return arrayList;\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public static void main(String[] args) {\n String s=\"Human brain is a biological learning machine\";\n Map<Integer, String> wordNLength = findTheLargestWord(s);\n //implement\n\n }", "public List<String> getTopSearchKey(int number) {\n\t\tString hql = \"select e.keyWords from SearchLog e group by e.keyWords order by count(e.id) desc\";\n\n\t\tSession session = getSession();\n\t\tList<String> list = new ArrayList<>();\n\t\ttry {\n\t\t\tQuery query = session.createQuery(hql);\n\t\t\tquery.setMaxResults(number);\n\t\t\tlist = query.list();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public int getEntryCount() {\n return wordFrequency.size();\n }", "public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}", "public abstract String[][] getTopWords();", "public static FreqChar exe2(String text) {\n FreqChar freqChar = new FreqChar();\n Map<Character, Integer> cFreq = new HashMap<>();\n for (Character c : text.toCharArray()) {\n cFreq.put(c, cFreq.getOrDefault(c, 0)+1);\n }\n\n int max = 0;\n for (Character c : cFreq.keySet()) {\n if (cFreq.get(c) > max) {\n max = cFreq.get(c);\n freqChar.setC(c);\n freqChar.setFreq(max);\n }\n\n }\n return freqChar;\n }", "public static void main(String[] args) {\n String res= freqAlphabets( \"10#11#12\");\n System.out.println(res);\n }", "public static void findTheLargestWord() {\n\t\ttry (Scanner scan = new Scanner(new File(\"in1.txt\"))) {\r\n\r\n\t\t\tString largestWord = \"\";\r\n\t\t\tString current = \"\";\r\n\r\n\t\t\twhile (scan.hasNext()) {\r\n\t\t\t\tcurrent = scan.next();\r\n\t\t\t\tif (current.length() > largestWord.length()) {\r\n\t\t\t\t\tlargestWord = current;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(largestWord);\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"I can't find the file, where it is????\");\r\n\t\t}\r\n\r\n\t}", "public void createHashTable() {\n\n String[] tempArray = new String[words.size()];\n\n for (int i = 0; i < words.size(); i++) {\n char[] word = words.get(i).toCharArray(); // char[] snarf\n Arrays.sort(word); // char[] afnrs\n tempArray[i] = toString(word); // String afnrs\n }\n\n for (int i = 0; i < words.size(); i++) {\n String word = tempArray[i];\n hashTable.put(word.substring(0, 4), i); // plocka bort bokstav nr 5\n String subString4 = (word.substring(0, 3) + word.substring(4, 5)); // plocka bort bokstav nr 4\n hashTable.put(subString4, i);\n String subString3 = (word.substring(0, 2) + word.substring(3, 5)); // plocka bort bokstav nr 3\n hashTable.put(subString3, i);\n String subString2 = (word.substring(0, 1) + word.substring(2, 5)); // plocka bort bokstav nr 2\n hashTable.put(subString2, i);\n hashTable.put(word.substring(1, 5), i); // plocka bort bokstav nr 1\n }\n }", "public Iterable<DBObject> mostMentioned(DBCollection collection) {\n Iterable<DBObject> ai = collection.aggregate(Arrays.asList(\n new BasicDBObject(\"$match\", new BasicDBObject(\"text\", new BasicDBObject(\"$regex\", rege))),\n new BasicDBObject(\"$project\", new BasicDBObject(\"user\", \"$user\").append(\"texts\", new BasicDBObject(\"$split\", Arrays.asList(\"$text\", \" \")))),\n new BasicDBObject(\"$unwind\", \"$texts\"),\n new BasicDBObject(\"$match\", new BasicDBObject(\"texts\", new BasicDBObject(\"$regex\", rege))),\n new BasicDBObject(\"$group\", new BasicDBObject(\"_id\", \"$texts\").append(\"count\", new BasicDBObject(\"$sum\", 1))),\n new BasicDBObject(\"$sort\", new BasicDBObject(\"count\", -1)),\n new BasicDBObject(\"$limit\", 5)\n )).results();\n return ai;\n }", "public static String bestWord (String [] word, int [] scoretable)\r\n { \r\n int score = 0;\r\n int maxScore = 0;\r\n String maxScoreString = \"\";\r\n for(String each : word)\r\n { \r\n score = getScore(each, scoretable); \r\n if(score > maxScore)\r\n {\r\n maxScore = score;\r\n maxScoreString = each;\r\n }\r\n } \r\n return maxScoreString;\r\n }", "public static void main(String[] args) {\n\t\tScanner stdin = new Scanner(System.in);\n\t\tString line = stdin.nextLine().toLowerCase();\n\t\tint[] freq = new int[26];\n\t\tint cnt = 0;\n\t\tfor (int i=0; i<line.length(); i++) {\n\t\t\tif (line.charAt(i) >= 'a' && line.charAt(i) <='z') {\n\t\t\t\tfreq[line.charAt(i)-'a']++;\n\t\t\t\tcnt++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// We greedily assign these in order.\n\t\tArrays.sort(freq);\n\t\t\n\t\t// So make the most frequent characters the cheapest.\n\t\tint cost = 0;\n\t\tfor (int i=0,j=freq.length-1; j>=0; i++,j--)\n\t\t\tcost += (freq[j]*COST[i]);\n\t\t\t\n\t\t// Separators.\n\t\tcost += (3*(cnt-1));\n\t\t\t\t\n\t\t// Ta da!\n\t\tSystem.out.println(cost);\n\t}", "public int maxDistinction() {\n\n int distinctTiles = this.distincts().size(); // # of unique Scrabble tiles\n int maxDistinction = distinctTiles; // maximum # of distinct possibilities\n\n // If there are wildcards...\n int wilds = this.count(WILDCARD);\n if (wilds > 0) {\n int uniqueHardLetters = distinctTiles - 1; // # of unique letters (w/o wildcards)\n maxDistinction = uniqueHardLetters + wilds; // REVISED MAXIMUM DISTINCTION\n }\n\n return maxDistinction;\n }", "public int maxEntrySize() {\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; (i < table.length); i++) {\n\t\t\tif (table [i] != null) {\n\t\t\t\tif (table[i].size() > max)\n\t\t\t\t\tmax = table[i].size();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public char getMax() throws EmptyHeapException;", "private static void findKLargestElementBad(List<Integer> a, int k) {\n PriorityQueue<Integer> maxHeap =\n new PriorityQueue<Integer>(a.size(), new MaxHeapComperator());\n for (Integer n : a) {\n maxHeap.add(n); // O(n)\n }\n int i = k + 1;\n while (i > 0) { // O(klogn)\n System.out.print(maxHeap.remove() + \" \");\n i--;\n }\n }", "public void maxHeapify(int i){\n\t\tint left, right, largest;\n\t\tKeyword temp;\n\t\tleft=2*i;\n\t\tright=2*i+1;\n\t\tif(left<=heapSize){\n\t\t\tif(keywords[left].keyword.equalsIgnoreCase(keywords[i].keyword)){\t\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[left].pageNo.compareTo(keywords[i].pageNo)>0){\t//comparing pageNo of the Keyword objects\n\t\t\t\t\tlargest=left;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tlargest=i;\n\t\t\t}\n\t\t\telse if(keywords[left].keyword.compareToIgnoreCase(keywords[i].keyword)>0){\n\t\t\t\tlargest=left;\n\t\t\t}\n\t\t\telse \n\t\t\t\tlargest = i;\n\t\t}\n\t\t\n\t\telse \n\t\t\tlargest =i;\n\t\t\n\t\tif(right<=heapSize){\n\t\t\tif(keywords[right].keyword.equalsIgnoreCase(keywords[largest].keyword)){\t//if keywords of the two Keyword objects are equal\n\t\t\t\tif(keywords[right].pageNo.compareTo(keywords[largest].pageNo)>0){\t//comparing pageNo of the Keyword object\n\t\t\t\t\tlargest=right;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(keywords[right].keyword.compareToIgnoreCase(keywords[largest].keyword)>0)\n\t\t\t\tlargest=right;\n\t\t}\n\t\t\n\t\tif (largest!=i){\n\t\t\ttemp=keywords[i];\n\t\t\tkeywords[i]=keywords[largest];\n\t\t\tkeywords[largest]=temp;\n\t\t\tmaxHeapify(largest);\n\t\t}\n\t}", "public void maxSubString(String subString){\n String word = subString;//abc, bca, cab, abcd, bcd,cd,d\n Map<Character,Integer> testMap=new HashMap<>();\n testMap.clear();\n char [] cw=word.toCharArray();\n Map<String,Integer> stringMap=new HashMap<>();\n stringMap.clear();\n\n for(int i=0;i<word.length();i++){\n String addedStrings=\"\";\n for(int j=i;j<word.length();j++) {\n Character ch = cw[j];\n if (!testMap.containsKey(ch)) {\n testMap.put(ch, 1);\n addedStrings =addedStrings+String.valueOf(ch);\n if(j==word.length()-1){\n stringMap.put(addedStrings,addedStrings.length());\n testMap.clear();\n }\n } else {\n stringMap.put(addedStrings,addedStrings.length());\n testMap.clear();\n break;\n }\n }\n }\n Integer maxString=Collections.max(stringMap.values());\n System.out.println(\"MAX STRING---------------\"+maxString);\n for(Map.Entry<String,Integer> collectedString: stringMap.entrySet()){\n if(maxString==collectedString.getValue()){\n System.out.println(collectedString.getKey());\n System.out.println(\"********************************\");\n System.out.println(collectedString.getValue());\n }\n }\n }", "public String mostCommonWord(String[] tweets) {\n int big = -100000;\n String mostCommon = null;\n for (String tweet : tweets) {// = for(int i = 0 ; i<tweets.length;i++) { String tweet = tweets[i] }\n for (String word : tweet.split(\" \")) {\n int amt = 0;\n for (String tweet2 : tweets)\n for (String word2 : tweet2.split(\" \"))\n if (word2.equals(word))\n amt++;\n if (amt > big) {\n big = amt;\n mostCommon = word;\n }\n }\n }\n return mostCommon;\n}", "public static void main(String[] args) throws FileNotFoundException, IOException {\n \n \n File textBank = new File(\"textbank/\");\n Hashtable<Integer,Integer> frequency;\n Hashtable<Integer, String> table;\n table = new Hashtable<>();\n frequency = new Hashtable<>();\n Scanner input = new Scanner(new File(\"stoplist.txt\"));\n int max=0;\n while (input.hasNext()) {\n String next;\n next = input.next();\n if(next.length()>max)\n max=next.length();\n table.put(next.hashCode(), next); //to set up the hashmap with the wordsd\n \n }\n \n System.out.println(max);\n \n Pattern p0=Pattern.compile(\"[\\\\,\\\\=\\\\{\\\\}\\\\\\\\\\\\\\\"\\\\_\\\\+\\\\*\\\\#\\\\<\\\\>\\\\!\\\\`\\\\-\\\\?\\\\'\\\\:\\\\;\\\\~\\\\^\\\\&\\\\%\\\\$\\\\(\\\\)\\\\]\\\\[]\") \n ,p1=Pattern.compile(\"[\\\\.\\\\,\\\\@\\\\d]+(?=(?:\\\\s+|$))\");\n \n \n \n wor = new ConcurrentSkipListMap<>();\n \n ConcurrentMap<String , Map<String,Integer>> wordToDoc = new ConcurrentMap<String, Map<String, Integer>>() {\n @Override\n public Map<String, Integer> putIfAbsent(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean remove(Object key, Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean replace(String key, Map<String, Integer> oldValue, Map<String, Integer> newValue) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> replace(String key, Map<String, Integer> value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public int size() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean isEmpty() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsKey(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public boolean containsValue(Object value) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> get(Object key) {\n return wor.get((String)key);//To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Map<String, Integer> put(String key, Map<String, Integer> value) {\n wor.put(key, value); // this saving me n \n //if(frequency.get(key.hashCode())== null)\n \n //frequency.put(key.hashCode(), )\n return null;\n }\n\n @Override\n public Map<String, Integer> remove(Object key) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void putAll(Map<? extends String, ? extends Map<String, Integer>> m) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public void clear() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<String> keySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Collection<Map<String, Integer>> values() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n\n @Override\n public Set<Map.Entry<String, Map<String, Integer>>> entrySet() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }\n };\n totalFiles = textBank.listFiles().length;\n for (File textFile : textBank.listFiles()) {\n totalReadFiles++;\n //checking whether file has txt extension and file size is higher than 0\n if(textFile.getName().contains(\".txt\") && textFile.length() > 0){\n docName.add(textFile.getName().replace(\".txt\", \".stp\"));\n StopListHandler sp = new StopListHandler(textFile, table,System.currentTimeMillis(),p0,p1,wordToDoc);\n sp.setFinished(() -> {\n \n tmp++;\n \n if(tmp==counter)\n //printTable(counter);\n \n if(totalReadFiles == totalFiles)\n {\n printTable(counter);\n }\n \n });\n \n sp.start();\n counter ++;}\n \n \n }\n System.out.println(counter);\n //while(true){if(tmp==counter-1) break;}\n System.out.println(\"s\");\n \n }", "public static String getMostFrequentToy() {\n\t\tString name = \"\";\n\t\tint max = 0;\n\t\tfor (int i = 0; i < toyList.size(); i++) {\n\t\t\tif (max < toyList.get(i).getCount()) {\n\t\t\t\tmax = toyList.get(i).getCount();\n\t\t\t\tname = toyList.get(i).getName();\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public static PriorityQueue<WordCount> sortWords(HashMap<String, Integer> counts){\n\t\tPriorityQueue<WordCount> words = new PriorityQueue<WordCount>(99999, new wordCountComparator());\n\t\tWordCount wc = null;\n\t\tfor(Map.Entry<String, Integer> entry : counts.entrySet()){\n\t\t\twc = new WordCount(entry.getKey(), entry.getValue());\n\t\t\twords.add(wc);\n\t\t}\n\t\treturn words;\n\t}", "public static int[] topKFrequent(int[] nums, int k) {\n int[] a = new int[k];\n Map<Integer, Integer> map = new HashMap<Integer, Integer>();\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n map.put(nums[i], map.get(nums[i]) + 1);\n } else {\n map.put(nums[i], 1);\n }\n }\n\n PriorityQueue<Map.Entry<Integer, Integer>> maxHeap = new PriorityQueue<Map.Entry<Integer, Integer>>(k, Map.Entry.<Integer, Integer>comparingByValue().reversed());\n for (Map.Entry<Integer, Integer> e : map.entrySet()) {\n maxHeap.offer(e);\n }\n\n while (k > 0) {\n a[--k] = maxHeap.poll().getKey();\n }\n\n return a;\n }", "public void Q5_7() {\n\t\tString[] strings = {\"Marketing\", \"Boss of director\", \"waiting room\", \"Accounting\", \"Sale\"};\n\t\tString[] str1 = strings[0].split(\"\\\\s+\");\n\t\tString[] str2 = strings[1].split(\"\\\\s+\");\n\t\tString[] str3 = strings[2].split(\"\\\\s+\");\n\t\tString[] str4 = strings[3].split(\"\\\\s+\");\n\t\tString[] str5 = strings[4].split(\"\\\\s+\");\n\t\t\n\t\tfor (int i = 0; i < strings.length - 1; i++) {\n\t\t\tfor (int j = i + 1; j < strings.length; j++) {\n\t\t\t\tif(strings[i].charAt(0) > strings[j].charAt(0)) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\n\t}", "public static String[] getLargestAnagramGroup(String[] wordList) {\n String[] anagramGroup;\n ArrayList<Integer> currentAnagramGroup = new ArrayList<Integer>();\n ArrayList<Integer> savedAnagramGroup = new ArrayList<Integer>();\n ArrayList<String> anagramer = new ArrayList<String>();\n\n //loops through the word list to find anagrams\n //if anagrams are found it makes the list of them\n //if that list is bigger then the previous it saves it\n for(int index = 0; index < wordList.length; index++) {\n if(savedAnagramGroup.size() < currentAnagramGroup.size()) {\n savedAnagramGroup = new ArrayList<Integer>(currentAnagramGroup);\n }\n currentAnagramGroup.clear();\n for(int words = index; words < wordList.length; words++) {\n if(areAnagrams(wordList[index], wordList[words])) {\n currentAnagramGroup.add(words);\n }\n }\n }\n\n //uses the saved list to add the words to an array list\n for(int index = 0; index < savedAnagramGroup.size(); index++) {\n anagramer.add(wordList[savedAnagramGroup.get(index)]);\n }\n\n //converts the arraylist to an array to be returned\n anagramGroup = new String[anagramer.size()];\n for(int index = 0; index < savedAnagramGroup.size(); index++) {\n anagramGroup[index] = anagramer.get(index);\n }\n\n return anagramGroup;\n }", "public String biggestSet(HashMap<String, TreeSet<String>> myMap){\n\t\tString testKey = \"\";\n\t\tString biggestKey = \"\";\n\t\tIterator<Entry<String, TreeSet<String>>>\n\t\titer= myMap.entrySet().iterator();\n\n\t\tTreeSet<String> largestFamily = new TreeSet<String>();\n\t\tTreeSet<String> test;\n\n\t\twhile(iter.hasNext()){\n\t\t\ttestKey = iter.next().getKey();\n\t\t\ttest = myMap.get(testKey);\n\t\t\tif(test.size()>largestFamily.size()){\n\t\t\t\tlargestFamily = test;\n\t\t\t\tbiggestKey = testKey;\n\t\t\t}\n\t\t}\n\t\treturn biggestKey;\n\t}", "public static void main(String[] args) {\n File file = new File(\"ratings.tsv\");\n ArrayList<MovieRating> rl = new ArrayList<MovieRating>();\n\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] tkns = line.split(\"\\\\t\"); // tabs separate tokens\n MovieRating nr = new MovieRating(tkns[0], tkns[1], tkns[2]);\n rl.add(nr);\n }\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n int minVotes = 1;\n int numRecords = 1;\n Scanner input = new Scanner(System.in);\n while (true) {\n\n MaxHeap<MovieRating> myHeap = new MaxHeap<MovieRating>();\n\n for(int i = 0; i < rl.size(); i++) {\n myHeap.insert(rl.get(i));\n }\n\n System.out.println();\n System.out.println(\"Enter minimum vote threshold and number of records:\");\n minVotes = input.nextInt();\n numRecords = input.nextInt();\n if (minVotes * numRecords == 0)\n break;\n long startTime = System.currentTimeMillis();\n\n /* Fill in code to determine the top numRecords movies that have at least\n * minVotes votes. For each record mr, in decreasing order of average rating,\n * execute a System.out.println(mr).\n * Do not sort the movie list!\n */\n int counter = 0;\n for (int i = 0; i < rl.size(); i++) {\n MovieRating temp = myHeap.removemax();\n if(temp.getVotes() > minVotes){\n System.out.println(temp.toString());\n counter++;\n }\n if(counter >= numRecords){\n break;\n }\n }\n\n System.out.println();\n long readTime = System.currentTimeMillis();\n System.out.println(\"Time: \"+(System.currentTimeMillis()-startTime)+\" ms\");\n }\n }", "public static void avarageNum() throws IOException\n\t{\n\t\t// Read data from text file\n\t\tHashMap<String, Integer> wordCountMap = new HashMap<String, Integer>();\n\t \n BufferedReader reader = null;\n \n try\n {\n //Creating BufferedReader object\n \n reader = new BufferedReader(new FileReader(\"NumOUTPUT.txt\"));\n \n //Reading the first line into currentLine\n \n String currentLine = reader.readLine();\n \n while (currentLine != null)\n { \n // Splitting the currentLine into words \n String[] numbers = currentLine.toLowerCase().split(\" \");\n \n // Iterating each word\n for (String word : numbers)\n {\n // If word is already present in wordCountMap, updating its count\n \n if(wordCountMap.containsKey(word))\n { \n wordCountMap.put(word, wordCountMap.get(word) + 1);\n }\n \n // Otherwise inserting the word as key and 1 as its value\n else\n {\n wordCountMap.put(word, 1);\n }\n }\n \n // Reading next line into currentLine \n currentLine = reader.readLine();\n }\n \n // Getting the most repeated word and its occurrence \n String mostRepeatedNum = null;\n \n int count = 0;\n \n Set<java.util.Map.Entry<String, Integer>> entrySet = wordCountMap.entrySet();\n \n for (java.util.Map.Entry<String, Integer> entry : entrySet)\n {\n if(((java.util.Map.Entry<String, Integer>) entry).getValue() > count)\n { \n \t\tmostRepeatedNum = entry.getKey(); \n count = entry.getValue(); \n }\n }\n \n System.out.println(\"The most repeated number is : \" + mostRepeatedNum);\n \n System.out.println(\"Times repeated : \" + count);\n } \n catch (IOException e) \n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n reader.close(); //Closing the reader\n }\n catch (IOException e) \n {\n e.printStackTrace();\n }\n }\n\t\t\n\t}", "public void sortCount() {\n\t\tfor(Entry<String, TreeMap<String, Integer>> entry:map.entrySet()){\r\n\t\t\tTreeMap<String, Integer> tmap = entry.getValue();\r\n\t\t\tList<Entry<String, Integer>> sorttmap = MapSort.sortMapByIntegerValue(tmap);\r\n\t\t\t int flag=0;\r\n for(Entry<String, Integer> word:sorttmap){ \r\n \tflag++;\r\n \tkeyword.add(word.getKey());\r\n// System.out.println(mapping.getKey()+\":\"+mapping.getValue()); \r\n \tif(flag==5)\r\n \t\tbreak;\r\n } \r\n\t\t}\r\n\t\r\n\t}", "private static void findStrongestMMAFighter(int[] arr, int k)\n\t{\n\n\t\tDeque<Integer> dq = new LinkedList<Integer>();\n\t\t// Dequeue first element will be the largest one always\n\t\tint i = 0;\n\t\t// We have to process first k elements separately\n\t\tfor (; i < k; i++)\n\t\t{\n\t\t\twhile (!dq.isEmpty() && arr[i] >= arr[dq.peekLast()])\n\t\t\t{\n\t\t\t\tdq.removeLast();\n\t\t\t}\n\t\t\tdq.addLast(i);\n\n\t\t}\n\t\tfor (; i < arr.length; i++)\n\t\t{\n\n\t\t\t// First element will always be larger\n\t\t\tSystem.out.print(arr[dq.peekFirst()] + \" \");\n\n\t\t\t// remove elements which are not in current window\n\t\t\twhile (!dq.isEmpty() && dq.peekFirst() <= i - k)\n\t\t\t{\n\t\t\t\tdq.removeFirst();\n\t\t\t}\n\t\t\t// Remove unwanted elements\n\t\t\twhile (!dq.isEmpty() && arr[i] > arr[dq.peekLast()])\n\t\t\t{\n\t\t\t\tdq.removeLast();\n\t\t\t}\n\t\t\tdq.addLast(i);\n\t\t}\n\t\tif (!dq.isEmpty())\n\t\t\tSystem.out.print(arr[dq.peek()] + \" \");\n\n\t}", "public Map<Integer, LanguageEntry> getTop(int max, Language lang) {\r\n\t\tMap<Integer, LanguageEntry> temp = new ConcurrentHashMap<>();\r\n\t\tList<LanguageEntry> les = new ArrayList<>(getDb().get(lang).values());\r\n\t\t\r\n\t\tCollections.sort(les);\r\n\t\t\r\n\t\tint rank = 1;\r\n\t\tfor (LanguageEntry le : les) {\r\n\t\t\tle.setRank(rank);\r\n\t\t\ttemp.put(le.getKmer(), le);\t\t\t\r\n\t\t\tif (rank == max) break;\r\n\t\t\trank++;\r\n\t\t}\r\n\t\t// Return\r\n\t\treturn temp;\r\n\t}", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\ttry {\r\n\t\t\tint T = Integer.parseInt(br.readLine());\r\n\t\t\tfor (int t = 0; t < T; t++) {\r\n\t\t\t\tint N = Integer.parseInt(br.readLine());\r\n\t\t\t\tint[] A = new int[N]; // 수열 저장\r\n\t\t\t\tint cnt = 0;\r\n\r\n\t\t\t\tfor (int i = 0; i < N / 10 + 1; i++) {\r\n\t\t\t\t\tString[] arr = br.readLine().split(\" \");\r\n\t\t\t\t\tfor (int j = 0; j < arr.length; j++) {\r\n\t\t\t\t\t\tA[cnt] = Integer.parseInt(arr[j]);\r\n\t\t\t\t\t\tcnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tArrayList<Integer> result = new ArrayList<Integer>();\r\n\t\t\t\tPriorityQueue<Integer> maxheap = new PriorityQueue<Integer>(Collections.reverseOrder());\r\n\t\t\t\tPriorityQueue<Integer> minheap = new PriorityQueue<Integer>();\r\n\r\n\t\t\t\tfor (int i = 0; i < A.length; i++) {\r\n\t\t\t\t\tif (maxheap.size() == minheap.size())\r\n\t\t\t\t\t\tmaxheap.offer(A[i]);\r\n\t\t\t\t\telse if (maxheap.size() > minheap.size())\r\n\t\t\t\t\t\tminheap.offer(A[i]);\r\n\r\n\t\t\t\t\tif (!maxheap.isEmpty() && !minheap.isEmpty() && minheap.peek() < maxheap.peek()) {\r\n\t\t\t\t\t\tint max = maxheap.poll();\r\n\t\t\t\t\t\tint min = minheap.poll();\r\n\r\n\t\t\t\t\t\tminheap.offer(max);\r\n\t\t\t\t\t\tmaxheap.offer(min);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i % 2 == 0) {\r\n\t\t\t\t\t\tresult.add(maxheap.peek());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(result.size());\r\n\t\t\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\t\t\tSystem.out.print(result.get(i) + \" \");\r\n\t\t\t\t\tif (i % 10 == 9)\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ArrayList<String> top5search(String kw1, String kw2) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\tArrayList<String> results = new ArrayList<String>();\n\t\tArrayList<Occurrence> ocArr1 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> ocArr2 = new ArrayList<Occurrence>();\n\t\tArrayList<Occurrence> combined = new ArrayList<Occurrence>();\n\t\t\n\t\tif (keywordsIndex.containsKey(kw1))\n\t\t\tocArr1 = keywordsIndex.get(kw1);\n\t\t\n\t\tif (keywordsIndex.containsKey(kw2))\n\t\t\tocArr2 = keywordsIndex.get(kw2);\n\t\t\n\t\tcombined.addAll(ocArr1);\n\t\tcombined.addAll(ocArr2);\n\t\t\n\t\tif (!(ocArr1.isEmpty()) && !(ocArr2.isEmpty()))\n\t\t{\n\t\t\t// Sort with preference for ocArr1\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = 1; y < combined.size()-x; y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(y-1).frequency < combined.get(y).frequency)\n\t\t\t\t\t{\n\t\t\t\t\t\tOccurrence temp = combined.get(y-1);\n\t\t\t\t\t\tcombined.set(y-1, combined.get(y));\n\t\t\t\t\t\tcombined.set(y, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove duplicates\n\t\t\tfor (int x = 0; x < combined.size()-1; x++)\n\t\t\t{\n\t\t\t\tfor (int y = x + 1; y < combined.size(); y++)\n\t\t\t\t{\n\t\t\t\t\tif (combined.get(x).document == combined.get(y).document)\n\t\t\t\t\t\tcombined.remove(y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Top 5\n\t\twhile (combined.size() > 5)\n\t\t\tcombined.remove(combined.size()-1);\n\t\t\n\t\t//System.out.println(combined);\n\t\t\n\t\tfor (Occurrence oc : combined)\n\t\t\tresults.add(oc.document);\n\n\t\treturn results;\n\t\n\t\t\n\t\t// following line is a placeholder to make the program compile\n\t\t// you should modify it as needed when you write your code\n\t\n\t}", "public static void main(String args[])\n {\n Scanner s = new Scanner(System.in).useDelimiter(\"\");\n List<node> freq = new SinglyLinkedList<node>();\n \n // read data from input\n while (s.hasNext())\n {\n // s.next() returns string; we're interested in first char\n char c = s.next().charAt(0);\n if (c == '\\n') continue;\n // look up character in frequency list\n node query = new node(c);\n node item = freq.remove(query);\n if (item == null)\n { // not found, add new node\n freq.addFirst(query);\n } else { // found, increment node\n item.frequency++;\n freq.addFirst(item);\n }\n }\n \n // insert each character into a Huffman tree\n OrderedList<huffmanTree> trees = new OrderedList<huffmanTree>();\n for (node n : freq)\n {\n trees.add(new huffmanTree(n));\n }\n \n // merge trees in pairs until one remains\n Iterator ti = trees.iterator();\n while (trees.size() > 1)\n {\n // construct a new iterator\n ti = trees.iterator();\n // grab two smallest values\n huffmanTree smallest = (huffmanTree)ti.next();\n huffmanTree small = (huffmanTree)ti.next();\n // remove them\n trees.remove(smallest);\n trees.remove(small);\n // add bigger tree containing both\n trees.add(new huffmanTree(smallest,small));\n }\n // print only tree in list\n ti = trees.iterator();\n Assert.condition(ti.hasNext(),\"Huffman tree exists.\");\n huffmanTree encoding = (huffmanTree)ti.next();\n encoding.print();\n }", "public static void main(String[] args) {\n String s = \"9988777yyhhgfvvvvvvddsseeeeww3344\";\n System.out.println(frequencySort(s));\n }", "public static String[] getLargestAnagramGroup(String fileName) {\n //creates a bufferedReader and reads the given fileName\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n } catch (FileNotFoundException e) {\n return new String[]{};\n }\n //adds each word to an ArrayList\n Scanner scan = new Scanner(reader);\n ArrayList<String> words = new ArrayList<>();\n while (scan.hasNext()) {\n words.add(scan.next());\n }\n //converts arrayList into a string array\n String[] wordArray = new String[words.size()];\n for (int count = 0; count < wordArray.length; count++) {\n wordArray[count] = words.get(count);\n }\n scan.close();\n //returns the largest anagram group\n return getLargestAnagramGroup(wordArray);\n }", "static int extractHeapMax(int[] ar){\r\n\t\tif(heapSize<1) return -1;\r\n\t\tint max = ar[1];\r\n\t\tswap(ar,1,heapSize);\r\n\t\theapSize-=1;\r\n\t\tmax_heapify(ar, 1);\r\n\t\treturn max;\r\n\t}", "public FHeapNode removeMax()\r\n {\r\n FHeapNode z = maxNode;\r\n //hmap.remove(maxNode.gethashtag());\t\t\t\t\t\t\t\t\t\t//remove the node from the hashtable\r\n \r\n if (z != null) \r\n\t\t{\r\n \t for (HashMap.Entry<String, FHeapNode> entry : hmap.entrySet()) \r\n {\r\n \tif(entry.getValue() == maxNode)\r\n \t{\r\n \t\thmap.remove(entry.getKey());\r\n \t\tbreak;\r\n \t}\r\n }\r\n \t \r\n int numKids = z.degree;\r\n FHeapNode x = z.child;\r\n FHeapNode tempRight;\r\n\r\n while (numKids > 0) \t\t\t\t\t\t\t\t\t\t\t\t\t// iterate trough all the children of the max node\r\n\t\t\t{\r\n tempRight = x.right; \r\n x.left.right = x.right;\t\t\t\t\t\t\t\t\t\t\t\t// remove x from child list\r\n x.right.left = x.left;\r\n \r\n x.left = maxNode;\t\t\t\t\t\t\t\t\t\t\t\t\t// add x to root list of heap\r\n x.right = maxNode.right;\r\n maxNode.right = x;\r\n x.right.left = x;\r\n \r\n x.parent = null;\t\t\t\t\t\t\t\t\t\t\t\t\t// set parent[x] to null\r\n x = tempRight;\r\n numKids--;\r\n }\r\n\t\t\tz.left.right = z.right;\t\t\t\t\t\t\t\t\t\t\t\t\t// remove z from root list of heap\r\n z.right.left = z.left;\r\n\r\n if (z == z.right)\r\n\t\t\t{\r\n maxNode = null;\r\n } \r\n\t\t\telse \r\n\t\t\t{\r\n maxNode = z.right;\r\n meld();\r\n } \r\n nNodes--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// decrement size of heap\r\n }\r\n \r\n\r\n return z;\r\n }", "private int indexOfLargest(ArrayList<QuakeEntry> data) {\n int index = 0;\n double magnitude = 0;\n for (QuakeEntry qe : data) {\n double currMag = qe.getMagnitude();\n if (currMag > magnitude) {\n index = data.indexOf(qe);\n magnitude = currMag;\n }\n }\n System.out.println(magnitude);\n return index;\n }", "public static void main(String[] args) {\n Scanner teclado = new Scanner(System.in);\r\n String mensajeUsuario;\r\n System.out.println(\"Ingrese su mensaje:\");\r\n mensajeUsuario = teclado.nextLine();\r\n \r\n ArrayList inicial = new ArrayList<Nodo>();\r\n \r\n boolean valido = true;\r\n int contador = 0;\r\n //Se convierte el mensaje a una array de chars\r\n char [] arrayMensaje = mensajeUsuario.toCharArray();\r\n //Se cuenta la frecuencia de cada elemento\r\n for(char i: arrayMensaje){\r\n valido = true;\r\n Iterator itr = inicial.iterator();\r\n //Si el elemento que le toca no fue contado ya, es valido contar su frecuencia\r\n while (itr.hasNext()&&valido){\r\n Nodo element = (Nodo) itr.next();\r\n if (i==element.getCh()){\r\n valido = false;\r\n }\r\n }\r\n //Contar la frecuencia del elemento\r\n if (valido== true){\r\n Nodo temp = new Nodo();\r\n temp.setCh(i);\r\n for (char j:arrayMensaje){\r\n if (j==i){\r\n contador++;\r\n }\r\n }\r\n temp.setFreq(contador);\r\n inicial.add(temp);\r\n contador = 0;\r\n \r\n }\r\n }\r\n //Se recorre la lista generada de nodos para mostrar la frecuencia de cada elemento ene el orden en que aparecen\r\n System.out.println(\"elemento | frecuencia\");\r\n Iterator itr = inicial.iterator();\r\n while (itr.hasNext()){\r\n Nodo element = (Nodo)itr.next();\r\n System.out.println(element.getCh() + \" \"+ element.getFreq());\r\n }\r\n \r\n HuffmanTree huff = new HuffmanTree();\r\n huff.createTree(inicial);\r\n //System.out.println(huff.getRoot().getCh()+\" \"+huff.getRoot().getFreq());\r\n \r\n huff.codificar();\r\n System.out.println(\"elemento | frecuencia | codigo\");\r\n Iterator itrf= huff.getListaH().iterator();\r\n while(itrf.hasNext()){\r\n Nodo pivotal = (Nodo)itrf.next();\r\n System.out.println(pivotal.getCh() + \" \"+ pivotal.getFreq()+ \" \"+ pivotal.getCadena()); \r\n }\r\n \r\n System.out.println(\"Ingrese un codigo en base a la tabla anterior, separando por espacios cada nuevo caracter\");\r\n mensajeUsuario = teclado.nextLine();\r\n mensajeUsuario.indexOf(\" \");\r\n String mensajeFinal = \"\";\r\n String letra = \" \";\r\n String[] arrayDecode = mensajeUsuario.split(\" \");\r\n boolean codigoValido = true;\r\n for (String i: arrayDecode){\r\n if (codigoValido){\r\n letra = huff.decodificar(i);\r\n }\r\n if (letra.length()>5){\r\n codigoValido = false;\r\n }\r\n else {\r\n mensajeFinal = mensajeFinal.concat(letra);\r\n }\r\n }\r\n \r\n if (codigoValido){\r\n System.out.println(mensajeFinal);\r\n }\r\n else {\r\n System.out.println(\"El codigo ingresado no es valido\");\r\n }\r\n \r\n \r\n }", "public static void rankFiles(Hashtable<?, Integer> fname, int numberOfOccurrences) \r\n\t{\n\t\tArrayList<Map.Entry<?, Integer>> arrayList = new ArrayList(fname.entrySet());\r\n\r\n\t\tCollections.sort(arrayList, new Comparator<Map.Entry<?, Integer>>() \r\n\t\t{\r\n\t\t\tpublic int compare(Map.Entry<?, Integer> obj1, Map.Entry<?, Integer> obj2) \r\n\t\t\t{\r\n\t\t\t\treturn obj1.getValue().compareTo(obj2.getValue());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tCollections.reverse(arrayList);\r\n\r\n\t\tif (numberOfOccurrences > 0) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\n------Top 10 search results-----\\n\");\r\n\r\n\t\t\tint my_number = 10;\r\n\t\t\tint j = 1;\r\n\t\t\twhile (arrayList.size() > j && my_number > 0) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"(\" + j + \") \" + arrayList.get(j) + \" times \");\r\n\t\t\t\tj++;\r\n\t\t\t\tmy_number--;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public static TrigramsOcurrence greatest(ArrayList<TrigramsOcurrence> frequencies) {\n TrigramsOcurrence greatest = frequencies.get(0);\n for (TrigramsOcurrence frecuency : frequencies) {\n if (greatest.getFrequency() < frecuency.getFrequency()) {\n greatest = frecuency;\n }\n }\n return greatest;\n }", "@Test\n public void test_kmax_String_Collection1() {\n populate_s1();\n String actual = Selector.kmax(s1, 4, new CompareStringAscending());\n String expected = \"B\";\n Assert.assertEquals(\"4th maximum not found (strings)\", expected, actual);\n }", "public static long[] estimateSizeOnHeap(int numberOfEntries, int\n maxNumberOfBits) {\n \n long ww = maxNumberOfBits;\n \n long maxNumber = (1L << ww) - 1;\n \n long binSz = maxNumberOfBits;\n \n int nBins = (int)Math.ceil((double)maxNumber/(double)binSz);\n \n long total = 0;\n \n ObjectSpaceEstimator est = new ObjectSpaceEstimator();\n est.setNIntFields(2);\n est.setNLongFields(3);\n est.setNBooleanFields(1);\n //objects: xft, xftReps, rbs\n est.setNObjRefsFields(3);\n \n total += est.estimateSizeOnHeap();\n \n // --------- include contents of the objects --------------\n \n /*\n the minimum of each bin range, if it is populated, is the representative\n node, and that is held in 2 data structures:\n xft holds the number, allowing fast repr prev and next lookups.\n xftReps holds the repr as the value, found by key = binNumber.\n * the max number of trie entries will be nBins\n but there will be prefix trie nodes too\n private final XFastTrieLong<XFastTrieNodeLong<Long>, Long> xft;\n \n // key = bin index (which is node/binSz), value = repr value.\n // each repr value is the minimum stored in the bin.\n // * the max number of map entries will be nBins.\n private final TLongLongMap xftReps = new TLongLongHashMap();\n \n // all inserts of this class are held in \n // * at most nBins number of trees which each \n // hold at most binSz number of entries.\n // each list item is a sorted binary search tree of numbers in that bin.\n // the value in the tree holds multiplicity of the number.\n // each list index can be found by node/binSz\n // each sorted tree has \n // key = node (inserted number), w/ value=\n // the number of times that number is present (multiplicity).\n TLongObjectMap<RedBlackBSTLongInt2> rbs;\n */\n \n // returning 2 estimates\n // (1) estimate using all bins w/ factor 5 for tries\n // (2) estimate from using nBinsSparse of the nBins w/ factor 3 for tries\n \n int nBinsSparse = nBins/10;\n if (nBinsSparse < 1) {\n nBinsSparse = 1;\n }\n \n // using factor of 5 for total w/ prefix nodes\n long total2_1 = numberOfEntries * 5 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // all nBins are filled w/ a repr\n total2_1 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n long total2_2 = numberOfEntries * 3 *\n XFastTrieNode.estimateSizeOnHeap();\n \n // nBinsSparse of nBins are filled w/ a repr\n total2_2 += XFastTrie.estimateSizeOnHeap(numberOfEntries);\n \n \n //TLongLongMap\n total2_1 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins number of repr entries in map\n total2_1 += (2 * nBins * ObjectSpaceEstimator.estimateLongSize());\n \n \n //TLongLongMap\n total2_2 += ObjectSpaceEstimator.estimateTLongLongHashMap();\n \n //nBins/4 number of repr entries in map\n total2_2 += (2 * nBinsSparse * ObjectSpaceEstimator.estimateLongSize());\n \n \n // 1 TLongObjectMap<RedBlackBSTLongInt> rbs;\n total2_1 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n total2_2 += ObjectSpaceEstimator.estimateTLongObjectHashMap();\n \n // nBins number of TreeMap<Integer, Integer> \n ObjectSpaceEstimator est2 = new ObjectSpaceEstimator();\n est2.setNBooleanFields(1);\n est2.setNObjRefsFields(2);\n long totalEntry = est2.estimateSizeOnHeap();\n totalEntry += 3. * totalEntry;\n est2 = new ObjectSpaceEstimator();\n est2.setNIntFields(2);\n long rbtree = est2.estimateSizeOnHeap() + totalEntry;\n long rbtreeNodes = numberOfEntries * totalEntry;\n \n total2_1 += (nBins * rbtree);\n \n total2_2 += (nBinsSparse * rbtree);\n \n \n // nEntries number of long, int nodes\n \n total2_1 += rbtreeNodes;\n \n total2_2 += rbtreeNodes;\n \n return new long[]{total2_1 + total, total2_2 + total};\n }", "public static void main(String[] args) {\n int[] data = new int[]{1, 1, 1, 2, 3, 4, 5, 2, 1, 2, 3, 4, 5, 1, 2, 3, 2, 2, 3};\n LeetCode347 obj = new LeetCode347();\n List<Integer> list = obj.topKFrequent(data, 2);\n System.out.println(\"result\");\n for (int n : list) {\n System.out.println(n);\n }\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\t\tString input = \"\";\r\n\r\n\t\t//읽어올 파일 경로\r\n\t\tString filePath = \"C:/Users/user/Desktop/data13_huffman.txt\";\r\n\r\n\t\t//파일에서 읽어옴\r\n\t\ttry(FileInputStream fStream = new FileInputStream(filePath);){\r\n\t\t\tbyte[] readByte = new byte[fStream.available()];\r\n\t\t\twhile(fStream.read(readByte) != -1);\r\n\t\t\tfStream.close();\r\n\t\t\tinput = new String(readByte);\r\n\t\t}\r\n\r\n\t\t//빈도수 측정 해시맵 생성\r\n\t\tHashMap<Character, Integer> frequency = new HashMap<>();\r\n\t\t//최소힙 생성\r\n\t\tList<Node> nodes = new ArrayList<>();\r\n\t\t//테이블 생성 해시맵\r\n\t\tHashMap<Character, String> table = new HashMap<>();\r\n\r\n\t\t//노드와 빈도수 측정\r\n\t\tfor(int i = 0; i < input.length(); i++) {\r\n\t\t\tif(frequency.containsKey(input.charAt(i))) {\r\n\t\t\t\t//이미 있는 값일 경우 빈도수를 1 증가\r\n\t\t\t\tchar currentChar = input.charAt(i);\r\n\t\t\t\tfrequency.put(currentChar, frequency.get(currentChar) + 1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//키를 생성해서 넣어줌\r\n\t\t\t\tfrequency.put(input.charAt(i), 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//최소 힙에 저장\r\n\t\tfor(Character key : frequency.keySet()) \r\n\t\t\tnodes.add(new Node(key, frequency.get(key), null, null));\r\n\t\t\t\t\r\n\t\t//최소힙으로 정렬\r\n\t\tbuildMinHeap(nodes);\r\n\r\n\t\t//huffman tree를 만드는 함수 실행\r\n\t\tNode resultNode = huffman(nodes);\r\n\r\n\t\t//파일에 씀 (table)\r\n\t\ttry(FileWriter fw = new FileWriter(\"201702034_table.txt\")){\r\n\t\t\tmakeTable(table, resultNode, \"\");\r\n\t\t\tfor(Character key : table.keySet()) {\r\n\t\t\t\t//System.out.println(key + \" : \" + table.get(key));\r\n\t\t\t\tfw.write(key + \" : \" + table.get(key) + \"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//파일에 씀 (encoded code)\r\n\t\ttry(FileWriter fw = new FileWriter(\"201702034_encoded.txt\")){\r\n\t\t\tString allString = \"\";\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < input.length(); i++)\r\n\t\t\t\tallString += table.get(input.charAt(i));\r\n\r\n\t\t\t//System.out.println(allString);\r\n\t\t\tfw.write(allString);\r\n\t\t}\r\n\t}" ]
[ "0.75906366", "0.68707484", "0.60411036", "0.5975008", "0.5922188", "0.59093577", "0.58696604", "0.57681674", "0.57032937", "0.5600211", "0.55802083", "0.55413526", "0.54298115", "0.5324043", "0.5308332", "0.5305646", "0.5292859", "0.5197133", "0.51967406", "0.5188211", "0.5179091", "0.5147484", "0.51404154", "0.51274174", "0.51002514", "0.5090236", "0.50874597", "0.50785124", "0.50525486", "0.5050459", "0.5042845", "0.50335747", "0.5030517", "0.49968514", "0.49937138", "0.49933156", "0.49919024", "0.499159", "0.49864885", "0.4957844", "0.4947945", "0.49317005", "0.49250975", "0.49150398", "0.49125606", "0.4904074", "0.48938257", "0.48925883", "0.4889874", "0.4887251", "0.4860777", "0.4860098", "0.48536643", "0.48534754", "0.4845862", "0.4841368", "0.48399898", "0.48388317", "0.4827593", "0.48260677", "0.4818886", "0.48182878", "0.48082814", "0.47785535", "0.47757062", "0.47732598", "0.47693738", "0.47663102", "0.47607416", "0.47591797", "0.4755014", "0.4753013", "0.47478127", "0.47394675", "0.4738122", "0.47349504", "0.47332048", "0.4719104", "0.47184768", "0.47180748", "0.47071698", "0.47058", "0.46947932", "0.46836755", "0.4681906", "0.46638075", "0.46565092", "0.46516904", "0.46376836", "0.46266595", "0.46197116", "0.46165478", "0.4610171", "0.4608971", "0.46055576", "0.4602672", "0.46003744", "0.45957536", "0.45903394", "0.45888633" ]
0.7732654
0
relativeLayout= (RelativeLayout) findViewById(R.id.relativelayout_popuwindow); linearLayout = (LinearLayout) popuView.findViewById(R.id.second_hand_blank);
@Override public void onClick(View v) { layouts = new ArrayList<RelativeLayout>(); layouts.add(tv_all); layouts.add(tv_shuma); layouts.add(tv_yinxiang); layouts.add(tv_meirong); layouts.add(tv_muying); layouts.add(tv_jiaju); layouts.add(tv_fushi); layouts.add(tv_jiadian); layouts.add(tv_bangong); layouts.add(tv_other); //View v1 = manager.findFragmentById(R.id.relativelayout_popuwindow).getView(); popuwindow.setTouchable(true); popuwindow.update(); popuwindow.showAsDropDown(relativeLayout); tv_all.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_all); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = "a"; code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = "a"; code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } } }); tv_shuma.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_shuma); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(0).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(0).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } } }); tv_yinxiang.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_yinxiang); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(1).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(1).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } } }); tv_meirong.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_meirong); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(2).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(2).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } } }); tv_jiaju.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_jiaju); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(3).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(3).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); tv_muying.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_muying); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(4).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(4).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); tv_fushi.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_fushi); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(5).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(5).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); tv_jiadian.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_jiadian); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(6).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles(); getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(6).get("code").toString(); bundle.putString("str", strValue); code=2; fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); tv_bangong.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_bangong); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(7).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(7).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); tv_other.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); setLayoutColor(tv_other); if (ppp == 0) { Second_Fragment_1 fragment1 = new Second_Fragment_1(); Bundle bundle = new Bundle(); strValue = listRecycler.get(8).get("code").toString(); code=1; bundle.putString("str", strValue); fragment1.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } else { Second_Fragment_2 fragment2 = new Second_Fragment_2(); Bundle bundle = new Bundle(); strValue = listRecycler.get(8).get("code").toString(); code=2; bundle.putString("str", strValue); fragment2.setArguments(bundle); //如果transaction commit()过 那么我们要重新得到transaction FragmentTransaction transaction = manager.beginTransaction(); transaction.commit(); getData(); getTitles();getCode(); } } }); linearLayout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { popuwindow.dismiss(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onGlobalLayout() {\n ll_width.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n WindowManager windowManager = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);\n int left=ll_width.getLeft()*2;\n int width =(windowManager.getDefaultDisplay().getWidth() - left);\n dePatPopWin = new PopupWindow(view, width, LinearLayout.LayoutParams.WRAP_CONTENT);\n dePatPopWin.setFocusable(true);\n dePatPopWin.setOutsideTouchable(true);\n dePatPopWin.setBackgroundDrawable(new BitmapDrawable());\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // setContentView(R.layout.view_bottom_popwindow_container);\n initViews();\n initValues();\n }", "public void initiatePopupWindow(View v) {\n try {\n //We need to get the instance of the LayoutInflater, use the context of this activity\n LayoutInflater inflater = (LayoutInflater) Activity_Lesson_Unit_Point_Display_FlashCardActivity.this\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //Inflate the view from a predefined XML layout\n\n View view = inflater.inflate(R.layout.popup_screen,\n (ViewGroup) findViewById(R.id.popup_element));\n RelativeLayout layout = view.findViewById(R.id.popup_element);\n int width = 650;\n int height = 600;\n width = layout.getWidth();\n height = layout.getHeight();\n //Instantiate grid view\n gridView = view.findViewById(R.id.scroll_grid);\n //Instantiate grid adapter\n// scrollAdapter = new ScrollGridCardAdapter(FlashCardActivity.this,gja_questions,knownList,donknowList,skipList,getScreenSize());\n scrollAdapter = new ScrollGridCardAdapter(Activity_Lesson_Unit_Point_Display_FlashCardActivity.this,questionList,getScreenSize());\n //Setting Adapter to gridview\n gridView.setAdapter(scrollAdapter);\n // create a 300px width and 570px height PopupWindow\n pw = new PopupWindow(view, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n // display the popup in the center\n pw.showAtLocation(v, Gravity.CENTER, 0, 0);\n if (android.os.Build.VERSION.SDK_INT > 20) {\n pw.setElevation(10);\n }\n// TextView mResultText = (TextView) layout.findViewById(R.id.server_status_text);\n Button cancelButton = (Button) view.findViewById(R.id.pop_close_button);\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pw.dismiss();\n// disableEnableViews(myrlayout);\n mHideRunnable.run();\n }\n });\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n View popUpView = layoutInflater.inflate(R.layout.popup_layout, null);\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\r\n\t\tWindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams();\r\n\t\tlayoutParams.flags = WindowManager.LayoutParams.FLAG_DIM_BEHIND;\r\n\t\tlayoutParams.dimAmount = 0.7f;\r\n\t\tgetWindow().setAttributes(layoutParams);\r\n\r\n\t\tsetContentView(R.layout.activity_stageonelearnpopupthree);\r\n\t\t\r\n\t\tnextBtn = (ImageButton) findViewById(R.id.stage1_learn_popup3_next_btn);\r\n\t\tnextBtn.setOnClickListener(this);\r\n\r\n\t\twrongLayout = (RelativeLayout) findViewById(R.id.stage1_learn_popup3_wrong_layout);\r\n\t\twrongLayout.setVisibility(View.INVISIBLE);\r\n\t\tconfirmBtn = (ImageButton) findViewById(R.id.stage1_learn_popup3_wrong_confirm_btn);\r\n\t\tconfirmBtn.setOnClickListener(this);\r\n\t\t\r\n\t\tplv = (PointLinkerView) findViewById(R.id.stage1_learn_popup3_pointLinkerView);\r\n\t}", "private void InitUI() \n\t{\n\n\t\tRelativeLayout rel_abt = (RelativeLayout) rootView.findViewById(R.id.rel_abt);\n\t\tRelativeLayout rel_chgpass = (RelativeLayout) rootView.findViewById(R.id.rel_chgpass);\n\t\tRelativeLayout rel_tc = (RelativeLayout) rootView.findViewById(R.id.rel_tc);\n\t\tRelativeLayout rel_pp = (RelativeLayout) rootView.findViewById(R.id.rel_pp);\n\n\t\trel_abt.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\n\t\trel_chgpass.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\n\t\t\t\n\t\t\t\tshowdialog();\n\n\t\t\t}\n\t\t});\n\n\t\trel_tc.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\n\t\trel_pp.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t/*\n\t\t\t\tFragment fragment = new PrivacyPolicy();\n\t\t\t\tFragmentManager fmanager = getActivity().getSupportFragmentManager();\n\t\t\t\tFragmentTransaction ftans = fmanager.beginTransaction();\n\t\t\t\tftans.replace(R.id.frame_container, fragment);\n\t\t\t\tftans.commit();\n*/\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n //加载布局文件\n myView= (ViewGroup)getLayoutInflater().inflate(R.layout.popview, null);\n //后两个参数表示popupWindow的宽,高\n popupWindow = new PopupWindow(myView,200,200);\n \n }", "public void initViews(){\n layout_health = (RelativeLayout) findViewById(R.id.layout_health);\n layout_msg = (RelativeLayout) findViewById(R.id.layout_msg);\n layout_usercenter = (RelativeLayout) findViewById(R.id.layout_usercenter);\n\n// img_home = (ImageView) findViewById(R.id.img_home);\n img_health = (ImageView) findViewById(R.id.img_health);\n img_msg = (ImageView) findViewById(R.id.img_msg);\n img_usercenter = (ImageView) findViewById(R.id.img_usercenter);\n\n// tv_home = (TextView) findViewById(R.id.tv_home);\n tv_health = (TextView) findViewById(R.id.tv_health);\n tv_msg = (TextView) findViewById(R.id.tv_msg);\n tv_usercenter = (TextView) findViewById(R.id.tv_usercenter);\n\n }", "@Override\n public void onClick(View view) {\n final Dialog dialog = new Dialog(context);\n dialog.setTitle(\"FIRE ASSISTANCE\");\n dialog.setContentView(R.layout.zdialog_fire);\n\n WindowManager.LayoutParams lp1 = new WindowManager.LayoutParams();\n lp1.copyFrom(dialog.getWindow().getAttributes());\n lp1.width = WindowManager.LayoutParams.MATCH_PARENT;\n lp1.height = WindowManager.LayoutParams.WRAP_CONTENT;\n lp1.gravity = Gravity.CENTER;\n\n dialog.getWindow().setAttributes(lp1);\n\n fire1 = (LinearLayout) dialog.findViewById(R.id.fire1);\n fire2 = (LinearLayout) dialog.findViewById(R.id.fire2);\n fire3 = (LinearLayout) dialog.findViewById(R.id.fire3);\n fire4 = (LinearLayout) dialog.findViewById(R.id.fire4);\n fire5 = (LinearLayout) dialog.findViewById(R.id.fire5);\n fire6 = (LinearLayout) dialog.findViewById(R.id.fire6);\n\n fireRanked1 = (TextView) dialog.findViewById(R.id.fireRank1);\n fireRanked2 = (TextView) dialog.findViewById(R.id.fireRank2);\n fireRanked3 = (TextView) dialog.findViewById(R.id.fireRank3);\n fireRanked4 = (TextView) dialog.findViewById(R.id.fireRank4);\n fireRanked5 = (TextView) dialog.findViewById(R.id.fireRank5);\n fireRanked6 = (TextView) dialog.findViewById(R.id.fireA);\n\n fireRanked1.setText(agencyNameFire[0] + \"\" + statusFire[0]);\n fireRanked2.setText(agencyNameFire[1] + \"\" + statusFire[1]);\n fireRanked3.setText(agencyNameFire[2] + \"\" + statusFire[2]);\n fireRanked4.setText(agencyNameFire[3] + \"\" + statusFire[3]);\n fireRanked5.setText(agencyNameFire[4] + \"\" + statusFire[4]);\n fireRanked6.setText(agencyNameFire[5]);\n\n fire1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineFire[0].toString(), contCpFire[0].toString(), regFire[0], \"Fire\");\n\n }\n });\n\n fire2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineFire[1].toString(), contCpFire[1].toString(), regFire[1], \"Fire\");\n\n }\n });\n\n fire3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineFire[2].toString(), contCpFire[2].toString(), regFire[2], \"Fire\");\n\n }\n });\n\n fire4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineFire[3].toString(), contCpFire[3].toString(), regFire[3], \"Fire\");\n\n }\n });\n\n fire5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineFire[4].toString(), contCpFire[4].toString(), regFire[4], \"Fire\");\n\n }\n });\n fire6.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n callDialog(contLandlineCrime[5].toString(), contCpCrime[5].toString(), \"L0LucU9RMgOtV1MwVCGUR6oyhy62\", \"Fire\");\n\n }\n });\n\n // set the custom dialog components - text, image and button\n\n dialog.show();\n\n }", "private void initPlus() {\n thirdLayout = (LinearLayout) findViewById(R.id.third_layout);\n thirdLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(MainActivity.this, CameraActivity.class);\n startActivity(i);\n }\n });\n }", "public void initPopupLayout() {\n popup = new BackToMainScreenPopup(this.getContext(), getActivity());\n popup.showPopupWindow();\n }", "public CommonPopWindow loadLayout(@LayoutRes int layoutResId) {\n/* 48 */ this.mLayoutResId = layoutResId;\n/* */ \n/* 50 */ if (this.mLayoutResId != 0) {\n/* 51 */ mContentView = LayoutInflater.from(this.mContext).inflate(this.mLayoutResId, null);\n/* */ }\n/* */ \n/* 54 */ return this;\n/* */ }", "@Override\n\tpublic void findView() {\n\t\tsetFingerButton = (defineImageButton)findViewById(R.id.setFingerButton);\n\t\tsetFingerButton.setPosition(100, 80);\n\t\tsetFingerButton.setState(1);\n\t\tsetFingerButton.setText(\"添加普通用户指纹\");\n\t\t\n\t\taddAdminUser = (defineImageButton)findViewById(R.id.addAdminUserID);\n\t\taddAdminUser.setPosition(100, 80);\n\t\taddAdminUser.setText(\"添加管理员用户指纹\");\n\t\t\n\t\tclearNormalUserButton = (defineImageButton)findViewById(R.id.clearNormalUserID);\n\t\tclearNormalUserButton.setPosition(100, 80);\n\t\tclearNormalUserButton.setText(\"删除普通用户指纹\");\n\t\t\n\t\tclearAdminUserButton = (defineImageButton)findViewById(R.id.deleteAdminUserID);\n\t\tclearAdminUserButton.setPosition(100, 80);\n\t\tclearAdminUserButton.setText(\"删除管理员用户指纹\");\n\t\t\n\t//\tipAddrTextView = (TextView)findViewById(R.id.ipAddr);\n\t\tm_btnCancel = (Button) findViewById(R.id.btnCancel);\n\t\t\n\t\t//弹出带Name对话框\n\t\tView popWindowView = View.inflate(this, R.layout.adduserpopname, null);\n\t\tmenuDialogName = new AlertDialog.Builder(this).create();\n\t\tmenuDialogName.setView(popWindowView);\n\t\taddNormalNameCurButton1 = (Button) popWindowView.findViewById(R.id.button1);\n\t\taddNormalNameCurButton2 = (Button) popWindowView.findViewById(R.id.button2);\n\t\ttextViewName2 = (TextView)popWindowView.findViewById(R.id.textView2);\n\t\teditTextName = (EditText)popWindowView.findViewById(R.id.editTextName);\n\t\t\n\t\t//弹出无Name对话框\n\t\tView popWindow = View.inflate(this, R.layout.adduserpopwindow, null);\n\t\tmenuDialog = new AlertDialog.Builder(this).create();\n\t\tmenuDialog.setView(popWindow);\n\t\taddNormalCurButton1 = (Button) popWindow.findViewById(R.id.button1);\n\t\taddNormalCurButton2 = (Button) popWindow.findViewById(R.id.button2);\n\t\ttextView2 = (TextView)popWindow.findViewById(R.id.textView2);\n\t\ttextView3 = (TextView)popWindow.findViewById(R.id.textView3);\n\t\teditText1 = (EditText)popWindow.findViewById(R.id.editText1);\n\n\t\t\n\t\teditText1.setOnClickListener(new View.OnClickListener(){\n\t\t\t @Override\n\t\t\t public void onClick(View v) {\n\t\t\t \tResetChangeTime();\n\t\t\t }\n\t\t\t });\n\t\t\n\t\teditText1.addTextChangedListener(new TextWatcher(){ \n\t \n @Override \n public void onTextChanged(CharSequence s, int start, int before, \n int count) { \n \tResetChangeTime();\n }\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t\n\t\t\t} \n }); \n\t\t\n\t\teditTextName.setOnClickListener(new View.OnClickListener(){\n\t\t @Override\n\t\t public void onClick(View v) {\n\t\t \tResetChangeTime();\n\t\t }\n\t\t });\n\t\t\n\t\teditTextName.addTextChangedListener(new TextWatcher(){ \n\t \n @Override \n public void onTextChanged(CharSequence s, int start, int before, \n int count) { \n \tResetChangeTime();\n }\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\tint after) {\n\t\t\t\t\n\t\t\t} \n \n }); \n\t}", "public void OnDeleteRecipe (View View)\n {\n \t\tImageView darkenScreen = (ImageView) findViewById(R.id.darkenScreen);\n \t\tLayoutParams darkenParams = darkenScreen.getLayoutParams();\n \t\tdarkenParams.height = 1000;\n \t\tdarkenParams.width = 1000;\n \t\tdarkenScreen.setLayoutParams(darkenParams);\n \t\t//make the popup\n \t\tLinearLayout layout = new LinearLayout(this);\n \t\tLayoutInflater inflater = LayoutInflater.from(this);\n \t\tpopUp = new PopupWindow(inflater.inflate(R.layout.popup_delete_recipe, null, false),300,150,true);\n \t\tpopUp.showAtLocation(layout, Gravity.CENTER, 0, 0);\n \t\t\n \t\t//Log.d(\"what\", \"what\");\n \t\t//popUp.update(50, 50, 300, 80);\n \t\t\n \n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "public void displayInformation(View view) {\n layoutInflater = (LayoutInflater) getApplicationContext().getSystemService(LAYOUT_INFLATER_SERVICE);\r\n ViewGroup container = (ViewGroup) layoutInflater.inflate(R.layout.question_mark_popup,null);\r\n\r\n// popupWindow = new PopupWindow(container,ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT,true);\r\n// popupWindow.showAtLocation(view, Gravity.NO_GRAVITY,100,1300);\r\n\r\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\r\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\r\n popupWindow = new PopupWindow(container, width, height, true);\r\n\r\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\r\n\r\n container.setOnTouchListener(new View.OnTouchListener(){\r\n @Override\r\n public boolean onTouch(View view, MotionEvent motionEvent){\r\n popupWindow.dismiss();\r\n return true;\r\n }\r\n });\r\n\r\n }", "private void initPopView() {\n\n setChildSize();\n setChildZoomInSize();\n setPopViewWithDefaultSize();\n\n mShowingDetails = STATE_ITEM_DETAIL_NOT_SHOW;\n mLinearLayout = new LinearLayout(mContext);\n LinearLayout.LayoutParams mLayoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n mLinearLayout.setLayoutParams(mLayoutParams);\n mLinearLayout.setOrientation(LinearLayout.VERTICAL);\n mLinearLayout.setGravity(Gravity.CENTER_HORIZONTAL);\n\n LayoutTransition testT = new LayoutTransition();\n\n PropertyValuesHolder pvhScaleX = PropertyValuesHolder.ofFloat(\"scaleX\", 0f, 1f);\n PropertyValuesHolder pvhScaleY = PropertyValuesHolder.ofFloat(\"scaleY\", 0f, 1f);\n Animator appearAnimScale = ObjectAnimator.ofPropertyValuesHolder((Object) null ,pvhScaleX, pvhScaleY);\n appearAnimScale.setStartDelay(300);\n appearAnimScale.setDuration(300);\n appearAnimScale.setInterpolator(new AccelerateDecelerateInterpolator());\n testT.setAnimator(LayoutTransition.APPEARING, appearAnimScale);\n mLinearLayout.setLayoutTransition(testT);\n\n mTopGradientMask = new LinearLayout(mContext);\n LayoutParams mTopGradientMaskLayoutParams = new LayoutParams(mPopItemWidth, mPopItemHeight / 2);\n mTopGradientMaskLayoutParams.addRule(ALIGN_PARENT_TOP | CENTER_HORIZONTAL);\n mTopGradientMask.setLayoutParams(mTopGradientMaskLayoutParams);\n\n mTopGradientMask.setBackground(ContextCompat.getDrawable(mContext, DEFAULT_TOP_GRADIENT_DRAWABLE_RES_ID));\n\n mBottomGradientMask = new LinearLayout(mContext);\n LayoutParams mBottomGradientMaskLayoutParams = new LayoutParams(mPopItemWidth, mPopItemHeight /2);\n mBottomGradientMaskLayoutParams.addRule(ALIGN_PARENT_BOTTOM);\n mBottomGradientMaskLayoutParams.addRule(CENTER_HORIZONTAL);\n mBottomGradientMask.setLayoutParams(mBottomGradientMaskLayoutParams);\n mBottomGradientMask.setBackground(ContextCompat.getDrawable(mContext, DEFAULT_BOT_GRADIENT_DRAWABLE_RES_ID));\n }", "private void intviews() {\n\t\tyanzhengmall=(LinearLayout) findViewById(R.id.yanzhengma);\r\n\t\tphonell=(LinearLayout) findViewById(R.id.phone);\r\n\t\tzhucell=(LinearLayout) findViewById(R.id.zhuce);\r\n\t\tbtn=(Button) findViewById(R.id.button1);\r\n\t\tbtn1=(Button) findViewById(R.id.yanzhengmabutton);\r\n\t\tgetcodebtn=(Button) findViewById(R.id.getcodebtn);\r\n\t\tphoneet=(EditText) findViewById(R.id.phoneet);\r\n\t\tphonetv=(TextView) findViewById(R.id.phonetv);\r\n\t\tyanzhengmatv=(TextView) findViewById(R.id.yanzhengmatv);\r\n\t\tpasswordtv=(TextView) findViewById(R.id.passwordtv);\r\n\t\tbackimageview=(ImageView) findViewById(R.id.backimageview);\r\n\t\tcodeedittext=(EditText) findViewById(R.id.yanzhengmaEditText);\r\n\t\tpasswordet=(EditText) findViewById(R.id.passwordEditText);\r\n\t\tquerenpasswordet=(EditText) findViewById(R.id.passwordquerenEditText);\r\n\t\tregisterbtn=(Button) findViewById(R.id.zhucebutton);\r\n\t}", "private void initPopupMoodView(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setCancelable(false);\n\n LayoutInflater layoutInflaterInput = LayoutInflater.from(getActivity());\n popupView = layoutInflaterInput.inflate(R.layout.popup_mood, null);\n imHappy = popupView.findViewById(R.id.mood_happy);\n imNeutral = popupView.findViewById(R.id.mood_neutral);\n imSad = popupView.findViewById(R.id.mood_sad);\n\n alertDialogBuilder.setView(popupView);\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n imHappy.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // set\n imMood.setImageResource(R.drawable.happy_64);\n alertDialog.dismiss();\n }\n });\n\n imNeutral.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // set\n imMood.setImageResource(R.drawable.neutral_64);\n alertDialog.dismiss();\n }\n });\n\n imSad.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // set\n imMood.setImageResource(R.drawable.sad_64);\n alertDialog.dismiss();\n }\n });\n }", "private void showPopuopForOustanding() {\n String languageCode = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode);\n Utility.getInstance().localisation(getActivity(), languageCode);\n dialog = new Dialog(mContext);\n if (!dialog.isShowing()) {\n dialog.setCancelable(false);\n dialog.getWindow().addFlags(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setContentView(R.layout.outstanding_popup);\n textview_notFound = dialog.findViewById(R.id.textview_notFound);\n imageviewOutsnadingProfile = dialog.findViewById(R.id.imageviewOutsnadingProfile);\n textviewOustandingId = dialog.findViewById(R.id.textviewOustandingId);\n textviewOustandingName = dialog.findViewById(R.id.textviewOustandingName);\n textviewOustandingAmount = dialog.findViewById(R.id.textviewOustandingAmount);\n relativelayoutOustandingProfile = dialog.findViewById(R.id.relativelayoutProfile);\n edittextoustandingcustomerName = dialog.findViewById(R.id.edittextoustandingcustomerName);\n imageviewMicOustanding = dialog.findViewById(R.id.imageviewMicOustanding);\n ImageView imageviewCross = dialog.findViewById(R.id.imageviewCross);\n\n imageviewCross.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n dialog.dismiss();\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n imageviewDevitMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewMicCredit.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewOustMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n }\n });\n\n imageviewMicOustanding.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n edittextoustandingcustomerName.requestFocus();\n speechToTextFuncVoice(mContext, edittextoustandingcustomerName, 1, imageviewMicOustanding, 1);\n }\n });\n\n\n CardView cardviewOk = dialog.findViewById(R.id.cardviewOk);\n cardviewOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n dialog.dismiss();\n dialog.dismiss();\n if (textToSpeech != null) {\n textToSpeech.stop();\n }\n imageviewDevitMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewMicCredit.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n imageviewOustMic.setColorFilter(getResources().getColor(android.R.color.white), PorterDuff.Mode.SRC_IN);\n }\n });\n\n edittextoustandingcustomerName.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n Log.e(TAG, \"onTextChanged: \");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n Log.e(TAG, \"onTextChanged: \");\n if (dialog.isShowing()) {\n if(Utility.getInstance().isOnline(mContext)) {\n checkOustandingData(s.toString(), true);\n }else {\n Toast.makeText(mContext,getString(R.string.please_check_internet),Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n\n if (!dialog.isShowing()) {\n String languageCode2 = Utility.getInstance().getLanguage(getActivity());\n Utility.getInstance().setLanguage(getActivity(), languageCode2);\n Utility.getInstance().localisation(getActivity(), languageCode2);\n dialog.show();\n/* Window window = dialog.getWindow();\n window.setLayout(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);*/\n dialog.getWindow().setGravity(Gravity.TOP | Gravity.RIGHT);\n WindowManager.LayoutParams layoutParams = dialog.getWindow().getAttributes();\n layoutParams.x = 100; // right margin\n layoutParams.y = 170; // top margin\n dialog.getWindow().setAttributes(layoutParams);\n // e.g. bottom + left margins:\n dialog.getWindow().setGravity(Gravity.BOTTOM | Gravity.LEFT);\n WindowManager.LayoutParams layoutParams1 = dialog.getWindow().getAttributes();\n layoutParams1.x = 100; // left margin\n layoutParams1.y = 170; // bottom margin\n dialog.getWindow().setAttributes(layoutParams1);\n }\n }\n }", "private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }", "private void initParentView() {\n//\r\n\t\tbase_activity_title_notice = (TextView) findViewById(R.id.base_activity_title_left);\r\n\t\tivBack = (ImageView) findViewById(R.id.base_activity_title_backicon);\r\n//\t\tivBack_close = (ImageView) findViewById(R.id.base_activity_title_close);\r\n\t\trlTitlePrent = (RelativeLayout) findViewById(R.id.base_activity_title_parent);\r\n//\t\ttvTitleName_linear = (LinearLayout) findViewById(R.id.linear_titlename);\r\n//\t\ttvTitleName = (TextView) findViewById(R.id.base_activity_title_titlename);\r\n\t\tivTitleLeft = (ImageView) findViewById(R.id.base_activity_title_right_lefticon);\r\n//\t\tivTitledownIcon = (ImageView) findViewById(R.id.base_activity_title_downicon);\r\n\t\tivTitleMiddle = (ImageView) findViewById(R.id.base_activity_title_right_middleicon);\r\n//\t\tivTitleArrow = (ImageView) findViewById(R.id.base_activity_title_titleIcon);\r\n\t\tivTitleRight = (ImageView) findViewById(R.id.base_activity_title_right_righticon);\r\n\t\ttvRight = (TextView) findViewById(R.id.base_activity_title_right_righttv);\r\n//\t\trlReload = (RelativeLayout) findViewById(R.id.base_activity_load_fail_reload);\r\n//\t\tlinear_back = (LinearLayout) findViewById(R.id.linear_back);\r\n//\t\tbase_menu = (RelativeLayout) findViewById(R.id.base_menu);\r\n//\t\ttvNoDataContent = (TextView) findViewById(R.id.base_activity_no_data_content);\r\n//\t\tbase_tel_main = (ImageView) findViewById(R.id.base_tal_main);\r\n//\t\tbutton_hidded = (ImageView) findViewById(R.id.button_hidded);\r\n//\t\tiv_order = (ImageView) findViewById(R.id.iv_order);\r\n//\t\timageView_one = (ImageView) findViewById(R.id.imageView_one);\r\n//\t\tbase_shopping_mian = (ImageView) findViewById(R.id.base_shopping_mian);\r\n//\t\tmenu_shoppingnum = (TextView)findViewById(R.id.menu_shoppingNum);\r\n//\t\tlinear_menu = (LinearLayout) findViewById(R.id.linear_menu);\r\n//\t\tbutton_hidded_linear = (LinearLayout) findViewById(R.id.button_hidded_linear);\r\n//\r\n\r\n\r\n//\t\t// 添加地址\r\n//\t\ttvAddAddress = (TextView) findViewById(R.id.base_activity_no_address_add);\r\n//\t\tviewNoDrinksDemand = findViewById(R.id.base_activity_no_drink_demand);\r\n//\t\tNoMenu();\r\n//\t\tNoTelMenu();\r\n//\r\n////\t\tobjectAnimator = ObjectAnimator.ofFloat(base_tel_main,\"rotation\",-30,0,30);\r\n////\t\tobjectAnimator.setInterpolator(new LinearInterpolator());\r\n////\t\tobjectAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n////\t\tobjectAnimator.setDuration(1000);\r\n////\t\tobjectAnimator.setRepeatCount(ValueAnimator.INFINITE);\r\n////\t\tobjectAnimator.start();\r\n\t}", "private void findView() {\n\t\tibtn_trigger = (ImageButton) findViewById(R.id.ibtn_right_menu);\n\t}", "public void onCreate(android.os.Bundle r8) {\n /*\n r7 = this;\n android.view.Window r0 = r7.getWindow()\n r1 = 2\n r0.requestFeature(r1)\n android.view.Window r0 = r7.getWindow()\n r2 = -1\n r0.setFeatureInt(r1, r2)\n super.onCreate(r8)\n android.widget.LinearLayout r8 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15166b = r8 // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r8 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r0 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0.setLayoutParams(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0 = 1\n r8.setOrientation(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n java.lang.String r3 = \"IAInternalBrowserView\"\n r8.setContentDescription(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout r8 = new android.widget.RelativeLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r3 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r4 = -2\n r3.<init>(r2, r4) // Catch:{ Exception -> 0x01e1 }\n r8.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r3.addView(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r3.setId(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r4 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n android.content.res.Resources r5 = r7.getResources() // Catch:{ Exception -> 0x01e1 }\n int r6 = com.fyber.inneractive.sdk.C7636R.integer.ia_ib_toolbar_height_dp // Catch:{ Exception -> 0x01e1 }\n int r5 = r5.getInteger(r6) // Catch:{ Exception -> 0x01e1 }\n int r5 = com.fyber.inneractive.sdk.util.C8006j.m18072b(r5) // Catch:{ Exception -> 0x01e1 }\n r4.<init>(r2, r5) // Catch:{ Exception -> 0x01e1 }\n r5 = 12\n r4.addRule(r5) // Catch:{ Exception -> 0x01e1 }\n r3.setLayoutParams(r4) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_background // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n com.fyber.inneractive.sdk.util.C8006j.m18071a(r3, r4) // Catch:{ Exception -> 0x01e1 }\n r8.addView(r3) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_left_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15168d = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_right_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15169e = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_refresh // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15170f = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_close // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15171g = r4 // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15168d // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15169e // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15170f // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15171g // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = new android.webkit.WebView // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15167c = r3 // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.C7637id.inneractive_webview_internal_browser // Catch:{ Exception -> 0x01e1 }\n r3.setId(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r3 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n r3.addRule(r1, r0) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r1.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r8.addView(r1) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r7.setContentView(r8) // Catch:{ Exception -> 0x01e1 }\n android.content.Intent r8 = r7.getIntent()\n android.webkit.WebView r1 = r7.f15167c\n android.webkit.WebSettings r1 = r1.getSettings()\n r1.setJavaScriptEnabled(r0)\n r1.setSupportZoom(r0)\n r1.setBuiltInZoomControls(r0)\n r1.setUseWideViewPort(r0)\n r1.setLoadWithOverviewMode(r0)\n android.webkit.WebView r0 = r7.f15167c\n disableWebviewZoomControls(r0)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1\n r1.<init>()\n r0.setWebViewClient(r1)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2\n r1.<init>()\n r0.setWebChromeClient(r1)\n java.lang.String r0 = \"extra_url\"\n java.lang.String r8 = r8.getStringExtra(r0)\n boolean r0 = m16888b(r8)\n if (r0 == 0) goto L_0x016a\n java.lang.String r0 = \"http%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 != 0) goto L_0x013f\n java.lang.String r0 = \"https%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 == 0) goto L_0x012e\n goto L_0x013f\n L_0x012e:\n boolean r8 = r7.m16890c(r8)\n if (r8 == 0) goto L_0x013b\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$InternalBrowserListener r8 = f15165a\n if (r8 == 0) goto L_0x013b\n r8.onApplicationInBackground()\n L_0x013b:\n r7.finish()\n goto L_0x016f\n L_0x013f:\n java.lang.String r0 = \"utf-8\"\n java.lang.String r0 = java.net.URLDecoder.decode(r8, r0) // Catch:{ Exception -> 0x0154 }\n java.net.URL r1 = new java.net.URL // Catch:{ Exception -> 0x0154 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0154 }\n android.webkit.WebView r8 = r7.f15167c // Catch:{ Exception -> 0x0151 }\n r8.loadUrl(r0) // Catch:{ Exception -> 0x0151 }\n goto L_0x0169\n L_0x0151:\n r8 = move-exception\n r8 = r0\n goto L_0x0155\n L_0x0154:\n r0 = move-exception\n L_0x0155:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"Failed to open Url: \"\n r0.<init>(r1)\n r0.append(r8)\n java.lang.String r8 = r0.toString()\n com.fyber.inneractive.sdk.util.IAlog.m18023d(r8)\n r7.finish()\n L_0x0169:\n goto L_0x016f\n L_0x016a:\n android.webkit.WebView r0 = r7.f15167c\n r0.loadUrl(r8)\n L_0x016f:\n android.widget.ImageButton r8 = r7.f15168d\n r0 = 0\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15168d\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15168d\n java.lang.String r1 = \"IABackButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15169e\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15169e\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15169e\n java.lang.String r1 = \"IAForwardButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15170f\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15170f\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15170f\n java.lang.String r1 = \"IARefreshButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15171g\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15171g\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6 r0 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6\n r0.<init>()\n r8.setOnClickListener(r0)\n android.widget.ImageButton r8 = r7.f15171g\n java.lang.String r0 = \"IACloseButton\"\n r8.setContentDescription(r0)\n int r8 = android.os.Build.VERSION.SDK_INT\n r0 = 21\n if (r8 >= r0) goto L_0x01dd\n android.content.Context r8 = com.fyber.inneractive.sdk.util.C8006j.m18075n()\n android.webkit.CookieSyncManager.createInstance(r8)\n android.webkit.CookieSyncManager r8 = android.webkit.CookieSyncManager.getInstance()\n r8.startSync()\n L_0x01dd:\n com.fyber.inneractive.sdk.util.C8006j.m18079r()\n return\n L_0x01e1:\n r8 = move-exception\n r7.finish()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity.onCreate(android.os.Bundle):void\");\n }", "private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}", "private void ini() {\n\t\tmLinearLayoutpush = (LinearLayout)findViewById(R.id.mLinearLayoutpush);\n\t\tmDialogText = (TextView)findViewById(R.id.mDialogText);\n\t\tmDialogTitle = (TextView)findViewById(R.id.mDialogTitle);\n\t\tmButtonpush = (Button)findViewById(R.id.mButtonpush);\n\t\tmbtn_back = (ImageButton)findViewById(R.id.mbtn_back);\n\t\tmLinearLayoutpush.setOnClickListener(this);\n\t\tmDialogText.setOnClickListener(this);\n\t\tmDialogTitle.setOnClickListener(this);\n\t\tmButtonpush.setOnClickListener(this);\n\t\tmbtn_back.setOnClickListener(this);\n\t\t\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); // Make activity fullscreen\n\n // SIEMPRE SIEMPRE CREAMOS ESTA COSA, PARA QUE TODOO LO DEMAS JALE\n final Context context = this;\n AbsoluteLayout windowsCanvas = new AbsoluteLayout(this);\n\n // CREAMOS EL CONTENEDOR PADRE\n this.window = new SfPanel();\n\n // CREAMOS PANELES HIJOS\n //SfPanel cuadro1 = new SfPanel();\n //SfPanel cuadro2 = new SfPanel();\n\n // CREO EL VIEW\n View backGround = new View(context);\n ///View c1 = new View(context);\n //ImageView c2 = new ImageView(context);\n\n // LE DOY COLOR DE FONDO\n\n backGround.setBackgroundResource(R.color.darksss);\n //backGround.setBackgroundResource(R.drawable.po);\n\n //c1.setBackgroundColor(Color.RED);\n\n // LENO VIEWS (LOS QUE SE PUEDAN)\n //c2.setImageResource(R.drawable.go_1);\n\n // PONEMOS EL VIEW EN EL PANEL\n this.window.setView(backGround);\n //cuadro1.setView(c1);\n //cuadro2.setView(c2);\n\n // DOY TAMAÑOS A TODOO\n this.window.setSize(-100, -100);\n //cuadro1.setSize(-90, -50);\n //cuadro2.setSize(-40, -25);\n\n // HACEMOS APPENDS\n //this.window.append(cuadro1);\n //this.window.append(cuadro2);\n\n // AGREGAMOS A LA PANTALLA\n windowsCanvas.addView(backGround);\n //windowsCanvas.addView(c1);\n //windowsCanvas.addView(c2);\n\n String name = new String();\n int id;\n String idPokemon = new String();\n\n for ( int i = 1; i<=15; i++ ) {\n name = \"go_\".concat(String.valueOf(i));\n\n SfPanel pokemonPanel = new SfPanel();\n ImageView pokemonView = new ImageView(context);\n\n id = context.getResources().getIdentifier(name, \"drawable\", context.getPackageName());\n pokemonView.setImageResource(id);\n //pokemonView.setBackgroundColor(Color.GRAY);\n //pokemonView.setBackgroundResource(R.drawable.border);\n idPokemon = String.valueOf(i);\n\n final String finalIdPokemon = idPokemon;\n pokemonView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"POKEMON CON ID: \" + String.valueOf(finalIdPokemon), Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(Home.this, pokemonDetail.class);\n intent.putExtra(\"pokemonId\", finalIdPokemon);\n startActivity(intent);\n\n }\n });\n\n pokemonPanel.setView(pokemonView);\n this.window.append(pokemonPanel);\n pokemonPanel.setSize(-30,-15);\n pokemonPanel.setMargin(15,5,25,0);\n pokemonPanel.setKey(name);\n windowsCanvas.addView(pokemonView);\n }\n\n // PONER ESTO\n window.update(this);\n\n // MAGIA\n //Activity activity = (Activity) context;\n this.setContentView(windowsCanvas);\n }", "@SuppressWarnings(\"deprecation\")\n\t@SuppressLint(\"NewApi\")\n\t@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tdialog = new Dialog(this);\n\t\tWindow dialogWindow = dialog.getWindow();\n\t\tWindowManager.LayoutParams dlp = dialogWindow.getAttributes();\n\t\tdialogWindow.setGravity(Gravity.CENTER);\n\n\t\tWindowManager wm = (WindowManager) this\n\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\n\t\tint width = wm.getDefaultDisplay().getWidth();\n\t\tint height = wm.getDefaultDisplay().getHeight();\n\n\t\tdlp.width = width * 4 / 5; // 宽度\n\t\tdlp.height = width * 7 / 20; // 高度\n\t\tdlp.alpha = (float) 1.;\n\n\t\tsetContentView(R.layout.shake);\n\t\tRelativeLayout rll_border = (RelativeLayout) findViewById(R.id.shake_border);\n\t\tRelativeLayout rll = (RelativeLayout) findViewById(R.id.head_shake);\n\t\tRelativeLayout rll_main = (RelativeLayout) findViewById(R.id.shake_main);\n\t\tshakeIcon = (ImageView) findViewById(R.id.img_shake_icon);\n\t\tshakeIcon.setOnClickListener(this);\n\t\tImageView shakebowl = (ImageView) findViewById(R.id.img_shake_bowl);\n\t\tImageView shakecate = (ImageView) findViewById(R.id.img_shake_cake);\n\t\tImageView back = (ImageView) findViewById(R.id.img_shake_back);\n\t\tback.setOnClickListener(this);\n\t\tImageView bottom = (ImageView) findViewById(R.id.img_shake_bottom);\n\t\tView v = (View) findViewById(R.id.view_shake_space);\n\n\t\tBitmap bm = BitmapFactory.decodeResource(getResources(),\n\t\t\t\tR.drawable.shake_background);\n\t\tBitmap bm1 = Bitmap.createBitmap(bm, 0, 0, width,\n\t\t\t\theight - rll.getLayoutParams().height);\n\t\tDrawable bd = new BitmapDrawable(getResources(), bm1);\n\t\trll_main.setBackgroundDrawable(bd);\n\n\t\tv.getLayoutParams().height = width / 8;\n\n\t\tshakeIcon.getLayoutParams().height = width * 13 / 36;\n\t\tshakeIcon.getLayoutParams().width = width * 13 / 36;\n\t\tshakeIcon.setImageResource(R.drawable.shake_icon2);\n\n\t\trll_border.setBackgroundResource(R.drawable.shake_border);\n\t\tRelativeLayout.LayoutParams lp = (LayoutParams) rll_border\n\t\t\t\t.getLayoutParams();\n\t\tlp.height = width / 2;\n\t\tlp.width = width / 2;\n\n\t\tbottom.setBackgroundResource(R.drawable.shake_bottom);\n\t\tbottom.getLayoutParams().height = width / 3;\n\n\t\tshakebowl.getLayoutParams().height = width * 12 / 36;\n\t\tshakebowl.getLayoutParams().width = width * 12 / 36;\n\t\tshakebowl.setImageResource(R.drawable.shake_bowl);\n\t\tshakebowl.bringToFront();\n\n\t\tshakecate.getLayoutParams().height = width * 12 / 36;\n\t\tshakecate.getLayoutParams().width = width * 12 / 36;\n\t\tshakecate.setImageResource(R.drawable.shake_cake);\n\t\t// 将控件至于上层\n\t\tshakecate.bringToFront();\n\t}", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "@Override\r\n\tprotected void create(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.tczv3_shopgoodslist);\r\n\t\tView more_view = LayoutInflater.from(this).inflate(R.layout.head_more,\r\n\t\t\t\tnull);\r\n\t\tpw_more = new PopupWindow(more_view, LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tLayoutParams.WRAP_CONTENT);\r\n\t\tpw_more.setBackgroundDrawable(new BitmapDrawable());\r\n\t\tpw_more.setOutsideTouchable(true);\r\n\t\theadlayout = (TczV3_HeadLayout) findViewById(R.tczv3.header);\r\n\t\theadlayout.setLeftClick(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tTczV3ShopGoodsListAct.this.finish();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbusinessname = getIntent().getStringExtra(\"title\");\r\n\t\tbusinessid = getIntent().getStringExtra(\"businessid\");\r\n\t\theadlayout.setTitle(businessname);\r\n\t\theadlayout.setRightButton1Background(R.drawable.tczv3_icon_more);\r\n\t\theadlayout.setRightButton1Click(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tif (pw_more.isShowing()) {\r\n\t\t\t\t\tpw_more.dismiss();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tpw_more.showAsDropDown(headlayout.getButton1());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tmore_view.findViewById(R.id.li_share).setVisibility(View.GONE);\r\n\t\tbtn_home_page = (Button) more_view.findViewById(R.id.btn_home_page);\r\n\t\tbtn_mine = (Button) more_view.findViewById(R.id.btn_mine);\r\n\t\tbtn_category = (Button) findViewById(R.tczv3.bt_category);\r\n\t\tbtn_home_page.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tFrame.HANDLES.closeWidthOut(\"FrameAg\");\r\n\t\t\t\tFrame.HANDLES.sentAll(\"FrameAg\", 1, R.frame.homeindex);\r\n\t\t\t\tpw_more.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_mine.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tFrame.HANDLES\r\n\t\t\t\t\t\t.closeWidthOut(\"FrameAg,MyAct,ShoppingCartAct,Search_Act,V3_ThreeMenuAct,HomePageAct\");\r\n\t\t\t\tif (F.USER_ID.equals(\"\")) {\r\n\t\t\t\t\tIntent intent = new Intent(TczV3ShopGoodsListAct.this,\r\n\t\t\t\t\t\t\tTczV3_LoginAct.class);\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tFrame.HANDLES.sentAll(\"FrameAg\", 1, R.frame.more);\r\n\t\t\t\t}\r\n\t\t\t\tpw_more.dismiss();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\theadlayout.setRightButton2Background(R.drawable.tczv3_icon_search);\r\n\t\theadlayout.setRightButton2Click(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent i = new Intent();\r\n\t\t\t\ti.putExtra(\"businessname\", businessname);\r\n\t\t\t\ti.putExtra(\"businessid\", businessid);\r\n\t\t\t\ti.putExtra(\"actfrom\", \"TczV3ShopGoodsListAct\");\r\n\t\t\t\ti.setClass(TczV3ShopGoodsListAct.this,\r\n\t\t\t\t\t\tTczV3_Com_SearchAct.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\timg = (MImageView) findViewById(R.tczv3.img);\r\n\t\tmDragChangeView = (DragChangeView) findViewById(R.tczv3.DragChangeView);\r\n\t\tmDragChangeView.setAutoMove(true);\r\n\t\tmDragChangeView.setNoCurrIcon(R.drawable.index_cur_nor);\r\n\t\tmDragChangeView.setCurrIcon(R.drawable.index_cur_ped);\r\n\t\tmDragChangeView.setMoveIcon(R.drawable.index_cur_ped);\r\n\t\tmDragChangeView.setHideRadio(false);\r\n\t\tmDragChangeView.setAutoMove(false);\r\n\t\tmDragChangeView.setRadius(7);\r\n\r\n\t\tgridView = (MyGridView) findViewById(R.tczv3.gridview);\r\n\t\tgoodscount = (TextView) findViewById(R.tczv3.goodscount);\r\n\t\tshoppoint = (TextView) findViewById(R.tczv3.pj_point);\r\n\t\tcollection = (TextView) findViewById(R.tczv3.t_collection);\r\n\t\tico_collection = (ImageView) findViewById(R.tczv3.icon_collection);\r\n\t\tt_allgoods = (TextView) findViewById(R.tczv3.t_allgoods);\r\n\t\timg_layout = (LinearLayout) findViewById(R.tczv3.img_layout);\r\n\t\tbusinesspic = (MImageView) findViewById(R.tczv3.businesspic);\r\n\t\tcategory_title = (TextView) findViewById(R.tczv3.category_title);\r\n\t\tt_allgoods.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent();\r\n\t\t\t\ti.putExtra(\"businessid\", businessid);// 1278\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\ti.putExtra(\"actfrom\", \"TczV3ShopGoodsListAct\");\r\n\t\t\t\ti.setClass(getApplicationContext(), TczV3_GoodsListAct.class);\r\n\t\t\t\tgetApplicationContext().startActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_category.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tIntent i = new Intent();\r\n\t\t\t\ti.putExtra(\"businessid\", businessid);// 1278\r\n\t\t\t\ti.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t\t\ti.putExtra(\"actfrom\", \"TczV3ShopGoodsListAct\");\r\n\t\t\t\ti.setClass(getApplicationContext(), TczV3_GoodsListAct.class);\r\n\t\t\t\tgetApplicationContext().startActivity(i);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdataLoad(new int[] { 0 });\r\n\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.activity_home, container, false);\n RelativeLayout tourBtn = (RelativeLayout) view.findViewById(R.id.tourBtn);\n RelativeLayout eatingBtn = (RelativeLayout) view.findViewById(R.id.eatingBtn);\n RelativeLayout accomoBtn = (RelativeLayout) view.findViewById(R.id.accomoBtn);\n RelativeLayout introBtn = (RelativeLayout) view.findViewById(R.id.introBtn);\n tourBtn.setOnClickListener(this);\n eatingBtn.setOnClickListener(this);\n accomoBtn.setOnClickListener(this);\n introBtn.setOnClickListener(this);\n return view;\n\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "@Override\n\tpublic int getResView() {\n\t\treturn \tR.layout.pop_level_list;\n\t}", "protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_hufup);\n\t\tinitView();// 初始化部件。\n\t\tinitPopupwindow();// 重置popupwindow\n\t\tinitResultPopupWindow();\n\n\t\treset.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (mypopupwindow.isShowing()) {\n\t\t\t\t\tmypopupwindow.dismiss();\n\t\t\t\t} else {\n\t\t\t\t\tmypopupwindow.showAtLocation(\n\t\t\t\t\t\t\tfindViewById(R.id.linearlayout0), Gravity.CENTER,\n\t\t\t\t\t\t\t10, 10);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlinearlayout2.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t// 第一次点击\n\t\t\t\tLog.i(\"flag的值\", String.valueOf(flag));\n\t\t\t\tif (flag == 1) {\n\t\t\t\t\tstart_tv.setText(\"测试中......\");\n\t\t\t\t\tnew oneThread().start();// 开始线程、延时五秒\n\t\t\t\t}\n\t\t\t\t// 第二次点击\n\t\t\t\tif (flag == 2) {\n\t\t\t\t\tstart_tv.setText(\"测试中......\");\n\t\t\t\t\tnew twoThread().start();// 开始线程、延时五秒\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tohandler = new Handler() {\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tflag = flag + 1;\n\t\t\t\tstart_tv.setText(\"再次测试\");\n\t\t\t\tstart_one = RandClass.RandomInty(45, 30);\n\t\t\t\tresult.setText(start_one + \"%\");// 显示随机数水分\n\t\t\t\ttv1.setText(start_one);\n\n\t\t\t\tToast.makeText(MainActivity.this, \"使用护肤品之前测试完成了哦~\", 3000)\n\t\t\t\t\t\t.show();\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}\n\t\t};\n\t\thandler = new Handler() {\n\t\t\t@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tflag = 1;\n\t\t\t\tstart_two = RandClass.RandomInty(80, 45);\n\t\t\t\tresult.setText(start_two + \"%\");// 显示随机数水分\n\t\t\t\ttv2.setText(start_two);\n\t\t\t\tFloat f = Float.parseFloat(start_two) - Float.parseFloat(start_one);\n\t\t\t\tBigDecimal b = new BigDecimal(f); \n\t\t\t\tfloat f1 = b.setScale(2,BigDecimal.ROUND_HALF_UP).floatValue();\n\t\t\t\topinion.setText(\"根据数据显示,\"\n\t\t\t\t\t\t+ brand.getText().toString()\n\t\t\t\t\t\t+ \"为您的肌肤增加了\"\n\t\t\t\t\t\t+ String.valueOf(f1) + \"%水分.\");\n\t\t\t\tresultPopupWindow.showAtLocation(\n\t\t\t\t\t\tfindViewById(R.id.oo), Gravity.CENTER, 0,\n\t\t\t\t\t\t0);\n\t\t\t\tstart_tv.setText(\"开始测试\");\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}\n\t\t};\n\n\t}", "private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }", "@Override\n public void onItemClick(View view, Medal obj, int position) {\n TextView txt;\n final Dialog dialog = new Dialog(getContext());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // before\n dialog.setContentView(R.layout.popup_medals);\n txt = dialog.findViewById(R.id.titlePop);\n txt.setText(obj.title);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n dialog.setCancelable(true);\n dialog.show();\n }", "private void initPopupViewControls(){\n // Get layout inflater object.\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n\n // Inflate the popup dialog from a layout xml file.\n popupInputDialogView = layoutInflater.inflate(R.layout.custom_popup_add_new_communication_record, null);\n\n // Get user input edittext and button ui controls in the popup dialog.\n _interactionTypeSpinner = popupInputDialogView.findViewById(R.id.inteructionTypeSpinner);\n _details = popupInputDialogView.findViewById(R.id.details);\n _specialNote = popupInputDialogView.findViewById(R.id.specialNote);\n _nextActionTypeSpinner = popupInputDialogView.findViewById(R.id.nextActionTypeSpinner);\n _nextActionDate = popupInputDialogView.findViewById(R.id.nextActionDate);\n _nextMeetingLocation = popupInputDialogView.findViewById(R.id.nextMeetingLocation);\n\n _saveFamilyMember = popupInputDialogView.findViewById(R.id.button_save_user_data);\n _cancelInput = popupInputDialogView.findViewById(R.id.button_cancel_user_data);\n\n\n }", "public void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tint id=v.getId();\n\t\t\t\t\t\tfloat setX,setY;\n\t\t\t\t\t\t String str2=\"\"+(sm[id].getXValue()*screenwidth);\n\t\t\t\t\t\t setX = Float.parseFloat(str2);\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t str2=\"\"+(sm[id].getYValue()*screenheight);\n\t\t\t\t\t\t setY = Float.parseFloat(str2);\n\t\t\t\t\t\t//Toast.makeText(getContext(), \"By image click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t//Log.d(\"x y\",\"\"+setX+\" \"+setY);\n\t\t\t\t\t\t//Button img=new Button(context);\n\t\t\t\t\t\t//img.setBackgroundResource(R.drawable.back_blue_button);\n\t\t\t\t\t\t//img.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t RelativeLayout.LayoutParams par2=new RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT,android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);\n//\t\t\t\t\t\t par2.leftMargin=(int)(setX);\n//\t\t\t\t\t\t par2.topMargin=(int)(setY);\n//\t\t\t\t\t\t popMsg.setLayoutParams(par2);\n//\t\t\t\t\t\t popMsg.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t //popMsg.setText(\"from sfsf dfdfsfd dfdsf df dfdfdf d fdfedfd dfdfdf dfdf df dfdfd \");\n//\t\t\t\t\t\t popMsg.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t//RelativeLayout.LayoutParams par2=v.(RelativeLayout.LayoutParams)getTag();\n\t\t\t\t\t\t // img.setLayoutParams(par2);\n\t\t\t\t\t\t // mapLayout.addView(img);\n\t\t\t\t\t\t String text=\"Project - \"+sm[id].getProjectName()+\"\\n\"+\"Building - \"+sm[id].getBuildingName()+\"\\n\"+\"Floor - \"+sm[id].getFloor()+\"\\n\"+\"Apartment - \"+sm[id].getApartment()+\"\\n\"+\"Area - \"+sm[id].getAptAreaName()+\"\\n\"+\"SnagType - \"+sm[id].getSnagType()+\"\\n\"+\"FaultType - \"+sm[id].getFaultType()+\"\\n\"+\"Status - \"+sm[id].getSnagStatus()+\"\\n\"+\"ReportDate - \"+sm[id].getReportDate()+\"\\n\"+\"SnagDetails - \"+sm[id].getSnagDetails()+\"\\n\"+\"PriorityLevel - \"+sm[id].getSnagPriority()+\"\\n\"+\"Cost - \"+sm[id].getCost()+\"\\n\"+\"CostTO - \"+sm[id].getCostTo()+\"\\n\"+\"AllocatedToName - \"+sm[id].getAllocatedToName()+\"\\n\"+\"InspectorName - \"+sm[id].getInspectorName()+\"\\n\"+\"ContractorName - \"+sm[id].getContractorName()+\"\\n\"+\"SubContractorName - \"+sm[id].getSubContractorName()+\"\\n\"+\"ContractorStatus - \"+sm[id].getContractorStatus();\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n//\t\t\t\t\t\t \n\t\t\t\t\t\t final int loc=id;\n\t\t\t\t\t\t new AlertDialog.Builder(context)\n\t\t\t\t \t .setTitle(\"Snag Detail\")\n\t\t\t\t \t .setMessage(\"\"+text)\n\t\t\t\t \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t \t public void onClick(DialogInterface dialog, int which) { \n\t\t\t\t \t \t//Toast.makeText(context,\"\"+0.052083332*screenwidth+\" \"+0.078125*screenheight,Toast.LENGTH_LONG).show();\n\t\t\t\t \t // continue with delete\n\t\t\t\t \t }\n\t\t\t\t \t })\n\t\t\t\t \t .show();\n\t\t\t\t\t}", "@Override\n protected void findView() {\n title = (TextView) findViewById(R.id.title_text);\n title.setText(\"消息\");\n alert = (TextView) findViewById(R.id.alert);\n next_button = (Button) findViewById(R.id.next_button);\n next_button.setVisibility(View.GONE);\n layout = (XtomRefreshLoadmoreLayout) findViewById(R.id.refreshLoadmoreLayout);\n left = (ImageButton) findViewById(R.id.back_button);\n mListView = (SwipeMenuListView) findViewById(R.id.listView);\n }", "public void showPopup(View view) {\n\n View popupView = getLayoutInflater().inflate(R.layout.moodpopup, null);\n final MainActivity activity = (MainActivity) getActivity();\n\n final String date = activity.getDate();\n\n final PopupWindow popupWindow = new PopupWindow(popupView, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\n\n TextView close = popupView.findViewById(R.id.close);\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n popupWindow.dismiss();\n }\n });\n\n //Very Bad button\n LinearLayout veryBad = popupView.findViewById(R.id.mood_very_bad);\n veryBad.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (activity.database.moodIDExists(activity.getLoggedInUser(), date)) {\n activity.database.updateMood(activity.getLoggedInUser(), date, 1);\n } else\n activity.database.newMood(activity.getLoggedInUser(), 1, date);\n Toast.makeText(getContext(),\"Mood Update\",Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n\n }\n });\n\n // Bad button\n LinearLayout bad = popupView.findViewById(R.id.mood_bad);\n bad.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (activity.database.moodIDExists(activity.getLoggedInUser(), date)) {\n activity.database.updateMood(activity.getLoggedInUser(), date, 2);\n } else\n activity.database.newMood(activity.getLoggedInUser(), 2, date);\n Toast.makeText(getContext(),\"Mood Update\",Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n\n }\n });\n\n //Neutral button\n LinearLayout neutral = popupView.findViewById(R.id.mood_neutral);\n neutral.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (activity.database.moodIDExists(activity.getLoggedInUser(), date)) {\n activity.database.updateMood(activity.getLoggedInUser(), date, 3);\n } else\n activity.database.newMood(activity.getLoggedInUser(), 3, date);\n Toast.makeText(getContext(),\"Mood Update\",Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n\n }\n });\n\n //Good button\n LinearLayout good = popupView.findViewById(R.id.mood_good);\n good.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (activity.database.moodIDExists(activity.getLoggedInUser(), date)) {\n activity.database.updateMood(activity.getLoggedInUser(), date, 4);\n } else\n activity.database.newMood(activity.getLoggedInUser(), 4, date);\n Toast.makeText(getContext(),\"Mood Update\",Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n\n }\n });\n\n //Very Good button\n LinearLayout veryGood = popupView.findViewById(R.id.mood_very_good);\n veryGood.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (activity.database.moodIDExists(activity.getLoggedInUser(), date)) {\n activity.database.updateMood(activity.getLoggedInUser(), date, 5);\n } else\n activity.database.newMood(activity.getLoggedInUser(), 5, date);\n Toast.makeText(getContext(),\"Mood Update\",Toast.LENGTH_SHORT).show();\n popupWindow.dismiss();\n\n\n }\n });\n\n\n popupWindow.setFocusable(true);\n\n int[] location = new int[2];\n view.getLocationOnScreen(location);\n\n popupWindow.showAtLocation(view, Gravity.CENTER_HORIZONTAL, 0, view.getHeight());\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n setContentView(R.layout.upspine);\n \n\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t LinearLayout main = (LinearLayout) findViewById(R.id.top_layover); \n\t\t\t\t \t main.setBackgroundColor(0xff0099cc);\n\t\t\t\t \t LinearLayout shell = (LinearLayout) findViewById(R.id.bottom_layover); \n\t\t\t\t \t shell.setBackgroundColor(0xff0099cc);\n\t\t\t\t // Write your code here to execute after dialog\n\t\t\t\t Toast.makeText(getApplicationContext(),\n\t\t\t\t \"Declined\", Toast.LENGTH_SHORT)\n\t\t\t\t .show();\n\t\t\t\t dialog.cancel();\n\t\t\t\t }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.circle2, container, false);\n\n TextView flash_header = (TextView) view.findViewById(R.id.flash_header);\n flash_header.setText(\"Identify all the objects which are in the shape of a circle in the living room\");\n\n RelativeLayout flash_question = (RelativeLayout) view.findViewById(R.id.flash_question);\n flash_question.setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));\n\n ImageView speaker = (ImageView) view.findViewById(R.id.speaker);\n speaker.setOnClickListener(this);\n\n tv_stand = (ImageView) view.findViewById(R.id.tv_stand);\n wall_clock = (ImageView) view.findViewById(R.id.wall_clock);\n mirror = (ImageView) view.findViewById(R.id.mirror);\n cuboard = (ImageView) view.findViewById(R.id.cuboard);\n television = (ImageView) view.findViewById(R.id.television);\n frame = (ImageView) view.findViewById(R.id.frame);\n ivLamp = (ImageView) view.findViewById(R.id.ivLamp);\n chair = (ImageView) view.findViewById(R.id.chair);\n image1 = (ImageView) view.findViewById(R.id.image1);\n image2 = (ImageView) view.findViewById(R.id.image2);\n image3 = (ImageView) view.findViewById(R.id.image3);\n\n tv_stand.setOnClickListener(this);\n wall_clock.setOnClickListener(this);\n mirror.setOnClickListener(this);\n cuboard.setOnClickListener(this);\n television.setOnClickListener(this);\n frame.setOnClickListener(this);\n ivLamp.setOnClickListener(this);\n chair.setOnClickListener(this);\n\n return view;\n }", "private void findDialogView() {\n dialog = new BottomSheetDialog(getActivity(), R.style.BottomSharingSheet);\n View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.sharing_bottom_sheet, null);\n dialog.setContentView(dialogView);\n closeNavigation = dialogView.findViewById(R.id.imgClose);\n llFacebook = dialogView.findViewById(R.id.llFacebook);\n llTwitter = dialogView.findViewById(R.id.llemail);\n llInstagram = dialogView.findViewById(R.id.lltalk);\n llStories = dialogView.findViewById(R.id.llGoogle);\n llBand = dialogView.findViewById(R.id.llBand);\n llMore = dialogView.findViewById(R.id.llMore);\n llVideoReport = dialogView.findViewById(R.id.llVideoReport);\n closeNavigation.setOnClickListener(this);\n llFacebook.setOnClickListener(this);\n llTwitter.setOnClickListener(this);\n llInstagram.setOnClickListener(this);\n llStories.setOnClickListener(this);\n llBand.setOnClickListener(this);\n llMore.setOnClickListener(this);\n llVideoReport.setOnClickListener(this);\n\n }", "private void m22265Oj() {\n this.dLm = (LinearLayout) findViewById(R.id.dot_container);\n this.f3556yH = (ViewPager) findViewById(R.id.viewPager);\n azI();\n }", "public void onButtonShowPopupWindowClick(View view) {\n LayoutInflater inflater = (LayoutInflater)\n getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.activity_pop_up_time, null);\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n Button close = (Button) popupView.findViewById(R.id.confirmBtn);\n close.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n }\n });\n }", "public void ShowPopup(View v) {\n TextView txtclose;\n Button btnOrder;\n myDialog.setContentView(R.layout.custompopup);\n txtclose = (TextView) myDialog.findViewById(R.id.txtclose);\n btnOrder = (Button) myDialog.findViewById(R.id.btnorder);\n txtclose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n myDialog.dismiss();\n }\n });\n\n\n myDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n myDialog.show();\n\n\n TextView DrinkNameText;\n DrinkNameText = (TextView) myDialog.findViewById(R.id.DrinkNameText);\n DrinkNameText.setText(DrinkName);\n\n TextView DrinkTypeText;\n DrinkTypeText = (TextView) myDialog.findViewById(R.id.DrinkNameTypeText);\n DrinkTypeText.setText(DrinkType);\n\n /**\n TextView SetDrinkNameText = (TextView) findViewById(R.id.DrinkNameText);\n SetDrinkNameText.setText(DrinkName);\n TextView SetDrinkTypeText = (TextView) findViewById(R.id.DrinkNameTypeText);\n SetDrinkTypeText.setText(DrinkType);\n **/\n LinearLayout SetDrinkSizeSmall;\n SetDrinkSizeSmall = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Small);\n SetDrinkSizeSmall.setOnClickListener(new View.OnClickListener() {\n//SETTING THE SIZE OF THE DRINK USING THE 3 BUTTONS IN THE POP UP! THIS IS ONE VALUE OF THE DRINK ORDER\n @Override\n public void onClick(View v) {\n DrinkSize = 1;\n DrinkSizeText = \"Small\";\n Toast Small = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Small\",\n Toast.LENGTH_SHORT);\n\n Small.show();\n }\n\n });\n\n\n LinearLayout SetDrinkSizeMedium;\n SetDrinkSizeMedium = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Medium);\n SetDrinkSizeMedium.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n DrinkSize = 2;\n DrinkSizeText = \"Medium\";\n Toast Medium = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Medium\",\n Toast.LENGTH_SHORT);\n\n Medium.show();\n }\n\n });\n\n\n\n LinearLayout SetDrinkSizeLarge;\n SetDrinkSizeLarge = (LinearLayout) myDialog.findViewById(R.id.SetDrinkSize_Large);\n SetDrinkSizeLarge.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n DrinkSize = 3;\n DrinkSizeText = \"Large\";\n Toast Large = Toast.makeText(getApplicationContext(),\n \"Drink Size Set To Large\",\n Toast.LENGTH_SHORT);\n\n Large.show();\n }\n\n });\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profile,\n container, false);\n\n profilePicture = rootView.findViewById(R.id.profileImage);\n\n\n\n\n return rootView;\n }", "public void onClick(View v) {\n\t\t\t\t\t\tif(mWindowManager != null){\n\t\t\t\t\t\t\tif(mLinearLayoutPopView != null){\n\t\t\t\t\t\t\t\tmWindowManager.removeView(mLinearLayoutPopView);\n\t\t\t\t\t\t\t\tmLinearLayoutPopView = null;\n\t\t\t\t\t\t\t\tmWindowManager = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "private void showMemoriesPopover(){\n\n RelativeLayout relLayoutTutorial = (RelativeLayout) view.findViewById(R.id.tutorial);\n relLayoutTutorial.setVisibility(View.GONE);\n\n FragmentManager fm = getActivity().getSupportFragmentManager();\n RecyclerViewPopoverFragment recyclerViewPopoverFragment = RecyclerViewPopoverFragment.newInstance(this);\n\n // Transaction start\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n\n fragmentTransaction.setCustomAnimations(R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom,\n R.anim.abc_slide_in_bottom, R.anim.abc_slide_out_bottom);\n fragmentTransaction.add(R.id.fragment_container, recyclerViewPopoverFragment, \"RecyclerViewPopoverFragment\");\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.setContentView(R.layout.dialog_bottom);\n getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_bottom_sheet_layout, container, false);\n cameraLaunch = view.findViewById(R.id.cameraoption);\n galleryLaunch = view.findViewById(R.id.galleryoption);\n\n cameraLaunch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }\n });\n\n galleryLaunch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickFromGallery();\n }\n });\n\n\n return view;\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n//\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\tsetContentView(R.layout.newsoperationlay);\r\n imageLoader = ImageLoader.getInstance();\r\n\t\tgetActionBar().hide();\r\n\t\tIntent intent = getIntent();\r\n\t\t\r\n\t\treturnbutton = (LinearLayout)findViewById(R.id.newsopreturn);\r\n\t\tnewoperation = (ImageButton)findViewById(R.id.newsxuanxiang);\r\n\t\thistorymessage = (RelativeLayout)findViewById(R.id.historymessage);\r\n\t\tmessageset = (RelativeLayout)findViewById(R.id.messageset);\r\n\t\txinwengroup_view = (ImageView) findViewById(R.id.xinwengroupimg);\r\n\t\txinwengroup_text = (TextView) findViewById(R.id.xinwengrouptext);\r\n\t\txinwengroup_text.setText(intent.getStringExtra(\"descripe\").toString());\r\n//\t\tPicasso.with(this)\r\n//\t\t .load(intent.getStringExtra(\"url\").toString())\r\n//\t\t .into(xinwengroup_view);\r\n\t\timageLoader.displayImage(intent.getStringExtra(\"url\").toString(), xinwengroup_view,App.options_error);\r\n\t\t\r\n\t\treturnbutton.setOnClickListener(this);\r\n\t\tnewoperation.setOnClickListener(this);\r\n\t\thistorymessage.setOnClickListener(this);\r\n\t\tmessageset.setOnClickListener(this);\r\n\t\t\r\n\t\tpopupShareView =NewsOperation.this.getLayoutInflater().inflate(R.layout.newsoperationdetaillay, null);\r\n\t\ttopLinearLayout = (LinearLayout) popupShareView.findViewById(R.id.news_top_share);\r\n\t\tpopupShareView.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tpopupShareWindow.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n//\t\txuanxiangpopupShareView =NewsOperation.this.getLayoutInflater().inflate(R.layout.newsxianxiangdetaillay, null);\r\n//\t\txuanxiangtopLinearLayout = (LinearLayout) xuanxiangpopupShareView.findViewById(R.id.news_top_xuan);\r\n\t\tnewsexpect = (Button)popupShareView.findViewById(R.id.newstoreceive);\r\n\t\tnewsrefuse = (Button)popupShareView.findViewById(R.id.newsrefudereceive);\r\n\t\tnewscancel = (Button)popupShareView.findViewById(R.id.receivecancel);\r\n\t\tnewscancel.setOnClickListener(this);\r\n//\t\txuanxiangpopupShareView.setOnClickListener(new OnClickListener() {\r\n//\t\t\t@Override\r\n//\t\t\tpublic void onClick(View v) {\r\n//\t\t\t\txuanxiangpopupShareWindow.dismiss();\r\n//\t\t\t}\r\n//\t\t});\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n Objects.requireNonNull(getDialog().getWindow())\n .getAttributes().windowAnimations = R.style.DialogAnimation2;\n Objects.requireNonNull(getDialog().getWindow()).setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n }\n View view = inflater.inflate(R.layout.fragment_fragment__levels, container, false);\n msj = view.findViewById(R.id.tv_msj_level_modal);\n msj2 = view.findViewById(R.id.tv_msj_level_modal2);\n Typeface custom_font = Typeface.createFromAsset(getActivity().getAssets(), \"fonts/font.ttf\");\n msj.setTypeface(custom_font);\n msj2.setTypeface(custom_font);\n pp1 = view.findViewById(R.id.iv1pp);\n pp0_5 = view.findViewById(R.id.iv0_5pp);\n ll1 = view.findViewById(R.id.iv1ll);\n ll0_5 = view.findViewById(R.id.iv0_5ll);\n note_button = view.findViewById(R.id.iv2);\n note_image = view.findViewById(R.id.image_skin);\n switch_autoplay = view.findViewById(R.id.switch_autoplay);\n avBar= view.findViewById(R.id.seekBar_av);\n tv_FD=view.findViewById(R.id.tv_fd);\n /*TextView tv1 = view.findViewById(R.id.tvsped);\n TextView tv2 = view.findViewById(R.id.tvsped2);\n TextView tv3 = view.findViewById(R.id.tvsped3);\n TextView tv4 = view.findViewById(R.id.tvsped4);*/\n TextView tv5 = view.findViewById(R.id.title_apear);\n tvRush = view.findViewById(R.id.tvrush);\n tvJudge = view.findViewById(R.id.tv_judge);\n TextView title3 = view.findViewById(R.id.tv_msj_level_modal3);\n title3.setTypeface(custom_font);\n tv5.setTypeface(custom_font);\n //tvRush.setTypeface(custom_font);\n tvJudge.setTypeface(custom_font);\n switch_autoplay.setTypeface(custom_font);\n tvRush.setOnClickListener(v -> {\n ParamsSong.rush += 0.1f;\n if (ParamsSong.rush > 1.5f) {\n ParamsSong.rush = 0.8f;\n }\n songList.playSoundPool(songList.spSelect);\n setTxtRush();\n });\n switch_autoplay.setChecked(ParamsSong.autoplay);\n switch_autoplay.setOnCheckedChangeListener((buttonView, isChecked) -> ParamsSong.autoplay = isChecked);\n tvJudge.setOnClickListener(v -> {\n ParamsSong.judgment = (ParamsSong.judgment + 1) % 7;\n setTxtJudge();\n songList.playSoundPool(songList.spSelect);\n });\n setTxtJudge();\n setTxtRush();\n\n\n pp1.setOnClickListener(v -> {\n velocity += 1;\n changeVelocity();\n songList.playSoundPool(songList.spSelect);\n\n });\n\n pp0_5.setOnClickListener(v -> {\n velocity += 0.5f;\n songList.playSoundPool(songList.spSelect);\n changeVelocity();\n });\n\n ll1 = view.findViewById(R.id.iv1ll);\n ll1.setOnClickListener(v -> {\n velocity -= 1;\n songList.playSoundPool(songList.spSelect);\n changeVelocity();\n });\n ll0_5.setOnClickListener(v -> {\n velocity -= 0.5f;\n songList.playSoundPool(songList.spSelect);\n changeVelocity();\n });\n tv_FD.setOnClickListener(v->{\n ParamsSong.FD=!ParamsSong.FD;\n setFD();\n });\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n skins = NoteSkin.arraySkin(getContext());\n indexNS = ParamsSong.skinIndex;\n setImageNS();\n }\n avBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n int av=progress*10;\n ParamsSong.av=av;\n if (av==0){\n msj.setText(\"AV OFF\");\n msj2.setText(\"Velocity \" + ParamsSong.speed);\n\n }\n else {\n setAv();\n\n }\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n });\n note_button.setOnClickListener(v -> changeNS());\n note_image.setOnClickListener(v -> changeNS());\n\n if (ParamsSong.av>0){\n avBar.setProgress(ParamsSong.av/10);\n setAv();\n }else{\n changeVelocity();}\n setFD();\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\t\r\n\t\tmRoot = inflater.inflate(R.layout.frag_assign, null);\r\n\t\t\r\n\t\tviewlin = (LinearLayout)mRoot.findViewById(R.id.lin1);\r\n\t\tgradelin = (LinearLayout)mRoot.findViewById(R.id.lin2);\r\n\t\t\r\n\t\tviewlin.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stubFr\r\n\t\t\t\tmActivity.pushFragments(AppConstants.FRAG_ASSIGN, new FragViewAssign(), true, true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tgradelin.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmActivity.pushFragments(AppConstants.FRAG_ASSIGN, new FragViewAssign(), true, true);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn mRoot;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n activity = getActivity();\n llmoni = view.findViewById(R.id.llmoni);\n imgsuiji=view.findViewById(R.id.imgsuiji);\n llshunxu = view.findViewById(R.id.llshunxu);\n llshunxu.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(activity, ShunxuActivity.class);\n startActivity(intent);\n }\n });\n imgsuiji.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(activity, SuijiAcitivity.class);\n startActivity(intent);\n }\n });\n llmoni.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(activity, MoniActivity.class);\n startActivity(intent);\n }\n });\n\n\n return view;\n }", "@Override\n public void setContentView(int layoutResID) {\n super.setContentView(layoutResID);\n titleTextView = (TextView) findViewById(R.id.common_title_tv);\n backImg = (ImageView) findViewById(R.id.common_left_btn);\n mBgLayout = (RelativeLayout) findViewById(R.id.common_bg_layout);\n\n\n backImg.setOnClickListener(v -> finish());\n\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tdismissWindow();\n\t\t\t\t// 明确点击事件的位置\n\t\t\t\tif (position == 0 || position == userapp.size() + 1) {\n\t\t\t\t\treturn;\n\t\t\t\t} else if (position <= userapp.size()) {\n\t\t\t\t\tint newposition = position - 1;\n\t\t\t\t\tappinfo = userapp.get(newposition);\n\t\t\t\t} else {\n\t\t\t\t\tint newposition = position - userapp.size() - 1 - 1;\n\t\t\t\t\tappinfo = systemapp.get(newposition);\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(appinfo.getPackName());\n\t\t\t\tView vw = View.inflate(AppMangerActivity.this,\n\t\t\t\t\t\tR.layout.pop_laoout, null);\n\t\t\t\tlinear = (LinearLayout) vw.findViewById(R.id.pop_linear);\n\t\t\t\tlinearone = (LinearLayout) vw.findViewById(R.id.pop_linearone);\n\t\t\t\tlineartwo = (LinearLayout) vw.findViewById(R.id.pop_lineartwo);\n\t\t\t\tlinear.setOnClickListener(AppMangerActivity.this);\n\t\t\t\tlinearone.setOnClickListener(AppMangerActivity.this);\n\t\t\t\tlineartwo.setOnClickListener(AppMangerActivity.this);\n\t\t\t\t// -2表示窗体包裹内容\n\t\t\t\twindow = new PopupWindow(vw, -2, -2);\n\t\t\t\t// 动画效果的播放必须要求弹出窗体有背景颜色\n\t\t\t\twindow.setBackgroundDrawable(new ColorDrawable(\n\t\t\t\t\t\tColor.TRANSPARENT));\n\t\t\t\tint[] location = new int[2];\n\t\t\t\tview.getLocationInWindow(location);\n\t\t\t\tint dp = DensityUtil.dip2px(AppMangerActivity.this, 50);\n\t\t\t\twindow.showAtLocation(parent, Gravity.LEFT | Gravity.TOP, dp,\n\t\t\t\t\t\tlocation[1]);\n\t\t\t\tScaleAnimation scale = new ScaleAnimation(0.3f, 1.0f, 0.3f,\n\t\t\t\t\t\t1.0f, Animation.RELATIVE_TO_SELF, 0.5f,\n\t\t\t\t\t\tAnimation.RELATIVE_TO_SELF, 0.5f);\n\t\t\t\tscale.setDuration(300);\n\t\t\t\tAlphaAnimation alpha = new AlphaAnimation(0.3f, 1.0f);\n\t\t\t\talpha.setDuration(300);\n\t\t\t\tAnimationSet set = new AnimationSet(false);\n\t\t\t\tset.addAnimation(scale);\n\t\t\t\tset.addAnimation(alpha);\n\t\t\t\tvw.startAnimation(set);\n\n\t\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.fillper);\n\n // ¼àÌýÆÁÄ»¶¯×÷ʼþ\n SampleGuest gestureListener = new SampleGuest(this);\n gestureDetector = new GestureDetector(gestureListener);\n\n linearsize =3;\n linear = new LinearLayout[linearsize];\n linear[0] = (LinearLayout) findViewById(R.id.container1);\n linear[1] = (LinearLayout) findViewById(R.id.container2);\n linear[2] = (LinearLayout) findViewById(R.id.container1);\n \n }", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n \n likemenuButton = (Button)(findViewById(R.id.likemenu));\n \n likemenuButton.setOnClickListener(new View.OnClickListener() \n {\n public void onClick(View v) \n {\n \tDemoMyWindow popup = new DemoMyWindow(v);\n \tpopup.showLikeQuickAction();\n }\n });\n\n \n //DemoMyWindow popup = new DemoMyWindow(this.findViewById(android.R.id.content).getRootView());\n //popup.showLikePopDownMenu();\n }", "@Override\n protected void initView(Bundle savedInstanceState) {\n setContentView(R.layout.activity_opinion);\n if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {\n findViewById(R.id.View).setVisibility(View.GONE);\n }\n\n ll_back = findView(R.id.ll_back);\n et_opinion_feedback = findView(R.id.et_opinion_feedback);\n et_opinion_phone = findView(R.id.et_opinion_phone);\n btn_opinion_feedback = findView(R.id.btn_opinion_feedback);\n\n }", "private void initUI() {\n\t\timageview = (ImageView) v.findViewById(R.id.shezhi);\r\n\t\timageview.setOnClickListener(this);\r\n\r\n\t\tmytaobao = (ImageView) v.findViewById(R.id.taobao_go);\r\n\t\tmytaobao.setOnClickListener(this);\r\n\r\n\t\twuliu = (ImageView) v.findViewById(R.id.wuliu);\r\n\t\twuliu.setOnClickListener(this);\r\n\r\n\t\tgouwuche = (ImageView) v.findViewById(R.id.gouwuche);\r\n\t\tgouwuche.setOnClickListener(this);\r\n\r\n\t\tchadingdan = (ImageView) v.findViewById(R.id.dingdan);\r\n\t\tchadingdan.setOnClickListener(this);\r\n\r\n\t\tshoucang = (ImageView) v.findViewById(R.id.shoucang);\r\n\t\tshoucang.setOnClickListener(this);\r\n\t}", "private void popupWindowOfOptions(View v) {\n \t \n \t\tOrderManager.clearOption();\n \t\t\n \t\tint nOrderBoardTextId = v.getId();\n \tOrder _Order = (Order) ResourceManager.get(nOrderBoardTextId);\n \tint nMenuDbId = _Order.MENU_ID;\n \tint nMenuResourceId = MenuManager.getResourceIdByDbId(nMenuDbId);\n \tMenu mMenu = MenuManager.getMenuByResourceId(nMenuResourceId);\n \t\n \tint nTempIdForCurrentOrder = IdManager.getRandomId();\n \tIdManager.setTemporaryId(nTempIdForCurrentOrder);\n \tResourceManager.put(nTempIdForCurrentOrder, _Order);\n \t\n try {\n \t\n \tint nPopupHeight = 760;\n \t\tint nPopupWith = 520;\n \t\n \tint nSubTitleHeight = 40;\n \tint nOptionListLayoutHeight = 210;\n \t\n \tString strMenuNameEng = mMenu.NAME_ENG;\n \tString strMenuNameOth = mMenu.NAME_OTH;\n \t\n \t// Popup layout\n LinearLayout popLayout = new LinearLayout(this);\n popLayout.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));\n popLayout.setGravity(Gravity.CENTER);\n popLayout.setBackgroundColor(0x22000000);\n \n \t // Inner layout\n \t LinearLayout innerLayout = new LinearLayout(this);\n \t innerLayout.setLayoutParams(new LayoutParams(nPopupWith-20,nPopupHeight-20));\n \t innerLayout.setPadding(10,10,10,10);\n \t innerLayout.setOrientation(LinearLayout.VERTICAL);\n \t innerLayout.setGravity(Gravity.CENTER);\n \t innerLayout.setBackgroundColor(0xddffffff);\n \t\t \n \t\t // title eng\n \t\t TextView tvTitleEng = new TextView(this);\n \t\t tvTitleEng.setGravity(Gravity.CENTER);\n \t\t tvTitleEng.setText(strMenuNameEng);\n \t\t tvTitleEng.setTextColor(0xff000000);\n \t\t tvTitleEng.setTextSize(23);\n \t\t tvTitleEng.setHeight(50);\n \t\t tvTitleEng.setWidth(470);\n \t\t \n \t\t // title oth\n \t\t TextView tvTitleOth = new TextView(this);\n \t\t tvTitleOth.setGravity(Gravity.TOP|Gravity.CENTER);\n \t\t tvTitleOth.setText(strMenuNameOth);\n \t\t tvTitleOth.setTextColor(0xff000000);\n \t\t tvTitleOth.setTextSize(13);\n \t\t tvTitleOth.setHeight(55);\n \t\t tvTitleOth.setWidth(470);\n \t\t \n \t\t // common option title\n \t\t TextView tvCO = new TextView(this);\n \t\t tvCO.setText(\"* Common Option\");\n \t\t tvCO.setPadding(10,0,0,0);\n \t\t tvCO.setTextSize(15);\n \t\t tvCO.setTextColor(0xff5f2d09);\n \t\t tvCO.setHeight(nSubTitleHeight);\n \t\t tvCO.setWidth(470);\n \t\t \n \t\t // common option layout\n \t\t ScrollView svCO = new ScrollView(this);\n \t\t svCO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llCO = new LinearLayout(this);\n \t\t llCO.setLayoutParams(new LayoutParams(470,LayoutParams.WRAP_CONTENT));\n \t\t llCO.setPadding(15,10,10,10);\n \t\t llCO.setOrientation(LinearLayout.VERTICAL);\n \t\t llCO.setGravity(Gravity.TOP);\n \t\t \n \t\t showCommonOptions (mMenu, llCO);\n \t\t \t\n \t\t \tsvCO.addView(llCO);\n \t\t \t\n \t\t\t // specific option title\n \t\t\t \n \t\t TextView tvSO = new TextView(this);\n \t\t tvSO.setPadding(10,0,0,0);\n \t\t tvSO.setText(\"* Specific Option\");\n \t\t tvSO.setTextSize(15);\n \t\t tvSO.setTextColor(0xff5f2d09);\n \t\t tvSO.setHeight(nSubTitleHeight);\n \t\t tvSO.setWidth(470);\n \t \n \t\t ScrollView svSO = new ScrollView(this);\n \t\t svSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t \n \t\t LinearLayout llSO = new LinearLayout(this);\n \t\t llSO.setLayoutParams(new LayoutParams(470,nOptionListLayoutHeight));\n \t\t llSO.setPadding(15,10,10,10);\n \t\t llSO.setOrientation(LinearLayout.VERTICAL);\n \t\t llSO.setGravity(Gravity.TOP);\n \t\n \t\t showSpecificOptions (mMenu, llSO);\n \t\t \n \t\t svSO.addView(llSO);\n \t\t \n \t\t // button group\n \t\t \n \t\t int nButtonHeight = 50;\n \t\t int nButtonWidth = 100;\n \t\t \n \t\t LinearLayout llButtonGroup = new LinearLayout(this);\n \t\t llButtonGroup.setLayoutParams(new LayoutParams(470,80));\n \t\t llButtonGroup.setPadding(10, 0, 10, 4);\n \t\t llButtonGroup.setOrientation(LinearLayout.HORIZONTAL);\n \t\t llButtonGroup.setGravity(Gravity.CENTER|Gravity.BOTTOM);\n \t\t \n \t\t // confirm button\n \t \n \t \tint nConfirmId = IdManager.getRandomId();\n \t\t Button btnConfirm = new Button(this);\n \t\t btnConfirm.setId(nConfirmId);\n \t\t btnConfirm.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnConfirm.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnConfirm.setText(CaptionManager.getCaption().CONFIRM);\n \t\t btnConfirm.setTextSize(13);\n \t\t \n \t\t // add options to an order\n \t\t btnConfirm.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \t\n \t\t\t \tOrder currentOrder = (Order)ResourceManager.get(IdManager.getTemporaryId());\n \t\t\t \t\n \t\t\t \tArrayList<Order> orderList = addOptionsToOrder(currentOrder);\n \t\t\t \tOrderManager.requestUpdateOptions(currentOrder,orderList);\n \t \t\t\t\tloadOrderBoard();\n \t \t\t\t\tOrderManager.clearOption();\n \t \t\t\t\t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // cancel button\n \t\t Button btnCancel = new Button(this);\n \t\t btnCancel.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnCancel.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnCancel.setText(CaptionManager.getCaption().CANCEL);\n \t\t btnCancel.setTextSize(13);\n \t\t btnCancel.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \tOrderManager.clearOption();\n \t\t\t \t_PopupWindowOfOptions.dismiss();\n \t\t\t }\n \t\t });\n \t\t \n \t\t // detail button\n \t\t final int nTempId = 808080;\n \t\t Mapper.put(Integer.valueOf(nTempId), mMenu);\n \t\t \n \t\t Button btnDetail = new Button(this);\n \t\t btnDetail.setBackgroundResource(R.drawable.color_button_basic);\n \t\t btnDetail.setLayoutParams(new LayoutParams(nButtonWidth,nButtonHeight));\n \t\t btnDetail.setText(CaptionManager.getCaption().DETAIL);\n \t\t btnDetail.setTextSize(13);\n \t\t btnDetail.setOnClickListener(new OnClickListener() {\n \t\t\t public void onClick(View v) {\n \t\t\t \n \t\t\t \tMenu menu = (Menu)Mapper.get(Integer.valueOf(808080));\n \t\t\t \tint nMenuRscId = menu.RESOURCE_ID;\n \t\t\t \tpopupWindowDetail(nMenuRscId);\n \t\t\t }\n \t\t });\n \t\t\t \n \t llButtonGroup.addView(btnConfirm);\n \t llButtonGroup.addView(btnCancel);\n \t llButtonGroup.addView(btnDetail);\n \t \n \t\t innerLayout.addView(tvTitleEng);\n \t innerLayout.addView(tvTitleOth);\n \t innerLayout.addView(tvCO);\n \t innerLayout.addView(svCO);\n \t innerLayout.addView(tvSO);\n \t innerLayout.addView(svSO);\n \t innerLayout.addView(llButtonGroup);\n \t \n popLayout.addView(innerLayout);\n\n // show popup\n _PopupWindowOfOptions = new PopupWindow(popLayout, nPopupWith, nPopupHeight, true);\n _PopupWindowOfOptions.showAtLocation(popLayout, Gravity.CENTER, 0, 0);\n \t\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onCreate() {\n super.onCreate();\n Log.i(TAG, \"oncreat\");\n createFloatView();\n createFloatView2();//第二个窗口\n showNotification();\n }", "private void showPopUpWindow() {\n Log.d(TwoPlayersActivity.LOG_TAG, \"show popup\");\n LayoutInflater layoutInflater = (LayoutInflater) this\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n View popupView = layoutInflater.inflate(R.layout.pop_up,\n (ViewGroup) findViewById(R.id.pop_up));\n\n popupWindow = new PopupWindow(popupView,\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, true);\n\n popupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0);\n\n Button btnDismiss = (Button)popupView.findViewById(R.id.dismiss);\n\n btnDismiss.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindow.dismiss();\n }\n });\n }", "public void init_bottom_view() {\n\n username_txt = view.findViewById(R.id.username_txt);\n username_txt.setText(data_item.getName());\n\n\n bottom_age = view.findViewById(R.id.bottom_age);\n\n\n if(!data_item.getBirthday().equals(\"\"))\n bottom_age.setText(\", \"+data_item.getBirthday());\n\n\n bottom_job_txt=view.findViewById(R.id.bottom_job_txt);\n if(data_item.getJob_title().equals(\"\") & !data_item.getCompany().equals(\"\")){\n\n bottom_job_txt.setText(data_item.getJob_title());\n\n }else if(data_item.getCompany().equals(\"\") && !data_item.getJob_title().equals(\"\") ){\n\n bottom_job_txt.setText(data_item.getJob_title());\n\n }\n else if(data_item.getCompany().equals(\"\") && data_item.getJob_title().equals(\"\") ){\n view.findViewById(R.id.job_layout).setVisibility(View.GONE);\n }\n else {\n bottom_job_txt.setText(data_item.getJob_title()+\" at \"+data_item.getSchool());\n\n }\n\n\n bottom_location_text=view.findViewById(R.id.bottom_location_txt);\n bottom_location_text.setText(data_item.getLocation());\n\n bottom_about_txt=view.findViewById(R.id.bottom_about_txt);\n if(data_item.getAbout().equals(\"\")){\n bottom_about_txt.setVisibility(View.GONE);\n }\n bottom_about_txt.setText(data_item.getAbout());\n\n\n bottom_report_txt=view.findViewById(R.id.bottom_report_txt);\n bottom_report_txt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Report_User_alert();\n }\n });\n }", "protected void onLoadLayout(View view) {\n }", "private void initView(){\n backBtn = (Button)findViewById(R.id.header_bar_btn_back);\n titleTv = (TextView)findViewById(R.id.header_bar_tv_title);\n confirmBtn = (Button)findViewById(R.id.header_bar_btn_add);\n }", "private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }", "public static String _but_cerrar_mosquito_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 458;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Main\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Main\",mostCurrent.activityBA);\n //BA.debugLineNum = 459;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_bookdate_, container, false);\n //setTime(v);\n btn=v.findViewById(R.id.btn_apply);\n Name = v.findViewById(R.id.company_name);\n Name.setText(name);\n Photo = v.findViewById(R.id.company_photo);\n job_txt=v.findViewById(R.id.about_txt);\n skills_txt=v.findViewById(R.id.skills_txt);\n ctc_txt=v.findViewById(R.id.ctc_txt);\n cpi_txt=v.findViewById(R.id.cpi_txt);\n work_txt= v.findViewById(R.id.work_txt);\n Picasso.get().load(photo).error(R.drawable.ic_launcher_foreground).into(Photo);\n //getData();\n job_txt.setText(job);\n work_txt.setText(work);\n cpi_txt.setText(cpi);\n ctc_txt.setText(ctc);\n skills_txt.setText(skills);\n checkapplication();\n\n\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n set_application();\n popupwindow();\n setUI(1);\n\n\n\n }\n });\n return v;\n }", "public ViewHolder (View view){\n super(view);\n jView = view;\n //tvJoin = (TextView) view.findViewById(R.id.tvGroup);\n tvGroupTitle = view.findViewById(R.id.tvGroupTitle);\n }", "private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n /* 載入main.xml Layout */\n setContentView(R.layout.main);\n \n /* 取得螢幕解析度大小 */\n DisplayMetrics dm=new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n displayWidth=dm.widthPixels;\n /* 螢幕高度須扣除下方Button高度 */\n displayHeight=dm.heightPixels-80;\n /* 初始化相關變數 */\n bmp=BitmapFactory.decodeResource(getResources(),R.drawable.ex04_23);\n mImageView = (ImageView)findViewById(R.id.myImageView);\n layout1 = (AbsoluteLayout)findViewById(R.id.layout1); \n mButton01 = (Button)findViewById(R.id.myButton1);\n mButton02 = (Button)findViewById(R.id.myButton2);\n \n /* 幫縮小按鈕加上onClickListener */\n mButton01.setOnClickListener(new Button.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n small();\n }\n });\n \n /* 幫放大按鈕加上onClickListener */\n mButton02.setOnClickListener(new Button.OnClickListener()\n {\n @Override\n public void onClick(View v)\n {\n big();\n }\n }); \n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_second, container, false);\n init();\n obeserve =new Observer() {\n @Override\n public void update(Observable o, Object arg) {\n\n }\n };\n window = getActivity().getWindow();\n\n ViewGroup viewGroup = (ViewGroup) mView;\n\n int count2 = getChildrenViews(viewGroup);\n Log.d(\"viewCount:\", \"\" + count2);\n\n useryelow.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userInfoDialog();\n }\n });\n emoji.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEmojiDialog();\n }\n });\n chat.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showAskForChatEanbleDialog();\n }\n });\n gameinfo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showGameInfoDialog();\n }\n });\n undoDice.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showUndoDialog();\n }\n });\n coindistribution.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showCoindistributiondialog();\n }\n });\n btnGoBack.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n showDialog();\n\n }\n });\n gifts1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showGiftsDialog();\n }\n });\n gifts2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showGiftsDialog();\n }\n });\n\n btnonplay.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ludoRed.setVisibility(View.VISIBLE);\n if (token) {\n ludoRed.setVisibility(View.VISIBLE);\n ludoRed.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n token = true;\n Log.d(\"clicked\", \"yes\" + token);\n// tokenBlue1.setVisibility(View.VISIBLE);\n// tokenBlue2.setVisibility(View.VISIBLE);\n// tokenBlue3.setVisibility(View.VISIBLE);\n// tokenBlue4.setVisibility(View.VISIBLE);\n//\n// tokenGreen1.setVisibility(View.VISIBLE);\n// tokenGreen1.setVisibility(View.VISIBLE);\n// tokenGreen1.setVisibility(View.VISIBLE);\n// tokenGreen1.setVisibility(View.VISIBLE);\n\n }\n });\n } else {\n ludoYellow.setVisibility(View.VISIBLE);\n tokenRed1.setVisibility(View.VISIBLE);\n tokenRed2.setVisibility(View.VISIBLE);\n tokenRed3.setVisibility(View.VISIBLE);\n tokenRed4.setVisibility(View.VISIBLE);\n\n tokenYellow1.setVisibility(View.VISIBLE);\n tokenYellow2.setVisibility(View.VISIBLE);\n tokenYellow3.setVisibility(View.VISIBLE);\n tokenYellow4.setVisibility(View.VISIBLE);\n\n tokenBlue1.setVisibility(View.VISIBLE);\n tokenBlue2.setVisibility(View.VISIBLE);\n tokenBlue3.setVisibility(View.VISIBLE);\n tokenBlue4.setVisibility(View.VISIBLE);\n\n tokenGreen1.setVisibility(View.VISIBLE);\n tokenGreen2.setVisibility(View.VISIBLE);\n tokenGreen3.setVisibility(View.VISIBLE);\n tokenGreen4.setVisibility(View.VISIBLE);\n\n }\n userred.setVisibility(View.VISIBLE);\n useryelow.setVisibility(View.VISIBLE);\n }\n });\n\n// ludoYellow.setBackgroundResource(R.drawable.dice_animation);\n// final AnimationDrawable frameAnimation = (AnimationDrawable) ludoYellow.getBackground();\n\n ludoBlue.setOnClickListener(this);\n ludoRed.setOnClickListener(this);\n ludoGreen.setOnClickListener(this);\n ludoYellow.setOnClickListener(this);\n\n// boolean b;\n// @Override\n// public void onClick(View v) {\n//\n//\n// }\n// });\n return mView;\n }", "public void onButtonShowPopupWindowClick(View view) {\n LayoutInflater inflater = (LayoutInflater)\n getActivity().getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.dialog_list_view, null);\n rv_see_All = (RecyclerView) popupView.findViewById(R.id.rv_see_all);\n\n\n rv_see_All.setLayoutManager(new LinearLayoutManager(getActivity()));\n LinearLayoutManager linearLayoutManager_house = new LinearLayoutManager(getActivity());\n\n ArrayList<String> categoryID= new ArrayList<>();\n\n ArrayList<String> arrayList = new ArrayList<>();\n arrayList.addAll(Arrays.asList(seeAllArray));\n categoryID.addAll(Arrays.asList(categoryId));\n\n\n arrayList.remove(0);\n arrayList.remove(0);\n arrayList.remove(0);\n arrayList.remove(0);\n arrayList.remove(0);\n\n categoryID.remove(0);\n categoryID.remove(0);\n categoryID.remove(0);\n categoryID.remove(0);\n categoryID.remove(0);\n\n /* seeAllAdapter = new SeeAllAdapter(getActivity(), arrayList,categoryID);\n seeAllAdapter.setClickListener(this);\n rv_see_All.setAdapter(seeAllAdapter);\n*/\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n popupWindow = new PopupWindow(popupView, width, height, focusable);\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.BOTTOM, 0, 0);\n }", "public void initViews() {\n rb_greenTablet = findViewById(R.id.green_tablet);\n rb_blackTablet = findViewById(R.id.black_tablet);\n rb_fireTablet = findViewById(R.id.fire_tablet);\n }", "public View mo7054a(LayoutInflater layoutInflater, ViewGroup viewGroup) {\n C7707a.m18760a(\"controls:onCreateView\");\n View inflate = layoutInflater.inflate(R.layout.controller_controls, viewGroup, false);\n this.f15636R = (ViewGroup) inflate;\n this.f15637S = (FrameLayout) inflate.findViewById(R.id.button_inbox);\n this.f15638T = (ImageView) inflate.findViewById(R.id.button_inbox_image);\n this.f15639U = (FrameLayout) inflate.findViewById(R.id.button_map);\n this.f15640V = (ImageView) inflate.findViewById(R.id.button_map_image);\n this.f15641W = (FrameLayout) inflate.findViewById(R.id.button_profile);\n this.f15642X = (ImageView) inflate.findViewById(R.id.button_profile_image);\n this.f15643Y = (ViewGroup) inflate.findViewById(R.id.button_dashboard);\n this.f15645a0 = inflate.findViewById(R.id.button_search);\n this.f15646b0 = (ConstraintLayout) inflate.findViewById(R.id.button_discover);\n this.f15650f0 = (TextView) inflate.findViewById(R.id.discover_count);\n this.f15647c0 = (ImageView) inflate.findViewById(R.id.img_button_discover);\n this.f15648d0 = (LottieAnimationView) inflate.findViewById(R.id.lottie_button_discover);\n this.f15649e0.add(this.f15639U);\n this.f15649e0.add(this.f15637S);\n this.f15649e0.add(this.f15643Y);\n this.f15649e0.add(this.f15641W);\n this.f15646b0.setOnClickListener(this);\n this.f15644Z = (ViewGroup) inflate.findViewById(R.id.button_best_friends);\n C7707a.m18759a();\n this.f15664t0.onCreateView(inflate);\n return inflate;\n }", "private void showPopWindow() {\n\t\tfinal PointerPopupWindow p = new PointerPopupWindow(this,\n\t\t\t\tgetResources().getDimensionPixelSize(R.dimen.popup_width));\n\t\tView convertView = setClickListener(p);\n\n\t\tp.setContentView(convertView);\n\t\tp.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pop_window_back)));\n\t\tp.setPointerImageRes(R.drawable.ic_popup_pointer);\n\t\tp.setAlignMode(PointerPopupWindow.AlignMode.CENTER_FIX);\n\t\tp.showAsPointer(photo);\n\t}", "private void initDialogLayout(){\r\n\t\tsetContentView(R.layout.media);\r\n\t\tsetTitle(\"Media Option...\");\r\n\r\n\t\t//Assign the controls\r\n\t\tbtn_txt = (Button)findViewById(R.id.btn_txt);\r\n\t\t//Set text\r\n\t\tbtn_image = (Button)findViewById(R.id.btn_image);\r\n\r\n\t\tbtn_audio = (Button)findViewById(R.id.btn_audio);\r\n\t\t//btn_vedio = (Button)findViewById(R.id.btn_video);\r\n\t\tbtn_cancel = (Button)findViewById(R.id.btn_cancel);\r\n\r\n\t\tbtn_txt.setOnClickListener(this);\r\n\t\tbtn_image.setOnClickListener(this);\r\n\t\tbtn_audio.setOnClickListener(this);\r\n\t\t//btn_vedio.setOnClickListener(this);\r\n\t\tbtn_cancel.setOnClickListener(this);\r\n\t\t \r\n\t\t}", "@Override\n\t\t public void onClick(View v) {\n\t\t \t\n\t \tList<PackageInfo> packages = getPackageManager().getInstalledPackages(0);\n\t \t\tImageView imageView = new ImageView(GoodMorningActivity.this);\n\t \t\timageView.setImageDrawable(packages.get(0).applicationInfo.loadIcon(getPackageManager()));\n\t \t\t\n\t \t\tRelativeLayout rl = (RelativeLayout) findViewById(R.id.relativeLayout2);\n\t \t\tRelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(\n\t \t\t RelativeLayout.LayoutParams.WRAP_CONTENT,\n\t \t\t RelativeLayout.LayoutParams.WRAP_CONTENT);\n\t \t\tlp.addRule(RelativeLayout.BELOW, R.id.analogClock1);\n\t \t\tlp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n\t \t\trl.addView(imageView, lp);\n\t \t\t\n\t \t\timageView.setOnClickListener(new ImageView.OnClickListener() {\n\t \t\t\t@Override\n\t \t\t\tpublic void onClick(View arg0) {\n\t \t\t\t\t// TODO Auto-generated method stub\n\t \t\t\t\tList<PackageInfo> packages = getPackageManager().getInstalledPackages(0);\n\t \t\t\t\tstartActivity(getPackageManager().getLaunchIntentForPackage(packages.get(0).applicationInfo.packageName)); \n\t \t\t\t}\n\t \t\t});\n\t\t \t\n\t\t popupWindow.dismiss();\n\t\t }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_more, container, false);\n\n\n\n\n\n\n More_profile = (LinearLayout) view.findViewById(R.id.More_profile);\n More_blocked_list = (LinearLayout) view.findViewById(R.id.More_blocked_list);\n Settings = (LinearLayout) view.findViewById(R.id.Settings);\n More_contactUs = (LinearLayout) view.findViewById(R.id.More_contactUs);\n More_change_password = (LinearLayout) view.findViewById(R.id.More_change_password);\n More_aboutUs = (LinearLayout) view.findViewById(R.id.More_aboutUs);\n More_logOut = (LinearLayout) view.findViewById(R.id.More_logOut);\n More_faves = (LinearLayout) view.findViewById(R.id.More_faves);\n\n\n More_profile.setOnClickListener(this);\n More_blocked_list.setOnClickListener(this);\n Settings.setOnClickListener(this);\n More_contactUs.setOnClickListener(this);\n More_change_password.setOnClickListener(this);\n More_aboutUs.setOnClickListener(this);\n More_logOut.setOnClickListener(this);\n More_faves.setOnClickListener(this);\n\n\n return view;\n }", "private void setupUserRelativeLayout() {\n userRelativeLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n IntentHelper.intentToUserProfileActivity(context, prismUser);\n }\n });\n }", "@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Display display = getWindowManager().getDefaultDisplay();\n Point point=new Point();\n display.getSize(point);\n final float hieght = point.y; // screen height\n scrnHeight = hieght-250;\n final float width = point.x; // screen width\n scrnWidth = width-60;\n\n initUI();\n\n animateTopBottom(10000);\n\n}", "@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmRoot = inflater.inflate(R.layout.mouse_layout, container, false); \n\t\tinitializeUI();\n\t\treturn mRoot; \n }", "ViewGroup activatePopupContainer();", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void createPopUpWindow(AchievementCardsAdapter.ViewHolder viewHolder) {\n ViewGroup container = (ViewGroup) LayoutInflater.from(context).inflate(R.layout.fragment_achievements_popup_activity,null);\n\n // which view you pass in doesn't matter, it is only used for the window tolken\n @SuppressLint(\"WrongViewCast\")\n View view = (View) recyclerView.getParent();\n\n final PopupWindow popupWindow = new PopupWindow(container, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);\n popupWindow.setElevation(30);\n\n //Handler to thread sleep and slow down process\n Handler handler=new Handler();\n Runnable r=new Runnable() {\n public void run() {\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n }\n };\n handler.postDelayed(r, 250);\n\n //Handler to thread sleep and slow down process\n r = () -> setUpAchievementActivity(container);\n handler.postDelayed(r, 250);\n\n this.popupWindow = popupWindow;\n }", "public void onLayout(boolean r10, int r11, int r12, int r13, int r14) {\n /*\n r9 = this;\n int r10 = r9.getChildCount()\n int r0 = r9.measureKeyboardHeight()\n r1 = 1101004800(0x41a00000, float:20.0)\n int r1 = org.telegram.messenger.AndroidUtilities.dp(r1)\n r2 = 0\n if (r0 > r1) goto L_0x001c\n org.telegram.ui.PopupNotificationActivity r0 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r0 = r0.chatActivityEnterView\n int r0 = r0.getEmojiPadding()\n goto L_0x001d\n L_0x001c:\n r0 = 0\n L_0x001d:\n if (r2 >= r10) goto L_0x00e3\n android.view.View r1 = r9.getChildAt(r2)\n int r3 = r1.getVisibility()\n r4 = 8\n if (r3 != r4) goto L_0x002d\n goto L_0x00df\n L_0x002d:\n android.view.ViewGroup$LayoutParams r3 = r1.getLayoutParams()\n android.widget.FrameLayout$LayoutParams r3 = (android.widget.FrameLayout.LayoutParams) r3\n int r4 = r1.getMeasuredWidth()\n int r5 = r1.getMeasuredHeight()\n int r6 = r3.gravity\n r7 = -1\n if (r6 != r7) goto L_0x0042\n r6 = 51\n L_0x0042:\n r7 = r6 & 7\n r6 = r6 & 112(0x70, float:1.57E-43)\n r7 = r7 & 7\n r8 = 1\n if (r7 == r8) goto L_0x0056\n r8 = 5\n if (r7 == r8) goto L_0x0051\n int r7 = r3.leftMargin\n goto L_0x0061\n L_0x0051:\n int r7 = r13 - r4\n int r8 = r3.rightMargin\n goto L_0x0060\n L_0x0056:\n int r7 = r13 - r11\n int r7 = r7 - r4\n int r7 = r7 / 2\n int r8 = r3.leftMargin\n int r7 = r7 + r8\n int r8 = r3.rightMargin\n L_0x0060:\n int r7 = r7 - r8\n L_0x0061:\n r8 = 16\n if (r6 == r8) goto L_0x0073\n r8 = 80\n if (r6 == r8) goto L_0x006c\n int r6 = r3.topMargin\n goto L_0x007f\n L_0x006c:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r8 = r3.bottomMargin\n goto L_0x007e\n L_0x0073:\n int r6 = r14 - r0\n int r6 = r6 - r12\n int r6 = r6 - r5\n int r6 = r6 / 2\n int r8 = r3.topMargin\n int r6 = r6 + r8\n int r8 = r3.bottomMargin\n L_0x007e:\n int r6 = r6 - r8\n L_0x007f:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isPopupView(r1)\n if (r8 == 0) goto L_0x0094\n int r3 = r9.getMeasuredHeight()\n if (r0 == 0) goto L_0x0092\n int r3 = r3 - r0\n L_0x0092:\n r6 = r3\n goto L_0x00da\n L_0x0094:\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n org.telegram.ui.Components.ChatActivityEnterView r8 = r8.chatActivityEnterView\n boolean r8 = r8.isRecordCircle(r1)\n if (r8 == 0) goto L_0x00da\n org.telegram.ui.PopupNotificationActivity r6 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r6 = r6.popupContainer\n int r6 = r6.getTop()\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getMeasuredHeight()\n int r6 = r6 + r7\n int r7 = r1.getMeasuredHeight()\n int r6 = r6 - r7\n int r7 = r3.bottomMargin\n int r6 = r6 - r7\n org.telegram.ui.PopupNotificationActivity r7 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r7 = r7.popupContainer\n int r7 = r7.getLeft()\n org.telegram.ui.PopupNotificationActivity r8 = org.telegram.ui.PopupNotificationActivity.this\n android.widget.RelativeLayout r8 = r8.popupContainer\n int r8 = r8.getMeasuredWidth()\n int r7 = r7 + r8\n int r8 = r1.getMeasuredWidth()\n int r7 = r7 - r8\n int r3 = r3.rightMargin\n int r7 = r7 - r3\n L_0x00da:\n int r4 = r4 + r7\n int r5 = r5 + r6\n r1.layout(r7, r6, r4, r5)\n L_0x00df:\n int r2 = r2 + 1\n goto L_0x001d\n L_0x00e3:\n r9.notifyHeightChanged()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.telegram.ui.PopupNotificationActivity.AnonymousClass1.onLayout(boolean, int, int, int, int):void\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n View view = inflater.inflate(R.layout.layout_answer_support, container, false);\n// getDialog().getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n\n mAnswer = (TextView) view.findViewById(R.id.answer_textview);\n mOk = (Button) view.findViewById(R.id.answer_support_btn_ok);\n\n mOk.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getDialog().dismiss();\n }\n });\n\n Bundle mArgs = getArguments();\n String test = mArgs.getString(\"answer\");\n mAnswer.setText(test);\n\n\n return view;\n }", "protected void setupView(Context context, final ViewGroup parent) {\n\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View v = inflater.inflate(R.layout.balloon_overlay, parent);\n title = (TextView) v.findViewById(R.id.balloon_item_title);\n snippet = (TextView) v.findViewById(R.id.balloon_item_snippet);\n image = (ImageView) v.findViewById(R.id.balloon_item_image);\n\n ImageView close = (ImageView) v.findViewById(R.id.balloon_close);\n close.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n parent.setVisibility(GONE);\n // parent.removeAllViews();\n }\n });\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tFullScreencall();\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.game);\n\t\tRel_main_game = (RelativeLayout) findViewById(R.id.main_game_rl);\n\t\t//Rel_main_game1 = (RelativeLayout) findViewById(R.id.main_game_rl);\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tthis.getWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tfinal int heightS = dm.heightPixels;\n\t\tfinal int widthS = dm.widthPixels;\n\t\tgame_panel = new GamePanel(getApplicationContext(), this,widthS, heightS);\n\t\tRel_main_game.addView(game_panel);\n\t\t\n\t\t\n\t\tRelativeLayout RR = new RelativeLayout(this);\n\t\tRR.setBackgroundResource(R.drawable.btn);\n\t\tRR.setGravity(Gravity.CENTER);\n\t\tRel_main_game.addView(RR,800,150);\n\t\tRR.setX(0);\n\t\ttxt= new TextView(this);\n\t\t\n\t\t Typeface Custom = Typeface.createFromAsset(getAssets(), \"font.ttf\");\n\t\t txt.setTypeface(Custom);\n\t\t txt.setTextColor(Color.YELLOW);\n\t\t\n\t\t SharedPreferences prefs = this.getSharedPreferences(\"myPrefsKey\", Context.MODE_PRIVATE);\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\ttxt.setText(\"Score: \" + score );\n\t\t\n\t\tRR.addView(txt);\n\t\t// txt1.setTypeface(Custom);\n\t\t //txt1.setTextColor(Color.YELLOW);\n\t\t//txt1.setText(\"High Score: \"+score);\n\t\t//RR.addView(txt1);\n\t\t\n\t\tLayoutInflater myInflater = (LayoutInflater) getApplicationContext().getSystemService(getApplicationContext().LAYOUT_INFLATER_SERVICE);\n\t\tpausaButton = myInflater.inflate(R.layout.pause, null, false);\n\t\tpausaButton.setX(widthS-250);\n\t\tpausaButton.setY(0);\n\t\tRel_main_game.addView(pausaButton);\n\t\tImageView pauseImage = (ImageView) pausaButton.findViewById(R.id.imCont);\n\t\tpausaButton.setOnTouchListener(new TochButton(pauseImage));\n\t\tpausaButton.setOnClickListener(Pausa_click);\n\t\tpausaButton.getLayoutParams().height=250;\n\t\tpausaButton.getLayoutParams().width=250;\n\t\t\n\t\tPauseMenu= myInflater.inflate(R.layout.pause_menu, null, false);\n\t\tRel_main_game.addView(PauseMenu);\n\t\tPauseMenu.setVisibility(View.GONE);\n\tmte=(ImageView)findViewById(R.id.imageView1);\n\t\tImageView Cont = (ImageView)PauseMenu.findViewById(R.id.imCont1);\n\t\tImageView MainMenuTo = (ImageView)PauseMenu.findViewById(R.id.toMain);\n\t\t Cont.setOnTouchListener(new TochButton(Cont));\n\t\tCont.setOnClickListener(Continue_list);\n\t\tMainMenuTo.setOnTouchListener(new TochButton(MainMenuTo));\n\t\tMainMenuTo.setOnClickListener(To_Main_Menu_list);\n\t\n\t\tWinDialog= myInflater.inflate(R.layout.win, null, false);\n\t\tRel_main_game.addView(WinDialog);\nImageView Win_to_main = (ImageView) WinDialog.findViewById(R.id.imageViel2);\n\tWin_to_main.setOnTouchListener(new TochButton(Win_to_main));\nWin_to_main.setOnClickListener(To_Main_Menu_list);\nWinDialog.setVisibility(View.GONE);\n\t\t\nLoseDialog= myInflater.inflate(R.layout.lose, null, false);\nRel_main_game.addView(LoseDialog);\nImageView Lose_to_main = (ImageView) LoseDialog.findViewById(R.id.imageViel2);\nLose_to_main.setOnTouchListener(new TochButton(Lose_to_main));\nLose_to_main.setOnClickListener(To_Main_Menu_list);\nbtn11=(Button)findViewById(R.id.button1m);\n//pbtn=(Button)findViewById(R.id.button1m);\nmte.setOnClickListener(new OnClickListener() {\n\t\n\t@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tMainMusic.setVolume(0,0);\n\t\t\n\t}\n});\n\nbtn11.setOnClickListener(new OnClickListener() {\n\t\n\t@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tIntent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); \n\t\tsharingIntent.setType(\"text/plain\");\n\t\tString shareBody = \"I scored \"+score+\" points!How much can you score?Install the game Space Prowler from the Play Store now!\";\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n\t\tsharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n\t\tstartActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n\t\t\n\t}\n});\n\nLoseDialog.setVisibility(View.GONE);\n\t\t\n\t\tMainMusic = MediaPlayer.create(Game.this, R.raw.music);\n\tMainMusic.setVolume(0.3f, 0.3f);\n\tMainMusic.start();\n\n\t\n\t\n\t}", "public void findViews() {\n titleTextView = findViewById(R.id.song_title_text_view);\n artistTextView = findViewById(R.id.song_artist_text_view);\n albumCoverImg = findViewById(R.id.album_cover_img);\n albumTextView = findViewById(R.id.album_text_view);\n playButton = findViewById(R.id.play_button);\n nextButton = findViewById(R.id.next_button);\n backButton = findViewById(R.id.back_button);\n shuffleButton = findViewById(R.id.shuffle_button);\n repeatButton = findViewById(R.id.repeat_button);\n }", "@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "protected final void onCreate(Bundle savedInstanceState, int layoutId) {\n super.onCreate(savedInstanceState);\n setContentView(layoutId);\n Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);\n setSupportActionBar(myToolbar);\n // getSupportActionBar().setDisplayShowTitleEnabled(false);\n // lLayout.setBackgroundColor(Color.parseColor(\"#04967D\"));\n\n relationsLayout = (ConstraintLayout) findViewById(R.id.relation_layout);\n relationsLayout.bringToFront();\n moodLayout = (ConstraintLayout) findViewById(R.id.mood_layout);\n moodLayout.bringToFront();\n\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.activity_layout_popu_list);\n\n\t\tListView mList = (ListView) findViewById(R.id.l_list);\n\t\t\n\t\tView headViewLayout =LayoutInflater.from(this).inflate(R.layout.layout_head_img_title, null);\n\t\tmList.addHeaderView(headViewLayout);\n\t\tNewQAAdapter adapter = new NewQAAdapter(this);\n\n\t\tfinal String[] data = { \"我的痛你何曾明白。\", \"天边的夕阳╮沵为谁灿烂\", \"回忆 是一首不眠的歌°\", \"永恒的音乐谱写着思念い\", \"倾国倾城万般妖娆又如何や\", \"如果、没有那么多如果多好。\",\n\t\t\t\t\"ぃ骄傲是女人的资本\", \"再美的剧本乜有最后一页ゝ\", \"谁说爱情让人心旷神怡﹌\", \"习惯黑白颠倒的生活。ヽ\", \"〃铅笔划不出的界限\", \"つ我的微笑只给懂的人看\", \"忧伤安静的旋律 醉了回忆\",\n\t\t\t\t\"日光独自倾城却少了旧人▼\", \"゛无法承受,你给的回忆。\", \"浓郁咖啡衬托了苦涩心情∞\" };\n\n\t\tadapter.setData(data);\n\t\tmList.setAdapter(adapter);\n\n\t\tPopuItem addItem = new PopuItem(ID_USER, \"user\", getResources().getDrawable(R.drawable.child_image));\n\t\tPopuItem acceptItem = new PopuItem(ID_GROUP, \"group\", getResources().getDrawable(R.drawable.user_group));\n\n\t\tfinal PopuJar mPopuJar = new PopuJar(this, PopuJar.HORIZONTAL);\n\n\t\tmPopuJar.addPopuItem(addItem);\n\t\tmPopuJar.addPopuItem(acceptItem);\n\n\t\t// setup the action item click listener\n\t\tmPopuJar.setOnPopuItemClickListener(new PopuJar.OnPopuItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(PopuJar PopuJar, int pos, int actionId) {\n\t\t\t\tPopuItem PopuItem = PopuJar.getPopuItem(pos);\n\n\t\t\t\tif (actionId == ID_USER) { // Add item selected\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"selected user:\" + data[mSelectedRow], Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(getApplicationContext(), PopuItem.getTitle() + \" selected position \" + mSelectedRow,\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// setup on dismiss listener, set the icon back to normal\n\t\tmPopuJar.setOnDismissListener(new PopupWindow.OnDismissListener() {\n\t\t\t@Override\n\t\t\tpublic void onDismiss() {\n\t\t\t\tmMoreIv.setImageResource(R.drawable.ic_list_more);\n\t\t\t}\n\t\t});\n\n\t\tmList.setOnItemClickListener(new OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\n\t\t\t\tToast.makeText(PopuListDemoActivity.this,data[position], Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t\t\n\t\tmList.setOnItemLongClickListener(new OnItemLongClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\n\t\t\t\tmSelectedRow = position; // set the selected row\n\t\t\t\tmPopuJar.show(view);\n\t\t\t\t// change the right arrow icon to selected state\n\t\t\t\tmMoreIv = (ImageView) view.findViewById(R.id.i_more);\n\t\t\t\tmMoreIv.setImageResource(R.drawable.ic_list_more_selected);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}", "private void initialiseViews() {\n\n layoutGameOver = findViewById(R.id.layout_gameover);\n layoutGame = findViewById(R.id.layout_game);\n\n layoutGame.setVisibility(View.VISIBLE);\n layoutGameOver.setVisibility(View.GONE);\n\n tvHighScore = findViewById(R.id.tv_highscore);\n tvCurrentScore = findViewById(R.id.tv_current_score);\n tvGameoverScore = findViewById(R.id.tv_gameover_score);\n\n\n gvBoard = findViewById(R.id.gl_board);\n btNewGame =findViewById(R.id.bt_newgame);\n btRestart =findViewById(R.id.bt_restart);\n\n btNewGame.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n btRestart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startNewGame();\n }\n });\n }", "private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }" ]
[ "0.68242913", "0.6658859", "0.6567228", "0.6450218", "0.644555", "0.64439785", "0.6331272", "0.63062584", "0.63057667", "0.62256616", "0.6178564", "0.61388785", "0.61023915", "0.60261106", "0.6003915", "0.5981106", "0.5949515", "0.59325", "0.59319174", "0.59266084", "0.58652323", "0.5844922", "0.5838528", "0.58356863", "0.58229774", "0.5815715", "0.58058023", "0.57991654", "0.57717294", "0.5771333", "0.57695436", "0.5757368", "0.5745422", "0.5735862", "0.57336706", "0.5720129", "0.571643", "0.5716197", "0.57057804", "0.570114", "0.569941", "0.569457", "0.5690962", "0.5687755", "0.5686963", "0.5678253", "0.5676918", "0.5676093", "0.5667736", "0.5653615", "0.5645076", "0.5626207", "0.5619037", "0.5616899", "0.56113344", "0.5603362", "0.56021005", "0.55946505", "0.55912894", "0.5584415", "0.55837065", "0.55829525", "0.557307", "0.555778", "0.55571055", "0.55504537", "0.55444735", "0.5540047", "0.5536949", "0.55331814", "0.5526951", "0.5526746", "0.55258054", "0.5512452", "0.5512194", "0.55085534", "0.5507211", "0.55015653", "0.54995906", "0.5499011", "0.5484972", "0.54825914", "0.54714113", "0.5468191", "0.54644763", "0.5463267", "0.5459584", "0.5455899", "0.54542106", "0.5445663", "0.54419714", "0.54419637", "0.5440985", "0.54399955", "0.54381794", "0.54358345", "0.5435764", "0.543472", "0.54322815", "0.5431548" ]
0.5798361
28
Get the category icon.
public static Image getCategoryImage() { return ImageUtil.getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "String getIcon();", "String getIcon();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public Icon getIcon();", "@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}", "Icon getIcon();", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public String getIconString() {\n return theIconStr;\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public FSIcon getIcon() {\n return icon;\n }", "public ImageDescriptor getIcon();", "public ResourceLocation getIcon() {\n return icon;\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public static Image getCategoryAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_APPROPRIATE_ICON));\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public char getIcon() {\n return this.icon;\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public String getIconUrl() {\n return iconUrl;\n }", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "public URI getIconUri() {\n return this.iconUri;\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }", "String getIconFile();", "public AppIcon getAppIcon () ;", "@Override\n public java.awt.Image getIcon(int iconKind) {\n switch (iconKind) {\n case ICON_COLOR_16x16:\n if (iconNameC16 == null) {\n return null;\n } else {\n if (iconColor16 == null) {\n iconColor16 = loadImage(iconNameC16);\n }\n return iconColor16;\n }\n case ICON_COLOR_32x32:\n if (iconNameC32 == null) {\n return null;\n } else {\n if (iconColor32 == null) {\n iconColor32 = loadImage(iconNameC32);\n }\n return iconColor32;\n }\n case ICON_MONO_16x16:\n if (iconNameM16 == null) {\n return null;\n } else {\n if (iconMono16 == null) {\n iconMono16 = loadImage(iconNameM16);\n }\n return iconMono16;\n }\n case ICON_MONO_32x32:\n if (iconNameM32 == null) {\n return null;\n } else {\n if (iconMono32 == null) {\n iconMono32 = loadImage(iconNameM32);\n }\n return iconMono32;\n }\n default:\n return null;\n }\n }", "public int getIconId(){\n return mIconId;\n }", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public abstract String getIconPath();", "public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }", "public abstract ImageDescriptor getIcon();", "Icon getMenuIcon();", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public abstract Drawable getIcon();", "public Icon getIcon() {\n \t\treturn null;\n \t}", "java.lang.String getCouponIconUrl();", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract String typeIcon();", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "public abstract String getIconString();", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "@NotNull\n SVGResource getIcon();", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "public String getUserIcon() {\n return userIcon;\n }", "public String getMessageIcon() {\n return messageIcon;\n }", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "Icon getPlotterIcon();", "public String getAccessibleIconDescription();", "Icon getIcon(URI activityType);", "public String getIconURL()\n {\n return null; \n }", "public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }", "public @Nullable IIconData getIcon(@Nullable URL url);", "protected Drawable getIcon(Context context) {\n if (this.iconResource != 0) {\n return ContextCompat.getDrawable(context, this.iconResource);\n } else {\n return this.icon;\n }\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public Icon getTabIcon();", "public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public String getCategory() {\t//TODO - change to array list of categories\n\t\treturn category;\n\t}", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "private void setCategoryIcon(String iconUrl) {\n Glide.with(itemView.getContext()).load(iconUrl).apply(new RequestOptions().placeholder(R.mipmap.opm_launcher)).into(productImage);\n\n }", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public byte[] getIcon(String url) {\n return mIconUrlToIconMap.get(url);\n }", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }" ]
[ "0.8591924", "0.7187574", "0.7184821", "0.7184821", "0.71527064", "0.71527064", "0.7141546", "0.7141546", "0.7141546", "0.7141546", "0.71133745", "0.70700496", "0.70019716", "0.6984504", "0.69723314", "0.6950955", "0.68531364", "0.6845531", "0.68348485", "0.6812648", "0.67999667", "0.67979443", "0.6797722", "0.67316246", "0.66844654", "0.6667694", "0.6667694", "0.6656138", "0.66421187", "0.66421187", "0.6627665", "0.6608416", "0.659446", "0.6587124", "0.6581662", "0.65778166", "0.6554058", "0.6524039", "0.65223104", "0.64949906", "0.6485916", "0.64791566", "0.64477", "0.64459527", "0.64337415", "0.6432819", "0.6432397", "0.64252317", "0.642235", "0.642235", "0.64016306", "0.63929", "0.6392726", "0.637753", "0.63761896", "0.63690025", "0.6362389", "0.6348541", "0.6348541", "0.63411415", "0.63301045", "0.6321527", "0.6302208", "0.6292277", "0.628667", "0.6268885", "0.62424964", "0.62367326", "0.62342954", "0.6234038", "0.62312984", "0.62128854", "0.6202719", "0.61969554", "0.6187351", "0.61691946", "0.61675817", "0.61669123", "0.6158413", "0.6137458", "0.6133948", "0.61245334", "0.6120338", "0.61165744", "0.61125565", "0.610803", "0.6105456", "0.6103496", "0.6102621", "0.6097627", "0.6096793", "0.6076407", "0.6076407", "0.607314", "0.6056575", "0.6051497", "0.60509455", "0.6036946", "0.6028404", "0.6024676" ]
0.8306919
1
Get the category noncalculation icon.
public static Image getCategoryAppropriateImage() { return ImageUtil .getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_APPROPRIATE_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}", "public static Image getCategoryImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_ICON));\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "String getIcon();", "String getIcon();", "java.lang.String getIcon();", "java.lang.String getIcon();", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public Icon getIcon();", "Icon getIcon();", "public String getNomIcone() {\n\t\treturn nomIcone;\n\t}", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public String getIconURL()\n {\n return null; \n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public String getIconString() {\n return theIconStr;\n }", "public String getIconFileName() {\n return null;\n }", "public BufferedImage getTrayiconInactive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_INACTIVE);\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public FSIcon getIcon() {\n return icon;\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getDefaultIconCls() {\n\t\tif (null != this.defaultIconCls) {\n\t\t\treturn this.defaultIconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"defaultIconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public String getNotiCategory() {\r\n return (String) getAttributeInternal(NOTICATEGORY);\r\n }", "public static synchronized Icon getIllegalIcon ()\n\t{\n\t\tif (_illegalIcon == null)\n\t\t{\n\t\t\t_illegalIcon = getIcon(\n\t\t\t\t\"org/openide/resources/propertysheet/invalid.gif\", // NOI18N\n\t\t\t\tMappingContextFactory.getDefault().getString(\"ICON_illegal\"));\n\t\t}\n\n\t\treturn _illegalIcon;\n\t}", "public abstract String typeIcon();", "public ImageDescriptor getIcon();", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public int getIconId(){\n return mIconId;\n }", "java.lang.String getCouponIconUrl();", "@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}", "private String getStatusIcon() {\n return (isDone ? \"+\" : \"-\");\n }", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "String getIconFile();", "protected String customIconSet(Object inNode)\n\t{\n\t\treturn null;\n\t}", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public abstract String getIconString();", "@Override\n\tpublic String getIconFileName() {\n\t\treturn null;\n\t}", "public String getStatusIcon() {\n return (isDone ? \"/\" : \"X\"); // Return / or X symbols\n }", "@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ResourceLocation getIcon() {\n return icon;\n }", "public String getStatusIcon() {\n return (isDone ? \"[X]\" : \"[ ]\");\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public String getStatusIcon() {\n return (isDone ? \"✓\" : \"✘\"); //return tick or X symbols\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public abstract Drawable getIcon();", "public String getAccessibleIconDescription();", "Icon getPlotterIcon();", "public char getIcon() {\n return this.icon;\n }", "private RLabel getIconLabel() {\n if (iconLabel == null) {\n iconLabel = new RLabel();\n iconLabel.setStyle(\"border-all\");\n iconLabel.setIconUri(\"<%=ivy.cms.cr(\\\"/Icons/Large/error\\\")%>\");\n iconLabel.setStyleProperties(\"{/anchor \\\"NORTHWEST\\\"}\");\n iconLabel.setName(\"iconLabel\");\n }\n return iconLabel;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "public abstract ImageDescriptor getIcon();", "public AppIcon getAppIcon () ;", "public Integer getStateIcon() {\n return stateIcon;\n }", "protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }", "@Override\r\n\tpublic Image getGameIcon() {\n\t\treturn null;\r\n\t}", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "public String getIconUrl() {\n return iconUrl;\n }", "@Override\n public java.awt.Image getIcon(int iconKind) {\n switch (iconKind) {\n case ICON_COLOR_16x16:\n if (iconNameC16 == null) {\n return null;\n } else {\n if (iconColor16 == null) {\n iconColor16 = loadImage(iconNameC16);\n }\n return iconColor16;\n }\n case ICON_COLOR_32x32:\n if (iconNameC32 == null) {\n return null;\n } else {\n if (iconColor32 == null) {\n iconColor32 = loadImage(iconNameC32);\n }\n return iconColor32;\n }\n case ICON_MONO_16x16:\n if (iconNameM16 == null) {\n return null;\n } else {\n if (iconMono16 == null) {\n iconMono16 = loadImage(iconNameM16);\n }\n return iconMono16;\n }\n case ICON_MONO_32x32:\n if (iconNameM32 == null) {\n return null;\n } else {\n if (iconMono32 == null) {\n iconMono32 = loadImage(iconNameM32);\n }\n return iconMono32;\n }\n default:\n return null;\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "@Override\r\n @SideOnly(Side.CLIENT)\r\n public IIcon getIcon(int p_149691_1_, int p_149691_2_)\r\n {\r\n \treturn p_149691_2_ > 0 ? field_149935_N : field_149934_M;\r\n }", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "public String tempIcon() {\n float tCode = 0;\n String tempIcon = \" \";\n if (readings.size() > 0) {\n tCode = readings.get(readings.size() - 1).temperature;\n if (tCode >= 11) {\n tempIcon = \"huge red temperature high icon\";\n } else if (tCode <= 10.99) {\n tempIcon = \"huge blue temperature low icon\";\n } else {\n tempIcon = \"huge temperature low icon\";\n }\n }\n return tempIcon;\n }", "protected abstract String getAddDataIconDefaultCaption () ;", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "public BufferedImage getTrayiconNotification() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_NOTIFICATION);\n }", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}" ]
[ "0.74701273", "0.6993674", "0.697542", "0.6877786", "0.6877786", "0.6845542", "0.6845542", "0.6685745", "0.66824746", "0.65856767", "0.6578739", "0.65590775", "0.65590775", "0.65590775", "0.65590775", "0.65376973", "0.65163165", "0.6443526", "0.6409527", "0.63953775", "0.63953775", "0.63832766", "0.6379374", "0.6339148", "0.6328698", "0.6307598", "0.6301882", "0.6294579", "0.6288747", "0.62732095", "0.62669325", "0.6262151", "0.62498033", "0.6233139", "0.6225788", "0.61520666", "0.6150288", "0.614297", "0.61428046", "0.6142711", "0.60785353", "0.6064862", "0.6059929", "0.60546285", "0.6053654", "0.6052317", "0.60514045", "0.6046386", "0.6035727", "0.6030592", "0.6027905", "0.60250926", "0.60105765", "0.6000698", "0.59966093", "0.5996238", "0.5993035", "0.59872556", "0.5982176", "0.59780157", "0.59780157", "0.59780157", "0.5976291", "0.5969943", "0.5969943", "0.59692913", "0.5967766", "0.5967766", "0.59625375", "0.5961304", "0.5960998", "0.5950327", "0.5949932", "0.59490246", "0.5939732", "0.59386307", "0.5928619", "0.5925709", "0.59241605", "0.59232885", "0.592291", "0.5918977", "0.5916172", "0.59150314", "0.5912662", "0.5907264", "0.5906774", "0.5903947", "0.59012616", "0.5873511", "0.5867147", "0.58669525", "0.5855623", "0.5854581", "0.5850308", "0.5847555", "0.58439666", "0.5838463", "0.5837974", "0.5837909" ]
0.6337346
24
Get the knowhow icon.
public static Image getKnowhowImage() { return ImageUtil.getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_KNOWHOW_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Icon getIcon();", "String getIcon();", "String getIcon();", "java.lang.String getIcon();", "java.lang.String getIcon();", "public Icon getIcon();", "String getIconFile();", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public AppIcon getAppIcon () ;", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public String getAccessibleIconDescription();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public ResourceLocation getIcon() {\n return icon;\n }", "public abstract String getIconPath();", "public ImageDescriptor getIcon();", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }", "public String getIconURL()\n {\n return null; \n }", "public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public FSIcon getIcon() {\n return icon;\n }", "Icon getIcon(URI activityType);", "public abstract String typeIcon();", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public String getIconUrl() {\n return iconUrl;\n }", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "public String getIconString() {\n return theIconStr;\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "Icon createIcon();", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public int getIconId(){\n return mIconId;\n }", "public abstract ImageDescriptor getIcon();", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public URI getIconUri() {\n return this.iconUri;\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String getIconFileName() {\n return null;\n }", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public abstract String getIconString();", "private BitmapDescriptor getMarkerIconFromDrawableForReligion() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_religion);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "Icon getPlotterIcon();", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "Icon getMenuIcon();", "public Icon getIcon(Object object);", "public static Image getWinIcon()\n\t{\n\t\treturn winIcon;\n\t}", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "URL getIconURL(String iconId, IconSize medium);", "public @Nullable IIconData getIcon(@Nullable URL url);", "public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getGameIconUrl();", "@Nonnull\n S iconify();", "public String getUserIcon() {\n return userIcon;\n }", "java.lang.String getCouponIconUrl();", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "public static Image getSearchInfoImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));\n }", "boolean hasIcon();", "boolean hasIcon();", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public int getSmallIconId() throws android.os.RemoteException;", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "public String getMessageIcon() {\n return messageIcon;\n }", "public char getIcon() {\n return this.icon;\n }", "public Icon getIcon(FileObject f)\n {\n return null;\n }", "private BitmapDescriptor getMarkerIconFromDrawableForEducation() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_education);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "public abstract Drawable getIcon();", "IconUris iconUris();", "public ImageIcon getHeaderIcon();", "public static String obtenerIconoDelJuego(){\n return direccionIcono;\n }" ]
[ "0.7378497", "0.7298018", "0.7298018", "0.72800416", "0.72800416", "0.71229786", "0.7110389", "0.7099789", "0.7005472", "0.6971167", "0.69206464", "0.69094324", "0.6882381", "0.6882381", "0.6882381", "0.6882381", "0.6827345", "0.68172526", "0.67376673", "0.67283976", "0.6727062", "0.67199177", "0.6707441", "0.6707441", "0.67070776", "0.67070776", "0.66883945", "0.6632695", "0.6626257", "0.6620927", "0.65889436", "0.65724546", "0.65724546", "0.6565389", "0.65635616", "0.65588915", "0.65472436", "0.65383226", "0.65325385", "0.6513438", "0.650671", "0.6497951", "0.6472818", "0.64547515", "0.64448863", "0.64096475", "0.6400275", "0.6382127", "0.6373325", "0.63578707", "0.6350595", "0.6342675", "0.6334478", "0.63260764", "0.63259214", "0.6318951", "0.6310015", "0.63085026", "0.629768", "0.6293944", "0.6290147", "0.6279264", "0.6279264", "0.625726", "0.62391585", "0.62385696", "0.6238097", "0.62360114", "0.6233377", "0.6228583", "0.62268853", "0.6222458", "0.62201834", "0.62201834", "0.6207579", "0.6198169", "0.6194363", "0.6191066", "0.6189238", "0.61823845", "0.61806244", "0.61806244", "0.6180227", "0.6179291", "0.61781806", "0.6169277", "0.6163135", "0.6162187", "0.6148523", "0.61481047", "0.6145508", "0.6142072", "0.6135512", "0.6130399", "0.6128513", "0.6128454", "0.6119438", "0.6104789", "0.6092636", "0.60855424" ]
0.7811913
0
Get search information icon.
public static Image getSearchInfoImage() { return ImageUtil.getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Image getSearchInfoAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));\n }", "java.lang.String getIcon();", "java.lang.String getIcon();", "String getIcon();", "String getIcon();", "Icon getIcon();", "public Icon getIcon();", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public FSIcon getIcon() {\n return icon;\n }", "public String getIconString() {\n return theIconStr;\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public ResourceLocation getIcon() {\n return icon;\n }", "public ImageDescriptor getIcon();", "public abstract String typeIcon();", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String getAccessibleIconDescription();", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }", "String getIconFile();", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public abstract String getIconString();", "public AppIcon getAppIcon () ;", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public int getIconId(){\n return mIconId;\n }", "Icon getIcon(URI activityType);", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public URI getIconUri() {\n return this.iconUri;\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public abstract String getIconPath();", "public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "@NotNull\n SVGResource getIcon();", "Icon getMenuIcon();", "public String getIconUrl() {\n return iconUrl;\n }", "public Icon getIcon(Object object);", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public abstract ImageDescriptor getIcon();", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public @Nullable IIconData getIcon(@Nullable URL url);", "public char getIcon() {\n return this.icon;\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "public String getUserIcon() {\n return userIcon;\n }", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "public String getIconURL()\n {\n return null; \n }", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public Icon getIcon(String spellName);", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public int getIconIndex() {\n return iconIndex;\n }", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "@Nonnull\n S iconify();", "public String getIconHandler()\n {\n return iconHandler;\n }", "public ImageIcon getHeaderIcon();", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "java.lang.String getGameIconUrl();", "public static Image getKnowhowImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_KNOWHOW_ICON));\n }", "Icon getPlotterIcon();", "public byte[] getIcon(String url) {\n return mIconUrlToIconMap.get(url);\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "public String getTextIconSignin()\n\t{\n\t\treturn elementUtils.getElementText(wbIconSignin); //return wbIconSignin.getText()\n\t}", "public Image getSourceIcon() {\n return impl.getSourceIcon();\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Cagliero.png\"));\n return retValue;\n }", "Texture getIcon();" ]
[ "0.7171661", "0.71635145", "0.71635145", "0.70953184", "0.70953184", "0.70056987", "0.7003677", "0.6985918", "0.68287957", "0.68287957", "0.68287957", "0.68287957", "0.68078375", "0.66101855", "0.65606135", "0.65405077", "0.65405077", "0.65370905", "0.6535503", "0.6535503", "0.6533988", "0.6494825", "0.6453315", "0.6441815", "0.6435041", "0.641923", "0.64126694", "0.6406921", "0.63764495", "0.6375427", "0.63063", "0.6291547", "0.628183", "0.627569", "0.627569", "0.62750846", "0.6257304", "0.6256681", "0.62523407", "0.62442565", "0.62259936", "0.621792", "0.6192792", "0.61886287", "0.6188489", "0.6185392", "0.6185392", "0.61807215", "0.61611396", "0.6153719", "0.6147222", "0.6137808", "0.6136114", "0.6127163", "0.6122005", "0.61127174", "0.61116606", "0.61092705", "0.61092705", "0.61091876", "0.60962653", "0.6095289", "0.60814595", "0.6074221", "0.6066993", "0.606597", "0.60561883", "0.605284", "0.6045729", "0.6036346", "0.6027237", "0.60021555", "0.60004616", "0.598544", "0.59757763", "0.5969858", "0.59672093", "0.59607285", "0.59595436", "0.5953533", "0.5952815", "0.594889", "0.59357667", "0.5926237", "0.5924405", "0.59189427", "0.5916188", "0.59095854", "0.59064686", "0.58924246", "0.5879841", "0.5866697", "0.5865148", "0.58625424", "0.58609325", "0.5860336", "0.585354", "0.5852678", "0.58498144", "0.5829546" ]
0.846237
0
Get search information nonrecognized icon.
public static Image getSearchInfoAppropriateImage() { return ImageUtil .getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Image getSearchInfoImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));\n }", "java.lang.String getIcon();", "java.lang.String getIcon();", "public Icon getIcon() {\n \t\treturn null;\n \t}", "String getIcon();", "String getIcon();", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public String getIconURL()\n {\n return null; \n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public Icon getIcon();", "Icon getIcon();", "public String getAccessibleIconDescription();", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}", "public FSIcon getIcon() {\n return icon;\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public @Nullable IIconData getIcon(@Nullable URL url);", "@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}", "public abstract String typeIcon();", "public String getIconString() {\n return theIconStr;\n }", "public String getIconFileName() {\n return null;\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "private void scanForIcons() {\n\t\t\ttry {\n\t\t\t\tFile graphicDir = new File(helpIconBase + File.separator);\n\t\t\t\tlist = filter(graphicDir.listFiles(), \"tip\", \".png\");\n\t\t\t} catch (NullPointerException npe) {\n\t\t\t\tSystem.err.println(npe);\n\t\t\t\tlist = null;\n\t\t\t}\n\t\t}", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public abstract String getIconString();", "@Override\r\n\tpublic Image getGameIcon() {\n\t\treturn null;\r\n\t}", "public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }", "public javax.accessibility.AccessibleIcon[] getAccessibleIcon() {\n try {\n XAccessibleImage unoAccessibleImage = (XAccessibleImage) \n UnoRuntime.queryInterface(XAccessibleImage.class, unoAccessibleContext);\n if (unoAccessibleImage != null) {\n javax.accessibility.AccessibleIcon[] icons = { new AccessibleIconImpl(unoAccessibleImage) };\n return icons;\n } \n } catch (com.sun.star.uno.RuntimeException e) {\n }\n return null;\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String customIconSet(Object inNode)\n\t{\n\t\treturn null;\n\t}", "public ImageDescriptor getIcon();", "public int getIconId(){\n return mIconId;\n }", "public AppIcon getAppIcon () ;", "public ResourceLocation getIcon() {\n return icon;\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "@Override\n\tpublic String getIconFileName() {\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getIcon(String url) {\n return mIconUrlToIconMap.get(url);\n }", "String getIconFile();", "public List<Icon> getIcons(String token) throws RemoteException {\n return mainScreenProvider.getIcons(token);\n }", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public URI getIconUri() {\n return this.iconUri;\n }", "public String getUserIcon() {\n return userIcon;\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public String getNomIcone() {\n\t\treturn nomIcone;\n\t}", "public String getSmenicon() {\n return smenicon;\n }", "@Override\n\tpublic List<Icon> getAllIcon() {\n\t\treturn this.menuDao.getAllIcon();\n\t}", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public Result testGetIcon() {\n try {\n assertNull(beanInfo.getIcon(BeanInfo.ICON_MONO_16x16));\n Bean1BeanInfo.verifyException();\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }", "public List<String> getIcons(){\n List<String> icons = new ArrayList<String>();\n for(Intent i : super.getOutgoingIntentsForType(IntentType.bottomNavigIntent)) {\n String icon = ((BottomNavigationIntent) i).getIconId();\n if(!icons.contains(icon)){\n icons.add(icon);\n }\n }\n\n return icons;\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public abstract String getIconPath();", "public String getDefaultMarkerIcon() {\n String defaultIcon = \"\";\n for (MapInfo mapMarker : mapMarkers) {\n if (mapMarker.getMapEntityName().equalsIgnoreCase(Constants.PROJECT_LIST_DEFAULT_MAP_ICON)) {\n defaultIcon = MapUtils.getInstance().getMapElementIcon(mapMarker.getIconUrl());\n }\n }\n return defaultIcon;\n\n }", "public String getIconUrl() {\n return iconUrl;\n }", "public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "public abstract ImageDescriptor getIcon();", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "public static synchronized Icon getIllegalIcon ()\n\t{\n\t\tif (_illegalIcon == null)\n\t\t{\n\t\t\t_illegalIcon = getIcon(\n\t\t\t\t\"org/openide/resources/propertysheet/invalid.gif\", // NOI18N\n\t\t\t\tMappingContextFactory.getDefault().getString(\"ICON_illegal\"));\n\t\t}\n\n\t\treturn _illegalIcon;\n\t}", "public String getGifticon() {\r\n return gifticon;\r\n }", "public BufferedImage getTrayiconInactive() {\n return loadTrayIcon(\"/images/\" + OS + TRAYICON_INACTIVE);\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "public int getIconIndex() {\n return iconIndex;\n }", "boolean hasIcon();", "boolean hasIcon();", "public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}", "public static Image getKnowhowImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_KNOWHOW_ICON));\n }", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "public Icon getIcon(String spellName);", "public int getIconImageNumber(){return iconImageNumber;}", "@Nullable\n @Override\n public Icon getIcon(boolean unused) {\n return ToolkitIcons.METHOD.get(method);\n }", "@Override\n public boolean isIcon(){\n return super.isIcon() || speciallyIconified;\n }", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "@NotNull\n SVGResource getIcon();", "@SideOnly(Side.CLIENT)\n\tpublic IIcon getIconFromDamage(int meta)\n\t{\n\t\treturn icon;\n\t}", "public IIcon method_2681() {\r\n return this.field_2146;\r\n }", "public Icon getIcon(FileObject f)\n {\n return null;\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public Icon getIcon(Object object);" ]
[ "0.7624475", "0.6531301", "0.6531301", "0.63281566", "0.6325629", "0.6325629", "0.6285848", "0.6254329", "0.62132645", "0.61972183", "0.61549103", "0.61242014", "0.61187786", "0.61111724", "0.61111724", "0.60679185", "0.60679185", "0.60679185", "0.60679185", "0.60114473", "0.5903298", "0.58943045", "0.5887857", "0.5887857", "0.58856684", "0.58856684", "0.58808094", "0.58808094", "0.58710533", "0.5868713", "0.5858598", "0.5857006", "0.5814684", "0.5806762", "0.5802232", "0.5792346", "0.5764987", "0.5736012", "0.57194453", "0.57155323", "0.5713349", "0.5697791", "0.5690612", "0.5683645", "0.5683645", "0.5681622", "0.568078", "0.5673324", "0.56597084", "0.5654667", "0.5653936", "0.56528014", "0.5630286", "0.5630286", "0.56108165", "0.5605935", "0.5596593", "0.55817723", "0.5578406", "0.5577634", "0.5574625", "0.55602753", "0.5549869", "0.55256265", "0.5520501", "0.55153865", "0.55118394", "0.5484047", "0.5470329", "0.54694754", "0.54610336", "0.5456024", "0.5441817", "0.5437189", "0.5430076", "0.54293454", "0.54259956", "0.54240537", "0.54217225", "0.541935", "0.54028153", "0.5396641", "0.5392348", "0.53900516", "0.5384631", "0.5384631", "0.53839445", "0.53811884", "0.53811747", "0.53796786", "0.5379389", "0.5376761", "0.5376418", "0.5356537", "0.5343382", "0.5343352", "0.5341005", "0.5339832", "0.5338488", "0.53264743" ]
0.67999643
1
Get a check item icon.
public static Image getCheckItemImage() { return ImageUtil.getImage(ApplicationPropertiesUtil .getProperty(ApplicationPropertiesUtil.PATH_CHECKITEM_ICON)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "B itemIcon(ITEM item, Resource icon);", "public Icon getIcon();", "static Icon getCheckBoxIcon()\r\n/* 29: */ {\r\n/* 30: 73 */ if (checkBoxIcon == null) {\r\n/* 31: 74 */ checkBoxIcon = new CheckBoxIcon(null);\r\n/* 32: */ }\r\n/* 33: 76 */ return checkBoxIcon;\r\n/* 34: */ }", "Icon getIcon();", "java.lang.String getIcon();", "java.lang.String getIcon();", "String getIcon();", "String getIcon();", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public void loadItemIcon() throws ApiException\n {\n itemIcon = ImageService.getInstance().getImage(String.valueOf(itemID), ImageTypes.ICON);\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "protected ResourceReference getNodeIcon(TreeNode node)\n\t{\n\t\tif (node.isLeaf() == true)\n\t\t{\n\t\t\treturn getItem();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isNodeExpanded(node))\n\t\t\t{\n\t\t\t\treturn getFolderOpen();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getFolderClosed();\n\t\t\t}\n\t\t}\n\t}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getStatusIcon() {\n return (isDone ? \"✓\" : \"✘\"); //return tick or X symbols\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "Icon getMenuIcon();", "public AppIcon getAppIcon () ;", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public FSIcon getIcon() {\n return icon;\n }", "public Icon getIcon(Object object);", "public String getStatusIcon() {\n return (isDone ? \"[X]\" : \"[ ]\");\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public abstract Drawable getIcon();", "@NotNull\n SVGResource getIcon();", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public int getIconId(){\n return mIconId;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ImageDescriptor getIcon();", "protected Drawable getIcon(Context context) {\n if (this.iconResource != 0) {\n return ContextCompat.getDrawable(context, this.iconResource);\n } else {\n return this.icon;\n }\n }", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public ResourceLocation getIcon() {\n return icon;\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public String getStatusIcon() {\n return (isDone ? \"\\u2713\" : \"\\u2718\"); //return tick or X symbols\n }", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "public String getIconString() {\n return theIconStr;\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "public String getStatusIcon() {\n return (isDone? \"v\" : \"x\");\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "Icon getIcon(URI activityType);", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public String getStatusIcon() {\n return (isDone ? \"/\" : \"X\"); // Return / or X symbols\n }", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "private String getStatusIcon() {\n return (isDone ? \"+\" : \"-\");\n }", "private String getStatusIcon() {\n return this.isDone ? \"X\" : \"\";\n }", "public static int getNotificationIcon(Context cxt, String icon){\n int imageResource = 0;\n if(!icon.isEmpty()) {\n imageResource = cxt.getResources().getIdentifier(icon, \"drawable\", cxt.getPackageName());\n if (imageResource != 0) {\n return imageResource;\n }\n }\n\n imageResource = cxt.getResources().getIdentifier(\"ic_stat_pushprime\", \"drawable\", cxt.getPackageName());\n if(imageResource != 0){\n return imageResource;\n }\n return R.drawable.ic_stat_pushprime_fallback;\n }", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getStatusIcon(){\n return (isDone ? \"\\u2713\" : \"\\u2718\");\n }", "public String getStatusIcon() {\n return (isDone ? \"v\" : \"x\"); // returns ticks (v) and crosses (x)\n }", "public Icon getIcon(String spellName);", "public char getIcon() {\n return this.icon;\n }", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "public String getStatusIcon() {\n return isDone\n ? \"\\u2713\"\n : \"\\u2718\";\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "private BitmapDescriptor getMarkerIconFromDrawableForFood() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_food);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "boolean hasIcon();", "boolean hasIcon();", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public String getUserIcon() {\n return userIcon;\n }", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public String getStatusIcon() {\n return (isDone ? \"X\" : \" \");\n }", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "protected String getStatusIcon() {\n return isDone ? \"x\" : \" \";\n }", "public abstract String typeIcon();", "public String getStatusIcon() {\n return (isDone ? \"X\" : \" \"); //mark done task with X\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "private BitmapDescriptor getMarkerIconFromDrawableForAdministration() {\r\n Drawable drawable = getResources().getDrawable(R.drawable.ic_administration);\r\n Canvas canvas = new Canvas();\r\n Bitmap bitmap = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), Bitmap.Config.ARGB_8888);\r\n canvas.setBitmap(bitmap);\r\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());\r\n drawable.draw(canvas);\r\n return BitmapDescriptorFactory.fromBitmap(bitmap);\r\n }", "public IIcon getIcon(int p_149691_1_, int p_149691_2_)\n {\n return func_149887_c(p_149691_2_) ? this.field_149893_M[0] : this.field_149893_M[p_149691_2_ & 7];\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "@Nullable\n @Override\n public Icon getIcon(boolean unused) {\n RowIcon rowIcon = new RowIcon(2);\n\n rowIcon.setIcon(ElixirIcons.MODULE, 0);\n rowIcon.setIcon(PlatformIcons.ANONYMOUS_CLASS_ICON, 1);\n\n return rowIcon;\n }", "private void highlightView(AdapterList.ViewHolder holder) {\n holder.checkIcon.setImageResource(R.drawable.check_icon);\n// holder.checkIcon.setVisibility(View.VISIBLE);\n }", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String completionIcon() {\n return completionStatus ? \"[X]\" : \"[-]\";\n }", "static ItemsIconId retrieveItemsIconId(ComprehensionTlv ctlv) throws ResultException {\n CatLog.d(\"ValueParser\", \"retrieveItemsIconId:\");\n ItemsIconId id = new ItemsIconId();\n byte[] rawValue = ctlv.getRawValue();\n int valueIndex = ctlv.getValueIndex();\n boolean z = true;\n int numOfItems = ctlv.getLength() - 1;\n id.recordNumbers = new int[numOfItems];\n int valueIndex2 = valueIndex + 1;\n try {\n if ((rawValue[valueIndex] & 255) != 0) {\n z = false;\n }\n id.selfExplanatory = z;\n int index = 0;\n while (index < numOfItems) {\n int index2 = index + 1;\n int valueIndex3 = valueIndex2 + 1;\n try {\n id.recordNumbers[index] = rawValue[valueIndex2];\n index = index2;\n valueIndex2 = valueIndex3;\n } catch (IndexOutOfBoundsException e) {\n throw new ResultException(ResultCode.CMD_DATA_NOT_UNDERSTOOD);\n }\n }\n return id;\n } catch (IndexOutOfBoundsException e2) {\n throw new ResultException(ResultCode.CMD_DATA_NOT_UNDERSTOOD);\n }\n }", "@Override\n\t@SideOnly(Side.CLIENT)\n\tpublic IIcon getIcon(int side, int meta)\n\t{\n\t\treturn icon;\n\t}", "public Icon getIcon(int side, int meta) {\n \t\tif (meta > 15) {\n \t\t\treturn onIcons[meta - 16];\n \t\t} else {\n \t\t\treturn offIcons[meta];\n \t\t}\n \t}" ]
[ "0.7186051", "0.6588645", "0.6588314", "0.6586501", "0.6538733", "0.6538733", "0.64967865", "0.64967865", "0.63996506", "0.63996506", "0.63996506", "0.63996506", "0.62977743", "0.62960416", "0.62960416", "0.6285996", "0.6251098", "0.6237558", "0.6237071", "0.6237071", "0.6204867", "0.61902636", "0.61518514", "0.61103106", "0.61036825", "0.6081886", "0.6078451", "0.6073718", "0.60685307", "0.6065291", "0.6063093", "0.6047891", "0.60448295", "0.60438436", "0.60358286", "0.6031519", "0.6031519", "0.60192436", "0.5999147", "0.5999147", "0.5990947", "0.5978677", "0.5976573", "0.5974671", "0.5965837", "0.5965837", "0.5965837", "0.59652835", "0.596381", "0.5909871", "0.5903588", "0.5903063", "0.59006673", "0.5893192", "0.58917093", "0.5886227", "0.5875859", "0.58664006", "0.58664006", "0.5858352", "0.5855721", "0.5844238", "0.5839664", "0.58330107", "0.5816797", "0.58089745", "0.5803183", "0.58019185", "0.57915425", "0.57854176", "0.57844114", "0.5784406", "0.578404", "0.5781227", "0.57795197", "0.5774722", "0.57731", "0.57731", "0.5772913", "0.57710814", "0.57593465", "0.57563484", "0.57371545", "0.5729215", "0.5716422", "0.5713017", "0.57074374", "0.56999904", "0.56999904", "0.5698095", "0.5652509", "0.56484383", "0.5637412", "0.563137", "0.56292534", "0.5627808", "0.5625484", "0.56244427", "0.5623859", "0.5619308" ]
0.841081
0
Get the image in the project. Please use this method when generating an image.
private static Image getImageInProject(String targetPath) { try { return new Image(null, PluginUtil.getPluginDir() + targetPath); } catch (SWTException e) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getImage()\n {\n return image;\n }", "public Image getImage() {\r\n return image;\r\n }", "public Image getImage() {\n return image;\n }", "public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}", "public Image getImage() {\n return image;\n }", "public String getImage() { return image; }", "public String getImage() {\n return image;\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public PImage getImage() {\n return this.image;\n }", "public Image getImage() {\r\n\t\treturn image;\r\n\t}", "public Image getImage() {\n\t\treturn image;\r\n\t}", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "java.lang.String getImage();", "public String getImage() {\n return this.Image;\n }", "public ImageInfo getImage() {\n return image;\n }", "String getImage();", "private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }", "public BufferedImage getImage()\n\t{\n\t\tif (image == null)\n\t\t\tif (imagePath == null)\n\t\t\t\treturn null;\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tBufferedImage oimg = ImageIO.read(new File(imagePath));\n\t\t\t\t\timage = new BufferedImage(oimg.getWidth(), oimg.getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\t\t\t\timage.getGraphics().drawImage(oimg,0,0,null);\n\t\t\t\t\treturn image;\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex)\n\t\t\t\t{\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\treturn image;\n\t}", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public Bitmap getImage() {\n return image;\n }", "public Image getImage() {\n if (image == null) {//GEN-END:|34-getter|0|34-preInit\n // write pre-init user code here\n try {//GEN-BEGIN:|34-getter|1|[email protected]\n image = Image.createImage(\"/226px-Wave.svg.png\");\n } catch (java.io.IOException e) {//GEN-END:|34-getter|1|[email protected]\n e.printStackTrace();\n }//GEN-LINE:|34-getter|2|34-postInit\n // write post-init user code here\n }//GEN-BEGIN:|34-getter|3|\n return image;\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "PImage getImage() {\n return _img;\n }", "public WritableImage getImage(){\n\t\tWritableImage image = SwingFXUtils.toFXImage(BfImage, null);\r\n\t\treturn image;\r\n\t}", "public Image getOne();", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "WorldImage getImage();", "public BufferedImage getImage() {\n return image;\n }", "public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "private PlanarImage getImage() {\n PlanarImage img = roiImage;\n if (img == null) {\n synchronized (this) {\n img = roiImage;\n if (img == null) {\n roiImage = img = roi.getAsImage();\n }\n }\n }\n return img;\n }", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "public ParseFile getPicture(){\n return getParseFile(KEY_PICTURE);\n }", "public BufferedImage getImage() {\n\t\treturn this.image;\n\t}", "public String getImage() {\n\t\treturn null;\n\t}", "@Output(\"image\")\n public Image getImage() {\n return image;\n }", "java.lang.String getImagePath();", "public BufferedImage getImage()\n \t{\n \t\ttry\n \t\t{\n \t\t\tif(bi==null)\n \t\t\t{\n \t\t\t\tint\n \t\t\t\t\tiWidth=(int)(getInteger(PROPERTY_WIDTH)*getQuestion().getZoom()),\n \t\t\t\t\tiHeight=(int)(getInteger(PROPERTY_HEIGHT)*getQuestion().getZoom());\n \n \t\t\t\t// Create image\n \t\t\t\tbi=new BufferedImage(iWidth,iHeight,BufferedImage.TYPE_INT_RGB);\n \n \t\t\t\t// Fill to background\n \t\t\t\tGraphics g=bi.getGraphics();\n \t\t\t\tg.setColor(getBackground());\n \t\t\t\tg.fillRect(0,0,iWidth,iHeight);\n \t\t\t}\n \t\t\treturn bi;\n \t\t}\n \t\tcatch(OmDeveloperException ode)\n \t\t{\n \t\t\tthrow new OmUnexpectedException(ode);\n \t\t}\n \t}", "public Image getImage()\n {\n return null;\n }", "public synchronized BufferedImage image() {\n\t\tif (this.image == null) {\n\t\t\tString name;\n\t\t\tswitch (this) {\n\t\t\tcase INFO:\n\t\t\t\tname = \"info.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tcase WARNING:\n\t\t\t\tname = \"warning.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tcase FATAL:\n\t\t\t\tname = \"error.png\"; // NOI18N\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new AssertionError();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tthis.image = ImageIO.read(Severity.class.getResourceAsStream(name));\n\t\t\t} catch (final IOException ex) {\n\t\t\t\tthrow new IllegalArgumentException(ex);\n\t\t\t}\n\t\t}\n\t\treturn this.image;\n\t}", "String getImagePath();", "String getImagePath();", "public Image getImage() {\n return null;\r\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public byte[] getImage() {\n return image;\n }", "public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }", "public Drawable getImage(){\n\t\treturn mImage;\n\t}", "public Image getImage() {\n\t\t// Check we have frames\n\t\tif(frames.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn getFrame(currentFrameIndex).image;\n\t\t}\n\t}", "public Image getImage()\n {\n if (fill instanceof ImageFill)\n {\n return ((ImageFill) fill).getImage();\n }\n else\n {\n return null;\n }\n }", "public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }", "public BufferedImage getImage() {\n return embeddedImage;\n }", "public String getStaticPicture();", "public int getImage();", "public java.lang.String getImage() {\n\t\treturn _imageCompanyAg.getImage();\n\t}", "@Override\n\tpublic final Image getImage() {\n\t\treturn this.getSprite().getImage();\n\t}", "public ColorImage getImagem(){\n\t\treturn copiaFoto(this.fotografia);\n\t}", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "public ModelImage getResultImage() {\r\n return resultImage;\r\n }", "static String getImage() {\n int rand = (int) (Math.random() * 13);\n return \"file:src/images/spaceships/\" + rand + \".png\";\n }", "public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"myspringbasedhippoproject:image\", HippoGalleryImageSetBean.class);\n }", "static public AppImage browseForImage() {\n // If there is no image ask the user to choose image from file:\n JFileChooser file_chooser = new JFileChooser();\n file_chooser.setAcceptAllFileFilterUsed(false);\n file_chooser.addChoosableFileFilter(new FileFilter() {\n public boolean accept(File file) {\n if (file.isDirectory()) return true;\n String extension = FileUtils.getFileExtension(file);\n return extension.equals(\"png\");\n }\n\n public String getDescription() {\n return \"Portable Network Graphics (PNG)\";\n }\n });\n int ret_value = file_chooser.showOpenDialog(App.instance);\n AppImage app_image = null;\n if (ret_value == JFileChooser.APPROVE_OPTION) {\n // Read the selected file and do scaling on it:\n File file = file_chooser.getSelectedFile();\n String path = file.getAbsolutePath();\n\n // Create the image and add it to cache:\n app_image = Resources.loadAppImage(path);\n addImage(app_image);\n writeRepository();\n }\n\n return app_image;\n }", "public ImageIcon getImage()\n {\n return image;\n }", "public String getProjectPics() {\n return projectPics;\n }", "@Override\n public String getImagePath() {\n return IMAGE_PATH;\n }", "@Override\n\tpublic BufferedImage getImage() {\n\t\tif (cimg == null)\n\t\t\ttry {\n\t\t\t\tcimg = ImageIO.read(WizardRpgXpVxLicenePage.class.getResource(\"licence.jpg\"));\n\t\t\t} catch (Throwable t) {\n\t\t\t\tYEx.info(\"Can not load Image \" + getImgName() + \" for wizard\", t);\n\t\t\t}\n\t\treturn cimg;\n\t}", "public BufferedImage getImage()\r\n\t{\r\n\t\treturn mImageBuffer;\r\n\t}", "public Image getImage() {\n MimsChartPanel mcp = getChartPanel();\n if (mcp == null) {\n return null;\n }\n BufferedImage img = mcp.getChart().createBufferedImage(mcp.getWidth(), mcp.getHeight());\n if (img == null) {\n return null;\n }\n return img;\n }", "public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}", "Imagem getImagem();", "public static Image target()\n\t{\n\t\treturn targetImg;\n\t}", "public PImage getImg() {\n \treturn img;\n }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public abstract Image getImage();", "public abstract Image getImage();", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:image\")\n public HippoGalleryImageSet getImage() {\n return getLinkedBean(IMAGE, HippoGalleryImageSet.class);\n }", "public Image getImage() {\n\t\tif (State == \"NORMAL\") {\n\t\t\tBox = sBoxNormal.getImage();\n\t\t} else if (State == \"OK\") {\n\t\t\tBox = sBoxGoal.getImage();\n\t\t}\n\t\treturn Box;\n\t}", "public BufferedImage getImage() {\n\t\tTelaInterna ti = ( TelaInterna )contentPane.getSelectedFrame();\n\t\tBufferedImage img;\n\t\timg = ti.getImage();\n\t\treturn img;\n\t}", "public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }", "public File getFileForPicture() {\r\n\t\tif(!isReady) prepare();\r\n\t\tif(!isReady) {\r\n\t\t\tLog.e(TAG,\"Not ready when taking picture\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tcurrentFile = new File(directory,getFileName());\r\n\t\treturn currentFile;\r\n\t}", "java.lang.String getPackageImageURL();", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public BufferedImage queryImage() {\n\t\treturn cloud;\n\t}", "public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}", "public ImageIcon getImage(){\n\t\treturn this.image;\n\t}", "public ImageIcon image() {\n return image;\n }" ]
[ "0.7214979", "0.7187813", "0.71873873", "0.71842057", "0.7183005", "0.7159001", "0.71549284", "0.7150434", "0.7137749", "0.7129896", "0.71296054", "0.71248823", "0.7116088", "0.7116088", "0.7116088", "0.7116088", "0.7107741", "0.7107741", "0.70723206", "0.70723206", "0.7066961", "0.70619714", "0.70459634", "0.70398504", "0.70218587", "0.7019985", "0.7019488", "0.7001557", "0.7001557", "0.7001557", "0.6994706", "0.6988729", "0.6970464", "0.6926881", "0.69265205", "0.6925281", "0.6922061", "0.69063616", "0.68637115", "0.6839521", "0.6839492", "0.6834913", "0.6833986", "0.68230724", "0.6818599", "0.678932", "0.6778623", "0.6773876", "0.67686033", "0.6749636", "0.6748163", "0.67240775", "0.67240775", "0.6723964", "0.66994804", "0.66994804", "0.66994804", "0.669754", "0.66770816", "0.66730785", "0.66646343", "0.66638845", "0.66508436", "0.66296035", "0.66240376", "0.66160095", "0.6613002", "0.6584872", "0.6581531", "0.6581531", "0.6581531", "0.6576419", "0.6569507", "0.6568442", "0.6564289", "0.656277", "0.65565944", "0.65548265", "0.65501535", "0.65463966", "0.6521829", "0.6518406", "0.6515696", "0.65107006", "0.65045923", "0.6490017", "0.6490017", "0.64879715", "0.6482797", "0.646754", "0.64593", "0.64391243", "0.643216", "0.6417422", "0.6406398", "0.64062434", "0.640381", "0.6384253", "0.6379213", "0.63790923" ]
0.7036822
24
Initialises a new NumberP instance.
public NumberP(String input) { this ( input, new ParseConfig() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293608", "0.6750526", "0.6445359", "0.64414895", "0.630535", "0.6266385", "0.61881167", "0.61016834", "0.6097963", "0.60700476", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.6528196
2
Initialises a new NumberP instance.
public NumberP(String input, ParseConfig config) { if (input == null || input.trim().length() < 1) { Error = ErrorTypesNumber.InvalidInput; return; } OriginalString = input; Config = new ParseConfig(config); //NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent). NumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this)); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = tempVar.getBaseTenExponent(); Value = tempVar.getValue(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293608", "0.6750526", "0.6528196", "0.6445359", "0.64414895", "0.630535", "0.6266385", "0.61881167", "0.61016834", "0.6097963", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.60700476
10
Initialises a new NumberP instance.
public NumberP(NumberP numberP) { if (numberP == null) { Error = ErrorTypesNumber.InvalidInput; } else { BaseTenExponent = numberP.BaseTenExponent; Value = numberP.Value; OriginalString = numberP.OriginalString; Config = new ParseConfig(numberP.Config); Error = numberP.Error; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.6750526", "0.6528196", "0.6445359", "0.64414895", "0.630535", "0.6266385", "0.61881167", "0.61016834", "0.6097963", "0.60700476", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.7293608
0
Initialises a new NumberP instance.
public NumberP(Number number) { Number tempVar = Constructors.ExtractDynamicToNumber(number); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = number.getBaseTenExponent(); Value = number.getValue(); Config = new ParseConfig(NumericTypes.Double); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public Number(int v)\n {\n val = v;\n }", "private\tNum(int num) { value = num; }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public abstract double initialise();", "public CMN() {\n\t}", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public void setP(Double p);", "public OscillatorCalculator() {\n this(1);\n }", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public IntPar(int val) { value = val; }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293141", "0.65291005", "0.6445573", "0.64413863", "0.6305699", "0.62671256", "0.6188676", "0.6100653", "0.609738", "0.60708106", "0.60298777", "0.5871594", "0.5869752", "0.5868226", "0.581876", "0.57187855", "0.56934696", "0.5687636", "0.5679791", "0.56792116", "0.5665549", "0.5664733", "0.5658697", "0.56397593", "0.5638526", "0.5635616", "0.5616644", "0.5614367", "0.5606045", "0.55860364", "0.55697465", "0.55631924", "0.55486304", "0.55236316", "0.5523417", "0.5507053", "0.54693174", "0.5421387", "0.54083365", "0.54051244", "0.5389947", "0.5382802", "0.5376841", "0.5370667", "0.535283", "0.53494453", "0.5346394", "0.53380406", "0.5296346", "0.52948946", "0.5292858", "0.5291624", "0.5287982", "0.5286304", "0.5268781", "0.52573407", "0.5256926", "0.5251765", "0.5248997", "0.5244968", "0.5233784", "0.52254635", "0.522542", "0.52246684", "0.5215813", "0.52148795", "0.5213128", "0.52101415", "0.51881576", "0.51649576", "0.51648223", "0.5161321", "0.5159272", "0.5156844", "0.51533407", "0.514576", "0.5136816", "0.5132209", "0.5132034", "0.51257193", "0.51181895", "0.51153827", "0.5114473", "0.510913", "0.5108512", "0.51033884", "0.5101946", "0.5100071", "0.5098834", "0.5096718", "0.50921154", "0.5077964", "0.507298", "0.5067383", "0.50625813", "0.50625813", "0.50600165", "0.5059795", "0.50569826", "0.50531435" ]
0.6751114
1
Initialises a new NumberP instance.
public NumberP(NumberD numberD) { NumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = numberD.getBaseTenExponent(); Value = numberD.getValue(); Config = new ParseConfig(numberD.getType()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293608", "0.6750526", "0.6528196", "0.6445359", "0.64414895", "0.6266385", "0.61881167", "0.61016834", "0.6097963", "0.60700476", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.630535
5
Initialises a new NumberP instance.
public NumberP(NumberO numberO) { Number tempVar = Constructors.ExtractDynamicToNumber(numberO); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = numberO.getBaseTenExponent(); Value = numberO.getValue(); Config = new ParseConfig(NumericTypes.Double); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293608", "0.6750526", "0.6528196", "0.6445359", "0.630535", "0.6266385", "0.61881167", "0.61016834", "0.6097963", "0.60700476", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.64414895
4
Initialises a new NumberP instance.
public NumberP(Object unitP) { Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = tempVar.getBaseTenExponent(); Value = tempVar.getValue(); Config = new ParseConfig(NumericTypes.Double); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public Prime_Numbers() {\n initComponents();\n }", "NumberValue createNumberValue();", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public ASNClassNumber() {\n }", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public IntPar() { }", "public NoiseCalculator() {\n this(1.0);\n }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public NumberP(Number number, String originalString, ParseConfig config)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tOriginalString = originalString;\n\t\t\tConfig = new ParseConfig(config);\n\t\t}\n\t}", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public PencilPen() {\n this(10.0);\n }", "public void initStartPoint(GeoPointND p, int number);", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public Pricing()\n\t{\n\t\tprice = INITIALPRICE;\n\t}", "public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }", "public PSO() {\r\n initialiseNetwork();\r\n initialisePSO();\r\n }", "P createP();", "public p7p2() {\n }", "public PQR() {}", "public PrimeCounter() {\n\t\t}", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public PoissonGenerator() {\n\t}", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "Fraction () {\n this (0, 1);\n }", "public Purp() {\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public NumberedList()\n {\n _init=1;\n }", "public English_Number() {\n initComponents();\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public PennCnvSeq() {\n }", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public PARiverDataGenerator() {\n }", "protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public PIInfo() {\n }", "public int get_num_p(){ return num_p; }", "public QBP_Q21() {\n super();\n }", "public PhoneNumber() {\n }", "public void initPC() {\r\n\t\tthis.memoryTaken = 0;\r\n\t\tthis.cpuTaken = 0;\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\r\n\t\tObject[] quirks = (Object[])args[1];\r\n\t\t\r\n\t\tthis.memory = (Integer)quirks[0];\r\n\t\tthis.cpu = (Integer)quirks[1];\r\n\t\tthis.pricePerMemoryUnit = (Double)quirks[2];\r\n\t\tthis.pricePerCpuUnit = (Double)quirks[3];\r\n\t\tthis.pricePerSecond = (Double)quirks[4];\r\n\t\tthis.discountPerWaitingSecond = (Double)quirks[5];\r\n\t\t\r\n\t\tSystem.out.println(this);\r\n\t}", "DomainNumber createDomainNumber();", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "public PrecisePoint() {\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private\tNum(int num) { value = num; }", "public Number(int v)\n {\n val = v;\n }", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public PQueue() {\n this(0,null);\n }", "public Calculator() {\r\n\t\tsuper();\r\n\t}", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public PiButton()\n\t{\n\t\tpasswordLogic = new PINLogic();\n\t\tled = new PiLED(21, 22);\n\t\tbuzzer = new PiBuzzer();\n\t}", "public CMN() {\n\t}", "public abstract double initialise();", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "public Process() {\n\t\tthis(null);\n\t}", "public Loan() {\n this(2.5, 1, 1000);\n }", "public SumNumbersTest() {\r\n\r\n super();\r\n this.sumNumbers = new SumNumbers();\r\n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public Polynomial visit(NumberExpression expression) {\n PolynomialTerm x = new PolynomialTerm(expression.getValue());\n return new Polynomial(x);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public Fraction(){\n\t\tthis.numer = 1;\n\t\tthis.denom = 1;\n\t}", "public Plato(){\n\t\t\n\t}", "public OscillatorCalculator() {\n this(1);\n }", "public void setP(Double p);", "public Calculator() {\n initComponents();\n \n }", "public RSA() {\n \t\n \t//generisanje random key-eva\n Random random = new Random();\n BigInteger p = new BigInteger(512, 30, random);\n BigInteger q = new BigInteger(512, 30, random);\n \n //Nadjemo fi(n)\n BigInteger lambda = lcm(p.subtract(BigInteger.ONE), q.subtract(BigInteger.ONE));\n \n //Nadjemo n tako sto pomnozimo nase brojeve\n this.n = p.multiply(q);\n \n //nadjemo D kao coprime lambde\n this.d = comprime(lambda);\n \n //E nam je inverz d i lambde\n this.e = d.modInverse(lambda);\n }", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PghModulo() {\r\n }", "public Particle() {\n\t}", "protected MoneyFactory() {\n\t}", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public PointDistributer() {\n }", "public GregoryLeibnizPiCalculator() {\r\n \tthis.steps = MIN_STEPS;\r\n }", "public Point() {\n }", "public Point() {\n }", "public PaxosInstance(PaxosAcceptor a_acceptor, String a_instanceNumber)\n {\n this.m_instanceNumber = a_instanceNumber;\n this.m_acceptor = a_acceptor;\n }", "public IntPar(int val) { value = val; }", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}" ]
[ "0.7293608", "0.6750526", "0.6528196", "0.6445359", "0.64414895", "0.630535", "0.6266385", "0.61881167", "0.6097963", "0.60700476", "0.6030234", "0.5870242", "0.58700705", "0.58673435", "0.581758", "0.5717905", "0.5694622", "0.56857526", "0.5678133", "0.5678024", "0.56657046", "0.566556", "0.5660252", "0.5640871", "0.5639333", "0.5635802", "0.56179315", "0.5615222", "0.56078804", "0.55866486", "0.5571047", "0.55644196", "0.5549374", "0.55250496", "0.5523227", "0.55072486", "0.5469427", "0.54222924", "0.5409334", "0.540603", "0.53898144", "0.53830475", "0.5378628", "0.5371359", "0.53517365", "0.5349401", "0.5344046", "0.5338817", "0.52962583", "0.5295214", "0.52937454", "0.5291962", "0.5288407", "0.5285611", "0.52692443", "0.5259138", "0.52588254", "0.5250883", "0.5247834", "0.5244695", "0.52349406", "0.52251196", "0.5224578", "0.522392", "0.521698", "0.52153385", "0.5214341", "0.5212549", "0.5188946", "0.5165827", "0.5165799", "0.51624393", "0.5159599", "0.515685", "0.51527137", "0.51472205", "0.51384455", "0.513309", "0.51323164", "0.5124191", "0.5118841", "0.51168096", "0.5115599", "0.5110604", "0.5110421", "0.51048315", "0.5102118", "0.5100839", "0.5099785", "0.5097203", "0.5093555", "0.50780034", "0.5072664", "0.50686425", "0.5063836", "0.5063836", "0.5059813", "0.5058344", "0.50553757", "0.5053682" ]
0.61016834
8
Private NumberP constructors. WARNING: the purpose of this constructor in the original C code was to be exclusively used internally.
public NumberP(Number number, String originalString, ParseConfig config) { Number tempVar = Constructors.ExtractDynamicToNumber(number); if (!tempVar.getError().equals(ErrorTypesNumber.None)) { Error = tempVar.getError(); } else { BaseTenExponent = number.getBaseTenExponent(); Value = number.getValue(); OriginalString = originalString; Config = new ParseConfig(config); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "private Numbers() {\n\t}", "public Number(int n) \n {\n nn = n; // initailize with the inputed value\n }", "public ASNClassNumber() {\n }", "public NumberP(NumberO numberO)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(numberO);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberO.getBaseTenExponent();\n\t\t\tValue = numberO.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n\t}", "public NumberP(NumberD numberD)\n\t{\n\t\tNumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberD.getBaseTenExponent();\n\t\t\tValue = numberD.getValue();\n\t\t\tConfig = new ParseConfig(numberD.getType());\n\t\t}\n\t}", "public NumberP(String input)\n\t{\n\t\tthis\n\t\t(\n\t\t\tinput, new ParseConfig()\n\t\t);\n\t}", "private\tNum(int num) { value = num; }", "public Numbers(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public NumberP(Object unitP)\n {\n Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t\tConfig = new ParseConfig(NumericTypes.Double);\n\t\t}\n }", "public Number(int v)\n {\n val = v;\n }", "private NumberUtil()\n {\n\tLog.getInstance().error(\"This Class is utility class cannot be instantiated\");\n }", "NumberValue createNumberValue();", "public NumericField() {\n\t\tsuper();\n\t}", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "private NumericCard (Color color, int number)\n {\n super(color);\n this.number = number;\n }", "public NumberP(String input, ParseConfig config)\n\t{\n\t\tif (input == null || input.trim().length() < 1)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t\treturn;\n\t\t}\n\n\t\tOriginalString = input;\n\t\tConfig = new ParseConfig(config);\n\n\t\t//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Value and BaseTenExponent).\n\t\tNumberD tempVar = NumberPInternal.StartParse(new ParseInfo(this));\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = tempVar.getBaseTenExponent();\n\t\t\tValue = tempVar.getValue();\n\t\t}\n\t}", "public IntPar() { }", "public UnitP(UnitP unitP) \n {\n Value = unitP.Value;\n BaseTenExponent = unitP.BaseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.OriginalUnitString;\n ValueAndUnitString = unitP.ValueAndUnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public Member(String mName, String number) {\r\n\t\tpNumber = number;\r\n\t\tname = mName;\r\n\t}", "public Number(double realPart, double imaginaryPart) {\n \n /* Initializes the real and imaginary values of the number*/\n this.realPart = realPart;\n this.imaginaryPart = imaginaryPart;\n }", "protected RSA(BigInteger p, BigInteger q, BigInteger e, Object dummy1, Object dummy2)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((p.signum() != 1) || (q.signum() != 1) || (e.signum() != 1)) { // i.e., (p <= 0) || (q <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (p.equals(q)) { // i.e., p == q\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < p) && (0 < q) && (0 < e) && (p != q)\r\n\r\n\t\t// Set p and q.\r\n\t\tthis.p = p;\r\n\t\tthis.q = q;\r\n\r\n\t\t// Save p - 1 and ensure that it is positive.\r\n\t\tfinal BigInteger p_minus_1 = this.p.subtract(BigInteger.ONE); // 0 <= p_minus_1\r\n\t\tif (p_minus_1.signum() != 1) { // i.e., p - 1 <= 0\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// 0 < p - 1\r\n\t\t// i.e., 1 < p\r\n\t\t// Save q - 1 and ensure that it is positive.\r\n\t\tfinal BigInteger q_minus_1 = this.q.subtract(BigInteger.ONE); // 0 <= q_minus_1\r\n\t\tif (q_minus_1.signum() != 1) { // i.e., q - 1 <= 0\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// 0 < q - 1\r\n\t\t// i.e., 1 < q\r\n\t\t// Compute the value of Euler's totient function for the cipher modulus.\r\n\t\tfinal BigInteger phi = p_minus_1.multiply(q_minus_1);\r\n\t\tif (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// e < phi\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = this.p.multiply(this.q);\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\r\n\t\t// Set dP, dQ, and qInv.\r\n\t\tthis.dP = this.d.mod(p_minus_1);\r\n\t\tthis.dQ = this.d.mod(q_minus_1);\r\n\t\tthis.qInv = this.q.modInverse(this.p);\r\n\t}", "protected RSA(BigInteger phi, BigInteger n, BigInteger e, Object dummy)\r\n\t\t\tthrows NullPointerException, IllegalArgumentException, ArithmeticException {\r\n\t\tif ((phi.signum() != 1) || (n.signum() != 1) || (e.signum() != 1)) { // i.e., (phi <= 0) || (n <= 0) || (e <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(phi) <= 0) { // i.e., n <= phi\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (phi.compareTo(e) <= 0) { // i.e., phi <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < phi) && (0 < n) && (0 < e) && (phi < n) && (e < phi)\r\n\t\t// i.e., (0 < e) && (e < phi) && (phi < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = this.e.modInverse(phi);\r\n\t}", "public PrimeSequence(int startingNumber) \r\n\t{\r\n\t\tcurrentNumber = startingNumber;\r\n\t\tlastDigitCounters = new int[DIGITS];\r\n\t}", "public static NumberAmount create(){\n NumberAmount NA = new NumberAmount(new AdvancedOperations(Digit.Zero()));\n return NA;\n }", "protected JSONNumber(String str) {\n\t\ttype = JSONConstants.VT_NUMBER;\n\t\tthis.numberStr = str;\n\t\tthis.numberBytes = str.getBytes();\n\t}", "public Number(final T theVal)\n {\n if (theVal instanceof Integer) {\n myInt = (Integer) theVal;\n isInt = true;\n } else if (theVal instanceof Double) {\n myDouble = (Double) theVal;\n isDouble = true;\n } else if (theVal instanceof Float) {\n myFloat = (Float) theVal;\n isFloat = true;\n } else if (theVal instanceof Long) {\n myLong = (Long) theVal;\n isLong = true;\n }\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public PennCnvSeq() {\n }", "public NumberedList()\n {\n _init=1;\n }", "protected RSA(BigInteger n, BigInteger e, BigInteger d) throws NullPointerException, IllegalArgumentException {\r\n\t\tif ((n.signum() != 1) || (e.signum() != 1) || (d.signum() != 1)) { // i.e., (n <= 0) || (e <= 0) || (d <= 0)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(e) <= 0) { // i.e., n <= e\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t} else if (n.compareTo(d) <= 0) { // i.e., n <= d\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t// (0 < n) && (0 < e) && (0 < d) && (e < n) && (d < n)\r\n\t\t// i.e., (0 < e) && (0 < d) && (max(e, d) < n)\r\n\r\n\t\t// Set p, q, dP, dQ, and qInv.\r\n\t\tthis.p = this.q = this.dP = this.dQ = this.qInv = null;\r\n\r\n\t\t// Set n, e, and d.\r\n\t\tthis.n = n;\r\n\t\tthis.e = e;\r\n\t\tthis.d = d;\r\n\t}", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public NumberValue(Token token, Number value, Trackable trackable) {\n super(token, value, trackable);\n }", "public PhoneNumber() {\n }", "public Processor(int processorNumber, float powerPerSecond, float processingSpeed) {\n\t\tsuper();\n\t\tthis.powerPerSecond = powerPerSecond;\n\t\tthis.processorNumber = processorNumber;\n\t\tthis.processingSpeed = processingSpeed;\n\t}", "private Point(int param, double value) {\r\n this(param, value, false);\r\n }", "public negativeNumberException() {\r\n\t \t \r\n\t }", "public NumberToNumber(Class<T> targetType)\r\n/* 21: */ {\r\n/* 22:52 */ this.targetType = targetType;\r\n/* 23: */ }", "public PrimeNumberCalculator() {\n\t\t\t\tthis.threads = 1;\n\t\t}", "public NumberMetaFormat() {\n this(Locale.getDefault());\n }", "public English_Number() {\n initComponents();\n }", "private BigInteger()\n {\n }", "public Model() {\n operation = new DecimalOperation();\n base = 10;\n newnum = true;\n memory = new Stack<>();\n }", "public p7p2() {\n }", "public Pikachu(String name, int number)\n\t{\n\t\tsuper(name, number);\n\t}", "Number(String face, int numValue) {\n this.face = face;\n this.numValue = numValue;\n }", "public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling\n )\n {\n \tthis(numberX, unit, prefix, exceptionHandling, PrefixUsageTypes.DefaultUsage);\n }", "public QBP_Q21() {\n super();\n }", "public AncientEgyptianMultiplication( ) {\r\n }", "public UnitP\n (\n Object numberX, Units unit, Prefix prefix, \n ExceptionHandlingTypes exceptionHandling, \n PrefixUsageTypes prefixUsage\n )\n {\n if (prefix == null) prefix = new Prefix();\n\n ErrorTypes errorType =\n (\n unit == Units.None || MethodsCommon.IsUnnamedUnit(unit) ?\n ErrorTypes.InvalidUnit : ErrorTypes.None\n );\n\n UnitInfo tempInfo = null;\n if (errorType == ErrorTypes.None)\n {\n tempInfo = OtherPartsNumberParserMethods.GetUnitInfoFromNumberX\n (\n numberX, ExceptionHandlingTypes.NeverTriggerException, prefix.getPrefixUsage()\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n //Getting the unit parts associated with the given unit.\n tempInfo.Unit = unit;\n tempInfo.Prefix = new Prefix(prefix);\n tempInfo.Parts = new ArrayList<UnitPart>\n (\n \tMethodsCommon.GetPartsFromUnit(tempInfo).Parts\n );\n\n if (tempInfo.Error.Type == ErrorTypes.None)\n {\n tempInfo = MethodsUnitP.ImproveUnitInfo(tempInfo, false);\n }\n }\n\n errorType = tempInfo.Error.Type;\n }\n\n if (errorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n ValueAndUnitString = \"\";\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n UnitString = \"\";\n Unit = Units.None;\n OriginalUnitString = \"\";\n }\n else\n {\n Value = tempInfo.Value;\n BaseTenExponent = tempInfo.BaseTenExponent;\n Unit = unit;\n UnitType = MethodsCommon.GetTypeFromUnit(Unit);\n UnitSystem = MethodsCommon.GetSystemFromUnit(Unit);\n UnitPrefix = new Prefix(prefix);\n UnitParts = new ArrayList<UnitPart>(tempInfo.Parts);\n UnitString = MethodsCommon.GetUnitString(tempInfo);\n OriginalUnitString = UnitString;\n ValueAndUnitString = Value.toString() + \" \" + UnitString;\n }\n \n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n errorType, ExceptionHandlingTypes.NeverTriggerException\n );\n }", "public Prime_Numbers() {\n initComponents();\n }", "public int get_num_p(){ return num_p; }", "public A034318() {\n this(-1, 0, 13, 0, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0);\n }", "public NumberInterpolator(NumericColumn<T> col) {\n super(col);\n this.col = col;\n }", "public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }", "public PrecisePoint() {\n }", "Type(int lnum) {\n\t\tsuper(lnum);\n\t}", "@Override\n public NumberExpr parse(ModuleState state, ASTNode parent) {\n var s = state.tokens.value().toLowerCase();\n state.tokens.next();\n\n boolean neg = s.startsWith(\"-\");\n if(neg) s = s.substring(1);\n\n if(s.length()>1) {\n if(s.startsWith(\"0x\")) {\n this.value = Long.parseLong(s.substring(2), 16);\n } else if(s.startsWith(\"0o\")) {\n this.value = Long.parseLong(s.substring(2), 8);\n } else if(s.startsWith(\"0b\")) {\n this.value = Long.parseLong(s.substring(2), 2);\n } else if(s.contains(\".\")) {\n this.value = Double.parseDouble(s);\n } else if(s.contains(\"e\")) {\n /* scientific notation */\n this.value = Double.parseDouble(s);\n } else {\n this.value = Long.parseLong(s);\n }\n } else {\n /* Single digit must be an int */\n this.value = Integer.parseInt(s);\n }\n if(neg) this.value = -this.value;\n\n parent.add(this);\n return this;\n }", "public NumberProgressBar(Context context) {\n// super(context);\n this(context, null);\n }", "protected Int() {}", "public NoiseCalculator() {\n this(1.0);\n }", "private FinalIntegerNode() { }", "private XMath()\n {\n \n }", "final public ppp.p1 ppp$p1$$init$S() {\r\n {\r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n \r\n \r\n //#line 4 \"C:/Users/GERALD/Desktop/distribuido/x10dt/workspace/ppp/src/ppp/p1.x10\"\r\n this.__fieldInitializers_ppp_p1();\r\n }\r\n return this;\r\n }", "Fraction () {\n this (0, 1);\n }", "public PghModulo() {\r\n }", "public PrimeCounter() {\n\t\t}", "PBBignum(BigInteger value)\n {\n\tsuper(value.toString());\n\tbigIntValue = value;\n }", "public MyInteger( )\n {\n this( 0 );\n }", "public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }", "public Pl(String cust_Name,double cust_Acc_No,double amount_pi)\r\n\t{\r\n\t\tsuper(cust_Name, cust_Acc_No);\r\n\t\tthis.amount_pi=amount_pi;\r\n\t}", "private PhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\t\tsuper(builder);\n\t\t\t}", "public PQueue() {\n this(0,null);\n }", "public NumericMethodException() {\n super();\n }", "public DistNegBinomial(final StreamInterface stream, final long n, final double p)\n {\n super(stream);\n if ((n > 0) && (p > 0) && (p < 1))\n {\n this.n = n;\n this.p = p;\n }\n else\n {\n throw new IllegalArgumentException(\"Error NegBinomial - n<=0 or p<=0.0 or p>=1.0\");\n }\n this.lnp = Math.log(1.0 - this.p);\n }", "public PrimeSequence(int startingNumber)\n\t{\n\t\tnumber = startingNumber;\n\t}", "public no(np paramnp)\r\n/* 13: */ {\r\n/* 14:30 */ this.b = paramnp;\r\n/* 15: */ }", "private Binomial(int n) {\n N = n;\n }", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "public native void constructor();", "public PQR() {}", "public UnitP(UnitInfo unitInfo, UnitP unitP)\n {\n \tthis(unitInfo, unitP, \"\"); \t\n }", "public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "public IntegerField() {\r this(3, 0, 0, 0);\r }", "public CMN() {\n\t}", "public NumberSequence(HsqlName name, long value, long increment,\n Type type) {\n\n this(name, type);\n\n setStartValue(value);\n setIncrement(increment);\n }", "public Pi() {\n // the expressions on the right side of each of the following \n // assignment statements must use PI in them...\n intValue = (int) Math.floor(PI);\n longValue = (long) Math.ceil(PI);\n floatValue = (float)PI;\n doubleValue = PI;\n }", "public DecimalConstant( BigDecimal value, String format)\n {\n super( Type.NUMBER, value);\n setFormat( format);\n }", "public IntPar(int val) { value = val; }", "public NativeIntegerObjectArrayImpl()\n {\n }", "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "public UnitP\n (\n UnitP unitP, ErrorTypes errorType, ExceptionHandlingTypes exceptionHandling\n )\n {\n if (unitP == null) unitP = new UnitP();\n\n UnitPConstructor unitP2 = new UnitPConstructor\n (\n unitP.OriginalUnitString, ExceptionInstantiation.NewUnitInfo(unitP),\n UnitTypes.None, UnitSystems.None, errorType,\n (\n exceptionHandling != ExceptionHandlingTypes.NeverTriggerException ?\n exceptionHandling : unitP.Error.ExceptionHandling\n )\n );\n\n if (unitP2.ErrorType != ErrorTypes.None)\n {\n Value = 0.0;\n BaseTenExponent = 0;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix.getPrefixUsage());\n UnitParts = new ArrayList<UnitPart>();\n Unit = Units.None;\n UnitType = UnitTypes.None;\n UnitSystem = UnitSystems.None;\n OriginalUnitString = \"\";\n ValueAndUnitString = \"\";\n UnitString = \"\";\n }\n else\n {\n OriginalUnitString = unitP2.OriginalUnitString;\n Value = unitP2.Value;\n BaseTenExponent = unitP2.UnitInfo.BaseTenExponent;\n Unit = unitP2.UnitInfo.Unit;\n UnitType = unitP2.UnitType;\n UnitSystem = unitP2.UnitSystem;\n UnitPrefix = new Prefix(unitP2.UnitInfo.Prefix);\n UnitParts = unitP2.UnitInfo.Parts;\n UnitString = unitP2.UnitString;\n ValueAndUnitString = unitP2.ValueAndUnitString;\n }\n\n //If applicable, this instantiation would trigger an exception right away.\n Error = ExceptionInstantiation.NewErrorInfo\n (\n \tunitP2.ErrorType, unitP2.ExceptionHandling\n );\n }", "public CpFldMemo() { super(10010, 5); }", "public NumericObjectArrayList() {\r\n list = new Copiable[10];\r\n count = 0;\r\n }", "public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}", "private JavaType(C_PTR primitivePointerType) {\n this.primitivePointerType = primitivePointerType;\n }", "public SkipList(double p)\n {\n\tthis.p = p;\n\tthis.size = 0;\n\t// create a dummy header node (intially: height 1)\n\tthis.head = new SkipListNode<K>();\n }" ]
[ "0.7453729", "0.7065248", "0.6903182", "0.6861208", "0.6649018", "0.65391773", "0.6511762", "0.6424858", "0.6257089", "0.61892843", "0.61632925", "0.61108804", "0.60537815", "0.5994807", "0.596204", "0.5946354", "0.59305996", "0.5910185", "0.5896126", "0.58018786", "0.5756854", "0.57475525", "0.56870675", "0.5677545", "0.5672879", "0.5649606", "0.563755", "0.5634037", "0.56193215", "0.5614562", "0.55725664", "0.5570573", "0.5560988", "0.5544726", "0.5514372", "0.5510637", "0.54993135", "0.54928714", "0.5486182", "0.54802847", "0.54748255", "0.5474751", "0.5472754", "0.5439896", "0.54360116", "0.5422266", "0.5418942", "0.54140365", "0.5405149", "0.5381834", "0.5370521", "0.5366462", "0.53627336", "0.535207", "0.53515166", "0.5345225", "0.5338816", "0.5335036", "0.532941", "0.53278476", "0.5326533", "0.5321846", "0.529866", "0.52971375", "0.52966094", "0.5292768", "0.52798766", "0.52763456", "0.52746904", "0.52745664", "0.52743405", "0.5272807", "0.52708334", "0.5266877", "0.5252665", "0.5245285", "0.52391714", "0.52384585", "0.5224133", "0.52230227", "0.5216835", "0.5215382", "0.5214929", "0.52131927", "0.5207375", "0.5205294", "0.5196338", "0.51940334", "0.5190948", "0.5189133", "0.51811683", "0.5180994", "0.5170995", "0.5169754", "0.5168752", "0.51676154", "0.51672536", "0.5162189", "0.5153154", "0.5144365" ]
0.56413
26
WARNING: the purpose of this constructor in the original C code was to be exclusively used internally.
public NumberP(Object value, int baseTenExponent) { BaseTenExponent = baseTenExponent; Value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void constructor();", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public HCERTCHAINENGINE(Pointer p) {\n/* 1085 */ super(p);\n/* */ }", "public NativePrimitiveArrayStateManagerImpl()\n {\n }", "private void __sep__Constructors__() {}", "protected abstract void construct();", "private NativeSupport() {\n\t}", "public C23317d() {\n }", "public NativeIntegerObjectArrayImpl()\n {\n }", "private BufferUtil() {\n\n }", "public TLongArray() {\n\t}", "public TestBuffer() {\n }", "public HCRYPTMSG(Pointer p) {\n/* 1131 */ super(p);\n/* */ }", "public A034318() {\n this(-1, 0, 13, 0, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0);\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public mapper3c() { super(); }", "Composite() {\n\n\t}", "public NativePointerStateManagerImpl()\n {\n }", "private C3P0Helper() { }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public OriginalSparseVector () {}", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "Reproducible newInstance();", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "@Override\n public void construct() throws IOException {\n \n }", "public Swift() { }", "public Block() {\n this((byte) 0, (byte) 0);\n }", "public HCERTSTORE(Pointer p) {\n/* 1108 */ super(p);\n/* */ }", "public JavaClassAsNativeDirectConstructorCallbackEnhancer(JavaClassAsNativeDirectConstructorCallbackImpl javaClass,EnhancerSharedContext ctx)\n {\n super(javaClass,ctx); \n }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "private IndexBitmapObject() {\n\t}", "public TransformationBuff() {}", "private Composite() {\n }", "private R() {\n\n }", "public Complex(){\r\n\t this(0,0);\r\n\t}", "protected AbstractChannel.AbstractUnsafe newUnsafe() {\n/* 713 */ return new EmbeddedUnsafe();\n/* */ }", "protected SimpleMatrix() {}", "defaultConstructor(){}", "protected DenseMatrix()\n\t{\n\t}", "public Ruby() {}", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }", "protected BaseAuroraDataBuffer(long length) {\n this(length, true);\n }", "private static native long create_0();", "protected IRFunctional() {\n _name = null;\n _params = null;\n _args = null;\n _fds = null;\n _vds = null;\n _body = null;\n }", "abstract public Buffer createBuffer();", "public LiveRef(int paramInt) {\n/* 74 */ this(new ObjID(), paramInt);\n/* */ }", "public static void copyConstructor(){\n\t}", "private UniqueChromosomeReconstructor() { }", "private ArrayOps() {\r\n }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }", "private Font(long paramLong, Object paramObject) {\n/* 1031 */ this.a = paramLong;\n/* 1032 */ this.b = paramObject;\n/* */ }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public lo() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "private Base64() {\r\n }", "public Vector() {\n construct();\n }", "private Rekenhulp()\n\t{\n\t}", "public FileDicomBaseInner() {}", "public LocalObject() {}", "private CZ()\n {\n }", "protected AbstractPathElement(AbstractPathElement<V, E> original)\r\n/* */ {\r\n/* 117 */ this.nHops = original.nHops;\r\n/* 118 */ this.prevEdge = original.prevEdge;\r\n/* 119 */ this.prevPathElement = original.prevPathElement;\r\n/* 120 */ this.vertex = original.vertex;\r\n/* */ }", "public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte) {\n/* 81 */ this(paramString, paramArrayOfbyte, 0, paramArrayOfbyte.length);\n/* */ }", "public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }", "public MyStringBuilder2()\n\t{ \t\t\t // or null reference\n\t\t\tfirstC = null;\n\t\t\tlastC = null;\n\t\t\tlength = 0;\n\t\t\n\t}", "public IBuffer newBuffer();", "public LCAmsg2 () { }", "public AllDifferent()\n {\n this(0);\n }", "public GenericDynamicArray() {this(11);}", "protected Structs(final long nativeHandle) {\n super(nativeHandle, new Disposer() {\n @Override\n public void disposeNative(long handle) {\n disposeNativeHandle(handle);\n }\n });\n }", "private Bytes(final long bytes)\n\t{\n\t\tsuper(bytes);\n\n\t\tif (bytes < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"'bytes' cannot be negative: \" + bytes);\n\t\t}\n\t}", "protected native void init();", "private CLUtil()\n {\n }", "private CompressionTools() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Font(Obj paramObj) {\n/* 113 */ this.a = paramObj.__GetHandle();\n/* 114 */ this.b = paramObj.__GetRefHandle();\n/* */ }", "public mxCodec() {\n this(mxDomUtils.createDocument());\n }", "public LCMultiblockPacket() {\n\t}", "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public Vlen_t() {}", "private static native long create_0(int mode);", "public As21Id27()\n\t{\n\t\tsuper() ;\n\t}", "protected CGEFrameRenderer(int dummy) {\n\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public DynamicArray() {\n this(16);\n }", "O() { super(null); }", "public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}", "private HSBC() {\n\t\t\n\t\t\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "public Voice(int brr_buf_size)\r\n\t{\r\n\t\tbuffer = new ModuloArray(brr_buf_size);\r\n\t}", "private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }", "private native String native_init();", "private Encoder() {}", "private Node() {\n\n }" ]
[ "0.6989321", "0.6303985", "0.61849594", "0.61656296", "0.6035022", "0.60092664", "0.5998736", "0.5937615", "0.59144926", "0.59010166", "0.5885332", "0.5826916", "0.5805005", "0.57932764", "0.57038695", "0.5703446", "0.57029533", "0.5687721", "0.5683149", "0.5676656", "0.5676273", "0.5675606", "0.5669592", "0.5669409", "0.5654256", "0.5626494", "0.5621969", "0.56211936", "0.56042683", "0.5598772", "0.55982715", "0.5589946", "0.5574887", "0.5574478", "0.5555714", "0.5553409", "0.5535124", "0.55306053", "0.5527703", "0.5523998", "0.5513201", "0.55076", "0.5502942", "0.5502928", "0.54792494", "0.5475414", "0.5475047", "0.5474362", "0.5465624", "0.5462444", "0.5456027", "0.54528654", "0.54522693", "0.54487157", "0.5448241", "0.5447334", "0.5442163", "0.54409975", "0.54344696", "0.5430297", "0.54294765", "0.54287267", "0.54211086", "0.5409592", "0.54088837", "0.54070944", "0.54066616", "0.5405975", "0.540569", "0.54053134", "0.5400064", "0.5396828", "0.5394243", "0.53890747", "0.5384923", "0.5373388", "0.5368313", "0.5367859", "0.5364913", "0.53583616", "0.5352383", "0.5349989", "0.53497034", "0.53422064", "0.533332", "0.5331002", "0.5328744", "0.53276557", "0.53267986", "0.5320489", "0.5319582", "0.53139555", "0.5310949", "0.53082836", "0.53082395", "0.5307639", "0.5307407", "0.5305455", "0.53046864", "0.53034395", "0.5298424" ]
0.0
-1
WARNING: the purpose of this constructor in the original C code was to be exclusively used internally.
public NumberP(ErrorTypesNumber error) { Error = error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void constructor();", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public HCERTCHAINENGINE(Pointer p) {\n/* 1085 */ super(p);\n/* */ }", "public NativePrimitiveArrayStateManagerImpl()\n {\n }", "private void __sep__Constructors__() {}", "protected abstract void construct();", "private NativeSupport() {\n\t}", "public C23317d() {\n }", "public NativeIntegerObjectArrayImpl()\n {\n }", "private BufferUtil() {\n\n }", "public TLongArray() {\n\t}", "public TestBuffer() {\n }", "public HCRYPTMSG(Pointer p) {\n/* 1131 */ super(p);\n/* */ }", "public A034318() {\n this(-1, 0, 13, 0, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 0);\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public mapper3c() { super(); }", "Composite() {\n\n\t}", "public NativePointerStateManagerImpl()\n {\n }", "private C3P0Helper() { }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "private void translateConstructor( ) {\n \n Set<MethodInfoFlags> flags = EnumSet.noneOf( MethodInfoFlags.class );\n \n AVM2Method method = new AVM2Method( null, flags );\n avm2Class.avm2Class.constructor = method;\n \n AVM2MethodBody body = method.methodBody;\n body.maxStack = 1;\n body.maxRegisters = 1;\n body.maxScope = 11;\n body.scopeDepth = 10;\n \n InstructionList il = body.instructions;\n \n// il.append( OP_getlocal0 );\n// il.append( OP_pushscope );\n il.append( OP_getlocal0 );\n il.append( OP_constructsuper, 0 );\n \n// il.append( OP_findpropstrict, new AVM2QName( PUBLIC_NAMESPACE, \"drawTest\" ));\n il.append( OP_getlocal0 );\n \n il.append( OP_callpropvoid, new AVM2QName( EmptyPackage.namespace, \"drawTest\" ), 0 );\n\n il.append( OP_returnvoid );\n }", "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "public OriginalSparseVector () {}", "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "Reproducible newInstance();", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public Swift() { }", "@Override\n public void construct() throws IOException {\n \n }", "public Block() {\n this((byte) 0, (byte) 0);\n }", "public JavaClassAsNativeDirectConstructorCallbackEnhancer(JavaClassAsNativeDirectConstructorCallbackImpl javaClass,EnhancerSharedContext ctx)\n {\n super(javaClass,ctx); \n }", "public HCERTSTORE(Pointer p) {\n/* 1108 */ super(p);\n/* */ }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "private IndexBitmapObject() {\n\t}", "public TransformationBuff() {}", "private Composite() {\n }", "private R() {\n\n }", "public Complex(){\r\n\t this(0,0);\r\n\t}", "protected AbstractChannel.AbstractUnsafe newUnsafe() {\n/* 713 */ return new EmbeddedUnsafe();\n/* */ }", "protected SimpleMatrix() {}", "defaultConstructor(){}", "protected DenseMatrix()\n\t{\n\t}", "public Ruby() {}", "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "protected BaseAuroraDataBuffer(long length) {\n this(length, true);\n }", "public Token(I2PAppContext ctx, byte[] data) {\n super(data);\n // lets not get carried away\n if (data.length > MAX_TOK_LEN)\n throw new IllegalArgumentException();\n lastSeen = ctx.clock().now();\n }", "private static native long create_0();", "protected IRFunctional() {\n _name = null;\n _params = null;\n _args = null;\n _fds = null;\n _vds = null;\n _body = null;\n }", "abstract public Buffer createBuffer();", "public static void copyConstructor(){\n\t}", "public LiveRef(int paramInt) {\n/* 74 */ this(new ObjID(), paramInt);\n/* */ }", "private UniqueChromosomeReconstructor() { }", "private ArrayOps() {\r\n }", "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }", "private Font(long paramLong, Object paramObject) {\n/* 1031 */ this.a = paramLong;\n/* 1032 */ this.b = paramObject;\n/* */ }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }", "public lo() {}", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "private Base64() {\r\n }", "public Vector() {\n construct();\n }", "private Rekenhulp()\n\t{\n\t}", "public FileDicomBaseInner() {}", "public LocalObject() {}", "private CZ()\n {\n }", "protected AbstractPathElement(AbstractPathElement<V, E> original)\r\n/* */ {\r\n/* 117 */ this.nHops = original.nHops;\r\n/* 118 */ this.prevEdge = original.prevEdge;\r\n/* 119 */ this.prevPathElement = original.prevPathElement;\r\n/* 120 */ this.vertex = original.vertex;\r\n/* */ }", "public BinaryRefAddr(String paramString, byte[] paramArrayOfbyte) {\n/* 81 */ this(paramString, paramArrayOfbyte, 0, paramArrayOfbyte.length);\n/* */ }", "public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }", "public MyStringBuilder2()\n\t{ \t\t\t // or null reference\n\t\t\tfirstC = null;\n\t\t\tlastC = null;\n\t\t\tlength = 0;\n\t\t\n\t}", "public IBuffer newBuffer();", "public LCAmsg2 () { }", "public AllDifferent()\n {\n this(0);\n }", "public GenericDynamicArray() {this(11);}", "private Bytes(final long bytes)\n\t{\n\t\tsuper(bytes);\n\n\t\tif (bytes < 0)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"'bytes' cannot be negative: \" + bytes);\n\t\t}\n\t}", "protected Structs(final long nativeHandle) {\n super(nativeHandle, new Disposer() {\n @Override\n public void disposeNative(long handle) {\n disposeNativeHandle(handle);\n }\n });\n }", "protected native void init();", "private CLUtil()\n {\n }", "private CompressionTools() {}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Font(Obj paramObj) {\n/* 113 */ this.a = paramObj.__GetHandle();\n/* 114 */ this.b = paramObj.__GetRefHandle();\n/* */ }", "public mxCodec() {\n this(mxDomUtils.createDocument());\n }", "public LCMultiblockPacket() {\n\t}", "public AVRMemory()\n {\n super(32, 256, 4096, 65535);\n }", "public Vlen_t() {}", "private static native long create_0(int mode);", "public As21Id27()\n\t{\n\t\tsuper() ;\n\t}", "protected CGEFrameRenderer(int dummy) {\n\n }", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public DynamicArray() {\n this(16);\n }", "O() { super(null); }", "private HSBC() {\n\t\t\n\t\t\n\t}", "public Complex(String[] cStr){\r\n\t this(cStr[0], cStr[1]);\r\n\t}", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "public Voice(int brr_buf_size)\r\n\t{\r\n\t\tbuffer = new ModuloArray(brr_buf_size);\r\n\t}", "private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }", "private native String native_init();", "private Encoder() {}", "private Node() {\n\n }" ]
[ "0.69887334", "0.6304185", "0.6185401", "0.6165055", "0.60342175", "0.6009794", "0.5999196", "0.5937248", "0.59142375", "0.5900093", "0.5885019", "0.5826904", "0.5804842", "0.5792264", "0.57040626", "0.5703877", "0.57035667", "0.5688435", "0.5684288", "0.567816", "0.5676375", "0.56759924", "0.56708443", "0.5669097", "0.565427", "0.56262183", "0.5622258", "0.5621669", "0.56040496", "0.5599736", "0.55993426", "0.5591498", "0.557394", "0.5573513", "0.5556681", "0.555357", "0.55345434", "0.55323565", "0.552905", "0.5524893", "0.5513419", "0.5507378", "0.5503563", "0.55030006", "0.5480939", "0.54755497", "0.5474161", "0.5473912", "0.54646516", "0.54629654", "0.5455037", "0.5452631", "0.5452195", "0.54487205", "0.54479605", "0.54464597", "0.5442148", "0.5441207", "0.5435268", "0.5431", "0.54309005", "0.54290944", "0.54211336", "0.54098815", "0.54097843", "0.5407892", "0.5407229", "0.54071337", "0.5406178", "0.540394", "0.53998077", "0.5397353", "0.53930056", "0.5389033", "0.5385217", "0.53727764", "0.5367808", "0.5367786", "0.5363803", "0.5358514", "0.5352021", "0.53497595", "0.5348845", "0.5341936", "0.53344816", "0.533081", "0.53273153", "0.5326925", "0.5326426", "0.5320423", "0.5318895", "0.53134227", "0.53108996", "0.5308625", "0.53085536", "0.5308164", "0.5307489", "0.53050786", "0.5303528", "0.5303246", "0.52996993" ]
0.0
-1
Static methods of NumberP emulating all the operator overloads of the original C code. Adds two NumberP variables.
public static NumberP Addition(NumberP first, NumberP second) { return OperationsManaged.PerformArithmeticOperation ( first, second, ExistingOperations.Addition ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BaseNumber add(BaseNumber operand);", "void add(double p1, double p2){\n this.p1 += p1;\n this.p2 += p2;\n }", "private native int nativeAdd(int x, int y);", "public static NumberP Multiplication(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Multiplication\n ); \t\n }", "private void addTwoNumbers() {\n\t\t\n\t}", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}", "public int operation(int number1,int number2,String operator)", "void typePromition(int a, long b){\n\t\tSystem.out.println(\"Method-5 (TypePromotion) Result is: \" + (a+b));\n\t}", "@Override\r\n\tpublic int multiNums(int n1, int n2) {\n\t\treturn 0;\r\n\t}", "public native int add(int a,int b);", "public double adicao (double numero1, double numero2){\n\t}", "public static Seq plus(Constant c1, Constant c2) {\n return new Constant((c1.num < c2.num)?c1.num:c2.num, (c1.value + c2.value)); \n }", "BaseNumber multiply(BaseNumber operand);", "Double add(Double a, Double b);", "static int plus(int a, int b, int c) {\n return a + b + c;\n }", "public int addTwoNumbers(int a, int b) {\n return a + b;\n }", "@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}", "public int addNum(int a, int b){\n return a+b;\n }", "@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}", "int luasPP(int a, int b){\r\n return a*b;\r\n }", "@Override\n public void addNumbers() {\n calculator.add(2, 2);\n }", "abstract int multiplication(int num1, int num2);", "public double add(int a, int b){\r\n return a + b;\r\n }", "public int get_num_p(){ return num_p; }", "@Override\n public Float plus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs + rhs;\n\treturn res;\t\n }", "@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}", "Multiply createMultiply();", "@Override\r\n\tprotected Integer add(Integer x1, Integer x2) {\n\t\treturn x2+x1;\r\n\t}", "static void AddThemUP() { //defining a method to add 2 numbers\n int a = 4;\n int b = 5;\n\n System.out.println(\"The numbers add up to \" + (a + b));\n }", "public double add(double firstNumber, double secondNUmber){\n\t\treturn firstNumber + secondNUmber;\n\t}", "public static void main(String[] args) {\n int num1 = 5;\r\n int num2 = 10;\r\n NumOperation opr1 = new NumOperation();\r\n NumOperation opr2 = new NumOperation2();\r\n System.out.println(\"Addition of 5 and 10 is : \" + opr1.numCalc(num1, num2));\r\n System.out.println(\"Multiplication of 5 and 10 is : \" + opr2.numCalc(num1, num2));\t\r\n\t\t\r\n\t}", "public static int plus(int value1, int value2){\r\n return value1 + value2;\r\n }", "public static Digit plus(Digit first, Digit second){\n return Operations.plus(first.copy(), second.copy());\n }", "int method01(int a, int b) {\n\n\t\ta = a + b;\n\t\treturn a;\n\t}", "public interface CalcPrimitive<T extends Number> {\n\t/**\n\t * Basic arithmetic operation which adds two numbers\n\t * \n\t * @param first\n\t * the addition operand\n\t * @param second\n\t * the addition operand\n\t * @return first + second\n\t */\n\tpublic T sum(T first, T second);\n\n\t/**\n\t * Basic arithmetic operation which subtracts two numbers\n\t * \n\t * @param first\n\t * the subtraction operand\n\t * @param second\n\t * the subtraction operand\n\t * @return first - second\n\t */\n\tpublic T sub(T first, T second);\n\n\t/**\n\t * Basic arithmetic operation which multiplies two numbers\n\t * \n\t * @param first\n\t * the multiplication operand\n\t * @param second\n\t * the multiplication operand\n\t * @return first * second\n\t */\n\tpublic T mul(T first, T second);\n\n\t/**\n\t * Basic arithmetic operation which divides two numbers\n\t * \n\t * @param first\n\t * the division operand\n\t * @param second\n\t * the division operand\n\t * @return first / second\n\t */\n\tpublic T div(T first, T second);\n\n\t/**\n\t * Basic operation which calculates the cosine of the value\n\t * \n\t * @param value\n\t * the operand of the cosine function in radians\n\t * @return the cosine of the value\n\t */\n\tpublic T cos(T value);\n\n\t/**\n\t * Basic operation which calculates the (value)^e\n\t * \n\t * @param value\n\t * the operand of the calculation\n\t * @return (value)^e\n\t */\n\tpublic T exp(T value);\n\n\t/**\n\t * Basic operation which calculates the square root of a value.\n\t * \n\t * @param value\n\t * the operand of the square root function\n\t * @return the square root of value\n\t */\n\tpublic T sqrt(T value);\n\n\t/**\n\t * Convert a String to a T value\n\t * \n\t * @param str\n\t * a String for converting\n\t * @return the value of the specified String as a T\n\t * @throws NumberFormatException\n\t * when str is incorrect\n\t */\n\tpublic T getFromString(String str) throws NumberFormatException;\n\n\t/**\n\t * Check a String on a possibility of converting\n\t * \n\t * @param str\n\t * a String for check\n\t * @return true for correct str and false for incorrect\n\t */\n\tpublic boolean isCorrect(String str);\n\n\t/**\n\t * Convert a T value to a String\n\t * \n\t * @param value\n\t * a T object to converting\n\t * @return the value of the specified number as a String\n\t */\n\tpublic String getString(T value);\n}", "public int add(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public NumberP(ErrorTypesNumber error) { Error = error; }", "public static void main(String[] args) {\n NumberFact a, b;\n a = new NumberFact(1_000);\n b = new NumberFact(999);\n\n ArithmeticOperator x, y;\n x = new ArithmeticOperator('*', a, b);\n y = new ArithmeticOperator('+', x, b);\n\n System.out.println(y);\n System.out.println(y.eval());\n }", "public static RationalNumber add(RationalNumber r1, RationalNumber r2)\n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t//sum of the numerator storage:\n\t\tint sumOfNum = 0;\n\t\t\n\t\t//Extracting the numerator from the instances.\n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\t//finding the greatest common denominator:\n\t\tint lowestCommon = lowestCommonFactor(r1.getDenominator(), r2.getDenominator());\n\t\t\n\t\t//Adding the numerator:\n\t\tnum1 *= (lowestCommon / r1.getDenominator());\n\t\tnum2 *= (lowestCommon / r2.getDenominator());\n\t\tsumOfNum = num1 + num2;\t//NUMERATOR SUM ALONE!\n\t\t//converting from an integer into a fraction\n\t\tRationalNumber ans = new RationalNumberImpl_Luong(sumOfNum,lowestCommon);\n\t\treturn ans;\n\t}", "public static String add(String num1, String num2) {\n\t\t// *** WRITE YOUR CODE HERE ***\n\t}", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "public MType visit(PlusExpression n, MType argu) {\n \tMType _ret = new MInteger();\n \tn.f0.accept(this, argu);\n \tn.f2.accept(this, argu);\n \treturn _ret;\n }", "public static int method_234(int var0, int var1, int var2) {\n return (var0 << 16) + (var1 << 8) + var2;\n }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\n int X = 20;\n X +=10;\n System.out.println(X);\n X +=60;\n System.out.println(X);\n\n String schoolname = \"CyberTek\";\n schoolname += 12345;\n System.out.println(schoolname);\n\n char ch1 = 'a'; //result will not be numbers\n ch1 += 'b';\n System.out.println(ch1);\n\n\n int num = 'z';\n num +='x';\n System.out.println(num);\n\n System.out.println(\"=============================================\");\n////////////////////////////////////////////////////////////////////////////////\n //multi warm up for shorthand Operators\nint a = 2;\na *=3;\n System.out.println(a);\n\n int b = a *= 10;\n // b = a = a * 10 = 60\n System.out.println(a);\n System.out.println(b);\n\n\n int a1 = 100;\n int b1 = ( a1*= 2) + ++a1;\n // b1 = 200 + 201\n System.out.println(b1);\n\n\n int x1 = 10;\n int y1 = x1 += 10*2;\n System.out.println(y1);\n\n\n int q = 20;\n int p = q *= 20*3;\n System.out.println(p);\n System.out.println(\"==========================================================\");\n//////////////////////////////////////////////////////////////////////////////\n\n// warmup: subtraction - shorthand operators:\n\n int num1 = 300;\n num1 /=2;\n System.out.println(num1);\n\n int num2 = 400;\n num2 /= 20 +10;\n System.out.println(num2);\n ///////////////////////////////////////////////////////////////////////\n\n//remainder for shorthand operators\n\n int num3 = 300;\n num3 %= 10 + 20;\n System.out.println(num3);\n \n\n\n\n }", "@Override\r\n\tpublic double add() {\r\n\t\tdouble outcome = firstVariable + secondVariable;\r\n\t\treturn outcome;\r\n\t\r\n\t}", "public int m3(int a,int b){\r\n\t\tint c=a+b;\r\n\t\treturn c;\r\n\t}", "NumberValue createNumberValue();", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\tListNode dummyHead = new ListNode(0);\n\t\tListNode p = l1, q = l2, curr = dummyHead;\n\t\tint carry = 0;\n\t\twhile (p != null || q != null) {\n\t\t\tint x = (p != null) ? p.val : 0;\n\t\t\tint y = (q != null) ? q.val : 0;\n\t\t\tint sum = carry + x + y;\n\t\t\tcarry = sum / 10;\n\t\t\tcurr.next = new ListNode(sum % 10);\n\t\t\tcurr = curr.next;\n\t\t\tif (p != null)\n\t\t\t\tp = p.next;\n\t\t\tif (q != null)\n\t\t\t\tq = q.next;\n\t\t}\n\t\tif (carry > 0) {\n\t\t\tcurr.next = new ListNode(carry);\n\t\t}\n\t\treturn dummyHead.next;\n\t}", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}", "private native double SumaC(double operador_1, double operador_2);", "@Override\n\tpublic double add(double a, double b) {\n\t\treturn (a+b);\n\t}", "@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}", "SEIntegerVariable getOperand2();", "public Parameter multiplyParameter(Parameter otherPram);", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public int addition(int a, int b){\n return a + b;\n }", "Plus createPlus();", "Plus createPlus();", "Plus createPlus();", "public static int addThreeNumbers (int a, int b, int c){ // method header\n\t\tint result = a + b + c; // add actual parameters\n\t\treturn result; // return in to main method\n\t}", "public Addition(int precedence){\n super(\"+\", precedence);\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tMath.plus(5, 10);\r\n\t\tMath.plus(2.2, 3.4);\r\n\t\t\r\n\t\t/*\r\n\t\tMath myMath = new Math();\r\n\t\t\r\n\t\tint sum01 = myMath.plus(3,4);\r\n\t\tSystem.out.println(sum01);\r\n\t\t\r\n\t\tdouble sum02 =myMath.plus(2.3,3.2);\r\n\t\tSystem.out.println(sum02);\r\n\t\t*/\r\n\t}", "@Test\r\n\tpublic void testPlus() {\r\n\t\tString ans;\r\n\t\tString expected = \"115590435626074\";\r\n\t\tNumberStrings tester = new NumberStrings();\r\n\t\tString number1 = \"115555222112553\";\r\n\t\tString number2 = \"35213513521\";\r\n\t\tans = tester.plus(number1, number2);\r\n\t\tAssert.assertEquals(expected, ans);\r\n\t}", "@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tbyte by = 12;\n\t\tbyte by1 = ++by;\n\t\tSystem.out.println(\"Value of First Byte Variable is : \" + by);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Byte Variable Stored into Second is : \" + by1);\n\t\t\n\t\t//Pre-Increment Operator on Short\n\t\tshort s = 4569;\n\t\tshort s1 = ++s;\n\t\tSystem.out.println(\"Value of First Short Variable is : \" + s);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Short Variable Stored into Second is : \" + s1);\n\t\t\n\t\t//Pre-Increment Operator on Int\n\t\tint i = 456789;\n\t\tint i1 = ++i;\n\t\tSystem.out.println(\"Value of First Int Variable is : \" + i);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Int Variable Stored into Second is : \" + i1);\n\t\t\n\t\t//Pre-Increment Operator on Long\n\t\tlong l = 89053486125l;\n\t\tlong l1 = ++l;\n\t\tSystem.out.println(\"Value of First Long Variable is : \" + l);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Long Variable Stored into Second is : \" + l1);\n\t\t\n\t\t//Pre-Increment Operator on Float\n\t\tfloat f = 67.456f;\n\t\tfloat f1 = ++f;\n\t\tSystem.out.println(\"Value of First Float Variable is : \" + f);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Float Variable Stored into Second is : \" + f1);\n\t\t\t\t\n\t\t//Pre-Increment Operator on Double\n\t\tdouble d = 29056.389;\n\t\tdouble d1 = ++d;\n\t\tSystem.out.println(\"Value of First Double Variable is : \" + d);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Double Variable Stored into Second is : \" + d1);\n\t\t\n\t\t//Pre-Increment Operator on Character\n\t\tchar c = 'U';\n\t\tchar c1 = ++c;\n\t\tSystem.out.println(\"Value of First Character Variable is : \" + c);\n\t\tSystem.out.println(\"Value of Pre-Incremented First Character Variable Stored into Second is : \" + c1);\n\t\t\n\t\t//Special Question on Pre-Increment Operator\n\t\tint a = 5;\n\t\ta = ++a;\n\t\tSystem.out.println(\"Value of a is : \" + a);\n\t\t\n\t\t/* Post-Increment Operator (n++) */\n\t\t/* First the value of the variable on which the post-increment operator is used, is assigned to the variable placed on the left side of the assignment operator, then the value of the variable on which the post-increment operator used is incremented by 1 */\n\t\t//Post-Increment Operator on Byte\n\t\tbyte by2 = 23;\n\t\tbyte by3 = by2++;\n\t\tSystem.out.println(\"Value of First Byte Variable is : \" + by2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Byte Variable Stored into Second is : \" + by3);\n\t\t\n\t\t//Post-Increment Operator on Short\n\t\tshort s2 = 2895;\n\t\tshort s3 = s2++;\n\t\tSystem.out.println(\"Value of First Short Variable is : \" + s2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Short Variable Stored into Second is : \" + s3);\n\t\t\n\t\t//Post-Increment Operator on Int\n\t\tint i2 = 109563;\n\t\tint i3 = i2++;\n\t\tSystem.out.println(\"Value of First Int Variable is : \" + i2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Int Variable Stored into Second is : \" + i3);\n\t\t\n\t\t//Post-Increment Operator on Long\n\t\tlong l2 = 4512907634l;\n\t\tlong l3 = l2++;\n\t\tSystem.out.println(\"Value of First Long Variable is : \" + l2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Long Variable Stored into Second is : \" + l3);\n\t\t\n\t\t//Post-Increment Operator on Float\n\t\tfloat f2 = 38.198f;\n\t\tfloat f3 = f2++;\n\t\tSystem.out.println(\"Value of First Float Variable is : \" + f2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Float Variable Stored into Second is : \" + f3);\n\t\t\t\t\n\t\t//Post-Increment Operator on Double\n\t\tdouble d2 = 19067.209;\n\t\tdouble d3 = d2++;\n\t\tSystem.out.println(\"Value of First Double Variable is : \" + d2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Double Variable Stored into Second is : \" + d3);\n\t\t\n\t\t//Post-Increment Operator on Character\n\t\tchar c2 = 'Z';\n\t\tchar c3 = c2++;\n\t\tSystem.out.println(\"Value of First Character Variable is : \" + c2);\n\t\tSystem.out.println(\"Value of Post-Incremented First Character Variable Stored into Second is : \" + c3);\n\t\t\n\t\t//Special Question on Post-Increment Operator\n\t\tint b = 8;\n\t\tb = b++;\n\t\tSystem.out.println(\"Value of b is : \" + b);\n\t\t//The above operation is equivalent to the following series of operations\n\t\tint newC = 10;\n\t\tint temp;\n\t\ttemp = newC;\n\t\tnewC++;\n\t\tSystem.out.println(\"Value of newC : \" + newC);\n\t\tSystem.out.println(\"Value of temp : \" + temp);\n\t}", "static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}", "public static NodeValue unaryPlus(NodeValue nv) {\n NumericType opType = classifyNumeric(\"unaryPlus\", nv) ;\n return nv ;\n }", "public static UnitP Addition(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Addition,\n OperationsOther.GetOperationString(first, second, Operations.Addition)\n );\n }", "public void add(int v, int p){\n \n \n \n }", "@Override\n\t\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\t\treturn v1+v2;\n\t\t\t\t\t}", "public static void add(int a,int b){ }", "public double Multiplicar(double operador_1, double operador_2){\n return MultiplicacionC(operador_1, operador_2);\n }", "public Complex Plus (Complex z) {\nreturn new Complex(u+z.u,v+z.v);\n\n}", "@Override\r\n\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\treturn v1+v2;\r\n\t\t\t\t}", "@Override\npublic void mul(int a, int b) {\n\t\n}", "public static BinaryExpression add(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tOverloadingAdditionEx ad=new OverloadingAdditionEx();\n\t\tad.add(10, 20);\n\t\tad.add(10,20, 30);\n\t\tad.add(20.5f, 10.7f);\n\t\tad.add(10, 20.6f);\n\n\t}", "public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );", "public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}", "abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;", "public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\t \n\t\t ListNode result = null;\n\t\t \n\t\t ListNode temp = null;\n\t\t \n\t\t int sum = 0;\n\t\t \n\t\t int carryOver = 0;\n\t\t \n\t\t while(l1 != null || l2 != null)\n\t\t {\n\t\t\t int l1Num = 0;\n\t\t\t int l2Num = 0;\n\t\t\t \n\t\t\t if(l1 != null)\n\t\t\t {\n\t\t\t\t l1Num = l1.val;\n\t\t\t\t l1 = l1.next;\n\t\t\t }\n\t\t\t \n\t\t\t if(l2 != null)\n\t\t\t {\n\t\t\t\t l2Num = l2.val;\n\t\t\t\t l2 = l2.next;\n\t\t\t }\n\t\t\t \n\t\t\t sum = carryOver + l1Num + l2Num;\n\t\t\t \n\t\t\t carryOver = sum / 10;\n\t\t\t \n\t\t\t ListNode node = new ListNode(sum % 10);\n\t\t\t \n\t\t\t if(result == null)\n\t\t\t {\n\t\t\t\t result = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t temp.next = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t \n\t\t if(carryOver > 0)\n\t\t {\n\t\t\t ListNode carryNode = new ListNode(carryOver);\n\t\t\t temp.next = carryNode;\n\t\t }\n\t\t // Find out the sum , have a carry over in case \n\t\t \n\t\t // create output links \n\t\t return result;\n\t }", "private static native double mul(int n);", "public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "@Override\r\n\tpublic int plus(int left, int right) {\n\t\treturn left + right; \r\n\t\t//return 0;\r\n\t}", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "static long add(long a, long b){\n\t\treturn a+b;\n\t}", "public static int twoNumbers(int a, int b) {\n if ( a == b) {\n return ((a+2)+(b+2));\n }\n else {\n return ((a+1)+(b+1));\n }\n\n }", "public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config);\n\t\t\tError = numberP.Error;\n\t\t}\n\t}", "@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }", "public AncientEgyptianMultiplication( ) {\r\n }", "private Point methodTwo(BigInteger xp, BigInteger xq, BigInteger yp,\n\t\t\tBigInteger yq) {\n\t\tPoint res = new Point();\n\t\tBigInteger s = (THREE.multiply(xp.multiply(xp)).add(a)).mod(zp)\n\t\t\t\t.multiply(yp.add(yp).modInverse(zp)).mod(zp);\n\t\tres.setX(s.multiply(s).subtract(xp).subtract(xq).mod(zp));\n\t\tres.setY(s.multiply(xp.subtract(res.getX())).subtract(yp).mod(zp));\n\t\treturn res;\n\t}", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n Stack<Integer> stack1 = new Stack<>(), stack2 = new Stack<>();\n if(l1 == null) return l2;\n if(l2 == null) return l1;\n int carry = 0;\n ListNode tmp1 = l1, tmp2 = l2;\n while(tmp1 != null){\n \tstack1.push(tmp1.val);\n \ttmp1 = tmp1.next;\n } \n while(tmp2 != null){\n \tstack2.push(tmp2.val);\n \ttmp2 = tmp2.next;\n }\n int val1 = 0, val2 = 0, sum = 0;\n while(!stack1.isEmpty() || !stack2.isEmpty()){\n \tif(!stack1.isEmpty()){\n \t\tval1 = stack1.pop();\n \t}else{\n \t\tval1 = 0;\n \t}\n \tif(!stack2.isEmpty()){\n \t\tval2 = stack2.pop();\n \t}else{\n \t\tval2 = 0;\n \t}\n \tsum = val1 + val2 + carry;\n \tcarry = sum / 10;\n \ttmp1 = new ListNode(sum % 10);\n \ttmp1.next = tmp2;\n \ttmp2 = tmp1;\n }\n if(carry != 0){\n tmp1 = new ListNode(carry);\n tmp1.next = tmp2;\n tmp2 = tmp1;\n }\n return tmp1;\n }", "public double add(double num1, double num2) {\n return num1 + num2;\n }", "public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n return addTwoNumbersHelper(l1, l2, 0);\n }", "public StringNum slowMultiply(StringNum n1, StringNum n2) {\n\t\tStringNum product;\n\t\ttry {\n\t\t\tif(n1.getNumber().length() > n2.getNumber().length()) {\n\t\t\t\tproduct = new StringNum(0);\n\t\t\t\tfor(int i = 0; new StringNum().isLessThan(new StringNum(i), n2); i++) {\n\t\t\t\t\tproduct = product.add(product, n1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tproduct = new StringNum(0);\n\t\t\t\tfor(int i = 0; new StringNum().isLessThan(new StringNum(i), n1); i++) {\n\t\t\t\t\tproduct = product.add(product, n2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn new StringNum();\n\t\t}\n\t\treturn product;\n\t}", "public Calculation (double firstVariable, double secondVariable){\r\n\t\tsetFirstVariable(firstVariable);\r\n\t\tsetSecondVariable(secondVariable);\r\n\t}" ]
[ "0.57770944", "0.5756344", "0.5622916", "0.5573401", "0.55557716", "0.5423466", "0.5423271", "0.53988206", "0.53556436", "0.5348043", "0.53267515", "0.5314419", "0.5281863", "0.5281208", "0.5279456", "0.52551425", "0.52423924", "0.52255285", "0.521207", "0.52117413", "0.51949614", "0.5189299", "0.516554", "0.5164565", "0.51572365", "0.515706", "0.5145793", "0.5138597", "0.5136381", "0.5123205", "0.5115789", "0.5112026", "0.5109129", "0.5108218", "0.5102664", "0.50950813", "0.509043", "0.50730073", "0.50553876", "0.5053302", "0.5049984", "0.5042144", "0.50265044", "0.50237435", "0.5011033", "0.5010661", "0.5005248", "0.5001201", "0.5001065", "0.49857736", "0.49832153", "0.49749947", "0.49709895", "0.4962992", "0.4956751", "0.49559495", "0.49510583", "0.49457073", "0.49439722", "0.49439722", "0.49439722", "0.49407217", "0.49261683", "0.49231362", "0.49225888", "0.4920888", "0.49206963", "0.49192584", "0.49140233", "0.48990923", "0.48788372", "0.48718056", "0.4868398", "0.48645064", "0.48617354", "0.48583806", "0.48555455", "0.48485547", "0.4843703", "0.48403198", "0.48346996", "0.48337257", "0.4831485", "0.48248494", "0.48246458", "0.48231024", "0.48224267", "0.48175845", "0.48172495", "0.48158398", "0.47936445", "0.47920987", "0.4790563", "0.47861537", "0.47858888", "0.47837043", "0.47819576", "0.47800463", "0.47795284", "0.47788072" ]
0.6092581
0
Subtracts two NumberO variables.
public static NumberP Subtraction(NumberP first, NumberP second) { return OperationsManaged.PerformArithmeticOperation ( first, second, ExistingOperations.Subtraction ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BaseNumber subtract(BaseNumber operand);", "@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}", "public double subtract(double firstNumber, double secondNUmber){\n\t\treturn firstNumber - secondNUmber;\n\t}", "public int subtract(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "@Override\r\n\tprotected double operate(double d1, double d2) {\n\t\tSystem.out.println(\"减法求值\");\r\n\t\treturn d1-d2;\r\n\t}", "@Override\n\tpublic double substract(double a, double b) {\n\t\treturn (a-b);\n\t}", "void minus(int a, int b){\n\t\tSystem.out.println(\"Method-3 (2 different Data Types) Minus is: \" + (a-b));\n\t}", "default int subtract(int num1, int num2) {\n\t\treturn num1-num2;\n\t}", "public static Object subtract(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract((BigDecimal) val2);\n\t\t} else if (isFloat(val1) && isInt(val2)) {\n\t\t\treturn ((BigDecimal) val1).subtract(new BigDecimal(\n\t\t\t\t\t(BigInteger) val2));\n\t\t} else if (isInt(val1) && isFloat(val2)) {\n\t\t\treturn new BigDecimal((BigInteger) val1)\n\t\t\t\t\t.subtract((BigDecimal) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).subtract((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in subtract\");\n\t}", "@Override\n public Float minus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs - rhs;\n\treturn res;\n }", "public static Digit minus(Digit first, Digit second){\n return Operations.minus(first.copy(), second.copy());\n }", "public static String subtract(String num1, String num2) {\n\t\t// *** WRITE YOUR CODE HERE ***\n\t}", "public void subtract() {\n\t\t\n\t}", "public void testMinus() {\n \tMeasurement a = new Measurement(2,6);\n \tMeasurement b = new Measurement(1,5);\n \tMeasurement c = a.minus(b);\n \t\n assertTrue(a.getFeet() == 2);\n assertTrue(a.getInches() == 6);\n assertTrue(b.getFeet() == 1);\n assertTrue(b.getInches() == 5);\n \n assertTrue(c.getFeet() == 1);\n assertTrue(c.getInches() == 1);\n }", "public static int subtractionOfTwoNumbers(int no1, int no2) {\n\t\t\n\t\tint result = no1 - no2;\n\t\tSystem.out.println(\"Subtraction of two numbers: \" + result);\n\t\t\n\t\treturn result;\n\t\t\t\t\n\t}", "public int subtraction(int a, int b){\n return a - b;\n }", "int subtraction(int a, int b) {\n return a-b;\r\n }", "public Inatnum subtract(Inatnum a){//purpose: to subtract 2 values\n\t\ttry {return(this.pred().subtract(a).pred());}//take the previous value of this and the previous value of a until one of them hits zero and then return the other value\n\t\tcatch(Exception e) {System.out.println(\"Error add: \"+ e.getMessage());// otherwise return an error, this needs to be greater than or equal to a otherise we'd get a negative\n\t\t\t\t \t\t\t\t\t\t\t// and there are no negative natural numbers\n\t\treturn null;}\n\t\t\t}", "public T minus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n T ret = A.createLike();\n\n A.ops.minus(A.mat, B.mat, ret.mat);\n return ret;\n }", "public static int minus(int value1, int value2){\r\n return value1 - value2;\r\n }", "public void subtractNumbers (View view) {\n errorTrap();\n double difference = Double.parseDouble(num1.getText().toString()) + Double.parseDouble(num1.getText().toString());\n result.setText(\"DIFFERENCE: \"+difference);\n }", "public final void minus (Unit unit) throws ArithmeticException {\n\t\tboolean error = false;\n\t\tif (((mksa|unit.mksa)&_abs)!=0) {\t// Special dates\n\t\t\tif (mksa == unit.mksa)\t\t// date1 - date2\n\t\t\t\tmksa ^= _abs;\t\t\t// ... not a date any more\n\t\t\telse if ((unit.mksa&_abs)!=0) error = true;\n\t\t}\n\t\telse error = (mksa&(~_pic)) != (unit.mksa&(~_pic));\n\t\tif (error) throw new ArithmeticException\n\t\t(\"****Unit: can't combine: \" + symbol + \" - \" + unit.symbol);\n\t\tvalue -= (unit.value*unit.factor)/factor;\n\t}", "@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}", "public static int subtractTwoNumbers(int num1, int num2){\n int subtraction = num1 - num2;\n return subtraction;\n }", "public static double sub(double a, double b){\r\n\t\treturn a-b;\r\n\t}", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 - num2;\n\t\t}", "@Override\r\n\tpublic Expression differentiate(String var) {\n\t\tSystem.out.println(\"计算减法微分\");\r\n\t\t//f(x)=g(x)-h(x)的导数为:g'(x)-h'(x)\r\n\t\treturn new SubExpression(left.differentiate(var), right.differentiate(var));\r\n\t}", "public static double subtract(int left, int right){\n return left - right;\n }", "public static double Sub(double x, double y) \n\t{\n\t\treturn x - y;\n\t}", "public static BinaryExpression subtract(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Subtract, expression0, expression1);\n }", "public void substract(int sub) {\r\n value -= sub;\r\n }", "public void subtract(Vector rhs) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] -= rhs.components[i];\r\n }\r\n }", "public static UnitP Subtraction(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Subtraction,\n OperationsOther.GetOperationString(first, second, Operations.Subtraction)\n );\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}", "public void\n\tsub( Vector3 other )\n\t{\n\t\tdata[0] -= other.data[0];\n\t\tdata[1] -= other.data[1];\n\t\tdata[2] -= other.data[2];\n\t}", "private void subtraction()\n\t{\n\t\tFun = Function.SUBTRACT; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }", "@Override\n public InterpreterValue sub(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the subtraction-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() - ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the subtraction-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() - ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '-' is not defined for type double and \" + v.getName());\n\n }", "@Override\r\n\tpublic int sub(int a,int b) {\n\t\treturn a-b;\r\n\t}", "public static ArthurString minus(ArthurString one, ArthurNumber two) {\n String t = \"\" + two.val;\n return minus(one, new ArthurString(t));\n }", "public Coordinate subtract(Coordinate other) {\n return new Coordinate(usubtract(_coord, other._coord));\n }", "public static BIGNUM subtract(BIGNUM bn1, BIGNUM bn2) {\n\t\tBIGNUM newbn = new BIGNUM(-bn2.NUM, bn2.E);\n\t\treturn add(bn1, newbn);\n\t}", "public BigInt minus(BigInt rhs) throws BigIntException {\n if (null == rhs) {\n throw new BigIntException(\"null parameter\");\n }\n\n if (!isPositive && rhs.isPositive) {\n // -x-y=-(x+y)\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n BigInt result = num1.plus(num2);\n result.swapSign();\n\n return result;\n } else if (!isPositive && !rhs.isPositive) {\n // -x-(-y)=y-x\n BigInt num1 = new BigInt(number, true);\n BigInt num2 = new BigInt(rhs.number, true);\n\n return num2.minus(num1);\n } else if (isPositive && !rhs.isPositive) {\n // x-(-y)=x+y\n return plus(new BigInt(rhs.number, true));\n }\n\n // x-y\n int length = Math.max(number.size(), rhs.number.size());\n\n // Set the bigger and the smaller number\n ArrayList<Integer> bigger, smaller;\n boolean isDiffPositive = isGreater(rhs);\n if (isDiffPositive) {\n // this is greater\n bigger = new ArrayList<Integer>(number);\n smaller = new ArrayList<Integer>(rhs.number);\n } else {\n // rhs is greater\n bigger = new ArrayList<Integer>(rhs.number);\n smaller = new ArrayList<Integer>(number);\n }\n\n ArrayList<Integer> diff = new ArrayList<Integer>();\n int digit_diff = 0;\n for (int i = 0; i < length; ++i) {\n int subtracting_current_digit = getDigit(bigger, i);\n int subtracted_current_digit = getDigit(smaller, i);\n\n digit_diff = subtracting_current_digit - subtracted_current_digit;\n if (0 > digit_diff) {\n // The subtracted is bigger so we need to borrow\n borrow(bigger, i);\n digit_diff += 10;\n }\n\n diff.add(digit_diff);\n }\n\n return new BigInt(diff, isDiffPositive);\n }", "static int subs(int firstnumber, int secondnumber) {\n return (firstnumber - secondnumber);\n\n }", "public void decrement(Object decValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, decValue) {\r\n\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() - getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() - getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "public static double Subtract(double _a,double _b){\n\t\tBigDecimal a=new BigDecimal(Double.toString(_a));\n\t\tBigDecimal b=new BigDecimal(Double.toString(_b));\t\n\t\treturn a.subtract(b).doubleValue();\n\t}", "public static RuntimeValue subtract(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteIntSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_INT_SAMPLE,\n Operators.subtractIntegers(left.getDiscreteIntSample(), right.getDiscreteIntSample())\n );\n }\n\n if (isDiscreteFloatSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_FLOAT_SAMPLE,\n Operators.subtractFloats(left.getDiscreteFloatSample(), right.getDiscreteFloatSample())\n );\n }\n\n if (isDiscreteFloatSample(left) && hasSingleValue(left.getDiscreteFloatSample()) && isContinuousSample(right)) {\n return new RuntimeValue(\n RuntimeValue.Type.CONTINUOUS_SAMPLE,\n right.getContinuousSample().add(-1 * left.getDiscreteFloatSample().single())\n );\n }\n\n if (isDiscreteFloatSample(right) && hasSingleValue(right.getDiscreteFloatSample()) && isContinuousSample(left)) {\n return new RuntimeValue(\n RuntimeValue.Type.CONTINUOUS_SAMPLE,\n left.getContinuousSample().add(-1 * right.getDiscreteFloatSample().single())\n );\n }\n\n throw new RuntimeException(\"Subtracting incompatible types\");\n }", "public static <T extends Vector> T Substract(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] - b.axis[i];\n }\n return result;\n }\n return result;\n }", "public void testMinus() {\r\n System.out.println(\"Minus\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E300, -1.1E300}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E300, 1.1E300}, \r\n {0., -5., -1., 0., 0., 4., 0.4, -0.2, 0., -2.2E300}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Minus(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "public static int p_sub(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to subtract:\");\n int v_sub_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to subtract:\");\n int v_sub_number_2 = keyboard.nextInt();\n int v_total_sub= v_sub_number_1-v_sub_number_2;\n return v_total_sub;\n }", "public void sub(int x, int y) {\r\n\t\tint diff = x - y;\r\n\t\tSystem.out.println(\"Subtracting\tIntegers: \" + diff);\r\n\t}", "public static BinaryExpression subtractAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.SubtractAssign, expression0, expression1);\n }", "@Override\r\n\tpublic void sub(float var) {\n\t\t\r\n\t}", "public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}", "public String visit(MinusExpression n, LLVMRedux argu) throws Exception {\n\n String arg1 = n.f0.accept(this, argu);\n String arg2 = n.f2.accept(this, argu);\n u.println(u.getReg()+\" = sub i32 \"+arg1+\", \"+arg2);\n return u.getLastReg();\n }", "void minus(int a) {\n this.result -= a; // 이렇게 result 변수가 있는 인스턴스의 주소를 사용하여 계산을 수행한다.\n }", "public static VectorIntf subtract(VectorIntf x, VectorIntf y) {\r\n if (x==null) throw new IllegalArgumentException(\"1st arg is null\");\r\n if (y==null) throw new IllegalArgumentException(\"2nd arg is null\");\r\n final int n = x.getNumCoords();\r\n if (n!=y.getNumCoords())\r\n throw new IllegalArgumentException(\"dimensions don't match\");\r\n VectorIntf z = x.newInstance(); // x.newCopy();\r\n for (int i=0; i<n; i++) {\r\n try {\r\n z.setCoord(i, x.getCoord(i) - y.getCoord(i));\r\n }\r\n catch (parallel.ParallelException e) { // can never get here\r\n e.printStackTrace();\r\n }\r\n }\r\n return z;\r\n }", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public static Currency Subtract(Currency op1, Currency op2) throws CurrencyException {\r\n\t\tif(!op1.getType().equals(op2.getType()))\r\n\t\t\tthrow new CurrencyException(\"Subtraction: different currency types!\");\r\n\t\t\r\n\t\tCurrency result = new Currency(op1.getType());\r\n\r\n\t\treturn result.setValue(op1.getValue()-op2.getValue());\t\r\n\t}", "public <V extends Number> FluentExp<V> minus (SQLExpression<V> expr)\n {\n return new Sub<V>(this, expr);\n }", "public T subtract(T measure);", "@Override\r\n\tpublic int subNo(int a, int b) {\n\t\treturn a-b;\r\n\t}", "public Fraction minus(Fraction other) {\n int finder = MathUtils.findLowestCommonMultiple(denominator, other.getDenominator());\n\n int idk = finder/denominator;\n int idc = finder/other.getDenominator();\n int fraction = (idk * getNumerator()) - (idc * other.getNumerator());\n return new Fraction(fraction, finder);\n\n }", "@Override\n public BinaryType subtractToBinary(BinaryType minuend) {\n int intMinuend = minuend.asInt().getValue();\n int intSubtrahend = this.asInt().getValue();\n return TypeFactory.getIntType(intMinuend - intSubtrahend).asBinary();\n }", "public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}", "public static SinglyLinkedList<Poly> subtraction(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\t\tSinglyLinkedList<Poly> list3 = new SinglyLinkedList();\n\t\twhile (list2 != null) {\n\t\t\tPoly p = list2.element;\n\t\t\tp.num = p.num * -1;\n\t\t\tlist3.add(p);\n\t\t\tlist2 = list2.next;\n\t\t}\n\t\treturn addition(list1, list3.head.next);\n\t}", "public Rational subtract(Rational other)\n\t{\n\t\tint diffNumer = (getNumer() * other.getDenom()) - (getDenom() * other.getNumer());\n\t\tint diffDenom = (getDenom() * other.getDenom());\n\n\t\tRational difference = new Rational(diffNumer, diffDenom);\n\t\tdifference.normalize();\n\t\treturn difference;\n\t}", "public HugeUInt subtract(HugeUInt arg) {\r\n //We only subtract smaller numbers\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < arg.getSize(); i++) {\r\n cur = cur + 10 + result.array[i] - arg.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n for (int i = arg.getSize(); i < getSize(); i++) {\r\n cur = cur + 10 + result.array[i];\r\n result.array[i] = cur % 10;\r\n cur = cur < 10 ? -1 : 0;\r\n }\r\n result.trim();\r\n return result;\r\n }", "public void substract1() {\r\n value--;\r\n }", "public double resta(double a, double b) {\n\t\treturn a-b;\n\t}", "@Override\r\n\tpublic vec3 minus(ShaderVar var) {\n\t\treturn null;\r\n\t}", "public L1513_Rational subtract(L1513_Rational secondL1513_Rational) {\n\t long n = numerator * secondL1513_Rational.getDenominator()\n\t - denominator * secondL1513_Rational.getNumerator();\n\t long d = denominator * secondL1513_Rational.getDenominator();\n\t return new L1513_Rational(n, d);\n\t }", "public Vector<T> subtract(T aScalar);", "public static RationalNumber substract(RationalNumber r1, RationalNumber r2) \n\t{\t\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tint numeratorSubtraction = 0;\n\t\t\n\t\t//Extracting the numerator from the instances:\n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\t//finding the greatest common denominator:\n\t\tint lowestCommon = lowestCommonFactor(r1.getDenominator(), r2.getDenominator());\n\t\t\n\t\t//Substracting the numerator:\n\t\tnum1 *= (lowestCommon / r1.getDenominator());\n\t\tnum2 *= (lowestCommon / r2.getDenominator());\n\t\t\n\t\t//Substration process:\n\t\tnumeratorSubtraction = num1 - num2;\n\t\t\n\t\t//converting from an integer into a fraction:\n\t\tRationalNumber answer = new RationalNumberImpl_Luong(numeratorSubtraction,lowestCommon);\n\t\treturn answer;\n\t}", "public int soustraire(int a, int b){\r\n\t\treturn a-b;\r\n\t}", "public Polynomial subtraction(int position_1, int position_2) {\n Polynomial polynomial;\n if (collection.get(position_1).getLength() > collection.get(position_2).getLength())\n polynomial = new Polynomial(collection.get(position_1).getLength());\n else\n polynomial = new Polynomial(collection.get(position_2).getLength());\n\n for (int i = 0; i < polynomial.getLength(); i++) {\n double a, b;\n try {\n a = collection.get(position_1).getValue(i);\n } catch (Exception e) {\n a = 0;\n }\n try {\n b = collection.get(position_2).getValue(i);\n } catch (Exception e) {\n b = 0;\n }\n\n polynomial.setValue(i, a - b);\n }\n\n return polynomial;\n }", "public static Interval subtraction(Interval in1, Interval in2){\r\n //in1.print();\r\n //in2.print();\r\n return new Interval(in1.getFirstExtreme()-in2.getSecondExtreme(),in1.getSecondExtreme()-in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }", "private static int[] subtract(int[] big, int[] little) {\n int bigIndex = big.length;\n int result[] = new int[bigIndex];\n int littleIndex = little.length;\n long difference = 0;\n\n // Subtract common parts of both numbers\n while (littleIndex > 0) {\n difference = (big[--bigIndex] & LONG_MASK) -\n (little[--littleIndex] & LONG_MASK) +\n (difference >> 32);\n result[bigIndex] = (int)difference;\n }\n\n // Subtract remainder of longer number while borrow propagates\n boolean borrow = (difference >> 32 != 0);\n while (bigIndex > 0 && borrow)\n borrow = ((result[--bigIndex] = big[bigIndex] - 1) == -1);\n\n // Copy remainder of longer number\n while (bigIndex > 0)\n result[--bigIndex] = big[bigIndex];\n\n return result;\n }", "public SVector subtract(SVector other) {\n this.x -= other.getX();\n this.y -= other.getY();\n this.z -= other.getZ();\n return this;\n }", "public int subtraction(int num1, int num2, int clientNo) {\n\t\ttry {\n\t\t\t// append details of request coming in\n\t\t\tserverDisplay.append(\"\\nRequest Coming in...\");\n\t\t\t// the client number and IP address\n\t\t\tserverDisplay.append(\"\\nClient: \" + clientNo + \" connected at IP: \" + InetAddress.getLocalHost().getHostAddress());\n\t\t\t// client instance number\n\t\t\tserverDisplay.append(\"\\nRequest from Client: \" + clientNo);\n\t\t\t// number 1 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 1: \" + num1);\n\t\t\t// number 2 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 2: \" + num2);\n\t\t\t// the chosen operator\n\t\t\tserverDisplay.append(\"\\nOperator: -\");\n\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// append calculating\n\t\tserverDisplay.append(\"\\nCalculating...\");\n\t\t// append what the result is\n\t\tserverDisplay.append(\"\\nData to Client \" + clientNo + \": \" + (num1 - num2));\n\t\t// display answer\n\t\tserverDisplay.append(\"\\nAnswer :\" + (num1 - num2));\n\t\t// append sending back to the client\n\t\tserverDisplay.append(\"\\nSending result back to the client...\");\n\t\tserverDisplay.append(\"\\n================================================\");\n\t\t// return the two numbers subtracted\n\t\treturn (num1 - num2);\n\t}", "@Override\n\tpublic int sub(int val1, int val2) {\n\t\treturn val1 - val2;\n\t}", "public void subtract(int value) {\n m_value -= value;\n }", "private int calculamenos(String a, String b) {\n int res=0;\n res= Integer.valueOf(a) - Integer.valueOf(b);\n return res;\n \n }", "public Polynomial minus(Polynomial poly) {\n\t\tPolynomial a = this;\n\t\tPolynomial b = poly;\n\n\t\tPolynomial c = new Polynomial(0, Math.max(\n\t\t\t\ta.degree, b.degree), this.field);\n\t\tif (a.field == b.field) {\n\n\t\t\tfor (int i = 0; i <= a.degree; i++) {\n\t\t\t\tc.coefficients[i] += a.coefficients[i];\n\t\t\t}\n\n\t\t\tfor (int i = 0; i <= b.degree; i++) {\n\t\t\t\tc.coefficients[i] -= b.coefficients[i];\n\t\t\t}\n\n\t\t\tc = this.modField(c);\n\n\t\t} else {\n\t\t\t// TODO: throw exception or some such.\n\t\t}\n\n\t\treturn c;\n\t}", "public void subtract(Object decValue) {\n\t\tvalue = operate(\n\t\t\t\ttransform(value),\n\t\t\t\ttransform(decValue),\n\t\t\t\t(v1, v2) -> v1 - v2,\n\t\t\t\t(v1, v2) -> v1 - v2\n\t\t);\n\t}", "@Override\n public IntType subtractToInt(IntType minuend) {\n int intSubtrahend = this.asInt().getValue();\n int intMinuend = minuend.getValue();\n return TypeFactory.getIntType(intMinuend - intSubtrahend);\n }", "public static Rational subtract(Rational num1, Rational num2){\r\n Rational difference = new Rational();\r\n \r\n // subtract common denominator\r\n difference.denominator = num1.getDenominator() * num2.getDenominator();\r\n difference.numerator = (num1.getNumerator() * num2.getDenominator()) -\r\n (num2.getNumerator() * num1.getDenominator());\r\n \r\n difference.reduce();\r\n return difference;\r\n }", "public Fraction subtract(Fraction subtrahend)\n {\n int newDenominator = (this.getDenominator() * subtrahend.getDenominator());\n int convertedNumerator1 = (this.getNumerator() * subtrahend.getDenominator());\n int convertedNumerator2 = (subtrahend.getNumerator() * this.getDenominator());\n int newNumerator = convertedNumerator1 - convertedNumerator2;\n \n Fraction newFraction =new Fraction(newNumerator, newDenominator);\n return newFraction;\n }", "public Percentage minus(Percentage other) {\n return new Percentage(amount.minus(other.amount));\n }", "@Override\r\n public void visit(Subtract n, functionStruct fStruct) {\r\n String resultIntObject = n.f0.f0.toString();\r\n addId(resultIntObject, fStruct.functionName, fStruct.lineNumber);\r\n \r\n String firstIntObject = n.f2.f0.toString();\r\n addId(firstIntObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String secondIntObject = n.f4.f0.toString();\r\n addId(secondIntObject, fStruct.functionName, fStruct.lineNumber);\r\n \r\n }", "public Function subtract(Function f) {\r\n Function diff = new Function();\r\n for (int i = 0; i < this.cindex; i++){\r\n diff.addTerm(this.co[i],this.degree[i]); \r\n }\r\n for (int i = 0; i < f.cindex; i++){\r\n diff.addTerm(-1*f.co[i],f.degree[i]); \r\n }\r\n for (int i = 0; i < this.sinindex; i++){\r\n diff.addTerm(this.sinc[i],\"sin\",this.sind[i]); \r\n } \r\n for (int i = 0; i < f.sinindex; i++){\r\n diff.addTerm(-1*f.sinc[i],\"sin\",f.sind[i]); \r\n }\r\n for (int i = 0; i < this.cosindex; i++){\r\n diff.addTerm(this.cosc[i],\"cos\",this.cosd[i]); \r\n }\r\n for (int i = 0; i < f.cosindex; i++){\r\n diff.addTerm(-1*f.cosc[i],\"cos\",f.cosd[i]); \r\n }\r\n for (int i = 0; i < this.tanindex; i++){\r\n diff.addTerm(this.tanc[i],\"tan\",this.tand[i]); \r\n }\r\n for (int i = 0; i < f.tanindex; i++){\r\n diff.addTerm(-1*f.tanc[i],\"tan\",f.tand[i]); \r\n }\r\n return diff; \r\n\t}", "public Object visitUnaryMinusExpression(GNode n) {\n Object a;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n return - (Long) a;\n }\n else {\n return \"- \" + parens(a);\n }\n }", "public Vector2D minus(Vector2D rhs)\n {\n return new Vector2D(this.x - rhs.x, this.y - rhs.y);\n }", "public V difference(V v1, V v2);", "public Vector subtract (Vector other) {\n Vector t =new Vector(head.subtract(other.head));\n return t;\n }", "public void sub(vec3 a, vec3 b) {\r\n\t\tx = a.x - b.x;\r\n\t\ty = a.y - b.y;\r\n\t\tz = a.z - b.z;\r\n\t}", "public int resta(){\r\n return x-y;\r\n }", "public static void subtract(int[] n1, int[] n2, int[] result, int[]sign) {\n\t\tint b = n1.length-1;\n\t\tint carry = 0;\n\t\t\n\t\tboolean smaller = (compareTo(n2, n1) < 0);\n//\t\t// confirm that n2 is smaller than n1. If so, we reverse. Assume that\n//\t\t// n2 is smaller.\n//\t\tboolean smaller = true;\n//\t\tfor (int i = 0; i < n1.length; i++) {\n//\t\t\tif (n2[i] == n1[i]) { \n//\t\t\t\tcontinue;\n//\t\t\t}\n//\n//\t\t\t// Must be able to report by now...\n//\t\t\tif (n2[i] > n1[i]) {\n//\t\t\t\tsmaller = false;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t\twhile (b >= 0) {\n\t\t\t\n\t\t\tint s = n1[b] - n2[b];\n\t\t\tif (!smaller) { s = -s; }\n\t\t\ts += carry;\n\t\t\tif (s >= 0) {\n\t\t\t\tresult[b] = s;\n\t\t\t\tcarry = 0;\n\t\t\t} else {\n\t\t\t\tcarry = -1;\n\t\t\t\tresult[b] = s + 10;\n\t\t\t}\n\t\t\t\n\t\t\tb--;\n\t\t}\n\t\t\n\t\tif (!smaller) {\n\t\t\tsign[0] = -1;\n\t\t} else {\n\t\t\tsign[0] = carry+0;\n\t\t}\n\t}" ]
[ "0.7215895", "0.6947961", "0.6884485", "0.67642534", "0.67334443", "0.66117436", "0.6490848", "0.6490402", "0.64743215", "0.644099", "0.6434739", "0.6420426", "0.6412019", "0.63783324", "0.6366619", "0.63388634", "0.63206726", "0.6309505", "0.62791693", "0.62665296", "0.6261581", "0.6243317", "0.62094337", "0.6201955", "0.6186689", "0.61536735", "0.6085169", "0.60506684", "0.60502803", "0.6004951", "0.5996262", "0.5991665", "0.59885126", "0.5985848", "0.59720916", "0.595222", "0.59455764", "0.5939729", "0.5934477", "0.59301317", "0.5915234", "0.5897266", "0.5895726", "0.58775604", "0.5876832", "0.5872461", "0.5868936", "0.58601016", "0.5859484", "0.58551246", "0.58536536", "0.58290285", "0.58171606", "0.5803917", "0.5792645", "0.5791758", "0.5785783", "0.57828975", "0.57818997", "0.577919", "0.5766487", "0.5763524", "0.57547", "0.57437044", "0.5727316", "0.57223725", "0.5698603", "0.5686655", "0.568628", "0.56810385", "0.5664607", "0.56439567", "0.56327397", "0.56270593", "0.56252205", "0.5610659", "0.5559195", "0.55566657", "0.5553207", "0.55498457", "0.55407125", "0.553862", "0.5532806", "0.5531715", "0.5529874", "0.5526043", "0.55129653", "0.5506065", "0.5501573", "0.5498679", "0.54931027", "0.54799145", "0.54761374", "0.5475001", "0.5459964", "0.54552805", "0.5454802", "0.54419774", "0.543431", "0.5433261" ]
0.666946
5
Multiplies two NumberP variables.
public static NumberP Multiplication(NumberP first, NumberP second) { return OperationsManaged.PerformArithmeticOperation ( first, second, ExistingOperations.Multiplication ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static UnitP Multiplication(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication) \n );\n }", "abstract int multiplication(int num1, int num2);", "public double multiply(double firstNumber, double secondNUmber){\n\t\treturn firstNumber * secondNUmber;\n\t}", "public static UnitP Multiplication(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication)\n );\n }", "public static UnitP Multiplication(UnitP first, double second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication, \n OperationsOther.GetOperationString(first, second, Operations.Multiplication)\n );\n }", "public void multiply() {\n\t\t\n\t}", "BaseNumber multiply(BaseNumber operand);", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public T mul(T first, T second);", "public void multiply(Object mulValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, mulValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() * getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() * getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "private void mul() {\n\n\t}", "int multiply (int a, int b) {\n\t\t//let me do it in one step\n\t\treturn a * b; \n\t\t\n\t\t\n\t}", "@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}", "Multiply createMultiply();", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "public static int mul(int value1, int value2){\r\n return value1 * value2;\r\n }", "public int multiply(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }", "@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}", "public String multiply()\r\n {\r\n\r\n return First.multiply(Second).stripTrailingZeros().toString();\r\n }", "int luasPP(int a, int b){\r\n return a*b;\r\n }", "public int multiplication(int a, int b) {\n return a * b;\n }", "public Parameter multiplyParameter(Parameter otherPram);", "public static Digit multiply(Digit first, Digit second){\n Digit result = Digit.Zero();\n Digit multiplier = second.copy();\n\n while(!multiplier.isZero()){\n result = Operations.plus(result, first.copy());\n multiplier = multiplier.previous();\n }\n return result;\n }", "void multiply(double value);", "public double getProduct()\n {\n return first * second;\n }", "public static BIGNUM multiply(BIGNUM bn1, BIGNUM bn2) {\n\t\tdouble multiply = bn1.NUM * bn2.NUM;\n\t\tdouble newE = bn1.E + bn2.E;\n\t\t//System.out.println(\"multiply function: \" + multiply + \"\\t\" + newE);\n\t\tBIGNUM result = new BIGNUM(multiply, newE);\n\t\treturn result;\n\t}", "public void multiply(Polynomial p1) {\n\t\tPolynomial p=new Polynomial();\r\n\t\t// taking 2 loops to multiply the coeff and storing it in this newly created polnomial\r\n\t\tfor(int i=0;i<p1.DynArray.length;i++) {\r\n\t\t\tfor(int j=0;j<this.DynArray.length;j++) {\r\n\t\t\t\t// checking if degree is smaller to initial degree then storing\r\n\t\t\t\tif(i + j <=p.degree)\r\n\t\t\t\t\tp.setDegreeCoefficient( i + j ,p.DynArray[i+j]+p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t\telse\r\n\t\t\t\t\t// otherwise we'll not have anythig there to add so just putting multiply result\r\n\t\t\t\t\t// this is similar step just like u do in maths multiplication\r\n\t\t\t\t\tp.setDegreeCoefficient(i + j ,p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t}\r\n\t\t}\r\n//\t\t// p2 -> this\r\n//\t\tint[] updatedArr = new int[10];\r\n//\t\t\r\n//\t\tfor(int i = 0; i < this.DynArray.length; i++) {\r\n//\t\t\tint[] temp = new int[10];\r\n//\t\t\tfor(int j = 0 ; j < p1.DynArray.length; j++) {\r\n//\t\t\t\tint index = i+j;\r\n//\t\t\t\ttemp[index] = this.DynArray[i]*p1.DynArray[j];\r\n//\t\t\t}\r\n//\t\t\t// adding empty arr/ updatedArr and temp arr\r\n//\t\t\tfor(int j = 0 ; j <temp.length; j++) {\r\n//\t \t\t\tupdatedArr[j] = updatedArr[j] + temp[j];\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n//\t\t// coping all elements from updatedArr to p2/ this\r\n//\t\tfor(int i=0;i<updatedArr.length;i++) {\r\n//\t\t\tthis.DynArray[i] = updatedArr[i];\r\n//\t\t}\r\n\t}", "public int multiply(int a,int b) throws RemoteException;", "@Override\r\n\tpublic int mulNo(int a, int b) {\n\t\treturn a*b;\r\n\t}", "public void multiplyTwoNumbers(int num1, int num2) {\n\t\t\n\t\tint product = num1*num2; //A\n\t\tSystem.out.println(\"**************************************************************\");\n\t\tSystem.out.println(\"Product of these 2 numbers is: \"+product);\n\t\tint remainder = getRemainder(num1, num2); //C\n\t\tint finalResult = product+remainder; //B\n\t\tSystem.out.println(\"Final Result of these 2 numbers is: \"+ finalResult);\n\t\n\t\t\n\t}", "public static int multiply(int number1, int number2){\n\t\tint result = 0;\n\t\twhile(number2 != 0) {\n\t\t\t\n\t\t\tresult += number1;\t\t//it's okay if number1 <0; negative+negative = negative\n\t\t\tif (number2 < 0){\n\t\t\t\tnumber2 = number2 +1; \n\t\t\t}else{\n\t\t\t\tnumber2 = number2 +negate(1); \n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static RationalNumber multiply(RationalNumber r1, RationalNumber r2) \n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t\n\t\tint multiplyNum = 0;\n\t\tint multiplyDeno = 0;\n\t\t\n\t\t//Extracting the numerator and denominator from each instances:\n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\tint deno1 = r1.getDenominator();\n\t\tint deno2 = r2.getDenominator();\n\t\t\n\t\t//Fraction multiplication:\n\t\tmultiplyNum = num1 * num2;\n\t\tmultiplyDeno = deno1 * deno2;\n\t\t\n\t\t//converting from an integer into a fraction:\n\t\tRationalNumber answer = new RationalNumberImpl_Luong(multiplyNum,multiplyDeno);\n\t\treturn answer;\n\t}", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public int multiply(int a, int b) {\r\n\t\treturn a*b;\r\n\t}", "public static Rational multiply(Rational num1, Rational num2){\r\n Rational product = new Rational();\r\n \r\n // multiply throughout\r\n product.denominator = num1.getDenominator() * num2.getDenominator();\r\n product.numerator = num1.getNumerator() * num2.getNumerator();\r\n \r\n product.reduce();\r\n return product;\r\n }", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Multiplication p, A arg)\n {\n\n p.arithmeticexpr_1.accept(new ArithmeticExprVisitor<R,A>(), arg);\n p.arithmeticexpr_2.accept(new ArithmeticExprVisitor<R,A>(), arg);\n\n return null;\n }", "@Override\n\tpublic long multi(int num1, int num2) throws TException {\n\t\treturn Long.valueOf(num1 * num2); \n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public double multiply(Coordinate other) {\n return _coord * other._coord;\n }", "public int multiply(String firstNumber, String secondNumber) {\n int firstNum = Integer.parseInt(firstNumber);\n int secondNum = Integer.parseInt(secondNumber);\n int result = firstNum * secondNum;\n\n return (result);\n }", "private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static native double mul(int n);", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "public double multiplica(double a, double b) {\n\t\treturn a*b;\n\t}", "public static double multiply(int left, int right){\n return left * right;\n }", "public static double mul(double a, double b){\r\n\t\treturn a*b;\r\n\t}", "@Override\n\tpublic void visit(MultiplyNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam cei doi fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger i, j;\n\t\t/**\n\t\t * salvam si inmultim valorile rezulate in urma evaluarii celor 2 fii si\n\t\t * setam valoarea corespunzatoare in nodul curent\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\tInteger n = i * j;\n\n\t\tnode.setName(n.toString());\n\t}", "@Override\npublic void mul(int a, int b) {\n\t\n}", "public int multiplicationFunction(int a, int b) {\n return a*b;\n }", "public void multiply(double multiplier) {\n x *= multiplier;\n y *= multiplier;\n }", "@Override\n\tpublic int mult(int val1, int val2) {\n\t\treturn val1 * val2;\n\t}", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}", "Rational multiply(Rational p){\n Rational firstarg=new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n firstarg.numerator=p.numerator*firstarg.numerator;\n firstarg.denominator=p.denominator*firstarg.denominator;\n return firstarg;\n }", "public Polynomial multiply(Polynomial p){\n\t\tfor(int i=0; i<degreecoeff.length;i++) {\n\t\t\tfor(int j=0; j<degreecoeff.length;j++) {\n\t\t\t\t\n\t\t\tp.degreecoeff[i]=(p.degreecoeff[i])+(degreecoeff[i]*p.degreecoeff[j]);\n\t\t}\n\t\t}\n\t\treturn p;\n\t}", "public static int multiply(int lafoot,int lapaki){\n\treturn 0;\n}", "public int mult()\r\n\t{\r\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tint c = a*b;\r\n\t\treturn(c);\r\n\t}", "public static Object multiply(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).multiply((BigDecimal) val2);\n\t\t} else if (isFloat(val1) && isInt(val2)) {\n\t\t\treturn ((BigDecimal) val1).multiply(new BigDecimal(\n\t\t\t\t\t(BigInteger) val2));\n\t\t} else if (isInt(val1) && isFloat(val2)) {\n\t\t\treturn new BigDecimal((BigInteger) val1)\n\t\t\t\t\t.multiply((BigDecimal) val2);\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).multiply((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in multiply\");\n\t}", "@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\n\t}", "public String multiply(String num1, String num2) \n\t{\n if(num1 == null || num1.length() == 0) return num2;\n if(num2 == null || num2.length() == 0) return num1;\n if(num1.equals(\"0\") || num2.equals(\"0\")) return \"0\";\n \n int num2Ind = num2.length()-1;\n \n String result = \"0\";\n while(num2Ind >= 0)\n {\n String multiplied = multiplyDigit(num1, num2.charAt(num2Ind), num2.length()-num2Ind);\n --num2Ind;\n result = add(result, multiplied);\n }\n return result;\n }", "public static void multiply(int[] n1, int[] n2, int[] result) {\n\t\tint pos = result.length-1;\n\t\t// clear all values....\n\t\tfor (int i = 0; i < result.length; i++) {result[i] = 0; }\n\t\t\n\t\tint off;\n\t\tfor (int m = n1.length-1; m>=0; m--) {\n\t\t\toff = n1.length-1 - m;\n\t\t\tif (n1[m] == 0) {\n\t\t\t\tcontinue; // skip zero multiplier! Won't affect total.\n\t\t\t}\n\t\t\tfor (int n = n2.length-1; n>=0; n--) {\n\t\t\t\tint prod = n1[m]*n2[n];\n\t\t\t\t\n\t\t\t\tresult[pos-off] += prod % 10;\n\t\t\t\tif (result[pos-off] > 9) { // carry internally\n\t\t\t\t\tdo {\n\t\t\t\t\t\tresult[pos-off] -= 10;\n\t\t\t\t\t\tresult[pos-off-1]++;\n\t\t\t\t\t} while (result[pos-off] > 9);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (prod > 9) {\n\t\t\t\t\tresult[pos-off-1] += prod / 10; // deal with carry sum later\n\t\t\t\t}\n\t\t\t\toff++;\n\t\t\t}\n\t\t}\n\t}", "public int multiply(int x, int y) {\n int n1 = x; //n1 = c_n * 2^n + c_n-1 * 2^n-1 + ... + c_1 * 2 + c_0 * 1 where c_i = {0, 1} \n int n2 = y; //n2 = c_m * 2^m + c_m-1 * 2^m-1 + ... + c_1 * 2 + c_0 * 1 where c_i ] {0, 1}\n int sum = 0; //named sum b/c represent the product of n1 and n2 as the sum of their constituent parts\n /*\n let n1 be rep as in its binary form (***...***) a bit string\n n1*n2 = (***...***)(c_m * 2^m + ... + c_0 * 1)\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 2) + ... + (***...***)(c_m * 2^m)\n since << has the effect of multiplying a number by 2, can rep as\n = (***...***)(c_0 * 1) + (***...***)(c_1 * 1) << 1 + (***...***)(c_2 * 1) << 2 + ... + (***...***)(c_m * 1) << m\n so for each loop through a loop left shift n1 by one to simulate multiplying the next term by 2\n also right shift n2 to find c_i, the value of the bit in the bit string n2\n */\n while (n2 != 0) { // if n2 == 0 run through the length of n2 and nothing left to do\n if ((n2 & 1) == 0) { //find the last bit of n2; if it is 0 then do nothing because the n1 term will be multiplied by 0\n } else {//else it is 1 so add n1 to the sum\n sum = add(sum, n1); //bitwise addition has already been defined (implemented)\n }\n n1 = n1 << 1; //leftshift n1 to mult by 2; see above comments\n n2 = n2 >>> 1; //rightshift n2 to find value of next bit in bit string\n }\n return sum;\n }", "@Test\n\tpublic void multiplyTest() {\n\t\t\n\t\tFraction expected = new Fraction(10, 200);\n\t\tFraction actual = y.multiply(x);\n\n\t\tassertEquals(expected.getNumerator(), actual.getNumerator());\n\t\tassertEquals(expected.getDenominator(), actual.getDenominator());\n\t\tassertEquals(expected.toString(), actual.toString());\n\t}", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "public double Multiply(double x, double y){\n\t\treturn x*y;\n\t}", "public AncientEgyptianMultiplication( ) {\r\n }", "@Test(priority=3)\n\n\tpublic void multiplicationTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.multiplication();;\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20*10);\n\t}", "public double multiply(double x, double y) {\n\t\treturn x * y;\n\t}", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "public int producto(){\r\n return x*y;\r\n }", "@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }", "public final EObject ruleMultiplicationOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4829:28: ( ( () otherlv_1= '*' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:1: ( () otherlv_1= '*' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:1: ( () otherlv_1= '*' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:2: () otherlv_1= '*'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4830:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4831:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getMultiplicationOperatorAccess().getMultiplicationOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,46,FOLLOW_46_in_ruleMultiplicationOperator10841); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getMultiplicationOperatorAccess().getAsteriskKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "Point mult (double s, Point result);", "public static double multi(double a, double b) {\n return a * b;\n }", "public int getProduct() {\n int a = 5;\n int b = 14;\n int c = a * b;\n return c;\n }", "public void testMultiply() {\r\n System.out.println(\"Multiply\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {9., -6.25, 0., 0., 1., -4., 10.2, 12.95, 1.21E200, -1.21E200}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Multiply(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "public static BigInteger multiply(BigInteger first, BigInteger second) {\n\t\t\n\t\tBigInteger sum = new BigInteger();\n\t\tint z = 0;\n\t\tfor(DigitNode n1 = first.front, dummy = new DigitNode(0, null), trailingZeros = dummy;\n\t\t\tn1 != null;\n\t\t\tn1 = n1.next, trailingZeros = new DigitNode(0, trailingZeros)) {\n\t\t\tBigInteger i = new BigInteger();\n\t\t\ti.numDigits = z++;\n\t\t\ti.front = trailingZeros;\n\t\t\tfor(DigitNode n2 = second.front, n = dummy; n2 != null; n2 = n2.next, n = n.next) {\n\t\t\t\tint value = n1.digit * n2.digit;\n\t\t\t\tn.next = new DigitNode(value, null);\n\t\t\t\ti.numDigits++;\n\t\t\t}\n\t\t\ti.front = i.front.next; //skip the dummy\n\t\t\tsum = forceAdd(sum, i);\n\t\t}\n\n\t\tnormalize(sum);\n\n\t\tsum.negative = first.negative ^ second.negative;\n\n\t\treturn sum;\n\t}", "public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1);\n }", "public StringNum slowMultiply(StringNum n1, StringNum n2) {\n\t\tStringNum product;\n\t\ttry {\n\t\t\tif(n1.getNumber().length() > n2.getNumber().length()) {\n\t\t\t\tproduct = new StringNum(0);\n\t\t\t\tfor(int i = 0; new StringNum().isLessThan(new StringNum(i), n2); i++) {\n\t\t\t\t\tproduct = product.add(product, n1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tproduct = new StringNum(0);\n\t\t\t\tfor(int i = 0; new StringNum().isLessThan(new StringNum(i), n1); i++) {\n\t\t\t\t\tproduct = product.add(product, n2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn new StringNum();\n\t\t}\n\t\treturn product;\n\t}", "public BigDecimal multiplyNumbers(List<Integer> numbers) throws Exception;", "public void multiply(double amount) {\n x *= amount;\n y *= amount;\n }", "public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }", "public double calculateValue () {\n return double1 * double2;\n }", "public static void main(String[] args) {\n PyObject v = Py.newLong(6), w = Py.newFloat(7.01);\n System.out.println(v._mul(w));\n }", "@Override\n public InterpreterValue mul(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() * ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() * ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '*' is not defined for type double and \" + v.getName());\n\n }", "public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1, Method method) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1, false, method);\n }", "void visit(MultiplicationExpression expression);", "public static Node multiply(Node poly1, Node poly2) {\r\n\t\t/** COMPLETE THIS METHOD **/\r\n\t\t// FOLLOWING LINE IS A PLACEHOLDER TO MAKE THIS METHOD COMPILE\r\n\t\t// CHANGE IT AS NEEDED FOR YOUR IMPLEMENTATION\r\n\t\t//Equation for the first polynomial\r\n\t\t\r\n\t\t\tNode Equation1=poly1;\r\n\t\t\r\n\t\t\t//Equation for the second polynomial\r\n\t\t\r\n\t\t\tNode Equation2=poly2;\r\n\t\t \r\n\t\t \tNode Summation= null;\r\n\t\t \t\r\n\t\t \tNode Result=null;\r\n\t\t \r\n\t\t \r\n\t\t \t\r\n\t\t //this will hold the temporary adding\r\n\t float tmp =0;\r\n\t //holds degree\r\n\t \r\n\t int deg =0;\r\n\t \r\n\t if(Equation1==null) {\r\n\t \treturn Equation2;\r\n\t }\r\n\t \r\n\t if(Equation2==null) {\r\n\t \treturn Equation1;\r\n\t }\r\n\r\n\r\n\t //loops through both equations and check to see if both are null\r\n\t while( Equation2!=null) {\r\n\t \t\r\n\t \ttmp= Equation1.term.coeff*Equation2.term.coeff;\r\n\t \tdeg = Equation1.term.degree+Equation2.term.degree;\r\n\t \tSummation = new Node(tmp,deg,Summation);\r\n\t \t\r\n\t \tEquation1=Equation1.next;\r\n\t \t\r\n\t \tif(Equation1==null) {\r\n\t \t\tEquation1=poly1;\r\n\t \t\tEquation2=Equation2.next;\r\n\t \t}\r\n\t \t\t\t}\r\n\t \r\n\t Node Answer =null;\r\n\t Node hold =null;\r\n\t \twhile(Summation!=null) {\r\n\t \t\ttmp = Summation.term.coeff;\r\n\t \t\thold=Summation.next;\r\n\t \t\twhile(hold!=null) {\r\n\t \t\t\t\r\n\t \t\t\tif(Summation.term.degree==hold.term.degree) {\r\n\t \t\t\t\ttmp= tmp +hold.term.coeff;\r\n\t \t\t\t\thold.term.coeff=0;\t\r\n\t \t\t\t\t\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t\thold = hold.next;\r\n\t \t\t\t\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t\r\n\t \t\tAnswer= new Node(tmp,Summation.term.degree,Answer);\r\n\t \t\tSummation = Summation.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t Summation =null;\r\n\t \twhile(Answer!=null) {\r\n\t \t\t\r\n\t \t\twhile(Answer.term.coeff==0) {\r\n\t \t\t\tAnswer=Answer.next;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\tSummation = new Node(Answer.term.coeff,Answer.term.degree,Summation);\r\n\t \t\tAnswer=Answer.next;\r\n\t \t\t\r\n\t \t\t\r\n\t \t\t\r\n\t \t}\r\n\t \t\r\n\t \tAnswer= Summation;\r\n\t \tEquation1=null;\r\n\t \tEquation2=Summation;\r\n\t \ttmp =Answer.term.coeff;\r\n\t \tdeg=Answer.term.degree;\r\n\t \tint max =deg;\r\n\t \t\r\n\t \t\r\n\t \t\r\n\t \t//find max degree of polynomial\t\r\n \t\twhile(Answer.next!=null ) {\r\n \t\t\t\r\n \t\t\t\r\n \t\t\tif(Answer.term.degree>deg) {\r\n \t\t\t\ttmp=Answer.term.coeff;\r\n \t\t\t\tdeg=Answer.term.degree;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tAnswer=Answer.next;\r\n \t\t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t\tEquation1= new Node(tmp,deg,Equation1);\r\n \t\t\r\n \t\tAnswer= null;\r\n \t\t\r\n \t\t max=Equation1.term.degree;\r\n \t\t \r\n \t\t Equation2=null;\r\n \t\t //arranges polynomials descending\r\n \t\t while(max!=-1) {\r\n \t\t\t \r\n \t\t\t Answer=Summation;\r\n \t\t\t while(Answer!=null) {\r\n \t\t\t if(Answer.term.degree==max) {\r\n \t\t\t\t Equation2= new Node(Answer.term.coeff,Answer.term.degree,Equation2);\r\n \t\t\t\t \r\n \t\t\t }\r\n \t\t\t \r\n \t\t\t Answer=Answer.next;\r\n \t\t\t \r\n \t\t\t }\r\n \t\t\t max--;\r\n \t\t\t\r\n \t\t\t \r\n \t\t\t \r\n \t\t\t \r\n \t\t }\r\n \r\n\t\t\treturn Equation2 ;\r\n\r\n\t\t \r\n\t}", "public Rational multiply(Rational other)\n\t{\n\t\tint multNumer = (getNumer() * other.getNumer());\n\t\tint multDenom = (getDenom() * other.getDenom());\n\n\t\tRational product = new Rational(multNumer, multDenom);\n\t\tproduct.normalize();\n\t\treturn product;\n\t}", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public void multiply(Monom m){\r\n\t\tint temp_power = this.get_power();\r\n\t\tdouble temp_coaf = this.get_coefficient();\r\n\t\ttemp_power += m.get_power();\r\n\t\ttemp_coaf *= m.get_coefficient();\r\n\t\tthis.set_power(temp_power);\r\n\t\tthis.set_coefficient(temp_coaf);\r\n\t}", "public String multiply(String num1, String num2) {\n int len1 = num1.length();\n int len2 = num2.length();\n int[] products = new int[len1 + len2];\n //1. compute products from each pair of digits from num1 and num2.\n for (int i = len1 - 1; i >= 0; i -- ) {\n for (int j = len2 - 1; j >= 0; j--) {\n int digit1 = num1.charAt(i) - '0';\n int digit2 = num2.charAt(j) - '0';\n products[i+j+1] += digit1 * digit2;\n }\n }\n //2.carry each element over\n int carry = 0;\n for (int i =products.length - 1; i >= 0; i--){\n int tmp = (products[i] + carry) % 10;\n carry = (products[i] + carry) / 10;\n products[i] = tmp;\n }\n //3.output the solution\n StringBuilder sb = new StringBuilder();\n for (int num : products) sb.append(num);\n // eliminate the leading 0\n while (sb.length() != 0 && sb.charAt(0) == '0') sb.deleteCharAt(0);\n return sb.length() == 0 ? \"0\" : sb.toString();\n }", "public static SinglyLinkedList<Poly> multiplication(SinglyLinkedList.Entry<Poly> list1,\n\t\t\tSinglyLinkedList.Entry<Poly> list2) {\n\t\tSinglyLinkedList<Poly> ans = new SinglyLinkedList();\n\n\t\twhile (list2 != null) {\n\t\t\tSinglyLinkedList<Poly> temp = new SinglyLinkedList();\n\t\t\tPoly poly1 = list2.element;\n\n\t\t\tSinglyLinkedList.Entry<Poly> list3 = list1;\n\n\t\t\twhile (list3 != null) {\n\t\t\t\tPoly poly2 = list3.element;\n\t\t\t\tPoly poly = new Poly(poly1.num * poly2.num, poly1.pow + poly2.pow);\n\t\t\t\tlist3 = list3.next;\n\t\t\t\ttemp.add(poly);\n\t\t\t}\n\t\t\tlist2 = list2.next;\n\t\t\tans = addition(ans.head.next, temp.head.next);\n\t\t}\n\t\treturn ans;\n\t}", "abstract void mulS();", "@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "Point mult (double s);", "@Override\r\n\tpublic void multLocal(float var) {\n\t}" ]
[ "0.7009238", "0.6926992", "0.69019073", "0.68723357", "0.68442184", "0.6825923", "0.6821467", "0.67988443", "0.67938155", "0.6658201", "0.6646285", "0.6637781", "0.6538572", "0.65180004", "0.6496198", "0.648712", "0.6464195", "0.6451515", "0.64482665", "0.6439221", "0.64075625", "0.6402235", "0.6397011", "0.63884586", "0.6368355", "0.6348159", "0.63248277", "0.6318543", "0.6276382", "0.62726307", "0.6265805", "0.6256887", "0.6216539", "0.6215221", "0.6202763", "0.6202138", "0.6193199", "0.61904556", "0.6167668", "0.61671656", "0.61640817", "0.6163634", "0.6162046", "0.6156052", "0.61469465", "0.6117109", "0.6110208", "0.6102176", "0.60930604", "0.60490847", "0.60423785", "0.60262895", "0.60203224", "0.6020203", "0.60156864", "0.5999818", "0.599374", "0.59866804", "0.5975084", "0.59464025", "0.5942491", "0.59397817", "0.59209216", "0.59203386", "0.5910734", "0.5909622", "0.58872896", "0.58870184", "0.5883442", "0.5877457", "0.5862025", "0.5858354", "0.5854816", "0.58515084", "0.58482045", "0.58331746", "0.5831269", "0.58197874", "0.58146", "0.5799266", "0.57954705", "0.5787094", "0.57779676", "0.5766474", "0.5758506", "0.5748816", "0.57452166", "0.5742536", "0.57392836", "0.5727992", "0.57199913", "0.57185924", "0.5716156", "0.57149196", "0.57096845", "0.5709238", "0.5704766", "0.57017463", "0.5696276", "0.5686285" ]
0.7704585
0
Divides two NumberP variables.
public static NumberP Division(NumberP first, NumberP second) { return OperationsManaged.PerformArithmeticOperation ( first, second, ExistingOperations.Division ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double divisao (double numero1, double numero2){\n\t}", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "public int division(int a, int b) {\n return a / b;\n }", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "BaseNumber divide(BaseNumber operand);", "public static NodeValue numDivide(NodeValue nv1, NodeValue nv2) {\n switch (classifyNumeric(\"divide\", nv1, nv2)) {\n case OP_INTEGER : {\n // Note: result is a decimal\n BigDecimal d1 = new BigDecimal(nv1.getInteger()) ;\n BigDecimal d2 = new BigDecimal(nv2.getInteger()) ;\n return decimalDivide(d1, d2) ;\n }\n case OP_DECIMAL : {\n BigDecimal d1 = nv1.getDecimal() ;\n BigDecimal d2 = nv2.getDecimal() ;\n return decimalDivide(d1, d2) ;\n }\n case OP_FLOAT :\n // No need to check for divide by zero\n return NodeValue.makeFloat(nv1.getFloat() / nv2.getFloat()) ;\n case OP_DOUBLE :\n // No need to check for divide by zero\n return NodeValue.makeDouble(nv1.getDouble() / nv2.getDouble()) ;\n default :\n throw new ARQInternalErrorException(\"Unrecognized numeric operation : (\" + nv1 + \" ,\" + nv2 + \")\") ;\n }\n }", "@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}", "public static double div(double a, double b){\r\n\t\treturn a/b;\r\n\t}", "public static double div() {\n System.out.println(\"Enter dividend\");\n double a = getNumber();\n System.out.println(\"Enter divisor\");\n double b = getNumber();\n\n return a / b;\n }", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "public T div(T first, T second);", "double divide (double a, double b) {\n\t\tdouble result = a/b;\n\t\treturn result;\n\t}", "public static double div(double a, double b) {\n return a / b;\n }", "public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }", "public double divide(double a, double b) {\n\t\treturn a/b;\n\t}", "public static RationalNumber divide(RationalNumber r1, RationalNumber r2)\n\t{\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\tassert r2.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t\n\t\t//Numerator and Denominator initialization\n\t\tint divNum;\n\t\tint divDeno;\n\t\t\n\t\t//Extracting variables: \n\t\tint num1 = r1.getNumerator();\n\t\tint num2 = r2.getNumerator();\n\t\tint deno1 = r1.getDenominator();\n\t\tint deno2 = r2.getDenominator();\n\n\t\t//Division process: \n\t\tdivNum = num1 * deno2;\n\t\tdivDeno = num2 * deno1;\n\t\t\n\t\t//converting from an integer into a fraction:\n\t\tRationalNumber answer = new RationalNumberImpl_Luong(divNum,divDeno);\n\t\treturn answer;\n\n\t}", "public int div(int a, int b) {\n\t\t\treturn compute(a, b, OPER_DIV);\n\t\t}", "public void div(Fraction f1, Fraction f2) {\n\t\tnumerator = f1.getNumerator() * f2.getDenominator();\n\t\tdenominator = f1.getDenominator() * f2.getNumerator();\n\t\tint gcd = gcd(f1.getDenominator(), f2.getDenominator());\n\t\tnumerator /= gcd;\n\t\tdenominator /= gcd;\n\t}", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "public int division(){\r\n return Math.round(x/y);\r\n }", "public double Dividir(double operador_1, double operador_2){\n return DivisionC(operador_1, operador_2);\n }", "public int divide(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public static BIGNUM divide(BIGNUM bn1, BIGNUM bn2) {\n\t\tdouble divide = bn1.NUM / bn2.NUM;\n\t\tdouble newE = bn1.E - bn2.E;\n\t\t//System.out.println(\"divide function: \" + multiply + \"\\t\" + newE);\n\t\tBIGNUM result = new BIGNUM(divide, newE);\n\t\treturn result;\n\t}", "public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }", "public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }", "public static int [] divFrac(int[] operand1, int[] operand2) {\r\n \t//transfer the sign to the denominator before the switch\r\n \tif (operand2[0] <= -1) {\r\n \t\toperand2[1] *= -1;\r\n \t}\r\n \tint denominator = operand2[1]; //flip the second operand\r\n \toperand2[1] = Math.abs(operand2[0]);\r\n \toperand2[0] = denominator; //This way, the negative is always carried on the numerator\r\n \tint [] product = multFrac(operand1, operand2);\r\n \treturn product;\r\n }", "public void divide(Object divValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, divValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() / getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() / getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "public void divide()\r\n {\r\n if (fractionDisplay)\r\n {\r\n result = Operations.fractionFormat(leftOperand, rightOperand);\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n divisionFormatResult = true;\r\n }\r\n else \r\n {\r\n resultDoubles = Operations.divide(leftOperand, rightOperand);\r\n }\r\n resultResetHelper();\r\n }", "public static UnitP Division(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }", "public static int division(int x, int y) {\n\t\treturn x/y;\n\t}", "public Fraccion division() {\r\n Fraccion division = new Fraccion(operador1.getNumerador()*operador2.getDenominador() , operador1.getDenominador()*operador2.getNumerador());\r\n return simplify(division);\r\n }", "@Override\n public Float div(Float lhs, Float rhs) {\n\t\n\tassert(rhs != 0);\n\t\n\tfloat res = lhs/rhs;\n\treturn res;\n }", "@Override\r\n\tpublic void divLocal(float var) {\n\t}", "@Test\n\tpublic void testDivideTwoFractions() {\n\t\tFraction f1 = new Fraction(3,4);\n\t\tFraction f2 = new Fraction (3,4);\n\t\t\n\t\tFraction expected = new Fraction (1,1);\n\t\t\n\t\tassertEquals(expected, f1.divide(f2));\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public static UnitP Division(UnitP first, double second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division, \n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }", "public void divide() {\n\t\t\n\t}", "public double divide(double firstNumber, double secondNUmber){\n\t\tdouble result=0.0;\n\t\t\n\t\t\tresult = firstNumber / secondNUmber;\n\t\t\n\t\t\tSystem.out.println(\"hej \");\n\t\t\n\t\tif (Double.isInfinite(result)){\n\t\t\tSystem.out.println(\"7767878\");\n\t\t\treturn -1111.1111;\n\t\t}\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public static UnitP Division(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division) \n );\n }", "public static Object divide(Object val1, Object val2) {\n\n\t\tif (isFloat(val1)) {\n\t\t\tdouble doubleVal1 = ((BigDecimal) val1).doubleValue();\n\n\t\t\tif (isFloat(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigDecimal) val2).doubleValue());\n\t\t\t} else if (isInt(val2)) {\n\t\t\t\treturn new BigDecimal(doubleVal1\n\t\t\t\t\t\t/ ((BigInteger) val2).intValue());\n\t\t\t}\n\n\t\t}\n\t\tif (isFloat(val2)) {\n\t\t\tdouble doubleVal2 = ((BigDecimal) val2).doubleValue();\n\n\t\t\tif (isFloat(val1)) {\n\t\t\t\treturn new BigDecimal(((BigDecimal) val1).doubleValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t} else if (isInt(val1)) {\n\t\t\t\treturn new BigDecimal(((BigInteger) val1).intValue()\n\t\t\t\t\t\t/ doubleVal2);\n\t\t\t}\n\t\t}\n\t\tif (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).divide((BigInteger) val2);\n\t\t}\n\n\t\tthrow new OrccRuntimeException(\"type mismatch in divide\");\n\t}", "public static double divFraction(Fraction f1, Fraction f2) {\n\t\treturn (f1.getNumerator() * f2.getDenominator()) / (f1.getDenominator() * f2.getNumerator());\n\t}", "public Divide(Expression a, Expression b) {\n super(Expression.X_IS_UNDEFINED);\n this.a = a;\n this.b = b;\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static Rational divide(Rational num1, Rational num2){\r\n Rational quotient = new Rational();\r\n // keep change flip\r\n \r\n quotient.numerator = num1.getNumerator() * num2.getDenominator();\r\n quotient.denominator = num1.getDenominator() * num2.getNumerator();\r\n \r\n quotient.reduce();\r\n return quotient;\r\n }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "Rational divide(Rational p){\n Rational firstarg=new Rational();\n firstarg.numerator=numerator;\n firstarg.denominator=denominator;\n\n\n firstarg.numerator=firstarg.numerator*p.denominator;\n firstarg.denominator=p.numerator*firstarg.denominator;\n return firstarg;\n }", "public Point divide(double divisor)\n {\n return new Point(this.x / divisor, this.y / divisor);\n }", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "private static void divide(int[] n1, int[] n2, int[] quotient, int []remainder) {\n\t\tif (isZero(n2)) {\n\t\t\tthrow new ArithmeticException (\"Divide by Zero\");\n\t\t}\n\t\t\n\t\tclear (remainder);\n\t\tclear (quotient);\n\t\t\n\t\t// if clearly greater, then copy integer remainder\n\t\tif (compareTo(n2,n1) > 0) {\n\t\t\tint idx = remainder.length-1;\n\t\t\tfor (int i = 0; i < n1.length; i++ ) { \n\t\t\t\tremainder[idx--] = n1[i];\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// This returns a copy of n1/n2\n\t\tn1 = reduce(n1);\n\t\tn2 = reduce(n2);\n\n\t\t// we have to extend, and reduce length. Note that this WILL terminate because\n\t\t// we would have left earlier if n2 were greater than n1.\n\t\twhile (compareTo(n2,0,n2.length,n1,0) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t}\n\t\t\n\t\t// return string \"quot+remainder\";\n\t\tString result = subProcess(n1, n2);\n\t\t\n\t\t// pack into quotient/remainder.\n\t\tint idx = result.indexOf(\"+\");\n\t\tif (idx == -1) {\n\t\t\tfor (int i = 0; i < quotient.length; i++) {\n\t\t\t\tquotient[i] = 0;\n\t\t\t}\n\t\t\tpack(remainder,result); // ever happen?\n\t\t} else {\n\t\t\tpack(quotient,result.substring(0,idx));\n\t\t\tpack(remainder,result.substring(idx+1));\n\t\t}\n\t}", "public static void divideFrac(int[] op1, int[] op2, int[] finalAnswer) {\n \tfinalAnswer[1] = (op1[1]*op2[2]);\t//multiply frac 1 num and frac 2 denom to get new num; store in index 1 of finalanswer\r\n \tfinalAnswer[2] = (op1[2]*op2[1]);\t//multiply frac 1 denom and frac 2 num to get new denom; store in index 2 of final answer\r\n }", "public final void div() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue / topMostValue);\n\t\t\t}\n\t\t}\n\t}", "public void enfoncerDiv() {\n\t\ttry {\n\t\t\tthis.op = new Div();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (ArithmeticException e) {\n\t\t\tSystem.out.println(\"Erreur : Division par zero !\");\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "public Fraction divide( Fraction divisor ) {\n // Division ist genau wie multiplication aber in Kreuz\n // also, wir tauschen den numerator und den denomitanor aus, und\n // multiplizieren wie üblich\n Fraction upsideDown = new Fraction( divisor.denominator, divisor.numerator );\n Fraction result = this.multiply( upsideDown );\n\n return result;\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n\tpublic int div(int val1, int val2) throws ZeroDiv {\n\t\tif (val2 == 0){\n\t\t\tZeroDiv e = new ZeroDiv(\"probleme\");\n\t\t\tthrow e;\n\t\t}\n\t\telse\n\t\t\treturn val1/val2;\n\t}", "void div(double val) {\r\n\t\tresult = result / val;\r\n\t}", "@Override\n public InterpreterValue div(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the division-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() / ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the division-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() / ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '/' is not defined for type double and \" + v.getName());\n\n }", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}", "public Fraction divide(Fraction divisor)\n {\n Fraction flipDivisor = divisor.reciprocal();\n Fraction newFraction = new Fraction();\n newFraction = this.multiply(flipDivisor);\n return newFraction;\n }", "int division(int num1, int num2) {\n System.out.print(\"\\nIn Child Class : \");\n return num1 / num2;\n }", "@Override\r\n\tpublic int call(int a, int b) {\n\t\treturn a/b;\r\n\t}", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private void divOperands() {\n\t\tif (text_Operand3.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (text_Operand4.getText().isEmpty()) {\n\t\t\ttext_Operand4.setText(\"5\");\n\t\t}\n\n\t\t/*\n\t\t * It will pass the value to the bussiness logic so trhat the further logics can\n\t\t * be performed on them.\n\t\t */\n\n\t\tif (conversionIsRequired(comboBox1.getSelectionModel().getSelectedItem(),\n\t\t\t\tcomboBox2.getSelectionModel().getSelectedItem())) {\n\t\t\tdouble op1 = Double.parseDouble(text_Operand1.getText());\n\t\t\tdouble op1et = Double.parseDouble(text_Operand3.getText());\n\t\t\tperform.setOperand1(String.valueOf(op1 * theFactor));\n\t\t\tperform.setOperand3(String.valueOf(op1et * theFactor));\n\t\t}\n\t\tif (binaryOperandIssues()) // If there are issues with the operands, return\n\t\t\treturn; // without doing the computation\n\t\tdouble x = Double.parseDouble(text_Operand2.getText());\n\t\tif (x == 0f) {\n\t\t\tlabel_errResult.setText(\"Divide by zero is not allowed\");\n\t\t\ttext_Result.setText(\"\");\n\n\t\t} else {\n\t\t\tString theAnswer = perform.division(); // Call the business logic Division method\n\t\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\t\tString theAnswer1 = perform.division1(); // Call the business logic Division method\n\t\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\n\t\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\t\tlabel_Result.setText(\"Quotient\"); // change the title of the field to \"Divide\".\n\t\t\t\tlabel_Result.setLayoutX(70);\n\t\t\t\tlabel_Result.setLayoutY(345);\n\t\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\t\t// change the title of the field to \"Divide\"\n\t\t\t\tcomboBoxRes.getSelectionModel().select(comboBox1.getSelectionModel().getSelectedItem() + \"/\"\n\t\t\t\t\t\t+ comboBox2.getSelectionModel().getSelectedItem());\n\t\t\t} else { // Some error occurred while doing the division.\n\t\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\t// Reset the result label if there is an error.\n\t\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t\t}\n\n\t\t}\n\t}", "public static Interval division(Interval in1, Interval in2){\r\n if(in2.getSecondExtreme()==0.0||in2.getFirstExtreme()==0.0){\r\n System.out.println(\"División por cero!\");\r\n System.exit(1);\r\n return new Interval();\r\n }else{\r\n return new Interval(in1.getFirstExtreme()/in2.getSecondExtreme(),in1.getSecondExtreme()/in2.getFirstExtreme(),in1.getFEincluded()=='['&&in2.getSEincluded()==']'?in1.getFEincluded():'(',in1.getSEincluded()==']'&&in2.getFEincluded()=='['?in1.getSEincluded():')');\r\n }\r\n }", "public static <T extends Vector> T Divide(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] / b.axis[i];\n }\n return result;\n }\n return result;\n }", "public int dividir(int a, int b) throws ExececaoCalculo{\n \n if(b==0){\n //ExececaoCalculo é uma class que esta nesse pacote atual\n throw new ExececaoCalculo(a, b);\n }\n return a/b;\n }", "@Override\n\tpublic double dividir(double numerador, double denominador) throws ArithmeticException {\n\t\treturn 0;\n\t}", "public final void mDIV() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.DIV;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:714:5: ( 'div' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:714:7: 'div'\n\t\t\t{\n\t\t\t\tthis.match(\"div\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public static RuntimeValue divide(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteIntSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_INT_SAMPLE,\n Operators.divideIntegers(left.getDiscreteIntSample(), right.getDiscreteIntSample())\n );\n }\n\n if (isDiscreteFloatSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_FLOAT_SAMPLE,\n Operators.divideFloats(left.getDiscreteFloatSample(), right.getDiscreteFloatSample())\n );\n }\n\n if (isDiscreteFloatSample(left) && hasSingleValue(left.getDiscreteFloatSample()) && isContinuousSample(right)) {\n return new RuntimeValue(\n RuntimeValue.Type.CONTINUOUS_SAMPLE,\n right.getContinuousSample().multiply(1 / left.getDiscreteFloatSample().single())\n );\n }\n\n if (isDiscreteFloatSample(right) && hasSingleValue(right.getDiscreteFloatSample()) && isContinuousSample(left)) {\n return new RuntimeValue(\n RuntimeValue.Type.CONTINUOUS_SAMPLE,\n left.getContinuousSample().multiply(1 / right.getDiscreteFloatSample().single())\n );\n }\n\n throw new RuntimeException(\"Dividing incompatible types\");\n }", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@When(\"the Calculator divides {int} by {int} is Divided\")\n\tpublic void andAreDivided(Integer num1, Integer num2) {\n\t\tactualResult = calculator1.divide(num1, num2);\n\t}", "@Test\n public void test_DivisionWithTwoVariables() {\n Operator add = new Operator(new Constant(10), new Variable(\"x\"), Operator.Operators.ADD);\n Operator min = new Operator(new Constant(12), new Variable(\"y\"), Operator.Operators.MINUS);\n Operator mul = new Operator(add, min, Operator.Operators.MUL);\n Operator add2 = new Operator(new Constant(5), new Variable(\"x\"), Operator.Operators.ADD);\n Operator div = new Operator(mul, add2, Operator.Operators.DIV);\n\n\t\t/* x = 3 y = 2 */\n Context c = new Context();\n c.assign(\"x\", 3);\n c.assign(\"y\", 2);\n\n assertThat(div.evaluate(c), is(16.25));\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "public void divide(Object divValue) {\n\t\tvalue = operate(\n\t\t\t\ttransform(value),\n\t\t\t\ttransform(divValue),\n\t\t\t\t(v1, v2) -> v1 / v2,\n\t\t\t\t(v1, v2) -> v1 / v2 //integer division, cannot divide by zero\n\t\t);\n\t}", "public Rational divide(Rational other)\n\t{\n\t\tint divNumer = (getNumer() * other.getDenom());\n\t\tint divDenom = (getDenom() * other.getNumer());\n\n\t\tRational quotient = new Rational(divNumer, divDenom);\n\t\tquotient.normalize();\n\t\treturn quotient;\n\t}", "@Override\r\n\tpublic vec3 div(float var) {\n\t\treturn null;\r\n\t}", "public BigDecimal divideNumbers(List<Integer> numbers) throws Exception;", "private static void div(int[] numbers) {\n\t\tint sum=-1;\n\t\ttry {\n\t\t\tsum = numbers[0] / numbers[1];\n\t\t\tSystem.out.println(sum);\n\t\t} catch (ArithmeticException ex) {\n\t\t\tSystem.out.println(\"Sie dürfen um gottes Willen nicht durch NULL dividieren!\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static double Div(double x, double y) \n\t{\n\t\t\n\t\tif(y !=0)\n\t\t\treturn x / y;\n\t\telse \n\t\t\tSystem.out.println(\"FEL\");\n\t\t\treturn 0;\n\t\t\n\t}", "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\tSystem.out.println(\"\\n\\t le nombre 2 est nul, devision par 0 est impossible \");\n\t}", "public Fraction dividedBy(Fraction other) {\n Fraction end = times(other.getReciprocal());\n\n return end;\n\n }", "public static Rational divide(Rational one, Rational two) {\n\t\t// prevent divide by zero\n\t\tif (two.numerator == 0)\n\t\t\tthrow new RuntimeException(\"Cannot divide by Rational with numerator of 0 (divide by zero exception)\");\n\t\t\t\t\t\n\t\treturn new Rational(one.numerator * two.denominator, one.denominator * two.numerator);\n\t}", "private static double calcDiv(float f, float g) {\n\t\treturn f / g;\n\t}", "@Override\n\tpublic void\n\tscalarDiv( double value )\n\t{\n\t\tdata[0] /= value;\n\t\tdata[1] /= value;\n\t\tdata[2] /= value;\n\t}", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "public <V extends Number> FluentExp<V> div (SQLExpression<V> expr)\n {\n return new Div<V>(this, expr);\n }", "@Test\n\tpublic void divisionTest() {\n\t\tMathOperation division = new Division();\n\n\t\tassertEquals(0, division.operator(ZERO, FIVE).intValue());\n\t\tassertEquals(4, division.operator(TWENTY, FIVE).intValue());\n\t}", "public int division(int num1, int num2, int clientNo) {\n\t\ttry {\n\t\t\t// append details of request coming in\n\t\t\tserverDisplay.append(\"\\nRequest Coming in...\");\n\t\t\t// the client number and IP address\n\t\t\tserverDisplay.append(\"\\nClient: \" + clientNo + \" connected at IP: \" + InetAddress.getLocalHost().getHostAddress());\n\t\t\t// client instance number\n\t\t\tserverDisplay.append(\"\\nRequest from Client: \" + clientNo);\n\t\t\t// number 1 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 1: \" + num1);\n\t\t\t// number 2 entered by client\n\t\t\tserverDisplay.append(\"\\nOperand 2: \" + num2);\n\t\t\t// the chosen operator\n\t\t\tserverDisplay.append(\"\\nOperator: /\");\n\t\t\t// display to server coming in from client\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// append calculating\n\t\tserverDisplay.append(\"\\nCalculating...\");\n\t\t// append what the result is\n\t\tserverDisplay.append(\"\\nData to Client \" + clientNo + \": \" + (num1 / num2));\n\t\t// display answer\n\t\tserverDisplay.append(\"\\nAnswer :\" + (num1 / num2));\n\t\t// append sending back to the client\n\t\tserverDisplay.append(\"\\nSending result back to the client...\");\n\t\tserverDisplay.append(\"\\n================================================\");\n\t\t// return the two numbers divided\n\t\treturn (num1 / num2);\n\t}", "public <V extends Number> FluentExp<V> div (V value)\n {\n return new Div<V>(this, value);\n }", "public L1513_Rational divide(L1513_Rational secondL1513_Rational) {\n\t long n = numerator * secondL1513_Rational.getDenominator();\n\t long d = denominator * secondL1513_Rational.numerator;\n\t return new L1513_Rational(n, d);\n\t }", "@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }", "public static Rational divide(Rational a, Rational b) {\n\t\tint lower = a.getDenominator() * b.getNumerator();\n\t\tint upper = b.getDenominator() * a.getNumerator();\n\n\t\treturn new Rational(upper, lower);\n\t}", "public static double divide(int left, int right){\n double output = (double)left/right;\n if (output == Double.POSITIVE_INFINITY) {\n throw new ArithmeticException(\"Cannot divide by 0\");\n }\n return (double)left / right;\n }" ]
[ "0.734023", "0.6713601", "0.67083526", "0.6691943", "0.6687731", "0.66715103", "0.6615202", "0.6608906", "0.6600549", "0.6597882", "0.65927625", "0.64831936", "0.6452217", "0.6420667", "0.63618016", "0.6326452", "0.6310407", "0.6304683", "0.6288781", "0.62459594", "0.6221721", "0.6193672", "0.6179171", "0.6155114", "0.6146467", "0.6132007", "0.6125929", "0.6124131", "0.6121936", "0.6116507", "0.60678375", "0.60654193", "0.60570586", "0.6048999", "0.60208386", "0.60088104", "0.5981172", "0.5972645", "0.5963408", "0.5958854", "0.59433484", "0.5928582", "0.59205747", "0.5898151", "0.5887747", "0.5886091", "0.58706427", "0.5863275", "0.5860093", "0.5859122", "0.58571464", "0.5840882", "0.5839504", "0.5836205", "0.5818908", "0.58039755", "0.5794975", "0.5791949", "0.5787455", "0.57867396", "0.5779128", "0.57701975", "0.576429", "0.5762517", "0.57486415", "0.5730604", "0.5706058", "0.5696336", "0.5695898", "0.5663847", "0.5657177", "0.56421643", "0.5629286", "0.56253743", "0.5615708", "0.5614854", "0.5587239", "0.55864024", "0.5583548", "0.5580922", "0.55712515", "0.555913", "0.55535996", "0.55521613", "0.55476093", "0.5542628", "0.5528533", "0.5524741", "0.552334", "0.5518501", "0.55161273", "0.5507059", "0.5480582", "0.54717946", "0.5462132", "0.544748", "0.5432454", "0.54310095", "0.5421529", "0.5412661" ]
0.72399664
1
Calculates the modulo of two NumberP variables.
public static NumberP Modulo(NumberP first, NumberP second) { return OperationsManaged.PerformArithmeticOperation ( first, second, ExistingOperations.Modulo ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int modulo(int a, int b) {\n return a % b;\n }", "private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}", "static int modulo(int x, int y) {\n return (x%y);\n }", "public static NodeValue numericMod(NodeValue nv1, NodeValue nv2) {\n switch (XSDFuncOp.classifyNumeric(\"mod\", nv1, nv2)) {\n // a = (a idiv b)*b+(a mod b)\n // => except corner cases (none or xsd:decimal except precision?)\n // a - (a idiv b)*b\n\n case OP_INTEGER :\n // Not BigInteger.mod. F&O != Java.\n BigInteger bi1 = nv1.getInteger();\n BigInteger bi2 = nv2.getInteger();\n if ( BigInteger.ZERO.equals(bi2) )\n throw new ExprEvalException(\"Divide by zero in MOD\") ;\n BigInteger bi3 = bi1.remainder(bi2);\n return NodeValue.makeInteger(bi3);\n case OP_DECIMAL :\n BigDecimal bd_a = nv1.getDecimal();\n BigDecimal bd_b = nv2.getDecimal();\n if ( BigDecimal.ZERO.compareTo(bd_b) == 0 )\n throw new ExprEvalException(\"Divide by zero in MOD\") ;\n // This is the MOD for X&O\n BigDecimal bd_mod = bd_a.remainder(bd_b);\n return NodeValue.makeDecimal(bd_mod);\n case OP_FLOAT :\n float f1 = nv1.getFloat();\n float f2 = nv2.getFloat();\n if ( f2 == 0 )\n throw new ExprEvalException(\"Divide by zero in MOD\") ;\n return NodeValue.makeFloat( f1 % f2) ;\n case OP_DOUBLE :\n double d1 = nv1.getDouble();\n double d2 = nv2.getDouble();\n if ( d2 == 0 )\n throw new ExprEvalException(\"Divide by zero in MOD\") ;\n return NodeValue.makeDouble(d1 % d2) ;\n default :\n throw new ARQInternalErrorException(\"Unrecognized numeric operation : (\" + nv1 + \" ,\" + nv2 + \")\") ;\n }\n }", "public static float modulus(float a, float b)\n\t{\n\t\treturn (a % b + b) % b;\n\t}", "public static int mod(int x, int y) {\n return x % y;\n }", "public static BinaryExpression modulo(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.Modulo, expression0, expression1);\n }", "public static NumberP Division(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Division\n ); \t\n }", "public static BinaryExpression moduloAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.ModuloAssign, expression0, expression1);\n }", "private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }", "@Test\n public void testPowerMod_0_0_2() {\n NaturalNumber n = new NaturalNumber2(0);\n NaturalNumber p = new NaturalNumber2(0);\n NaturalNumber m = new NaturalNumber2(2);\n CryptoUtilities.powerMod(n, p, m);\n assertEquals(\"1\", n.toString());\n assertEquals(\"0\", p.toString());\n assertEquals(\"2\", m.toString());\n }", "public static BinaryExpression modulo(Expression expression0, Expression expression1, Method method) {\n return makeBinary(\n ExpressionType.Modulo,\n expression0,\n expression1,\n shouldLift(expression0, expression1, method),\n method);\n }", "public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }", "public static int mod(int a,int b) {\n\t\tif (b == 0) return 0;\n\t\tif (b<0) {\n\t\t\treturn -mod(-a,-b);\n\t\t} else if(a<0) {\n\t\t\twhile (Math.abs(a-b)>b)a+=b;\n\t\t\treturn a;\n\t\t} else {\n\t\t\twhile (a-b>=0) a-=b;\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}", "public ModuloOperator(Number divisor, Number remainder) {\n\t\tthis.divisor = divisor;\n\t\tthis.remainder = remainder;\n\t}", "private static int wrap(int a, int b)\n {\n return (a < 0) ? (a % b + b) : (a % b);\n }", "@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static BinaryExpression moduloAssign(Expression expression0, Expression expression1, Method method) {\n return makeBinary(ExpressionType.ModuloAssign, expression0, expression1, false, method);\n }", "int luasPP(int a, int b){\r\n return a*b;\r\n }", "static int modPow(int b, int p, int m) {\n b = b % m;\n int res = 1;\n\n while (p > 0) {\n if (p % 2 == 1)\n res = (res * b) % m;\n p /= 2;\n b = b * b % m;\n }\n return res;\n }", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "public double divisao (double numero1, double numero2){\n\t}", "protected final double mod(double value, double modulus) {\n return (value % modulus + modulus) % modulus;\n }", "private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. if 0 or 1, do this\n c *= 2;\n f = (f * f) % n;\n\n // If current bit is equal to 1, then do this\n if (k[i] == '1') {\n c += 1;\n f = (f * a) % n;\n }\n }\n\n // returns the remainder\n return f;\n }", "public static void calcIntegersDivBy()\r\n\t{\r\n\t\tint x = 5;\r\n\t\tint y = 20;\r\n\t\tint p = 3;\r\n\t\tint result = 0;\r\n\t\tif (x % p == 0)\r\n\t\t\tresult = (y / p - x / p + 1);\r\n\t\telse\r\n\t\t\tresult = (y / p - x / p);\r\n\t\tSystem.out.println(result);\r\n\t}", "public static int getRemainder(int num1, int num2) {\n\t\tString message = \"Remainder of this operation is: \";\n\t\tint result = num1 % num2;\n\t\tSystem.out.println(message+result);\n\t\treturn result;\n\t\t\n\t//\tSystem.out.println(\"Method execution is complete\");\n\t}", "public static Object mod(Object val1, Object val2) {\n\t\tif (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).mod((BigInteger) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in mod\");\n\t}", "int getRemainderPercent();", "public void operacionletradni(int dni, int result){\n this.result=dni%23;}", "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b);\n System.out.println(a * b);\n System.out.println(a / b);\n System.out.println(a / (double)b);\n\n System.out.println(a % b);\n\n }", "private static long modPow(long a, long b, long c) {\n long res = 1;\n for (int i = 0; i < b; i++)\n {\n res *= a;\n res %= c;\n }\n return res % c;\n }", "public double permutasi(double num1, double num2){\n if (num1<num2||(num1<0&&num2<0)) {\n System.out.println(\"bilangan tidak benar\");\n return 0;\n }\n return faktorial(num1)/faktorial(num1-num2);\n }", "public final void mod() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue > 0) {\n\t\t\t\tpush(secondTopMostValue % topMostValue);\n\t\t\t}\n\t\t}\n\t}", "public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the first number that you want to divide:\");\n int v_div_number_1 = keyboard.nextInt();\n System.out.println(\"please put the second number that you want to divide:\");\n int v_div_number_2 = keyboard.nextInt();\n int v_total_div= v_div_number_1/v_div_number_2;\n return v_total_div;\n }", "public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "@Override\n public InterpreterValue mod(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the modulo-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() % ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the modulo-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() % ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '%' is not defined for type double and \" + v.getName());\n\n }", "public long modPow(int b, int p, int m) {\r\n if (p == 0)\r\n return 1;\r\n else if (p % 2 == 0)\r\n return square(modPow(b, p / 2, m)) % m;\r\n else\r\n return ((b % m) * modPow(b, p - 1, m)) % m;\r\n }", "public static float modulo(float fValue, float modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n float remainder = fValue % modulus;\n float result;\n if (fValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0f : result;\n assert result < modulus : result;\n return result;\n }", "private static long fibMod(long n, long m) {\n return fib(n % pisano(m), m) % m;\n }", "public static void main(String[] args) {\n\n double fraction = 1/2.0;\n System.out.println(fraction);\n\n //Modules is the remainder of a division problem\n //25 % 6 = 1\n //31 % 5 = 1\n //17 % 3 = 2\n //4 % 2 = 0\n //5 % 2 = 1\n //6 % 2 = 0\n //121 % 100 = 21\n // 47 % 15 = 2\n //55 % 15 =10\n\n //5 + 2 * 4 =\n //12 / 2 - 4 =\n //4 + 17 % 2 -1 =\n //4 + 5 * 2 / 2 + 1 =\n //4 * (6 + 3 * 2) + 7 =\n\n System.out.println(5 + 2 * 4);\n System.out.println (12 / 2 -4);\n System.out.println(4 + 17 % 2 - 1);\n System.out.println(4 + 5 * 2 / 2 + 1);\n System.out.println(4 * (6 + 3 *2) + 7);\n\n\n }", "public T div(T first, T second);", "public static double modulo(double dValue, double modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n double remainder = dValue % modulus;\n double result;\n if (dValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0.0 : result;\n assert result < modulus : result;\n return result;\n }", "public void testModulusValue() throws Exception {\r\n // Create key pair using java.security\r\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\", \"BC\");\r\n keyGen.initialize(1024, new SecureRandom());\r\n KeyPair keyPair = keyGen.generateKeyPair();\r\n \r\n PublicKeyRSA rsaKey = (PublicKeyRSA)KeyFactory.createInstance(keyPair.getPublic(), \"SHA1WITHRSA\", null);\r\n byte[] modulusData = ((ByteField)rsaKey.getSubfield(CVCTagEnum.MODULUS)).getData();\r\n assertTrue(\"Leading zero found in modulus\", modulusData[0]!=0);\r\n }", "public static NumberP Multiplication(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Multiplication\n ); \t\n }", "long perm(int n, int m, long mod) {\n long result = 1;\n for (int i = n - m + 1; i <= n; ++i) {\n result = result * i % mod;\n }\n return result;\n }", "static String kangaroo(int x1, int v1, int x2, int v2) {\n int x=x1-x2;\n int v=v2-v1;\n if(v!=0){\n if(x%v==0 && x/v>0){\n return \"YES\";\n }else {return \"NO\";}\n\n }else {return \"NO\";}\n\n }", "public double divide(double a, double b, boolean rem){ return rem? a%b: a/b; }", "public static double modulo(double val, double mod) {\n double n = Math.floor(val / mod);\n double r = val - n * mod;\n return Util.almost_equals(r,mod) ? 0.0 : r;\n }", "private static String bigIntegerNChooseRModP(int N, int R, int P) {\n if (R == 0) return \"1\";\n BigInteger num = BigInteger.ONE;\n BigInteger den = BigInteger.ONE;\n while (R > 0) {\n num = num.multiply(BigInteger.valueOf(N));\n den = den.multiply(BigInteger.valueOf(R));\n BigInteger gcd = num.gcd(den);\n num = num.divide(gcd);\n den = den.divide(gcd);\n N--;\n R--;\n }\n num = num.divide(den);\n num = num.mod(BigInteger.valueOf(P));\n return num.toString();\n }", "public static void modgcd (int a[], int b[], int gcd[]) {\n\t\tif (isZero(a)) { assign (gcd, a); return; }\n\t\tif (isZero(b)) { assign (gcd, b); return; }\n\t\t\n\t\t// align a and b to have same number of digits and work on copies\n\t\ta = copy(normalize(a, b.length));\n\t\tb = copy(normalize(b, a.length));\n\t\t\n\t\t// ensure that a is greater than b. Also return trivial gcd.\n\t\tint rc = compareTo(a,b);\n\t\tif (rc == 0) { assign (gcd, a); return; }\n\t\tif (rc < 0) {\n\t\t\tint t[] = b;\n\t\t\tb = a;\n\t\t\ta = t;\n\t\t}\n\t\t\n\t\tint quot[] = new int[a.length];\n\t\tint remainder[] = new int[a.length];\n\t\twhile (!isZero(b)) {\n\t\t\tint t[] = copy (b);\n\t\t\tdivide (a, b, quot, remainder);\n\t\t\tassign (b, remainder);\t\t\t\n\t\t\tassign (a, t);\n\t\t}\n\n\t\t// value held in a is the computed gcd of (a,b).\n\t\tassign (gcd, a);\n\t}", "public HugeUInt mod(HugeUInt b) {\r\n \t HugeUInt q = new HugeUInt(this);\r\n HugeUInt t;\r\n HugeUInt m;\r\n int lenA = q.getSize();\r\n int lenB = b.getSize();\r\n int sh = lenA - lenB;\r\n int d; \r\n while (b.compareTo(q) <= 0) {\r\n \tsh = lenA - lenB;\r\n t = q.shiftRight(sh);\r\n if (t.compareTo(b) < 0) {\r\n sh--;\r\n }\r\n d = 9;\r\n m = b.multiply(d).shiftLeft(sh);\r\n while (q.compareTo(m) < 0) {\r\n d--;\r\n m = b.multiply(d).shiftLeft(sh);\r\n }\r\n q = q.subtract(m);\r\n q.trim();\r\n lenA = q.getSize();\r\n }\r\n q.trim();\r\n return q;\r\n }", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "@Test\n public void testModulus10() {\n System.out.println(\"modulus10\");\n int pz = 7;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 3;\n int result = instance.modulus10(pz);\n assertEquals(expResult, result);\n pz = 5;\n expResult = 5;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n pz = 17;\n expResult = 3;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n }", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }", "public void mulop() {\n if (lexer.token != Symbol.MULT && lexer.token != Symbol.DIV) {\n error.signal(\"Wrong operator for mulop. Not multiplication or division.\");\n }\n lexer.nextToken();\n }", "public static void main(String[] args) {\n int int1 = 10, int2 = 20, int3 = 30;\n System.out.println(int1 % int2 * int3 + int1 / int2);\n \n }", "private String getModulo(){\n int lenghtOfInput = String.valueOf(modulo).length();\n String even = new String();\n String odd = new String();\n\n if (lenghtOfInput != 8){\n return modulo + getString(R.string.notValidMatrikelNotePt1) + lenghtOfInput + getString(R.string.notValidMatrikelNotePt2);\n } else {\n int[] arr = new int[lenghtOfInput];\n\n //make an array of digits\n int i = 0;\n do {\n arr[i] = modulo % 10;\n modulo = modulo / 10;\n i++;\n } while (modulo != 0);\n\n //seperate even digits from odd ones\n for (int runner = 0; runner < lenghtOfInput; runner++){\n if(arr[runner] % 2 == 0){\n even += arr[runner];\n } else {\n odd += arr[runner];\n }\n }\n\n //Sorting of the char-rays which are numbers\n char[] evenSorted = even.toCharArray();\n Arrays.sort(evenSorted);\n String evenSortedString = new String(evenSorted);\n char[] oddSorted = odd.toCharArray();\n Arrays.sort(oddSorted);\n String oddSortedString = new String(oddSorted);\n\n return getString(R.string.solutionTxt) + \"\\n\" + evenSortedString + oddSortedString;\n }\n }", "public OPE(BigInteger modulus)\n\t{\t\t\n\t\tthis.modulus = modulus;\n\t}", "long modInverse(long a, long m) \r\n { \r\n\t\t long m0 = m; \r\n long y = 0, x = 1; \r\n \r\n if (m == 1) \r\n return 0; \r\n \r\n while (a > 1) \r\n { \r\n // q is quotient \r\n \tlong q = a / m; \r\n \r\n \tlong t = m; \r\n \r\n // m is remainder now, process \r\n // same as Euclid's algo \r\n m = a % m; \r\n a = t; \r\n t = y; \r\n \r\n // Update x and y \r\n y = x - q * y; \r\n x = t; \r\n } \r\n \r\n // Make x positive \r\n if (x < 0) \r\n x += m0; \r\n \r\n return x; \r\n }", "public final void mMOD() throws RecognitionException {\n try {\n int _type = MOD;\n // /Users/benjamincoe/HackWars/C.g:214:5: ( '%' )\n // /Users/benjamincoe/HackWars/C.g:214:7: '%'\n {\n match('%'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ModuloOperator{divisor=\" + divisor.toString() + \", remainder=\" + remainder.toString() + \"}\";\n\t}", "public static long PGCD (int a, int b) {\r\n\r\n\t\tlong pgcd = 0;\r\n\t\tint r = 0;\r\n\r\n\t\ta = Math.abs(a);\r\n\t\tb = Math.abs(b);\r\n\r\n\t\twhile(true){\r\n\t\t\tif (b == 0) {\r\n\t\t\t\tpgcd = a;\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tr = a % b;\r\n\t\t\t\ta = b;\r\n\t\t\t\tb = r;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pgcd;\r\n\r\n\t}", "private static int pair_GCF(int a, int b) {\n int t;\n while (b != 0) {\n t = a;\n a = b;\n b = t % b;\n }\n return a;\n }", "public void modulo(MyDouble val) {\n this.setValue(this.getValue() % val.getValue());\n }", "public static BinaryExpression moduloAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) {\n return makeBinary(ExpressionType.ModuloAssign, expression0, expression1, false, method, lambdaExpression);\n }", "public static int modulo(int iValue, int modulus) {\n assert Validate.positive(modulus, \"modulus\");\n\n int remainder = iValue % modulus;\n int result;\n if (iValue >= 0) {\n result = remainder;\n } else {\n result = (remainder + modulus) % modulus;\n }\n\n assert result >= 0f : result;\n assert result < modulus : result;\n return result;\n }", "public int ppcm(int a, int b) throws Exception {\n return a*b / pgcdByDE(a,b);\n }", "public int division(int a, int b) {\n return a / b;\n }", "public int pgcdByDE(int a, int b) throws Exception{\n if(a <1 || b <1){\n throw new Exception(\"a et b doivent etre >= 1\");\n }\n int reste = a > b ? a % b : b % a;\n if(reste == 0)\n return a > b ? b : a;\n if(a > b){\n a = reste;\n }else b = reste;\n return pgcdByDE(a,b);\n }", "public final EObject ruleModulusOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4891:28: ( ( () otherlv_1= '%' ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4892:1: ( () otherlv_1= '%' )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4892:1: ( () otherlv_1= '%' )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4892:2: () otherlv_1= '%'\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4892:2: ()\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4893:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getModulusOperatorAccess().getModulusOperatorAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,67,FOLLOW_67_in_ruleModulusOperator11025); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getModulusOperatorAccess().getPercentSignKeyword_1());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public void incrementCount () {\n count = count + 1; // == count++ == count += 1 \n if (count == modulus) {\n count = 0;\n }\n }", "@Test\n public void test(){\n int a = 3;\n int b = 6;\n System.out.println(a % b);\n System.out.println(Long.MAX_VALUE);\n }", "public int mirrorReflection(int p, int q) {\n int k = 1;\n while (q * k % p != 0)\n k++;\n if (q * k / p % 2 != 0)\n return k % 2 == 0 ? 2 : 1;\n return k % 2 ==0 ? -1 : 0;\n }", "int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}", "static int modInverse(int a, int m) \n\t{ \n\t\tint m0 = m; \n\t\tint y = 0, x = 1; \n\t\tif (m == 1) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (a > 1) \n\t\t{ \n\n\t\t\t// q is quotient \n\t\t\tint q = a / m; \n\t\t\tint t = m; \n\n\t\t\t// m is remainder now, process \n\t\t\t// same as Euclid's algo \n\t\t\tm = a % m; \n\t\t\ta = t; \n\t\t\tt = y; \n\n\t\t\t// Update y and x \n\t\t\ty = x - q * y; \n\t\t\tx = t; \n\t\t} \n\n\t\t// Make x positive \n\t\tif (x < 0) \n\t\t{ \n\t\t\tx += m0; \n\t\t} \n\n\t\treturn x; \n\t}", "public static long pow(long a, long n, long mod) {\n//\t\ta %= mod;\n long ret = 1;\n int x = 63 - Long.numberOfLeadingZeros(n);\n for (; x >= 0; x--) {\n ret = ret * ret % mod;\n if (n << 63 - x < 0) {\n ret = ret * a % mod;\n }\n }\n return ret;\n }", "public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }", "public PghModulo() {\r\n }", "BaseNumber divide(BaseNumber operand);", "public static void main001(String[] args) {\n\t\tint numberOne\t= 20;\n\t\tint numberTwo\t= 3;\n\t\tint result;\n\n\t\t// +\n\t\tresult\t= numberOne + numberTwo;\n\t\tSystem.out.println(numberOne + \" + \" + numberTwo + \" = \" + result);\n\n\t\t// -\n\t\tresult\t= numberOne - numberTwo;\n\t\tSystem.out.println(numberOne + \" - \" + numberTwo + \" = \" + result);\n\n\t\t// *\n\t\tresult\t= numberOne * numberTwo;\n\t\tSystem.out.println(numberOne + \" * \" + numberTwo + \" = \" + result);\n\n\t\t// /\n\t\t// 20 / 3 = 6 du 2\n\t\tresult\t= numberOne / numberTwo;\n\t\tSystem.out.println(numberOne + \" / \" + numberTwo + \" = \" + result);\n\n\n\t\t// %\n\t\tresult\t= numberOne % numberTwo;\n\t\tSystem.out.println(numberOne + \" % \" + numberTwo + \" = \" + result);\n\t}", "public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }", "@Test\n\tpublic void quotientAndReminder(){\n\t\t\n\t\tint dividend = 80;\n\t\tint divider = 40;\n\t\t\n\t\tint quotient = dividend/divider;\n\t\tint remainder = dividend%divider;\n\t\t\n\t\tSystem.out.println(\"quotient is :\" +quotient);\n\t\tSystem.out.println(\"remainder is : \"+ remainder);\n\t}", "public static BigInteger modInverse(BigInteger num, BigInteger modulo)\n {\n BigInteger result = null;\n //Checks to see if modulo is greater than 0, if not, then error.\n if (isLessThanOne(modulo) == true)\n {\n System.out.println(\"Modulo \" + modulo + \" cannot be 0 or less.\");\n\n } else if (isRelativelyPrime(num, modulo) == false)\n {\n System.out.println(num + \"^-1 mod \" + modulo + \" are not relatively prime.\");\n } else\n {\n try\n {\n result = num.modInverse(modulo);\n } //Catches exception usually caused by a parameter being null or the number and modulo not relatively prime.\n catch (ArithmeticException e)\n {\n System.out.println(\"ERROR OCCURRED with .modInverse method: number is either null, or \" + num + \"^-1 modulo \" + modulo + \" are not relatively prime.\");\n } catch (NullPointerException e)\n {\n System.out.println(\"ERROR OCCURRED with .modInverse method: one of the inputs is null.\");\n } catch (Exception e)\n {\n System.out.println(\"ERROR OCCURRED with .modPow method: General Error: \" + e);\n }\n }\n\n return result;\n }", "private static int gcd(int a, int b)\r\n\t{\r\n\t\tint remainder = a % b;\r\n\t\tif(remainder == 0)\r\n\t\t{\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn gcd(b, remainder);\r\n\t}", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "public static UnitP Division(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division) \n );\n }", "private static int gcd(int n1,int n2){\n int a = n1>n2?n1:n2;\r\n int b = n1>n2?n2:n1;\r\n int r = a%b;\r\n while(r!=0){\r\n a = b;\r\n b = r;\r\n r = a%b;\r\n }\r\n return b;\r\n }", "public static void main(String[] args) {\n\t\tint number1=10,number2=20;\r\n\t\tSystem.out.println(\"Addition of two numbers is\"+(number1+number2));\r\n\t\tSystem.out.println(\"Subtraction of two numbers is\"+(number1-number2));\r\n\t\tSystem.out.println(\"Multiplication of two numbers is\"+(number1*number2));\r\n\t\tSystem.out.println(\"Division of two numbers is\"+(number1/number2));\r\n\t\tSystem.out.println(\"modulo of two numbers is\"+(number1%number2));\r\n\r\n\r\n\t}", "int xnor(int num1, int num2)\n {\n return ~((num1 | num2) & ~(num1 & num2));\n }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "public static void main(String[] args) {\n long number = 6857;\n long i = 2;\n while ((number / i != 1) || (number % i != 0)) {\n if (number % i == 0) {\n number = number / i;\n } else {\n i++;\n }\n }\n System.out.println(i);\n\n }", "public BigInteger compute() {\n\t\tBigInteger g = parameters.getG();\n\t\tBigInteger h = parameters.getH();\n\t\tBigInteger p = parameters.getP();\n\n\t\tBigInteger gPowAik = g.modPow(aik.getValue(), p);\n\t\tBigInteger hPowBik = h.modPow(bik.getValue(), p);\n\n\t\t/*\n\t\t * ((x^a mod q) * (y^b mod q)) mod q = (x^a * y^b) mod q\n\t\t * \n\t\t * otherwise modPow cannot be used!\n\t\t */\n\t\tvalue = gPowAik.multiply(hPowBik).mod(p);\n\n\t\treturn value;\n\t}", "public static void main(String[] args) {\nint a = 4;\n\na += 2;\na -= 2;\na %= 2;\n\n\nSystem.out.println(a);\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t//criando variavel\n\t\tdouble res;\n\t\t// atribuindo valor a variavel e calculando o modulo.\n\t\tres= 6%3;\n\t\tJOptionPane.showInternalMessageDialog(null, \"O resultado do modulo é : \" + res);\n\t\t\n\t}", "private BigInteger setPrivateKey(BigInteger modulus){\n BigInteger privateKey = null;\n \n do {\n \tprivateKey = BigInteger.probablePrime(N / 2, random);\n }\n /* n'a aucun autre diviseur que 1 */\n while (privateKey.gcd(phi0).intValue() != 1 ||\n /* qu'il est plus grand que p1 et p2 */\n privateKey.compareTo(modulus) != -1 ||\n /* qu'il est plus petit que p1 * p2 */\n privateKey.compareTo(p1.max(p2)) == -1);\n \n return privateKey;\n }", "public static int MCD_iterativo(int n1, int n2) {\n if (n1 > n2) {\r\n a = n1;\r\n b = n2;\r\n } else {\r\n a = n2;\r\n b = n1;\r\n }\r\n /*Calculamos el maximo comun divisior mediante un ciclo iterativo en el cual nos guiamos con el residuo de dividir el numero mayor entre el menor\r\n y retornamos el valor \r\n */\r\n do {\r\n aux = b;\r\n b = a % b;\r\n a = aux;\r\n } while (b != 0);\r\n return aux;\r\n }", "public static UnitP Division(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }", "public static double mod(double x, double y)\n {\n double z = 0.0;\n // Integer denominator.\n // Use the conventional formula.\n boolean m = ((y == MathUtil.fix(y)) && (y != 0.0));\n if (m)\n {\n z = x - Math.floor(x / y) * y;\n }\n\n // Noninteger denominator.\n // Adjust any quotient within roundoff error of an integer.\n m = (y != MathUtil.fix(y));\n double q = 0.0;\n boolean r = false;\n if (m)\n {\n q = x / y;\n r = Math.abs(q - Math.round(q)) <= (Math.abs(q) * MathUtil.EPS);\n if (r)\n {\n q = Math.round(q);\n }\n z = (q - Math.floor(q)) * y;\n }\n\n // Zero denominator.\n m = y == 0.0;\n if (m)\n {\n z = x;\n }\n return z;\n }", "private static long pisano(long m) {\n long temp;\n long first = 0;\n long second = 1;\n\n long count = 0; // initial length of the pisano period\n \n while (true) {\n temp = first;\n first = second;\n second = (second + temp) % m;\n count++;\n\n if (first == 0 && second == 1) {\n return count;\n } // every pisano period begins with 0 1. When we see 0 1, we know len of pisano period.\n }\n }" ]
[ "0.7131907", "0.70368", "0.6817378", "0.6692", "0.66412854", "0.66039646", "0.64292884", "0.6174099", "0.6135934", "0.6084721", "0.6083627", "0.60749465", "0.6056302", "0.6045344", "0.6014557", "0.5904119", "0.5893389", "0.5882849", "0.5878524", "0.5829523", "0.5818321", "0.5708688", "0.5707237", "0.5683421", "0.5678996", "0.56705123", "0.5669074", "0.5656885", "0.563295", "0.56110716", "0.559304", "0.55377513", "0.55315834", "0.5497362", "0.54699355", "0.5463847", "0.53964365", "0.53959316", "0.5388719", "0.5387446", "0.5362528", "0.53485733", "0.5337375", "0.5318999", "0.5318392", "0.5302555", "0.5296106", "0.5291706", "0.5284469", "0.5275728", "0.525051", "0.52421445", "0.5228025", "0.5209454", "0.52033764", "0.51903784", "0.51858294", "0.51777405", "0.5177735", "0.51687604", "0.51586795", "0.51515514", "0.51472974", "0.51455677", "0.51437706", "0.51339567", "0.512485", "0.511946", "0.5116819", "0.51139617", "0.5098928", "0.5096135", "0.50809294", "0.5068817", "0.5065374", "0.5063508", "0.50490683", "0.50287133", "0.50159127", "0.501189", "0.49992037", "0.49946293", "0.49843922", "0.49704245", "0.49577358", "0.49538124", "0.4953107", "0.49401662", "0.4939794", "0.493668", "0.49299225", "0.49150077", "0.49095345", "0.4901341", "0.4900746", "0.48956707", "0.48913905", "0.48797098", "0.48780122", "0.4874027" ]
0.7536648
0
Nonstatic and overloaded methods of NumberP emulating all the comparison overloads in the original C code. Determines whether the current NumberP instance is greater than other.
public boolean greaterThan(NumberP other) { return OperationsCompareTo.CompareDouble(this, other) == 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "private boolean isGreater(BigInt rhs) {\n if (isPositive && !rhs.isPositive) {\n // rhs is negative and this is positive\n return true;\n } else if (!isPositive && rhs.isPositive) {\n // rhs is positive and this is negative\n return false;\n }\n // The numbers have the same sign\n\n if (number.size() > rhs.number.size()) {\n // This is longer than the other, so this is bigger if it positive\n return isPositive;\n } else if (number.size() < rhs.number.size()) {\n // This is shorter than the other, so the other is bigger if this positive\n return !isPositive;\n }\n\n for (int i = number.size() - 1; i >= 0; --i) {\n if (number.get(i) > rhs.number.get(i)) {\n return isPositive;\n } else if (number.get(i) < rhs.number.get(i)) {\n return !isPositive;\n }\n }\n\n return false;\n }", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "public int isGreaterThan(PokerHand otherHand)\n\t{\n\t\tint rank1 = this.getValue();\n\t\tint rank2 = otherHand.getValue();\n\t\tif(rank1 == rank2) return 0;\n\t\telse if(rank1 < rank2) return 1;\n\t\telse return -1;\n\t}", "public static boolean isGreater(BIGNUM num, BIGNUM num2) {\n\t\tif (num.E > num2.E) {\n\t\t\treturn true;\n\t\t} else if (num.E == num2.E) {\n\t\t\tif (num.NUM > num2.NUM) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "@Override\n public boolean isGreater(Query e1, Query e2) {\n return this.compare(e1,e2) == this.GREATER;\n }", "public boolean greaterThan(final Bytes other)\n\t{\n\t\tif ((this == other) || (other == null))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn bytes() > other.bytes();\n\t}", "default A isGreaterThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN));\n }", "public final boolean greaterThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean greaterThan(Note otherNote) {\n\t\treturn getMidiNumber() > otherNote.getMidiNumber();\n\t}", "public boolean greaterThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.lessThan(this);\n return this.num()>obj2.num();\n }", "public boolean valueLargerThan(Money other);", "public static BinaryExpression greaterThan(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public boolean greaterEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) >= (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean greaterThan(HeapNode h) {\n \n int t1 = this.getTreeNode().getBuilding().getTotalTimeTaken();\n int t2 = h.getTreeNode().getBuilding().getTotalTimeTaken();\n\n if ( t1 == t2) {\n int num1 = this.getTreeNode().getBuilding().getNum();\n int num2 = h.getTreeNode().getBuilding().getNum();\n return num1 > num2;\n }\n else {\n return t1 > t2;\n }\n }", "public boolean greaterthan(Inatnum a) throws Exception{\n if((this.isZero() &&a.isZero())==true) {return false;}//if both this and a are both zero, it returns false because it is not greater than. \n if((this.isZero())==false&&a.isZero()==true) {return true;}//conditional returns if a is greater than this.\n if((this.isZero())==true&&a.isZero()==false) {return false;}//conditional returns if this is greater than a.\n else {return this.pred().greaterthan(a.pred()); }//recursive call to subtract one from this and a.\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public final BooleanDataValue greaterThan(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isGreaterThan = false;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisGreaterThan = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisGreaterThan = SQLBinary.compare(left.getBytes(), right.getBytes()) > 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isGreaterThan);\n\t}", "default boolean gt(int lhs, int rhs) {\r\n return lt(rhs,lhs);\r\n }", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "public static RuntimeValue greaterThan(RuntimeValue left, RuntimeValue right) throws RuntimeException {\n if (isDiscreteIntSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.greaterThanIntegers(left.getDiscreteIntSample(), right.getDiscreteIntSample())\n );\n }\n\n if (isDiscreteFloatSamples(left, right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.greaterThanFloats(left.getDiscreteFloatSample(), right.getDiscreteFloatSample())\n );\n }\n\n if (isDiscreteFloatSample(right) && isContinuousSample(left)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.not(Operators.lessThanContinuous(left.getContinuousSample(), right.getDiscreteFloatSample()))\n );\n }\n\n if (isDiscreteFloatSample(left) && isContinuousSample(right)) {\n return new RuntimeValue(\n RuntimeValue.Type.DISCRETE_BOOL_SAMPLE,\n Operators.lessThanContinuous(right.getContinuousSample(), left.getDiscreteFloatSample())\n );\n }\n\n throw new RuntimeException(\"Comparing incompatible types\");\n }", "public boolean Compare(int num1 , int num2){\n\tboolean retval ;\n\tint aux02 ;\n\tretval = false ;\n\taux02 = num2 + 1 ;\n\tif (num1 < num2) retval = false ;\n\telse if (!(num1 < aux02)) retval = false ;\n\telse retval = true ;\n\treturn retval ;\n }" ]
[ "0.7445686", "0.7410369", "0.6798637", "0.6739371", "0.6716198", "0.6647755", "0.6587632", "0.65695614", "0.6449358", "0.64466256", "0.644526", "0.6333931", "0.6305304", "0.62993735", "0.6245511", "0.62165546", "0.6215015", "0.6189159", "0.6188812", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6168202", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6167245", "0.6159931", "0.6122937", "0.61077005", "0.60909045", "0.60836977" ]
0.85232794
0
Determines whether the current NumberP instance is greater or equal than other.
public boolean greaterOrEqualThan(NumberP other) { return OperationsCompareTo.CompareDouble(this, other) >= 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public boolean valueLargerThan(Money other);", "public boolean greaterP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) > (yRatio.numerator * x.denominator));\n }\n }\n }", "public int isGreaterThan(PokerHand otherHand)\n\t{\n\t\tint rank1 = this.getValue();\n\t\tint rank2 = otherHand.getValue();\n\t\tif(rank1 == rank2) return 0;\n\t\telse if(rank1 < rank2) return 1;\n\t\telse return -1;\n\t}", "private boolean isGreater(BigInt rhs) {\n if (isPositive && !rhs.isPositive) {\n // rhs is negative and this is positive\n return true;\n } else if (!isPositive && rhs.isPositive) {\n // rhs is positive and this is negative\n return false;\n }\n // The numbers have the same sign\n\n if (number.size() > rhs.number.size()) {\n // This is longer than the other, so this is bigger if it positive\n return isPositive;\n } else if (number.size() < rhs.number.size()) {\n // This is shorter than the other, so the other is bigger if this positive\n return !isPositive;\n }\n\n for (int i = number.size() - 1; i >= 0; --i) {\n if (number.get(i) > rhs.number.get(i)) {\n return isPositive;\n } else if (number.get(i) < rhs.number.get(i)) {\n return !isPositive;\n }\n }\n\n return false;\n }", "public boolean greaterThan(final Bytes other)\n\t{\n\t\tif ((this == other) || (other == null))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn bytes() > other.bytes();\n\t}", "@Override\n public boolean isGreater(Query e1, Query e2) {\n return this.compare(e1,e2) == this.GREATER;\n }", "public boolean greaterEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) >= (yRatio.numerator * x.denominator));\n }\n }\n }", "public final boolean greaterThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isGreater(BIGNUM num, BIGNUM num2) {\n\t\tif (num.E > num2.E) {\n\t\t\treturn true;\n\t\t} else if (num.E == num2.E) {\n\t\t\tif (num.NUM > num2.NUM) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public final boolean greaterThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue >= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean greaterThan(Note otherNote) {\n\t\treturn getMidiNumber() > otherNote.getMidiNumber();\n\t}", "public boolean greaterThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.lessThan(this);\n return this.num()>obj2.num();\n }", "public boolean greaterThanOrEqual(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.lessThanOrEqual(this);\n return this.num()>=obj2.num();\n }", "default A isGreaterThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, GREATER_THAN));\n }", "public final boolean lessThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue <= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public final boolean lessThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue < topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isHigher(Operator o){\n if(indent > o.indent){\n return true;\n }else{\n return prec > o.prec;\n }\n }", "public boolean greaterThan(HeapNode h) {\n \n int t1 = this.getTreeNode().getBuilding().getTotalTimeTaken();\n int t2 = h.getTreeNode().getBuilding().getTotalTimeTaken();\n\n if ( t1 == t2) {\n int num1 = this.getTreeNode().getBuilding().getNum();\n int num2 = h.getTreeNode().getBuilding().getNum();\n return num1 > num2;\n }\n else {\n return t1 > t2;\n }\n }", "@Override\n public InterpreterValue bigger_equals(InterpreterValue v) {\n\n // If the given value is a IntegerValue then check if the value is bigger than\n // or equal to the own value and return a BooleanValue\n if(v instanceof IntegerValue) return BooleanValue.from(getValue() >= ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue then check if the value is bigger than\n // or equal to the own value and return a BooleanValue\n if(v instanceof DoubleValue) return BooleanValue.from(getValue() >= ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '>=' is not defined for type integer and \" + v.getName());\n\n }", "public static Object gt(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) > 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) > 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in gt\");\n\t}", "public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min > other.max then False\n\t\t\tif ((!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public final BooleanDataValue greaterThan(DataValueDescriptor left,\n\t\t\t\t\t\t\t DataValueDescriptor right)\n\t\t\t\t\t\t\t\tthrows StandardException\n\t{\n\t\tboolean isGreaterThan = false;\n\n\t\tif (left.isNull() || right.isNull())\n\t\t{\n\t\t\tisGreaterThan = false;\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tisGreaterThan = SQLBinary.compare(left.getBytes(), right.getBytes()) > 0;\n\t\t}\n\n\t\treturn SQLBoolean.truthValue(left,\n\t\t\t\t\t\t\t\t\t right,\n\t\t\t\t\t\t\t\t\t isGreaterThan);\n\t}", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean isLargerThan(Rectangle other){\n\t\treturn this.getArea() > other.getArea();\n\t\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "@Override\n public int compareTo(BigInt otherNum) {\n if (equals(otherNum)) {\n // The number are equals\n return 0;\n }\n\n return (isGreater(otherNum) ? 1 : -1);\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }" ]
[ "0.8408717", "0.734034", "0.72675246", "0.71616966", "0.68796545", "0.6840936", "0.6839622", "0.6797933", "0.67601234", "0.66550225", "0.6640026", "0.6631815", "0.65770847", "0.6430373", "0.64015865", "0.627962", "0.6127381", "0.6078", "0.6074806", "0.6050391", "0.6036547", "0.602745", "0.59510475", "0.5931157", "0.5924297", "0.59119517", "0.58516276", "0.58355194", "0.58291155", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.5826471", "0.58259565", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535", "0.58259535" ]
0.7919163
1
Determines whether the current NumberP instance is smaller than other.
public boolean lessThan(NumberP other) { return OperationsCompareTo.CompareDouble(this, other) == -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }", "public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min > other.max then False\n\t\t\tif ((!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "final boolean isLessThan(final GbofId other){\r\n if (source_.is_less_than(other.source()) ) return true;\r\n if (other.source().is_less_than(source_)) return false;\r\n\r\n if (creation_ts_.isLessThan(other.creation_ts())) return true;\r\n if (creation_ts_.isGreaterThan(other.creation_ts())) return false;\r\n\r\n if (is_fragment_ && !other.is_fragment_) return true;\r\n if (!is_fragment_ && other.is_fragment_) return false;\r\n \r\n if (is_fragment_) {\r\n if (frag_length_ < other.frag_length_) return true;\r\n if (other.frag_length_ < frag_length_) return false;\r\n\r\n if (frag_offset_ < other.frag_offset_) return true;\r\n if (other.frag_offset_ < frag_offset_) return false;\r\n }\r\n\r\n return false; // all equal\r\n }", "public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }", "public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public final boolean lessThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue < topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static int Min(int num1, int num2) {\n\t\treturn num1 >= num2 ? num2 : num1;\n\t}", "private static boolean less(Comparable p, Comparable q) {\n return p.compareTo(q) < 0;\n }", "public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }", "private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }", "public boolean priorTo(OperationOption other) {\n if (Double.compare(priority, other.priority) < 0)\n return true;\n\n if (Double.compare(priority, other.priority) > 0)\n return false;\n\n return operation.getJob().getId() < other.operation.getJob().getId();\n }", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "@Override\n public boolean lessThan(Object o1, Object o2) {\n return ((MI)o1).value < ((MI)o2).value;\n }", "public boolean lessThan(Note otherNote) {\n\t\treturn getMidiNumber() < otherNote.getMidiNumber();\n\t}", "public boolean lessThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.greaterThan(this);\n return this.num()<obj2.num();\n }", "protected static boolean less(Comparable a, Comparable b) {\n\t\treturn a.compareTo(b) < 0;\r\n\t}", "public boolean isSmallerPrecedenceThan(/*const*/ Token T){\n\t\tassert(isOprUner() || isOprBiner());\n\t\tassert(T.isOprUner() || T.isOprBiner());\n\t\t\n\t\treturn getRank() < T.getRank();\n\t}", "default A isLessThan(Number number) {\n return satisfiesNumberCondition(new NumberCondition<>(number, LESS_THAN));\n }", "public boolean smallerThan(int a, int b)\n\t{\n\t\tif (data[a].compareTo(data[b]) < 0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Override\n public InterpreterValue smaller(InterpreterValue v) {\n\n // If the given value is a IntegerValue then check if the value is smaller than\n // the own value and return a BooleanValue\n if(v instanceof IntegerValue) return BooleanValue.from(getValue() < ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue then check if the value is smaller than\n // the own value and return a BooleanValue\n if(v instanceof DoubleValue) return BooleanValue.from(getValue() < ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '<' is not defined for type integer and \" + v.getName());\n\n }", "public boolean smallerThan(PositionRadians p) {\n\t\tif (value < p.value) \n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n\t\tprotected boolean lessThan(final Entry hitA, final Entry hitB) {\n\t\t\tassert hitA != hitB;\n\t\t\tassert hitA.mSlot != hitB.mSlot;\n\n\t\t\tfinal int c = mOneReverseMul * mFirstComparator.compare(hitA.mSlot, hitB.mSlot);\n\t\t\tif (c != 0) \n\t\t\t\treturn c > 0;\n\n\t\t\t\t// avoid random sort order that could lead to duplicates (bug #31241):\n\t\t\t\treturn hitA.getDoc() > hitB.getDoc();\n\t\t}", "public static numero getPreciseleast(numero num1, numero num2)\n {\n if(num1.post_comma_digits >= num2.post_comma_digits) return num2;\n else return num1;\n }", "@Override\n public boolean isLess(Query e1, Query e2) {\n return this.compare(e1,e2) == this.LESS;\n }", "public boolean lessThan(MyDate other){\t\n \t\tif (other.year > year){\n \t\t\treturn true;\n \t\t}\n \t\telse if (other.year == year){\n \t\t\tif (other.month > month){\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse if (other.month == month){\n \t\t\t\tif (other.day > day){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn false;\n\t}", "public boolean isLessThan(Fraction rightOperand){\n\n\t\tint denom = myDenominator*rightOperand.getDenominator();\n\n\t\treturn (myNumerator*(denom/myDenominator)) <\n\t\t\t\t(rightOperand.getNumerator() *\n\t\t\t\t(denom/rightOperand.getDenominator()));\n\t}", "public boolean valueLargerThan(Money other);", "protected boolean less(int i, int j)\n {\n return pq[i].compareTo(pq[j]) < 0;\n }", "public boolean lessEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) <= (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }" ]
[ "0.71293783", "0.67743546", "0.6619345", "0.65301627", "0.6374188", "0.63356084", "0.6320816", "0.6282773", "0.62249994", "0.6217564", "0.6186939", "0.61859816", "0.61733943", "0.6169585", "0.6159442", "0.6125759", "0.6032555", "0.5984469", "0.59812284", "0.59369534", "0.5936563", "0.59271765", "0.59238493", "0.58747995", "0.5870369", "0.5853839", "0.58513665", "0.58422697", "0.58050203", "0.57533014", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57511055", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193", "0.57507193" ]
0.8174798
0
Determines whether the current NumberP instance is smaller or equal than other.
public boolean lessOrEqualThan(NumberP other) { return OperationsCompareTo.CompareDouble(this, other) <= 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }", "public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }", "public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min > other.max then False\n\t\t\tif ((!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }", "public boolean lessP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) < (yRatio.numerator * x.denominator));\n }\n }\n }", "final boolean isLessThan(final GbofId other){\r\n if (source_.is_less_than(other.source()) ) return true;\r\n if (other.source().is_less_than(source_)) return false;\r\n\r\n if (creation_ts_.isLessThan(other.creation_ts())) return true;\r\n if (creation_ts_.isGreaterThan(other.creation_ts())) return false;\r\n\r\n if (is_fragment_ && !other.is_fragment_) return true;\r\n if (!is_fragment_ && other.is_fragment_) return false;\r\n \r\n if (is_fragment_) {\r\n if (frag_length_ < other.frag_length_) return true;\r\n if (other.frag_length_ < frag_length_) return false;\r\n\r\n if (frag_offset_ < other.frag_offset_) return true;\r\n if (other.frag_offset_ < frag_offset_) return false;\r\n }\r\n\r\n return false; // all equal\r\n }", "public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }", "public boolean lessEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) <= (yRatio.numerator * x.denominator));\n }\n }\n }", "public boolean valueLargerThan(Money other);", "public final boolean lessThan() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue < topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean lessThan(Object o1, Object o2) {\n return ((MI)o1).value < ((MI)o2).value;\n }", "public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.low) > Integer.parseInt(other.high))\n\t\t\t\treturn AbstractBoolean.True();\n\n\t\t\t// If this.min < other.max then False\n\t\t\tif ((!other.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& Integer.parseInt(this.high) < Integer.parseInt(other.low))\n\t\t\t\treturn AbstractBoolean.False();\n\n\t\t} catch (NumberFormatException e){\n\t\t\treturn AbstractBoolean.TopBool();\n\t\t}\n\n\t\treturn AbstractBoolean.TopBool();\n\t}", "private static int Min(int num1, int num2) {\n\t\treturn num1 >= num2 ? num2 : num1;\n\t}", "private static boolean less(Comparable p, Comparable q) {\n return p.compareTo(q) < 0;\n }", "@Override\n public InterpreterValue smaller_equals(InterpreterValue v) {\n\n // If the given value is a IntegerValue then check if the value is smaller than\n // or equal to the own value and return a BooleanValue\n if(v instanceof IntegerValue) return BooleanValue.from(getValue() <= ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue then check if the value is smaller than\n // or equal to the own value and return a BooleanValue\n if(v instanceof DoubleValue) return BooleanValue.from(getValue() <= ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '<=' is not defined for type integer and \" + v.getName());\n\n }", "public boolean lessThan(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.greaterThan(this);\n return this.num()<obj2.num();\n }", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "public final boolean lessThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue <= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean priorTo(OperationOption other) {\n if (Double.compare(priority, other.priority) < 0)\n return true;\n\n if (Double.compare(priority, other.priority) > 0)\n return false;\n\n return operation.getJob().getId() < other.operation.getJob().getId();\n }", "private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }", "public boolean lessThan(Note otherNote) {\n\t\treturn getMidiNumber() < otherNote.getMidiNumber();\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\t\tboolean retval = false;\n\t\tint aux02 = num2 + 1 ;\n\t\tif (num1 < num2){\n\t\t\t retval = false ;\n\t\t}\n\t\telse{\n\t\t\tif (!(num1 < aux02)){\n\t\t\t\tretval = false ;\n\t\t\t} \n\t\t\telse {\n\t\t\t\tretval = true ;\n\t\t\t} \n\t\t}\n\t\treturn retval ;\n }", "public boolean lessThanOrEqual(XObject obj2)\n throws javax.xml.transform.TransformerException{\n if(obj2.getType()==XObject.CLASS_NODESET)\n return obj2.greaterThanOrEqual(this);\n return this.num()<=obj2.num();\n }", "public boolean isSmallerPrecedenceThan(/*const*/ Token T){\n\t\tassert(isOprUner() || isOprBiner());\n\t\tassert(T.isOprUner() || T.isOprBiner());\n\t\t\n\t\treturn getRank() < T.getRank();\n\t}" ]
[ "0.79482234", "0.6872007", "0.67843837", "0.6769459", "0.6438352", "0.63342774", "0.6239991", "0.6225712", "0.61618805", "0.6071051", "0.5997219", "0.59761465", "0.5971297", "0.597003", "0.59470874", "0.5912627", "0.58917505", "0.58799535", "0.58734554", "0.58065075", "0.57999676", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57934564", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57930994", "0.57573354", "0.57502544", "0.57424754" ]
0.7477531
1
Outputs an error or "Value10^BaseTenExponent" (BaseTenExponent different than zero sample).
public String toString(Locale culture) { if (!Error.equals(ErrorTypesNumber.None)) return "Error. " + Error.toString(); if (culture == null) culture = Locale.US; NumberD numberD = OperationsManaged.PassBaseTenToValue ( new NumberD(this), true ); return OperationsOther.PrintNumberXInfo ( numberD.getValue(), numberD.getBaseTenExponent(), null, culture ) + " (" + OriginalString + ")" + System.lineSeparator() + Config.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getExponent();", "public String get_exponent_part();", "public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow((double) b, (double) p);\r\n return answer;\r\n }", "@Test\n\tpublic void testExponentiation() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\texpResult = Math.pow(tmpRndVal, tmpRndVal2);\n\t\t\tassertEquals(ac.exponentiation(tmpRndVal, tmpRndVal2), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.pow(zero, zero);\n\t\t\tassertEquals(ac.exponentiation(zero, zero), expResult, 0);\n\t\t}\n\t\t\n\t}", "public static String power(int base, int exp){\n\t\tBigNum temp = new BigNum(base);\n\t\ttemp = temp.power(exp);\n\t\treturn temp.toString();\n\t}", "static int testGetExponentCase(float f, int expected) {\n float minus_f = -f;\n int failures=0;\n\n failures+=Tests.test(\"Math.getExponent(float)\", f,\n Math.getExponent(f), expected);\n failures+=Tests.test(\"Math.getExponent(float)\", minus_f,\n Math.getExponent(minus_f), expected);\n\n failures+=Tests.test(\"StrictMath.getExponent(float)\", f,\n StrictMath.getExponent(f), expected);\n failures+=Tests.test(\"StrictMath.getExponent(float)\", minus_f,\n StrictMath.getExponent(minus_f), expected);\n return failures;\n }", "@Test\n public void test_ScientificNotation_0110() {\n ScientificNotation x = new ScientificNotation(0);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "public final void power (int expo) throws ArithmeticException {\n\t\tdouble error = 0;\n\t\tint i = expo; \n\t\tdouble r = 1;\n\t\tdouble v = 1; \n\t\tlong u = underScore;\n\t\tif ((mksa&(_log|_mag)) != 0) throw new ArithmeticException\n\t\t(\"****Unit: can't power log[unit]: \" + symbol );\n\t\twhile (i > 0) { \n\t\t\tr *= factor; v *= value; \n\t\t\tu += mksa; u -= underScore; \n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti--; \n\t\t}\n\t\twhile (i < 0) { \n\t\t\tr /= factor; v /= value; \n\t\t\tu += underScore; u -= mksa;\n\t\t\tif ((u&0x8480808080808080L) != 0) error++;\n\t\t\ti++; \n\t\t}\n\t\tif (error > 0) throw new ArithmeticException\n\t\t(\"****Unit: power too large: (\" + \")^\" + expo) ;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\tmksa = u;\n\t\t/* Decision for the new symbol */\n\t\tif ((expo != 1) && (symbol != null)) {\n\t\t\tif (expo == 0) symbol = \"\";\n\t\t\telse if (symbol.length()>0) {\n\t\t\t\tParsing t = new Parsing(symbol);\n\t\t\t\tint pow;\n\t\t\t\tpow = getPower(t);\n\t\t\t\tif (pow == 0) symbol = toExpr(symbol) + expo;\n\t\t\t\telse {\t\t\t// Combine exponents\n\t\t\t\t\ti=0;\n\t\t\t\t\tpow *= expo;\n\t\t\t\t\tif (t.a[0] == '(') { i = 1; t.advance(-1); }\n\t\t\t\t\tif (expo == 1) symbol = symbol.substring(i,t.pos);\n\t\t\t\t\telse symbol = toExpr(symbol.substring(i,t.pos)) + pow;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "static int testGetExponentCase(double d, int expected) {\n double minus_d = -d;\n int failures=0;\n\n failures+=Tests.test(\"Math.getExponent(double)\", d,\n Math.getExponent(d), expected);\n failures+=Tests.test(\"Math.getExponent(double)\", minus_d,\n Math.getExponent(minus_d), expected);\n\n failures+=Tests.test(\"StrictMath.getExponent(double)\", d,\n StrictMath.getExponent(d), expected);\n failures+=Tests.test(\"StrictMath.getExponent(double)\", minus_d,\n StrictMath.getExponent(minus_d), expected);\n return failures;\n }", "private static String printBinary(double num){\n\t\tif(num >= 1 || num <= 0)\n\t\t\treturn \"ERROR\";\n\t\t\n\t\tStringBuilder binary = new StringBuilder();\n\t\tbinary.append(\"0.\");\n\t\tdouble r = 0.5;\n\t\twhile(num > 0){\n\t\t\tif(binary.length() >= 32)\n\t\t\t\treturn \"ERROR\";\n\t\t\t\n\t\t\tif(num >= r){\n\t\t\t\tbinary.append(1);\n\t\t\t\tnum -= r;\n\t\t\t}else\n\t\t\t\tbinary.append(0);\n\t\t\t\n\t\t\tr /= 2;\n\t\t}\n\t\treturn binary.toString();\n\t}", "public int getExponent();", "static void mostrarInstrucciones(){\r\n\t\tSystem.out.println(\"Introduzca la base y el exponente para calcular el resultado.\");\r\n\t}", "@Override\n\tprotected String generateMessage() {\n\t\treturn \"Script evaluation exception \" + generateSimpleMessage();\n\t}", "public void testPower() {\r\n System.out.println(\"Power\");\r\n Double [][] n = new Double[][]{{-3., 2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, -1.1E100, -1.1E100}, \r\n {-0.0370370, 9.88212, 1., 0., 1., 0.25, 39.304, 103.05089, 0., 0.}};\r\n for(int i = 0; i < 10; i++){\r\n try{\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Power(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n catch(PoweredZeroByZeroException e){\r\n assertTrue(e instanceof PoweredZeroByZeroException);\r\n }\r\n }\r\n }", "static int errorMsg(int eCode)\n {\n if (eCode == 0) return 0;\n String message = \"\";\n switch (eCode){\n case 1: message = \"Division by zero\"; break;\n case 2: message = \"Non-matching parenthesis in function\"; break;\n case 3: message = \"Must enclose negative exponents in parentheses\"; break;\n case 4: message = \"Incorrect Operator Syntax\"; break;\n case 5: message = \"Rightfunctions must use parenthesis. (example: ABS(-2);\"; break;\n case 6: message = \"Unrecognized token in function srtring.\"; break;\n case 8: message = \"Can not raise negative number to a fractional power.\"; break;\n case 10:message = \"Input a real number with no operators\"; break;\n }\n JOptionPane.showMessageDialog(null, message, \"Error \"+eCode, JOptionPane.ERROR_MESSAGE);\n return 0;\n }", "public Integer getExponent();", "public String toString()\r\n\t{\r\n\t\tif(exponent == 0)\r\n\t\t{\r\n\t\t\treturn String.valueOf(coefficient);\r\n\t\t}\r\n\t\tif(exponent == 1)\r\n\t\t{\r\n\t\t\treturn String.valueOf(coefficient) + \"x\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn String.valueOf(coefficient) + \"x^\" + String.valueOf(exponent);\r\n\t\t}\r\n\t}", "public NumberP(Object value, int baseTenExponent)\n\t{\n\t\tBaseTenExponent = baseTenExponent;\n\t\tValue = value;\n\t}", "public static void main(String args[])\r\n {\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.print(\"Enter base: \");\r\n int base = scanner.nextInt(); // get base from user\r\n\r\n System.out.print(\"Enter exponent: \");\r\n int exponent = scanner.nextInt(); // get exponent from user\r\n\r\n // raise to exponent if appropriate\r\n if (exponent > 0)\r\n {\r\n int result = integerPower(base, exponent);\r\n System.out.printf(\"Value is %d%n\", result);\r\n }\r\n else\r\n System.out.println(\"Invalid Exponent.\");\r\n }", "@Test\n public void test10() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"xx\\\"qa7Q>h6u=;6s.h+.<\");\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.weightedFalsePositiveRate();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "public boolean get_exponent_sign();", "public static String powName(double base) {\n\t\tif (base == Math.E)\n\t\t\treturn \"exp\";\n\t\telse\n\t\t\treturn \"\" + MathUtil.format(base) + \"^\";\n\t}", "@Test\n public void testNegativeB() {\n assertEquals(-1, PiGenerator.powerMod(2, -1, 23));\n }", "public void setError(int errorCase) {\n\n\t\tswitch (errorCase) {\n\n\t\tcase 1: {\n\t\t\tthis.error = \"Number should be from 0 to N\";\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\tthis.error = \"Base should be from 2 to 25\";\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault: {\n\t\t\tthis.error = null;\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}", "public static double logarit(double value, double base) {\n\t\tif (base == Math.E)\n\t\t\treturn Math.log(value);\n\t\telse if (base == 10)\n\t\t\treturn Math.log10(value);\n\t\telse\n\t\t\treturn Double.NaN;\n\t\t\t\n\t}", "@Test\n public void test_ScientificNotation_0120() {\n ScientificNotation x = new ScientificNotation(BigInteger.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "public void setExponent(Integer exponent);", "@Test\n public void test039() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.base((CharSequence) \"Esp3eO'v(-`fg\\\"S\");\n }", "public void changeText()\n {\n Double base = 1.0;\n Double exponent = 0.0;\n\n try\n {\n /*get the values of the text inputs and set them to their respective variable, converting them to\n a double*/\n base = Double.parseDouble(txtBase.getText());\n exponent = Double.parseDouble(txtExponent.getText());\n }\n catch (NumberFormatException e) {\n /*On NumberFormatException, do nothing. Suppresses errors in the console which we do not need to\n know about, this is an expected and solved issue.*/\n }\n\n //calculate the new result, based on the current values of exponent and base, then set it to the output.\n Double result = Math.pow(base, exponent);\n lblResult.setText(result.toString());\n }", "static String printBinary(double num) {\n // Check Number is Between 0 to 1 or Not\n if (num >= 1 || num <= 0)\n return \"ERROR\";\n\n StringBuilder binary = new StringBuilder();\n System.out.println(\"binary:\"+binary.toString());\n binary.append(\".\");\n\n while (num > 0) {\n\t\t\t/* Setting a limit on length: 32 characters,\n\t\t\tIf the number cannot be represented\n\t\t\taccurately in binary with at most 32\n\t\t\tcharacter */\n if (binary.length() >= 32)\n return \"ERROR\";\n\n // Multiply by 2 in num to check it 1 or 0\n double r = num * 2;\n if (r >= 1) {\n binary.append(1);\n num = r - 1;\n } else {\n binary.append(0);\n num = r;\n\n\n\n }\n\n }\n return binary.toString();\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "@Test(expected=ValueOutOfBoundsException.class) \n\tpublic void tooHigh() throws ValueOutOfBoundsException, MalformedNumberException {\n\t new RomanArabicConverter(\"4000\").toRoman();\n\t}", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "@Test\n public void testFactorialInvalidInteger()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"0\");\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"1\"));\n }", "@Test\n public void test_ScientificNotation_0130() {\n ScientificNotation x = new ScientificNotation(BigDecimal.ZERO);\n assertEquals(0, x.significand().doubleValue(), 0);\n assertEquals(0, x.exponent());\n }", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "public void setError(int value) {\n this.error = value;\n }", "@Test\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.numberInput(\"2CVo`z1\", (CharSequence) \"2CVo`z1\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.meanAbsoluteError();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "@Test\r\n\tpublic void testPrecisionInvalidWeight(){\r\n\t\ttry{\r\n\t\t\tPacker.pack(\"./src/test/resources/precisionInvalidWeight.txt\");\r\n\t\t}catch (APIException e) {\r\n\t\t\t// test passed - exception expected when incorrect parameters are being passed\r\n\t\t\tSystem.out.println(\"Test Passed. PrecisionInvalidWeight.\");\r\n\t\t\treturn;\r\n\t\t} catch (Throwable t){\r\n\t\t\tSystem.out.println(\"Unexpected throwable: \" + t.getMessage());\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\tfail(\"APIException was expected\");\r\n\t}", "public static String invalidInput() {\n return \"Invalid input!\";\n }", "public String formInternalError() \r\n {\r\n return formError(\"500 Internal server error\",\"Server broke\");\r\n }", "@Override\n\tpublic double pow(double base, double exp) {\n\t\treturn 0;\n\t}", "private void assertFail(int value) {\n try {\n converter.convertRomanNumber(value);\n fail();\n } catch (Exception e) {\n }\n }", "void showAlertForInvalidNumber();", "@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }", "java.lang.String getErr();", "@Override\n\tpublic String toString() {\n\t\tif(this.getExponent() == 0) return String.format(\"%.2f\", this.getCoefficient())+\"\";\n\n\t\tStringBuilder str = new StringBuilder();\n\n\t\tif(this.getExponent() == 1) str.append(String.format(\"%.2f\", this.getCoefficient())+\"x\");\n\t\telse str.append(String.format(\"%.2f\", this.getCoefficient())+\"x^\"+this.getExponent());\n\n\t\treturn str.toString();\n\t}", "public void setExchResult(double value) {\n this.exchResult = value;\n }", "public TemperaturaErradaExcepcion(){\r\n super(\"mensaxe por defecto:temperatura ten que ser naior que 80ºC\");//mensaxe por defecto\r\n }", "public double pow(double base, double exponent){ return Math.pow(base, exponent); }", "private static SampleResult getErrorResult(final Context context, final SampleResult result, final String errorMessage, final Exception exception) {\n result.setError(true);\n result.setStatusCode(\"NL-TCP-GENERATOR_ERROR\");\n result.setResponseContent(errorMessage);\n if (exception != null) {\n context.getLogger().error(errorMessage, exception);\n } else {\n context.getLogger().error(errorMessage);\n }\n return result;\n }", "public void appendExp(int value) throws Exception\n\t{\n\t\t\n\t}", "public BigInteger getExponent() {\n return this.exponent;\n }", "public NoDigitException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public float getUserExponent() {\n/* 195 */ return this.userExponent;\n/* */ }", "public String error();", "public double tenToPowerOf(double num) {\n\t\treturn Math.pow(10, num);\n\t}", "private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }", "@Test\n public void testZeroB() {\n assertEquals(1, PiGenerator.powerMod(5, 0, 42));\n }", "@Test\r\n public void testInvalidMinusAssignmentExpressionWithSIUnits2() throws IOException {\n checkError(\"varS-=4km\", \"0xA0177\");\r\n }", "public UnitP(UnitP unitP, Double value, int baseTenExponent)\n {\n Value = value;\n BaseTenExponent = baseTenExponent;\n Unit = unitP.Unit;\n UnitType = unitP.UnitType;\n UnitSystem = unitP.UnitSystem;\n UnitPrefix = new Prefix(unitP.UnitPrefix);\n UnitParts = new ArrayList<UnitPart>(unitP.UnitParts);\n UnitString = unitP.UnitString;\n OriginalUnitString = unitP.Value.toString() +\n (\n unitP.BaseTenExponent != 0 ?\n \"*10^\" + unitP.BaseTenExponent.toString() : \"\"\n );\n ValueAndUnitString = Value.toString() +\n (\n BaseTenExponent != 0 ?\n \"*10^\" + BaseTenExponent.toString() : \"\"\n ) + \" \" + UnitString;\n Error = new ErrorInfo(unitP.Error);\n }", "private void setPhosphateMaxError (float phosphateMax, Exception e, int error) {\n this.phosphateMax = phosphateMax;\n phosphateMaxErrorMessage = e.toString();\n phosphateMaxError = error;\n }", "public final void mExponent() throws RecognitionException {\n try {\n int _type = Exponent;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /development/json-antlr/grammar/JSON.g:89:9: ( ( 'e' | 'E' ) ( '-' )? ( '1' .. '9' ) ( Digit )* )\n // /development/json-antlr/grammar/JSON.g:89:11: ( 'e' | 'E' ) ( '-' )? ( '1' .. '9' ) ( Digit )*\n {\n if ( input.LA(1)=='E'||input.LA(1)=='e' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n // /development/json-antlr/grammar/JSON.g:89:21: ( '-' )?\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='-') ) {\n alt5=1;\n }\n switch (alt5) {\n case 1 :\n // /development/json-antlr/grammar/JSON.g:89:21: '-'\n {\n match('-'); \n\n }\n break;\n\n }\n\n // /development/json-antlr/grammar/JSON.g:89:26: ( '1' .. '9' )\n // /development/json-antlr/grammar/JSON.g:89:27: '1' .. '9'\n {\n matchRange('1','9'); \n\n }\n\n // /development/json-antlr/grammar/JSON.g:89:37: ( Digit )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( ((LA6_0>='0' && LA6_0<='9')) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // /development/json-antlr/grammar/JSON.g:89:37: Digit\n \t {\n \t mDigit(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void encodeAsStringNegative()\n {\n final int value = -5;\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n final String result = encoder.encodeAsString(value);\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + result);\n }\n assertNotNull(result);\n assertEquals(\"0011\", result);\n }", "public String randomIncorrectPrice() {\n return new BigInteger(130, random).toString(32);\n }", "@Test\n public void testFactorialInvalidNonInteger()\n {\n driver.findElement(By.linkText(\"Factorial\")).click();\n driver.findElement(By.name(\"value\")).sendKeys(\"hello\");\n try {\n WebElement submit = driver.findElement(By.cssSelector(\"input\"));\n submit.sendKeys(Keys.RETURN);\n WebElement e = driver.findElement(By.className(\"jumbotron\"));\n String s1 = e.getText();\n assertTrue(s1.contains(\"1\"));\n } catch (NoSuchElementException e) {\n fail();\n }\n }", "@Override\n\tpublic void getError() {\n System.err.println(\"8877挂掉了\");\n\t}", "public String toString()\n {\n return \"<ERROR>\";\n }", "private String denormTemp()\n {\n final double max = 27.55;\n final double min = 10.55;\n double denormValue = x*(max-min) + min;\n return(String.valueOf(denormValue));\n }", "@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }", "public double exponent()\n\t{\n\t\treturn _dblExponent;\n\t}", "String errorMessage();", "@Test\n public void testNegativeM() {\n assertEquals(-1, PiGenerator.powerMod(2, 2, -1));\n }", "public double power(double firstNumber, double secondNumber) {\n\t\tdouble result= Math.pow(firstNumber, secondNumber);\n\t\tif (Double.MAX_VALUE <= result || Double.MIN_VALUE >= result || Double.NaN == result || Double.isInfinite(result)){\n\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Input \", \"Error message\", JOptionPane.ERROR_MESSAGE);\t\t\t\n\t\t\treturn -1111.1111;\n\t\t}\n\t\treturn result;\n\t}", "void calculateError(double targetValue) {\n this.error = this.getOutput()*(1-this.getOutput())*(this.getOutput()-targetValue);\n }", "public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }", "private void err4() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand4.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand4.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand4.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand4.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}", "@Test\r\n public void testInvalidMinusAssignmentExpressionWithSIUnits1() throws IOException {\n checkError(\"varD_S-=4km\", \"0xA0177\");\r\n }", "public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }", "public abstract void setMaxExponentSize(byte maxExponentSize);", "public abstract double mo9740e();", "protected void runTest() throws OgnlException\n {\n Object result;\n\n result = OgnlOps.convertValue(value, toClass);\n if (!isEqual(result, expectedValue)) {\n if (scale >= 0) {\n double scalingFactor = Math.pow(10, scale),\n v1 = ((Number) value).doubleValue() * scalingFactor,\n v2 = ((Number) expectedValue).doubleValue() * scalingFactor;\n\n assertTrue((int) v1 == (int) v2);\n } else {\n fail();\n }\n }\n }", "public String genResultWithErrors(Database db) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(genResult()).append(\"; \");\n\t\tsb.append(startT()).append(\"; \");\n\t\tfor (int i = 0; i < maxLaps - 1; i++) {\n\t\t\tsb.append(getMeanTime(i)).append(\"; \");\n\t\t}\n\t\tsb.append(finishT()).append(\"; \");\n\t\tsb.append(errors());\n\t\tString out = sb.toString();\n\t\treturn (out.length() == 0) ? \"\" : out.substring(0, out.length() - 2);\n\t}", "public double getMissingValueCode();", "public static void error(String msg) {\n System.err.println(\"Interpreter error: \" + msg);\n System.exit(-1);\n }", "private void setTemperatureMaxError (float temperatureMax, Exception e, int error) {\n this.temperatureMax = temperatureMax;\n temperatureMaxErrorMessage = e.toString();\n temperatureMaxError = error;\n }", "@Override\n public String getMessage() {\n return ErrorMessage.INVALID_NEGATIVE_PRICE_ERROR;\n }", "@Test\n @Tag(\"bm1000\")\n public void testSC50B() {\n CuteNetlibCase.doTest(\"SC50B.SIF\", \"-7.0000000000E+01\", \"0.0\", NumberContext.of(7, 4));\n }", "@Test\r\n public void testInvalidDecSuffixExpressionWithSIUnits() throws IOException {\n checkError(\"varS--\", \"0xA0171\");\r\n }", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "static int exp(int base, long n) {\n\n // 2^3=8 , 2^x=8 -> x = ln8/ln2 , otherwise x=Math.log(8)/Math/log(2)\n\n return (int) ( Math.log(n)/Math.log(base) );\n }", "public void testInvalidEnum () {\n\t\tString example = \"8kHz\";\n\t\ttry {\n\t\t SamplingRate temp = SamplingRate.valueForString(example);\n assertNull(\"Result of valueForString should be null.\", temp);\n\t\t}\n\t\tcatch (IllegalArgumentException exception) {\n fail(\"Invalid enum throws IllegalArgumentException.\");\n\t\t}\n\t}", "private static String getMessage(int code) {\n switch (code) {\n case ME_DIV_BY_ZERO:\n return \"Attempt to divide by zero.\";\n case ME_ASSIGNLITERAL:\n return \"Attempt to assign to a literal.\";\n case ME_NONVARASSIGN:\n return \"Attempt to assign to a non-variable.\";\n default:\n return \"Unknown error.\";\n }\n }", "String getError(int i) {\n if (i >= 0 & i < msgs.length)\n return msgs[i];\n else\n return \"Invalid Error Code\";\n }", "@Test\n\tpublic void input_10_() throws ValueOutOfBoundsException, MalformedNumberException {\n\t assertEquals(10, new RomanArabicConverter(\"10\").toArabic());\n assertEquals(\"X\", new RomanArabicConverter(\"10\").toRoman());\n\t}", "@Test(timeout = 4000)\n public void test234() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n ElExpression elExpression0 = new ElExpression(\"H<lw\\\"i?P_Tss-Hw\");\n // Undeclared exception!\n try { \n errorPage0.em((Object) elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not evaluate expression H<lw\\\"i?P_Tss-Hw in class wheel.ErrorPage\n //\n verifyException(\"wheel.components.ElExpression\", e);\n }\n }", "private void testForHighByteError(String label, int keySizeBits) throws Exception\n {\n BigInteger e = BigIntegers.ONE.shiftLeft(16).add(BigIntegers.ONE);\n\n AsymmetricCipherKeyPairGenerator kpGen = new RSAKeyPairGenerator();\n\n kpGen.init(new RSAKeyGenerationParameters(e, new SecureRandom(), keySizeBits, 100));\n\n AsymmetricCipherKeyPair kp = kpGen.generateKeyPair();\n\n AsymmetricBlockCipher cipher = new OAEPEncoding(new RSAEngine());\n\n // obtain a known good ciphertext\n cipher.init(true, new ParametersWithRandom(kp.getPublic(), new VecRand(seed)));\n byte[] m = { 42 };\n byte[] c = cipher.processBlock(m, 0, m.length);\n int keySizeBytes = (keySizeBits+7)>>>3;\n if (c.length!=keySizeBytes)\n {\n fail(label + \" failed ciphertext size\");\n }\n\n BigInteger n = ((RSAPrivateCrtKeyParameters)kp.getPrivate()).getModulus();\n\n // decipher\n cipher.init(false, kp.getPrivate());\n byte[] r = cipher.processBlock(c, 0, keySizeBytes);\n if (r.length!=1 || r[0]!=42)\n {\n fail(label + \" failed first decryption of test message\");\n }\n\n // decipher again\n r = cipher.processBlock(c, 0, keySizeBytes);\n if (r.length!=1 || r[0]!=42)\n {\n fail(label + \" failed second decryption of test message\");\n }\n\n // check hapazard incorrect ciphertexts\n for(int i=keySizeBytes*8; --i>=0;)\n {\n c[i>>>3] ^= 1<<(i&7);\n boolean ko = true;\n try\n {\n BigInteger cV = new BigInteger(1, c);\n\n // don't pass in c if it will be rejected trivially\n if (cV.compareTo(n) < 0)\n {\n r = cipher.processBlock(c, 0, keySizeBytes);\n }\n else\n {\n ko = false; // size errors are picked up at start\n }\n }\n catch (InvalidCipherTextException exception)\n {\n ko = false;\n }\n if (ko)\n {\n fail(label + \" invalid ciphertext caused no exception\");\n }\n c[i>>>3] ^= 1<<(i&7);\n }\n }", "public static void print_value(int n, int result){\n if(result >= -1 && n > 0){\n System.out.println( \"I send - \" + n + \" - like argument. The largest int not larger than the base-2 log is \" + result );\n }else{\n System.out.println(\"Number: \" + n + \" // We can't calculate the logarithm of negative numbers ot the number - 0 -\" );\n }\n }" ]
[ "0.58413273", "0.5730712", "0.565923", "0.5566377", "0.55105364", "0.5433183", "0.53598785", "0.5352692", "0.5324436", "0.5320119", "0.5292726", "0.5285603", "0.52820456", "0.5227619", "0.5188177", "0.51268053", "0.51089835", "0.50812095", "0.5075594", "0.5073601", "0.50726575", "0.5055317", "0.5042719", "0.50100046", "0.4994517", "0.49943537", "0.4990733", "0.49845243", "0.49822673", "0.4975234", "0.49636677", "0.49636677", "0.49636677", "0.49588084", "0.49577555", "0.49427512", "0.49297303", "0.49224487", "0.49067754", "0.48939732", "0.48879752", "0.48816866", "0.48717758", "0.48705778", "0.48565573", "0.48474267", "0.4843681", "0.48310563", "0.4822932", "0.48213133", "0.48159552", "0.48135754", "0.48132852", "0.48119974", "0.47898698", "0.47877318", "0.47865003", "0.4785165", "0.47808275", "0.47723678", "0.4765843", "0.47586992", "0.47533387", "0.4750561", "0.47503778", "0.4749812", "0.47487164", "0.47437865", "0.4735819", "0.47340482", "0.47338971", "0.4733506", "0.4725712", "0.47237664", "0.47183076", "0.47172874", "0.47143725", "0.4711983", "0.47093806", "0.4703741", "0.47020835", "0.46979082", "0.46946973", "0.46944845", "0.46923846", "0.46828344", "0.4681149", "0.46811125", "0.4677444", "0.46756548", "0.46751794", "0.46716392", "0.46654674", "0.46609902", "0.46591568", "0.46586037", "0.46265742", "0.4624644", "0.4623409", "0.46142843", "0.4613764" ]
0.0
-1
Constructor que recibe un semaforo para soncronizar si hay empleados libres o no
public EmpleadosDisponibles(Semaphore semaforoEmpleadoLibre) { this.semaforoEmpleadoLibre = semaforoEmpleadoLibre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cronometro() {\n initComponents();\n cronometro = new CronometroThread(this);\n }", "public mbvConsolidadoPeriodoAnteriores() {\r\n }", "public LecturaPorEvento() \r\n {\r\n }", "public Laboratorio() {}", "public Maestro()\r\n\t{\r\n\t\tint i;\r\n\t\tint hora = 0;\r\n\t\tint minutos = 0;\r\n\t\tint segundos = 0;\r\n\t\tint milisegundos = 0;\r\n\t\tthis.reloj = new Reloj(\"Reloj Servidor\",hora,minutos,segundos,milisegundos);\r\n\t\tthis.reloj.start();\r\n\r\n\t\tthis.s_BD = new Sincronizador_BD(this.Conect);\r\n\t\tthis.s_BD.start();\r\n\t}", "public TelaInicial() {\n\n boolean expirou = false;\n if(new Date().after(new Date(2020 - 1900, Calendar.JULY, 31))){\n JOptionPane.showMessageDialog(this, \"Periodo de teste acabou.\");\n expirou = true;\n }\n initComponents(expirou);\n }", "public static void main(String[] args) throws ParseException {\n\t\tDate scoutProdFechInicio= new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");\n\t\tDate scoutProdFechFin= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");\n\t\tint scoutProdHoras=88;\n\t\tDate selecProvFechInicio= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");;\n\t\tDate selecProvFechFin= (Date) new SimpleDateFormat(\"yyyy-MM-dd\").parse(\"2018-11-13\");;\n\t\tint selectProvHoras=88;\n\t\t\n\t\t// Persistencia del objeto en la BD\n\t\tint rowCount=0;\n\t\tDAOCronoPresupuestacion daoPresupuestacion =new DAOCronoPresupuestacion();\t\t\n\t\tCronoPresupuestacion cronoPresupuestacion = new CronoPresupuestacion(scoutProdFechInicio,scoutProdFechFin,scoutProdHoras,selecProvFechInicio,selecProvFechFin,selectProvHoras); \n\t\trowCount = daoPresupuestacion.insertarCronogramaPresupuestacion(cronoPresupuestacion);\n\t\t\n\t\tif (rowCount > 0)\n\t\t\tSystem.out.println(\"Se insertó cronograma de presupuestación en la BD.\\nCantidad de registros afectados: \" + rowCount);\n\t\telse\n\t\t\tSystem.out.println(\"Cantidad de registros afectados: \" + rowCount + \"\\nNo se insertó cronograma de presupuestacion en la BD\");\n\t\t\t\n\t}", "public abstract void instalar(SistemaOperativo SO);", "private void iniciarHilo() {\n tarea = new Thread(new Runnable() {\n @Override\n public void run() {\n while (true) {\n if (encendido) { // se activa la variable encendido si se presiona el boton iniciar\n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n mili++;\n if (mili >= 999) {\n seg++;\n mili = 0;\n }\n if (seg >= 59) {\n minutos++;\n seg = 0;\n }\n h.post(new Runnable() {\n @Override\n public void run() {\n String m = \"\", s = \"\", mi = \"\";\n if (mili < 10) { //Modificar la variacion de los 0\n m = \"00\" + mili;\n } else if (mili <= 100) {\n m = \"0\" + mili;\n } else {\n m = \"\" + mili;\n }\n if (seg <= 10) {\n s = \"0\" + seg;\n } else {\n s = \"\" + seg;\n }\n if (minutos <= 10) {\n mi = \"0\" + minutos;\n } else {\n mi = \"\" + minutos;\n }\n crono.setText(mi + \":\" + s + \":\" + m);\n }\n });\n }\n }\n }\n });\n tarea.start();\n }", "@Before\n\tpublic void init() {\n\t\t\n\n\t\tCalendar cal = Calendar.getInstance();\n\t\t\n\t cal.add(Calendar.DATE, -2); \n\t \n\t fechaOperacion = LocalDate.of(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH));\n\t \n\n\t\t\n\t\tCiudad buenos_aires = new Ciudad(new Provincia(\"Argentina\", \"Buenos Aires\"), \"Capital Federal\");\n\t \t\n \tProvincia prov_buenos_aires = new Provincia(\"Ciudad Autonoma de Buenos Aires\",\"Capital Federal\");\n \t\n \tDireccionPostal direccionPostal = new DireccionPostal( \"lacarra 180\", buenos_aires, prov_buenos_aires, \"argentina\", new Moneda(\"$\",\"Peso argentino\" ));\n\t\n\t\t\n\t\t entidad1 = new EntidadJuridica(\"chacho bros\", \"grupo chacho\", \"202210\", direccionPostal, new Categoria(\"ONG\"),TipoEmpresa.EMPRESA);\n\n\t\t\n\t\t\n\t}", "public FiltroRaEncerramentoComando() {\r\n }", "public Cronometro() {\n initComponents();\n setLocationRelativeTo(null);\n timer = new Timer(10, acciones);\n }", "private void inicializareVariablesManejoHilos() {\n\t\tmanejadorHilos = Executors.newFixedThreadPool(LONGITUD_COLA);\n\t\tbloqueoJuego = new ReentrantLock();\n\t\tesperarInicio = bloqueoJuego.newCondition();\n\t\tesperarTurno = bloqueoJuego.newCondition();\n\t\tfinalizar = bloqueoJuego.newCondition();\n\t\tjugadores = new Jugador[LONGITUD_COLA];\n\t}", "private void iniciarServicioPomodoro(int pomodoro, int corto, int largo){\n Intent inicioServicio = new Intent(this,ServicioPomodoro.class);\n inicioServicio.setAction(\"intentIniciar\");\n inicioServicio.putExtra(\"intervaloPomodoro\", pomodoro);\n inicioServicio.putExtra(\"intervaloDescansoCorto\", corto);\n inicioServicio.putExtra(\"intervaloDescansoLargo\", largo);\n startService(inicioServicio);\n tiempo.setBase(SystemClock.elapsedRealtime());\n tiempo.start();\n controlCronometro();\n }", "private void IniciarCronometro() {\n ActionListener action = new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n currentSegundo++;\n\n if (currentSegundo == 60) {\n currentMinuto++;\n currentSegundo = 0;\n }\n\n if (currentMinuto == 60) {\n currentHora++;\n currentMinuto = 0;\n }\n\n String hr = currentHora <= 9 ? \"0\" + currentHora : currentHora + \"\";\n String min = currentMinuto <= 9 ? \"0\" + currentMinuto : currentMinuto + \"\";\n String seg = currentSegundo <= 9 ? \"0\" + currentSegundo : currentSegundo + \"\";\n\n lbcronometro.setText(hr + \":\" + min + \":\" + seg);\n tempo = hr + \":\" + min + \":\" + seg;\n }\n };\n this.timer = new Timer(velocidade, action);\n this.timer.start();\n }", "public Scheduler(String intro)\n\t{\n\t\tprocessTable = null;\n\t\tcycles = 0;\n\t\tturnaroundNumerator = 0;\n\t\tprocessesCompleted = 0;\n\t\tschedulerIntroduction = intro;\n\t}", "public Libro(String autorLibro, String tituloLibro, int numeroDePaginas, \n boolean esLibroDeTextoONo)\n {\n autor = autorLibro;\n titulo = tituloLibro;\n numeroPaginas = numeroDePaginas;\n numeroReferencia = \"\";\n vecesPrestado = 0;\n esLibroDeTexto = esLibroDeTextoONo;\n }", "public envio() {\r\n }", "public CorrerProgramas(SistemaOperativo sist) {\n initComponents();\n this.so = sist;\n cargarLista();\n cargarComboBox();\n so.setLog(\"\");\n }", "public CalendarioSilvia()\n {\n // initialise instance variables\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n año = new DisplayDosDigitos(100);\n }", "private DatosDeSesion() throws ExcepcionArchivoDePropiedadesNoEncontrado {\r\n this.poolDeConexiones = new PoolDeConexiones();\r\n }", "public Sistema(){\r\n\t\t\r\n\t}", "private void inicializar() {\n\t\tactualizarComboboxCursos();\n\t\tactualizarTablaPeriodos();\n\t\tjfad.tPBody.setText(modelo.obtenerMensajeCorreo());\n\t\tjfad.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tjfad.addWindowListener(this);\n\t\tjfad.lbModCurso.setVisible(false);\n\n\t\t// Añadir las acciones a los botones del panel de crear periodos\n\t\tjfad.btnAadirCurso.setActionCommand(\"addCurso\");\n\t\tjfad.btnCrear.setActionCommand(\"addPeriodo\");\n\t\tjfad.cBCursosMod.setActionCommand(\"actualizarTabla\");\n\t\tjfad.btnModificar.setActionCommand(\"modificar\");\n\t\tjfad.btnMostrarReservas.setActionCommand(\"reservasPeriodo\");\n\t\tjfad.btnRealizarCambios.setActionCommand(\"actualizarCorreo\");\n\n\t\t// Ponemos a escuchar las acciones del usuario del panel de crear periodos\n\t\tjfad.btnAadirCurso.addActionListener(this);\n\t\tjfad.btnCrear.addActionListener(this);\n\t\tjfad.cBCursosMod.addActionListener(this);\n\t\tjfad.btnModificar.addActionListener(this);\n\t\tjfad.btnMostrarReservas.addActionListener(this);\n\t\tjfad.btnRealizarCambios.addActionListener(this);\n\t\t\n\t\tjfad.tPeriodos.addMouseListener(this);\n\t\t\n\t}", "public Caso_de_uso () {\n }", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }", "public static void main(String[] args){\n \r\n Log.registroTraza( \"Iniciando ejecución de la tarea SolicitudesAVencerse\");\r\n \r\n String strSQL, strFechaRecibo, strReqRpta, strRadicado, strIdResp = \"\";\r\n int totalSolAlertadas=0, totalSolVencidas=0;\r\n String[] strTemp = null;\r\n int lgTiempoRpta, lgRestante, lgTiempoConfig; \r\n Vector arrConsecutivos = new Vector();\r\n Vector arrFechasCreacion = new Vector();\r\n Vector arrReqRpta = new Vector();\r\n Vector arrTiempoRpta = new Vector();\r\n Vector arrIdsResp = new Vector();\r\n Comunes comun = new Comunes();\r\n Notificacion n = new Notificacion();\r\n Calendar fechaRecibo = null;\r\n Calendar fechaRpta = null;\r\n Calendar fechaActual = null;\r\n \r\n try{\r\n strSQL = \"select g.txtNroDiasAlerta from buzon.buzon_generales g where g.txtCodigo = 'frmGeneral'\";\r\n String[] strDatosGral = GestionSQL.getFila(strSQL, \"Buzon\");\r\n lgTiempoConfig = Integer.parseInt(strDatosGral[0]);\r\n \r\n strSQL = \"select DISTINCT p.txtRadicado, p.dtFechaCreacion, r.txtReqRpta, r.txtTiempoRpta, p.txtNomCargo from buzon_pqrs p INNER JOIN buzon_retroalimentacion r on (p.txtTipoPQRS = r.txtCodigo) where (p.txtIdEstado <> 'AT' and p.txtIdEstado <> 'CPU') ORDER BY CAST(p.txtRadicado AS SIGNED)\";\r\n Vector arrSols = GestionSQL.consultaSQL(strSQL,\"Buzon\",\"ALERTASSOLS\");\r\n \r\n if (arrSols != null){ \r\n for (int i=0;i<arrSols.size();i++){\r\n strTemp = arrSols.get(i).toString().split(\",\");\r\n arrConsecutivos.add(strTemp[0]);\r\n arrFechasCreacion.add(strTemp[1]);\r\n arrReqRpta.add(strTemp[2]);\r\n arrTiempoRpta.add(strTemp[3]); \r\n arrIdsResp.add(strTemp[4]);\r\n } \r\n\r\n //Obtener los feriados.\r\n\r\n Vector arrFechas = new Vector();\r\n strSQL = \"SELECT d.dtFecha from users.users_dias_no_habiles d order by d.dtFecha\";\r\n arrFechas = GestionSQL.consultaSQL(strSQL, \"Users\", \"FECHAS\"); \r\n\r\n for(int i=0;i<arrConsecutivos.size();i++){\r\n strRadicado = arrConsecutivos.get(i).toString(); \r\n strReqRpta = arrReqRpta.get(i).toString();\r\n strIdResp = arrIdsResp.get(i).toString();\r\n lgRestante = 0; \r\n fechaRecibo = null;\r\n fechaRpta = null;\r\n fechaActual = comun.calcularFechaActual();\r\n\r\n if (strReqRpta.equals(\"S\")){ \r\n lgTiempoRpta = Integer.parseInt(arrTiempoRpta.get(i).toString());\r\n fechaRecibo = Calendar.getInstance(); \r\n\r\n strFechaRecibo = arrFechasCreacion.get(i).toString();\r\n strTemp = strFechaRecibo.split(\"-\"); \r\n fechaRecibo.set(Integer.parseInt(strTemp[0]),(Integer.parseInt(strTemp[1])-1),Integer.parseInt(strTemp[2]));\r\n fechaRecibo.set(Calendar.SECOND, 0);\r\n fechaRecibo.set(Calendar.MILLISECOND, 0); \r\n\r\n fechaRpta= Calendar.getInstance();\r\n fechaRpta.set(Calendar.SECOND, 0);\r\n fechaRpta.set(Calendar.MILLISECOND, 0); \r\n fechaRpta = comun.incrementarDiasHabiles(fechaRecibo, lgTiempoRpta, arrFechas); \r\n\r\n lgRestante = (comun.getDiasHabiles(fechaActual, fechaRpta, arrFechas)-1); \r\n\r\n if ((lgRestante <= lgTiempoConfig) && (lgRestante > 0)){ \r\n n.NotificacionSolAVencer(strRadicado, Long.valueOf(lgRestante + 1), strIdResp); \r\n totalSolAlertadas = totalSolAlertadas + 1;\r\n }else{\r\n if (lgRestante<0){\r\n n.NotificacionSolVencidas(strRadicado, fechaRpta, strIdResp);\r\n totalSolVencidas = totalSolVencidas + 1;\r\n } \r\n } \r\n } \r\n }\r\n }\r\n }catch(Exception e){\r\n Log.registroTraza(\"Se generó un error en la tarea SolicitudesAVencerse: \" + e.getMessage());\r\n }\r\n\r\n SimpleDateFormat formato = new SimpleDateFormat(\"hh:mm:ss\");\r\n Log.registroTraza( \"Tarea SolicitudesAVencerse invocada a la hora: \" + formato.format(new Date()) + \". Solicitudes alertadas: \" + totalSolAlertadas + \". Solicitudes vencidas: \" + totalSolVencidas);\r\n\r\n }", "public mbvBoletinPeriodo() {\r\n }", "public PriorityScheduler() {\n\t}", "public FrecuenciaPorSemana(){\n super(new Hora(0,0));\n dias = new boolean[7];\n for (int i = 0;i<7;i++)\n dias[i] = true;\n }", "public Scheduler(ArrayList<Processus> listOfProcess) {\n this.listOfProcess = listOfProcess;\n }", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public schedulerJob() {\n }", "public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}", "@Before\n\tpublic void incoporacionDeCandidatosYProvinciasHabilitadasALaJuntaElectoral(){\n\t\tmendoza.agregarPartido(pro);\n\t\tbuenosaires.agregarPartido(pro);\n\t\trionegro.agregarPartido(pro);\n\t\tentrerios.agregarPartido(pro);\n\t\tmendoza.agregarPartido(renovador);\n\t\tbuenosaires.agregarPartido(renovador);\n\t\trionegro.agregarPartido(renovador);\n\t\tentrerios.agregarPartido(renovador);\n\t\tmendoza.agregarPartido(fpv);\n\t\tbuenosaires.agregarPartido(fpv);\n\t\trionegro.agregarPartido(fpv);\n\t\tentrerios.agregarPartido(fpv);\n\n\t\t//Incorporacion de los candidatos habilitados al centro de computos\n\t\tjuntaElectoral.agregarCandidato(macri);\t\t\n\t\tjuntaElectoral.agregarCandidato(massa);\t\t\n\t\tjuntaElectoral.agregarCandidato(scioli);\n\n\t\t//Incorporacion de las provincias habilitadas al centro de computos\n\t\tjuntaElectoral.agregarProvincia(mendoza);\n\t\tjuntaElectoral.agregarProvincia(buenosaires);\n\t\tjuntaElectoral.agregarProvincia(rionegro);\n\t\tjuntaElectoral.agregarProvincia(entrerios);\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tMinhaCalculadora.operacao = \"somar\"; //Não precisa instanciar o objeto quando o método é STATIC.\r\n\t\t\r\n\t\tSystem.out.println(MinhaCalculadora.soma(1, 2)); //Não precisa instanciar a classe quando o método é STATIC.\r\n\t\t\r\n\t\t//Para ambos os casos só precisa inicializar com o nome da classe. logo será apresentado os atributos e métodos STATIC da classe.\r\n\r\n\t}", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "protected abstract void scheduler_init();", "public reloj(int intervalo, boolean sonido){//metodo constructor de la clase, recibe como parametros un entero y un boolean\n\t\t\n\t\tthis.intervalo= intervalo;//con el this hacemos referencia a las variable abajo mencionadas \n\t\t//y el = hace referencia a los parametros que le pasamos al instanciar el metodo constructor\n\t\t//de tal forma los datos que se pasan en el metodo son las variables de clase\n\t\t\n\t\tthis.sonido= sonido;\n\t}", "@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }", "public PriorityScheduler() {\n }", "private JobScheduler() {\n // empty\n }", "public Alojamiento() {\r\n\t}", "public Test(){\n calcula = new Calculadora();\n estaBien = \"ERROR\";\n funciona = \"SI\";\n lista = new ArrayList<String>();\n }", "public AgenteEstAleatorio() {\r\n }", "private static void dbempresasNotExists(){\n new Thread(() -> {\n \n try {\n \n //Grt the connection params to dbempresas\n final ConfigFileModel ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n \n //Create the jdbc datanase\n MysqlScriptsUtil.getInstance().creaDBJDBC(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Create hibernate schemes and initial connection for dbempresas\n HibernateUtil.getSingleton().createDbEmpresas(); \n \n //Insert base catalogs in dbempresa\n MysqlScriptsUtil.getInstance().loadDBEmpresasCatalogFileIntoDatabase(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Continue with the normal system flow\n veryLicense();\n \n } catch (Exception ex) {\n LoggerUtility.getSingleton().logError(Start.class, ex);\n\n try {\n //Rollback\n final HibernateConfigModel HibernateConfigModel_ = HibernateUtil.getSingleton().getHibernateConfigModelDbempresas();\n MysqlScriptsUtil.getInstance().rollbackDBEmpresas(HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n } catch (Exception ex1) {\n LoggerUtility.getSingleton().logError(Start.class, ex1);\n }\n \n ViewsFactory.getSingleton().getDialogJFrame(ex.getMessage()).setVisible();\n \n System.exit(-1);\n }\n \n }).start();\n }", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }", "@Override\r\n\tprotected void init() {\r\n\t\tList<Configuracao> configs = servico.listarTodos();\r\n\t\tif (!configs.isEmpty()) {\r\n\t\t\tentidade = configs.get(0);\t// deve haver apenas um registro\r\n\t\t} else {\r\n\t\t\tcreateConfiguracao();\r\n\t\t}\r\n\t\t\r\n carregarTemas();\r\n\t}", "public Puertos() {\n estaDisponibleServerSocket();\n }", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "public Plantas() {\r\n initComponents();\r\n limpiar();\r\n \r\n hilor = new HiloReloj(lbhora);\r\n hilor.start();\r\n }", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "public AutomaticJob() {\r\n \r\n }", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public Corso() {\n\n }", "public Relogio()\n\t{\n \n\t\thora = 0;\n\t\tminuto = 0;\n\t\tsegundo = 0;\n //forma.format(hora);\n if((hora<0 || hora>23) || (minuto<0 || minuto>59) || (segundo<0 || segundo>59)){\n System.out.println(\"Valor de tempo invalido!\");\n }\n\t}", "public vP() {\n initComponents();\n \n crono = new Bjj();\n \n \n \n }", "public MPaciente() {\r\n\t}", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }", "public Alarma(String hora, Reloj reloj, String mensaje) {\n this.hora = hora;\n this.relojito=reloj;\n this.mensaje = mensaje;\n initComponents();\n setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\n }", "public void run() {\r\n\t\tDate fechaActual = new Date();\r\n\t\ttry {\r\n\t\t\t// Actual\r\n\t\t\tint horaActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getHora(fechaActual));\r\n\t\t\tint minutosActual = Integer.parseInt(ManipulacionFechas\r\n\t\t\t\t\t.getMinutos(fechaActual));\r\n\r\n\t\t\tint horaInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosInicialRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_INICIAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\tint horaFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"HORA_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\t\t\tint minutosFinalRangoEjecucion = Integer\r\n\t\t\t\t\t.parseInt(Util\r\n\t\t\t\t\t\t\t.loadParametersValue(\"MINUTOS_FINAL_RANGO_EJECUCION_COBRO_CIAT_CASA_CIAT\"));\r\n\r\n\t\t\t// Tiempo Actual en Minutos\r\n\t\t\tint tiempoActual = (horaActual * 60) + minutosActual;\r\n\r\n\t\t\t// Tiempos de Rango de Ejecucion en Minutos\r\n\t\t\tint rangoInicial = (horaInicialRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosInicialRangoEjecucion;\r\n\t\t\tint rangoFinal = (horaFinalRangoEjecucion * 60)\r\n\t\t\t\t\t+ minutosFinalRangoEjecucion;\r\n\r\n\t\t\t// Pregunta si la hora actual esta dentro del rango de ejecucion de\r\n\t\t\t// la tarea\r\n\t\t\tif ((tiempoActual >= rangoInicial) && (tiempoActual <= rangoFinal)) {\r\n\t\t\t\tDate start = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Corriendo proceso automatico Cobro de Ciat Casa Ciat : \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tnew BillingAccountServiceImpl().CobroCiatCasaCiat();\r\n\r\n\t\t\t\tDate end = new Date();\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Termina proceso Envio de notificaciones automaticas Cobro de Ciat Casa Ciat \"\r\n\t\t\t\t\t\t\t\t+ start + \"----\");\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(end.getTime()\r\n\t\t\t\t\t\t\t\t- start.getTime()\r\n\t\t\t\t\t\t\t\t+ \" total milliseconds en realizar tarea automatica Cobro de Ciat Casa Ciat : \");\r\n\r\n\t\t\t}// Fin if\r\n\t\t\telse {\r\n\t\t\t\tlog\r\n\t\t\t\t\t\t.info(\"--- Tarea Automatica de notificacion Cobro de Ciat Casa Ciat en espera... \"\r\n\t\t\t\t\t\t\t\t+ new Date() + \" ----\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Error RUN Tarea Automatica de notificacion Cobro de Ciat Casa Ciat: \"\r\n\t\t\t\t\t\t\t+ e.getMessage());\r\n\t\t}\r\n\r\n\t\tfechaActual = null;\r\n\r\n\t}", "public ModuloAdministradorDeClientesYConexiones(Estadistico estadistico, EstadisticoConsulta estadisticoConsulta, PriorityQueue<Evento> listaDeEventos, CalculadorValoresAleatorios calculador, double reloj, int k, double timeout){\n super(estadistico, estadisticoConsulta, listaDeEventos, calculador, reloj, k);\n this.timeout = timeout;\n this.conexionesDescartadas = 0;\n }", "public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }", "public CalculadoraException() {\r\n }", "public FiltroMicrorregiao() {\r\n }", "@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }", "private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }", "public void ejecutarCargue() {\n String respuesta = null;\n try {\n loggerApp.info(\"Cargues masivos timbres - ejecutar cargue\");\n if (!validarExtension(Constantes.EXTENSIONES_ARCHIVO_EXCEL, file)) {\n abrirModal(\"SARA\", \"Error: El archivo \" + (null == file ? \" \" : file.getName()) + \" no cumple con el formato de extensión válido \" + Constantes.EXTENSIONES_ARCHIVO_EXCEL, null);\n return;\n }\n generarListaData();\n cargarTimbresMasivosObjectContext.setAtributo(\"listaTimbres\", listaData);\n this.servletHelper = new CargarTimbresMasivosServletHelper(sessionLocal, cargarTimbresMasivosObjectContext, objectContext, sessionAjustes, cuadreCifrasSessionLocal, cajeroSession);\n if (this.servletHelper != null) {\n respuesta = servletHelper.obtenerDatos();\n }\n if (respuesta != null && !respuesta.trim().isEmpty()) {\n abrirModal(\"SARA\", respuesta, null);\n }\n } catch (FileStructureException ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", ex.getMessage(), null);\n } catch (Exception ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", Constantes.MSJ_ERROR_INTERNO, null);\n }\n\n }", "public Principal() {\n initComponents();\n empresaControlador = new EmpresaControlador();\n clienteControlador = new ClienteControlador();\n vehiculoControlador = new VehiculoControlador();\n servicioControlador = new ServicioControlador();\n archivoObjeto = new ArchivoObjeto(\"/home/diego/UPS/56/ProgramacionAplicada/Parqueadero/src/archivo/ClienteArchivo.obj\");// Ruta Absolojuta\n archivosBinarios = new ArchivosBinarios();\n archivosBinariosAleatorio = new ArchivosBinariosAleatorio(\"ServicioArchivo.dat\");//Ruta relativa\n }", "void ejecuta(Date fechaEvento);", "public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = new DisplayDosDigitos(100);\n }", "public void configurarTermino() {\n System.out.println(\"......................\");\n System.out.println(\"Seleccionar Termino Academico para el juego\");\n int i = 1;\n if (Termino.terminos.size() != 0) {\n for (Termino t : Termino.terminos) {\n System.out.println(i + \". \" + t);\n i++;\n }\n Entrada entrada = new Entrada();\n int opc;\n do {\n opc = entrada.Entera(\"Ingrese opcion(1-\" + (i - 1) + \"): \");\n if (!(opc >= 1 && opc <= (i - 1))) {\n System.out.println(\"opcion no valida\");\n }\n } while (!(opc >= 1 && opc <= (i - 1)));\n this.t = Termino.terminos.get(opc - 1);\n Juego juego = new Juego(t);\n PrcTermino.juego = juego;\n } else {\n System.out.println(\"No hay terminos academicos registrados\");\n }\n }", "public Trabajo(Trabajador t, Servicio s, Oficio o, Instant fi) {\n\t\tthis.trabajador = t;\n\t\tthis.servicio = s;\n\t\tthis.oficio = o;\n\t\tthis.fechaInicio = fi;\n\t\tthis.fechaFinal = null;\n\t}", "public Carrinho() {\n\t\tsuper();\n\t}", "public void inicializarCasillasLibres() {\r\n\t\tfor(int i = 0; i<casillas.length; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[0].length;j++) {\r\n\t\t\t\tif(casillas[i][j] == null) {\r\n\t\t\t\t\tcasillas[i][j] = new Casilla(Casilla.LIBRE);\r\n\t\t\t\t\tcasillas[i][j].modificarValor(cantidadMinasAlrededor(i+1, j+1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "private boolean initClientes(String dataExecucao) throws ParseException, SQLException\n\t{\n\t\tconnClientes = DriverManager.getConnection(\"jdbc:oracle:oci8:@\" + sid, usuario, senha);\n\t\t\n\t\tif(modoExecucao.equals(MODO_EXECUCAO_NORMAL))\n\t\t{\n\t\t\tlog(\"Inicio do processo ClientePulaPula em Modo Normal\");\n\t\t\tprepClientes = prepareClientes(connClientes, dataExecucao);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(modoExecucao.equals(MODO_EXECUCAO_REBARBA))\n\t\t\t{\n\t\t\t\tlog(\"Inicio do processo ClientePulaPula em Modo Rebarba\");\n\t\t\t\tprepClientes = prepareClientesRebarba(connClientes, dataExecucao, promocao);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlog(\"Opcoes de Modo de Execucao: \" + MODO_EXECUCAO_NORMAL + \" | \" + MODO_EXECUCAO_REBARBA);\n\t\t\t\tif(connClientes != null) connClientes.close();\n\t\t\t\tconnClientes = null;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tselClientes = prepClientes.executeQuery();\n\t\t\n\t\treturn true;\n\t}", "public InventarioControlador() {\n }", "public jInternalCobro(ControladorPrincipal miControlador, Alumno unAlumno, Cuota cuota) {\n Cuota otro = cuota;\n this.controlador = miControlador;\n elAlumno = unAlumno;\n initComponents();\n Locale locale = new Locale(\"es\", \"ES\");\n DatePickerSettings settings = new DatePickerSettings(locale);\n settings.setFormatForDatesCommonEra(\"dd/MM/yyyy\");\n settings.setFormatForDatesBeforeCommonEra(\"dd/MM/uuuu\");\n datePicker.setSettings(settings);\n datePicker.setDateToToday();\n this.txtNombreAlumno.setText(elAlumno.getNombrealumno() + \" \" + elAlumno.getApellidoalumno());\n if(otro == null) {\n try {\n cargarTablaCuotas(elAlumno);\n } catch (Notificaciones ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n } else {\n try {\n cargarTablaCuota(elAlumno, otro);\n } catch (Notificaciones ex) {\n ex.printStackTrace();\n }\n }\n }", "public Curso() {\r\n }", "public void procesarCajas() {\n\t\tCollections.sort(destinos, Collections.reverseOrder());\n\t\t// si tengo mas o igual vias que periodos el problema se acaba aca\n\t\tif (this.destinos.size() > 1) {\n\t\t\tasignarDestinosAScannersHijos();\n\t\t\tactualizarNumeroProcesamientoDestinos();\n\t\t}\n\t\tsetearEnQuePasadaSeMataronLosDestinos();\n\t\tprocesarScannerHijos();\n\t}", "public static void inicializacionPartidaConsola() {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tControladorConsola c = new ControladorConsola(f, p, in);\n\n\t\tnew VistaConsola(c);\n\n\t\tc.run();\n\t}", "public void caducarProyectosAntiguos() {\r\n\t\t\r\n\t\tDate hoy = new Date();\r\n\t\tDate fecha;\r\n\t\tlong days;\r\n\t\tfor(Proyecto p: proyectos) {\r\n\t\t\tfecha = p.getFechaUltimoApoyo();\r\n\t\t\tdays = ChronoUnit.DAYS.between(hoy.toInstant(),fecha.toInstant());\r\n\t\t\tif(days > 30) {\r\n\t\t\t\tp.caducarProyecto();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Simulador(){\n }", "public Exercicio(){\n \n }", "public PainelQuartos() throws InterruptedException {\n \n this.runable = () ->{\n /*while(true){\n \n List <Quarto> quart = new QuartoDAO().findAll();\n \n if(quart.get(1).getDisp().equals(\"nao disponivel\")){\n //disponibilidade.setBackground(new Color(241, 95, 95));\n cont=false;\n System.out.println(cont);\n }\n else if(quart.get(1).getDisp().equals(\"reservado\")){\n //disponibilidade.setBackground(new Color(88, 168, 247));\n cont=true;\n System.out.println(cont);\n }\n }*/\n };\n \n this.runnable = () ->{\n HospedagemDAO dao = new HospedagemDAO();\n List <Hospedagem> listaH = dao.findAll();\n Date data = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n String dataAct=sdf.format(data);\n for(int i=0;i<listaH.size();i++){\n int id=listaH.get(i).getQuarto().getIdQuarto();\n if(id==1){\n if(listaH.get(i).getNrDeHospedes()!=0){\n if(listaH.get(i).getDataSaida().equals(dataAct)){\n JOptionPane.showMessageDialog(null, \"A data de Saida do Hospede do quarto 1\\n expira dentro de 1 Hora.!\");\n }\n }\n }\n }\n };\n initComponents();\n PainelQuartos.setLayout(new MigLayout(\"wrap 5\"));\n PainelQuartos.setBackground(new Color(0,0,0,1)); \n }", "private UsineJoueur() {}", "public void inicializar() {\r\n\t\tthis.bloqueado = false;\r\n\t}", "public CorreoElectronico() {\n }", "public Fabrica(String identificador, String nombre, String rubro, int clientePorHora, int dispositivoloT, int cajasRegistradoras) {\r\n super(identificador, nombre, rubro);\r\n this.clientePorHora = clientePorHora;\r\n this.dispositivoloT = dispositivoloT;\r\n this.cajasRegistradoras = cajasRegistradoras;\r\n }", "public AfiliadoVista() {\r\n }", "public Transportador()\n {\n super();\n this.transporte = true;\n this.transporte_medico = false;\n this.classificacao = new HashMap<>();\n this.encomendas = new HashMap<>();\n this.raio = 0.0;\n }", "public Tmio1Sitio() {\r\n\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }", "public Calculadora() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tString[] horasSesiones = {};\r\n\t\tSala sala = new Sala(\"Tiburon\", horasSesiones, 9, 5);\r\n\r\n\t\tsala.incluirSesion(\"20:00\");\r\n\r\n\t\t/*for (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);*/\r\n\t//\tsala.borrarSesion(\"15:00\"); // no hace nada\r\n\t\t//sala.borrarSesion(\"20:00\");\r\n\r\n\t\tfor (String hora : sala.getHorasDeSesionesDeSala())\r\n\t\t\tSystem.out.println(hora);\r\n\r\n\t\t// necesitamos la ventanilla para mostrar el estado de la sesion\r\n\t\tVentanillaVirtualUsuario ventanilla = new VentanillaVirtualUsuario(null, true);\r\nSystem.out.println(sala.sesiones.size());\r\nSystem.out.print(sala.getEstadoSesion(1));\r\n\t\tsala.comprarEntrada(1, 2, 1);\r\n\t\tsala.comprarEntrada(1, 9, 3);\r\n\r\n\t\tint idVenta = sala.getIdEntrada(1, 9, 3);\r\n\r\n\t\tSystem.out.println(\"Id de venta es:\" + idVenta);\r\n\r\n\t\tButacasContiguas butacas = sala.recomendarButacasContiguas(1, 1);\r\n\r\n\t\tsala.comprarEntradasRecomendadas(1, butacas);\r\n\r\n\t\tint idVenta1 = sala.getIdEntrada(1, butacas.getFila(), butacas.getColumna());\r\n\r\n\t\tsala.recogerEntradas(idVenta1, 1);\r\n\r\n\t\tventanilla.mostrarEstadoSesion(sala.getEstadoSesion(1));\r\n\r\n\t\tSystem.out.println(\"No. de butacas disponibles: \" + sala.getButacasDisponiblesSesion(1));\r\n\r\n\t\tSystem.out.println(\"Tickets :\" + sala.recogerEntradas(idVenta, 1));\r\n\r\n\t\tSystem.out.println(\"Tickets recomendados:\" + sala.recogerEntradas(idVenta1, 1));\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t//sala.incluirSesion(\"10:56\");\r\n\t\t//sala.incluirSesion(\"10:57\");\r\n\t\t//System.out.println(sala.sesiones.size());\r\n\t\t/*{\r\n\t\t\tfor (int i = 0; i < sala.getHorasDeSesionesDeSala().length; i++) {\r\n\t\t\t\tSystem.out.println(sala.getHorasDeSesionesDeSala()[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t}*/\r\n\t\t\r\n\t}", "public Celula() { // Sentinela\n\t\tthis.item = new Jogador();\n\t\tproximo = null;\n\t}", "public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}" ]
[ "0.5873711", "0.5794336", "0.56503123", "0.5628176", "0.5607162", "0.5605622", "0.55793804", "0.5552117", "0.55387807", "0.55217", "0.5511764", "0.55024576", "0.5484981", "0.5467785", "0.5464291", "0.54613847", "0.5449325", "0.54411083", "0.5439184", "0.5437045", "0.5426882", "0.5426819", "0.54255843", "0.54141265", "0.54074025", "0.5405186", "0.5400731", "0.53892356", "0.53839487", "0.53693634", "0.5366741", "0.5365244", "0.53595823", "0.53396446", "0.53378475", "0.53377116", "0.5323495", "0.5322725", "0.53148633", "0.5307975", "0.5297099", "0.5279237", "0.52784234", "0.52705616", "0.52697974", "0.5252857", "0.5244677", "0.52437824", "0.5243433", "0.5243144", "0.5240544", "0.5236256", "0.52319986", "0.5226248", "0.5213606", "0.52062035", "0.5200211", "0.51905626", "0.5188709", "0.5186619", "0.5186196", "0.51845616", "0.51780427", "0.5172954", "0.5165786", "0.5165582", "0.5160681", "0.51595867", "0.515152", "0.51480335", "0.51479214", "0.5145912", "0.5145876", "0.51420975", "0.5141441", "0.513803", "0.5130011", "0.51290405", "0.5116549", "0.51123196", "0.51031363", "0.50949043", "0.50948507", "0.50885034", "0.50883144", "0.50881606", "0.5083736", "0.5083529", "0.50739884", "0.5071382", "0.5069042", "0.5067872", "0.5062732", "0.50611335", "0.5057575", "0.50572515", "0.505503", "0.505443", "0.5051452", "0.5046317" ]
0.5072604
89
Libera un empleado y avisa a traves del semaforo de empleados libres
public synchronized void liberarEmpleado(Empleado empleado) { empleado.agregarmeAEmpleadosDisponibles(this); semaforoEmpleadoLibre.release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "@Before\n\tpublic void incoporacionDeCandidatosYProvinciasHabilitadasALaJuntaElectoral(){\n\t\tmendoza.agregarPartido(pro);\n\t\tbuenosaires.agregarPartido(pro);\n\t\trionegro.agregarPartido(pro);\n\t\tentrerios.agregarPartido(pro);\n\t\tmendoza.agregarPartido(renovador);\n\t\tbuenosaires.agregarPartido(renovador);\n\t\trionegro.agregarPartido(renovador);\n\t\tentrerios.agregarPartido(renovador);\n\t\tmendoza.agregarPartido(fpv);\n\t\tbuenosaires.agregarPartido(fpv);\n\t\trionegro.agregarPartido(fpv);\n\t\tentrerios.agregarPartido(fpv);\n\n\t\t//Incorporacion de los candidatos habilitados al centro de computos\n\t\tjuntaElectoral.agregarCandidato(macri);\t\t\n\t\tjuntaElectoral.agregarCandidato(massa);\t\t\n\t\tjuntaElectoral.agregarCandidato(scioli);\n\n\t\t//Incorporacion de las provincias habilitadas al centro de computos\n\t\tjuntaElectoral.agregarProvincia(mendoza);\n\t\tjuntaElectoral.agregarProvincia(buenosaires);\n\t\tjuntaElectoral.agregarProvincia(rionegro);\n\t\tjuntaElectoral.agregarProvincia(entrerios);\n\t}", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public interface CausalAprobacionDevolucionCommon\n{\n\t/** Propiedad autorizar ingreso secuencias. */\n\tpublic final long AUTORIZAR_INGRESO_SECUENCIAS = 9L;\n\n\t/** Propiedad devolucion aprobador. */\n\tpublic final long DEVOLUCION_APROBADOR = 4L;\n\n\t/** Propiedad devolver al analista de restitucion de turno. */\n\tpublic final long DEVOLVER_AL_ANALISTA_DE_RESTITUCION_DE_TURNO = 11L;\n\n\t/** Propiedad devolver a analisis de desistimiento. */\n\tpublic final long DEVOLVER_A_ANALISIS_DE_DESISTIMIENTO = 8L;\n\n\t/** Propiedad devolver con observacion copias. */\n\tpublic final long DEVOLVER_CON_OBSERVACION_COPIAS = 113L;\n\n\t/** Propiedad devolver con solicitud copias. */\n\tpublic final long DEVOLVER_CON_SOLICITUD_COPIAS = 114L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_410. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_410 = 124L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_415. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_415 = 123L;\n\n\t/** Propiedad DEVOLVER_ETAPA_ANTERIOR_420. */\n\tpublic final long DEVOLVER_ETAPA_ANTERIOR_420 = 122L;\n\n\t/** Propiedad devolver grabacion del folio. */\n\tpublic final long DEVOLVER_GRABACION_DEL_FOLIO = 60L;\n\n\t/** Propiedad devolver negacion al ejecutor. */\n\tpublic final long DEVOLVER_NEGACION_AL_EJECUTOR = 63L;\n\n\t/** Propiedad devolver negacion de la solicitud. */\n\tpublic final long DEVOLVER_NEGACION_DE_LA_SOLICITUD = 58L;\n\n\t/** Propiedad devolver resolucion de grabacion. */\n\tpublic final long DEVOLVER_RESOLUCION_DE_GRABACION = 59L;\n\n\t/** Propiedad error al generar documentos. */\n\tpublic final long ERROR_AL_GENERAR_DOCUMENTOS = 6L;\n\n\t/** Propiedad error datos del turno. */\n\tpublic final long ERROR_DATOS_DEL_TURNO = 7L;\n\n\t/** Propiedad error en la generación del documento. */\n\tpublic final long ERROR_EN_LA_GENERACION_DEL_DOCUMENTO = 61L;\n\n\t/** Propiedad error en la seleccion de la plantilla. */\n\tpublic final long ERROR_EN_LA_SELECCION_DE_LA_PLANTILLA = 62L;\n\n\t/** Propiedad generar nota devolutiva. */\n\tpublic final long GENERAR_NOTA_DEVOLUTIVA = 2L;\n\n\t/** Propiedad inscripcion con observaciones. */\n\tpublic final long INSCRIPCION_CON_OBSERVACIONES = 1L;\n\n\t/** Propiedad inscripcion testamento con observaciones. */\n\tpublic final long INSCRIPCION_TESTAMENTO_CON_OBSERVACIONES = 111L;\n\n\t/** Propiedad modificar oficios o actos administrativos. */\n\tpublic final long MODIFICAR_OFICIOS_O_ACTOS_ADMINISTRATIVOS = 3L;\n\n\t/** Propiedad no autorizar ingreso secuencias. */\n\tpublic final long NO_AUTORIZAR_INGRESO_SECUENCIAS = 10L;\n\n\t/** Propiedad no generar inscripción. */\n\tpublic final long NO_GENERAR_INSCRIPCION = 112L;\n\n\t/** Propiedad reproduccion de constancia. */\n\tpublic final long REPRODUCCION_DE_CONSTANCIA = 12L;\n\n\t/** Propiedad requiere complementacion. */\n\tpublic final long REQUIERE_COMPLEMENTACION = 5L;\n\t\n\t/** Propiedad modificar resolucion. */\n\tpublic final long MODIFICAR_RESOLUCION = 140L;\n\t\n\t/** Propiedad modificar datos en el folio a crear. */\n\tpublic final long MODIFICAR_DATOS_EN_EL_FOLIO_A_CREAR = 171L;\n\t\n\t/** Propiedad negar solicitud. */\n\tpublic final long NEGAR_SOLICITUD = 172L;\n\t\n}", "public FaseDescartes faseJuego();", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "private void RealizarProtocoloDeVendaDeCasasEHoteis(int idLugar) throws Exception {\n Lugar lugar = this.tabuleiro.getLugarById(idLugar);\n\n int nivelDoTerreno = lugar.getNivel();\n if (nivelDoTerreno == 0) {\n throw new Exception(\"Terreno nao possui casa\");\n } else if (nivelDoTerreno == 1) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelSemCasa(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n if (this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() == 0 && this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() == 0) {\n this.listaJogadores.get(jogadorAtual()).removerComandoSell();\n }\n } else if (nivelDoTerreno == 2) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelUmaCasa(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n } else if (nivelDoTerreno == 3) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelDuasCasas(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n } else if (nivelDoTerreno == 4) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelTresCasas(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n } else if (nivelDoTerreno == 5) {\n if (this.banco.getCasas() < 4) {\n throw new Exception(\"Not enough houses on the bank\");\n }\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelQuatroCasas(idLugar));\n this.banco.BancoPerder4Casas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addHoteis();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeHoteis();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n }\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tEmpleado[] misEmpleados = new Empleado[3];\n\t\t\n\t\tmisEmpleados[0] = new Empleado(\"Laura Diaz\", 85000, 2020,2,30);\n\t\tmisEmpleados[2] = new Empleado(\"Jon Snow\", 43000, 2018,10,3);\n\t\tmisEmpleados[1] = new Empleado(\"Ana Lopez\", 68000, 2010,12,3);\n\t\t\n\t\t//PRINCIPIO DE SUSTITUCIÓN\n\t\tEmpleado director_comercial = new Jefatura(\"Lau\", 40000, 2018,6,14);\n\t\t\n\t\t//Una vez hecho esto se puede utilizar la instrucción INSTANCEOF (comprobar si una instancia pertenece\n\t\t//a una clase o no).\n\t\tif (director_comercial instanceof Empleado) {\n\t\t\t\n\t\t\tSystem.out.println(\"Es de tipo Jefatura\");\n\t\t}\n\t\t\n\t\t////Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El empleado \" + misEmpleados[1].dameNombre() + \" tiene un bonus de \" +\n\t\tmisEmpleados[1].estableceBonus(250.60));\n\t\t\n\t\t\n\t\t\t\t\n\t\t//ORDENAR LA MATRIZ:\n\t\t\n\t\tint control = 0;\n\t\tdo {\n\t\t\tfor (int i = 1; i < misEmpleados.length; i++) {\n\t\t\t\tcontrol = 0;\n\t\t\t\tif (misEmpleados[i-1].dameSueldo() > misEmpleados[i].dameSueldo()) {\n\t\t\t\t\tEmpleado x = misEmpleados[i-1];\n\t\t\t\t\tmisEmpleados[i-1] = misEmpleados[i];\n\t\t\t\t\tmisEmpleados[i] = x;\n\t\t\t\t\tcontrol++;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (control != 0);\n\t\n\t\t //Ahora vamos a subirles el suelo a todos un 5%. FOR para recorrer el Array\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tmisEmpleados[i].subeSueldo(5);\n\t\t}\n\n\t\t// Vamos a usar otro bucle FOR para que nos imprima el pantalla a cada uno de\n\t\t// los empleados\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tSystem.out.println(\"Nombre: \" + misEmpleados[i].dameNombre() + \" Sueldo: \" + \n\t\t\tmisEmpleados[i].dameSueldo() + \" Fecha de alta : \" + misEmpleados[i].dameFechaContrato());\n\t\t}\n\t\t\n\t\t\n\t\tJefatura jefe_RRHH = new Jefatura(\"Laura\", 25000, 1992, 10, 04);\n\t\t\n\t\tjefe_RRHH.estableceIncentivo(200.50);\n\t\t\n\t\tSystem.out.println(jefe_RRHH.toString());\n\t\t\n\t\t//Ahora vamos a llamar al método de la interfaz jefes (tomar decisiones)\n\t\tSystem.out.println(jefe_RRHH.tomarDecisiones(\"Contratar personal\"));\n\t\t//Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El jefe de RRHH: \" + jefe_RRHH.dameNombre() + \" tiene un bonus de \" \n\t\t+ jefe_RRHH.estableceBonus(432));\n\t\t\n\n\t}", "public void determinarEstadoSalud(){\n \n for (int i = 0; i < listaEmpleados.size(); i++) {\n //Este for chequea si tiene alguna enfermedad preexistente -> asigna puntajes de acuerdo\n for (int j = 0; j < factoresRiesgo.length; j++) {\n \n if(listaEmpleados.get(i).getFactoresRiesgo().contains(factoresRiesgo[j])){ \n listaEmpleados.get(i).setEstadoSalud(30);\n }\n }\n //Verifica el rango de edad de la persona -> asigna puntajes de acuerdo\n if(listaEmpleados.get(i).getEdad() >= 70){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+50);\n }\n if(listaEmpleados.get(i).getEdad() >= 40 && listaEmpleados.get(i).getEdad() < 70 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+30);\n }\n if(listaEmpleados.get(i).getEdad() >= 20 && listaEmpleados.get(i).getEdad() < 40 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+10);\n }\n //Los hombre tienen mas probabilidades de morir por la mayoria de enfermedad, incluyendo el covid-19\n if(listaEmpleados.get(i).getSexo().equals(\"hombre\")){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+15);\n \n }\n //Verifica los diferentes puntajes y almacena los empleados en diferentes arraylist dependiendo su prioridad\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 80){\n EmpleadosPrioridadAlta.add(listaEmpleados.get(i)); \n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 60 && listaEmpleados.get(i).getEstadoSalud() < 80){\n EmpleadosPrioridadMediaAlta.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 35 && listaEmpleados.get(i).getEstadoSalud() < 60){\n EmpleadosPrioridadMedia.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 0 && listaEmpleados.get(i).getEstadoSalud() < 35){\n EmpleadosPrioridadBaja.add(listaEmpleados.get(i));\n }\n \n } \n \n }", "public synchronized void pisteLiberee() {\n\t\tSystem.out.println(\"[PisteDeDanse][Une piste est libérée]\");\n\t\tthis.pisteLibre = true;\n\t\tnotify();\n\t}", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public void liquidarEmpleado(Fecha fechaLiquidacion) {\n //COMPLETE\n double prima=0; \n boolean antiguo=false;\n double aniosEnServicio=fechaLiquidacion.getAnio()-this.fechaIngreso.getAnio();\n if(aniosEnServicio>0&&\n fechaLiquidacion.getMes()>this.fechaIngreso.getMes())\n aniosEnServicio--; \n \n //System.out.println(\"A:\"+aniosEnServicio+\":\"+esEmpleadoLiquidable(fechaLiquidacion));\n if(esEmpleadoLiquidable(fechaLiquidacion)){\n this.descuentoSalud=salarioBase*0.04;\n this.descuentoPension=salarioBase*0.04;\n this.provisionCesantias=salarioBase/12;\n if(fechaLiquidacion.getMes()==12||fechaLiquidacion.getMes()==6)\n prima+=this.salarioBase*0.5; \n if(aniosEnServicio<6&&\n fechaLiquidacion.getMes()==this.fechaIngreso.getMes())prima+=((aniosEnServicio*5)/100)*this.salarioBase;\n if(aniosEnServicio>=6&&fechaLiquidacion.getMes()==this.fechaIngreso.getMes()) prima+=this.salarioBase*0.3;\n\n this.prima=prima;\n this.setIngresos(this.salarioBase+prima);\n \n this.setDescuentos(this.descuentoSalud+this.descuentoPension);\n this.setTotalAPagar(this.getIngresos()-this.getDescuentos());\n }\n\n }", "public static void main(String[] args){\n \r\n Log.registroTraza( \"Iniciando ejecución de la tarea SolicitudesAVencerse\");\r\n \r\n String strSQL, strFechaRecibo, strReqRpta, strRadicado, strIdResp = \"\";\r\n int totalSolAlertadas=0, totalSolVencidas=0;\r\n String[] strTemp = null;\r\n int lgTiempoRpta, lgRestante, lgTiempoConfig; \r\n Vector arrConsecutivos = new Vector();\r\n Vector arrFechasCreacion = new Vector();\r\n Vector arrReqRpta = new Vector();\r\n Vector arrTiempoRpta = new Vector();\r\n Vector arrIdsResp = new Vector();\r\n Comunes comun = new Comunes();\r\n Notificacion n = new Notificacion();\r\n Calendar fechaRecibo = null;\r\n Calendar fechaRpta = null;\r\n Calendar fechaActual = null;\r\n \r\n try{\r\n strSQL = \"select g.txtNroDiasAlerta from buzon.buzon_generales g where g.txtCodigo = 'frmGeneral'\";\r\n String[] strDatosGral = GestionSQL.getFila(strSQL, \"Buzon\");\r\n lgTiempoConfig = Integer.parseInt(strDatosGral[0]);\r\n \r\n strSQL = \"select DISTINCT p.txtRadicado, p.dtFechaCreacion, r.txtReqRpta, r.txtTiempoRpta, p.txtNomCargo from buzon_pqrs p INNER JOIN buzon_retroalimentacion r on (p.txtTipoPQRS = r.txtCodigo) where (p.txtIdEstado <> 'AT' and p.txtIdEstado <> 'CPU') ORDER BY CAST(p.txtRadicado AS SIGNED)\";\r\n Vector arrSols = GestionSQL.consultaSQL(strSQL,\"Buzon\",\"ALERTASSOLS\");\r\n \r\n if (arrSols != null){ \r\n for (int i=0;i<arrSols.size();i++){\r\n strTemp = arrSols.get(i).toString().split(\",\");\r\n arrConsecutivos.add(strTemp[0]);\r\n arrFechasCreacion.add(strTemp[1]);\r\n arrReqRpta.add(strTemp[2]);\r\n arrTiempoRpta.add(strTemp[3]); \r\n arrIdsResp.add(strTemp[4]);\r\n } \r\n\r\n //Obtener los feriados.\r\n\r\n Vector arrFechas = new Vector();\r\n strSQL = \"SELECT d.dtFecha from users.users_dias_no_habiles d order by d.dtFecha\";\r\n arrFechas = GestionSQL.consultaSQL(strSQL, \"Users\", \"FECHAS\"); \r\n\r\n for(int i=0;i<arrConsecutivos.size();i++){\r\n strRadicado = arrConsecutivos.get(i).toString(); \r\n strReqRpta = arrReqRpta.get(i).toString();\r\n strIdResp = arrIdsResp.get(i).toString();\r\n lgRestante = 0; \r\n fechaRecibo = null;\r\n fechaRpta = null;\r\n fechaActual = comun.calcularFechaActual();\r\n\r\n if (strReqRpta.equals(\"S\")){ \r\n lgTiempoRpta = Integer.parseInt(arrTiempoRpta.get(i).toString());\r\n fechaRecibo = Calendar.getInstance(); \r\n\r\n strFechaRecibo = arrFechasCreacion.get(i).toString();\r\n strTemp = strFechaRecibo.split(\"-\"); \r\n fechaRecibo.set(Integer.parseInt(strTemp[0]),(Integer.parseInt(strTemp[1])-1),Integer.parseInt(strTemp[2]));\r\n fechaRecibo.set(Calendar.SECOND, 0);\r\n fechaRecibo.set(Calendar.MILLISECOND, 0); \r\n\r\n fechaRpta= Calendar.getInstance();\r\n fechaRpta.set(Calendar.SECOND, 0);\r\n fechaRpta.set(Calendar.MILLISECOND, 0); \r\n fechaRpta = comun.incrementarDiasHabiles(fechaRecibo, lgTiempoRpta, arrFechas); \r\n\r\n lgRestante = (comun.getDiasHabiles(fechaActual, fechaRpta, arrFechas)-1); \r\n\r\n if ((lgRestante <= lgTiempoConfig) && (lgRestante > 0)){ \r\n n.NotificacionSolAVencer(strRadicado, Long.valueOf(lgRestante + 1), strIdResp); \r\n totalSolAlertadas = totalSolAlertadas + 1;\r\n }else{\r\n if (lgRestante<0){\r\n n.NotificacionSolVencidas(strRadicado, fechaRpta, strIdResp);\r\n totalSolVencidas = totalSolVencidas + 1;\r\n } \r\n } \r\n } \r\n }\r\n }\r\n }catch(Exception e){\r\n Log.registroTraza(\"Se generó un error en la tarea SolicitudesAVencerse: \" + e.getMessage());\r\n }\r\n\r\n SimpleDateFormat formato = new SimpleDateFormat(\"hh:mm:ss\");\r\n Log.registroTraza( \"Tarea SolicitudesAVencerse invocada a la hora: \" + formato.format(new Date()) + \". Solicitudes alertadas: \" + totalSolAlertadas + \". Solicitudes vencidas: \" + totalSolVencidas);\r\n\r\n }", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "public EmpleadosDisponibles(Semaphore semaforoEmpleadoLibre) {\n this.semaforoEmpleadoLibre = semaforoEmpleadoLibre;\n }", "public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "@Test\n\tpublic void deveEntenderLancesEmOrdemCrescente() {\n\t\tLeilao leilao = new LeilaoDataBuilder().leilao(\"Playstation 3 Novo\")\n\t\t\t\t.lance(maria, 250.0)\n\t\t\t\t.lance(joao, 300.0)\n\t\t\t\t.lance(jose, 400.0).constroi();\n\n\t\t// Parte 2: executando a acao\n\t\t// Avaliador leiloeiro = new Avaliador(); // invocado no método auxiliar @Before\n\t\tleiloeiro.avalia(leilao);\n\n\t\t// Parte 3: comparando a saida com o esperado\n//\t\tdouble maiorEsperado = 400;\n//\t\tdouble menorEsperado = 250;\n\t\t// afirmar iqualdade do maior esperado com o que o leiloeiro retorna\n//\t\tassertEquals(maiorEsperado, leiloeiro.getMaiorLance(), 0.0001);\n//\t\tassertEquals(menorEsperado, leiloeiro.getMenorLance(), 0.0001);\n\n\t\t//com Hamcrest - mais legível\n\t\t// afirmar que o retorno de leiloeiro é igual a 400.0\n\t\tassertThat(leiloeiro.getMaiorLance(), equalTo(400.0));\n\t\tassertThat(leiloeiro.getMenorLance(), equalTo(250.0));\n\n\t}", "public static void main(String args[])\n {\n //instanciar (crear) el objeto empleados_comcel de la clase empleados\n //instanciar el objeto empleados_comcel de la clase empleados\n empleados empleados_comcel = new empleados();\n \n //acciones al objeto empleados_comcel asignando valores\n //empleados_comcel.cedula=5555;\n //empleados_comcel.nombre=\"felipe completo\";\n //empleados_comcel.sueldo=50000;\n //llamando las acciones\n /*int intTotalSueldo = empleados_comcel.calcularSueldo();\n System.out.println(\"total sueldo \"+intTotalSueldo);*/\n \n Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese prestamos\");\n int prestamos = scanner.nextInt();\n\n \n int intTotalSueldo2 = empleados_comcel.calcularSueldo(prestamos, 5, 70000);\n System.out.println(\"total sueldo \"+intTotalSueldo2);\n\n \n //instanciar\n vehiculo transmilenio = new vehiculo();\n transmilenio.kmsActualmente=20000;\n transmilenio.modelo=2005;\n \n vehiculo sitp = new vehiculo();\n \n \n /*Scanner scanner = new Scanner(System.in);\n System.out.println(\"ingrese numero 1\");\n int numero_entero1 = scanner.nextInt();\n System.out.println(\"ingrese numero 2\");*/\n int numero_entero2 = scanner.nextInt();\n int suma = 0;\n \n System.out.println(\"resultado suma \"+suma);\n \n String nombre = \"\";\n System.out.println(\"Ingresar nombre \");\n nombre =scanner.next();\n System.out.println(\"Ingresó el nombre \"+nombre);\n \n float numero1float=233.44f;\n float numero2float=23.2f;\n float resultadofloat = numero1float + numero2float;\n System.out.println(\"resultado float \"+resultadofloat);\n \n }", "private void devolverLivro() throws Exception {\n try {\n long DAY_IN_MS = 1000 * 60 * 60 * 24; // formatar data entrega\n int codigo = Console.scanInt(\"Informe o código da retirada do livro: \");\n retiradaDao = new RetiradaDaoBd();\n Retirada retirada = retiradaDao.procurarPorId(codigo);\n try {\n devolucaoNegocio.salvar(retirada);\n System.out.println(\"Devolucao cadastrado com sucesso!\");\n } catch (Exception ex) {\n UIUtil.mostrarErro(ex.getMessage());\n }\n\n System.out.println(\"Livro \" + retirada.getLivro().getNome() + \" devolvido por \" + retirada.getCliente().getNome());\n } catch (InputMismatchException e) {\n System.err.println(\"ERRO! O ISBN deve ser numérico!\");\n }\n }", "private void RealizarProtocoloDeCompraDeCasasEHoteis(int idLugar) throws Exception {\n Lugar lugar = this.tabuleiro.getLugarById(idLugar);\n\n int nivelDoTerreno = lugar.getNivel();\n if (nivelDoTerreno == 0) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelUmaCasa(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 1) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelDuasCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 2) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelTresCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 3) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelQuatroCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 4) {\n int valorHotel = this.banco.comprarHotel(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelHotel(idLugar));\n lugar.aumentarNivel();\n lugar.addNumeroDeHoteis();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n this.banco.BancoReceber4Casas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeHoteis();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorHotel);\n } else if (nivelDoTerreno == 5) {\n throw new Exception(\"No further buildings on this property\");\n }\n\n if ((this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() > 0 ||\n this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() > 0) &&\n this.sell == true) {\n this.listaJogadores.get(jogadorAtual()).adicionarComandoSell();\n }\n\n\n }", "public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate void aumentarCantidadDisponibleAnx(EmpleadoPuesto empleado) {\r\n\t\tDate fechaActual = new Date();\r\n\t\tInteger anhoActual = fechaActual.getYear() + 1900;\r\n\t\tString sql = \"select anx.* \"\r\n\t\t\t\t+ \"from sinarh.sin_anx anx, general.empleado_concepto_pago pago \"\r\n\t\t\t\t+ \"join general.empleado_puesto empleado \"\r\n\t\t\t\t+ \"on empleado.id_empleado_puesto = pago.id_empleado_puesto \"\r\n\t\t\t\t+ \"join planificacion.planta_cargo_det p \"\r\n\t\t\t\t+ \"on empleado.id_planta_cargo_det = p.id_planta_cargo_det \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_det det \"\r\n\t\t\t\t+ \"on det.id_configuracion_uo_det = p.id_configuracion_uo_det \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo \"\r\n\t\t\t\t+ \"on uo.id_configuracion_uo = det.id_configuracion_uo \"\r\n\t\t\t\t+ \"where anx.ctg_codigo = pago.categoria \"\r\n\t\t\t\t+ \"and anx.obj_codigo = pago.obj_codigo \"\r\n\t\t\t\t+ \"and ani_aniopre = \" + anhoActual\r\n\t\t\t\t+ \" and empleado.id_empleado_puesto = \"\r\n\t\t\t\t+ empleado.getIdEmpleadoPuesto()\r\n\t\t\t\t+ \" and anx.nen_codigo ||'.'|| \" + \"anx.ent_codigo ||'.'|| \"\r\n\t\t\t\t+ \"anx.tip_codigo ||'.'|| \" + \"anx.pro_codigo = uo.codigo_sinarh \";\r\n\t\t\r\n\t\tList<SinAnx> listaAnx = new ArrayList<SinAnx>();\r\n\t\ttry {\r\n\t\t\tlistaAnx = em.createNativeQuery(sql, SinAnx.class).getResultList();\r\n\t\t\tfor (SinAnx anx : listaAnx) {\r\n\t\t\t\tInteger cant = anx.getCantDisponible();\r\n\t\t\t\tcant = cant + 1;\r\n\t\t\t\tanx.setCantDisponible(cant);\r\n\t\t\t\tem.merge(anx);\r\n\t\t\t\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\r\n\t}", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSistemaStock sistema=new SistemaStock();\n\t\t\n\t\tProducto producto1=new Producto(1,\"Producto 1\",20.5);\n Producto producto2=new Producto(2,\"Producto 2\",15.5);\n System.out.println(producto1+\"\\n\"+producto2); \n try {\n\t\t\tsistema.agregarProducto(producto1.getDescripcion(),producto1.getPrecioUnitario());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n System.out.println(sistema.getProductos().toString());\n Sucursal sucursal1=new Sucursal(1,\"direccion 1\");\n Sucursal sucursal2=new Sucursal(2,\"direccion 2\");\n\t\ttry {\n\t\t\tsistema.agregarSucursal(sucursal1.getDireccion());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tEmpleado empleado1=new Empleado(\"Juan\",\"Gomez\",11111111,sucursal1);\n\t\tEmpleado empleado2=new Empleado(\"Julian\",\"Suarez\",22222222,sucursal2);\n\t\tSystem.out.println(empleado1+\"\\n\"+empleado2);\n\t\t\n\t\tLote lote1=new Lote(sucursal1, producto1,LocalDate.of(2019, 10, 1),100,100,true);\n\t Lote lote2=new Lote(sucursal1,producto2,LocalDate.of(2019,10,1),50,50,true);\n\t Lote lote3=new Lote(sucursal1,producto1,LocalDate.of(2019,10,3),40,40,true);\n\t Lote lote4=new Lote(sucursal2,producto1,LocalDate.of(2019, 10, 2),80,80,true);\n\t Lote lote5=new Lote(sucursal2, producto2,LocalDate.of(2019,10, 2),80,80,true);\n\t System.out.println(lote1+\"\\n\"+lote2+\"\\n\"+lote3+\"\\n\"+lote4+\"\\n\"+lote5);\n\t \n\t sucursal1.getLotes().add(lote1);\n\t sucursal1.getLotes().add(lote2);\n\t sucursal1.getLotes().add(lote3);\n\t sucursal2.getLotes().add(lote4);\n\t sucursal2.getLotes().add(lote5);\n\t \n\t \n\t System.out.println(\"Cantidad: \"+sucursal1.traerCantidad(producto1));\n\t System.out.println(\"Validar Stock: \"+sucursal1.validarConsumo(producto1, 80));\n\t \n\t \n\t \n\t \n\t sistema.getSucursales().add(sucursal1);\n\t sistema.getSucursales().add(sucursal2);\n\t \n\t Remito remito1=new Remito(LocalDate.of(2019,10,5),producto1,80,empleado1,\"Forma de pago 1\");\n\t Remito remito2=new Remito(LocalDate.of(2019,10,5).plusDays(1),producto1,80,empleado1,\"Forma de pago 1\");\n\t System.out.println(remito1);\n\t System.out.println(remito2);\n\t \n\t try {\n\t\t\tSystem.out.println(\"Remito Generado: \"+sistema.generarRemitoDeConsumo(LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n try {\n\t\tSystem.out.println(\"Remito Sucursal: \"+sistema.generarRemitoDeConsumo(sucursal1,LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t \n\t \n\t}", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "private void atualizarPalitos() {\n Jogador jogador = servidor.getJogador(nomeJogador);\n LugarModelo lugarModelo = listaLugares.get(jogador.lugar - 1);\n lugarModelo.getMao().setText(jogador.quantidadePalitosApostados + \" Palitos\");\n lugarModelo.getQuantidadePalitosRestantes().setText(\"Palitos Restante: \" + jogador.quantidadePalitosRestantes + \"\");\n }", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "@Before\n public void antesDeTestear(){\n this.creditosHaberes = new Ingreso();\n this.creditosHaberes.setMonto(10000.0);\n this.creditosHaberes.setFecha(LocalDate.of(2020,9,25));\n\n this.donacion = new Ingreso();\n this.donacion.setMonto(500.0);\n this.donacion.setFecha(LocalDate.of(2020,9,26));\n\n\n this.compraUno = new Egreso();\n this.compraUno.setFecha(LocalDate.of(2020,9,26));\n this.compraUno.setMonto(1000.0);\n\n this.compraDos = new Egreso();\n this.compraDos.setFecha(LocalDate.of(2020,9,27));\n this.compraDos.setMonto(2500.0);\n\n this.compraTres = new Egreso();\n this.compraTres.setFecha(LocalDate.of(2020,9,23));\n this.compraTres.setMonto(10000.0);\n\n ingresos.add(donacion);\n ingresos.add(creditosHaberes);\n\n egresos.add(compraUno);\n egresos.add(compraDos);\n egresos.add(compraTres);\n\n /***************Creacion de condiciones*************/\n this.condicionEntreFechas = new CondicionEntreFechas();\n\n this.condicionValor = new CondicionValor();\n\n this.condicionSinIngresoAsociado = new CondicionSinIngresoAsociado();\n /***************Creacion criterio*******************/\n this.ordenValorPrimeroEgreso = new OrdenValorPrimeroEgreso();\n this.ordenValorPrimeroIngreso = new OrdenValorPrimeroIngreso();\n this.ordenFecha = new Fecha();\n this.mix = new Mix();\n\n\n /***************Creacion vinculador*****************/\n vinculador = Vinculador.instancia();\n vinculador.addCondiciones(this.condicionValor);\n vinculador.addCondiciones(this.condicionEntreFechas);\n vinculador.addCondiciones(this.condicionSinIngresoAsociado);\n }", "public Libro(String autorLibro, String tituloLibro, int numeroDePaginas, \n boolean esLibroDeTextoONo)\n {\n autor = autorLibro;\n titulo = tituloLibro;\n numeroPaginas = numeroDePaginas;\n numeroReferencia = \"\";\n vecesPrestado = 0;\n esLibroDeTexto = esLibroDeTextoONo;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public void asignarVida();", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "@Test (expected = LibroInexistente.class)\n\tpublic void queNoSePuedaVenderUnLibroYaVendido() throws LibroInexistente, SinDinero{\n\t\tLibro quimica = new Quimica (2, TipoDeLibro.REVISTA, \"QUIMICA JUNTOS\", \"Ruben N\", 250.0);\n\t\tBiblioteca unlam = new Biblioteca(\"UNLAM\");\n\t\tPersona nahuel = new Persona (\"Nahuel\", \"Agustin\", 600.0);\n\t\tPersona mariano = new Persona (\"Mariano\", \"Leonel\", 400.0);\n\t\t\n\t\tunlam.agregarLibro(quimica);\n\t\tunlam.venderLibro(quimica, mariano);\n\t\tunlam.venderLibro(quimica, nahuel);\n\t\t\n\t\tassertNull(unlam.getLibrosDisponibles().get(quimica.getCodigo()));\n\t\t\n\t}", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "private void EstablecerVistas(TipoGestion tGestion){\n\t\tCantEjecutada=Utilitarios.round(activ.getCantidadEjecutada(),4);\n\t\n\t\tcantContratada=Utilitarios.round(activ.getCantidadContratada(),4);\n\t\t\n\t\t//CantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\n\n\t\tif ( activ.getCantidadEjecutada() > activ.getCantidadContratada()){\n\t\t\tCantPendienteDeEjecutar = 0;\n\t\t\tCantExcendete = Utilitarios.round((activ.getCantidadEjecutada()-activ.getCantidadContratada()),4);\n\t\t\tPorcExcedente = Utilitarios.round((CantExcendete / cantContratada * 100),2);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphRed));\n\t\t}\n\t\telse{\n\t\t\tCantPendienteDeEjecutar = Utilitarios.round((activ.getCantidadContratada()-activ.getCantidadEjecutada()),4);\n\t\t\t((TextView) getActivity().findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente)).setTextColor(getResources().getColorStateList(R.color.graphGreen));\n\t\t}\n\n\t\t\n\t\tif ( activ.getCantidadContratada() > 0){\n\t\t\t\tPorcEjecutado=Utilitarios.round((activ.getCantidadEjecutada()/cantContratada) * 100,2);\n\t\t\t\tPorcPendienteDeEjecutar = Utilitarios.round((CantPendienteDeEjecutar / cantContratada * 100),2);\n\t\t\t}\n\t\telse{\n\t\t\tPorcPendienteDeEjecutar\t= 0.00;\n\t\t\tPorcPendienteDeEjecutar = 0.00;\n\t\t}\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_Actividad))\n\t\t\t\t.setText(String.valueOf(cantContratada));\n\n\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadContratada))\n \t\t\t.setText(String.valueOf(cantContratada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadEjecutada))\n \t\t\t.setText(String.valueOf(CantEjecutada));\n\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadEjecutada))\n \t\t\t.setText( String.valueOf(PorcEjecutado) + \"%\");\n\n\n \ttvEtiquetaAgregarAvances.setText(getActivity().getString(R.string.fragment_agregar_avances_renglon_4));\n\n\t\tdesActividad.setText(\"[\" + activ.getCodigoInstitucional() + \"] - \" + activ.getDescripcion());\n \t\n\t\tif(tGestion == TipoGestion.Por_Cantidades){\n\t\t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setVisibility(0);\n \t}\n \telse{\n \t\t\n \t\t((TextView) getActivity()\n \t\t\t.findViewById(R.id.et_fragAgregarAvancesEtiquetaPorc))\n \t\t\t.setText(\"%\");\n\n \t}\n\n\t\t\n\t\t//Se deshabilitara el widget de ingreso del avance para cuando la cantidad\n\t\t//pendiente de ejecutar sea igual o menor a 0\n\t\t/*if (CantPendienteDeEjecutar>0){\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_FechaActualizo))\n \t\t\t.setText(getActivity().getResources().getString(R.string.fragment_agregar_avances_renglon_2)\n \t\t\t\t\t+ \" \" + String.valueOf(activ.getFechaActualizacion()));\n \t}\n \telse\n \t{\n \t\tToast.makeText(getActivity(), getActivity().getString(R.string.fragment_agregar_avances_renglon_5), Toast.LENGTH_LONG).show();\n \t\tetNuevoAvance.setText(\"0.00\");\n \t\tetNuevoAvance.setEnabled(false);\n \t}*/\n \t\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(CantPendienteDeEjecutar, 4)));\n \t((TextView) getActivity()\n \t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadPorEjecutar))\n \t\t\t.setText(String.valueOf(Utilitarios.round(PorcPendienteDeEjecutar, 2)) + \"%\");\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_CantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(CantExcendete, 4)));\n\n\t\t((TextView) getActivity()\n\t\t\t\t.findViewById(R.id.tv_fragAgregarAvancesRenglon_PorcCantidadExcedente))\n\t\t\t\t.setText(String.valueOf(Utilitarios.round(PorcExcedente, 2)) + \"%\");\n\n\t\tvalidarAvance(String.valueOf(etNuevoAvance.getText()));\n \t\n \tetNuevoAvance.addTextChangedListener(new TextWatcher() {\n \t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start,\n\t\t\t\t\tint count, int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start,\n\t\t\t\t\tint before, int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tvalidarAvance(s.toString());\n\t\t\t\t\t\t\t\t\t\n\t\t\t}\n \t});\n\t\t\n\t}", "@Override\n\tpublic Livros verifica(Livros livro) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n\t\tEmpleados empleado1 = new Empleados(\"Carlos Arquero\",16000,2016,6,03);\r\n\t\tEmpleados empleado2 = new Empleados(\"Luisa Lopez\",25000,2010,12,19);\r\n\t\tEmpleados empleado3 = new Empleados(\"Juaquin Moreno\",12000,2017,11,27);\t\r\n\t\r\n\t\templeado1.subeSueldo(4);\r\n\t\templeado2.subeSueldo(6);\r\n\t\templeado3.subeSueldo(3);\r\n\t\tSystem.out.println(\"nombre :\"+empleado1.dameNombre()+\" sueldo :\"+empleado1.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado1.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado2.dameNombre()+\" sueldo :\"+empleado2.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado2.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado3.dameNombre()+\" sueldo :\"+empleado3.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado3.damealtaContrato());\r\n\t}", "public void VenderCasasOuHoteis(int idPropriedade) throws Exception {\n this.terminarAVez();\n\n if (this.sell == true) {\n if (this.listaJogadores.get(jogadorAtual()).getComandos().contains(\"sell\")) {\n\n if (idPropriedade <= 0 || idPropriedade > 40) {\n throw new Exception(\"Place doesn't exist\");\n }\n\n if (!this.tabuleiro.getLugarById(idPropriedade).isPropriedade()) {\n throw new Exception(\"Can only sell houses built on properties\");\n }\n boolean OJogadorDavezEhDono = this.listaJogadores.get(jogadorAtual()).getPropriedades().contains(this.tabuleiro.getLugarById(idPropriedade).getNome());\n if (OJogadorDavezEhDono) {\n if (this.tabuleiro.getLugarById(idPropriedade).getNivel() == 0) {\n throw new Exception(\"No house is built on this property\");\n }\n } else {\n throw new Exception(\"Player is not the owner of this property\");\n }\n\n //Procedimento De Venda\n\n if (this.tabuleiro.verificaSePodeVenderImovelDoTerreno(idPropriedade) == true) {\n RealizarProtocoloDeVendaDeCasasEHoteis(idPropriedade);\n if(bankruptcy && this.listaJogadores.get(jogadorAtual()).isBankruptcy()){\n adicionaGiveupQuandoPossivel(this.listaJogadores.get(jogadorAtual()));\n }\n if(hipotecaAtiva && verificaSeTemLugarSemConstrucao(listaJogadores.get(jogadorAtual())))\n listaJogadores.get(jogadorAtual()).adicionarComandoHipotecar();\n\n\n } else {\n throw new Exception(\"Uneven distribution of houses\");\n }\n } else {\n throw new Exception(\"Unavailable command\");\n }\n\n\n\n }\n }", "public void zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public static void main(String[] args) {\n Empleado arquitecto1 = new Arquitecto(\"Arq 1\", \"1\", 1, 1 ,\"1\" , 1 );\n Empleado arquitecto2 = new Arquitecto(\"Arq 2\", \"2\", 2, 2 ,\"2\" , 2 );\n Empleado arquitecto3 = new Arquitecto(\"Arq 3\", \"3\", 3, 3 ,\"3\" , 3 );\n Empleado maestro1 = new Maestro(\"Mae 1\", \"1\", 1, 1, \"1\", 1);\n Empleado maestro2 = new Maestro(\"Mae 2\", \"2\", 2, 2, \"2\", 2);\n Empleado maestro3 = new Maestro(\"Mae 3\", \"3\", 3, 3, \"3\", 3);\n Empleado obrero1 = new Obrero(\"Obr 1\", \"1\", 1, 1, \"1\", 1);\n Empleado obrero2 = new Obrero(\"Obr 2\", \"2\", 2, 2, \"2\", 2);\n Empleado obrero3 = new Obrero(\"Obr 3\", \"3\", 3, 3, \"3\", 3);\n//Empresa\n //Lista de Empelado en donde van a estar los empleados de toda la empresa\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(arquitecto1);\n totalEmployeesOnSite.add(maestro1);\n totalEmployeesOnSite.add(obrero1);\n //Lista de obreros en la obra\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n //Lista ed Obras realizadas\n ArrayList<Obra> doneWorks = new ArrayList<>();\n Obra obra1 = new Obra();\n doneWorks.add(obra1);\n Empresa empresa1 = new Empresa(\"Empresa 1\", totalEmployeesOnSite, doneWorks);\n\n System.out.println(empresa1.toString());\n\n//Arquitecto\n\t /* Empleado arquitecto1 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n Empleado arquitecto2 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n//Maestro\n\t Empleado maestro1 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n Empleado maestro2 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n//Obrero\n\t Empleado obrero1 = new Obrero(\"Matilda\", \"12549632\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n Empleado obrero2 = new Obrero(\"Matilda2\", \"125496322\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n//Array Empleado que va a ir a\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(empleado4);\n\n System.out.println(empleado1.getWork());\n System.out.println(empleado2.getWork());\n System.out.println(empleado3.getWork());\n\n ArrayList<Empleado> totalEmployees = new ArrayList<>();\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n Obra obra1 = new Obra(\"Lo De Jaz\", 2, 54, 7, totalEmployeesOnSite );\n\n activeWorks.add(obra1);\n\n totalEmployees.add(empleado1);\n totalEmployees.add(empleado2);\n\n Empresa empresa = new Empresa(\"Lo de Jaz\", totalEmployees, activeWorks);\n\n System.out.println(empresa.toString());\n */\n\n }", "private void actualizarEstado(){\n //--------------- Calcular tiempo transcurrido ---------------\n Date tiempoAnterior = tiempoActual;\n tiempoActual = new Date();\n double transcurridoAux = (tiempoActual.getTime() - tiempoAnterior.getTime());\n double transcurrido = transcurridoAux/1000.0;\n \n boolean puedeCrearTropas = false;\n boolean puedeRecogerRecursos = false;\n //--------------- Recorrer edificios ---------------\n for(Edificio e: aldea.edificios){\n \n // Actualizar minas y recolectores\n if(e.generadorRecursos() && e.estaHabilitado()){\n e.actualizarRecursos(transcurrido);\n puedeRecogerRecursos = true;\n if(e.tipo == vg.MINA){\n jTextFieldOroMina.setText(String.valueOf(e.cantidadRecurso));\n }\n else\n jTextFieldElixRec.setText(String.valueOf(e.cantidadRecurso));\n }\n \n // Verificar si hay un cuartel habilitado para poder crear tropas\n if(e.tipo == vg.CUARTEL && e.habilitado)\n puedeCrearTropas = true;\n \n }\n // Habilitar/deshabilitar boton crear tropas\n jButtonCrearTropa.setEnabled(puedeCrearTropas);\n \n // Habilitar/deshabilitar boton recoger recursos\n jButtonRecogerRecursos.setEnabled(puedeRecogerRecursos);\n \n // Verificar si hay constuctores libres para permitir la creacion de tropas\n if(aldea.constructoresLibres() > 0){\n jButtonCrearEdificio.setEnabled(true);\n jButtonMejorarEdificio.setEnabled(true);\n }\n else{\n jButtonCrearEdificio.setEnabled(false);\n jButtonMejorarEdificio.setEnabled(false);\n }\n \n //--------------- Revisar LEF ---------------\n // Recorrer en sentido inverso\n for(int i=LEF.size()-1;i>=0;i--){\n Date tiempoActual = new Date();\n // Si ocurre un evento\n if(tiempoActual.after(LEF.get(i).tiempo)){\n // Si el evento es culminar edificio\n if(LEF.get(i).tipo == vg.EV_CULMINAR_EDIF){\n culminarEdificio(aldea.edificios.get(LEF.get(i).id));\n LEF.remove(i); // Remover evento futuro de la lista\n }\n else if(LEF.get(i).tipo == vg.EV_CULMINAR_TROPA){\n boolean romperCiclo = false;\n // Recorrer edificio para buscar tropa en colaTropas\n for(Edificio e: aldea.edificios){\n // Buscar tropa\n for(Tropa t: e.colaTropas){\n if(t.id == LEF.get(i).id){\n culminarTropa(e, t); // En este evento se agrega la tropa a la aldea\n e.colaTropas.remove(t);// Remover tropa de colaTropas en edificio\n LEF.remove(i); // Remover evento futuro de la lista\n romperCiclo = true;\n break;\n }\n }\n if(romperCiclo)\n break;\n }\n }\n }\n }\n }", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public static synchronized void el() {\n synchronized (la.class) {\n int i;\n int i2;\n long currentTimeMillis = System.currentTimeMillis() / 1000;\n Context applicaionContext = TMSDKContext.getApplicaionContext();\n boolean hm = i.hm();\n boolean K = i.K(applicaionContext);\n ky aJ = kz.aJ(141);\n if (aJ != null) {\n if (aJ.xZ && hm) {\n i = 0;\n try {\n i = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th) {\n }\n if (i <= 0) {\n i = SmsCheckResult.ESCT_168;\n }\n if ((currentTimeMillis - kz.dV() <= ((long) i) * 3600 ? 1 : null) == null) {\n lb.en();\n }\n }\n }\n aJ = kz.aJ(SmsCheckResult.ESCT_146);\n if (aJ != null) {\n if (aJ.xZ) {\n i = 0;\n try {\n i = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th2) {\n }\n if (i <= 0) {\n i = 24;\n }\n if ((kz.dX() > 0 ? 1 : null) == null) {\n kz.l(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n }\n aJ = kz.aJ(150);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th3) {\n }\n if (i <= 0) {\n i = 24;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.eb() > 0 ? 1 : null) == null) {\n kz.m((currentTimeMillis - 86400) - 1);\n }\n if ((currentTimeMillis - kz.eb() < ((long) i) * 3600 ? 1 : null) == null) {\n le.ep();\n }\n if ((kz.ec() > 0 ? 1 : null) == null) {\n kz.n(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n aJ = kz.aJ(151);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th4) {\n }\n if (i <= 0) {\n i = 24;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.ee() <= 0 ? 1 : null) == null) {\n }\n ld.ep();\n if ((kz.ef() > 0 ? 1 : null) == null) {\n kz.p(currentTimeMillis);\n } else {\n if (K) {\n }\n if (hm) {\n }\n }\n }\n aJ = kz.aJ(SmsCheckResult.ESCT_163);\n if (aJ != null && aJ.xZ) {\n i = 0;\n i2 = 0;\n try {\n i = aJ.ya;\n i2 = Integer.valueOf(aJ.yb).intValue();\n } catch (Throwable th5) {\n }\n if (i <= 0) {\n i = 4;\n }\n if (i2 <= 0) {\n i2 = 24;\n }\n if ((kz.eh() <= 0 ? 1 : null) == null) {\n }\n lc.ep();\n if ((kz.ei() > 0 ? 1 : null) == null) {\n kz.r(currentTimeMillis);\n } else if (hm) {\n if ((currentTimeMillis - kz.ei() <= ((long) i2) * 3600 ? 1 : null) == null) {\n lc.eq();\n }\n }\n }\n }\n }", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "public void aggiungiPecoraCasualmente() {\n\t\tif (((int) (Math.random() * 3)) >= 1) {\n\t\t\tPecoraAdulta nuovaPecoraAdulta = new PecoraAdulta();\n\t\t\tpecore.add(nuovaPecoraAdulta);\n\t\t\tif (nuovaPecoraAdulta.isMaschio())\n\t\t\t\tnumMontoni++;\n\t\t\telse\n\t\t\t\tnumPecoreFemmine++;\n\t\t} else {\n\t\t\tpecore.add(new Agnello());\n\t\t\tnumeroAgelli++;\n\t\t}\n\t}", "public static void main (String[] args){\n Empleado[] listaEmpleados = new Empleado[10];\n \n //Asignamos objetos a cada posición\n listaEmpleados[0] = new Empleado(\"Manuel\", \"30965835V\");\n listaEmpleados[1] = new Empleado(\"Miguel\", \"30965835V\");\n listaEmpleados[2] = new Empleado(\"Pedro\", \"30965835V\");\n listaEmpleados[3] = new Empleado(\"Samuel\", \"30965835V\");\n listaEmpleados[4] = new Empleado(\"Vanesa\", \"30965835V\");\n listaEmpleados[5] = new Empleado(\"Alberto\", \"30965835V\");\n listaEmpleados[6] = new Empleado(\"Roberto\", \"30965835V\");\n listaEmpleados[7] = new Empleado(\"Carlos\", \"30965835V\");\n listaEmpleados[8] = new Empleado(\"Ernesto\", \"30965835V\");\n listaEmpleados[9] = new Empleado(\"Javier\", \"30965835V\");\n\n /*Empleado[] empleados = {\n empleado1, empleado2, empleado3, null,null,null, null,\n null,null,null\n }*/\n \n //Imprimimos el array sin ordenar\n imprimeArrayPersona(listaEmpleados);\n \n //Creamos el objeto de la empresa\n Empresa empresa0 = new Empresa(\"Indra\", listaEmpleados);\n \n //Usamos la clase array para ordenar el array de mayor a menos\n Arrays.sort(listaEmpleados);\n\n //Imprimimos de nuevo el array\n imprimeArrayPersona(listaEmpleados);\n \n //Imprimimos la empresa\n System.out.println(empresa0);\n \n //Guardamos en un string la lista de nombres de un objeto empresa\n String listado = Empresa.listaEmpleado(empresa0.empleado).toString();\n \n System.out.println(listado);//Imprimimos el listado como un string\n \n //Imprimimos el array de los nombres de los empleados de la empresa\n System.out.println(Arrays.toString(Empresa.listaEmpleadoArray(listado)));\n \n //Método que imprime los empleados de una empresa separados por comas\n Empresa.listaEmpleado(listado);\n \n /*Empresa[] listaEmpresa = new Empresa[4];\n \n listaEmpresa[0] = new Empresa(\"Intel\", listaEmpleados);\n listaEmpresa[1] = new Empresa(\"AMD\", listaEmpleados);\n listaEmpresa[2] = new Empresa(\"Asus\", listaEmpleados);\n listaEmpresa[3] = new Empresa(\"Shaphire\", listaEmpleados);\n System.out.println(Arrays.toString(listaEmpresa));\n Arrays.sort(listaEmpresa);\n System.out.println(Arrays.toString(listaEmpresa));*/\n \n \n }", "public static void main(String[] args) \n {\n Equipo Boca = new Equipo(2);\n \n //Crear objeto jugador, pasando por parametro sus atributos\n Jugador j1 = new Jugador(\"Andrada\", 1, 1, 20, 100);\n Jugador j2 = new Jugador(\"Salvio\", 4, 7, 20, 100);\n \n // cargar objeto Equipo\n Boca.agregarJugador(j1);\n Boca.agregarJugador(j2);\n \n //Mostrar objeto Equipo\n System.out.println(Boca.listarJugador());\n \n \n \n //Cantidad de jugadores con menos de 10 partidos jugados.\n System.out.print(\"Cantidad de Jugadores con menos de 10 partidos jugados: \");\n System.out.println(Boca.cantidadJugadores());\n \n \n //Nombre del jugador con mayor cantidad de partidos jugados.\n System.out.print(\"Nombre del jugador con mas partidos jugados: \");\n System.out.println(Boca.jugadorMasPartidos());\n \n \n\n //Promedio de estado físico de todo el equipo.\n \n System.out.print(\"Promedio de estado fisico del equipo:\");\n System.out.println(Boca.promedioEstadoFisicoEquipo() + \"%\");\n \n\n //Estado físico de un jugador particular identificado por número de camiseta. \n \n System.out.print(\"Estado fisico de un juegador dado su numero de camiseta: \");\n System.out.println(Boca.estadoFisicoJugador(7) +\"%\");\n \n //Promedio de partidos jugados de los jugadores de cada posición (4resultados).\n \n System.out.println(\"Promedio de partidos jugados de los jugadores de cada posición:\");\n System.out.println(Boca.promedioPartidosJugadosporPuesto());\n \n \n \n \n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }", "public void cambioLigas(){\n\t\ttry{\n\t\t\tmodelo.updatePartidosEmaitzak(ligasel.getSelectionModel().getSelectedItem().getIdLiga());\n\t\t}catch(ManteniException e){\n\t\t\t\n\t\t}\n\t\t\n\t}", "public Asiento(double precio) {\n\t\t\n\t\tthis.disponibilidad = Disponibilidad.LIBRE;\t\t\n\t\tthis.cambiarPrecio(precio);\n\t}", "private static boolean juega() {\r\n\t\tv.setMensaje( \"Empieza el nivel \" + nivel + \". Puntuación = \" + puntuacion + \r\n\t\t\t\". Dejar menos de \" + (tamanyoTablero-2) + \" pelotas de cada color. \" + (tamanyoTablero-1) + \" o más seguidas se quitan.\" );\r\n\t\t// v.setDibujadoInmediato( false ); // Notar la mejoría de \"vibración\" si se hace esto y (2)\r\n\t\twhile (!v.estaCerrada() && !juegoAcabado()) {\r\n\t\t\tPoint puls = v.getRatonPulsado();\r\n\t\t\tif (puls!=null) {\r\n\t\t\t\t// Pelota pelotaPulsada = hayPelotaPulsadaEn( puls, tablero ); // Sustituido por el objeto:\r\n\t\t\t\tPelota pelotaPulsada = tablero.hayPelotaPulsadaEn( puls );\r\n\t\t\t\tif (pelotaPulsada!=null) {\r\n\t\t\t\t\tdouble coordInicialX = pelotaPulsada.getX();\r\n\t\t\t\t\tdouble coordInicialY = pelotaPulsada.getY();\r\n\t\t\t\t\tv.espera(20); // Espera un poquito (si no pasa todo demasiado rápido)\r\n\t\t\t\t\t// Hacer movimiento hasta que se suelte el ratón\r\n\t\t\t\t\tPoint drag = v.getRatonPulsado();\r\n\t\t\t\t\twhile (drag!=null && drag.x>0 && drag.y>0 && drag.x<v.getAnchura() && drag.y<v.getAltura()) { // EN CORTOCIRCUITO - no se sale de los bordes\r\n\t\t\t\t\t\tpelotaPulsada.borra( v );\r\n\t\t\t\t\t\tpelotaPulsada.incXY( drag.x - puls.x, drag.y - puls.y );\r\n\t\t\t\t\t\tpelotaPulsada.dibuja( v );\r\n\t\t\t\t\t\trepintarTodas(); // Notar la diferencia si no se hace esto (se van borrando las pelotas al pintar otras que pasan por encima)\r\n\t\t\t\t\t\t// v.repaint(); // (2)\r\n\t\t\t\t\t\tpuls = drag;\r\n\t\t\t\t\t\tdrag = v.getRatonPulsado();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Recolocar pelota en un sitio válido\r\n\t\t\t\t\trecolocar( pelotaPulsada, coordInicialX, coordInicialY );\r\n\t\t\t\t\tquitaPelotasSiLineas( true );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tpuntuacion -= (numMovimientos*PUNTOS_POR_MOVIMIENTO); // Se penaliza por el número de movimientos\r\n\t\tif (v.estaCerrada()) return false; // Se acaba el juego cerrando la ventana\r\n\t\tif (nivelPasado()) return true; // Se ha pasado el nivel\r\n\t\treturn false; // No se ha pasado el nivel\r\n\t}", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public static Documento calcularExcento(Documento doc, List<DocumentoDetalleVo> productos) {\n\t\tDouble totalReal = 0.0, exectoReal = 0.0;\n\t\tDouble gravado = 0.0;\n\t\tDouble ivatotal = 0.0;\n\t\tDouble peso = 0.0;\n\t\tDouble iva5 = 0.0;\n\t\tDouble iva19 = 0.0;\n\t\tDouble base5 = 0.0;\n\t\tDouble base19 = 0.0;\n\t\tDouble costoTotal =0.0;\n\t\t//este campo es para retencion del hotel\n\t\tDouble retencion =0.0;\n\t\t// aqui voy toca poner a sumar las variables nuebas para que se reflejen\n\t\t// en el info diario\n\t\tfor (DocumentoDetalleVo dDV : productos) {\n\t\t\tLong productoId = dDV.getProductoId().getProductoId();\n\t\t\tDouble costoPublico = dDV.getParcial();\n\t\t\tDouble costo = (dDV.getProductoId().getCosto()==null?0.0:dDV.getProductoId().getCosto())*dDV.getCantidad();\n\t\t\tDouble iva1 = dDV.getProductoId().getIva().doubleValue() / 100;\n\t\t\tDouble peso1 = dDV.getProductoId().getPeso() == null ? 0.0 : dDV.getProductoId().getPeso();//\n\t\t\tpeso1 = peso1 * dDV.getCantidad();\n\t\t\ttotalReal += costoPublico;\n\t\t\tcostoTotal+=costo;\n\t\t\tdouble temp;\n\t\t\tivatotal = ivatotal + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\tpeso = peso + peso1;\n\t\t\t// si es iva del 19 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.19) {\n\t\t\t\tiva19 = iva19 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase19 = base19 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\t// si es iva del 5 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.05) {\n\t\t\t\tiva5 = iva5 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase5 = base5 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\tif (iva1 > 0.0) {\n\t\t\t\ttemp = costoPublico / (1 + iva1);\n\t\t\t\tgravado += temp;\n\n\t\t\t} else {\n\t\t\t\ttemp = costoPublico;\n\t\t\t\t//no suma el excento si es producto retencion\n\t\t\t\tif( productoId!=6l && productoId!=7l) {\n\t\t\t\t\texectoReal += temp;\n\t\t\t\t}else {\n\t\t\t\t\tretencion+= temp;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tdoc.setTotal(totalReal);\n\t\tdoc.setSaldo(totalReal);\n\t\tdoc.setExcento(exectoReal);\n\t\tdoc.setGravado(gravado);\n\t\tdoc.setIva(ivatotal);\n\t\tdoc.setPesoTotal(peso);\n\t\tdoc.setIva5(iva5);\n\t\tdoc.setIva19(iva19);\n\t\tdoc.setBase5(base5);\n\t\tdoc.setBase19(base19);\n\t\tdoc.setTotalCosto(costoTotal);\n\t\tdoc.setRetefuente(retencion);\n\t\treturn doc;\n\t}", "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void livrosLidos(Livro livro){\n\n Boolean enviar = true;\n\n LivroLido livrol = new LivroLido();\n\n //setando o valor do id livro lid\n livrol.setIdLivro(livro.getId());\n\n //saber se o livro já foi enviado\n if(myBooksDb.daoLivrosLidos().idLivros(livro.getId()) == livro.getId()){\n enviar = false;\n Toast.makeText(getContext(),\"O livro já se encontra em livros lidos\", Toast.LENGTH_SHORT).show();\n }\n //verificar se o livro esta em outra tela\n else if(myBooksDb.daoLivroLer().idLivros(livro.getId()) == livro.getId()){\n enviar = false;\n tranferirLidos(livro.getId(),livrol);\n }\n\n if(enviar == true){\n myBooksDb.daoLivrosLidos().inserir(livrol);\n }\n\n }", "private Candidatos calculaCandidatos(Etapa e) {\n if(debug) {\n System.out.println(\"**********************calculaCandidatos\");\n System.out.println(\"e.i: \" + e.i);\n }\n \n Candidatos c = new Candidatos();\n if(e.k <= this.G.numVertices()) {\n //crear un objeto candidato y rellenarlo para esta etapa \n c.i = -1; //no apuntamos a ninguna pos porque en la funcion seleccionaCandidato ya incrementamos este valor\n //buscar el primer vertize sin emparejar\n int size = this.sol.emparejamientos.length;\n \n c.fila = e.i;\n \n //añadimos los candidatos\n c.verticesSinPareja = new ArrayList<>();\n for(int k = 0; k < size; ++k) {\n if(this.sol.emparejamientos[c.fila][k] == 0) {\n if(debug) {\n System.out.print(\" candidato: \" + k+ \" \");\n }\n c.verticesSinPareja.add(k);\n }\n }\n \n }\n else {\n c.verticesSinPareja = new ArrayList<>();\n }\n return c;\n }", "public void finPartie()\r\n {\n Pacman pacman = (Pacman) tabEntite[0];\r\n if(pacman.getScore() > meilleurScore)\r\n {\r\n meilleurScore = pacman.getScore();\r\n enregistrerScore();\r\n }\r\n \r\n // MET A FALSE ACTIF\r\n for(int i=0; i<tabEntite.length; i++)\r\n {\r\n tabEntite[i].setActif(false);\r\n }\r\n \r\n // JOIN\r\n for(int i=0; i<tabThreadEntite.size(); i++)\r\n {\r\n try {\r\n tabThreadEntite.get(i).join();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Niveau.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n }", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "@Override\n void procesarSalida(Simulacion s, Evento e) {\n e.consulta.estadistEjec_Sentencias.tiempoSalidaModulo = e.tiempo;\n e.consulta.estadistEjec_Sentencias.tiempoEnModulo = e.tiempo - e.consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n Evento evento = new Evento(e.consulta);\n evento.tipoE = Evento.TipoEvento.ENTRADA;\n evento.modulo = Evento.TipoModulo.ADM_CONEXIONES;\n evento.tiempo = e.tiempo;\n numServOcupados--;\n s.listaE.add(evento);\n\n if (!colaC.isEmpty()) { //Si despues de una salida hay algo en cola\n Consulta consulta = colaC.remove();\n consulta.estadistEjec_Sentencias.tiempoSalidaCola = e.tiempo - consulta.estadistEjec_Sentencias.tiempoLlegadaModulo;\n s.estadisticasT.promedioColaES += colaC.size();\n Evento eventoS = new Evento(consulta);\n eventoS.tipoE = Evento.TipoEvento.SALIDA;\n eventoS.modulo = Evento.TipoModulo.EJEC_SENTENCIAS;\n ejecucionSentencia(consulta);\n eventoS.tiempo = e.tiempo + tiempoEjecucion;\n s.listaE.add(eventoS);\n numServOcupados++;\n }\n\n }", "private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}", "public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "public static void main(String[] args) {\n Aviso aviso1 = new Aviso();\n \n aviso1.id=1;\n \n aviso1.tipoAviso=\"General\";\n aviso1.titulo=\"Insumos y bienes muebles de laboratorio disponibles\";\n aviso1.texto=\"La Coordinación de Control Técnico de Insumos (COCTI) de la Dirección de Prestaciones Médicas, pone a disposición del personal que realiza investigación el inventario adjunto.\";\n aviso1.resumen=\"Insumos y bienes muebles de laboratorio disponibles por la Coordinación de Control Técnico de Insumos (COCTI)\";\n aviso1.nombre=\"Eduardo Flores Díaz\";\n aviso1.estatusF=\"Vigente\";\n \n aviso1.diaP=02;\n aviso1.mesP=02;\n aviso1.yearP=2020;\n \n aviso1.diaA=02;\n aviso1.mesA=02;\n aviso1.yearA=2020;\n \n aviso1.diaB=02;\n aviso1.mesB=02;\n aviso1.yearB=2021;\n \n System.out.println(aviso1);\n \n Aviso aviso2 = new Aviso();\n \n aviso2.id=2;\n \n aviso2.tipoAviso=\"Conferencia\";\n aviso2.titulo=\"CONFERENCIA DR. COSSARIZZA\";\n aviso2.texto=\"El Dr. Andrea Cossarizza, ofreció a la comunidad IMSS su conferencia “Clinical Applications of Advanced Cytometry” y aprovechó la presencia de investigadores y estudiantes del IMSS para compartir sus últimos resultados de investigación, aún no publicados, sobre VIH y el uso de citometría de flujo.\\n\" +\n\"\\n\" +\n\"Además, invitó a nuestra comunidad a agregarse a la sociedad internacional sobre citometría: ISAC(International Society for the Advancement of Cytometry) y aprovechar los recursos que tienen como:\\n\" +\n\"\\n\" +\n\"Programa de Liderazgo MARYLOU INGRAM SCHOLARS PROGRAM, de 5 años para formación de citomteristas\\n\" +\n\"Iniciativa de innovación CYTO-Innovation apoya a las propuestas innovadoras que contemplan la conversión de ideas en productos comerciales de alto impacto para ayudar a nuevos empresarios a aprovechar la tecnología de citometría\\n\" +\n\"\\n\" +\n\"Además en la ISAC tienen disponibles una serie de manuales e información de punta sobre la citometría para uso libre. El Dr. Cossarizza reiteró la invitación al personal IMSS a vincularse con la Universidad de Módena y su laboratorio aprovechando el prestigio que tiene el Laboratorio de Citometría de Flujo del Centro de Instrumentos del Centro Médico Nacional Siglo XXI.\";\n \n aviso2.resumen=\"Conferencia de Dr. Andrea Cossarizza del tema “Clinical Applications of Advanced Cytometry\\\"\";\n aviso2.nombre=\"Kevin Meza Gonzalez\";\n aviso2.estatusF=\"No Vigente\";\n \n aviso2.diaP=02;\n aviso2.mesP=03;\n aviso2.yearP=2020;\n \n aviso2.diaA=15;\n aviso2.mesA=02;\n aviso2.yearA=2020;\n \n aviso2.diaB=31;\n aviso2.mesB=03;\n aviso2.yearB=2020;\n \n System.out.println(aviso2);\n \n }", "public InternalVentanaFacturar(Empleado empleado) throws SQLException {\n \n cv = new ControladorValidaciones();\n \n fecha= cv.getHora();\n \n detalles = new DefaultTableModel();\n cl = new ControladorClientes();\n cl.cargarClientes();\n clientes = cl.getClientes();\n \n cp = new ControladorProductos();\n cf = new ControladorFacturas();\n \n initComponents();\n \n \n jTextField2.setText(cf.getNumFactura());\n this.empleado = empleado;\n factura = new FacturaCabecera();\n \n nombreEmpleado.setText(this.empleado.getNombre());\n cedulaEmpleado.setText(this.empleado.getCedula());\n nombre1.setText(date.format(fecha));\n cargarModeloTabla(); \n }", "@Override\r\n public BoletoLocal onGerarBoleto(Contrato contrato, ConfiguracoesBoleto config) {\r\n int diaVencimento = contrato.getDiaVencimento();\r\n Calendar dataHj = Calendar.getInstance();\r\n\r\n //SE O DIA DO VENCIMENTO DO BOLETO FOR MENOR OU IGUAL\r\n // A DATA DE HJ GERA NORMAL, SE NÃO ELE GERA PRO PROXIMO MES\r\n if (dataHj.get(Calendar.DAY_OF_MONTH) <= diaVencimento) {\r\n\r\n } else {\r\n dataHj.add(Calendar.MONTH, 1);\r\n }\r\n\r\n dataHj.set(Calendar.DAY_OF_MONTH, diaVencimento);\r\n Calendar dataMaxima = Calendar.getInstance();\r\n dataMaxima.add(Calendar.DAY_OF_MONTH, 20);\r\n\r\n //SE A DATA FOR MAIOS QUE O MÁXIMO CONFIGURADO NÃO GERA NADA.\r\n if (dataHj.after(dataMaxima)) {\r\n System.out.println(\"data depois de 20 dias\");\r\n return null;\r\n }\r\n\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O CEDENTE.\r\n */\r\n Cedente cedente = new Cedente(config.getBanco().getNomeBeneficiado(), config.getDocBeneficiado());\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O SACADO.\r\n */\r\n Sacado sacado = new Sacado(contrato.getLocatario().getNome(), contrato.getLocatario().getDocumento());\r\n\r\n // Informando o endereço do sacado.\r\n org.jrimum.domkee.comum.pessoa.endereco.Endereco enderecoSac = new org.jrimum.domkee.comum.pessoa.endereco.Endereco();\r\n enderecoSac.setUF(UnidadeFederativa.valueOfSigla(contrato.getLocatario().getEndereco().getCodUf()));\r\n enderecoSac.setLocalidade(contrato.getLocatario().getEndereco().getCidade());\r\n enderecoSac.setCep(new CEP(contrato.getLocatario().getEndereco().getDesCep()));\r\n enderecoSac.setBairro(contrato.getLocatario().getEndereco().getDesBairro());\r\n enderecoSac.setLogradouro(contrato.getLocatario().getEndereco().getDesLogradouro());\r\n enderecoSac.setNumero(contrato.getLocatario().getEndereco().getDesNumero());\r\n sacado.addEndereco(enderecoSac);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O TÍTULO.\r\n */\r\n // Informando dados sobre a conta bancária do título.\r\n ContaBancaria contaBancaria = null;\r\n if (config.getBanco().getBanco() == BancosEnum.ITAU) {\r\n contaBancaria = new ContaBancaria(BancosSuportados.BANCO_ITAU.create());\r\n }\r\n\r\n if (contaBancaria == null) {\r\n System.out.println(\"Conta bancária não cadastrada\");\r\n return null;\r\n }\r\n\r\n contaBancaria.setNumeroDaConta(new NumeroDaConta(Integer.parseInt(config.getBanco().getContaNumero()), config.getBanco().getContaDigito()));\r\n contaBancaria.setCarteira(new Carteira(Integer.parseInt(config.getCarteira())));\r\n contaBancaria.setAgencia(new Agencia(Integer.parseInt(config.getBanco().getAgenciaNumero()), config.getBanco().getAgenciaDigito()));\r\n\r\n Titulo titulo = new Titulo(contaBancaria, sacado, cedente);\r\n titulo.setNumeroDoDocumento(config.getNumeroDocumento());\r\n titulo.setNossoNumero(config.getNossoNumero());\r\n titulo.setDigitoDoNossoNumero(config.getNossoNumeroDigito());\r\n titulo.setValor(contrato.getValor());\r\n titulo.setDataDoDocumento(new Date());\r\n\r\n titulo.setDataDoVencimento(dataHj.getTime());\r\n titulo.setTipoDeDocumento(TipoDeTitulo.DM_DUPLICATA_MERCANTIL);\r\n titulo.setAceite(Aceite.A);\r\n//\t\ttitulo.setDesconto(BigDecimal.ZERO);\r\n//\t\ttitulo.setDeducao(BigDecimal.ZERO);\r\n//\t\ttitulo.setMora(BigDecimal.ZERO);\r\n//\t\ttitulo.setAcrecimo(BigDecimal.ZERO);\r\n//\t\ttitulo.setValorCobrado(BigDecimal.ZERO);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O BOLETO.\r\n */\r\n Boleto boletoBank = new Boleto(titulo);\r\n\r\n boletoBank.setLocalPagamento(config.getLocalPagamento());\r\n boletoBank.setInstrucaoAoSacado(config.getInstrucaoSacado());\r\n boletoBank.setInstrucao1(config.getInstrucao1());\r\n boletoBank.setInstrucao2(config.getInstrucao2());\r\n boletoBank.setInstrucao3(config.getInstrucao3());\r\n boletoBank.setInstrucao4(config.getInstrucao4());\r\n boletoBank.setInstrucao5(config.getInstrucao5());\r\n boletoBank.setInstrucao6(config.getInstrucao6());\r\n boletoBank.setInstrucao7(config.getInstrucao7());\r\n boletoBank.setInstrucao8(config.getInstrucao8());\r\n\r\n /*\r\n\t\t * GERANDO O BOLETO BANCÁRIO.\r\n */\r\n // Instanciando um objeto \"BoletoViewer\", classe responsável pela\r\n // geração do boleto bancário.\r\n BoletoViewer boletoViewer = new BoletoViewer(boletoBank);\r\n\r\n // Alterado para pegar o path do sistema automático , gerando dentro\r\n // do projeto.\r\n // Gerando o arquivo. No caso o arquivo mencionado será salvo na mesma\r\n // pasta do projeto. Outros exemplos:\r\n // WINDOWS: boletoViewer.getAsPDF(\"C:/Temp/MeuBoleto.pdf\");\r\n // LINUX: boletoViewer.getAsPDF(\"/home/temp/MeuBoleto.pdf\");\r\n String pasta = \"/boletos\";\r\n\r\n String caminhoCompletoPasta = FacesUtil.getExternalContext().getRealPath(pasta) + \"/\";\r\n BoletoLocal boletoLocal = new BoletoLocal();\r\n contrato.getBoletos().add(boletoLocal);\r\n boletoLocal.setContrato(contrato);\r\n\r\n String nomeArquivoPDF = contrato.getLocatario().getNome().replace(\" \", \"_\") + boletoLocal.getMes() + boletoLocal.getAno() + \".pdf\";\r\n\r\n System.out.println(caminhoCompletoPasta + nomeArquivoPDF);\r\n File arquivoPdf = boletoViewer.getPdfAsFile(caminhoCompletoPasta + nomeArquivoPDF);\r\n\r\n boletoLocal.setPath(pasta + nomeArquivoPDF);\r\n\r\n super.save(boletoLocal);\r\n\r\n return boletoLocal;\r\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }" ]
[ "0.6241229", "0.61308146", "0.61064947", "0.600858", "0.600817", "0.59190565", "0.5903134", "0.587817", "0.58695287", "0.58597517", "0.58277583", "0.5805066", "0.5776546", "0.57595223", "0.57409436", "0.5723398", "0.5693207", "0.5691451", "0.56814617", "0.56743246", "0.5664195", "0.5660793", "0.5641204", "0.56378394", "0.5633648", "0.56334335", "0.5624176", "0.5622439", "0.5603788", "0.55945903", "0.55938655", "0.55869573", "0.5583548", "0.55797935", "0.5554235", "0.5547118", "0.55340743", "0.55324095", "0.55320066", "0.5525554", "0.55253464", "0.55239487", "0.55203956", "0.5519137", "0.55181986", "0.5496625", "0.54964477", "0.5493355", "0.54822296", "0.5480755", "0.54791063", "0.54787153", "0.5476578", "0.54701215", "0.54607505", "0.5458304", "0.54536283", "0.54447156", "0.5443874", "0.54422194", "0.54399216", "0.54367834", "0.5433942", "0.542134", "0.54131454", "0.5411816", "0.5405259", "0.5392921", "0.5390468", "0.5386584", "0.53863925", "0.5377204", "0.5367731", "0.5366174", "0.536582", "0.53654796", "0.5364878", "0.5361843", "0.53595173", "0.5356893", "0.53555286", "0.53550506", "0.5345441", "0.5345263", "0.5334901", "0.533406", "0.53331786", "0.53228354", "0.5321177", "0.53181815", "0.53171676", "0.53154975", "0.53134274", "0.5311273", "0.53049046", "0.53036004", "0.5301597", "0.5299793", "0.52985847", "0.5297346", "0.52973014" ]
0.0
-1
Agrega un supervisor a la cola de supervisores
public synchronized void agregarSupervisor(Supervisor supervisor) { System.out.println("SE LIBERO SUPERVISOR"); getSupervisores().add(supervisor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }", "public Supervisor getSupervisor(){\r\n return supervisor;\r\n }", "public Supervisor(double salario) {\r\n super(salario);\r\n }", "public void setSupervisorStatus(String supervisorStatus) {\n\t\tthis.supervisorStatus = supervisorStatus;\n\t}", "@Override\n public void register(Remote registerObj, String name) throws RemoteException\n {\n synchronized (supervisors)\n {\n Logger.getGlobal().log(Level.INFO, String.format(\"Register Supervisor: %s.\", name));\n addSupervisor(name);\n registry.rebind(name, registerObj);\n }\n }", "@External\n\tpublic void set_super_admin(Address _super_admin) {\n\t\tif (Context.getCaller().equals(Context.getOwner())) {\n\t\t\tthis.super_admin.set(_super_admin);\n\t\t\tthis.admin_list.add(_super_admin);\n\t\t}\n\t\t\n\t}", "@Override\n public String toString(){\n\treturn toStringBase() + \"Salaried Supervisor\";\n }", "public String\n getSupervisor() \n {\n return pSupervisor;\n }", "public void addSuperRegionAccs(com.hps.july.persistence.SuperRegionAcc arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addSuperRegionAccs(arg0);\n }", "public static void main(String[] args) {\n\t\tSupervisor miSupervisor = new Supervisor(\"Raul\");\r\n\t\t\r\n\t\t//Array de Empleados\r\n\t\tEmpleadoStatic[] listaEmpleados = new EmpleadoStatic[7];\r\n\t\tScanner Entrada = new Scanner(System.in);\r\n\t\t\r\n\t\t//Pedido de Empleados\r\n\t\tfor(int i=0;i<5;i++){\t//for(int i=0;i<listaEmpleados.length;i++){\t\r\n\t\t\tSystem.out.print(\"Ingrese nombre: \");\r\n\t\t\tlistaEmpleados[i] = new EmpleadoStatic(Entrada.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t/*POLIMORFISMO: El programa espera un objeto de la clase padre (Empleado).\r\n\t\t * Pero yo estoy asignando objetos de la clase hija (Supervisor)*/\r\n\t\tlistaEmpleados[5] = miSupervisor;\r\n\t\tlistaEmpleados[6] = new Supervisor(\"Fabio\");\t//última ID\r\n\t\t\t\t\r\n\t\t/*Uso de Arrays.sort() para ordenar los empleados por id, ya que por \r\n\t\t * ejemplo, la primer posición del array tiene al empleado de id 2.\r\n\t\t * Require la interfaz Comparable, agregada en EmpleadoStatic*/\r\n\t\tArrays.sort(listaEmpleados);\r\n\t\t\r\n\t\t/*Recorrida, si en la clase hija se sobreescribe un método, al momento de\r\n\t\t * pasar por ese objeto, se llama al método de la clase hija. Comportamiento \r\n\t\t * según el contexto (Polimorfismo)*/\r\n\t\tfor(EmpleadoStatic e:listaEmpleados)\r\n\t\t\tSystem.out.println(\"id: \" + e.getId() + \"\\t nombre: \" + e.getNombre());\r\n\t\t\r\n\t\tSystem.out.println(\"Proximo ID a asignar: \" + EmpleadoStatic.getIdDisponible());\r\n\t\t\r\n\t\t/*Ejemplo para demostrar el acceso a un método de la interfaz JefesI\r\n\t\t * implementado por la clase Supervisor*/\r\n\t\tSupervisor s = new Supervisor(\"Macri\");\r\n\t\tSystem.out.println(s.tomarDecisiones(\"Un nuevo tarifazo. Vamos juntos!\"));\r\n\t\t\r\n\t\t\tEntrada.close();\r\n\t}", "public void secondaryAddSuperRegionAccs(com.hps.july.persistence.SuperRegionAcc arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddSuperRegionAccs(arg0);\n }", "@Test\n public void supervisorCanOpenACashRegister() {\n this.supervisor.canOpen();\n }", "public Volunteer(int salarioBase) {\n\n\t\tsuper();\n\t\tthis.setCoeficiente(this.COEFICIENTE);\n\n\t\ttry {\n\t\t\tthis.setSueldoBase(salarioBase);\n\t\t} \n\t\tcatch (Throwable e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Volunteer no puede tener salario\");\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void secondarySetSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetSuperregion(arg0);\n }", "@Override\n public void registrarObsevador(ObservadorDeMano observador)\n {\n observadoresMano.add(observador);\n }", "public void addSeguidor(Usuario usuario){\n seguidores.add(usuario.getNombre());\n }", "private Supervisor() {\r\n\t}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public void setSuperMenu(Menu superMenu) {\n\tthis.superMenu = superMenu;\n }", "public void agregarProfesor(ProfesorAsignatura profesor){\n profesores.add(profesor);\n }", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "public void setSuperregion(com.hps.july.persistence.SuperRegion arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setSuperregion(arg0);\n }", "@Override\n\tpublic void registrarSalida() {\n\n\t}", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void setSupervisorComment(String supervisorComment) {\n\t\tthis.supervisorComment = supervisorComment;\n\t}", "public void setAccountSupervisoryUser(Person accountSupervisoryUser) {\n this.accountSupervisoryUser = accountSupervisoryUser;\n }", "public void ajouterSenateur(Senateur s) {\n\t\tsenateurs.add(s);\n\t}", "public RecoverySubordinateBACoordinator( Uid rcvUid )\n {\n super( rcvUid ) ;\n _activated = activate() ;\n }", "public void addNewSystemUser()\n {\n\n DietTreatmentSystemUserBO newUser = new DietTreatmentSystemUserBO();\n // default user\n newUser.setSystemUser(SystemUserController.getInstance()\n .getCurrentUser());\n // default function\n newUser.setFunction(SystemUserFunctionBO.TREATING_ASSISTANT);\n\n _dietTreatment.addSystemUsers(newUser);\n }", "public void permitirRobotsSuperpuestos(boolean superpuestos);", "public void flagUser() {\n\t\tsuper.flagUser();\n\t}", "public String getSupervisorStatus() {\n\t\treturn supervisorStatus;\n\t}", "@Override\r\n public void start(OpProjectSession session) {\n OpBroker broker = session.newBroker();\r\n try {\r\n if (session.administrator(broker) == null) {\r\n OpUserService.createAdministrator(broker);\r\n }\r\n if (session.everyone(broker) == null) {\r\n OpUserService.createEveryone(broker);\r\n }\r\n\r\n //register system objects with Backup manager\r\n OpBackupManager.addSystemObjectIDQuery(OpUser.ADMINISTRATOR_NAME, OpUser.ADMINISTRATOR_ID_QUERY);\r\n OpBackupManager.addSystemObjectIDQuery(OpGroup.EVERYONE_NAME, OpGroup.EVERYONE_ID_QUERY);\r\n }\r\n finally {\r\n broker.closeAndEvict();\r\n }\r\n }", "@Override\n\tpublic void entrer(TC client) {\n\t\tint prio = client.getPrio();\n\t\tif (!estPleine()) {\n\t\t\tif(prio>maxPrio) {\t\t\t\t\t\t//Si la priorité donnée est sup\n\t\t\t\tsalle.get(maxPrio).add(client);\t\t//.get récupération clé .add rajout\n\t\t\t}\n\t\t\telse if (prio<0) {\t\t\t\t\t\t//Si priorité inf à 0\n\t\t\t\tsalle.get(0).add(client);\t\t\n\t\t\t}\n\t\t\telse {salle.get(client.getPrio()).add(client);\n\t\t\t// {salle.get(prio).entrer(client);}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic String employeeSupervisorRole() {\n\t\treturn ((WebUserRole) webContext.get()).getEmployeeSupervisor();\r\n\t}", "@Override\r\n\tpublic void entregarRecibo() {\n\t\tSystem.out.println(\"Imprimir recibo\");\r\n\t}", "@Override\n\tpublic void registrarAtencion(TramiteUsuario tramite) {\n\t\ttramite.setSecUsuario1( Usuario.getUsuarioBean() );\n\t\ttramite.setSecUsuario2( Usuario.getUsuarioBean() );\n\t\ttramite.setEstado(1);\n\t\ttramite.setEstadoTramiteFinal( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramite.setFechaRegistro( new Date() );\n\t\ttramiteDAO.registrarMovimiento( tramite );\n\t\t\n\t\ttramite.getTramite().setEstado( ParametroUtil.EstadoTramite.ATENDIDO.value );\n\t\ttramiteDAO.registrar( tramite.getTramite() );\n\t\t\n\t}", "public void toggleSuperAS() {\n this.isSuperAS = true;\n }", "public void setAlgoformer(Algoformer superion, VistaAlgoformer vistasuperion) {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo(Livros livro, Usuarios usuario) {\n\t\t\n\t}", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "@Override\n public void trigger() {\n output.addNewEvent(\"Suspender Assinante \" + subscriber.getId() + \" da Central \" + central.getId());\n this.sucess = this.network.suspendSubscriberFromCentral(this.subscriber.getId(), this.central.getId());\n if (sucess) {\n output.addNewSignal(\"Assinante \" + this.subscriber.getId() + \" suspendida da Central \" + central.getId());\n } else {\n output.addNewSignal(\"Assinante \" + this.subscriber.getId() + \" não está conectado ou ativo à Central \" + central.getId());\n }\n }", "public void validerFormation() {\n\t\tSystem.out.println(\"Le manager \" + super.getPrenom() + \" \" + super.getNom() + \" valide la formation\");\n\t}", "public void addUser() {\n\t\tthis.users++;\n\t}", "@Override\n\tpublic void estourada(Participante p) {\n\t\t\n\t}", "public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}", "public void admitStudent(){\n\t\tthis.getCourse().addStudent(this.getStudent());\n\t\tthis.getStudent().addCourse(this.getCourse());\n\t\tthis.course.removeApplication(this);\n\t}", "public void AsignarPermiso(Permiso p){\n\t\tPermisoRol pr = new PermisoRol(p,this);\n\t\tpermisos.add(pr);\n\t}", "public void enrolStudent(Estudante newStudent) {\n if(estudantes.size() == capacidade) {\n System.out.println(\"A disciplina está lotada, infelizmente o estudante não pode ser matriculado.\");\n }\n else {\n estudantes.add(newStudent);\n }\n }", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "@Override\n\tpublic void emprestimo(Livros livro, Aluno usuario) {\n\t\t\n\t}", "public static void addShiftSupervisor(Scanner input, ArrayList<Employee> newEmployee){\n \n ShiftSupervisor newSupervisor = new ShiftSupervisor();\n String empNumber, empHireDate, salary, bonus;\n \n System.out.print(\"Please enter the employee's first and last name: \");\n newSupervisor.setName(input.nextLine());\n System.out.print(\"Please enter the new employee's Employee Number.\\nThe Employee Number must match XXX-L including the dash where X is a digit and L is a letter A-M: \");\n empNumber = input.nextLine();\n newSupervisor.setNumber(verifyEmpNum(input, empNumber));\n System.out.print(\"Please enter the new employee's hire date.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n empHireDate = input.nextLine();\n newSupervisor.setDate(verifyHireDate(input, empHireDate));\n System.out.print(\"Please enter the salary the new Supervisor will be paid as a double: \");\n salary = input.nextLine();\n newSupervisor.setSalary(UtilityMethods.verifyDouble(input, salary));\n System.out.print(\"Please enter the bonus the new Supervisor could be paid as a double: \");\n bonus = input.nextLine();\n newSupervisor.setBonus(UtilityMethods.verifyDouble(input, bonus));\n \n newEmployee.add(newSupervisor);\n }", "private void registrarSolicitudOficioBien(SolicitudOficioBienDTO solicitudOficioBienDTO) {\n\n // Fecha solicitud\n solicitudOficioBienDTO.setFechaSolicitud(Calendar.getInstance().getTime());\n SolicitudOficioBien solicitudOficioBien = SolicitudOficioBienHelper.toLevel1Entity(solicitudOficioBienDTO,\n null);\n em.persist(solicitudOficioBien);\n solicitudOficioBienDTO.setId(solicitudOficioBien.getId());\n // Solicitud bien entidad\n for (SolicitudBienEntidadDTO solicitudBienEntidadDTO : solicitudOficioBienDTO.getSolicitudBienEntidadDTOs()) {\n solicitudBienEntidadDTO.setSolicitudOficioBienDTO(solicitudOficioBienDTO);\n registrarSolicitudBienEntidad(solicitudBienEntidadDTO);\n }\n }", "public void setSuper(String sSuper)\n {\n ensureLoaded();\n m_clzSuper = (sSuper == null ? (ClassConstant) null : new ClassConstant(sSuper));\n setModified(true);\n }", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "public void setSuperior(String superior) {\n this.superior = superior == null ? null : superior.trim();\n }", "public void addAgent(String name)\r\n {\n \r\n }", "public void privateSetSuperregionKey(com.hps.july.persistence.SuperRegionKey arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().privateSetSuperregionKey(arg0);\n }", "private void teclouEnter() {\n //menu principal\n if (this.getFocusOwner() == listaMenuPrincipal) {\n if (listaMenuPrincipal.getSelectedIndex() == 0 || listaMenuPrincipal.getSelectedIndex() == 1) {\n LoginGerenteSupervisor janelaLoginGerenteSupervisor = new LoginGerenteSupervisor(this, true);\n janelaLoginGerenteSupervisor.setLocationRelativeTo(null);\n janelaLoginGerenteSupervisor.setVisible(true);\n //supervisor\n if (listaMenuPrincipal.getSelectedIndex() == 0) {\n if (janelaLoginGerenteSupervisor.loginSupervisor(true)) {\n panelSubMenu.setVisible(true);\n ((CardLayout) panelCard.getLayout()).show(panelCard, \"cardSupervisor\");\n listaSubMenuSupervisor.requestFocus();\n listaSubMenuSupervisor.setSelectedIndex(0);\n }\n }\n //gerente\n if (listaMenuPrincipal.getSelectedIndex() == 1) {\n if (janelaLoginGerenteSupervisor.loginGerente(true)) {\n panelSubMenu.setVisible(true);\n ((CardLayout) panelCard.getLayout()).show(panelCard, \"cardGerente\");\n listaSubMenuGerente.requestFocus();\n listaSubMenuGerente.setSelectedIndex(0);\n }\n }\n }\n //saida temporaria\n if (listaMenuPrincipal.getSelectedIndex() == 2) {\n if ((SessaoUsuario.statusCaixa == SC_ABERTO)) {\n int escolha = JOptionPane.showOptionDialog(this, \"Deseja fechar o caixa temporariamente?\", \"Pergunta do Sistema\",\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\n null, opcoesResposta, null);\n if (escolha == JOptionPane.YES_OPTION) {\n try {\n NfceControllerGenerico<NfceMovimentoVO> movimentoController = new NfceControllerGenerico<>();\n SessaoUsuario.movimento.setStatusMovimento(\"T\");\n SessaoUsuario.usuario = null;\n movimentoController.atualizar(SessaoUsuario.movimento);\n\n telaPadrao();\n\n MovimentoAberto ma = new MovimentoAberto(this, true);\n ma.setLocationRelativeTo(null);\n ma.setVisible(true);\n telaPadrao();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"Erro ao registrar a saída temporária.\\n\" + ex.getMessage(), \"Aviso do Sistema\", JOptionPane.ERROR_MESSAGE);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Status do caixa não permite saída temporária.\", \"Aviso do Sistema\", JOptionPane.WARNING_MESSAGE);\n }\n }\n }\n //menu principal - submenu supervisor\n if (this.getFocusOwner() == listaSubMenuSupervisor) {\n //inicia movimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 0) {\n iniciaMovimento();\n }\n //encerra movimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 1) {\n encerraMovimento();\n }\n //suprimento\n if (listaSubMenuSupervisor.getSelectedIndex() == 3) {\n suprimento();\n }\n //sangria\n if (listaSubMenuSupervisor.getSelectedIndex() == 4) {\n sangria();\n }\n\n }\n //menu principal - submenu gerente\n if (this.getFocusOwner() == listaSubMenuGerente) {\n //inicia movimento\n if (listaSubMenuGerente.getSelectedIndex() == 0) {\n iniciaMovimento();\n }\n //encerra movimento\n if (listaSubMenuGerente.getSelectedIndex() == 1) {\n encerraMovimento();\n }\n //suprimento\n if (listaSubMenuGerente.getSelectedIndex() == 3) {\n suprimento();\n }\n //sangria\n if (listaSubMenuGerente.getSelectedIndex() == 4) {\n sangria();\n }\n }\n //menu operacoes\n if (this.getFocusOwner() == listaMenuOperacoes) {\n //carrega dav\n if (listaMenuOperacoes.getSelectedIndex() == 0) {\n if (SessaoUsuario.statusCaixa == SC_ABERTO) {\n CarregaOrcamento janelaCarregaOrcamento = new CarregaOrcamento(this, true);\n janelaCarregaOrcamento.setLocationRelativeTo(null);\n janelaCarregaOrcamento.setVisible(true);\n if (!janelaCarregaOrcamento.cancelado) {\n dav = janelaCarregaOrcamento.getOrcamento();\n if (dav != null) {\n fechaMenuOperacoes();\n try {\n carregaDAV();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro ao carregar o orçamento.\\n\" + e.getMessage(), \"Erro do Sistema\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Já existe uma venda em andamento.\", \"Aviso do Sistema\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n\n //seleciona certificado digital\n if (listaMenuOperacoes.getSelectedIndex() == 1) {\n if (SessaoUsuario.statusCaixa != SC_VENDA_EM_ANDAMENTO) {\n selecionaCertificado();\n } else {\n JOptionPane.showMessageDialog(this, \"Existe uma venda em andamento.\", \"Aviso do Sistema\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n\n //consulta status serviço\n if (listaMenuOperacoes.getSelectedIndex() == 2) {\n SessaoUsuario.statusServico();\n }\n\n }\n }", "public interface Supervisor {\n\n\t/**\n\t * An event sent from the agent.\n\t * \n\t * @param e the event\n\t */\n\tvoid event(Event e) throws Exception;\n\n\t/**\n\t * Redirected standard output\n\t * \n\t * @param out the text that was redirected\n\t * @return ignored (to make sync)\n\t */\n\tboolean stdout(String out) throws Exception;\n\n\t/**\n\t * Redirected standard error.\n\t * \n\t * @param out the text that was redirected\n\t * @return ignored (to make sync)\n\t */\n\tboolean stderr(String out) throws Exception;\n\n\t/**\n\t * Return the contents of the file that has the given SHA-1. The initiator\n\t * of the connection should in general register the files it refers to in\n\t * the communication to the agent. The agent then calls this method to\n\t * retrieve the contents if it does not have it in its local cache.\n\t * \n\t * @param sha the SHA-1\n\t * @return the contents of that file or null if no such file exists.\n\t */\n\tbyte[] getFile(String sha) throws Exception;\n}", "public void salvarFornecedor()\r\n {\r\n /*\r\n * Implementação da lógica de salvar um fornecedor. Tratando as\r\n * mensagens conforme solicitado no desafio 1\r\n */\r\n try\r\n {\r\n fornecedorBusiness.salvarFornecedor(fornecedorResource);\r\n FacesContext.getCurrentInstance().addMessage(\"formFornecedor:messages\",\r\n new FacesMessage(FacesMessage.SEVERITY_INFO, \"Fornecedor Adicionado com Sucesso!\", \"\"));\r\n } catch (RuntimeException e)\r\n {\r\n FacesContext.getCurrentInstance().addMessage(\"formFornecedor:messages\",\r\n new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), \"\"));\r\n }\r\n }", "public Administrador(String nome, String endereco, String email, String telefone, String id_usuario, String senha_usuario) {\n super(nome, endereco, email, telefone, id_usuario, senha_usuario);\n }", "public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}", "public String getSupervisorComment() {\n\t\treturn supervisorComment;\n\t}", "void setSuperEffectiveTo(List<Type> superEffectiveTo) {\n this.superEffectiveTo = superEffectiveTo;\n }", "public alterarSenhaCliente() {\n }", "public synchronized void inviteCollaborator(User collaborator) {\n this.collaborators.add(collaborator);\n Path collaboratorsPath = uri.getPath().resolve(\"collaborators.txt\");\n Iterable<String> collaborators = this.collaborators.stream().map(c -> c.getName()).collect(Collectors.toList());\n try {\n Files.writeString(collaboratorsPath, String.join(\"\\r\\n\", collaborators), StandardCharsets.UTF_8);\n } catch (IOException e) {\n e.printStackTrace();\n }\n collaborator.queueInvite(new Invite(this, collaborator));\n }", "@Override\n public void save() {\n String query = null;\n super.save();\n ((DataUser) user).save();\n\n if (getId() == 0) {\n String[] values = {super.getId() + \"\", \"\" + getUser().getId()};\n\n query = Database.compose(\n \"INSERT INTO case_workers (person_id, user_id)\",\n \"VALUES('\" + String.join(\"','\", values) + \"')\",\n \"RETURNING id\"\n );\n } else {\n query = Database.compose(\n \"UPDATE case_workers SET\",\n \"person_id = \" + super.getId() + \",\",\n \"user_id = \" + getUser().getId() + \"\",\n \"WHERE id = \" + getId()\n );\n\n }\n\n Database.getInstance().query(query, rs -> {\n if (id == 0) {\n id = rs.getInt(1);\n }\n });\n }", "public void addCommitteeMember(Professor p) {\r\n committee.add(p);\r\n }", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public Senhorio(Senhorio s) {\n super(s.getUsername(), s.getPassword());\n nome = s.getNome();\n }", "@Override\r\n\tpublic void add() {\n\t\tif(alreadyAdded()) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Member is already added\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\t\ttry(Connection connection= db.getConnection();) {\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString addString=\"INSERT INTO members VALUES(?,?,?,?)\";\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(addString);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t\t\tpreparedStatement.setString(2, super.getNameString());\r\n\t\t\t\tpreparedStatement.setString(3, super.getSurnameString());\r\n\t\t\t\tpreparedStatement.setString(4, super.getEmailString());\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t}", "Chef(String name, Restaurant restaurant) {\n super(name, restaurant);\n numChefs++;\n setId(numChefs);\n restaurant.getStaffSystem().addChef(this);\n }", "@Override\r\n public void salir() {\n }", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "@Override\r\n\tpublic Utilisateur addUser() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void introduceSelf() {\n\t\tSystem.out.println(\"Hi, I'm \" + name);\r\n\t\tSystem.out.println(\"I'm attending \" + this.school);\r\n\t}", "public SuperGroupCreateExecutor(Index index, SuperGroup superGroup) {\n super(index);\n this.superGroup = superGroup;\n }", "@Override\n public void addStudent(Student student) {}", "public abstract void registrarSubproducto(EntityManager sesion, Subproducto subproducto);", "public static void main(String[] args)throws java.io.IOException {\n\t\tString idEmpleado, nomEmpleado, apellEmpleado, telefono, email;\r\n\t\t\r\n\t\tout.println(\"Digite el id del empleado\");\r\n\t\tidEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el nombre del empleado\");\r\n\t\tnomEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el apellido del empleado\");\r\n\t\tapellEmpleado = in.readLine();\r\n\t\tout.println(\"Digite el telefono del empleado\");\r\n\t\ttelefono = in.readLine();\r\n\t\tout.println(\"Digite el email del empleado\");\r\n\t\temail = in.readLine();\r\n\t\t\r\n\t\t/*Los datos se deben mandar al gestor*/\r\n\t\t\r\n\t\tSupervisor empleado = new Supervisor(idEmpleado, nomEmpleado, apellEmpleado, telefono, email);\r\n\t\tSoporTecnico contratado = new SoporTecnico(empleado);\r\n\t\t\r\n\t\t//La variable contratado se almacenarķa en un arreglo\r\n\t\t\r\n\t\tout.println(\"Id: \" + contratado.getIdEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre: \" + contratado.getNomEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Apellido: \" + contratado.getApellEmpleado() + \"\\n\" +\r\n\t\t\t\t\t\"Telefono: \" + contratado.getTelefono() + \"\\n\" +\r\n\t\t\t\t\t\"Email: \" + contratado.getEmail() + \"\\n\" +\r\n\t\t\t\t\t\"Codigo del puesto: \" + contratado.codPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del puesto: \" + contratado.nomPuesto() + \"\\n\" +\r\n\t\t\t\t\t\"Nombre del departamento: \" + contratado.departamento());\r\n\t\t\r\n\t\t/*Si se desea cambiar el puesto o el departamento del empleado, se extraen los datos \r\n\t\t * personales del empleado, se elimina el objeto y los datos personales se almacenan\r\n\t\t * en un nuevo objeto del puesto deseado y del departamento deseado*/\r\n\t}", "private void addHocSinh() {\n\t\thocsinh user = new hocsinh();\n\n\t\tuser.setMa(txtMa.getText());\n\t\tuser.setTen(txtTen.getText());\n\t\tuser.setTuoi(txtTuoi.getText());\n\t\tuser.setSdt(txtSdt.getText());\n\t\tuser.setDiaChi(txtDiaChi.getText());\n\t\tuser.setEmail(txtEmail.getText());\n\t\t\n\t\thocsinhdao.addUser(user);\n\t}", "public void setEnteredBy(int tmp) {\n this.enteredBy = tmp;\n }", "@Override\n\tpublic void registrarLlegada() {\n\t\t\n\t}", "public void agregarCliente(Cliente cliente, int distancia) {\n\t\tclientes.add(cliente);\n\t\tcosto += distancia; \n\t}", "public Person getAccountSupervisoryUser() {\n accountSupervisoryUser = SpringContext.getBean(org.kuali.rice.kim.api.identity.PersonService.class).updatePersonIfNecessary(accountsSupervisorySystemsIdentifier, accountSupervisoryUser);\n return accountSupervisoryUser;\n }", "public void setSuperAdmin(Boolean isSuperAdmin) {\n\t\tthis.superAdmin = isSuperAdmin;\n\t}", "public ManagerSistema(String codiceFiscale, String nome, String cognome, String indirizzo, \n \t\tDate dataNascita, String telefono, String email, String password, Sbu sbu ){\n\t\tsuper(codiceFiscale, nome, cognome, indirizzo, dataNascita, \n\t\t\t\ttelefono, email, password);\n\t\tsbu.setManager(this);\n\t\tthis.sbuGestito = sbu;\n\t}", "@Override\n\tpublic void registrarLlegada() {\n\t}", "public static WebElement selectSupervisor(WebDriver driver) {\n\t\telement= driver.findElement(By.xpath(\".//label[contains(text(),'Supervisor')]/following-sibling::select\"));\n\t\thighLighterMethod(element,driver);\n\t\treturn element;\n\t\t\n\t}", "@Override\r\n\tpublic boolean registerSuperUser(String username, String password, String firstName, String lastName) {\n\t\tSuperUser tempSuperUser = new SuperUser(username, password, firstName, lastName);\r\n\t\t\r\n\t\treturn sudao.createSuperUser(tempSuperUser);\r\n\t}", "public void addPassenger() {\n\t\t\n\t\tsynchronized(this) {\n\t\t\tcurrentOccup++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Elevator \" + elevatorNum + \" total passenger count: \" + currentOccup);\n\t}", "@Override\n\tpublic boolean agregarObservador(Observador o) {\n\t\tSystem.out.println(\"Se invocó el método agregarObservador(Observador o)\");\n\t\treturn manejador.agregarObservador(o);\n\t}", "public void addStudent(User user) {\n\t\t\r\n\t}", "@Override\n\tpublic void jogavel(Participante p) {\n\t\t\n\t}", "@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }", "@Override\n\tpublic void act() {\n\t\tSystem.out.println(\"Person \"+subject.hashCode()+\"gruendet Unternehmen\");\n\t\tnew Unternehmen(subject);\n\t}" ]
[ "0.7475311", "0.6697048", "0.61478007", "0.6056367", "0.59160674", "0.58866096", "0.58721393", "0.585418", "0.5703414", "0.5694342", "0.5621582", "0.56096935", "0.5592278", "0.55125535", "0.546174", "0.54465413", "0.5445446", "0.5426525", "0.54259396", "0.5420885", "0.540022", "0.53870887", "0.53870887", "0.5385713", "0.53500223", "0.5348076", "0.5345738", "0.5323922", "0.5304197", "0.5273184", "0.52105457", "0.52100015", "0.5169521", "0.5153732", "0.5133539", "0.5126097", "0.51222354", "0.5116639", "0.51143974", "0.5108627", "0.51015943", "0.5086686", "0.50806063", "0.50758284", "0.5066179", "0.50632364", "0.50546837", "0.504923", "0.5041894", "0.5031891", "0.50199866", "0.5015715", "0.5013438", "0.49944827", "0.49876842", "0.49868596", "0.4975228", "0.49606684", "0.4960316", "0.49582127", "0.49546847", "0.4953251", "0.49530384", "0.4949001", "0.4930314", "0.49301413", "0.4927951", "0.4923307", "0.4922086", "0.49161592", "0.49151987", "0.49131063", "0.49102908", "0.49097887", "0.49091908", "0.49066687", "0.49057633", "0.49048617", "0.49039504", "0.48994634", "0.48970217", "0.48865184", "0.48863092", "0.4886225", "0.48750627", "0.4873034", "0.48695034", "0.48660317", "0.48613343", "0.48585388", "0.48577654", "0.48551977", "0.4845365", "0.48450196", "0.48419562", "0.48417705", "0.48389643", "0.48238194", "0.48214948", "0.48193753" ]
0.80768776
0
Agrega un Director a la cola de directores
public synchronized void agregarDirector(Director director) { System.out.println("SE LIBERO DIRECTOR"); getDirectores().add(director); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Director getDirector() {\n\treturn director;\n }", "public AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }", "public void setORM_Director(orm.Director value) {\n\t\tthis.director = value;\n\t}", "public static void CrearDirectorio (String args){\n File directorio = new File(args);\n \n if (!directorio.exists()) {\n if (directorio.mkdirs()) {\n //System.out.println(\"Directorio creado\\n\");\n } else {\n //System.out.println(\"Error al crear directorio\\n\");\n }\n }\n }", "public void moverAPacman(Direccion direccion) {\n // TODO implement here\n }", "private Director getDirectorFromData(String[] line){\n Director director = new Director(line[AppVariables.directorID].trim(), \n line[AppVariables.directorName].trim());\n return director;\n }", "public void giraParaDireita(Sonda sonda, String vetor[]){\n String posicaoGiro;\n\n if (sonda.getDirecao().equalsIgnoreCase(\"W\")){\n int indice = 0;\n posicaoGiro = vetor[indice+1];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"N\")){\n int indice = 1;\n posicaoGiro = vetor[indice+1];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"E\")){\n int indice = 2;\n posicaoGiro = vetor[indice+1];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"S\")){\n int indice = 3;\n posicaoGiro = vetor[indice-3];\n sonda.setDirecao(posicaoGiro);\n }\n }", "private String directores(Proyecto proyecto) {\r\n String resultado = \"\";\r\n Item estadoRenunciado = itemService.buscarPorCatalogoCodigo(CatalogoEnum.ESTADODIRECTOR.getTipo(), EstadoDirectorEnum.RENUNCIADO.getTipo());\r\n if (proyecto.getDirectorProyectoList() == null) {\r\n return \"\";\r\n }\r\n int contador = 0;\r\n for (DirectorProyecto directorProyecto : proyecto.getDirectorProyectoList()) {\r\n if (estadoRenunciado.getId().equals(directorProyecto.getEstadoDirectorId())) {\r\n continue;\r\n }\r\n DocenteCarrera docenteCarrera = docenteCarreraService.buscarPorId(new DocenteCarrera(directorProyecto.getDirectorId().getId()));\r\n Persona persona = personaService.buscarPorId(new Persona(docenteCarrera.getDocenteId().getId()));\r\n if (contador == 0) {\r\n resultado = (persona.getApellidos() + \" \" + persona.getNombres());\r\n } else {\r\n resultado = (resultado + \", \" + persona.getApellidos() + \" \" + persona.getNombres());\r\n }\r\n contador++;\r\n }\r\n return resultado;\r\n }", "@GetMapping(\"/directorForm\")\n public String addDirectors(Model model) {\n\n model.addAttribute(\"newDirector\", new Director());\n return \"directorForm\";\n }", "private static void listarDirectorio2(String directorio) {\n\t\tFile f = new File(directorio);\n\t\tFile[] ficheros = f.listFiles();\n\t\tSystem.out.printf(\"DIRECTORY: %s%n\", directorio);\n\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t// es fichero\n\t\t\tif (ficheros[i].isFile()) {\n\t\t\t\tSystem.out.printf(\"-- FILE %s%n\", \n\t\t\t\t\t\tficheros[i].getName());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t// es directorio\n\t\t\tif (ficheros[i].isDirectory()) {\n\t\t\t\tSystem.out.printf(\"-- DIR %s%n\", \n\t\t\t\t\t\tficheros[i].getName());\n\t\t\t\t//System.out.println(\"\");\n\t\t\t\t//listarDirectorio2(ficheros[i].getPath());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t// explora nuevos directorios\n\t\t\tif (ficheros[i].isDirectory()) {\t\t\t\t\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tlistarDirectorio2(ficheros[i].getPath());\n\t\t\t}\n\t\t}\n\t}", "public viewAgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n }", "public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }", "private static boolean esDirectorio(String ruta) {\n\t\tboolean b = false;\n\t\tFile f = new File(ruta);\n\t\tif (f.isDirectory()) {\n\t\t\tb = true;\n\t\t}\n\t\treturn b;\n\t}", "public void criarArvoreDeDiretorioLocal(String caminhoDestino, String raiz, String fs) {\r\n String caminhoDeCriacao;\r\n \r\n caminhoDeCriacao = caminhoDestino;\r\n if (new File(caminhoDeCriacao).mkdir())\r\n System.out.println(\"Diretorio Criado\");\r\n else\r\n System.out.println(\"Diretorio: \" + caminhoDeCriacao + \" nao criado\");\r\n \r\n ArrayList<String> filhos = new ArrayList<>(arvoreDeDiretorios.getSuccessors(raiz));\r\n \r\n for (String filho : filhos) {\r\n //new File(caminhoDeCriacao +fs + filho).mkdir();\r\n criarArvoreDeDiretorioLocal(caminhoDeCriacao + fs + filho, filho,fs);\r\n } \r\n }", "protected void creaNavigatori() {\n /* variabili e costanti locali di lavoro */\n Navigatore nav;\n\n try { // prova ad eseguire il codice\n nav = new NavigatoreRisultati(this);\n this.addNavigatore(nav);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "private static void listarDirectorio(String directorio) {\n\t\tFile f = new File(directorio);\n\t\tFile[] ficheros = f.listFiles();\n\t\tSystem.out.printf(\"CURRENT DIRECTORY: %s%n\", directorio);\n\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t// es fichero\n\t\t\tif (ficheros[i].isFile()) {\n\t\t\t\tSystem.out.printf(\"-- FILE %s%n\", \n\t\t\t\t\t\tficheros[i].getName());\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t// es directorio\n\t\t\tif (ficheros[i].isDirectory()) {\n\t\t\t\tSystem.out.printf(\"-- DIR %s%n\", \n\t\t\t\t\t\tficheros[i].getName());\n\t\t\t}\n\t\t}\n\t}", "public void setDireccion(String direccion);", "public void addDado(Dado dado) throws SQLException,AziendaException {\n\t\tAdminQuery aq = ProxyDB.getIstance();\n\t\taq.addDado(utente.getUsername(),dado);\n\t}", "public void saveDirecteur(Directeur directeur){\n directeurRepos.save(directeur);\n }", "public void setDirectors(ArrayList<String> directors) {\n\t\tthis.directors = directors;\n\t}", "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOrdenes(null).getId();\n controlarUsuario = Fabrica.getInstance().getControladorUsuarios(idUsuariosControlador);\n controlarProducto = Fabrica.getInstance().getControladorProductos(idProductosControlador);\n controlarOrden = Fabrica.getInstance().getControladorOrdenes(idOrdenesControlador);\n }", "private void agregarMarcadorAlto() {\n SharedPreferences preferencias = actividadJuego.getSharedPreferences(\"marcadorAlto\", Context.MODE_PRIVATE);\n int puntos = preferencias.getInt(\"puntos\",0);\n\n txtMarcador = new Text(ControlJuego.ANCHO_CAMARA/2,ControlJuego.ALTO_CAMARA-80,\n fontMonster,\"Marcador mayor: \"+puntos,actividadJuego.getVertexBufferObjectManager());\n attachChild(txtMarcador);\n }", "public static void listarDirectorios(File directorio) {\n if (!directorio.isDirectory()) {//bolean si no se trata de un directorio sino de un archivo\n System.out.println(directorio.getName());//dame su nombre\n } else {\n String[] dirs = directorio.list(); //list() devuelve un tab[] de strings con nombres de cada directorio dentro de directorio\n\n for (String dir : dirs) { //File(String parent, String child)\n File f = new File(directorio.getAbsolutePath(),dir);//directorio.getAbsolutePath() vendria a ser el directorio, dir el archivo dentro(hijo)\n System.out.println(f.getName());\n if (f.isDirectory()) {\n listarDirectorios(f);\n }\n }\n\n }\n }", "public VentanaPrincipal() {\n\t\tinitComponents();\n\t\tthis.setLocationRelativeTo(this);\n\t\ttry {\n\t\t\tcontroladorCliente = new ControladorVentanaCliente();\n\t\t\tcargarFranquicia();\n\t\t\tcargarTipoTransacion();\n\t\t\ttipoCompra();\n\t\t} catch (NamingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void moverDerecha() {\n estado = EstadosPersonaje.DERECHA;\n mover(new Vector2(1, 0));\n }", "public void cambiarNombreDepartamento(String NombreAntiguo, String NombreNuevo) {\r\n\t\t// TODO Auto-generated method stub\r\n//se modifica el nombre del Dpto. en las 3 tablas de Departamentos\r\n\t\t\r\n//\t\tthis.controlador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreDepartamentoUsuario(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreNumerosDEPARTAMENTOs(NombreAntiguo, NombreNuevo);\r\n\t\tboolean esta=false;\r\n\t\tArrayList <String> aux=new ArrayList<String>();//Aqui meto los dos nombres que necesito, de esta forma no hace falta \r\n\t\taux.add(NombreAntiguo);\r\n\t\taux.add(NombreNuevo);\r\n\t\tint i=0;\r\n\t\twhile (i<departamentosJefe.size() && !esta){\r\n\t\t\tif (departamentosJefe.get(i).getNombreDepartamento().equals(NombreAntiguo)){\r\n\t\t\t\tdepartamentosJefe.get(i).setNombreDepartamento(NombreNuevo);\r\n\t\t\t\tmodifyCache(aux,\"NombreDepartamento\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (getEmpleadoActual().getRango() == 0){\r\n\t\t\tcontrolador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n\t\t}\r\n\t}", "public void agregarAlFinal(int d){\n if(!estaVacia()){\n fin = new NodoBus(d, null, fin);\n fin.ant.sig =fin;\n }else{\n inicio = fin = new NodoBus(d);\n }\n }", "public static void listarContenidoDirectorio(File directorio) {\n\t System.out.println(\"D \" + directorio+\" \"+ new Date(directorio.lastModified()));\n\t //creamos un array con los archivos que hay dentro\n\t File[] listado = directorio.listFiles();\n\t \n\t if (listado!=null) {\n\t \t//recorremos la lista de achivos\n\t for(File file:listado) {\n\t \t//si lo que encontramos es un directorio llamamos recursivamente a la funcion listarContenidoDirectorio\n\t if (file.isDirectory())\n\t \tlistarContenidoDirectorio(file);\n\t //si son archivos pedimos que los imprima\n\t else {\n\t \t\n\t System.out.println(\"F \"+file+ \" \"+new Date(file.lastModified()));\n\t }\n\t }\n\t }\n\n\t }", "public void setDiretor(IPessoa diretor);", "public int addDirector(String fname, String lname) {\n this.connect();\n String sql = \"INSERT INTO directors(firstName,lastName) VALUES(?,?)\";\n int id = 0;\n try (Connection conn = this.getConnection();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, fname);\n pstmt.setString(2, lname);\n pstmt.executeUpdate();\n id = getDirectorID(fname,lname);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return id;\n }", "public void Ordenamiento() {\n\n\t}", "public void guardarArchivo(String nombre, byte[] contenido) {\n\t\tFileOutputStream fos = null;\r\n\t\t// tenemos un objeto de tipo file, aqui no se crea el archivo\r\n\t\tFile carpetaPrincipal = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\");\r\n\t\t// se crea la carpeta\r\n\t\tcarpetaPrincipal.mkdir();\r\n\t\tString nombreSinEspacios = \"\";\r\n\t\tFile miArchivo = new File(\"C:\\\\java\\\\wildfly-9.0.2.Final\\\\welcome-content\\\\documentos\\\\clientes\\\\\" + nombre);\r\n\t\ttry {\r\n\t\t\tmiArchivo.createNewFile();// se crea el archivo\r\n\t\t\tfos = new FileOutputStream(miArchivo);\r\n\t\t\tfos.write(contenido); // en memoria se escribe el archivo\r\n\t\t\tfos.flush();// escribir en el disco y tambien\r\n\t\t\tSystem.out.println(\"path donde se guardo \" + carpetaPrincipal.getAbsolutePath());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tfos.close();// permite liberar el archivo\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tString nmArchivo = \"<a href=\\\"http://localhost:8081/documentos/clientes/\" + nombre + \"\\\" target=\\\"_blank\\\">\"\r\n\t\t\t\t+ nombre + \"</a><br/>\";\r\n\t\tSystem.out.println(\"filename:\" + nmArchivo);\r\n\t}", "public VentanaPrincipal() {\n initComponents();\n menuTelefono.setVisible(false);\n menuItemCerrarSesion.setVisible(false);\n controladorUsuario = new ControladorUsuario();\n\n ventanaRegistrarUsuario = new VentanaRegistrarUsuario(controladorUsuario);\n ventanaBuscarUsuarios = new VentanaBuscarUsuarios(controladorUsuario, controladorTelefono);\n \n }", "public WOComponent newDirector() {\n EOEditingContext ec = ERXEC.newEditingContext();\n EOEnterpriseObject director = ERXEOControlUtilities.createAndInsertObject(ec, \"Talent\");\n \n // Let's throw to a regular edit page\n EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed(\"EditTalent\", session());\n epi.setObject(director);\n epi.setNextPageDelegate(new CreateDirectorDelegate(movie(), context().page()));\n return (WOComponent)epi;\n }", "public SocioAdulto() {\n super();\n this.dirigente = DIRIGENTE_POR_DEFEITO;\n this.IDAdulto = tagAdulto + SAContador;\n SAContador ++;\n }", "@Override\n public void buildPersonalidad() {\n this.personaje.setPersonalidad(\"Pacientes y estrategas.\");\n }", "public void setDireccion(String unaDireccion) { \n\t\tdireccion = unaDireccion;\n\t}", "private static void mover(String nombre, String directorio) {\n\t\tFile archivo = new File(nombre);\n\t\tFile dir = new File(directorio);\n\t\tboolean correcto = archivo.renameTo(new File(dir, \n\t\t\t\tarchivo.getName()));\n\t\tif (!correcto) {\n\t\t\tSystem.out.println(\"--> El fichero no se ha podido \" +\n\t\t\t\t\t\"mover\");\n\t\t}\n\t}", "private void insertar(String nombre, String Contra) {\n ini.Tabla.insertar(nombre, Contra);\n AVLTree arbol = new AVLTree();\n Nod nodo=null;\n ini.ListaGen.append(0,0,\"\\\\\",nombre,\"\\\\\",\"\\\\\",arbol,\"C\",nodo); \n \n }", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public void crearPerfil(String nombre, String apellido1, String apellido2,\r\n String direccion, String nif, int telefono, int edad) {\r\n\r\n clientes.add(new Cliente(nombre, apellido1, apellido2, direccion, nif, telefono, edad));\r\n }", "ParqueaderoEntidad agregar(String nombre);", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }", "public void mostrarMenuPrincipal() {\r\n try {\r\n FXMLLoader loader = new FXMLLoader(Main.class.getResource(\"../Vista/UIMenuPrincipal.fxml\"));\r\n rootPane=(AnchorPane) loader.load();\r\n Scene scene = new Scene(rootPane);\r\n stagePrincipal.setTitle(\"Aplicacion de Donantes y Donaciones\");\r\n stagePrincipal.setScene(scene);\r\n /*\r\n * Añadidos las llamadas del main al Controlador y del controlador al main ***/\r\n ControladoraUIMenuPrincipal controller = loader.getController();\r\n controller.setMnPrincipal(this);\r\n\r\n stagePrincipal.show();\r\n } catch (IOException e) {\r\n \tSystem.out.println(e);\r\n //tratar la excepción.\r\n }\r\n }", "public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "private void arrancarHiloCambiosVentas() {\n HiloCambiosVentas hilo = new HiloCambiosVentas();\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "private static void recorrerDirectorios(File[] ficheros, \n\t\t\tint indice, String texto) {\n\t\tif (indice <= ficheros.length - 1) {\n\t\t\tif (ficheros[indice].isDirectory()) {\n\t\t\t\t// si es directorio\n\t\t\t\tFile nuevo = new File(ficheros[indice].getPath());\n\t\t\t\tFile[] tabla = nuevo.listFiles();\n\t\t\t\trecorrerFicheros(tabla, 0, texto);\n\t\t\t\trecorrerDirectorios(tabla, 0, texto);\n\t\t\t\tindice++;\n\t\t\t\trecorrerDirectorios(ficheros, indice, texto);\n\t\t\t} else {\n\t\t\t\tindice++;\n\t\t\t\trecorrerDirectorios(ficheros, indice, texto);\n\t\t\t}\n\t\t}\n\t}", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public Principal() {\n initComponents();\n setResizable(false);\n setLocationRelativeTo(null);\n asignarListeners();\n listaGatos = Utilidad.leerArchivoGatos();\n listaPerros = Utilidad.leerArchivoPerros();\n // Actualizacion al iniciar el proyecto, carga de informacion de los\n // archivos planos\n actualizarListas();\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\n\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t }\n\t\t\n\t\t\n\t\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "public VentanaPrincipal() {\r\n\t\t\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 643, 414);\r\n\t\t\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tsetJMenuBar(menuBar);\r\n\t\t\r\n\t\tmnPersona = new JMenu(\"Persona\");\r\n\t\tmenuBar.add(mnPersona);\r\n\t\t\r\n\t\tmntmAgregar = new JMenuItem(\"Agregar\");\r\n\t\tmnPersona.add(mntmAgregar);\r\n\t\t\r\n\t\tmntmModificar = new JMenuItem(\"Modificar\");\r\n\t\tmnPersona.add(mntmModificar);\r\n\t\t\r\n\t\tmntmListar=new JMenuItem(\"Listar\");\r\n\t\tmnPersona.add(mntmListar);\r\n\t\t\r\n\t\tmntmEliminar = new JMenuItem(\"Eliminar\");\r\n\t\tmnPersona.add(mntmEliminar);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\t\r\n\r\n\t}", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public static void MenuPrincipal() {\n System.out.println(\"Ingrese Opcion deseada :.\\n\"\r\n + \"1. Ingresar un perro a la guardería.\\n\"\r\n + \"2. Contar cuántos Perros de la raza y el Genero deceado hay o pasaron por la guardería durante el verano.\\n\"\r\n + \"3. Listar todos los perros (con su respectiva información) que ingresaron en una determinada fecha.\\n\"\r\n + \"4. Listar todos los Perrros de la Raza que decea con estadía mayor a 20 días.\\n\"\r\n + \"5. Dado el código de un perro, informar los datos de su dueño.\\n\"\r\n + \"6. Terminar.\\n\"\r\n +\"______________________________________________________________________________________________________________\"\r\n \r\n );\r\n\r\n }", "public Camino busquedaAnchura(Nodo destino) {\r\n\t\tLinkedList<Camino> aExplorar = new LinkedList<Camino>();\r\n\t\tHashSet<Nodo> visitados = new HashSet<Nodo>();\r\n\r\n\t\t/* Inicio del algoritmo de busqueda en anchura */\r\n\t\tCamino caminoBase = new Camino(this);\r\n\t\taExplorar.add(caminoBase);\r\n\r\n\t\twhile (!aExplorar.isEmpty()) {\r\n\t\t\tCamino caminoActual = aExplorar.poll();\r\n\r\n\t\t\tNodo nodoActual = caminoActual.getDestino();\r\n\r\n\t\t\tif (visitados.contains(nodoActual))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tvisitados.add(nodoActual);\r\n\r\n\t\t\t/* Llegamos a destino */\r\n\t\t\tif (nodoActual.equals(destino)) {\r\n\t\t\t\treturn caminoActual;\r\n\t\t\t}\r\n\r\n\t\t\tfor (CanalOptico canal : nodoActual.canales) {\r\n\t\t\t\tNodo otroExtremo = canal.getOtroExtremo(nodoActual);\r\n\r\n\t\t\t\tif (visitados.contains(otroExtremo))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\tCamino caminoNuevo = new Camino(caminoActual);\r\n\t\t\t\tint secuencia = caminoActual.getDistancia() + canal.getCosto();\r\n\t\t\t\tcaminoNuevo.addSalto(new Salto(secuencia, canal));\r\n\r\n\t\t\t\taExplorar.add(caminoNuevo);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}", "@GetMapping(\"/listAllDirectors\")\n public String showAllDirectors(Model model) {\n\n// Director director = directorRepo.findOne(new Long(1));\n Iterable <Director> directorlist = directorRepo.findAll();\n\n model.addAttribute(\"alldirectors\", directorlist);\n return \"listAllDirectors\";\n }", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "@OneToOne(cascade = {CascadeType.ALL}, fetch = FetchType.EAGER)\n @JoinColumn(name = \"N_ID_DIRECCION\", nullable = false)\n public Direccion getDireccion() {\n return direccion;\n }", "public boolean crearSede(String nombre, String direccion, String municipio) {\n\t\t\n\t\tclickButtonLink(btnMenu);\n\t\tclickButtonLink(opcionSedes);\n\t\tclickButtonLink(pestanaSedes);\n\t\tsendText(cajaTextoNombreSede, nombre);\n\t\tsendText(cajaTextoDireccion, direccion);\n\t\tselectDropdownVisibleText(listaMunicipios, municipio);\n\t\t//selectDropdownValue(listaMunicipios, municipio);\n\t\t//lesperar(2);\n\t\t\n\t\tclickButtonLink(btnGrabarSede);\n\t\t//esperar(1);\n\n\t\treturn true;\n\t}", "public void cambiarPanelPrincipal(JComponent elemento)\n {\n principal.removeAll();\n principal.setVisible(false);\n principal.add(elemento);\n principal.setVisible(true);\n }", "public void guardar() {\r\n\t\t\r\n\t\tmanejadorArchivos.guardar(palabras);\r\n\t\t\r\n\t}", "public void setDireccion(Direccion direccion) {\n this.direccion = direccion;\n }", "@Override\r\n\tpublic void visit(DisparoAliado d) {\n\t\tobj.mover();\r\n//\t\tSystem.out.println(\"VisitorEnemigo.visit(DisparoAliado)\");\r\n\t}", "public FRM_MenuPrincipal() {\n initComponents();\n archivos = new ArchivoUsuarios(); \n controlador = new CNTRL_MenuPrincipal(this, archivos);\n agregarControlador(controlador);\n setResizable(false);\n ordenarVentanas();\n }", "public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}", "private void arrancaHiloPrincipal() {\n //Creo objeto hilo principal\n HiloPrincipal hilo = new HiloPrincipal(this);\n //Creo un hilo del objeto de HiloPrincipal \n Thread th = new Thread(hilo);\n th.start();\n }", "public void setDireccion(String direccion) {\r\n this.direccion = direccion;\r\n }", "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public static File obtenerDirectorioEnUnidadExterna(String DIRECTORIOEXTERNO, String nuevaCarpeta) {\n File file = new File(Environment.getExternalStoragePublicDirectory(DIRECTORIOEXTERNO), nuevaCarpeta);\n if (file.exists()) {\n return file;\n }\n if (!file.mkdirs()) {\n file = null;\n }\n return file;\n }", "public void setDireccion(String direccion) {\n this.direccion = direccion;\n }", "public void setDireccion(String direccion) {\n this.direccion = direccion;\n }", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "private void dibujarMarcador() {\n\n\t\tText tituloMarcador = new Text(\"Marcador\");\n\t\ttituloMarcador.setFont(new Font(16));\n\n\t\tText tituloJuega = new Text(\"Juega\");\n\t\ttituloJuega.setFont(new Font(16));\n\t\t\n\t\tcantidadFichasNegras = new Label();\n\t\tcantidadFichasBlancas = new Label();\n\t\tjugadorActual = new Label();\n\n\t\tGridPane marcador = new GridPane();\n\t\tmarcador.setAlignment(Pos.TOP_CENTER);\n\t\tmarcador.setHgap(20);\n\t\tmarcador.setVgap(20);\n\t\tmarcador.setPadding(new Insets(20));\n\t\tmarcador.add(tituloMarcador, 0, 0, 2, 1);\n\t\tmarcador.add(new Label(\"Negras :\"), 0, 1);\n\t\tmarcador.add(cantidadFichasNegras, 1, 1);\n\t\tmarcador.add(new Label(\"Blancas :\"), 0, 2);\n\t\tmarcador.add(cantidadFichasBlancas, 1, 2);\n\t\tmarcador.add(tituloJuega, 0, 3, 2, 1);\n\t\tmarcador.add(jugadorActual, 0, 4, 2, 1);\n\n\t\tpanel.setPadding(new Insets(5));\n\t\tpanel.setRight(marcador);\n\t}", "public void giraParaEsquerda(Sonda sonda, String vetor[]){\n String posicaoGiro;\n\n if (sonda.getDirecao().equalsIgnoreCase(\"W\")){\n int indice = 0;\n posicaoGiro = vetor[indice+3];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"N\")){\n int indice = 1;\n posicaoGiro = vetor[indice-1];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"E\")){\n int indice = 2;\n posicaoGiro = vetor[indice-1];\n sonda.setDirecao(posicaoGiro);\n } else if (sonda.getDirecao().equalsIgnoreCase(\"S\")){\n int indice = 3;\n posicaoGiro = vetor[indice-1];\n sonda.setDirecao(posicaoGiro);\n }\n }", "public void agregarCliente(Cliente cliente, int distancia) {\n\t\tclientes.add(cliente);\n\t\tcosto += distancia; \n\t}", "public void agregarOrden(Orden o) {\n\t\tthis.colaOrdenes.add(o);\n\t}", "public void asociarMedidorACliente(Cliente c, Medidor m){\r\n\t\t//TODO Implementar metodo\r\n\t}", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void inserir_delegacao(Norms norma_local, Norms norma_inserir, Operador operador){\n\t\tthis.buscar_no_inserir(this.raiz, norma_local, norma_inserir, operador);\n\t}", "public void agregarCliente(String nombre, String ced, String dir, String tipo) throws ExCliente\n\t{\n\t\tif(!clientes.isEmpty())\n\t\t{\n\t\t\tif(clientes.containsKey(ced))\n\t\t\t\tthrow (new ExCliente(\"Cedula \" + ced + \" ya registrada\"));\n\t\t}\n\n\t\ttry{\n\t\t\tclientes.put(ced, new Cliente(nombre, ced, dir, tipo));\n\t\t}catch(ExCliente e)\n\t\t{\n\t\t\tthrow e;\n\t\t}\n\t\t\n\n\t\t\n\t\t\n\t}", "@Override\n public ScontrinoDtoIll trovaEan(String ean, Scontrino sc) {\n Prodotto p = anagraficaProdottiRepository.findByEan(ean);\n if (p == null) {\n //se non è stato trovato alcun prodotto recupero il dto e\n //spedisco un messaggio di errore\n return new ScontrinoDtoIll(null, null, \"prodotto non trovato\");\n }\n //se invece è stato trovato un prodotto devo associarlo alla\n //riga scontrino che è a sua volta associata ad uno scontrino\n // quindi recupero lo scontrino ...\n if (sc != null) {\n sc = scontrinoRepository.findById(sc.getId()).get();\n //return new ScontrinoDtoIll(null, null, \"prodotto trovato\");\n }\n // se non esiste lo scontrino lo creo ...\n if (sc == null) {\n sc = new Scontrino();\n sc = scontrinoRepository.save(sc);\n }\n\n // creo la riga e la salvo ...\n RigaScontrino r = new RigaScontrino();\n r = rigaRepository.save(r);\n r.setProdotto(p);\n r.setScontrino(sc);\n r = rigaRepository.save(r);\n\n // aggiungo la riga allo scontrino\n sc.getRigheScontrino().add(r);\n sc = scontrinoRepository.save(sc);\n\n // creo il DTO con i dati da ritornare al client\n ScontrinoDtoIll risp = new ScontrinoDtoIll();\n Set<RigaScontrino> righe = sc.getRigheScontrino();\n List<RigaScontrinoClientDto> righeDto = new ArrayList<>();\n // trasformo le righe originali dello scontrino in righe del DTO\n righe.forEach(rr\n -> righeDto.add(\n new RigaScontrinoClientDto(\n rr.getId(),\n rr.getScontrino().getId(),\n p.getId(),\n rr.getProdotto().getDescrizione(),\n rr.getProdotto().getPrezzo())));\n\n risp.setRigheScontrino(righeDto);\n risp.setScontrino(sc);\n risp.setMessaggio(\"scontrino pronto!\");\n\n return risp;\n }", "@Put\n public void addMember(){\n try {\n controller.addMember(getQueryValue(\"id\"), getQueryValue(\"name\"));\n }catch(MenuException e){\n System.out.println(e.getMessage());\n }\n }", "public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "public Vendedor buscarVendedorPorNome(String nome);", "Lancamento persistir(Lancamento lancamento);", "public void cambiarDirec(int dir)\r\n\t{\r\n\t\t\tgrafico.setIcon(sprites.elementAt(dir).elementAt(0));\r\n\t}", "public static ArrayList<Director> getDirectors() {\n File file = new File(\"./data/names.csv\");\n Scanner scan;\n try {\n scan = new Scanner(file);\n\n } catch (IOException e) {\n throw new Error(\"Could not open names file\");\n }\n scan.nextLine();\n\n // Read File to get Directors\n ArrayList<Director> directors = new ArrayList<Director>();\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] ratingParts = line.split(\"\\t\");\n\n if (isDirector(ratingParts[ratingParts.length - 1])) {\n Director director = new Director(ratingParts[2], ratingParts[1]);\n directors.add(director);\n }\n }\n\n // Close Scanner\n scan.close();\n\n // Return Directors\n return directors;\n }", "public void casdastrar(RelatorioDAO obj) throws SQLException {\n\t\t\n\t}", "public void setGDM(GestorDeMovimientos mov){\n gdm.copiarTablero(mov);\n }", "private static void makeDirPath(String targetAddr) {\n\t\tString parentPath = PathUtil.getImgBasePath() + targetAddr;\r\n\t\tFile dirPath = new File(parentPath);\r\n\t\tif (!dirPath.exists()) {\r\n\t\t\tdirPath.mkdirs();\r\n\t\t}\r\n\t}", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }" ]
[ "0.6027218", "0.59199685", "0.58411676", "0.57306165", "0.57148784", "0.5611813", "0.5462865", "0.5425187", "0.54089403", "0.53894067", "0.5383058", "0.5367667", "0.52043563", "0.51553667", "0.51454324", "0.5145132", "0.5143941", "0.51410747", "0.5098786", "0.5078208", "0.5075683", "0.5066785", "0.50624985", "0.5057577", "0.50371194", "0.50299096", "0.50278306", "0.50088733", "0.49914277", "0.49766257", "0.49751833", "0.49726248", "0.49712634", "0.4966524", "0.49644274", "0.49356937", "0.4933763", "0.4898527", "0.48959574", "0.489255", "0.48800573", "0.48716748", "0.4865769", "0.48488706", "0.48487854", "0.48449782", "0.4843905", "0.48384592", "0.48344523", "0.48319325", "0.48263922", "0.48250285", "0.4815656", "0.48096368", "0.48056534", "0.47994372", "0.4793712", "0.4788069", "0.47855452", "0.4779727", "0.47736087", "0.4773429", "0.47704613", "0.47621554", "0.47575146", "0.4753885", "0.47442895", "0.47432604", "0.4742871", "0.473257", "0.4730799", "0.47285306", "0.47268215", "0.472176", "0.47101542", "0.47055992", "0.47035792", "0.47032067", "0.47032067", "0.4702613", "0.46966878", "0.46917167", "0.46908662", "0.46855205", "0.46824288", "0.46810877", "0.46734717", "0.46703643", "0.46649465", "0.46614507", "0.46588817", "0.4654404", "0.46482378", "0.46480948", "0.46402156", "0.46378446", "0.46377203", "0.46367788", "0.46327865", "0.46303895" ]
0.68056864
0
Agrega operador a la cola de operadores
public synchronized void agregarOperador(Operador operador) { System.out.println("SE LIBERO OPERADOR"); getOperadores().add(operador); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOper(String oper) {\n this.oper = oper;\n }", "public String getOper() {\n return oper;\n }", "public String getOperador() {\n\t\treturn operador;\n\t}", "public char getOper(){\n\t\treturn oper;\n\t}", "public void operacao();", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "public Automato aplicaOperacao(Automato a, Automato b, Character op){\n\t\tAutomato r = new Automato();\n\t\tswitch (op) {\n\t\tcase '*': r = Operacao.estrela(a);\n\t\t\t\t break;\n\n\t\tcase '.': r = Operacao.concatencao(a, b);\n\t\t \t\t break;\n\t\tcase '+': r = Operacao.uniao(a, b);\n\t\t break;\n\t\tdefault: r = simples(op);\n\t\t\tbreak;\n\t\t}\n\t\treturn r;\n\t}", "public int TipoOpera(String operacion) {\r\n\t\tswitch (operacion) {\r\n\t\tcase \"+\": {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\tcase \"-\": {\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\tcase \"*\": {\r\n\t\t\treturn 3;\r\n\t\t}\r\n\t\tcase \"/\": {\r\n\t\t\treturn 4;\r\n\t\t}\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operación no leída\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public String operator( String op);", "Operations operations();", "public int operation(int number1,int number2,String operator)", "@Override\n public void alRechazarOperacion() {\n }", "private void sacaOperadores(Stack PilaNumeros, Stack PilaOperadores, String operador) {\n //Todas las funciones que se manejan como paréntesis de apertura\n final String parentesis = \"( ln log abs sen sin cos tan sec csc cot sgn asen asin acos \"\n + \"atan asec acsc acot senh sinh cosh tanh sech csch coth \"\n + \"sqrt round asenh asinh acosh atanh asech acsch acoth\";\n\n //mientras la pila no esté vacía, el operador que sigue no sea un \n //paréntesis de apertura, la longitud del operador sea uno (para que sea un operador), y la prioridad indique\n //que tiene que seguir sacando elementos\n while (!PilaOperadores.empty() && !parentesis.contains((String) PilaOperadores.peek())\n && ((String) PilaOperadores.peek()).length() == 1\n && prioridad(((String) PilaOperadores.peek()).charAt(0)) >= prioridad(operador.charAt(0))) {\n sacaOperador(PilaNumeros, PilaOperadores); //Saca el siguiente operador\n }\n PilaOperadores.push(operador);//Al final mete el nuevo operador luego de sacar todo lo que tenía que sacar.\n }", "public void setOp(Operator op) {\n this.op = op;\n }", "public void addOperator(Operator op) {\r\n\t\telements.add(op);\r\n\t}", "public void setOp(String op) {\n this.op = op;\n }", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "public Operator getOp() {\n return op;\n }", "String getOp();", "String getOp();", "String getOp();", "public Double realizaroperacionesunavariable (ArrayList <String> funcion) {\n\n\t\t//mientras en la funcion hayan mas de dos numeros para operar\n\t\twhile(funcion.size()>=2) {\n\n\t\t\t//separar por token penultima posicion del arraylist\n\t\t\tStringTokenizer tokens = new StringTokenizer(funcion.get(funcion.size()-2));\n\t\t\tStringTokenizer tokens2 = new StringTokenizer(funcion.get(funcion.size()-1));\n\n\t\t\t//obtener signo de token de penultima operacion\n\t\t\tString tokensignosoperacion = tokens.nextToken();\n\n\t\t\t//omitir simbolo de operacion del ultimo token\n\t\t\ttokens2.nextToken();\n\n\t\t\t//obtener el valor del ultimo token\n\t\t\tString siguientetoken2= tokens2.nextToken();\n\n\n\n\t\t\twhile (tokens.hasMoreTokens()) {\n\n\t\t\t\tString siguientetoken = tokens.nextToken();\n\n\t\t\t\t//Chequear si el siguiente token para saber si es otra operacion, si lo es empezar a realizar calculos\n\t\t\t\tif (siguientetoken.equals(\"+\")|| siguientetoken.equals(\"-\")|| siguientetoken.equals(\"*\")|| siguientetoken.equals(\"/\")) {\n\t\t\t\t\ttokensignosoperacion = siguientetoken;\n\t\t\t\t}\n\t\t\t\t//realizar operacion si es suma\n\t\t\t\tif (tokensignosoperacion.equals(\"+\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) + Double.parseDouble(siguientetoken2) ;\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es resta\n\t\t\t\tif (tokensignosoperacion.equals(\"-\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken)- Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es multiplicacion\n\t\t\t\tif (tokensignosoperacion.equals(\"*\")) {\n\t\t\t\t\t//darle el valor de 1 para que la primera multiplicacion no sea 0\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) * Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es division\n\t\t\t\tif (tokensignosoperacion.equals(\"/\")) {\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) / Double.parseDouble(siguientetoken2);\n\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tcalculounavariable.set(funcion.size()-2 ,tokensignosoperacion + \" \"+String.valueOf(resultadocalculosperaciones));\n\t\t\t\tfuncion.remove(funcion.size()-1);\n\t\t\t\tcontadororden++;\n\t\t\t\tcontadorespacios=0;\n\n\t\t\t}\n\n\n\t\t}\n\t\tif(calculounavariable !=null) {\n\t\t\tcalculounavariable.clear();\n\t\t}\n\t//\tponer el valor de los resultados en 0 por si se ingresara una nueva\n\t\tdouble resultadocalculosperaciones2 = resultadocalculosperaciones;\n\t\tresultadocalculosperaciones=0;\n\t\treturn resultadocalculosperaciones2;\n\n\t}", "private void addOp(final Op op) {\n result.add(op);\n }", "@Override\r\n public void push (T operando){\r\n miLista.add(operando);\r\n posicion++;\r\n }", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public void setOperation(String op) {this.operation = op;}", "String getOperator();", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "public double Restar(double operador_1, double operador_2){\n return RestaC(operador_1, operador_2);\n }", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "public void setOp(int op) {\n\t\tthis.op = op;\n\t}", "public interface Operacion {\n\n /**\n * Metodo que evalua el valor de un nodo del arbol, calculando su valor recorriendo a todos sus\n * hijos\n */\n Hojas eval();\n void agregar(Operacion op);\n Boolean isBin();\n}", "public double Multiplicar(double operador_1, double operador_2){\n return MultiplicacionC(operador_1, operador_2);\n }", "Operator.Type getOperation();", "protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }", "abstract String getOp();", "public int getOp() {\n\t\treturn op;\n\t}", "public double Sumar(double operador_1, double operador_2){\n return SumaC(operador_1, operador_2);\n }", "public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "java.lang.String getOperator();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public void updateOperations() {\n String temp = \"\";\n \n if (chkBoxOperators[0].isSelected()) temp += PLUS;\n if (chkBoxOperators[1].isSelected()) temp += MINUS;\n if (chkBoxOperators[2].isSelected()) temp += TIMES;\n if (chkBoxOperators[3].isSelected()) temp += DIVIDE;\n \n charOperators = temp.toCharArray();\n if (temp.indexOf(currentOperator) == -1) setNewNumbers();\n \n }", "public void or (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n }\n }", "void assignOperators(Object rgID, List<Object> operIDs);", "public Operacion obtenerOperacion(int id){\n return historialOperaciones.get(id);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tString oper1 = operando1.getText();\n\t\t\t\tString oper2 = operando2.getText();\n\t\t\t\tint num1 = Integer.parseInt(oper1);\n\t\t\t\tint num2 = Integer.parseInt(oper2);\n\t\t\t\tint resul = num1 + num2;\n\t\t\t\tString total = String.valueOf(resul);\n\t\t\t\tresultado.setText(total);\n\t\t\t}", "public DAOTablaOperador() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public DAOTablaOperador() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "@Override\n\tprotected void addRequestedOperators() {\n\t}", "Unary operator(Operator o);", "public FuncionMultiplicacion(String operador, int hijos) {\n super(operador, hijos);\n }", "public GraphNode addOperation(String op){\n\t\tGraphNode opVar = new GraphNode(addElement(op, 3), 3);\n\t\tauthGraph.addVertex(opVar);\n\t\treturn opVar;\n\t}", "public static int executarOperacao(Calculo calculo, int a, int b){\n\n return calculo.calcular(a,b);\n }", "public void addop() {\n if (lexer.token != Symbol.PLUS && lexer.token != Symbol.MINUS) {\n error.signal(\"Wrong operator for addop. Using not a plus or not a minus.\");\n }\n lexer.nextToken();\n }", "public void suma(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.SUMA));\n }\n }\n }\n }", "private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(calc.getAnswer());\n txtBox.setText(Double.toString(calc.getAnswer()));\n }\n \n calc.setOperator(operator);\n\n operatorPressed = true;\n initialised = true;\n \n }", "public void operar() {\n\t\tOperacionMetodoRef op2 = MetRefApp::referenciaMedodoStatic;\n\t\top2.saludar();\n\t}", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "public void addOperador(Object operador, String tipo) throws Exception \n\t\t{\n\t\t\t\n\t\t\tDAOOperador daoOperador = new DAOOperador( );\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoOperador.setConn(conn);\n\t\t\t\tdaoOperador.addOperador(operador, tipo);\n\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\t\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoOperador.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public double operation( String a, String b, String o){\n switch (o){\n case \"+\": return Double.valueOf(a) + Double.valueOf(b);\n case \"-\": return Double.valueOf(a) - Double.valueOf(b);\n case \"x\": return Double.valueOf(a) * Double.valueOf(b);\n case \"÷\":try{\n return Double.valueOf(a) / Double.valueOf(b);\n }catch (Exception e){\n Log.e(\"calc\",e.getMessage());\n }\n\n default: return -1;\n }\n }", "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public Operator operator() {\n\treturn this.op;\n }", "Operacion createOperacion();", "public void addOperador(Operador operador) throws Exception \n\t\t{\n\t\t\t\n\t\t\tDAOOperador daoOperador = new DAOOperador( );\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthis.conn = darConexion();\n\t\t\t\tdaoOperador.setConn(conn);\n\t\t\t\tdaoOperador.addOperador(operador);\n\n\t\t\t}\n\t\t\tcatch (SQLException sqlException) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\t\tsqlException.printStackTrace();\n\t\t\t\tthrow sqlException;\n\t\t\t} \n\t\t\tcatch (Exception exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\t\n\t\t\t\tthrow exception;\n\t\t\t} \n\t\t\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tdaoOperador.cerrarRecursos();\n\t\t\t\t\tif(this.conn!=null){\n\t\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (SQLException exception) {\n\t\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t\tthrow exception;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\tpublic void setOperateur(String operateur) {\n\t\tcalcul();\n\t\tthis.operateur = operateur;\n\t\tif (!operateur.equals(\"=\"))\n\t\t\tthis.operande = \"\";\n\t}", "public void addOperator(Operator operator){\n _operators.add(operator);\n }", "private int operation(int b, char op, int a) {\n switch (op) {\n case '+': return a + b;\n case '-': return a - b;\n case '*': return a * b;\n case '/': return a / b; //assume b is not 0\n }\n return 0;\n }", "private double operation(char operand, double num1, double num2){\r\n\t\t\tdouble result;\r\n\t\t\tCalculatorImpl ci = new CalculatorImpl();\r\n\t\t\tswitch(operand){\r\n\t\t\tcase PLUS : result = ci.getAddition(num1, num2);break;\r\n\t\t\tcase MINUS : result = ci.getSubtraction(num1, num2);break;\r\n\t\t\tcase MULTI : result = ci.getMultification(num1, num2);break;\r\n\t\t\tcase DIVIDE : result = ci.getDivision(num1, num2);break;\r\n\t\t\tdefault : result=0.0;break;\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}", "public void setText(String operaciones) {\r\n this.operaciones = operaciones;\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tString oper1 = operando1.getText();\n\t\t\t\tString oper2 = operando2.getText();\n\t\t\t\tint num1 = Integer.parseInt(oper1);\n\t\t\t\tint num2 = Integer.parseInt(oper2);\n\t\t\t\tint resul = num1 - num2;\n\t\t\t\tString total = String.valueOf(resul);\n\t\t\t\tresultado.setText(total);\n\t\t\t}", "static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tString oper1 = operando1.getText();\n\t\t\t\tString oper2 = operando2.getText();\n\t\t\t\tint num1 = Integer.parseInt(oper1);\n\t\t\t\tint num2 = Integer.parseInt(oper2);\n\t\t\t\tint resul = num1 / num2;\n\t\t\t\tString total = String.valueOf(resul);\n\t\t\t\tresultado.setText(total);\n\t\t\t}", "public final AntlrDatatypeRuleToken ruleOperacao() throws RecognitionException {\r\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\r\n\r\n Token this_INT_0=null;\r\n Token this_ID_1=null;\r\n Token kw=null;\r\n AntlrDatatypeRuleToken this_Operacao_4 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalMyDsl.g:113:2: ( (this_INT_0= RULE_INT | this_ID_1= RULE_ID | kw= '+' | (kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')' ) ) )\r\n // InternalMyDsl.g:114:2: (this_INT_0= RULE_INT | this_ID_1= RULE_ID | kw= '+' | (kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')' ) )\r\n {\r\n // InternalMyDsl.g:114:2: (this_INT_0= RULE_INT | this_ID_1= RULE_ID | kw= '+' | (kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')' ) )\r\n int alt3=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_INT:\r\n {\r\n alt3=1;\r\n }\r\n break;\r\n case RULE_ID:\r\n {\r\n alt3=2;\r\n }\r\n break;\r\n case 11:\r\n {\r\n alt3=3;\r\n }\r\n break;\r\n case 12:\r\n {\r\n alt3=4;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 3, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt3) {\r\n case 1 :\r\n // InternalMyDsl.g:115:3: this_INT_0= RULE_INT\r\n {\r\n this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); \r\n\r\n \t\t\tcurrent.merge(this_INT_0);\r\n \t\t\r\n\r\n \t\t\tnewLeafNode(this_INT_0, grammarAccess.getOperacaoAccess().getINTTerminalRuleCall_0());\r\n \t\t\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalMyDsl.g:123:3: this_ID_1= RULE_ID\r\n {\r\n this_ID_1=(Token)match(input,RULE_ID,FOLLOW_2); \r\n\r\n \t\t\tcurrent.merge(this_ID_1);\r\n \t\t\r\n\r\n \t\t\tnewLeafNode(this_ID_1, grammarAccess.getOperacaoAccess().getIDTerminalRuleCall_1());\r\n \t\t\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalMyDsl.g:131:3: kw= '+'\r\n {\r\n kw=(Token)match(input,11,FOLLOW_2); \r\n\r\n \t\t\tcurrent.merge(kw);\r\n \t\t\tnewLeafNode(kw, grammarAccess.getOperacaoAccess().getPlusSignKeyword_2());\r\n \t\t\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalMyDsl.g:137:3: (kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')' )\r\n {\r\n // InternalMyDsl.g:137:3: (kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')' )\r\n // InternalMyDsl.g:138:4: kw= '(' (this_Operacao_4= ruleOperacao )* kw= ')'\r\n {\r\n kw=(Token)match(input,12,FOLLOW_4); \r\n\r\n \t\t\t\tcurrent.merge(kw);\r\n \t\t\t\tnewLeafNode(kw, grammarAccess.getOperacaoAccess().getLeftParenthesisKeyword_3_0());\r\n \t\t\t\r\n // InternalMyDsl.g:143:4: (this_Operacao_4= ruleOperacao )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( ((LA2_0>=RULE_INT && LA2_0<=RULE_ID)||(LA2_0>=11 && LA2_0<=12)) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // InternalMyDsl.g:144:5: this_Operacao_4= ruleOperacao\r\n \t {\r\n\r\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getOperacaoAccess().getOperacaoParserRuleCall_3_1());\r\n \t \t\t\t\t\r\n \t pushFollow(FOLLOW_4);\r\n \t this_Operacao_4=ruleOperacao();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\tcurrent.merge(this_Operacao_4);\r\n \t \t\t\t\t\r\n\r\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n kw=(Token)match(input,13,FOLLOW_2); \r\n\r\n \t\t\t\tcurrent.merge(kw);\r\n \t\t\t\tnewLeafNode(kw, grammarAccess.getOperacaoAccess().getRightParenthesisKeyword_3_2());\r\n \t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "private static void registerCommands(@NotNull ExecutionEnvironment env) {\n env.registerCommand(\"+\", new BinaryCommand(BinaryCommandOperator.PLUS));\n env.registerCommand(\"-\", new BinaryCommand(BinaryCommandOperator.MINUS));\n env.registerCommand(\"*\", new BinaryCommand(BinaryCommandOperator.MULTIPLY));\n env.registerCommand(\"/\", new BinaryCommand(BinaryCommandOperator.DIVIDE));\n env.registerCommand(\"^\", new BinaryCommand(BinaryCommandOperator.POWER));\n\n // Register more advances binary operators\n env.registerCommand(\"×√\", new BinaryCommand(BinaryCommandOperator.NTH_ROOT));\n env.registerCommand(\"nCr\", new BinaryCommand(BinaryCommandOperator.NCR));\n env.registerCommand(\"nPr\", new BinaryCommand(BinaryCommandOperator.NPR));\n\n // Register unary arithmetic operators\n env.registerCommand(\"²\", new UnaryCommand(UnaryCommandOperator.SQUARED));\n env.registerCommand(\"³\", new UnaryCommand(UnaryCommandOperator.CUBED));\n env.registerCommand(\"√(\", new UnaryCommand(UnaryCommandOperator.SQUARE_ROOT));\n env.registerCommand(\"∛(\", new UnaryCommand(UnaryCommandOperator.CUBIC_ROOT));\n env.registerCommand(\"!\", new UnaryCommand(UnaryCommandOperator.FACTORIAL));\n \n // Register comparison operators\n env.registerCommand(\"=\", new BinaryCommand(BinaryCommandOperator.EQUALS));\n env.registerCommand(\"≠\", new BinaryCommand(BinaryCommandOperator.NOT_EQUALS));\n env.registerCommand(\"<\", new BinaryCommand(BinaryCommandOperator.LESS_THAN));\n env.registerCommand(\"≤\", new BinaryCommand(BinaryCommandOperator.LESS_EQUALS));\n env.registerCommand(\">\", new BinaryCommand(BinaryCommandOperator.GREATER_THAN));\n env.registerCommand(\"≥\", new BinaryCommand(BinaryCommandOperator.GREATER_EQUALS));\n\n // Register logical operators\n env.registerCommand(\"and\", new BinaryCommand(BinaryCommandOperator.AND));\n env.registerCommand(\"or\", new BinaryCommand(BinaryCommandOperator.OR));\n env.registerCommand(\"xor\", new BinaryCommand(BinaryCommandOperator.XOR));\n env.registerCommand(\"not(\", new UnaryCommand(UnaryCommandOperator.NOT));\n }", "private void addOp(Class op){\n try {\n //Create a new instance and add it to the list\n Operation operation = (Operation)op.newInstance();\n operations.put(operation.getTextualRepresentation(), operation);\n } catch (InstantiationException | IllegalAccessException ex) {\n Logger.getLogger(RPC.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }", "public SegmentaoOperacao getOperation() {\r\n\t\treturn operation;\r\n\t}", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "protected void operation(String op) {\n \tint value;\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tint second = stack.pop();\n \t // handles when only one value in stack\n \t\tif (stack.empty()) {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tstack.push(second);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tcurrent = second *-1;\n \t\t\t\tstack.push(current);\n \t\t\t\tshow(stack.peek());\n \t\t\t\tcurrent = 0;\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t}\n \t // handles the other cases\n \t\telse {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tvalue = second + stack.pop();\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tvalue = stack.pop() - second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tvalue = stack.pop() * second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tvalue = stack.pop() / second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t}\n \t}\n }", "Operator operator();", "public void appendOperator(String operator){\n if(validateExp(currentExp)){\n currentExp+=operator;\n calculationResult.onExpressionChange(currentExp,true);\n count++;\n }\n }", "public void setOperator(String operator) {\n this.operator = operator;\n }", "public int oper() {\n int ope = getFilter().getExp().oper();\n return ope;\n }", "public void addOperator(String operator) {\n this.operators.add(operator);\n }", "public Operator getOperator() {\n return this.operator;\n }", "private void Operation(String operator, String x, String y){\n\t\tswitch(operator){\r\n\t\t\tcase \"+\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + addition(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"-\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + substraction(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"*\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + multiplication(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"/\":\r\n\t\t\t\tSystem.out.print(\"Result: \" + division(x, y));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\tnotOperation = true;\r\n\r\n\t\t}\r\n\t}", "public String getOperator()\r\n {\r\n return operator;\r\n }", "@Override\n\tpublic float somar(float op1, float op2) {\n\t\treturn op1 + op2;\n\t}", "private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }", "String getOperation();", "String getOperation();", "public void and (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.AND));\n }\n }\n }\n }", "public void setOpr(Integer opr) {\n this.opr = opr;\n }", "public String getOperator() {\n return operator;\n }", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "public Long getOperator() {\n return operator;\n }", "public void setOp(String op) {\n this.op = op == null ? null : op.trim();\n }" ]
[ "0.722679", "0.7139963", "0.70186174", "0.70085126", "0.70072645", "0.68838656", "0.6844224", "0.67621344", "0.67516476", "0.66638625", "0.66289026", "0.6532726", "0.6508393", "0.6502406", "0.64501995", "0.6445528", "0.6397544", "0.6375065", "0.63646674", "0.63646674", "0.63646674", "0.63634443", "0.63546854", "0.6349238", "0.6323497", "0.6323497", "0.6299101", "0.62788844", "0.62777793", "0.625287", "0.6237634", "0.6237573", "0.6214168", "0.6203007", "0.6202133", "0.6201835", "0.6196561", "0.61959434", "0.61844283", "0.61703694", "0.61565727", "0.61536777", "0.61534786", "0.615294", "0.61275625", "0.61197454", "0.6091338", "0.6069763", "0.6031377", "0.60254437", "0.601692", "0.6001025", "0.5999468", "0.5998888", "0.59796214", "0.59729785", "0.59636736", "0.5954474", "0.595323", "0.59512264", "0.59501946", "0.59440076", "0.5942724", "0.5936692", "0.59351325", "0.59303504", "0.59144264", "0.5906946", "0.59008455", "0.5893852", "0.5885771", "0.5881561", "0.58805186", "0.58770347", "0.58750343", "0.58649343", "0.58566546", "0.5844887", "0.5837224", "0.5820411", "0.5816772", "0.58154696", "0.5814571", "0.5808781", "0.58036125", "0.58031255", "0.58005416", "0.57982904", "0.57957524", "0.5792675", "0.5791791", "0.57916766", "0.5786162", "0.5786162", "0.5784427", "0.57833546", "0.5768733", "0.5765389", "0.5761605", "0.5761333" ]
0.71204495
2
string name = 1;
java.lang.String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
com.google.protobuf.ByteString getNameBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
int32 age = 2;
int getAge();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int intOf();", "int getFromAge();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "long mo107678c(Integer num);", "public int getAge(){\n return age;\n }", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "int getToAge();", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "long getLongValue();", "long getLongValue();", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}" ]
[ "0.646022", "0.62739176", "0.62739176", "0.616013", "0.61587524", "0.6120473", "0.61163807", "0.61163807", "0.60445887", "0.60445887", "0.60120934", "0.59048986", "0.5902778", "0.5871985", "0.5857336", "0.5836807", "0.5776326", "0.5717868", "0.5713054", "0.5695866", "0.5695866", "0.5687746", "0.56705856", "0.56607574", "0.5655795", "0.5655795", "0.56512964", "0.5647582", "0.5646508", "0.5619739", "0.5619739", "0.5619739", "0.5619739", "0.5603557", "0.55955595", "0.55918163", "0.55742687", "0.5565777", "0.5559099", "0.55566", "0.55511546", "0.55497247", "0.55454886", "0.5531308", "0.55211467", "0.5513835", "0.55093783", "0.5503398", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54949296", "0.5473955", "0.54608154", "0.54591465", "0.5448863", "0.54447645", "0.5440858", "0.5420817", "0.5411223", "0.5411223", "0.5405342", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.539633", "0.539633", "0.5395477", "0.53916746", "0.53886837", "0.53870314", "0.53650415", "0.5365029", "0.5360434", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.5340816", "0.5323835", "0.5323835", "0.5322754" ]
0.59110653
12
string address = 3;
java.lang.String getAddress();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.64712304
9
string address = 3;
com.google.protobuf.ByteString getAddressBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1
Use Student.newBuilder() to construct.
private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}", "public Student() {\n \n }", "public Student(){}", "public Student() {\r\n }", "public Student build() { \n\t return new Student(this); \n\t }", "public Student() {\n }", "public Student() {\n }", "public Student() {\n }", "public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }", "Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(String name) {\n this.name = name;\n }", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student(String name) {\n\n this.name = name;\n }", "Student(String name){\n this.name = name;\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public com.demo.springprotobuff.Demoproto.Student.Builder addStudentBuilder() {\n\t\t\t\treturn getStudentFieldBuilder()\n\t\t\t\t\t\t.addBuilder(com.demo.springprotobuff.Demoproto.Student.getDefaultInstance());\n\t\t\t}", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Student build() {\n return mStudent;\n }", "public Student(int studentId, String studentName, String studentMajor) \r\n {\r\n\r\n setId(studentId);\r\n setName(studentName);\r\n setMajor(studentMajor);\r\n\r\n }", "public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}", "public StudentRecord() {}", "Student createStudent();", "public Student(String name, int studentId) {\n this.name = name;\n this.studentId = studentId;\n this.numberOfCredits = 0;\n this.gpa = 0.0;\n }", "private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }", "public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }", "public Student(String studentId){\n id = studentId;\n }", "public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public com.demo.springprotobuff.Demoproto.Student.Builder getStudentBuilder(int index) {\n\t\t\t\treturn getStudentFieldBuilder().getBuilder(index);\n\t\t\t}", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "Student(String firstName, String lastName, int grade) {\n // Standard constructor assignments\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "Student(String name, double cgpa, int token){\n this.name=name;\n this.cgpa=cgpa;\n this.token=token;\n }", "public Student(String firstName, String lastName, int age, double gpa, String major, String department, List<Course> courses) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.gpa = gpa;\n this.major = major;\n this.department = department;\n this.courses = courses;\n }", "public Student (String first, String last, String id)\r\n\t{\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(String studentID, String passwordHash, String name, String matricNum, String nationality,\r\n\t\t\tchar gender, ArrayList<String> school, ArrayList<String> courseList, ArrayList<Integer> indexGroupList,\r\n\t\t\tArrayList<String> exemptionCoursesList, ArrayList<String> completedCoursesList,\r\n\t\t\tArrayList<Integer> waitListIDList, Schedule schedule, Calendar startTime, Calendar endTime, String email,\r\n\t\t\tString mobileNum, String notifMode) {\r\n\t\tthis.studentID = studentID;\r\n\t\tthis.passwordHash = passwordHash;\r\n\t\tthis.name = name;\r\n\t\tthis.matricNum = matricNum;\r\n\t\tthis.nationality = nationality;\r\n\t\tthis.gender = gender;\r\n\t\tthis.school = school;\r\n\t\tthis.courseList = courseList;\r\n\t\tthis.indexGroupList = indexGroupList;\r\n\t\tthis.exemptionCoursesList = exemptionCoursesList;\r\n\t\tthis.completedCoursesList = completedCoursesList;\r\n\t\tthis.waitListIDList = waitListIDList;\r\n\t\tthis.schedule = schedule;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.email = email;\r\n\t\tthis.mobileNum = mobileNum;\r\n\t\tthis.notifMode = notifMode;\r\n\t}", "public Student( String name ) {\n sname=name;\n }", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "public Student(String fullName,Student_Status stStatus)\n {\n this.fullName = fullName;\n this.stStatus = stStatus;\n }", "Student(int i, String n) {\n id = i;\n name = n;\n }", "public Student() { //Default Constructor\n\t\tthis.roll_no=0;\n\t\tthis.full_name=\"\";\n\t\tthis.grade=\"\";\n\t}", "public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}", "public Student(int userId, String firstName, String lastName, String email, String password, int schoolId)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n }", "public Builder clearStudent() {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tstudent_ = java.util.Collections.emptyList();\n\t\t\t\t\tbitField0_ = (bitField0_ & ~0x00000001);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.clear();\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "public Student() {\r\n\t\t\r\n\t\t//populating country options\r\n\t\t//can also be done using a properties file\r\n\t\t\r\n\t\t/*\r\n\t\t * countryOptions = new LinkedHashMap<String, String>();\r\n\t\t * \r\n\t\t * countryOptions.put(\"BR\", \"Brazil\"); countryOptions.put(\"IN\", \"India\");\r\n\t\t * countryOptions.put(\"US\", \"United States\"); countryOptions.put(\"CA\",\r\n\t\t * \"Canada\");\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t}", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public Q1PrivateStudent() {\n\t\tthis(\"No Name\", 000, \"Not Set\");\n\t}", "public com.demo.springprotobuff.Demoproto.Student.Builder addStudentBuilder(int index) {\n\t\t\t\treturn getStudentFieldBuilder().addBuilder(index,\n\t\t\t\t\t\tcom.demo.springprotobuff.Demoproto.Student.getDefaultInstance());\n\t\t\t}", "public Student(String name, String gender,String rollNumber,String mobileNumber){\n this.name = name;\n this.gender = gender;\n this.rollNumber = rollNumber;\n this.mobileNumber = mobileNumber;\n }", "public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}", "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "public Student(\n int userId, String firstName, String lastName, String email, String password, int\n schoolId,\n double gpa)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n this.setGpa(gpa);\n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}", "public Student(int num) {\n//\t\tstuNum = num;\n//\t\tgpa = 0.0;\n\t\tthis(num, 0.0);\n\t}", "StudenteImpl(String nome, String cognome, Cdl corso, int annoCorso, String matricola) {\n super(nome, cognome);\n initialize(corso, annoCorso, matricola);\n }", "public Student(int id) {\n\t\tthis.id = id;\n\t}", "public Student(String id, String fname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(int sem, double gpa, String firstName, String lastName) {\n super(firstName, lastName);\n this.sem = sem;\n this.gpa = gpa;\n }", "public Student(int studentID, String firstName, String lastName) {\n this.studentID = studentID;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "Student4(int i, String n) {\n id = i;\n name = n;\n\n }", "public Student(double avg) {\n//\t\tstuNum = 0;\n//\t\tgpa = avg;\n\t\tthis(999, avg);\n\t}", "public Student( String name , String address ){//constructor with arguments \r\n \tID_COUNTER++;\r\n \tstudentNum = ID_COUNTER;\r\n getFirstAndLastName( name );\r\n this.address = address ;\r\n loginID = makeLoginID() ;\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public Student(String firstName, String lastName, int grade) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade; \n studentNumber = totalStudents++; // the new student's number is equal the total number of students, therefore, each student number will be unique\n }", "public Student(String nm, int day, int month, int year){\r\n\t\tthis.name = nm;\r\n//\t\tthis.username = createUsername(nm); //creates unique username from Student's name\r\n\r\n\t dateofbirth = LocalDate.of(year, month, day);\r\n\t\tthis.age = getAge();\r\n\t\tStudent.userID = userID++; //ID increments for each new User\r\n\t\t\r\n\t\tthis.username = getUsername();\r\n\t}", "public Student(String id, String fname, String mname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, mname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(String name, String emailAddress, String matriculationNumber) {\n this.name = name;\n this.emailAddress = emailAddress;\n this.matriculationNumber = matriculationNumber;\n }", "public Student(String nume, int varsta) {\n\t\tthis.nume = nume;\n\t\tthis.varsta = varsta;\n\t}", "public Subject(String code, String name, int semester, int yearOfStuding, Professor professor,\n\t\t\tArrayList<Student> students) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = students;\n\t}", "public Student(String firstName, String familyName, int identityNumber) {\r\n this.Student = new StudentInfo (firstName, familyName, identityNumber, 120);\r\n }", "public JStudentInfoRecord() {\n super(JStudentInfo.STUDENT_INFO);\n }", "public Student(int id, String firstName, String middleName, String lastName, String email, String ssn, int age,\n\t\t\tString major) {\n\n\t\tsuper(id, firstName, middleName, lastName, email, ssn, age);\n\t\tthis.major = major;\n\t}", "public Builder addStudent(com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.add(value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.addMessage(value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "public Student(String registrationNumber, int[] marks){\n this.registrationNumber = registrationNumber;\n this.marks = marks;\n \n }", "public Student(String name, String gender, String email){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = new Course();\n this.course2 = new Course();\n this.course3 = new Course();\n }", "Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }", "public Student(String name) {\n this.nameProp.set(name);\n }", "public Student(String firstName, String lastName, String email) {\r\n\t\tthis.firstName = firstName;\r\n\t\tthis.lastName = lastName;\r\n\t\tthis.email = email;\r\n\t}", "public Student(String name, String gender, String email, Course course1, \n Course course2, Course course3){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = course1;\n this.course2 = course2;\n this.course3 = course3;\n }", "public Student(String name, Integer age) {\n\n this.name = name;\n this.age = age;\n }", "public Request(Tutor tutor, Student student, String courseCode)\n\t{\n\t\tthis.tutor = tutor;\n\t\tthis.student = student;\n\t\tthis.courseCode = courseCode;\n\t}", "Student(String name) {\n\t\tthis.name = name;\n\t\tregisteredCourses = new Course[30];\n\t}", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public com.demo.springprotobuff.Demoproto.StudentOrBuilder getStudentOrBuilder(int index) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.get(index);\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getMessageOrBuilder(index);\n\t\t\t\t}\n\t\t\t}", "public Builder addStudent(int index, com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.add(index, value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.addMessage(index, value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "public void setStudent(Student s) {\r\n student = s;\r\n }", "public Student (String first, String last)\n {\n firstName = first;\n lastName = last;\n testScore1 = 0;\n testScore2 = 0;\n testScore3 = 0;\n }", "public Student(int id, String name, String course) {\n this.id = id;\n this.name = name;\n this.course = course;\n }", "private Student addStudent(String name, ArrayList<String> studentBranch) {\n\t\treturn new Student(name, studentBranch);\n\t}", "public Student(String name, int age, char gender, int year, String course) {\r\n\t\tthis.name = name;\r\n\t\tthis.age = age;\r\n\t\tthis.gender = gender;\r\n\t\tthis.year = year;\r\n\t\tthis.course = course;\r\n\t}", "public StudentRecord(Student s, Department dep, Degree deg, Term tb, List<Professor> a, List<Professor> c,\r\n List<CourseTaken> ct, List<String> n){\r\n student = s;\r\n department = dep;\r\n degreeSought = deg;\r\n termBegan = tb;\r\n advisors = a;\r\n committee = c;\r\n coursesTaken = ct;\r\n notes = n;\r\n }", "public Student setStudentName(String studentName) {\n this.studentName = studentName;\n return this;\n }", "public Student(int num, double avg) {\n\t\tstuNum = num;\n\t\tgpa = avg;\n\t}", "@Override\n protected Student initialValue() {\n return new Student();\n }", "public Student(String firstName, String lastName, int age, int number) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.studentNumber = number;\n this.grades = new int[0];\n }", "public StudentRecord()\n\t{\n\t\tboolean isValid;\n\t\tisValid = setStudentRecord(DEFAULT_QUIZ1, DEFAULT_QUIZ2, DEFAULT_QUIZ3, DEFAULT_MIDTERM, DEFAULT_FINAL);\n\t\t\n\t\tif(!isValid)\n\t\t{\n\t\t\tSystem.out.println(\"ERROR: bad grade in default StudentRecord()\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Student(Integer age) {\n\n this.age = age;\n }", "public Student(String id, String firstName, String lastName, String email, String username, String password) {\n super(id, firstName, lastName, email, username, password, \"student\");\n }", "public Builder setStudent(int index, com.demo.springprotobuff.Demoproto.Student value) {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\t\t\t\t\tensureStudentIsMutable();\n\t\t\t\t\tstudent_.set(index, value);\n\t\t\t\t\tonChanged();\n\t\t\t\t} else {\n\t\t\t\t\tstudentBuilder_.setMessage(index, value);\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}", "public StudentResource() {\n }" ]
[ "0.7378562", "0.7208338", "0.702391", "0.702128", "0.6971871", "0.6950327", "0.6950327", "0.6950327", "0.6893966", "0.68392766", "0.679275", "0.67563725", "0.675613", "0.67419195", "0.6726489", "0.6713104", "0.6706905", "0.66868985", "0.6679656", "0.6666276", "0.6657017", "0.6645135", "0.664346", "0.6620797", "0.66027915", "0.6600933", "0.6591926", "0.6558652", "0.6537073", "0.65330416", "0.6524952", "0.65020674", "0.6500476", "0.6466358", "0.6459472", "0.6434875", "0.6434078", "0.6428926", "0.6428415", "0.64244616", "0.64149195", "0.64032197", "0.6375046", "0.6361731", "0.63354945", "0.63318837", "0.6331802", "0.6322691", "0.6321663", "0.63207144", "0.6298384", "0.6282507", "0.6237469", "0.6219971", "0.61676496", "0.61631656", "0.6162841", "0.6154825", "0.6139951", "0.6134796", "0.6111761", "0.60998327", "0.6081816", "0.6078235", "0.60749763", "0.6065049", "0.60570925", "0.60558254", "0.603679", "0.6034605", "0.6006621", "0.6006418", "0.60041004", "0.59968036", "0.59886146", "0.5986462", "0.5957465", "0.59570533", "0.5947569", "0.59357", "0.5928536", "0.5915805", "0.58931357", "0.5885428", "0.58807325", "0.58780533", "0.5873672", "0.5863065", "0.58305585", "0.5826754", "0.5810508", "0.5807023", "0.5807012", "0.580431", "0.57879156", "0.5767757", "0.5766674", "0.57646024", "0.57472575", "0.57459784" ]
0.7628555
0
string name = 1;
public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
int32 age = 2;
public int getAge() { return age_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
string address = 3;
public java.lang.String getAddress() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1
string address = 3;
public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\r\n return address;\r\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "String getStreet();", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7113045", "0.6574343", "0.6574343", "0.6494728", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64169115", "0.63366884", "0.6267853", "0.62471056", "0.62471056", "0.62471056", "0.62471056", "0.6168465", "0.6118003", "0.6102788", "0.6050914", "0.6044089", "0.6009103", "0.60074675", "0.60044944", "0.60021365", "0.59958243", "0.5994284", "0.5994284", "0.5987871", "0.5984449", "0.5984449", "0.5984449", "0.5980797", "0.59727925", "0.5963045", "0.59599656", "0.5958033", "0.5956911", "0.5947782", "0.5947782", "0.5933112", "0.5904411", "0.59044087", "0.58945405", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875326", "0.5851438", "0.5844154", "0.58432585", "0.5826163", "0.5826163", "0.5826163", "0.5826163", "0.5826163", "0.5807476", "0.5807476", "0.5807476", "0.5795096", "0.5795096", "0.57851195", "0.57851195", "0.5778372", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.57592493", "0.57510275", "0.5748014", "0.5747143", "0.57392335", "0.57392335", "0.57345974", "0.572613", "0.572613", "0.571335", "0.57116693", "0.5709925", "0.5703903", "0.56945205", "0.56895953" ]
0.0
-1
string name = 1;
public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
string name = 1;
public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String n){ name=n; }", "String getVarName(String name);", "public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }", "String getName( String name );", "public void makeName(String str) {\n this.name = str + iL++;\n }", "void getName(String name);", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "String name();", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "String simpleName();", "public final int getName() { return name; }", "String getVarName();", "String getVarName();", "String getVarName();", "public static String giveMeMyName(){\n return \"Okan\";\n }", "public Variable(String name){\n this.name = name;\n }", "public String name() {\n return myStrVal;\n }", "String printName(String input);", "public void setName(String name)\n/* */ {\n/* 84 */ this._name = name;\n/* */ }", "public String saySomething(String name) {\n return name;\n }", "public void setName(String n);", "public void setName(String name){this.name = name;}", "public static Variable variable( String name )\n {\n NullArgumentException.validateNotNull( \"Variable name\", name );\n return new Variable( name );\n }", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "public void setName(String name){this.name=name;}", "int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}", "abstract String name();", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public void setName(final String pName){this.aName = pName;}", "public final void setName(String name) {_name = name;}", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name)\n {\n _name = name;\n }", "static void giveName() {\n System.out.println(name);\n }", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public void setName(String name)\n/* */ {\n/* 53 */ this.name = name;\n/* */ }", "public String getName(){return this.aName;}", "public static void setName(String n){\n\t\tname = n;\n\t}", "public String name()\r\n/* 256: */ {\r\n/* 257:465 */ return this.name;\r\n/* 258: */ }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "public void setName(String name) { this.name = name; }", "Name getName();", "public void getName(String name)\n {\n System.out.println(type + \" : \" + name);\n }", "public void setName(String name)\r\n/* */ {\r\n/* 137 */ this.name = name;\r\n/* */ }", "public void setName(java.lang.String aName);", "public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }", "public int setName(String name) {\n\t\tthis.name = name;\n\t\treturn 0;\n\t}", "public String helloName(String name) {\r\n return \"Hello \" + name + \"!\";\r\n }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n }", "public String getName() { return name.get(); }", "void setName(String strName);", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "String getName( );", "public static int getStringId(String name)\n\t{\n\t\tClass<R.string> c = R.string.class;\n\t\tField f;\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tf = c.getField(name);\n\t\t\ti = f.getInt(f);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLog.e(\"RR\", e.toString());\n\t\t}\n\t\treturn i;\n\t}", "String getNewName();", "char[] getName();", "public void setName(final String name);", "public void setName (String n) {\n name = n;\n }", "public String name() { return name; }", "public String getName()\n/* */ {\n/* 59 */ return this.name;\n/* */ }", "public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }" ]
[ "0.69225943", "0.6681452", "0.6639315", "0.6543791", "0.65432924", "0.64611226", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64381003", "0.64318585", "0.64019436", "0.6401879", "0.63966626", "0.63966626", "0.63966626", "0.6377863", "0.6363612", "0.6329954", "0.6323028", "0.6292463", "0.6252995", "0.62366086", "0.62110275", "0.6188562", "0.6182396", "0.6179115", "0.6158554", "0.6158201", "0.6152529", "0.61432856", "0.61405057", "0.6134579", "0.6134579", "0.6134579", "0.6126795", "0.6126505", "0.6108947", "0.6102412", "0.6102163", "0.6096004", "0.6095821", "0.6087411", "0.60848135", "0.60848135", "0.60848135", "0.60848135", "0.60803854", "0.6075325", "0.6067343", "0.6066435", "0.60656816", "0.60569113", "0.6052196", "0.60480565", "0.6046881", "0.6044363", "0.6042398", "0.6042398", "0.6042398", "0.6042398", "0.6032686", "0.6030652", "0.60306", "0.60256094", "0.6024337", "0.6023807", "0.6020368", "0.60183346", "0.60171247" ]
0.0
-1
int32 age = 2;
public int getAge() { return age_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
int32 age = 2;
public Builder setAge(int value) { age_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int getFromAge();", "int intOf();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "public int getAge(){\n return age;\n }", "long mo107678c(Integer num);", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "int getToAge();", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}", "long getLongValue();", "long getLongValue();" ]
[ "0.645936", "0.6273181", "0.6273181", "0.6162131", "0.6160512", "0.6120948", "0.61150336", "0.61150336", "0.60463375", "0.60463375", "0.6009807", "0.5914632", "0.5914632", "0.5914632", "0.590593", "0.5900165", "0.58739513", "0.5857353", "0.5835184", "0.57748294", "0.571957", "0.57149005", "0.5699161", "0.5699161", "0.568567", "0.5672295", "0.566405", "0.5656696", "0.5656696", "0.565302", "0.5650527", "0.5646005", "0.5621452", "0.5621452", "0.5621452", "0.5621452", "0.560194", "0.55952483", "0.55940455", "0.5574855", "0.55636585", "0.5559946", "0.5557487", "0.5554659", "0.55530775", "0.55435824", "0.55321157", "0.55193925", "0.5511264", "0.5507858", "0.5504843", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.5499814", "0.54931", "0.54774266", "0.5462011", "0.5457113", "0.54502845", "0.544675", "0.5439958", "0.5419032", "0.54125834", "0.54125834", "0.5408926", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5403152", "0.5397167", "0.5397167", "0.53968775", "0.5393594", "0.5391509", "0.53869456", "0.53653586", "0.5363792", "0.5362128", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.53606063", "0.5339266", "0.5325746", "0.5325305", "0.5325305" ]
0.0
-1
int32 age = 2;
public Builder clearAge() { age_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}", "IntValue createIntValue();", "IntValue createIntValue();", "int intOf();", "int getFromAge();", "int intValue();", "IntegerValue createIntegerValue();", "IntegerValue createIntegerValue();", "int getInt();", "int getInt();", "public LlvmValue visit(IntegerType n){\n\t\treturn LlvmPrimitiveType.I32;\n\t}", "int getAge();", "int getAge();", "int getAge();", "int getIntValue();", "Int(int v){\n val = v;\n }", "String getInt();", "public int intValue();", "public static void main(String[] args) {\n\t\t\n\t\tInteger obj= new Integer(10);\n\t\t\n\t\tint value=obj.intValue();\n\t\t\n\t\tint data=obj; //auto unboxing\n\t\t//int data=obj.intValue();\n\t\t\n\t\tobj=200; //autoboxing\n\t\t//obj=new Integer(200);\n\n\t}", "public Int(int value) { \n this.value = value; \n }", "public int getInt();", "UserInfo setAge(Integer age);", "public int getAge();", "public int getAge();", "protected Int() {}", "public void setAge(Integer age) {\n this.age = age;\n }", "public int getAge() {\n\t \t return age; \n\t}", "Integer getValue();", "Integer getValue();", "public void setAge(Integer age) {\r\n this.age = age;\r\n }", "public int getAge() {return age;}", "Uint32 getType();", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public void setAge(Integer age) {\n this.age = age;\n }", "public static void main(String[] args) {\n\t\tint a = 100;\n\t\tInteger b = a;//autoboxing\n\t\tint c=b.intValue();//unboxing\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(c);\n\t}", "long mo107678c(Integer num);", "public int getAge(){\n return age;\n }", "public static void main(String[] args) {\n Person p = new Person();\n p.hello();\n int age = 19;\n Integer arg2 = 19;\n// arg2.intValue();\n char c = 'A';\n byte b = 120;\n float weight = 66.5f;\n boolean adult = true;\n boolean enroll = false;\n String name = \"Richard\";\n\n\n }", "public static void main(String[] args) {\n int a=I;\n System.out.println(\"Auto_unboxing\"+a);\n Integer b=new Integer(a);\n System.out.println(\"Auto_boxing\"+b);\n\t}", "public static void main(String[] args) {\n\t\tInteger i =new Integer(10);\r\n\t\tInteger i1=new Integer(\"10\");\r\n\t\tSystem.out.println(\" \" +i+ +i1);\r\n\t\tBoolean b= new Boolean(true);\r\n\t\tBoolean b1 =new Boolean(\"true\");\r\n\t\tSystem.out.println( b +\"\"+b1);\r\n\t\tint iii=new Integer(10);//Auto-unboxing\r\nInteger iiiii =10;//Auto-boxing\r\n\r\n\t}", "int getToAge();", "public int getAge()\r\n {\r\n return age;\r\n }", "public Integer getAge() {\r\n return age;\r\n }", "public static void main(String[] args) {\n\n int a = 5; // premitive data type\n\n Integer ii1 = new Integer(a); // boxing or wrapping\n System.out.println(\"ii1=\"+ii1);\n\n Integer ii2 = new Integer(10);\n System.out.println(\"ii2=\"+ii2);\n\n Integer ii3 = a;\n Integer ii4 = 15; // autoboxing or autowrapping\n System.out.println(\"ii3=\"+ii3);\n System.out.println(\"ii4=\"+ii4);\n\n // Integer ii1 = new Integer(a);\n // converting non premitive into premitive\n int a1 = ii1.intValue();// unboxing or unwrapping\n int a2 = ii1;// autounboxing or autounwrapping\n\n }", "public int getIntValue(){\n return value;\n }", "public static void main(String[] args) {\n\n\t\tint x = 100;\n\n\t\t// boxing\n\t\tInteger iobj = new Integer(x);\n\t\tSystem.out.println(iobj);\n\n\t\t// unboxing\n\t\tint y = iobj.intValue();\n\t\tSystem.out.println(y);\n\t}", "void mo107677b(Integer num);", "PrimitiveType createPrimitiveType();", "public void set_age(int obj_age) {\n\t\tage = obj_age;\n\t}", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "public Integer getAge() {\n return age;\n }", "LspType(int val) {\n value = val;\n }", "public int getAge()\n {\n return age;\n }", "public Student(Integer age) {\n\n this.age = age;\n }", "public static void main(String[] args) {\n\n\t\tint x=10;\n\t\tInteger y =x; //Auto Boxing\n\t\t\n\t\tint z =y;\n\t}", "public static void main(String[] args) {\n byte age=20, myDogAge=4;\n // create a variable 'age' of byte datatype, and stored 20 in it.\n // what is the datatype of age? -> byte\n byte soccerGoal = 8;\n /**\n * short: is a primitive datatype\n * can store only whole numbers, ranging from -32,768 to 32,767\n */\n short noOfDaysInYear = 365; // 20\n // 365 days in an year\n System.out.println(\"365 days in an year\");\n\n System.out.println(\"Hello world\"); // Hello world\n System.out.println(noOfDaysInYear); // 365\n\n System.out.println(noOfDaysInYear + \" days in an year\");\n // 365 days in an year\n // Days in an year is 365, with 52 weeks\n int weeksInYear = 52;\n System.out.println(\"Days in an year is \"+noOfDaysInYear+\", with \"+weeksInYear+\" weeks\");\n\n /**\n * int: is a primitive datatype\n * can store only whole numbers, ranging from -2,147,000,000 to 2,147,000,000\n *\n * In daily routine: we use 'int' to store whole values.\n *\n */\n int usaCovidCasesCount = 100000;\n\n /**\n * long: is a primitive datatype\n * can store only whole numbers, ranging from\n * -9,000,000,000,000,000,000 to 9,000,000,000,000,000,000\n */\n\n long worldPopulation = 99999999999L; // L is an indicator for Java to treat value as long instead int\n // created a variable 'worldPopulation' of long datatype, and stored 99999999999 value\n\n System.out.println(\"Hello Dear\"); // Hello Dear\n System.out.println(age); // 20\n System.out.println(worldPopulation); // 99999999999\n\n\n System.out.println(usaCovidCasesCount);\n\n\n\n worldPopulation = 888888888888L; // replacing the value in existing variable\n\n System.out.println(\"World population is \" + worldPopulation); // 888888888888\n\n\n int population = 100;\n population = 50;\n\n System.out.println(population); // 50\n\n population = 25;\n\n System.out.println(worldPopulation); // 25\n\n System.out.println(noOfDaysInYear); //\n // Casting\n\n\n\n // store dog's age in a variable\n // -128 to 127\n byte dogAge = 4;\n byte dogWeigh = 10;\n short myAge = 22;\n\n System.out.println(\"Hello world\");\n System.out.println(\"Dog age is \" + dogAge + \", weigh is \" + dogWeigh); // Dog age is X, weigh is Y\n System.out.println(myAge); // My age is 22\n\n\n\n\n\n\n\n\n // store no. of floors in the Empire State building\n // 100-110\n // byte (-128 to 127)\n byte floorsCountEmpireState = 105;\n\n // store your cat's age in a variable\n // 0-15\n // byte\n byte catAge = 10;\n\n // store your age in a variable\n // 0 - 150\n // short\n short humanAge = 140;\n\n // store your account balance in a variable\n // float, double\n\n // Store subject grade (A,B,C,D) in a variable.\n // char\n\n // Store your blood group (or name) in a variable\n // String\n\n // Store ssn in a variable\n // int\n\n // Balance: XXXXX.XX\n // sout(\"Balance: \" + balance);\n\n\n System.out.println(\"Sep 14 2020\"); // Sep 14 2020\n System.out.println(\"Text value\"); // Text value\n System.out.println(worldPopulation); // value of 'worldPopulation' variable will be printed out.\n\n // +\n\n // world population is worldPopulation\n System.out.println(\"world population is \" + worldPopulation);\n // world population is 888888888\n\n int amount = 98;\n byte discount = 5;\n\n // Amount is 100, discount is 10\n System.out.println(\"Amount is \" + amount + \", discount is \" + discount);\n // Amount is 100, discount is 10\n\n System.out.println(amount);\n System.out.println(discount);\n\n\n\n int abc = 20; // abc is int-datatypes\n int def = abc; // assign the value inside abc to def\n\n System.out.println(\"DEF = \" + def);\n\n\n\n\n\n\n }", "void setAge(int age);", "@Override\n public final int readVarint32() throws IOException {\n return (int) readVarint64();\n }", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "public int getInt()\n {\n return intValue;\n }", "public int getInt()\n {\n return intValue;\n }", "public int getAge() {\r\n return age;\r\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "public int getIntValue()\n {\n return value;\n }", "public int getIntValue()\n {\n return value;\n }", "int readInt();", "public void setAge(int age);", "public int birthday(int age) {//reference type\n\t\t// grow old by a year\n\t\tage = age + 1;\n\t\t\n\t\treturn age;\n\t}", "public void setVar28(java.lang.Integer value) {\n this.var28 = value;\n }", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "public static void main(String[] args) {\n \n int entero=10;\n Integer entero2=20;\n System.out.println(\"entero2 = \" + entero2);\n System.out.println(\"entero2 = \" + entero2.toString());\n System.out.println(\"entero2 = \" + entero2.doubleValue());\n \n int entero3=entero2;//unboxing, se recupera el valor de entero2\n System.out.println(\"entero3 = \" + entero3);\n }", "int getEInt();", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public int getAge() {\n return age;\n }", "public static void main(String[] args) {\n\t\n\tint i=100;\n\tInteger j=i; // auto boxing\n\t\n\tDouble d=34.2;\n\t\n\tboolean b=true;\n\tboolean b2=b;\n\t\n\tList<Integer>nums=new ArrayList<>();\n\tnums.add(433);\n\tint p=555;\n\tnums.add(p);\n\tnums.add(new Integer(77));\n\t\n\tSystem.out.println(nums);\n\t // UnBoxing == takind the wrapper class object and converting into primitive and happens automatically\n\tint r = nums.get(0);\n\t\n\tboolean bool= new Boolean(false);\n\tboolean boolprim=bool;\n\tSystem.out.println(boolprim);\n\t\n\tCharacter chObj='^'; //autoboxing\n\tchar chPrim=chObj;\n\t\n\tchar myChar='^';\n\tCharacter chObj2=myChar; // autoboxing\n\t\n\tchar chprim=chObj; // unboxing from character object\n\t\n\tInteger intValue = new Integer (400);\n\t\n\tif(intValue==400) { // unboxing \n\t\tSystem.out.println(\"Pass\");\n\t}else {\n\t\tSystem.out.println(\"Fail\");\n\t}\n\t\n\t\n\tString word=\"java\";\n\tword=word.toUpperCase();\n\tword=word+\"programminng\";\n\tSystem.out.println(word);\n}", "long getLongValue();", "long getLongValue();", "public int getAge(int i) {\n\t\treturn 0;\r\n\t}" ]
[ "0.646022", "0.62739176", "0.62739176", "0.616013", "0.61587524", "0.6120473", "0.61163807", "0.61163807", "0.60445887", "0.60445887", "0.60120934", "0.59110653", "0.59110653", "0.59110653", "0.59048986", "0.5902778", "0.5871985", "0.5857336", "0.5836807", "0.5776326", "0.5717868", "0.5713054", "0.5695866", "0.5695866", "0.5687746", "0.56705856", "0.56607574", "0.5655795", "0.5655795", "0.56512964", "0.5647582", "0.5646508", "0.5619739", "0.5619739", "0.5619739", "0.5619739", "0.5603557", "0.55955595", "0.55918163", "0.55742687", "0.5565777", "0.5559099", "0.55566", "0.55511546", "0.55497247", "0.55454886", "0.5531308", "0.55211467", "0.5513835", "0.55093783", "0.5503398", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54964906", "0.54949296", "0.5473955", "0.54608154", "0.54591465", "0.5448863", "0.54447645", "0.5440858", "0.5420817", "0.5411223", "0.5411223", "0.5405342", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.5402607", "0.539633", "0.539633", "0.5395477", "0.53916746", "0.53886837", "0.53870314", "0.53650415", "0.5365029", "0.5360434", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.53570616", "0.5340816", "0.5323835", "0.5323835", "0.5322754" ]
0.0
-1
string address = 3;
public java.lang.String getAddress() { java.lang.Object ref = address_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); address_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1
string address = 3;
public com.google.protobuf.ByteString getAddressBytes() { java.lang.Object ref = address_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); address_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1
string address = 3;
public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1
string address = 3;
public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\r\n return address;\r\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "String getStreet();", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7113045", "0.6574343", "0.6574343", "0.6494728", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64691573", "0.64169115", "0.63366884", "0.6267853", "0.62471056", "0.62471056", "0.62471056", "0.62471056", "0.6168465", "0.6118003", "0.6102788", "0.6050914", "0.6044089", "0.6009103", "0.60074675", "0.60044944", "0.60021365", "0.59958243", "0.5994284", "0.5994284", "0.5987871", "0.5984449", "0.5984449", "0.5984449", "0.5980797", "0.59727925", "0.5963045", "0.59599656", "0.5958033", "0.5956911", "0.5947782", "0.5947782", "0.5933112", "0.5904411", "0.59044087", "0.58945405", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875728", "0.5875326", "0.5851438", "0.5844154", "0.58432585", "0.5826163", "0.5826163", "0.5826163", "0.5826163", "0.5826163", "0.5807476", "0.5807476", "0.5807476", "0.5795096", "0.5795096", "0.57851195", "0.57851195", "0.5778372", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.5773939", "0.57592493", "0.57510275", "0.5748014", "0.5747143", "0.57392335", "0.57392335", "0.57345974", "0.572613", "0.572613", "0.571335", "0.57116693", "0.5709925", "0.5703903", "0.56945205", "0.56895953" ]
0.0
-1
string address = 3;
public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getAddress(int type);", "String getAddress();", "String getAddress();", "public Address createAddress(String address);", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "java.lang.String getAddress();", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "abstract public Address createAddress(String addr);", "public int getAddress() {\n return address;\n }", "public int getAddress()\n {\n return address;\n }", "public String getAddress();", "public void setAddress(String address) {\n this.address = address;\n }", "private LispSimpleAddressStringifier() {\n }", "private void grnadr(String a) {\n\t\t\n\t\tSystem.out.println(\"Greens Technology address is:\"+\"\\n\"+a);\n\n\n}", "public String getAddress(){\n\t\treturn address;\n\t}", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public String getAddress() {return address;}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address)\n {\n this.address = address;\n }", "void setAddress(String address) throws IllegalArgumentException;", "public void setAddress(final String address){\n this.address=address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "AddressI getAddress();", "public String getAddress(){\r\n return address;\r\n }", "public void setAddress (java.lang.String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "String getStreet();", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "static void printAccountBalance(String address){\n }", "Address createAddress();", "public void setaddress(String address) {\n\t\t_address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "static void print_the_address(int print_address){\n\t\tSystem.out.print(decimel_to_hexa(print_address)+\" : \");\n\t}", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public int getMyAddress()\n\t{\n\t\treturn myAddress;\n\t}", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public String getAddress(){\n return address;\n\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public java.lang.String getAddress () {\n\t\treturn address;\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String address() {\n return Codegen.stringProp(\"address\").config(config).require();\n }", "public java.lang.String getAddress() {\r\n return address;\r\n }", "String getAddr();", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public java.lang.CharSequence getADDRESSIND() {\n return ADDRESS_IND;\n }", "public String getAddress() {\n\t\treturn address;\n\t}" ]
[ "0.7114771", "0.6576144", "0.6576144", "0.64949864", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64712304", "0.64172506", "0.63376343", "0.626812", "0.624743", "0.624743", "0.624743", "0.624743", "0.6168849", "0.61191845", "0.61041737", "0.605273", "0.60441357", "0.6009725", "0.600879", "0.60054934", "0.6001662", "0.59972316", "0.59939045", "0.59939045", "0.59896535", "0.59841573", "0.59841573", "0.59841573", "0.5980593", "0.5972822", "0.59627056", "0.59614015", "0.5958101", "0.5956593", "0.5947536", "0.5947536", "0.593515", "0.5905522", "0.59039", "0.58958584", "0.58768916", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.58753777", "0.5851767", "0.5845526", "0.5842491", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.5825641", "0.58085775", "0.58085775", "0.58085775", "0.5796271", "0.5796271", "0.57865494", "0.57865494", "0.57792306", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.5775079", "0.57608956", "0.5750433", "0.5749038", "0.57482606", "0.5740027", "0.5740027", "0.5735986", "0.57271594", "0.57271594", "0.5714171", "0.5713013", "0.57111543", "0.57049644", "0.569623", "0.5690561" ]
0.0
-1